- Using Yocto Project with BeagleBone Black
- H M Irfan Sadiq
- 222字
- 2021-07-16 13:57:12
Copying images to the card
We have formatted our card, according to the requirements. Now, we are ready to populate images to it. The partitions are usually auto mounted under /media/$USER
. If not, we can use the mount command to mount the partition to our desired location:
$ sudo mount /dev/sdb1 /media/$USER/BOOT $ sudo mount /dev/sdb2 /media/$USER/ROOT
Now, follow these steps to copy images to the card:
- Copy the u-boot MLO and u-boot bootloader images into the FAT32 partition:
$ sudo cp MLO /media/$USER/BOOT $ sudo cp u-boot.img /media/$USER/BOOT
- Copy the kernel image into the boot partition:
$ sudo cp uImage /media/$USER/BOOT
- Copy the
.dtb
file,am335x-boneblack.dtb
, into the boot partition. This step is required only in the case ofcore-image-minimal
. It is not required in our case, as we createdcore-image-sato
, which already has this file placed at the desired location in rootfs:$ sudo cp am335x-boneblack.dtb /media/$USER/BOOT
- As a root user, uncompress
core-image-sato-beaglebone.tar.bz2
to theext4
partition:$ sudo tar -xf core-image-sato-beaglebone.tar.bz2 -C /media/$USER/ROOT/
- Unmount both partitions:
$ sudo umount /dev/mmcblk0p1 $ sudo umount /dev/mmcblk0p2
Remove the card from the host machine, and insert it into the SD card slot on BeagleBone Black. We have a simple script named copy_images.sh
for these steps as well.
Tip
You can download the script for copying images the SD card from here:
推薦閱讀
- .NET之美:.NET關鍵技術深入解析
- Getting Started with React
- 體驗設計原理:行為、情感和細節
- Web Development with Django Cookbook
- Scratch真好玩:教小孩學編程
- Silverlight魔幻銀燈
- Visual FoxPro程序設計習題集及實驗指導(第四版)
- Hacking Android
- 嵌入式Linux C語言程序設計基礎教程
- Android應用開發攻略
- C++從零開始學(視頻教學版)(第2版)
- Oracle API Management 12c Implementation
- D Cookbook
- Modern R Programming Cookbook
- Scratch趣味編程:邏輯思維培養與訓練