changes which need to be merged
This commit is contained in:
parent
6f101ed6dc
commit
217c8a5881
14
ap3825i.expect
Normal file → Executable file
14
ap3825i.expect
Normal file → Executable file
@ -5,8 +5,11 @@ exp_internal 1
|
||||
|
||||
set send_slow {1 0.005}
|
||||
|
||||
spawn picocom -b 115200 /dev/ttyUSB0 --logfile typescript
|
||||
|
||||
spawn picocom -b 115200 /dev/ttyUSB1 --logfile typescript
|
||||
set term_id $spawn_id
|
||||
spawn ./toggle_jg928a_port.sh
|
||||
set spawn_id $term_id
|
||||
#spawn ssh root@jg928a
|
||||
expect "DRAM"
|
||||
send " "
|
||||
|
||||
@ -18,7 +21,7 @@ send "new2day\n"
|
||||
|
||||
expect {
|
||||
"Boot (PRI)-> " {
|
||||
send -s {setenv ramboot_openwrt "setenv ipaddr 10.0.7.2; setenv serverip 10.0.7.1; tftpboot 0x2000000 openwrt-mpc85xx-p1020-extreme-networks_ws-ap3825i-initramfs-kernel.bin; interrupts off; bootm 0x2000000;"; setenv boot_openwrt "bootm 0xEC000000;"; setenv bootcmd "run boot_openwrt"; saveenv;
|
||||
send -s {setenv ramboot_openwrt "setenv ipaddr 192.168.0.2; setenv serverip 192.168.0.1; tftpboot 0x2000000 openwrt-mpc85xx-p1020-extreme-networks_ws-ap3825i-initramfs-kernel.bin; interrupts off; bootm 0x2000000;"; setenv boot_openwrt "bootm 0xEC000000;"; setenv bootcmd "run boot_openwrt"; saveenv;
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -31,10 +34,9 @@ expect {
|
||||
expect {
|
||||
"Please press Enter to activate this console." {
|
||||
send -s "\n"
|
||||
sleep 1
|
||||
sleep 50
|
||||
send -s {
|
||||
while ! sysupgrade https://downloads.openwrt.org/releases/23.05.2/targets/mpc85xx/p1020/openwrt-23.05.2-mpc85xx-p1020-extreme-networks_ws-ap3825i-squashfs-sysupgrade.bin; do
|
||||
echo retrying;
|
||||
sysupgrade https://downloads.openwrt.org/releases/23.05.2/targets/mpc85xx/p1020/openwrt-23.05.2-mpc85xx-p1020-extreme-networks_ws-ap3825i-squashfs-sysupgrade.bin;
|
||||
done;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user