eukrea_cpuimx27: update board support
Subsystems (2)
PATCH 1/1 eukrea_cpuimx27: update board support
- fix for LCD support
- environment update (last one before trying to use the generic env)
Signed-off-by Eric Bénard <[email protected]>
--- arch/arm/boards/eukrea_cpuimx27/env/bin/boot | 12 +++++++----- arch/arm/boards/eukrea_cpuimx27/env/bin/init | 10 ++++++++++ arch/arm/boards/eukrea_cpuimx27/env/config | 9 +++++++-- arch/arm/boards/eukrea_cpuimx27/eukrea_cpuimx27.c | 3 +++ 4 files changed, 27 insertions(+), 7 deletions(-)
arch/arm/boards/eukrea_cpuimx27/env/bin/boot +7 -5
@@ -27,12 +27,14 @@ else bootargs="$bootargs ip=off" fi -if [ x$root = xnand ]; then - bootargs="$bootargs root=$rootpart_nand rootfstype=jffs2" -elif [ x$root = xnor ]; then - bootargs="$bootargs root=$rootpart_nor rootfstype=jffs2" +if [ x$rootfstype = xubifs ]; then + bootargs="$bootargs root=ubi0:$ubiroot ubi.mtd=$rootpartnum rootfstype=ubifs" else - bootargs="$bootargs root=/dev/nfs nfsroot=$eth0.serverip:$nfsroot,v3,tcp" + if [ x$root = xnand ]; then + bootargs="$bootargs root=$rootpart_nand rootfstype=jffs2" + elif [ x$root = xnor ]; then + bootargs="$bootargs root=$rootpart_nor rootfstype=jffs2" + fi fi bootargs="$bootargs mtdparts=physmap-flash.0:$nor_parts;mxc_nand:$nand_parts"
arch/arm/boards/eukrea_cpuimx27/env/bin/init +10 -0
@@ -16,11 +16,21 @@ if [ -e /dev/nand0 ]; then source /env/bin/hush_hack fi +if [ -f /env/logo.bmp ]; then + bmp /env/logo.bmp + fb0.enable=1 +elif [ -f /env/logo.bmp.lzo ]; then + unlzo /env/logo.bmp.lzo /logo.bmp + bmp /logo.bmp + fb0.enable=1 +fi + if [ -z $eth0.ethaddr ]; then while [ -z $eth0.ethaddr ]; do readline "no MAC address set for eth0. please enter the one found on your board: " eth0.ethaddr done echo -a /env/config "eth0.ethaddr=$eth0.ethaddr" + saveenv fi echo
arch/arm/boards/eukrea_cpuimx27/env/config +7 -2
@@ -3,9 +3,11 @@ # can be either 'net', 'nor' or 'nand'' kernel=nor root=nor +rootfstype=ubifs -uimage=mx27/uImage -jffs2=mx27/rootfs.jffs2 +basedir=cpuimx27 +uimage=$basedir/uImage +rootfs=$basedir/rootfs autoboot_timeout=1
@@ -19,6 +21,9 @@ rootpart_nor="/dev/mtdblock3" nand_parts="-(nand)" rootpart_nand="" +rootpartnum=3 +ubiroot="eukrea-cpuimx27-rootfs" + nfsroot="" # use 'dhcp' to do dhcp in barebox and in kernel
arch/arm/boards/eukrea_cpuimx27/eukrea_cpuimx27.c +3 -0
@@ -275,6 +275,7 @@ static int eukrea_cpuimx27_devices_init(void)PA29_PF_VSYNC ,PA31_PF_OE_ACD ,GPIO_PORTE |5 |GPIO_GPIO |GPIO_OUT , + GPIO_PORTA | 25 | GPIO_GPIO | GPIO_OUT, #endif };
@@ -311,6 +312,8 @@ static int eukrea_cpuimx27_devices_init(void)register_device (&imxfb_dev);gpio_direction_output (GPIO_PORTE |5 ,0 );gpio_set_value (GPIO_PORTE |5 ,1 ); +gpio_direction_output (GPIO_PORTA |25 ,0 ); +gpio_set_value (GPIO_PORTA |25 ,1 );#endif armlinux_add_dram (&sdram_dev);
Signature · 7 lines
1.7.0.4 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox