CarlFK / pici

3 stars 1 forks source link

linux_litex demo stuck on tftp - sometimes #19

Open CarlFK opened 2 months ago

CarlFK commented 2 months ago

following the steps on:

https://github.com/CarlFK/pici/wiki/Getting-Started#linux-litex

Sometimes it works, sometimes it gets stuck at:

Fetching from: UDP/6069 (no ascii spinner)

mithro commented 2 months ago

How do I reproduce this?

mithro commented 2 months ago

Carl says;


 * `ctrl-t q` to exit
 * The script will now try and load litex Linux stuff.
mithro commented 2 months ago
#!/usr/bin/expect

spawn lsusb
expect "Future Technology Devices International"
expect eof
spawn openFPGALoader -b arty --reset --verbose
expect "found 1 devices"
expect eof
wait
spawn tio /dev/ttyUSB1
expect "Avnet/Digilent Arty Evaluation Board"
expect "LEDs and switches GPIO Demonstration"
expect "BTN3: Return to this menu."
close
spawn openFPGALoader -b arty top.bit --verbose
expect "found 1 devices"
expect eof
wait
set timeout 30
spawn tio /dev/ttyUSB1
expect "Memtest OK"
expect "Fetching from: UDP/6069"
expect "Downloaded 4652188 bytes from Image over TFTP to 0xc0000000"
expect "Executing booted program at 0x50000000"
expect "Liftoff!"
expect "*** VexRiscv BIOS ***"
#expect "*** Supervisor ***"
expect "No DTB passed to the kernel"
#expect "Welcome to Buildroot"
expect "ogin:"
send -- "root\r"
expect "root@buildroot"

expect "#"
# ip addr show
send -- "ip addr show\r"
expect "eth0"
expect "#"

# ip addr add 192.168.100.50/24 dev eth0
send -- "ip addr add "
sleep 1
send -- "192.168."
sleep 1
send -- "100.50/24 "
sleep 1
send -- "dev eth0\r"

expect "#"
# ip link set eth0 up
send -- "ip link set "
sleep 1
send -- "eth0 up\r"

expect "#"
# ip addr show
send -- "ip addr show\r"

expect "#"
# ping 192.168.100.100
send -- "ping -c 5 "
sleep 1
send -- "192.168.100.100\r"
expect "#"

interact
wait