piknew Posted September 19, 2016 Posted September 19, 2016 Hi, I just want to inform that probably there is a problem with correct detection of platform. Originally I had everything set for Orange Pi Plus 2E. However, after upgrade avery file is related to Orange Plus (2) - not 2E: Previously in any mentioned file there was orangepiplus2e identifier. Please see also dpkg.log: 2016-09-19 11:00:20 startup archives unpack 2016-09-19 11:00:21 upgrade linux-firmware-image-sun8i:armhf 5.16 5.20 2016-09-19 11:00:21 status half-configured linux-firmware-image-sun8i:armhf 5.16 2016-09-19 11:00:21 status unpacked linux-firmware-image-sun8i:armhf 5.16 2016-09-19 11:00:21 status half-installed linux-firmware-image-sun8i:armhf 5.16 2016-09-19 11:00:21 status half-installed linux-firmware-image-sun8i:armhf 5.16 2016-09-19 11:00:21 status unpacked linux-firmware-image-sun8i:armhf 5.20 2016-09-19 11:00:21 status unpacked linux-firmware-image-sun8i:armhf 5.20 2016-09-19 11:00:21 upgrade linux-headers-sun8i:armhf 5.16 5.20 2016-09-19 11:00:21 status half-configured linux-headers-sun8i:armhf 5.16 2016-09-19 11:00:21 status unpacked linux-headers-sun8i:armhf 5.16 2016-09-19 11:00:21 status half-installed linux-headers-sun8i:armhf 5.16 2016-09-19 11:00:37 status half-installed linux-headers-sun8i:armhf 5.16 2016-09-19 11:00:37 status unpacked linux-headers-sun8i:armhf 5.20 2016-09-19 11:00:38 status unpacked linux-headers-sun8i:armhf 5.20 2016-09-19 11:00:42 upgrade linux-image-sun8i:armhf 5.16 5.20 2016-09-19 11:00:42 status half-configured linux-image-sun8i:armhf 5.16 2016-09-19 11:00:42 status unpacked linux-image-sun8i:armhf 5.16 2016-09-19 11:00:42 status half-installed linux-image-sun8i:armhf 5.16 2016-09-19 11:00:59 status half-installed linux-image-sun8i:armhf 5.16 2016-09-19 11:01:00 status unpacked linux-image-sun8i:armhf 5.20 2016-09-19 11:01:00 status unpacked linux-image-sun8i:armhf 5.20 2016-09-19 11:01:00 upgrade linux-jessie-root-orangepiplus:armhf 5.16 5.20 2016-09-19 11:01:00 status triggers-pending initramfs-tools:all 0.120+deb8u2 2016-09-19 11:01:00 status triggers-awaited linux-jessie-root-orangepiplus:armhf 5.16 2016-09-19 11:01:00 status half-configured linux-jessie-root-orangepiplus:armhf 5.16 2016-09-19 11:01:00 status unpacked linux-jessie-root-orangepiplus:armhf 5.16 2016-09-19 11:01:00 status half-installed linux-jessie-root-orangepiplus:armhf 5.16 2016-09-19 11:01:00 status triggers-pending systemd:armhf 215-17+deb8u5 2016-09-19 11:01:01 status half-installed linux-jessie-root-orangepiplus:armhf 5.16 2016-09-19 11:01:01 status unpacked linux-jessie-root-orangepiplus:armhf 5.20 2016-09-19 11:01:01 status unpacked linux-jessie-root-orangepiplus:armhf 5.20 2016-09-19 11:01:01 upgrade linux-u-boot-orangepiplus-default:armhf 5.16 5.20 2016-09-19 11:01:01 status half-configured linux-u-boot-orangepiplus-default:armhf 5.16 2016-09-19 11:01:01 status unpacked linux-u-boot-orangepiplus-default:armhf 5.16 2016-09-19 11:01:01 status half-installed linux-u-boot-orangepiplus-default:armhf 5.16 2016-09-19 11:01:01 status half-installed linux-u-boot-orangepiplus-default:armhf 5.16 2016-09-19 11:01:01 status unpacked linux-u-boot-orangepiplus-default:armhf 5.20 2016-09-19 11:01:01 status unpacked linux-u-boot-orangepiplus-default:armhf 5.20 2016-09-19 11:01:01 trigproc initramfs-tools:all 0.120+deb8u2 <none> 2016-09-19 11:01:01 status half-configured initramfs-tools:all 0.120+deb8u2 2016-09-19 11:01:12 status installed initramfs-tools:all 0.120+deb8u2 2016-09-19 11:01:12 trigproc systemd:armhf 215-17+deb8u5 <none> 2016-09-19 11:01:12 status half-configured systemd:armhf 215-17+deb8u5 2016-09-19 11:01:14 status installed systemd:armhf 215-17+deb8u5 2016-09-19 11:01:14 startup packages configure 2016-09-19 11:01:14 configure linux-firmware-image-sun8i:armhf 5.20 <none> 2016-09-19 11:01:14 status unpacked linux-firmware-image-sun8i:armhf 5.20 2016-09-19 11:01:14 status half-configured linux-firmware-image-sun8i:armhf 5.20 2016-09-19 11:01:14 status installed linux-firmware-image-sun8i:armhf 5.20 2016-09-19 11:01:14 configure linux-headers-sun8i:armhf 5.20 <none> 2016-09-19 11:01:14 status unpacked linux-headers-sun8i:armhf 5.20 2016-09-19 11:01:14 status half-configured linux-headers-sun8i:armhf 5.20 2016-09-19 11:02:00 status installed linux-headers-sun8i:armhf 5.20 2016-09-19 11:02:00 configure linux-image-sun8i:armhf 5.20 <none> 2016-09-19 11:02:00 status unpacked linux-image-sun8i:armhf 5.20 2016-09-19 11:02:00 status half-configured linux-image-sun8i:armhf 5.20 2016-09-19 11:02:12 status installed linux-image-sun8i:armhf 5.20 2016-09-19 11:02:12 configure linux-jessie-root-orangepiplus:armhf 5.20 <none> 2016-09-19 11:02:12 status triggers-pending initramfs-tools:all 0.120+deb8u2 2016-09-19 11:02:12 status unpacked linux-jessie-root-orangepiplus:armhf 5.20 2016-09-19 11:02:12 status unpacked linux-jessie-root-orangepiplus:armhf 5.20 2016-09-19 11:02:12 status half-configured linux-jessie-root-orangepiplus:armhf 5.20 2016-09-19 11:02:14 status triggers-awaited linux-jessie-root-orangepiplus:armhf 5.20 2016-09-19 11:02:14 configure linux-u-boot-orangepiplus-default:armhf 5.20 <none> 2016-09-19 11:02:14 status unpacked linux-u-boot-orangepiplus-default:armhf 5.20 2016-09-19 11:02:14 status half-configured linux-u-boot-orangepiplus-default:armhf 5.20 2016-09-19 11:02:14 status installed linux-u-boot-orangepiplus-default:armhf 5.20 2016-09-19 11:02:14 trigproc initramfs-tools:all 0.120+deb8u2 <none> 2016-09-19 11:02:14 status half-configured initramfs-tools:all 0.120+deb8u2 2016-09-19 11:02:14 status installed linux-jessie-root-orangepiplus:armhf 5.20 2016-09-19 11:02:24 status installed initramfs-tools:all 0.120+deb8u2 2016-09-19 11:02:25 startup packages configure Please note that at some moment I have migrated from Orange Pi Plus 2 to Orange Pi Plus 2E ( see http://forum.armbian.com/index.php/topic/1681-migrate-from-orange-pi-plus-2-to-orange-pi-plus-2e/). Then I modified link in /boot to point to correct platform. Additionally I have copied armbian.txt and armbian-release files from original Orange Pi Plus 2e image. Is there any way to correct this "invalid" identifier situation or it is some kind of bug in upgrade scripts? Additionally I am attaching: armhwinfo.log.before_upgrade.gz armhwinfo.log.after_upgrade.gz
tkaiser Posted September 19, 2016 Posted September 19, 2016 Can you please provide the output of either command below: dpkg -l | egrep "armbian| linux-" sudo armbianmonitor -u Since you started with an installation for OPi Plus (2) the usual upgrade procedures will now also update these packages even if you manually adjusted script.bin and settings (I forgot to mention that when you asked for migration help).
piknew Posted September 19, 2016 Author Posted September 19, 2016 admin@PKSERVER:~$ dpkg -l | egrep "armbian| linux-" ii armbian-hostapd 5.14 armhf Patched hostapd ii armbian-tools 5.14 armhf Armbian tools, sunxi, temper ii linux-firmware-image-sun8i 5.20 armhf Linux kernel firmware, version 3.4.112-sun8i ii linux-headers-sun8i 5.20 armhf Linux kernel headers for 3.4.112-sun8i on armhf ii linux-image-sun8i 5.20 armhf Linux kernel, version 3.4.112-sun8i ii linux-jessie-root-orangepiplus 5.20 armhf Armbian tweaks for jessie on orangepiplus (default branch) ii linux-libc-dev:armhf 3.16.36-1+deb8u1 armhf Linux support headers for userspace development ii linux-u-boot-orangepiplus-default 5.20 armhf Uboot loader 2016.09 admin@PKSERVER:~$ /var/log/armhwinfo.log is uploaded to: http://sprunge.us/LJBP BTW. I edited post above and attached armhwinfo.log before and after upgrade.
tkaiser Posted September 19, 2016 Posted September 19, 2016 I would make a backup of the eMMC (just in case) and then after rebooting into the normal installation as root apt-get install linux-u-boot-orangepiplus2e-default linux-jessie-root-orangepiplus2e apt-get remove linux-u-boot-orangepiplus-default linux-jessie-root-orangepiplus 'Backup' from eMMC means burning a fresh Armbian image for OPi Plus 2E on a 4 GB (or larger) SD card, booting from this and then as root apt-get install p7zip dd if=/dev/mmcblk1 bs=10M | 7zr a -bd -t7z -m0=lzma -mx=3 -mfb=64 -md=32m -ms=on -si /$HOME/eMMC-Backup.img.7z
piknew Posted September 19, 2016 Author Posted September 19, 2016 Hmm, just a few minutes ago my OPI+2E stopped responding (my opened session has frozen, new cannot be established)... So, I will be able to execute as above when I return from work and reset device "by hand" Just a question - I should use "remove" as you have suggested? Or can be "purge" (in case there is any config file which I do not want to be left as residual)? For procedure of backup I have dedicated SD card with my script to make backup over the network to NAS.
tkaiser Posted September 19, 2016 Posted September 19, 2016 Just a question - I should use "remove" as you have suggested? Or can be "purge" (in case there is any config file which I do not want to be left as residual)? Don't know... Hmm... after thinking about: u-boot contents must be identical and the only two real differences of the linux-jessie-root-* packages (check with 'dpkg-query -L linux-jessie-root-orangepiplus') are those /etc/armbian.txt /etc/armbian-release So if you use purge instead you would have to purge before install I would assume.
piknew Posted September 19, 2016 Author Posted September 19, 2016 Thanks. My problem with connecting to device was related to ISP... I did (first purge, then install): root@PKSERVER:~# apt-get purge linux-u-boot-orangepiplus-default linux-jessie-root-orangepiplus Reading package lists... Done Building dependency tree Reading state information... Done The following packages will be REMOVED: linux-jessie-root-orangepiplus* linux-u-boot-orangepiplus-default* 0 upgraded, 0 newly installed, 2 to remove and 0 not upgraded. After this operation, 2,048 B disk space will be freed. Do you want to continue? [Y/n] (Reading database ... 64831 files and directories currently installed.) Removing linux-jessie-root-orangepiplus (5.20) ... Purging configuration files for linux-jessie-root-orangepiplus (5.20) ... dpkg: warning: while removing linux-jessie-root-orangepiplus, directory '/usr/lib/nand-sata-install' not empty so not removed dpkg: warning: while removing linux-jessie-root-orangepiplus, directory '/usr/local/bin' not empty so not removed Removing linux-u-boot-orangepiplus-default (5.20) ... Processing triggers for initramfs-tools (0.120+deb8u2) ... update-initramfs: Generating /boot/initrd.img-3.4.112-sun8i Processing triggers for systemd (215-17+deb8u5) ... root@PKSERVER:~# apt-get install linux-u-boot-orangepiplus2e-default linux-jessie-root-orangepiplus2e Reading package lists... Done Building dependency tree Reading state information... Done The following NEW packages will be installed: linux-jessie-root-orangepiplus2e linux-u-boot-orangepiplus2e-default 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded. Need to get 514 kB of archives. After this operation, 2,048 B of additional disk space will be used. WARNING: The following packages cannot be authenticated! linux-jessie-root-orangepiplus2e linux-u-boot-orangepiplus2e-default Install these packages without verification? [y/N] y Get:1 http://apt.armbian.com/ jessie/main linux-jessie-root-orangepiplus2e armhf 5.20 [357 kB] Get:2 http://apt.armbian.com/ jessie/main linux-u-boot-orangepiplus2e-default armhf 5.20 [156 kB] Fetched 514 kB in 0s (649 kB/s) Selecting previously unselected package linux-jessie-root-orangepiplus2e. (Reading database ... 64743 files and directories currently installed.) Preparing to unpack .../linux-jessie-root-orangepiplus2e_5.20_armhf.deb ... Unpacking linux-jessie-root-orangepiplus2e (5.20) ... Selecting previously unselected package linux-u-boot-orangepiplus2e-default. Preparing to unpack .../linux-u-boot-orangepiplus2e-default_5.20_armhf.deb ... Unpacking linux-u-boot-orangepiplus2e-default (5.20) ... Processing triggers for initramfs-tools (0.120+deb8u2) ... update-initramfs: Generating /boot/initrd.img-3.4.112-sun8i Processing triggers for systemd (215-17+deb8u5) ... Setting up linux-jessie-root-orangepiplus2e (5.20) ... Setting up linux-u-boot-orangepiplus2e-default (5.20) ... Processing triggers for initramfs-tools (0.120+deb8u2) ... update-initramfs: Generating /boot/initrd.img-3.4.112-sun8i root@PKSERVER:~# head /etc/armbian.txt -------------------------------------------------------------------------------- Title: Armbian 5.20 Orangepiplus2e Debian jessie default Kernel: Linux 3.4.112 Build date: 15.09.2016 Authors: http://www.armbian.com/authors Sources: http://github.com/igorpecovnik/lib Support: http://forum.armbian.com/ Changelog: http://www.armbian.com/logbook/ Documantation: http://docs.armbian.com/ -------------------------------------------------------------------------------- root@PKSERVER:~# head /etc/armbian-release # PLEASE DO NOT EDIT THIS FILE BOARD=orangepiplus2e BOARD_NAME="Orange Pi+ 2E" VERSION=5.20 LINUXFAMILY=sun8i BRANCH=default ARCH=arm root@PKSERVER:~# It seems to be OK. Thanks.
hryst Posted September 20, 2016 Posted September 20, 2016 HelloI have a similar problem for initramfs my parameters: ii armbian-hostapd 5.13 armhf Patched hostapdii linux-firmware-image-sun8i 5.20 armhf Linux kernel firmware, version 3.4.112-sun8iii linux-headers-sun8i 5.20 armhf Linux kernel headers for 3.4.112-sun8i on armhfii linux-image-sun8i 5.20 armhf Linux kernel, version 3.4.112-sun8iii linux-jessie-root-orangepiplus 5.20 armhf Armbian tweaks for jessie on orangepiplus (default branch)ii linux-libc-dev:armhf 3.16.36-1+deb8u1 armhf Linux support headers for userspace developmentii linux-u-boot-orangepiplus-default 5.20 armhf Uboot loader 2016.09ii linux-u-boot-orangepiplus2e-default 5.20 armhf Uboot loader 2016.09http://sprunge.us/QWfR the result of an update: apt-get install linux-u-boot-orangepiplus-default linux-jessie-root-orangepiplusReading package lists... DoneBuilding dependency tree Reading state information... DoneThe following NEW packages will be installed: linux-jessie-root-orangepiplus linux-u-boot-orangepiplus-default0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.1 not fully installed or removed.Need to get 514 kB of archives.After this operation, 2,048 B of additional disk space will be used.Get:1 http://apt.armbian.com/jessie/main linux-jessie-root-orangepiplus armhf 5.20 [358 kB] Get:2 http://apt.armbian.com/jessie/main linux-u-boot-orangepiplus-default armhf 5.20 [157 kB] Fetched 514 kB in 0s (552 kB/s) Selecting previously unselected package linux-jessie-root-orangepiplus....Processing triggers for initramfs-tools (0.120+deb8u2) ...update-initramfs: Generating /boot/initrd.img-3.4.112-sun8iSegmentation faultSegmentation faultSegmentation faultSegmentation faultSegmentation faultSegmentation faultSegmentation faultSegmentation faultSegmentation faultE: mkinitramfs failure find 139 cpio 0 gzip 0update-initramfs: failed for /boot/initrd.img-3.4.112-sun8i with 1.dpkg: error processing package initramfs-tools (--configure): subprocess installed post-installation script returned error exit status 1Errors were encountered while processing: initramfs-toolsE: Sub-process /usr/bin/dpkg returned an error code (1)andsudo apt-get cleanrm /var/cache/apt/*.binapt-get autoremoveupdate-initramfs: Generating /boot/initrd.img-3.4.112-sun8iSegmentation faultSegmentation faultSegmentation faultSegmentation faultSegmentation faultSegmentation faultSegmentation faultSegmentation faultSegmentation faultE: mkinitramfs failure find 139 cpio 0 gzip 0update-initramfs: failed for /boot/initrd.img-3.4.112-sun8i with 1.dpkg: error processing package initramfs-tools (--configure): subprocess installed post-installation script returned error exit status 1Errors were encountered while processing: initramfs-toolsE: Sub-process /usr/bin/dpkg returned an error code (1) Regards Dariusz
Igor Posted September 20, 2016 Posted September 20, 2016 Segmentation fault is strange ... first remove one of u-boot packages. It looks like linux-u-boot-orangepiplus2e-default is too much. Next try this: dpkg --get-selections | grep "linux\-$(lsb_release -cs)\-root" | awk '{print $1}' | xargs dpkg --remove apt-get install -f apt-get update apt-get upgrade BOARD=$(dpkg --get-selections | grep "linux-u-boot" | awk '{print $1}' | cut -f4 -d- ) BRANCH=$(dpkg --get-selections | grep "linux-u-boot" | awk '{print $1}' | cut -f5 -d- ) [[ $BRANCH == default ]] && apt-get install "linux-$(lsb_release -cs)-root-${BOARD}" [[ $BRANCH != default ]] && apt-get install "linux-$(lsb_release -cs)-root-${BRANCH}-${BOARD}" apt-get autoremove -y I am still testing but it looks to be o.k.
hryst Posted September 20, 2016 Posted September 20, 2016 thx for fast reply command did not help,I would mention that I have a system on usb disk and disable log2ram (Orangepi plus)
piknew Posted September 20, 2016 Author Posted September 20, 2016 I see that you have duplicated package: ii linux-u-boot-orangepiplus-default 5.20 armhf Uboot loader 2016.09 ii linux-u-boot-orangepiplus2e-default 5.20 armhf Uboot loader 2016.09 Why you have orangepiplus2e if you are using orangepiplus? My platform is orangepiplus2e but I originally used orangepiplus packages. In this topic tkaiser suggested me to: install correct packages and then remove invalid ones. I changed the order (pls see posts above). But I do not know what may be the result of "install" then "remove" (maybe there is some kind of conflict resulting in segmentation fault?)... BTW. State of packages on my orangepiplus2e is as following: admin@PKSERVER:~$ dpkg -l | egrep "armbian| linux-" ii armbian-hostapd 5.14 armhf Patched hostapd ii armbian-tools 5.14 armhf Armbian tools, sunxi, temper ii linux-firmware-image-sun8i 5.20 armhf Linux kernel firmware, version 3.4.112-sun8i ii linux-headers-sun8i 5.20 armhf Linux kernel headers for 3.4.112-sun8i on armhf ii linux-image-sun8i 5.20 armhf Linux kernel, version 3.4.112-sun8i ii linux-jessie-root-orangepiplus2e 5.20 armhf Armbian tweaks for jessie on orangepiplus2e (default branch) ii linux-libc-dev:armhf 3.16.36-1+deb8u1 armhf Linux support headers for userspace development ii linux-u-boot-orangepiplus2e-default 5.20 armhf Uboot loader 2016.09
hryst Posted September 20, 2016 Posted September 20, 2016 mistakenly gave the command installlaziness ctrl-c from your post
Recommended Posts