upstream u-boot with additional patches for our devices/boards:
https://lists.denx.de/pipermail/u-boot/2017-March/282789.html (AXP crashes) ;
Gbit ethernet patch for some LIME2 revisions ;
with SPI flash support
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
1.4 KiB
43 lines
1.4 KiB
15 years ago
|
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
|