Raspberry PIとカーネルビルド


pi@raspberrypi:~ $ uname -a
Linux raspberrypi 4.9.25-v7+ #994 SMP Fri Apr 28 16:56:00 BST 2017 armv7l GNU/Linux

pi@raspberrypi:~ $ df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/root       5.8G  4.3G  1.2G  79% /
devtmpfs        458M     0  458M   0% /dev
tmpfs           462M     0  462M   0% /dev/shm
tmpfs           462M  6.4M  456M   2% /run
tmpfs           5.0M  4.0K  5.0M   1% /run/lock
tmpfs           462M     0  462M   0% /sys/fs/cgroup
/dev/mmcblk0p6   65M   21M   45M  33% /boot
tmpfs            93M     0   93M   0% /run/user/1000
/dev/mmcblk0p5   30M  398K   28M   2% /media/pi/SETTINGS

Mac-mini:Zraspberry $ sudo dd if=/dev/rdisk4 bs=1m of=raspberry20170529.img
7695+0 records in
7695+0 records out
8068792320 bytes transferred in 397.093440 secs (20319631 bytes/sec)

Mac-mini:Zraspberry $ ls -l
total 15759360
-rw-r--r--  1 root  staff  8068792320 May 29 08:03 raspberry20170529.img


pi@raspberrypi:~/Zkernel $ git clone --depth=1 https://github.com/raspberrypi/linux

pi@raspberrypi:~/Zkernel $ cd linux
pi@raspberrypi:~/Zkernel/linux $ KERNEL=kernel7
pi@raspberrypi:~/Zkernel/linux $ make bcm2709_defconfig
pi@raspberrypi:~/Zkernel/linux $ time make -j4 zImage modules dtbs
scripts/kconfig/conf  --silentoldconfig Kconfig

...fatal error: error writing to /tmp/cc4wpGOn.s: No space left on device...

pi@raspberrypi:~/Zkernel/linux $ df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/root       5.8G  5.5G   32K 100% /

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.