0
tpou

Armbian installation rescue after failed upgrade

Recommended Posts

Hello,

 

I have an OrangePi Zero H2 which until recently was running almost flawlessly with the Armbian_5.38_Debian_stretch_4_14_14 image.

 

When I did a kernel upgrade using "apt-get dist-upgrade" (because I had earlier the error message ~"failed to Load Kernel Modules", and dist-upgrade was recommended), and this dist-upgrade failed inbetween (probably because of power consumption), the SD card was left in unbootable state. (error msg see below [1])

 

I concluded that the /boot directory was corrupted, so from a new installation of Armbian_5.38_Debian_stretch_4_14_14 made elsewhere I copied all the /boot directory over to my SD card. This made the (first) SD card again bootable in the first stages, but it now will not continue after "starting version 232".

 

Is there a way to make the installation still working by copying parts of a fresh new installation of Armbian_5.38_Debian_stretch_4_14_14 over? I am asking because of the many changes made on the SD card in course of time.

 

(Such rescue method could be of general interest.)

 

Thanks
 

(I have meanwhile a new power supply.)

 

[1]

...

Scanning mmc 0:1...
Found U-Boot script /boot/boot.scr
3708 bytes read in 206 ms (17.6 KiB/s)
## Executing script at 43100000
U-boot loaded from SD
Boot script loaded from mmc
241 bytes read in 167 ms (1000 Bytes/s)
5400639 bytes read in 643 ms (8 MiB/s)
6972808 bytes read in 811 ms (8.2 MiB/s)
Found mainline kernel configuration
** File not found /boot/dtb/sun8i-h2-plus-orangepi-zero.dtb **
libfdt fdt_check_header(): FDT_ERR_BADMAGIC
No FDT memory address configured. Please configure
the FDT address via "fdt addr <address>" command.
Aborting!
** File not found /boot/dtb/overlay/sun8i-h3-analog-codec.dtbo **
** File not found /boot/dtb/overlay/sun8i-h3-usbhost2.dtbo **
** File not found /boot/dtb/overlay/sun8i-h3-usbhost3.dtbo **
** File not found /boot/dtb/overlay/sun8i-h3-fixup.scr **
## Loading init Ramdisk from Legacy Image at 43300000 ...
   Image Name:   uInitrd
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    5400575 Bytes = 5.2 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
ERROR: Did not find a cmdline Flattened Device Tree
Could not find a valid device tree
SCRIPT FAILED: continuing...

Device 0: Vendor: Generic  Rev: 8.07 Prod: Flash Disk
            Type: Removable Hard Disk
            Capacity: 30200.0 MB = 29.4 GB (61849600 x 512)
... is now current device
Scanning usb 0:1...
_sun8i_emac_eth_init: Timeout
missing environment variable: pxeuuid
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/01-02-42-80-86-76-5c
*** ERROR: `serverip' not set
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/00000000
*** ERROR: `serverip' not set

 

Share this post


Link to post
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...
0