new file mode 100644
@@ -0,0 +1,22 @@
+image sdcard.img {
+ hdimage {
+ }
+
+ partition u-boot {
+ in-partition-table = "no"
+ image = "u-boot.imx"
+ offset = 1024
+ }
+
+ partition u-boot-env {
+ in-partition-table = "no"
+ image = "uboot-env.bin"
+ offset = 393216
+ }
+
+ partition rootfs {
+ partition-type = 0x83
+ image = "rootfs.ext2"
+ size = 512M
+ }
+}
@@ -2,7 +2,8 @@ Minimal board support for the Wandboard
Wandboard's homepage is here: http://www.wandboard.org/
-This config is only tested with the dual core wandboard.
+Note: Buildroot already prepared an "sdcard.img" image ready to boot, but this
+document explains how to do it manually.
Installing:
@@ -4,6 +4,7 @@ BR2_KERNEL_HEADERS_VERSION=y
BR2_DEFAULT_KERNEL_VERSION="3.0.101"
BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_3_0=y
BR2_TARGET_GENERIC_GETTY_PORT="ttymxc0"
+BR2_TARGET_MEDIA_GENIMAGE_CFG="board/wandboard/genimage.cfg"
BR2_TARGET_ROOTFS_EXT2=y
BR2_TARGET_ROOTFS_EXT2_4=y
BR2_TARGET_UBOOT=y
This patch adds a "genimage.cfg" genimage config file for the Wandboard. The final generated "sdcard.img" image is ready to use and contains the setup explained in the board readme.txt file: U-Boot, its environment, and an Ext4 rootfs partition. The defconfig and readme file have been slightly changed to enable this feature. Tested on a Wandboard Solo. Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com> --- board/wandboard/genimage.cfg | 22 ++++++++++++++++++++++ board/wandboard/readme.txt | 3 ++- configs/wandboard_defconfig | 1 + 3 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 board/wandboard/genimage.cfg