diff options
author | Marcin Jabrzyk <marcin.jabrzyk@gmail.com> | 2014-03-14 13:13:22 +0100 |
---|---|---|
committer | Peter Korsgaard <peter@korsgaard.com> | 2014-10-12 18:27:49 +0200 |
commit | 620d4bc3af81104c5ccadfb360ae537f76fbd75a (patch) | |
tree | b5c1ba26ab762c6e0eca8a3766226d2d1f7c28d5 | |
parent | c0b4c45780e4ffe23101a407e7c4cde22e27815a (diff) | |
download | buildroot-620d4bc3af81104c5ccadfb360ae537f76fbd75a.tar.gz buildroot-620d4bc3af81104c5ccadfb360ae537f76fbd75a.zip |
beaglebone: better support for starting and creating images
- Added short readme file with description of first steps how to start.
- Added uEnv.txt so the board can start from SDCard
- Added post-image.sh script to copy included uEnv.txt to output/images
[Peter: strip trailing spaces]
Signed-off-by: Marcin Jabrzyk <marcin.jabrzyk@gmail.com>
Tested-by: Stephan Hoffmann <sho@relinux.de>
Tested-by: Marcin Jabrzyk <marcin.jabrzyk@gmail.com>
Acked-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
-rwxr-xr-x | board/beaglebone/post-image.sh | 6 | ||||
-rw-r--r-- | board/beaglebone/readme.txt | 62 | ||||
-rw-r--r-- | board/beaglebone/uEnv.txt | 3 | ||||
-rw-r--r-- | configs/beaglebone_defconfig | 1 |
4 files changed, 72 insertions, 0 deletions
diff --git a/board/beaglebone/post-image.sh b/board/beaglebone/post-image.sh new file mode 100755 index 0000000000..7441d07a00 --- /dev/null +++ b/board/beaglebone/post-image.sh @@ -0,0 +1,6 @@ +#!/bin/sh +# post-image.sh for BeagleBone +# 2014, Marcin Jabrzyk <marcin.jabrzyk@gmail.com> + +# copy the uEnv.txt to the output/images directory +cp board/beaglebone/uEnv.txt $BINARIES_DIR/uEnv.txt diff --git a/board/beaglebone/readme.txt b/board/beaglebone/readme.txt new file mode 100644 index 0000000000..c6d0aa0cd6 --- /dev/null +++ b/board/beaglebone/readme.txt @@ -0,0 +1,62 @@ +BeagleBone + +Intro +===== +To be able to use BeagleBone board with the images generated by +Buildroot, you have prepare the SDCard. + +How to build it +=============== + + $ make beaglebone_defconfig + +Then you can edit the build options using + + $ make menuconfig + +Compile all and build rootfs image: + + $ make + +Result of the build +------------------- + +After building, you should get a tree like this: + + output/images/ + ├── am335x-boneblack.dtb + ├── am335x-bone.dtb + ├── MLO + ├── rootfs.ext2 + ├── u-boot.img + ├── uEnv.txt + └── zImage + + +Prepare you SDCard +================== + +You need to prepare first partition in fat32 and marked as bootable, +and second where you will write rootfs. + +Copy the files to boot partition + + $ cp MLO u-boot.img zImage uEnv.txt *.dtb /media/zzzzz + +where /media/zzzzz is the mount point +Then you need to write the rootfs image onto SDCard: + + # dd if=rootfs.ext2 of=/dev/xxxxx + +where /dev/xxxxx is the second partition. Use: + + # fdisk -l + +to check for correct one. + +Finish +====== + +Unmount all mounted SDCard partitions and insert the card to BeagleBone. +Hold the "BOOT" button and apply power. Then release the "BOOT" button. +The output is available on the serial console. diff --git a/board/beaglebone/uEnv.txt b/board/beaglebone/uEnv.txt new file mode 100644 index 0000000000..d63843239f --- /dev/null +++ b/board/beaglebone/uEnv.txt @@ -0,0 +1,3 @@ +bootpart=0:1 +bootdir= +uenvcmd=run loaduimage;run loadramdisk;run findfdt;run loadfdt;run ramboot diff --git a/configs/beaglebone_defconfig b/configs/beaglebone_defconfig index f825fa940c..ddb583c8f5 100644 --- a/configs/beaglebone_defconfig +++ b/configs/beaglebone_defconfig @@ -8,6 +8,7 @@ BR2_TARGET_GENERIC_HOSTNAME="beaglebone" BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_DEVTMPFS=y BR2_TARGET_GENERIC_GETTY_PORT="ttyO0" # BR2_TARGET_GENERIC_REMOUNT_ROOTFS_RW is not set +BR2_ROOTFS_POST_IMAGE_SCRIPT="board/beaglebone/post-image.sh" # filesystem BR2_PACKAGE_AM33X_CM3=y |