Hi, I am having trouble enabling SPI on renegrade for quite a while now. I followed this guide and have errors in dmesg and nothing shows up under /dev/. I also posted the errors in that guide but didn’t get any help so I’m creating a new thread there.
There was a bug in the bootloader when the images were generated. You can flash the latest bootloader using the libretech-flash-tool onto the image and it should fix the issues.
Removed the SD card from renegrade and inserted into my laptop.
Downloaded the libretech-fash-tool and installed the bootloader for roc-rk3328-cc following the guide. This is the output and the update seem to be successful.
BOOTLOADER_get: downloading roc-rk3328-cc bootloader to /tmp/tmp.BvaT8addBd.
--2024-04-21 13:53:03-- https://boot.libre.computer/ci//roc-rk3328-cc
Resolving boot.libre.computer (boot.libre.computer)... 192.53.162.101, 2600:3c00::f03c:93ff:fea1:358c
Connecting to boot.libre.computer (boot.libre.computer)|192.53.162.101|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 847360 (828K) [application/octet-stream]
Saving to: ‘/tmp/tmp.BvaT8addBd’
/tmp/tmp.BvaT8addBd 100%[================================================================>] 827.50K 3.39MB/s in 0.2s
2024-04-21 13:53:04 (3.39 MB/s) - ‘/tmp/tmp.BvaT8addBd’ saved [847360/847360]
BOOTLOADER_get: downloaded roc-rk3328-cc bootloader to /tmp/tmp.BvaT8addBd.
BOOTLOADER_flash: !!!WARNING!!! DEVICE mmcblk0 is mounted.
BOOTLOADER_flash: dd if=/tmp/tmp.BvaT8addBd of=/dev/mmcblk0 bs=512 seek=64 status=progress
BOOTLOADER_flash: run the above command to flash the target device?
(y/n)
dd if=/tmp/tmp.BvaT8addBd of=/dev/mmcblk0 bs=512 seek=64 status=progress
1655+0 records in
1655+0 records out
847360 bytes (847 kB, 828 KiB) copied, 0.487827 s, 1.7 MB/s
BOOTLOADER_flash: bootloader written to mmcblk0 successfully.
Then I put the SD card back on the renegrade. Booted and logged in. When I enabled the SPI, the outcome is the same. The same errors appear on the dmesg. Also, please note that there is no spi0-spidev in the ltdo list output. I’m not sure if this is ok or if there is a problem with my board.
I don’t know what I am doing wrong here. Should I also flash a fresh image with libretech-flash-tool after flashing the bootloader?
@saki92
We have just updated the bootloader to fix the SPI already enabled bug. Please update the bootloader on the image by using libretech-flash-tool.