Yoctoでビルドしたイメージのありかと書き込み方
題名の内容、メモして書き残します。
ビルドの方法とかはここに記載。
Yoctoでビルドした成果物は、最初にoe-init-build-envで指定したビルドディレクトリ(今回は rpi_build ディレクトリを指定しているのでそこ)以下に生成されます。
一応YoctoのManualを見ると、ちゃんと在り処まで記載されているのですがこのManualは膨大過ぎて見るのが嫌になります・・・
bitbakeの実行結果ですが、2019/6月時点でrpi-basic-imageをビルドするとこんな感じでした。
SATAのSSDに仮想マシンのファイルを立てて、Ryzen7 2700のフルコア/8GB RAMを割り当ててこの時間でした。ただし回線速度が結構遅いのでそれが問題かもしれません。
yoctobuild@ubuntu:~/YoctoBuild/poky/raspi_build$ time bitbake rpi-basic-image Loading cache: 100% |#################################################| Time: 0:00:00 Loaded 3619 entries from dependency cache. NOTE: Resolving any missing task queue dependencies Build Configuration: BB_VERSION = "1.42.0" BUILD_SYS = "x86_64-linux" NATIVELSBSTRING = "ubuntu-18.04" TARGET_SYS = "arm-poky-linux-gnueabi" MACHINE = "raspberrypi" DISTRO = "poky" DISTRO_VERSION = "2.7" TUNE_FEATURES = "arm armv6 vfp arm1176jzfs callconvention-hard" TARGET_FPU = "hard" meta meta-poky meta-yocto-bsp = "warrior:62d810a507613136286089953efccf2da1f65841" meta-filesystems meta-gnome meta-initramfs meta-multimedia meta-networking meta-oe meta-perl meta-python meta-webserver meta-xfce = "warrior:6fa72d587aab8e9d56d67a2552eb9cfbe25c86d2" meta-raspberrypi = "warrior:7059c374512f1c1c0df9ecab0703d11438bdf78b" NOTE: Fetching uninative binary shim from http://downloads.yoctoproject.org/releases/uninative/2.4/x86_64-nativesdk-libc.tar.bz2;sha256sum=06f91685b782f2ccfedf3070b3ba0fe4a5ba2f0766dad5c9d1642dccf95accd0 Initialising tasks: 100% |############################################| Time: 0:00:01 Sstate summary: Wanted 823 Found 0 Missed 823 Current 0 (0% match, 0% complete) NOTE: Executing SetScene Tasks NOTE: Executing RunQueue Tasks WARNING: popt-native-1.16-r3 do_fetch: Failed to fetch URL http://rpm5.org/files/popt/popt-1.16.tar.gz, attempting MIRRORS if available WARNING: rpi-basic-image-1.0-r0 do_image: The image 'rpi-basic-image' is deprecated, please use 'core-image-base' instead NOTE: Tasks Summary: Attempted 2591 tasks of which 5 didn't need to be rerun and all succeeded. Summary: There were 2 WARNING messages shown. real 101m15.139s user 0m15.439s sys 0m13.934s
※横幅がブログ幅に入り切ってませんが大した情報ではないです
さておき、rpi-basic-imageのイメージはビルドディレクトリ/tmp/deploy/以下に格納されてます。
当該ディレクトリをそのまま載せると下記の通りめっちゃファイルがあります。
yoctobuild@ubuntu:~/YoctoBuild/poky/raspi_build/tmp/deploy/images/raspberrypi$ ls -al total 227280 drwxr-xr-x 3 yoctobuild yoctobuild 12288 Jun 8 03:35 . drwxr-xr-x 3 yoctobuild yoctobuild 4096 Jun 8 02:24 .. -rw-r--r-- 2 yoctobuild yoctobuild 1668 Jun 8 03:29 at86rf233-1-4.14.112+git0+6b5c4a2508-r0-raspberrypi-20190608085409.dtbo lrwxrwxrwx 2 yoctobuild yoctobuild 71 Jun 8 03:29 at86rf233.dtbo -> at86rf233-1-4.14.112+git0+6b5c4a2508-r0-raspberrypi-20190608085409.dtbo lrwxrwxrwx 2 yoctobuild yoctobuild 71 Jun 8 03:29 at86rf233-raspberrypi.dtbo -> at86rf233-1-4.14.112+git0+6b5c4a2508-r0-raspberrypi-20190608085409.dtbo -rw-r--r-- 2 yoctobuild yoctobuild 23315 Jun 8 03:29 bcm2708-rpi-0-w-1-4.14.112+git0+6b5c4a2508-r0-raspberrypi-20190608085409.dtb lrwxrwxrwx 2 yoctobuild yoctobuild 76 Jun 8 03:29 bcm2708-rpi-0-w.dtb -> bcm2708-rpi-0-w-1-4.14.112+git0+6b5c4a2508-r0-raspberrypi-20190608085409.dtb lrwxrwxrwx 2 yoctobuild yoctobuild 76 Jun 8 03:29 bcm2708-rpi-0-w-raspberrypi.dtb -> bcm2708-rpi-0-w-1-4.14.112+git0+6b5c4a2508-r0-raspberrypi-20190608085409.dtb -rw-r--r-- 2 yoctobuild yoctobuild 22812 Jun 8 03:29 bcm2708-rpi-b-1-4.14.112+git0+6b5c4a2508-r0-raspberrypi-20190608085409.dtb lrwxrwxrwx 2 yoctobuild yoctobuild 74 Jun 8 03:29 bcm2708-rpi-b.dtb -> bcm2708-rpi-b-1-4.14.112+git0+6b5c4a2508-r0-raspberrypi-20190608085409.dtb -rw-r--r-- 2 yoctobuild yoctobuild 23071 Jun 8 03:29 bcm2708-rpi-b-plus-1-4.14.112+git0+6b5c4a2508-r0-raspberrypi-20190608085409.dtb lrwxrwxrwx 2 yoctobuild yoctobuild 79 Jun 8 03:29 bcm2708-rpi-b-plus.dtb -> bcm2708-rpi-b-plus-1-4.14.112+git0+6b5c4a2508-r0-raspberrypi-20190608085409.dtb lrwxrwxrwx 2 yoctobuild yoctobuild 79 Jun 8 03:29 bcm2708-rpi-b-plus-raspberrypi.dtb -> bcm2708-rpi-b-plus-1-4.14.112+git0+6b5c4a2508-r0-raspberrypi-20190608085409.dtb lrwxrwxrwx 2 yoctobuild yoctobuild 74 Jun 8 03:29 bcm2708-rpi-b-raspberrypi.dtb -> bcm2708-rpi-b-1-4.14.112+git0+6b5c4a2508-r0-raspberrypi-20190608085409.dtb -rw-r--r-- 2 yoctobuild yoctobuild 22589 Jun 8 03:29 bcm2708-rpi-cm-1-4.14.112+git0+6b5c4a2508-r0-raspberrypi-20190608085409.dtb lrwxrwxrwx 2 yoctobuild yoctobuild 75 Jun 8 03:29 bcm2708-rpi-cm.dtb -> bcm2708-rpi-cm-1-4.14.112+git0+6b5c4a2508-r0-raspberrypi-20190608085409.dtb lrwxrwxrwx 2 yoctobuild yoctobuild 75 Jun 8 03:29 bcm2708-rpi-cm-raspberrypi.dtb -> bcm2708-rpi-cm-1-4.14.112+git0+6b5c4a2508-r0-raspberrypi-20190608085409.dtb -rw-r--r-- 2 yoctobuild yoctobuild 24115 Jun 8 03:29 bcm2709-rpi-2-b-1-4.14.112+git0+6b5c4a2508-r0-raspberrypi-20190608085409.dtb lrwxrwxrwx 2 yoctobuild yoctobuild 76 Jun 8 03:29 bcm2709-rpi-2-b.dtb -> bcm2709-rpi-2-b-1-4.14.112+git0+6b5c4a2508-r0-raspberrypi-20190608085409.dtb lrwxrwxrwx 2 yoctobuild yoctobuild 76 Jun 8 03:29 bcm2709-rpi-2-b-raspberrypi.dtb -> bcm2709-rpi-2-b-1-4.14.112+git0+6b5c4a2508-r0-raspberrypi-20190608085409.dtb -rw-r--r-- 2 yoctobuild yoctobuild 25311 Jun 8 03:29 bcm2710-rpi-3-b-1-4.14.112+git0+6b5c4a2508-r0-raspberrypi-20190608085409.dtb lrwxrwxrwx 2 yoctobuild yoctobuild 76 Jun 8 03:29 bcm2710-rpi-3-b.dtb -> bcm2710-rpi-3-b-1-4.14.112+git0+6b5c4a2508-r0-raspberrypi-20190608085409.dtb -rw-r--r-- 2 yoctobuild yoctobuild 25914 Jun 8 03:29 bcm2710-rpi-3-b-plus-1-4.14.112+git0+6b5c4a2508-r0-raspberrypi-20190608085409.dtb lrwxrwxrwx 2 yoctobuild yoctobuild 81 Jun 8 03:29 bcm2710-rpi-3-b-plus.dtb -> bcm2710-rpi-3-b-plus-1-4.14.112+git0+6b5c4a2508-r0-raspberrypi-20190608085409.dtb lrwxrwxrwx 2 yoctobuild yoctobuild 81 Jun 8 03:29 bcm2710-rpi-3-b-plus-raspberrypi.dtb -> bcm2710-rpi-3-b-plus-1-4.14.112+git0+6b5c4a2508-r0-raspberrypi-20190608085409.dtb lrwxrwxrwx 2 yoctobuild yoctobuild 76 Jun 8 03:29 bcm2710-rpi-3-b-raspberrypi.dtb -> bcm2710-rpi-3-b-1-4.14.112+git0+6b5c4a2508-r0-raspberrypi-20190608085409.dtb -rw-r--r-- 2 yoctobuild yoctobuild 24087 Jun 8 03:29 bcm2710-rpi-cm3-1-4.14.112+git0+6b5c4a2508-r0-raspberrypi-20190608085409.dtb lrwxrwxrwx 2 yoctobuild yoctobuild 76 Jun 8 03:29 bcm2710-rpi-cm3.dtb -> bcm2710-rpi-cm3-1-4.14.112+git0+6b5c4a2508-r0-raspberrypi-20190608085409.dtb lrwxrwxrwx 2 yoctobuild yoctobuild 76 Jun 8 03:29 bcm2710-rpi-cm3-raspberrypi.dtb -> bcm2710-rpi-cm3-1-4.14.112+git0+6b5c4a2508-r0-raspberrypi-20190608085409.dtb drwxr-xr-x 2 yoctobuild yoctobuild 4096 Jun 8 03:29 bcm2835-bootfiles -rw-r--r-- 2 yoctobuild yoctobuild 856 Jun 8 03:29 dwc2-1-4.14.112+git0+6b5c4a2508-r0-raspberrypi-20190608085409.dtbo lrwxrwxrwx 2 yoctobuild yoctobuild 66 Jun 8 03:29 dwc2.dtbo -> dwc2-1-4.14.112+git0+6b5c4a2508-r0-raspberrypi-20190608085409.dtbo lrwxrwxrwx 2 yoctobuild yoctobuild 66 Jun 8 03:29 dwc2-raspberrypi.dtbo -> dwc2-1-4.14.112+git0+6b5c4a2508-r0-raspberrypi-20190608085409.dtbo -rw-r--r-- 2 yoctobuild yoctobuild 1373 Jun 8 03:29 gpio-key-1-4.14.112+git0+6b5c4a2508-r0-raspberrypi-20190608085409.dtbo lrwxrwxrwx 2 yoctobuild yoctobuild 70 Jun 8 03:29 gpio-key.dtbo -> gpio-key-1-4.14.112+git0+6b5c4a2508-r0-raspberrypi-20190608085409.dtbo lrwxrwxrwx 2 yoctobuild yoctobuild 70 Jun 8 03:29 gpio-key-raspberrypi.dtbo -> gpio-key-1-4.14.112+git0+6b5c4a2508-r0-raspberrypi-20190608085409.dtbo -rw-r--r-- 2 yoctobuild yoctobuild 779 Jun 8 03:29 hifiberry-amp-1-4.14.112+git0+6b5c4a2508-r0-raspberrypi-20190608085409.dtbo lrwxrwxrwx 2 yoctobuild yoctobuild 75 Jun 8 03:29 hifiberry-amp.dtbo -> hifiberry-amp-1-4.14.112+git0+6b5c4a2508-r0-raspberrypi-20190608085409.dtbo lrwxrwxrwx 2 yoctobuild yoctobuild 75 Jun 8 03:29 hifiberry-amp-raspberrypi.dtbo -> hifiberry-amp-1-4.14.112+git0+6b5c4a2508-r0-raspberrypi-20190608085409.dtbo -rw-r--r-- 2 yoctobuild yoctobuild 655 Jun 8 03:29 hifiberry-dac-1-4.14.112+git0+6b5c4a2508-r0-raspberrypi-20190608085409.dtbo lrwxrwxrwx 2 yoctobuild yoctobuild 75 Jun 8 03:29 hifiberry-dac.dtbo -> hifiberry-dac-1-4.14.112+git0+6b5c4a2508-r0-raspberrypi-20190608085409.dtbo -rw-r--r-- 2 yoctobuild yoctobuild 1693 Jun 8 03:29 hifiberry-dacplus-1-4.14.112+git0+6b5c4a2508-r0-raspberrypi-20190608085409.dtbo lrwxrwxrwx 2 yoctobuild yoctobuild 79 Jun 8 03:29 hifiberry-dacplus.dtbo -> hifiberry-dacplus-1-4.14.112+git0+6b5c4a2508-r0-raspberrypi-20190608085409.dtbo lrwxrwxrwx 2 yoctobuild yoctobuild 79 Jun 8 03:29 hifiberry-dacplus-raspberrypi.dtbo -> hifiberry-dacplus-1-4.14.112+git0+6b5c4a2508-r0-raspberrypi-20190608085409.dtbo lrwxrwxrwx 2 yoctobuild yoctobuild 75 Jun 8 03:29 hifiberry-dac-raspberrypi.dtbo -> hifiberry-dac-1-4.14.112+git0+6b5c4a2508-r0-raspberrypi-20190608085409.dtbo -rw-r--r-- 2 yoctobuild yoctobuild 959 Jun 8 03:29 hifiberry-digi-1-4.14.112+git0+6b5c4a2508-r0-raspberrypi-20190608085409.dtbo lrwxrwxrwx 2 yoctobuild yoctobuild 76 Jun 8 03:29 hifiberry-digi.dtbo -> hifiberry-digi-1-4.14.112+git0+6b5c4a2508-r0-raspberrypi-20190608085409.dtbo lrwxrwxrwx 2 yoctobuild yoctobuild 76 Jun 8 03:29 hifiberry-digi-raspberrypi.dtbo -> hifiberry-digi-1-4.14.112+git0+6b5c4a2508-r0-raspberrypi-20190608085409.dtbo -rw-r--r-- 2 yoctobuild yoctobuild 3934 Jun 8 03:29 i2c-rtc-1-4.14.112+git0+6b5c4a2508-r0-raspberrypi-20190608085409.dtbo lrwxrwxrwx 2 yoctobuild yoctobuild 69 Jun 8 03:29 i2c-rtc.dtbo -> i2c-rtc-1-4.14.112+git0+6b5c4a2508-r0-raspberrypi-20190608085409.dtbo lrwxrwxrwx 2 yoctobuild yoctobuild 69 Jun 8 03:29 i2c-rtc-raspberrypi.dtbo -> i2c-rtc-1-4.14.112+git0+6b5c4a2508-r0-raspberrypi-20190608085409.dtbo -rw-r--r-- 2 yoctobuild yoctobuild 1272 Jun 8 03:29 iqaudio-dac-1-4.14.112+git0+6b5c4a2508-r0-raspberrypi-20190608085409.dtbo lrwxrwxrwx 2 yoctobuild yoctobuild 73 Jun 8 03:29 iqaudio-dac.dtbo -> iqaudio-dac-1-4.14.112+git0+6b5c4a2508-r0-raspberrypi-20190608085409.dtbo -rw-r--r-- 2 yoctobuild yoctobuild 1511 Jun 8 03:29 iqaudio-dacplus-1-4.14.112+git0+6b5c4a2508-r0-raspberrypi-20190608085409.dtbo lrwxrwxrwx 2 yoctobuild yoctobuild 77 Jun 8 03:29 iqaudio-dacplus.dtbo -> iqaudio-dacplus-1-4.14.112+git0+6b5c4a2508-r0-raspberrypi-20190608085409.dtbo lrwxrwxrwx 2 yoctobuild yoctobuild 77 Jun 8 03:29 iqaudio-dacplus-raspberrypi.dtbo -> iqaudio-dacplus-1-4.14.112+git0+6b5c4a2508-r0-raspberrypi-20190608085409.dtbo lrwxrwxrwx 2 yoctobuild yoctobuild 73 Jun 8 03:29 iqaudio-dac-raspberrypi.dtbo -> iqaudio-dac-1-4.14.112+git0+6b5c4a2508-r0-raspberrypi-20190608085409.dtbo -rw-r--r-- 2 yoctobuild yoctobuild 1833 Jun 8 03:29 mcp2515-can0-1-4.14.112+git0+6b5c4a2508-r0-raspberrypi-20190608085409.dtbo lrwxrwxrwx 2 yoctobuild yoctobuild 74 Jun 8 03:29 mcp2515-can0.dtbo -> mcp2515-can0-1-4.14.112+git0+6b5c4a2508-r0-raspberrypi-20190608085409.dtbo lrwxrwxrwx 2 yoctobuild yoctobuild 74 Jun 8 03:29 mcp2515-can0-raspberrypi.dtbo -> mcp2515-can0-1-4.14.112+git0+6b5c4a2508-r0-raspberrypi-20190608085409.dtbo -rw-r--r-- 2 yoctobuild yoctobuild 17479394 Jun 8 03:29 modules-1-4.14.112+git0+6b5c4a2508-r0-raspberrypi-20190608085409.tgz lrwxrwxrwx 2 yoctobuild yoctobuild 68 Jun 8 03:29 modules-raspberrypi.tgz -> modules-1-4.14.112+git0+6b5c4a2508-r0-raspberrypi-20190608085409.tgz -rw-r--r-- 2 yoctobuild yoctobuild 954 Jun 8 03:29 pi3-disable-bt-1-4.14.112+git0+6b5c4a2508-r0-raspberrypi-20190608085409.dtbo lrwxrwxrwx 2 yoctobuild yoctobuild 76 Jun 8 03:29 pi3-disable-bt.dtbo -> pi3-disable-bt-1-4.14.112+git0+6b5c4a2508-r0-raspberrypi-20190608085409.dtbo lrwxrwxrwx 2 yoctobuild yoctobuild 76 Jun 8 03:29 pi3-disable-bt-raspberrypi.dtbo -> pi3-disable-bt-1-4.14.112+git0+6b5c4a2508-r0-raspberrypi-20190608085409.dtbo -rw-r--r-- 2 yoctobuild yoctobuild 1446 Jun 8 03:29 pi3-miniuart-bt-1-4.14.112+git0+6b5c4a2508-r0-raspberrypi-20190608085409.dtbo lrwxrwxrwx 2 yoctobuild yoctobuild 77 Jun 8 03:29 pi3-miniuart-bt.dtbo -> pi3-miniuart-bt-1-4.14.112+git0+6b5c4a2508-r0-raspberrypi-20190608085409.dtbo lrwxrwxrwx 2 yoctobuild yoctobuild 77 Jun 8 03:29 pi3-miniuart-bt-raspberrypi.dtbo -> pi3-miniuart-bt-1-4.14.112+git0+6b5c4a2508-r0-raspberrypi-20190608085409.dtbo -rw-r--r-- 2 yoctobuild yoctobuild 1544 Jun 8 03:29 pitft22-1-4.14.112+git0+6b5c4a2508-r0-raspberrypi-20190608085409.dtbo lrwxrwxrwx 2 yoctobuild yoctobuild 69 Jun 8 03:29 pitft22.dtbo -> pitft22-1-4.14.112+git0+6b5c4a2508-r0-raspberrypi-20190608085409.dtbo lrwxrwxrwx 2 yoctobuild yoctobuild 69 Jun 8 03:29 pitft22-raspberrypi.dtbo -> pitft22-1-4.14.112+git0+6b5c4a2508-r0-raspberrypi-20190608085409.dtbo -rw-r--r-- 2 yoctobuild yoctobuild 2802 Jun 8 03:29 pitft28-resistive-1-4.14.112+git0+6b5c4a2508-r0-raspberrypi-20190608085409.dtbo lrwxrwxrwx 2 yoctobuild yoctobuild 79 Jun 8 03:29 pitft28-resistive.dtbo -> pitft28-resistive-1-4.14.112+git0+6b5c4a2508-r0-raspberrypi-20190608085409.dtbo lrwxrwxrwx 2 yoctobuild yoctobuild 79 Jun 8 03:29 pitft28-resistive-raspberrypi.dtbo -> pitft28-resistive-1-4.14.112+git0+6b5c4a2508-r0-raspberrypi-20190608085409.dtbo -rw-r--r-- 2 yoctobuild yoctobuild 2802 Jun 8 03:29 pitft35-resistive-1-4.14.112+git0+6b5c4a2508-r0-raspberrypi-20190608085409.dtbo lrwxrwxrwx 2 yoctobuild yoctobuild 79 Jun 8 03:29 pitft35-resistive.dtbo -> pitft35-resistive-1-4.14.112+git0+6b5c4a2508-r0-raspberrypi-20190608085409.dtbo lrwxrwxrwx 2 yoctobuild yoctobuild 79 Jun 8 03:29 pitft35-resistive-raspberrypi.dtbo -> pitft35-resistive-1-4.14.112+git0+6b5c4a2508-r0-raspberrypi-20190608085409.dtbo -rw-r--r-- 2 yoctobuild yoctobuild 1145 Jun 8 03:29 pps-gpio-1-4.14.112+git0+6b5c4a2508-r0-raspberrypi-20190608085409.dtbo lrwxrwxrwx 2 yoctobuild yoctobuild 70 Jun 8 03:29 pps-gpio.dtbo -> pps-gpio-1-4.14.112+git0+6b5c4a2508-r0-raspberrypi-20190608085409.dtbo lrwxrwxrwx 2 yoctobuild yoctobuild 70 Jun 8 03:29 pps-gpio-raspberrypi.dtbo -> pps-gpio-1-4.14.112+git0+6b5c4a2508-r0-raspberrypi-20190608085409.dtbo -rw-r--r-- 2 yoctobuild yoctobuild 83886080 Jun 8 03:35 rpi-basic-image-raspberrypi-20190608085409.rootfs.ext3 -rw-r--r-- 2 yoctobuild yoctobuild 108762 Jun 8 03:35 rpi-basic-image-raspberrypi-20190608085409.rootfs.manifest -rw-r--r-- 2 yoctobuild yoctobuild 130023424 Jun 8 03:35 rpi-basic-image-raspberrypi-20190608085409.rootfs.rpi-sdimg -rw-r--r-- 2 yoctobuild yoctobuild 18638302 Jun 8 03:35 rpi-basic-image-raspberrypi-20190608085409.rootfs.tar.bz2 -rw-r--r-- 2 yoctobuild yoctobuild 273934 Jun 8 03:35 rpi-basic-image-raspberrypi-20190608085409.testdata.json lrwxrwxrwx 2 yoctobuild yoctobuild 54 Jun 8 03:35 rpi-basic-image-raspberrypi.ext3 -> rpi-basic-image-raspberrypi-20190608085409.rootfs.ext3 lrwxrwxrwx 2 yoctobuild yoctobuild 58 Jun 8 03:35 rpi-basic-image-raspberrypi.manifest -> rpi-basic-image-raspberrypi-20190608085409.rootfs.manifest lrwxrwxrwx 2 yoctobuild yoctobuild 59 Jun 8 03:35 rpi-basic-image-raspberrypi.rpi-sdimg -> rpi-basic-image-raspberrypi-20190608085409.rootfs.rpi-sdimg lrwxrwxrwx 2 yoctobuild yoctobuild 57 Jun 8 03:35 rpi-basic-image-raspberrypi.tar.bz2 -> rpi-basic-image-raspberrypi-20190608085409.rootfs.tar.bz2 lrwxrwxrwx 2 yoctobuild yoctobuild 56 Jun 8 03:35 rpi-basic-image-raspberrypi.testdata.json -> rpi-basic-image-raspberrypi-20190608085409.testdata.json -rw-r--r-- 2 yoctobuild yoctobuild 1018 Jun 8 03:29 rpi-ft5406-1-4.14.112+git0+6b5c4a2508-r0-raspberrypi-20190608085409.dtbo lrwxrwxrwx 2 yoctobuild yoctobuild 72 Jun 8 03:29 rpi-ft5406.dtbo -> rpi-ft5406-1-4.14.112+git0+6b5c4a2508-r0-raspberrypi-20190608085409.dtbo lrwxrwxrwx 2 yoctobuild yoctobuild 72 Jun 8 03:29 rpi-ft5406-raspberrypi.dtbo -> rpi-ft5406-1-4.14.112+git0+6b5c4a2508-r0-raspberrypi-20190608085409.dtbo -rw-r--r-- 2 yoctobuild yoctobuild 1755 Jun 8 03:29 rpi-poe-1-4.14.112+git0+6b5c4a2508-r0-raspberrypi-20190608085409.dtbo lrwxrwxrwx 2 yoctobuild yoctobuild 69 Jun 8 03:29 rpi-poe.dtbo -> rpi-poe-1-4.14.112+git0+6b5c4a2508-r0-raspberrypi-20190608085409.dtbo lrwxrwxrwx 2 yoctobuild yoctobuild 69 Jun 8 03:29 rpi-poe-raspberrypi.dtbo -> rpi-poe-1-4.14.112+git0+6b5c4a2508-r0-raspberrypi-20190608085409.dtbo -rw-r--r-- 2 yoctobuild yoctobuild 2367 Jun 8 03:29 vc4-kms-v3d-1-4.14.112+git0+6b5c4a2508-r0-raspberrypi-20190608085409.dtbo lrwxrwxrwx 2 yoctobuild yoctobuild 73 Jun 8 03:29 vc4-kms-v3d.dtbo -> vc4-kms-v3d-1-4.14.112+git0+6b5c4a2508-r0-raspberrypi-20190608085409.dtbo lrwxrwxrwx 2 yoctobuild yoctobuild 73 Jun 8 03:29 vc4-kms-v3d-raspberrypi.dtbo -> vc4-kms-v3d-1-4.14.112+git0+6b5c4a2508-r0-raspberrypi-20190608085409.dtbo -rw-r--r-- 2 yoctobuild yoctobuild 1116 Jun 8 03:29 w1-gpio-1-4.14.112+git0+6b5c4a2508-r0-raspberrypi-20190608085409.dtbo lrwxrwxrwx 2 yoctobuild yoctobuild 69 Jun 8 03:29 w1-gpio.dtbo -> w1-gpio-1-4.14.112+git0+6b5c4a2508-r0-raspberrypi-20190608085409.dtbo -rw-r--r-- 2 yoctobuild yoctobuild 1251 Jun 8 03:29 w1-gpio-pullup-1-4.14.112+git0+6b5c4a2508-r0-raspberrypi-20190608085409.dtbo lrwxrwxrwx 2 yoctobuild yoctobuild 76 Jun 8 03:29 w1-gpio-pullup.dtbo -> w1-gpio-pullup-1-4.14.112+git0+6b5c4a2508-r0-raspberrypi-20190608085409.dtbo lrwxrwxrwx 2 yoctobuild yoctobuild 76 Jun 8 03:29 w1-gpio-pullup-raspberrypi.dtbo -> w1-gpio-pullup-1-4.14.112+git0+6b5c4a2508-r0-raspberrypi-20190608085409.dtbo lrwxrwxrwx 2 yoctobuild yoctobuild 69 Jun 8 03:29 w1-gpio-raspberrypi.dtbo -> w1-gpio-1-4.14.112+git0+6b5c4a2508-r0-raspberrypi-20190608085409.dtbo lrwxrwxrwx 2 yoctobuild yoctobuild 67 Jun 8 03:29 zImage -> zImage-1-4.14.112+git0+6b5c4a2508-r0-raspberrypi-20190608085409.bin -rw-r--r-- 2 yoctobuild yoctobuild 4691520 Jun 8 03:29 zImage-1-4.14.112+git0+6b5c4a2508-r0-raspberrypi-20190608085409.bin lrwxrwxrwx 2 yoctobuild yoctobuild 67 Jun 8 03:29 zImage-raspberrypi.bin -> zImage-1-4.14.112+git0+6b5c4a2508-r0-raspberrypi-20190608085409.bin
見ると、デバイスツリーやらU-Boot、Kernel Image(zImage)とかやらが散在しているのがわかります。
rpi-basic-imageはcore-image-minimalをベースにしているので、sdカード用の書き込みイメージが用意されます。
-rw-r--r-- 2 yoctobuild yoctobuild 130023424 Jun 8 03:35 rpi-basic-image-raspberrypi-20190608085409.rootfs.rpi-sdimg
これです。
あとはddコマンドでSDに書き込めばOKです。自分はVMWareでここまで作業していますが、カードリーダーにSDを刺すとUbuntu側で認識するかどうか聞かれて、普通に/dev/sdbとして出てきたので楽でした。
sudo dd if=rpi-basic-image-raspberrypi-20190608085409.rootfs.rpi-sdimg of=/dev/sdb status=progress
※lsblkコマンド等で書き込み先(of=)のデバイス・ファイル名は確認すること
あとはRaspiにSDを差し込み、電源を入れればBootするハズです。
起動しない場合はSDの書き込み失敗や、容量不足を疑う。また諸々カスタムしていて起動しない場合は、UART接続を試みて何か出るか(Kernel Panic等)をCheckする。
Kernelまで行ってない場合は、rpi本体のROMコードを見てUARTで何を拾っているか確認したいところ・・・