diff options
author | Andre Schwarz <andre.schwarz@matrix-vision.de> | 2008-08-20 11:11:52 +0200 |
---|---|---|
committer | Kim Phillips <kim.phillips@freescale.com> | 2008-08-25 17:11:20 -0500 |
commit | 1a9eeb78b825bfade31d7606a2fe3b9eca9e35be (patch) | |
tree | dd357f88f3f45602808be9c1f9565f4271e66a3d /board/matrix_vision/mvblm7/mvblm7_autoscript | |
parent | 002d27caf26e7eb913d474d3a91f67d56c8c31d5 (diff) | |
download | u-boot-imx-1a9eeb78b825bfade31d7606a2fe3b9eca9e35be.zip u-boot-imx-1a9eeb78b825bfade31d7606a2fe3b9eca9e35be.tar.gz u-boot-imx-1a9eeb78b825bfade31d7606a2fe3b9eca9e35be.tar.bz2 |
change mvBL-M7 default env and move to vendor subdir
fix mvBL-M7 config and move to matrix_vision subdir
Signed-off-by: Andre Schwarz <andre.schwarz@matrix-vision.de>
Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
Diffstat (limited to 'board/matrix_vision/mvblm7/mvblm7_autoscript')
-rw-r--r-- | board/matrix_vision/mvblm7/mvblm7_autoscript | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/board/matrix_vision/mvblm7/mvblm7_autoscript b/board/matrix_vision/mvblm7/mvblm7_autoscript new file mode 100644 index 0000000..6f9357f --- /dev/null +++ b/board/matrix_vision/mvblm7/mvblm7_autoscript @@ -0,0 +1,43 @@ +echo +echo "==== running autoscript ====" +echo +setenv bootdtb bootm \${kernel_boot} \${mv_initrd_addr_ram} \${mv_dtb_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 ramparam addcons bootdtb +setenv getdtb tftp \${mv_dtb_addr_ram} \${dtb_name} +setenv cpdtb cp \${mv_dtb_addr} \${mv_dtb_addr_ram} 0x2000 +setenv rundtb fdt addr \${mv_dtb_addr_ram}\;fdt boardsetup +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} +setenv ramparam setenv bootargs root=/dev/ram0 ro rootfstype=squashfs +if test ${autoscr_boot} != no; +then + if test ${netboot} = yes; + then + bootp + if test $? = 0; + then + echo "=== bootp succeeded -> netboot ===" + run set_ip + run getdtb rundtb bootfromnet ramparam addcons bootdtb + else + echo "=== netboot failed ===" + fi + fi + run set_static_ip set_static_nm set_static_gw set_ip + echo "=== bootfromflash ===" + run cpdtb rundtb bootfromflash +else + echo "=== boot stopped with autoscr_boot no ===" +fi |