fix tftpboot test on boards without autoboot, swap wan/lan
This is for MIPS. I spent a while investigating why the second virtio net device doesn't function in qemu mips malta u-boot, but with no success. Use the first one instead.
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
set timeout 30
|
||||
|
||||
spawn socat unix-connect:vm/console -
|
||||
expect "stop autoboot"
|
||||
send "\r"
|
||||
expect "=>"
|
||||
send "setenv ethact eth1\r"
|
||||
expect {
|
||||
"stop autoboot" { send "\r" }
|
||||
"=>" { send "\r" }
|
||||
}
|
||||
set fh [open "result/boot.scr"]
|
||||
while {[gets $fh line] >= 0} {
|
||||
expect "=>"
|
||||
|
@@ -23,7 +23,7 @@ run-liminix-vm \
|
||||
--background ./vm \
|
||||
--u-boot ${uboot}/u-boot.bin \
|
||||
--arch ${derivation.pkgs.stdenv.hostPlatform.qemuArch} \
|
||||
--lan "user,tftp=`pwd`" \
|
||||
--wan "user,tftp=`pwd`" \
|
||||
--disk-image result/rootfs \
|
||||
result/uimage result/rootfs
|
||||
|
||||
|
Reference in New Issue
Block a user