Jump to content

Cubieboard II fails to boot after upgrade


paul alting

Recommended Posts

My trusty Cubieboard II has been working great for a long time now, but after doing an upgade, it fails to now boot.

It operates headless as a simple server for my off-grid home energy system and Lithium battery monitoring.

 

I found I wasn't able to post this over in the A20 section, so hopefully someone from over in that section will come over here to read.

 

Details I still have in my terminal screen, so I can copy to here.

From before update and upgrade, the log in banner is the following:

Welcome to ARMBIAN 5.58.180812 nightly Debian GNU/Linux 9 (stretch) 4.14.90-sunxi 

 

From the upgrade command, showing packages to be upgraded:

dev@cubieboard2:~$ sudo apt upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
  apt apt-transport-https apt-utils armbian-config armbian-firmware armbian-tools-stretch base-files hostapd libapt-inst2.0 libapt-pkg5.0 libnss-myhostname libpam-systemd libsystemd0 libudev1 linux-headers-next-sunxi linux-image-next-sunxi linux-libc-dev sunxi-tools systemd
  systemd-sysv tzdata udev
22 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 45.5 MB of archives.
After this operation, 2,554 kB disk space will be freed.
Do you want to continue? [Y/n] y

 

Then the package getting and upgrading, notice the error with not being able to remove directories:

Get:8 https://beta.armbian.com stretch/main armhf armbian-config all 5.72.190122 [40.7 kB]
Get:9 https://beta.armbian.com stretch/main armhf armbian-firmware all 5.72.190122 [5,754 kB]
Get:1 http://cdn-fastly.deb.debian.org/debian stretch/main armhf base-files armhf 9.9+deb9u7 [67.4 kB]                                                                                                                                                                                     
Get:2 http://cdn-fastly.deb.debian.org/debian stretch/main armhf libapt-pkg5.0 armhf 1.4.9 [851 kB]                                                                                                                                                                                        
Get:16 http://security.debian.org stretch/updates/main armhf libsystemd0 armhf 232-25+deb9u8 [260 kB]                                                                                                                                                                                      
Get:17 http://security.debian.org stretch/updates/main armhf libnss-myhostname armhf 232-25+deb9u8 [103 kB]                                                                                                                                                                                
Get:18 http://security.debian.org stretch/updates/main armhf libpam-systemd armhf 232-25+deb9u8 [176 kB]                                                                                                                                                                                   
Get:19 http://security.debian.org stretch/updates/main armhf systemd armhf 232-25+deb9u8 [2,274 kB]                                                                                                                                                                                        
Get:3 http://cdn-fastly.deb.debian.org/debian stretch/main armhf libapt-inst2.0 armhf 1.4.9 [190 kB]                                                                                                                                                                                       
Get:4 http://cdn-fastly.deb.debian.org/debian stretch/main armhf apt armhf 1.4.9 [1,199 kB]                                                                                                                                                                                                
Get:20 http://security.debian.org stretch/updates/main armhf udev armhf 232-25+deb9u8 [1,077 kB]                                                                                                                                                                                           
Get:5 http://cdn-fastly.deb.debian.org/debian stretch/main armhf apt-utils armhf 1.4.9 [398 kB]                                                                                                                                                                                            
Get:6 http://cdn-fastly.deb.debian.org/debian stretch-updates/main armhf tzdata all 2018i-0+deb9u1 [273 kB]                                                                                                                                                                                
Get:21 http://security.debian.org stretch/updates/main armhf libudev1 armhf 232-25+deb9u8 [120 kB]                                                                                                                                                                                         
Get:7 http://cdn-fastly.deb.debian.org/debian stretch/main armhf apt-transport-https armhf 1.4.9 [167 kB]                                                                                                                                                                                  
Get:22 http://security.debian.org stretch/updates/main armhf systemd-sysv armhf 232-25+deb9u8 [81.8 kB]                                                                                                                                                                                    
Get:10 https://beta.armbian.com stretch/main armhf armbian-tools-stretch armhf 5.72.190122 [12.4 kB]                                                                                                                                                                                       
Get:11 https://beta.armbian.com stretch/stretch-utils armhf hostapd armhf 3:2.7-99~armbian5.72.190122+1 [384 kB]                                                                                                                                                                           
Get:12 https://beta.armbian.com stretch/main armhf linux-headers-next-sunxi armhf 5.72.190122 [10.6 MB]                                                                                                                                                                                    
Get:13 https://beta.armbian.com stretch/main armhf linux-image-next-sunxi armhf 5.72.190122 [20.4 MB]                                                                                                                                                                                      
Get:14 https://beta.armbian.com stretch/main armhf linux-libc-dev armhf 5.70.190112 [1,007 kB]                                                                                                                                                                                             
Get:15 https://beta.armbian.com stretch/stretch-utils armhf sunxi-tools armhf 1.4.2-2~armbian5.72.190122+1 [40.1 kB]                                                                                                                                                                       
Fetched 45.5 MB in 12min 30s (60.6 kB/s)                                                                                                                                                                                                                                                   
Preconfiguring packages ...
(Reading database ... 57982 files and directories currently installed.)
Preparing to unpack .../base-files_9.9+deb9u7_armhf.deb ...
Unpacking base-files (9.9+deb9u7) over (9.9+deb9u6) ...
Setting up base-files (9.9+deb9u7) ...
Installing new version of config file /etc/debian_version ...
(Reading database ... 57982 files and directories currently installed.)
Preparing to unpack .../libapt-pkg5.0_1.4.9_armhf.deb ...
Unpacking libapt-pkg5.0:armhf (1.4.9) over (1.4.8) ...
Setting up libapt-pkg5.0:armhf (1.4.9) ...
(Reading database ... 57982 files and directories currently installed.)
Preparing to unpack .../libapt-inst2.0_1.4.9_armhf.deb ...
Unpacking libapt-inst2.0:armhf (1.4.9) over (1.4.8) ...
Preparing to unpack .../archives/apt_1.4.9_armhf.deb ...
Unpacking apt (1.4.9) over (1.4.8) ...
Setting up apt (1.4.9) ...
(Reading database ... 57982 files and directories currently installed.)
Preparing to unpack .../apt-utils_1.4.9_armhf.deb ...
Unpacking apt-utils (1.4.9) over (1.4.8) ...
Preparing to unpack .../libsystemd0_232-25+deb9u8_armhf.deb ...
Unpacking libsystemd0:armhf (232-25+deb9u8) over (232-25+deb9u6) ...
Setting up libsystemd0:armhf (232-25+deb9u8) ...
(Reading database ... 57982 files and directories currently installed.)
Preparing to unpack .../libnss-myhostname_232-25+deb9u8_armhf.deb ...
Unpacking libnss-myhostname:armhf (232-25+deb9u8) over (232-25+deb9u6) ...
Preparing to unpack .../libpam-systemd_232-25+deb9u8_armhf.deb ...
Unpacking libpam-systemd:armhf (232-25+deb9u8) over (232-25+deb9u6) ...
Preparing to unpack .../systemd_232-25+deb9u8_armhf.deb ...
Unpacking systemd (232-25+deb9u8) over (232-25+deb9u6) ...
Preparing to unpack .../udev_232-25+deb9u8_armhf.deb ...
Unpacking udev (232-25+deb9u8) over (232-25+deb9u6) ...
Preparing to unpack .../libudev1_232-25+deb9u8_armhf.deb ...
Unpacking libudev1:armhf (232-25+deb9u8) over (232-25+deb9u6) ...
Setting up libudev1:armhf (232-25+deb9u8) ...
Setting up systemd (232-25+deb9u8) ...
addgroup: The group `systemd-journal' already exists as a system group. Exiting.
(Reading database ... 57982 files and directories currently installed.)
Preparing to unpack .../00-systemd-sysv_232-25+deb9u8_armhf.deb ...
Unpacking systemd-sysv (232-25+deb9u8) over (232-25+deb9u6) ...
Preparing to unpack .../01-tzdata_2018i-0+deb9u1_all.deb ...
Unpacking tzdata (2018i-0+deb9u1) over (2018g-0+deb9u1) ...
Preparing to unpack .../02-apt-transport-https_1.4.9_armhf.deb ...
Unpacking apt-transport-https (1.4.9) over (1.4.8) ...
Preparing to unpack .../03-armbian-config_5.72.190122_all.deb ...
Unpacking armbian-config (5.72.190122) over (5.67.181227) ...
Preparing to unpack .../04-armbian-firmware_5.72.190122_all.deb ...
Unpacking armbian-firmware (5.72.190122) over (5.67.181227) ...
Preparing to unpack .../05-armbian-tools-stretch_5.72.190122_armhf.deb ...
Unpacking armbian-tools-stretch (5.72.190122) over (5.67.181227) ...
Preparing to unpack .../06-hostapd_3%3a2.7-99~armbian5.72.190122+1_armhf.deb ...
Unpacking hostapd (3:2.7-99~armbian5.72.190122+1) over (3:2.6-99~armbian5.67.181227+1) ...
Preparing to unpack .../07-linux-headers-next-sunxi_5.72.190122_armhf.deb ...
Unpacking linux-headers-next-sunxi (5.72.190122) over (5.67.181227) ...
dpkg: warning: unable to delete old directory '/usr/src/linux-headers-4.14.90-sunxi/scripts/selinux/mdp': Directory not empty
dpkg: warning: unable to delete old directory '/usr/src/linux-headers-4.14.90-sunxi/scripts/selinux/genheaders': Directory not empty
dpkg: warning: unable to delete old directory '/usr/src/linux-headers-4.14.90-sunxi/scripts/selinux': Directory not empty
dpkg: warning: unable to delete old directory '/usr/src/linux-headers-4.14.90-sunxi/scripts/mod': Directory not empty
dpkg: warning: unable to delete old directory '/usr/src/linux-headers-4.14.90-sunxi/scripts/kconfig': Directory not empty
dpkg: warning: unable to delete old directory '/usr/src/linux-headers-4.14.90-sunxi/scripts/dtc': Directory not empty
dpkg: warning: unable to delete old directory '/usr/src/linux-headers-4.14.90-sunxi/scripts/basic': Directory not empty
dpkg: warning: unable to delete old directory '/usr/src/linux-headers-4.14.90-sunxi/scripts': Directory not empty
dpkg: warning: unable to delete old directory '/usr/src/linux-headers-4.14.90-sunxi': Directory not empty
Preparing to unpack .../08-linux-image-next-sunxi_5.72.190122_armhf.deb ...
update-initramfs: Deleting /boot/initrd.img-4.14.90-sunxi
Removing obsolete file uInitrd-4.14.90-sunxi
Unpacking linux-image-next-sunxi (5.72.190122) over (5.67.181227) ...
Preparing to unpack .../09-linux-libc-dev_5.70.190112_armhf.deb ...
Unpacking linux-libc-dev (5.70.190112) over (4.9.130-2) ...
Preparing to unpack .../10-sunxi-tools_1.4.2-2~armbian5.72.190122+1_armhf.deb ...
Unpacking sunxi-tools (1.4.2-2~armbian5.72.190122+1) over (1.4.2-2~armbian5.67.181227+1) ...
Setting up libapt-inst2.0:armhf (1.4.9) ...
Setting up apt-transport-https (1.4.9) ...
Setting up armbian-config (5.72.190122) ...
Setting up sunxi-tools (1.4.2-2~armbian5.72.190122+1) ...
Setting up libnss-myhostname:armhf (232-25+deb9u8) ...
Setting up apt-utils (1.4.9) ...
Setting up tzdata (2018i-0+deb9u1) ...

Current default time zone: 'Australia/Hobart'
Local time is now:      Fri Jan 25 20:39:59 AEDT 2019.
Universal Time is now:  Fri Jan 25 09:39:59 UTC 2019.
Run 'dpkg-reconfigure tzdata' if you wish to change it.

Setting up systemd-sysv (232-25+deb9u8) ...
Setting up hostapd (3:2.7-99~armbian5.72.190122+1) ...
Setting up linux-headers-next-sunxi (5.72.190122) ...
Compiling headers - please wait ...
Setting up linux-libc-dev (5.70.190112) ...
Setting up armbian-firmware (5.72.190122) ...
Processing triggers for libc-bin (2.24-11+deb9u3) ...
Setting up udev (232-25+deb9u8) ...
addgroup: The group `input' already exists as a system group. Exiting.
update-initramfs: deferring update (trigger activated)
insserv: Service mountkernfs has to be enabled to start service udev
Processing triggers for systemd (232-25+deb9u8) ...
Processing triggers for man-db (2.7.6.1-2) ...
Setting up linux-image-next-sunxi (5.72.190122) ...
update-initramfs: Generating /boot/initrd.img-4.19.16-sunxi
I: The initramfs will attempt to resume from /dev/zram2
I: (UUID=17b55684-d008-41ad-ac28-87f73566c4f6)
I: Set the RESUME variable to override this.
update-initramfs: Converting to u-boot format
Processing triggers for dbus (1.10.26-0+deb9u1) ...
Setting up armbian-tools-stretch (5.72.190122) ...
Setting up libpam-systemd:armhf (232-25+deb9u8) ...
Processing triggers for initramfs-tools (0.130) ...
update-initramfs: Generating /boot/initrd.img-4.19.16-sunxi
I: The initramfs will attempt to resume from /dev/zram2
I: (UUID=17b55684-d008-41ad-ac28-87f73566c4f6)
I: Set the RESUME variable to override this.
update-initramfs: Converting to u-boot format
dev@cubieboard2:~$ logout

So, I take the SD card and look at it from my main system.

First the armbianEnv.txt file is as follows:

verbosity=1
logo=disabled
console=both
disp_mode=1920x1080p60
overlay_prefix=sun7i-a20
rootdev=UUID=8287e402-f361-446e-a757-592b7bf9ba34
rootfstype=ext4
overlays=i2c1
usbstoragequirks=0x2537:0x1066:u,0x2537:0x1068:u

Looking at the boot dir, I can see there exists problems with links broken to dtb files.

An image of the boot dir:

 

Rather than me poking about and potentially making a small mess, could someone who understands better than I, help me out ?

I would really appreciate any help to get my little Cubieboard II back up again.

 

cb_boot.png

Link to comment
Share on other sites

2 hours ago, paul alting said:

I can see there exists problems with links broken to dtb files.

It seems that you don't have /boot/dtb-4.14.90-sunxi folder ...

In the mean time, since dtb-4.14.81-sunxi and dtb-4.14.90-sunxi doesn't have much differences, rename it should do a quick fix ...

Link to comment
Share on other sites

Hello Martin,

Thank you for your reply.

 

But after the upgrade, there is now no dtb file for the link to point to, so renaming would still not point to a dtb file.

 

In the apt cache, there is a dtb-4.14.84 with all the A20 dtb file within.

Is it possible that I pull out the cubieboard2 file and use this ?

Link to comment
Share on other sites

59 minutes ago, paul alting said:

But after the upgrade, there is now no dtb file for the link to point to, so renaming would still not point to a dtb file.

I means if content of dtb-4.14.81-sunxi folder is still there, simply rename dtb-4.14.81-sunxi folder as dtb-4.14.90-sunxi, so link will point to something useful...

Otherwise, yes install "dpkg -i dtb-4.14.84" should do the job.

 

Link to comment
Share on other sites

Thank you Martin for your assistance, but I found the better way forward was to do a complete re-install using mainline stable rather than using the nightly.

It meant 4 to 6 hours of installing the required libraries from source and going through the complete re-compile task to get all the components back together to enable my application to run again.

I guess it is a concern for me to find that just doing an update would cause such a malfunction at such a level.

 

Hopefully going back to stable will be reliable again.

I do love Armbian, and have so for a number of years now on various A20 boards, so guys, keep up this terrific system, it's so wonderful to use.

 

Paul Alting van Geusau

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines