diff options
author | Andre Schwarz <andre.schwarz@matrix-vision.de> | 2010-04-01 21:26:55 +0200 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2010-04-10 00:06:05 +0200 |
commit | 1f2463d7642c582339c9f9d96471d5d2a169b9bb (patch) | |
tree | 5ff446160f2be2e3dbdae14b6ae29dbe6347dd90 /board/matrix_vision/mvsmr/bootscript | |
parent | 9acd4f0e914913796e4e56f550726d216f7b16e5 (diff) | |
download | u-boot-imx-1f2463d7642c582339c9f9d96471d5d2a169b9bb.zip u-boot-imx-1f2463d7642c582339c9f9d96471d5d2a169b9bb.tar.gz u-boot-imx-1f2463d7642c582339c9f9d96471d5d2a169b9bb.tar.bz2 |
Add initial support for Matrix Vision mvSMR board based on MPC5200B.
Signed-off-by: Andre Schwarz <andre.schwarz@matrix-vision.de>
Diffstat (limited to 'board/matrix_vision/mvsmr/bootscript')
-rw-r--r-- | board/matrix_vision/mvsmr/bootscript | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/board/matrix_vision/mvsmr/bootscript b/board/matrix_vision/mvsmr/bootscript new file mode 100644 index 0000000..02c802c --- /dev/null +++ b/board/matrix_vision/mvsmr/bootscript @@ -0,0 +1,42 @@ +echo +echo "==== running autoscript ====" +echo +setenv boot24 'bootm ${kernel_boot} ${mv_initrd_addr_ram}' +setenv ramkernel 'setenv kernel_boot ${loadaddr}' +setenv flashkernel 'setenv kernel_boot ${mv_kernel_addr}' +setenv cpird 'cp ${mv_initrd_addr} ${mv_initrd_addr_ram} ${mv_initrd_length}' +setenv bootfromflash run flashkernel cpird addcons boot24 +setenv bootfromnet 'tftp ${mv_initrd_addr_ram} ${initrd_name};run ramkernel' +if test ${console} = yes; +then +setenv addcons 'setenv bootargs ${bootargs} console=ttyS${console_nr},${baudrate}N8' +else +setenv addcons 'setenv bootargs ${bootargs} console=tty0' +fi +setenv set_static_ip 'setenv ipaddr ${static_ipaddr}' +setenv set_static_nm 'setenv netmask ${static_netmask}' +setenv set_static_gw 'setenv gatewayip ${static_gateway}' +setenv set_ip 'setenv ip ${ipaddr}::${gatewayip}:${netmask}' +if test ${servicemode} != yes; +then + echo "=== forced flash mode ===" + run set_static_ip set_static_nm set_static_gw set_ip bootfromflash +fi +if test ${autoscript_boot} != no; +then + if test ${netboot} = yes; + then + bootp + if test $? = 0; + then + echo "=== bootp succeeded -> netboot ===" + run set_ip bootfromnet addcons boot24 + else + echo "=== netboot failed ===" + fi + fi + echo "=== bootfromflash ===" + run set_static_ip set_static_nm set_static_gw set_ip bootfromflash +else + echo "=== boot stopped with autoscript_boot no ===" +fi |