aboutsummaryrefslogtreecommitdiff
path: root/board/beaglebone
diff options
context:
space:
mode:
authorGravatar Ezequiel Garcia <ezequiel@vanguardiasur.com.ar>2016-06-04 18:29:09 -0300
committerGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2016-06-06 22:38:19 +0200
commit7d0b7d3c27a6795667e1aeb18e9978e1a44361e5 (patch)
tree7a7116138611fd8808d0bbad2f290ac9ca1ade2d /board/beaglebone
parent2704f23589af5326b3c592bc1e8e55cd610037a9 (diff)
downloadbuildroot-7d0b7d3c27a6795667e1aeb18e9978e1a44361e5.tar.gz
buildroot-7d0b7d3c27a6795667e1aeb18e9978e1a44361e5.tar.bz2
configs/beaglebone: Use genimage to produce the SD card image
Signed-off-by: Ezequiel Garcia <ezequiel@vanguardiasur.com.ar> [Thomas: added host dosfstools to the defconfig, needed to build a SD card image with genimage when a FAT partition is listed in the genimage configuration.] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'board/beaglebone')
-rwxr-xr-xboard/beaglebone/post-image.sh14
-rw-r--r--board/beaglebone/readme.txt30
2 files changed, 15 insertions, 29 deletions
diff --git a/board/beaglebone/post-image.sh b/board/beaglebone/post-image.sh
index 7441d07a00..ceeec68520 100755
--- a/board/beaglebone/post-image.sh
+++ b/board/beaglebone/post-image.sh
@@ -2,5 +2,19 @@
# post-image.sh for BeagleBone
# 2014, Marcin Jabrzyk <marcin.jabrzyk@gmail.com>
+BOARD_DIR="$(dirname $0)"
+
# copy the uEnv.txt to the output/images directory
cp board/beaglebone/uEnv.txt $BINARIES_DIR/uEnv.txt
+
+GENIMAGE_CFG="${BOARD_DIR}/genimage.cfg"
+GENIMAGE_TMP="${BUILD_DIR}/genimage.tmp"
+
+rm -rf "${GENIMAGE_TMP}"
+
+genimage \
+ --rootpath "${TARGET_DIR}" \
+ --tmppath "${GENIMAGE_TMP}" \
+ --inputpath "${BINARIES_DIR}" \
+ --outputpath "${BINARIES_DIR}" \
+ --config "${GENIMAGE_CFG}"
diff --git a/board/beaglebone/readme.txt b/board/beaglebone/readme.txt
index 089c49a8ef..43ebe53aee 100644
--- a/board/beaglebone/readme.txt
+++ b/board/beaglebone/readme.txt
@@ -28,35 +28,7 @@ After building, you should get a tree like this:
├── am335x-bone.dtb
├── MLO
├── rootfs.ext2
+ ├── sdcard.img
├── u-boot.img
├── uEnv.txt
└── zImage
-
-
-Prepare your 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.