官术网_书友最值得收藏!

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:

  1. 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
    
  2. Copy the kernel image into the boot partition:
    $ sudo cp uImage /media/$USER/BOOT 
    
  3. Copy the .dtb file, am335x-boneblack.dtb, into the boot partition. This step is required only in the case of core-image-minimal. It is not required in our case, as we created core-image-sato, which already has this file placed at the desired location in rootfs:
    $ sudo cp am335x-boneblack.dtb /media/$USER/BOOT 
    
  4. As a root user, uncompress core-image-sato-beaglebone.tar.bz2 to the ext4 partition:
    $ sudo tar -xf core-image-sato-beaglebone.tar.bz2 -C /media/$USER/ROOT/
    
  5. 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:

https://github.com/YoctoForBeaglebone/BeagleScripts

主站蜘蛛池模板: 鹤岗市| 永宁县| 海晏县| 平原县| 西充县| 巴彦淖尔市| 依兰县| 昭通市| 枝江市| 南丹县| 方山县| 诸城市| 双桥区| 平定县| 邵阳县| 丹巴县| 双鸭山市| 五华县| 龙山县| 京山县| 玉树县| 大同市| 金门县| 兴化市| 临漳县| 宁河县| 龙井市| 松阳县| 太保市| 蓬安县| 无棣县| 盐津县| 湖州市| 香河县| 买车| 左权县| 礼泉县| 麻栗坡县| 龙口市| 陵水| 洪江市|