apertus-open-source-cinema / axiom-firmware

AXIOM firmware (linux image, gateware and software tools)
GNU General Public License v3.0
171 stars 54 forks source link

axiom-start.sh issue #115

Closed se6astian-pi closed 4 years ago

se6astian-pi commented 5 years ago

during the axiom-start.sh routine this happens:

read buffer = 0x18390200 /usr/axiom/script/axiom-start.sh: line 52: ./rf_sel.py: No such file or directory /usr/axiom/script/axiom-start.sh: line 53: ./pic_jtag_pcie.py: No such file or directory Setting gain x1 (0,0x3eb)...

se6astian-pi commented 5 years ago

files are there in /opt/axiom-firmware/software/bringup-scripts/ but they are not executable (permissions) and no softlink in place from /usr/axiom/scipt/

rroohhh commented 5 years ago

with which version (commit) is this happening? (you can find it in /etc/issue)

se6astian-pi commented 5 years ago

I fixed it by creating 3 softlinks in the end.

Firmware version: "axiom-beta-b9cbb064.img.xz"

rroohhh commented 5 years ago

Hmm strange that it broke while there were (seemingly) no relevant changes to scripts or bringup-scripts.

We should figure out some way to automatically test this is qemu.

se6astian-pi commented 5 years ago

/etc/issue shows:

Build b9cbb064-dirty

se6astian-pi commented 5 years ago

any progress on this?

getting /usr/axiom/script/axiom-start.sh: line 53: ./pic_jtag_pcie.py: Permission denied now on remote beta where I had fixed it already but probably some work has been done in the meantime.

rroohhh commented 5 years ago

I did no work on the remote beta, did anybody update / change the installed firmware?

se6astian-pi commented 5 years ago

I didn't but gsoc students use it regularly and rex just told me he flashed the firmware for Bertl with a new image around 3-5 weeks ago.

se6astian-pi commented 4 years ago

flashed the latest release and now have this issue again....

se6astian-pi commented 4 years ago

detailed info fix (as root):

cd /opt/axiom-firmware/software/bringup-scripts/ chmod +x pic_jtag_pcie.py chmod +x rf_sel.py

ln -s pic_jtag_pcie.py ../scripts/pic_jtag_pcie.py ln -s rf_sel.py ../scripts/rf_sel.py

se6astian-pi commented 4 years ago

hmm, now new error:

selecting RFW [bus A] ... Traceback (most recent call last): File "./pic_jtag_pcie.py", line 10, in from jtag import * ModuleNotFoundError: No module named 'jtag' Setting gain x1 (0,0x3eb)...

probably another missing softlink/file, what could the 3rd softlink I mentioned above I created could have been?

rroohhh commented 4 years ago

seems like jtag.py is missing

se6astian-pi commented 4 years ago

yeah, that did it, thanks!

last command: cd /opt/axiom-firmware/software/bringup-scripts/ ln -s ../scripts/jtag.py jtag.py

se6astian-pi commented 4 years ago

icsp.py needs the same treatment:

read buffer = 0x18390200 Traceback (most recent call last): File "./rf_sel.py", line 11, in from icsp import * ModuleNotFoundError: No module named 'icsp' Traceback (most recent call last): File "./pic_jtag_pcie.py", line 28, in jtag_tms(i2c, base, "01100") # goto Shift-IR File "/opt/axiom-firmware/software/scripts/jtag.py", line 108, in jtag_tms jtag_seq(i2c, base, [0x02, 0x02], data, mod, val) File "/opt/axiom-firmware/software/scripts/jtag.py", line 70, in jtag_seq i2c.write_i2c_block_data(last + 1, mod, [val]) OSError: [Errno 6] No such device or address Setting gain x1 (0,0x3eb)... 0x0

rroohhh commented 4 years ago

Should be fixed atleast with fb4149086a4d8815bc7eb4d44a96a50c24b735c0