path: root/board
diff options
authorGravatar Stephan Hoffmann <sho@relinux.de>2013-08-18 19:48:06 +0200
committerGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2013-08-23 06:54:33 +0200
commitfd4a399e4d4fad4c9985d7a3bbdca0f23da5a3da (patch)
tree3b4dd18785afa022e1bea4835187c30e4a743545 /board
parent96a1cf3838634737c60fc1d9c0e6577fee992175 (diff)
board: add support for the i.MX6 Wandboard platform
Wandboard is a low cost iMX6 system consiting of an EDM standard processor module and a small base board. http://www.wandboard.org Signed-off-by: Stephan Hoffmann <sho@relinux.de> Acked-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'board')
2 files changed, 57 insertions, 0 deletions
diff --git a/board/wandboard/readme.txt b/board/wandboard/readme.txt
new file mode 100644
index 0000000000..4dd9c2c7f0
--- /dev/null
+++ b/board/wandboard/readme.txt
@@ -0,0 +1,37 @@
+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.
+You need a micro SD card and a slot/adapter for your development machine.
+Partition the SD card leaving at least 1 MB in front of the first partition.
+Partition layout (example):
+Disk /dev/sdi: 3965 MB, 3965190144 bytes
+255 heads, 63 sectors/track, 482 cylinders
+Units = cylinders of 16065 * 512 = 8225280 bytes
+Sector size (logical/physical): 512 bytes / 512 bytes
+I/O size (minimum/optimal): 512 bytes / 512 bytes
+Disk identifier: 0x77b47445
+ Device Boot Start End Blocks Id System
+/dev/sdi1 2 482 3863632+ 83 Linux
+Copy u-boot and its environment to the SD card:
+sudo dd if=output/images/u-boot.imx bs=512 seek=2 of=/dev/sd<x>
+sudo dd if=output/images/uboot-env.bin bs=512 seek=768 of=/dev/sd<x>
+Copy the root filesystem:
+sudo dd if=output/images/rootfs.ext2 of=/dev/sd<x>1
+Alternative commands to copy root filesystem:
+sudo mkfs.ext4 /dev/sd<x>1
+sudo mount /dev/sd<x>1 /mnt
+sudo tar xf output/images/rootfs.tar -C /mnt
+sudo umount /mnt
diff --git a/board/wandboard/uboot-env.txt b/board/wandboard/uboot-env.txt
new file mode 100644
index 0000000000..7ca2b1a85c
--- /dev/null
+++ b/board/wandboard/uboot-env.txt
@@ -0,0 +1,20 @@
+bootcmd=mmc dev ${mmcdev}; if mmc rescan; then if run loadbootscript; then run bootscript; else if run loaduimage; then run mmcboot; else run netboot; fi; fi; else run netboot; fi
+bootscript=echo Running bootscript from mmc ...; source
+loadbootscript=ext2load mmc ${mmcdev}:${mmcpart} ${loadaddr} ${script};
+loaduimage=ext2load mmc ${mmcdev}:${mmcpart} ${loadaddr} ${uimage}
+mmcargs=setenv bootargs console=${console},${baudrate} root=${mmcroot}
+mmcboot=echo Booting from mmc ...; run mmcargs; bootm;
+mmcroot=/dev/mmcblk0p1 rootwait rw
+netargs=setenv bootargs console=${console},${baudrate} root=/dev/nfs ip=dhcp nfsroot=${serverip}:${nfsroot},v3,tcp
+netboot=echo Booting from net ...; run netargs; if test ${ip_dyn} = yes; then setenv get_cmd dhcp; else setenv get_cmd tftp; fi; ${get_cmd} ${uimage}; if test ${boot_fdt} = yes || test ${boot_fdt} = try; then if ${get_cmd} ${fdt_addr} ${fdt_file}; then bootm ${loadaddr} - ${fdt_addr}; else if test ${boot_fdt} = try; then bootm; else echo WARN: Cannot load the DT; fi; fi; else bootm; fi;