I’ve recently bricked a router (Buffalo WHR-G125) with a bad flash and I am looking to recover it by connecting to its JTAG port to re-flash it. I have a 5 year old program, tjtag-pi which should do it from Github. I can compile it and run it in without any parameters. As soon as I run properly with a “./tjtag -probeonly” I get:
root@osmc:/usr/src/tjtag-pi# ./tjtag -probeonly
EJTAG Debrick Utility v3.0.1 Tornado-MOD
Failed to open /dev/parport0: No such file or directory
There is no parport0 device in OSMC so how do I get it there?
It probably needs it because the original program used JTAG via a reworked parallel port cable.
I have found pi-parport on Github but I cannot get it to compile.
Making the dtc bit gives:
root@osmc:/usr/src/pi-parport/dts# make
dtc -@ -I dts -O dtb -o parport-gpio.dtbo parport-gpio.dts
make: dtc: Command not found
Makefile:4: recipe for target 'parport-gpio.dtbo' failed
make: *** [parport-gpio.dtbo] Error 127
“aptget-install dtc” does nothing and I am not sure how to hunt down which package provides it.
Doing the driver bit gives:
root@osmc:/usr/src/pi-parport/driver# make clean
make: Warning: File 'Makefile' has modification time 3594 s in the future
make -C /lib/modules/4.14.34-1-osmc/build M=/usr/src/pi-parport/driver clean
make[1]: *** /lib/modules/4.14.34-1-osmc/build: No such file or directory. Stop.
Makefile:14: recipe for target 'clean' failed
make: *** [clean] Error 2
and changing the path in the makefile to “/lib/modules/$(KERNEL_VERSION)/kernel” gives:
root@osmc:/usr/src/pi-parport/driver# make
make: Warning: File 'Makefile' has modification time 3594 s in the future
make -C /lib/modules/4.14.34-1-osmc/kernel M=/usr/src/pi-parport/driver modules
make[1]: Entering directory '/lib/modules/4.14.34-1-osmc/kernel'
make[1]: *** No rule to make target 'modules'. Stop.
make[1]: Leaving directory '/lib/modules/4.14.34-1-osmc/kernel'
Makefile:14: recipe for target 'modules' failed
make: *** [modules] Error 2
But obviously at this point I don’t have the dtoverlay=parport-gpio loaded as the earlier compile failed.
Can anyone please help me get this going? Is there an alternative source for a parport0 driver?
Thanks, Nick.