Open CarlFK opened 2 months ago
How do I reproduce this?
Carl says;
~/tests/linux_litex_t1
./t1.sh
[01:05:14.664] Error: Device file is locked by another process
then someone else is using it.) -- You should get a terminal with the standard Arty bitstream which looks like;
********************************************************
********************************************************
** Avnet/Digilent Arty Evaluation Board **
** LEDs and switches GPIO Demonstration **
********************************************************
********************************************************
**
Choose Task:
BTN0: Print PWM value.
BTN1: 'Cylon' LED display.
BTN2: Scrolling LED display.
BTN3: Return to this menu.
* `ctrl-t q` to exit
* The script will now try and load litex Linux stuff.
#!/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
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)