mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-11 15:37:23 +00:00
3202d33169
The more standard 'source' command provides identical functionality to the autoscr command. Environment variable names/values on the MVBC_P, MVBML7, kmeter1, mgcoge, and km8xx boards are updated to no longer refernce 'autoscr'. The 'autoscript' and 'autoscript_uname' environment variables are also removed. Signed-off-by: Peter Tyser <ptyser@xes-inc.com> Acked-by: Andre Schwarz <andre.schwarz@matrix-vision.de> Acked-by: Heiko Schocher <hs@denx.de>
48 lines
1.8 KiB
Text
48 lines
1.8 KiB
Text
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 e1000para addprofile 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=ttyPSC\${console_nr},\${baudrate}N8
|
|
else
|
|
setenv addcons setenv bootargs \${bootargs} console=tty0
|
|
fi
|
|
setenv e1000para setenv bootargs \${bootargs} e1000.TxDescriptors=256 e1000.SmartPowerDownEnable=1
|
|
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 ${oprofile} = yes;
|
|
then
|
|
setenv addprofile setenv bootargs \${bootargs} profile=\${profile}
|
|
fi
|
|
if test ${autoscript_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 e1000para addprofile 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 autoscript_boot no ==="
|
|
fi
|