Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bootloader stuck at "waiting for gdb... +$S05#b8" while loading firmware on Atlys board. #423

Open
shivmgg opened this issue Mar 31, 2018 · 0 comments

Comments

@shivmgg
Copy link
Contributor

shivmgg commented Mar 31, 2018

I followed this link to set up the development environment. The bootloader is stuck at the same point while loading firmware on Atlys board.

(LX P=atlys T=net C=or1k) shivm:~/gsoc/dev/litex-buildenv$ make firmware-load
mkdir -p build/atlys_net_or1k/
time python -u ./make.py --platform=atlys --target=net --cpu-type=or1k --iprange=192.168.100 -Ob toolchain_path //opt/Xilinx/ --no-compile-gateware
2>&1 | tee -a /home/shivm/gsoc/dev/litex-buildenv/build/atlys_net_or1k//output.20180331-145340.log; (exit ${PIPESTATUS[0]})
make[1]: warning: jobserver unavailable: using -j1. Add '+' to parent make rule.
make[1]: Entering directory '/home/shivm/gsoc/dev/litex-buildenv/build/atlys_net_or1k/software/libcompiler_rt'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/home/shivm/gsoc/dev/litex-buildenv/build/atlys_net_or1k/software/libcompiler_rt'
make[1]: warning: jobserver unavailable: using -j1. Add '+' to parent make rule.
make[1]: Entering directory '/home/shivm/gsoc/dev/litex-buildenv/build/atlys_net_or1k/software/libbase'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/home/shivm/gsoc/dev/litex-buildenv/build/atlys_net_or1k/software/libbase'
make[1]: warning: jobserver unavailable: using -j1. Add '+' to parent make rule.
make[1]: Entering directory '/home/shivm/gsoc/dev/litex-buildenv/build/atlys_net_or1k/software/libnet'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/home/shivm/gsoc/dev/litex-buildenv/build/atlys_net_or1k/software/libnet'
make[1]: warning: jobserver unavailable: using -j1. Add '+' to parent make rule.
make[1]: Entering directory '/home/shivm/gsoc/dev/litex-buildenv/build/atlys_net_or1k/software/bios'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/home/shivm/gsoc/dev/litex-buildenv/build/atlys_net_or1k/software/bios'
make[1]: warning: jobserver unavailable: using -j1. Add '+' to parent make rule.
make[1]: Entering directory '/home/shivm/gsoc/dev/litex-buildenv/build/atlys_net_or1k/software/uip'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/home/shivm/gsoc/dev/litex-buildenv/build/atlys_net_or1k/software/uip'
make[1]: warning: jobserver unavailable: using -j1. Add '+' to parent make rule.
make[1]: Entering directory '/home/shivm/gsoc/dev/litex-buildenv/build/atlys_net_or1k/software/firmware'
bash /home/shivm/gsoc/dev/litex-buildenv/firmware/version_data.sh

Check the version files exist

[ -e /home/shivm/gsoc/dev/litex-buildenv/build/atlys_net_or1k/software/include/../..//software/firmware/version_data.h ]
[ -e /home/shivm/gsoc/dev/litex-buildenv/build/atlys_net_or1k/software/include/../..//software/firmware/version_data.c ]
make[1]: Leaving directory '/home/shivm/gsoc/dev/litex-buildenv/build/atlys_net_or1k/software/firmware'

real 0m7.955s
user 0m7.688s
sys 0m0.280s
flterm --port=$(atlys-mode-switch --get-serial-device) --kernel=build/atlys_net_or1k//software/firmware/firmware.bin
WARNING:root:unbind-helper not found, will have to run as root!
[FLTERM] Starting...

BIOS>
BIOS> serialboot
Booting from serial...
Press Q or ESC to abort boot completely.
sL5DdSMmkekro
[FLTERM] Received firmware download request from the device.
[FLTERM] Uploading kernel (74672 bytes)...
[FLTERM] Upload complete (10.5KB/s).
[FLTERM] Booting the device.
[FLTERM] Done.
Executing booted program at 0x40000000

*** Unhandled exception 7 ***
pc 40500050 sr 00008019 ea 10003d4c
r0 00000000 r1 10003cc0 r2 00000000 r3 00000000
r4 00000000 r5 00000000 r6 40000000 r7 00000000
r8 fffffffb r9 00002a74 r10 00000100 r11 00000027
r12 00000000 r13 00000000 r14 00000000 r15 00000000
r16 00000000 r17 00000008 r18 00000000 r19 0000767c
r20 10003d61 r21 00000030 r22 00000000 r23 00000000
r24 00002a1f r25 00000000 r26 00000000 r27 00000000
r28 00000000 r29 00000000 r30 00000000 r31 00000000
stack:
10003cc0: 00000000 00000000 00000000 00000000
10003cd0: 00000000 00000000 00000002 10003d24
10003ce0: 00006c82 10003d08 00000100 0007ffff
10003cf0: 10003cf8 0000000a 10003d08 10003d3e
waiting for gdb... +$S05#b8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant