![]() |
Using flashrom on PineA64(+) - Printable Version +- PINE64 (https://forum.pine64.org) +-- Forum: PINE A64(+) (https://forum.pine64.org/forumdisplay.php?fid=4) +--- Forum: Linux on Pine A64(+) (https://forum.pine64.org/forumdisplay.php?fid=6) +---- Forum: Armbian (https://forum.pine64.org/forumdisplay.php?fid=84) +---- Thread: Using flashrom on PineA64(+) (/showthread.php?tid=10446) |
Using flashrom on PineA64(+) - fearg - 06-26-2020 Hey guys, wasn't sure exactly where to post this, but I suppose it is an Armbian on PineA64(+) issue? I'm trying to use my PINEA64 as a chip flasher to install coreboot on the ROM chip of my Thinkpad X220, as of these guides: https://tylercipriani.com/blog/2016/11/13/coreboot-on-the-thinkpad-x220-with-a-raspberry-pi/ https://karlcordes.com/coreboot-x220/ These guides use a Raspberry Pi with Raspbian however. I'm using the PineA64+ with 2GB RAM with Armbian buster (Linux 5.4.43-sunxi64) Although flashrom successfully recognises the chip Code: sudo flashrom -p linux_spi:dev=/dev/spidev0.0 It fails to read: Code: sudo flashrom -p linux_spi:dev=/dev/spidev0.0 -c MX25L6405 -r read01.bin I initially added this to /boot/armbianEnv.txt to get the SPI interface to work. (previously there was no /dev/spidev0.0 ) Code: overlays=spi-spidev The guide stated to do: Code: sudo modprobe spi_bcm2835 Which does not exist, so I loaded every module beginning with 'spi' into /etc/modules just to be sure. I'm using the pinout here to connect the PI-2 interface: http://files.pine64.org/doc/Pine%20A64%20Schematic/Pine%20A64%20Pin%20Assignment%20160119.pdf I don't really know where to go next in terms of troubleshooting. Last night I disconnected all the jumpers and set it up again today from scratch with a totally different set of jumpers. I would imagine bad pinout\connections would stop it from recognising the chips also? I'm using the Debian packaged version of flashrom, I didn't build it from source, in case that's relevant (as I'm having issues getting svn to work) EDIT: Success! As soon as I posted this thread, I was like "Hmm, maybe I should actually try compiling flashrom from source, that'd be pretty dumb if that was the problem". Compiling flashrom from source fixed the problem and I have got successful reads. For anyone reading googling this what I did was Quote: I got a heap of errors but it worked fine. |