source: SVN/rincon/u-boot/board/matrix_vision/mvbc_p/mvbc_p_autoscript @ 55

Last change on this file since 55 was 55, checked in by Tim Harvey, 2 years ago

rincon: added latest u-boot source

restored form server backup

Signed-off-by: Tim Harvey <tharvey@…>

File size: 1.7 KB
2echo "==== running autoscript ===="
4setenv bootdtb bootm \${kernel_boot} \${mv_initrd_addr_ram} \${mv_dtb_addr_ram}
5setenv ramkernel setenv kernel_boot \${loadaddr}
6setenv flashkernel setenv kernel_boot \${mv_kernel_addr}
7setenv cpird cp \${mv_initrd_addr} \${mv_initrd_addr_ram} \${mv_initrd_length}
8setenv bootfromflash run flashkernel cpird ramparam addcons e1000para bootdtb
9setenv getdtb tftp \${mv_dtb_addr_ram} \${dtb_name}
10setenv cpdtb cp \${mv_dtb_addr} \${mv_dtb_addr_ram} 0x2000
11setenv rundtb fdt addr \${mv_dtb_addr_ram}\;fdt boardsetup
12setenv bootfromnet tftp \${mv_initrd_addr_ram} \${initrd_name}\;run ramkernel
13if test ${console} = yes;
15setenv addcons setenv bootargs \${bootargs} console=ttyPSC\${console_nr},\${baudrate}N8
17setenv addcons setenv bootargs \${bootargs} console=tty0
19setenv e1000para setenv bootargs \${bootargs} e1000.TxDescriptors=1500 e1000.SmartPowerDownEnable=1
20setenv set_static_ip setenv ipaddr \${static_ipaddr}
21setenv set_static_nm setenv netmask \${static_netmask}
22setenv set_static_gw setenv gatewayip \${static_gateway}
23setenv set_ip setenv ip \${ipaddr}::\${gatewayip}:\${netmask}
24setenv ramparam setenv bootargs root=/dev/ram0 ro rootfstype=squashfs
25if test ${autoscr_boot} != no;
27  if test ${netboot} = yes;
28  then
29    bootp
30    if test $? = 0;
31    then
32      echo "=== bootp succeeded -> netboot ==="
33      run set_ip
34      run getdtb rundtb bootfromnet ramparam addcons e1000para bootdtb
35    else
36      echo "=== netboot failed ==="
37    fi
38  fi
39  run set_static_ip set_static_nm set_static_gw set_ip
40  echo "=== bootfromflash ==="
41  run cpdtb rundtb bootfromflash
43  echo "=== boot stopped with autoscr_boot no ==="
Note: See TracBrowser for help on using the repository browser.