-
-
Notifications
You must be signed in to change notification settings - Fork 505
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
Flash the SPI bootloader on ROCK 4 #6688
Comments
Just to be sure, this is the MTD device, right? ls -l /dev/mtdblock0 And this file exists: source /usr/lib/u-boot/platform_install.sh
ls -l "$DIR/rkspi_loader.img" Hence this command(s) to flash the SPI bootloader to the MTD device: source /usr/lib/u-boot/platform_install.sh
dd if="$DIR/rkspi_loader.img" of=/dev/mtdblock0 oflag=direct conv=notrunc status=progress The thread you linked is ancient, hence might be all wrong nowadays, but otherwise it matches the expectation. What I am wondering is whether the device tree overlay (first step) is still required. It is not on any other SBC with SPI flash, so I hope it is obsolete on those ROCK 4 models with SPI flash as well. Not all have it, is it? |
I can't test it right now, but last time I performed that guide it was reliable and it was three months ago. I cannot see it with that command, so the overlay could be necessary.
It surely did on Armbian if it worked, I believe.
I found this
I'm unsure about this one
Yep, but it still works as far as this summer, at least on their os
I believe so, because without the overlay at the moment I can't see that partition
Exactly. Some have the pads only and can be populated. Some have it preinstalled (like mine). Some - the newest - don't have it and it can't be soldered either. |
- ROCK 4 | Added an option to dietpi-config "Advanced Option" to flash the SPI bootloader, which enables USB and in case NVMe boot for DietPi images. Note that not all ROCK 4 models ship with an onboard SPI storage. DietPi-Config will check for it, in case apply a related device tree overlay and suggests a reboot. If after the reboot an SPI device has still not been found, your board seems to have none. Report back if this is definitely wrong. Many thanks to @andreagdipaolo for doing this request: #6688
Added with: 18d660a It is done with a little care, checking for both, the MTD device and the expected SPI U-Boot image. If no MTD device is found, it offers to apply the overlay. If after a reboot still no MTD device has been found, the ROCK 4 model seems to have none. Would be great if you could test it via our G_DEV_BRANCH dev
dietpi-config 3 |
Will do that tonight. Thanks! |
Not really. Files/dirs to keep a look at: |
Reboot prompted while exiting the menu, done, but the device has not appeared and dietpi-config is unable to update SPI. Because I only see I added it manually and now it appears, but after running It happened to me sometimes but I don't remember how I fixed that. However, via dietpi-config it worked flawlessly 😃
You just have to add the How will I switch to release versions when 8.23 will be stable? I can wait, I don't like to downgrade. |
Interesting that a U-Boot environment variable is required, rather than a kernel command-line parameter ( |
I just put it there, at the end.
About retutning to the release channel, is it simple and i will not lose anything, right? As soon as I do it when 8.23 is out. |
DietPi-Config will now do: G_CONFIG_INJECT 'param_spinor_spi_bus=' 'param_spinor_spi_bus=1' /boot/dietpiEnv.txt I also pushed this to the |
Creating a feature request
Is your feature request related to a problem? Please describe:
Describe the solution you'd like:
Additional context
Thanks!
The text was updated successfully, but these errors were encountered: