Jump to content

Recover C2; uInitrd missing?


w0ndersp00n

Recommended Posts

A few weeks ago, after a firmware-upgrade my C2 bricked. It's blue led didn't flash any more and no serial console was available. Since I had everything setup just right I wanted to recover it using these steps here: https://docs.armbian.com/User-Guide_Recovery/#replacing-boot

 

Off course I replaced the packages with the ones for the C2. Specifically:

 

After following all the steps, I don't seem to have an uInitrd. I don't know if that would help booting up again, but from the symlinks section it's the only file missing after following all the steps:

 

image.png.29f96067c805301a2a315d9334354626.png

Does anybody know what went wrong or guide me towards the right steps to recover my C2?

Link to comment
Share on other sites

Generally, installing a kernel package triggers initramfs rebuild, but it's possible something got stuck or failed. This may not be your only issue.

 

Something you can try:

 

$ sudo apt-get install binfmt-support
$ sudo chroot /mnt/sdcard
# update-initramfs -u -k 5.9.14-meson64
update-initramfs: Generating /boot/initrd.img-5.9.14-meson64
W: Couldn't identify type of root file system for fsck hook
update-initramfs: Converting to u-boot format

 

If that doesn't work, and you're feeling adventurous, steal the kernel and boot environment from a known good Armbian image? Note the trailing slashes after the rsync arguments.

 

$ sudo kpartx -av Armbian_20.11.7_Odroidc4_focal_current_5.9.14.img
add map loop10p1 (253:1): 0 3088384 linear 7:11 8192
$ sudo mkdir /mnt/image
$ sudo mount /dev/mapper/loop10p1 /mnt/image
$ sudo rsync -av /mnt/image/boot/ /mnt/sdcard/boot/
$ sudo rsync -av /mnt/image/lib/modules/ /mnt/sdcard/lib/modules/
$ sudo umount /mnt/image
$ sudo kpartx -dv Armbian_20.11.7_Odroidc4_focal_current_5.9.14.img

 

Edited by tparys
Missed a step
Link to comment
Share on other sites

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