Jump to content

rock64: "Wrong Ramdisk Image Format" after upgrade to 6.12.9


Recommended Posts

Posted

Hello,

 

While upgrading my rock64 today, my Linux kernel was upgraded from 6.6.32 to 6.12.9.

After rebooting, the board refused to boot:

Boot script loaded from usb 0                                               |
166 bytes read in 407 ms (0 Bytes/s)                                        |
26129699 bytes read in 1634 ms (15.3 MiB/s)                                 |
36473344 bytes read in 48420 ms (735.4 KiB/s)                               |
54333 bytes read in 826 ms (63.5 KiB/s)                                     |
2825 bytes read in 1653 ms (1000 Bytes/s)                                   |
Applying kernel provided DT fixup script (rockchip-fixup.scr)               |
## Executing script at 09000000                                             |
Unknown command 'kaslrseed' - try 'help'                                    |
Wrong Ramdisk Image Format                                                  |
Ramdisk image is corrupt or invalid                                         |

 

I tried to manually copy the /boot files from the latest image, but the result was the same.

I was able to recover it by copying the /boot files from an image from the archive (I used Armbian_23.11.1_Rock64_bookworm_current_6.1.63.img.xz), then once booted I used armbian-config to install 6.6.63 which also works fine.

 

I'm just wondering if anyone else noticed the same issue with the 6.12.9 kernel (I did a quick search but I didn't find anything similar recently - sorry if I missed it) or if it's only for me?

<
Posted

Hello/

Yes, I have also stumbled on this.

It took me a night to figure out and fix what had happened.

My rock64 was set to auto-reboot on unattended upgrades, and after auto upgrade to 6.12.9 on 2025-01-16 it refused to boot (I found 6.12.9 in /boot dir).

After connecting UART I got the same error:

DDR version 1.13 20180428
ID:0x805 N
In
SRX
LPDDR3
786MHz
Bus Width=32 Col=11 Bank=8 Row=15/15 CS=2 Die Bus-Width=32 Size=4096MB
ddrconfig:7
OUT

U-Boot SPL 2017.09-rockchip-ayufan-1065-g95f6152134 (Apr 06 2020 - 08:10:17)
board_init_sdmmc_pwr_en
setup_ddr_param  1
booted from SPI flash
Trying to boot from SPI
NOTICE:  BL31: v1.3(debug):9d3f591
NOTICE:  BL31: Built : 14:39:02, Jan 17 2018
NOTICE:  BL31:Rockchip release version: v1.3
INFO:    ARM GICv2 driver initialized
INFO:    Using opteed sec cpu_context!
INFO:    boot cpu mask: 1
INFO:    plat_rockchip_pmu_init: pd status 0xe
INFO:    BL31: Initializing runtime services
WARNING: No OPTEE provided by BL2 boot loader, Booting device without OPTEE initialization. SMC`s dK
ERROR:   Error initializing runtime service opteed_fast
INFO:    BL31: Preparing for EL3 exit to normal world
INFO:    Entry point address = 0x200000
INFO:    SPSR = 0x3c9


U-Boot 2017.09-rockchip-ayufan-1065-g95f6152134 (Apr 06 2020 - 08:10:39 +0000)

Model: Pine64 Rock64
DRAM:  4 GiB
MMC:   rksdmmc@ff520000: 0, rksdmmc@ff500000: 1
SF: Detected gd25q128 with page size 256 Bytes, erase size 4 KiB, total 16 MiB
*** Warning - bad CRC, using default environment

In:    serial@ff130000
Out:   serial@ff130000
Err:   serial@ff130000
Model: Pine64 Rock64
misc_init_r
cpuid=55524b503039303135000000000e2b23
serial=2e629a67b70686a
Net:   eth0: ethernet@ff540000
Hit any key to stop autoboot:  0 
Card did not respond to voltage select!
mmc_init: -95, time 9
Card did not respond to voltage select!
mmc_init: -95, time 10
starting USB...
USB0:   USB EHCI 1.00
USB1:   USB OHCI 1.0
USB2:   Core Release: 3.10a
USB3:   Register 2000140 NbrPorts 2
Starting the controller
USB XHCI 1.10
scanning bus 0 for devices... 2 USB Device(s) found
scanning bus 1 for devices... 1 USB Device(s) found
scanning bus 2 for devices... 1 USB Device(s) found
scanning bus 3 for devices... 1 USB Device(s) found
       scanning usb for storage devices... 1 Storage Device(s) found

Device 0: Vendor: JMicron  Rev: 0409 Prod: Generic         
            Type: Hard Disk
            Capacity: 122104.3 MB = 119.2 GB (250069680 x 512)
... is now current device
Scanning usb 0:1...
Found U-Boot script /boot/boot.scr
3185 bytes read in 235 ms (12.7 KiB/s)
## Executing script at 00500000
Boot script loaded from usb 0
166 bytes read in 209 ms (0 Bytes/s)
17928114 bytes read in 1128 ms (15.2 MiB/s)
36473344 bytes read in 1935 ms (18 MiB/s)
54333 bytes read in 1433 ms (36.1 KiB/s)
2825 bytes read in 1809 ms (1000 Bytes/s)
Applying kernel provided DT fixup script (rockchip-fixup.scr)
## Executing script at 09000000
Wrong Ramdisk Image Format
Ramdisk image is corrupt or invalid
SCRIPT FAILED: continuing...
Speed: 1000, full duplex
BOOTP broadcast 1
BOOTP broadcast 2
BOOTP broadcast 3
...

 

Thanks to your message and recovery instructions, I managed to repeat it and got a working board! 👍

But now I used armbian-config and selected "SY203   -  Disable Armbian kernel upgrades"

 

Seems like it's working

# apt-mark showhold
armbian-firmware
linux-dtb-current-rockchip64
linux-image-current-rockchip64

 

Thank you very much! 🙏

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines