How To Create A Boot SD Card For The Beaglebo..
How To Create A Boot SD Card For The Beaglebo..
How To Create A Boot SD Card For The Beaglebo..
The most straight forward way of applying the Linux image to the BeagleBone is by booting the Pages 4
system up from an external SD card. Since the BeagleBone black seems to be kind of a reference
platform for the YoctoProject, it provides a good instruction how to flash the image. The following Home
instruction is widely taken from this: How to boot the BeagleBone
black from an SD Card
Preconditions
You need a Linux host PC, a micro SD card and USB SD card reader in order to prepare the
image. Most of the following commands require root priviledges so it is recommended to execute
them as user root.
These steps need to be done only once. The SD card needs to provide two primary partitions. The
first one carries the bootloader, the second one the Linux kernel and the user land file system.
tail -f /var/log/kern.log
Insert the card reader to the Linux host and observe the log output which shall be similar to this:
kernel: sd 35:0:0:0: [sdb] 61497344 512-byte logical blocks: (31.4 GB/29.3 GiB)
kernel: sd 35:0:0:0: [sdb] Write Protect is off
...
kernel: sdb: sdb1 sdb2
That means the SD card can be accessed under /dev/sdb. In the example above the card has
been already partitioned which is the reason why sdb1 and sdb2 are present as well. Nevertheless
1 of 3 03/05/17, 7:27 PM
How to create a Boot SD Card for the BeagleBo... https://github.com/linneman/planck/wiki/How-to...
fdisk /dev/sdX
where /dev/sdX denotes the device file as indicated under point 1. Now create the a new partition
table by following these steps:
1. Initialize a new partition table by selecting o, then verify the partition table is empty by
selecting p.
2. Create a boot partition by selecting n for new, then p for primary, and 1 to specify the first
partition. Press enter to accept the default first sector and specify +72261K for specifying the
size in kilobytes.
3. Change the partition type to FAT16 by selecting t for type and c for W95 FAT32 (LBA).
4. Set the partition bootable by selecting a then 1.
5. Next, create the data partition for the root filesystem by selecting n for new, then p for
primary, and 2 to specify the second partition. Accept the default values for the first and last
sectors by pressing enter twice.
6. Press p to print the partition table. It should look similar to the one below.
7. Finally, commit the changes by selecting w to write the partition table and exit fdisk.
mkdir /mnt/sd1
mkdir /mnt/sd2
Whenever you insert the SD card or after having successfully executed the steps above you have
to mount the directories on the SD card by the following commands:
2 of 3 03/05/17, 7:27 PM
How to create a Boot SD Card for the BeagleBo... https://github.com/linneman/planck/wiki/How-to...
In case the partitions on the SD cards contain already some data you might want to remove it first
before actually applying a new or updated image:
rm -rf /mnt/sd1/*
rm -rf /mnt/sd2/*
IN the majority of the cases you will exclusively change the Linux kernel or the content on the
Linux file system image. In this case you can keep the first parition as it is and only update the
content of the second one.
The following instructions assume that your SD card partitions can be accessed under /dev/sdb1
and /dev/sdb2 as in the example above. It is possible that the SD card uses a different device file
on your system which in this case must be used instead. Refer to the first step for further details.
##project_root_folder##/build/tmp-eglibc/deploy/images/
Boot Loaders
Install the boot loaders:
cp MLO-beaglebone /mnt/sd1/MLO
cp u-boot-beaglebone.img /mnt/sd1/u-boot.img
where $IMAGE_TYPE currently denotes to ltenad2 for the standard CDC-RNDIS configuration
used with the manufactures images for BeagleBone black or ltenad2-cdc-ncm for the more
efficient and modified CDC-NCM drivers as used in connectivity modules based on MDM9640.
Whenever you remove the SD card from the host PC you have to unmount its partitions with the
following commands:
umount /mnt/sd1
umount /mnt/sd2
2017 GitHub, Inc. Terms Privacy Security Status Help Contact GitHub API Training Shop Blog About
3 of 3 03/05/17, 7:27 PM