testing latest ayufan u-boot (2017.09-rockchip-ayufan-1035-gd646df03ac)
#1
I just wanted to share some messing around I've been doing to my rock64 today.  Currently I'm running the latest linux-rock64 from ayufan on Ubuntu Bionic.  I am using SPI to boot my system to a SSD I have plugged into the USB3 port.

Occasionally the u-boot has issues seeing the SSD properly and I have to reset the board a few times to get it to actually boot.  This wouldn't be an issue if it wasn't for the occasional power outage sending my system to an unresponsive state remotely since it is trapped in the bootloader without manual assistance.  Being willing to experiment I was considering trying to build u-boot myself, but I didn't get that far - I had noticed there was a new release flagged for build 1035 in ayufan's github.

Now I know I could just download the flash and do it that route, in fact that's what I had done last time I messed with the bootloader to get it to boot off the SSD in the first place with a pre-release at the time.  But I saw that the latest build was in the cache for APT and decided I would try and do it the linux way.

So this is where I realize that there's a bit of a problem with manually updating the bootloader through APT.  If I were to execute the command:

Code:
apt install 2017.09-rockchip-ayufan-1035-gd646df03ac

I would be met with APT having a bit of a meltdown regarding dependencies, wanting to remove linux-rock64, board-package-rock64 and u-boot-rockchip-rock64-2017.09-rockchip-ayufan-1025-g482cd6ec8b.

Knowing that the bootloader is not actually a hard dependency for the other components that I didn't want to bother manually reinstalling, I tried to edit /var/lib/dpkg/status manually to attempt to fix this.  Finding the section for linux-rock64, all I had to do was change this:

Code:
Depends: board-package-rock64-0.7-30, u-boot-rockchip-rock64-2017.09-rockchip-ayufan-1025-g482cd6ec8b, linux-image-4.4.132-1075-rockchip-ayufan-ga83beded8524, linux-headers-4.4.132-1075-rockchip-ayufan-ga83beded8524

... into this:


Code:
Depends: board-package-rock64-0.7-30, linux-image-4.4.132-1075-rockchip-ayufan-ga83beded8524, linux-headers-4.4.132-1075-rockchip-ayufan-ga83beded8524
Recommends: u-boot-rockchip-rock64-2017.09-rockchip-ayufan-1025-g482cd6ec8b


Suddenly, I could change out the bootloader using APT to pull the new package and proceed to update the SPI!  Next time I update linux-rock64 it will want to downgrade back to 1025, which isn't really a big deal since I would still have to reflash the SPI manually anyway.

Now, I don't really suggest doing this the way that I did, since the next time I update or change anything the information would just be overwritten and APT will actually use the dependency chain to want to downgrade back to 1025.  But I think it is worth noting that the packages that pull the u-boot image could probably be changed to recommend a specific bootloader versus a hard dependency on it.  This would allow us to use APT with the --no-install-recommends (or alternatively --install-suggests if it was changed to a suggested dependency) to bypass which bootloader you use more easily.

Or... you know, just flash with an SD card like a normal person.  It was a fun experiment and hopefully sorted the SSD boot issue.

Have a happy holidays everyone!
  Reply
#2
Thanks on sharing your experience.

Wish you have a Merry Christmas and Happy New Year.
  Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  Rock64 Rev3 doesn't boot and leds blinking fast dishins 2 70 08-12-2019, 06:31 AM
Last Post: dishins
  Can Anyone help me install Wine latest on Rock64 Rock90 1 183 08-10-2019, 06:18 AM
Last Post: OnyxxOr
  Underclocking the Rock64 (latest stable linux image) va88 2 86 08-07-2019, 05:39 PM
Last Post: evilbunny
Star New Stable release from Ayufan (0.8.3) Luke 3 601 07-10-2019, 10:40 AM
Last Post: Malmgren
Star ayufan's 0.8.0rc12 (Rock64 Rev 3) Luke 1 326 06-13-2019, 02:05 AM
Last Post: pineadmin
Information New Builds from ayufan (0.8.X) w Video/3D/Mate desktop Luke 34 4,327 05-26-2019, 11:56 AM
Last Post: thatchunkylad1989
  Forcing u-boot to detect USB3 storage jandastroy 8 538 04-02-2019, 10:06 PM
Last Post: t4_4t
  Consistent boot from SSD? Is it possible? SirRyanTheGeek 1 150 04-02-2019, 12:28 PM
Last Post: SirRyanTheGeek
  Not able to boot Armbian [email protected] 4GB wundidajah 1 195 03-29-2019, 05:30 AM
Last Post: dkryder
  Ayufan Debian Stretch Openmediavault 4 5G Wifi Not Connecting Poincare 0 127 03-26-2019, 07:28 PM
Last Post: Poincare

Forum Jump:


Users browsing this thread: 1 Guest(s)