mariel Posted March 1, 2017 Posted March 1, 2017 Hello i've updated the kernel from the legacy to the dev using the procedure To make sure you won’t run into conflicts within newly installed packages, remove them all before upgrade: 1 2 aptitude remove ~nlinux-dtb ~nlinux-u-boot ~nlinux-image ~nlinux-headers aptitude remove ~nlinux-firmware ~narmbian-firmware ~nlinux-$(lsb_release -cs)-root Proceed with install: 1 2 3 4 apt-get install linux-image-dev-sun8i linux-dtb-dev-sun8i linux-headers-dev-sun8i apt-get install linux-u-boot-orangepiplus2e-dev linux-$(lsb_release -cs)-root-dev-orangepiplus2e apt-get install armbian-firmware sunxi-tools swconfig a10disp reboot but i'm able to see just one core # dpkg -l | grep linux- ii linux-base 4.0ubuntu1 all Linux image base package ii linux-dtb-dev-sun8i 5.27.170302 armhf Linux DTB, version 4.10.1-sun8i ii linux-headers-dev-sun8i 5.27.170302 armhf Linux kernel headers for 4.10.1-sun8i on armhf ii linux-image-dev-sun8i 5.27.170302 armhf Linux kernel, version 4.10.1-sun8i rc linux-image-sun8i 5.27.170302 armhf Linux kernel, version 3.4.113-sun8i ii linux-libc-dev:armhf 4.4.0-64.85 armhf Linux Kernel Headers for development ii linux-u-boot-orangepiplus2e-dev 5.27.170302 armhf Uboot loader 2017.01 ii linux-xenial-root-dev-orangepiplus2e 5.27.170302 armhf Armbian tweaks for xenial on orangepiplus2e (dev branch) rc linux-xenial-root-orangepiplus2e 5.27.170302 armhf Armbian tweaks for xenial on orangepiplus2e (default branch) # lscpu Architecture: armv7l Byte Order: Little Endian CPU(s): 4 On-line CPU(s) list: 0 Off-line CPU(s) list: 1-3 Thread(s) per core: 1 Core(s) per socket: 1 Socket(s): 1 Model name: ARMv7 Processor rev 5 (v7l) CPU max MHz: 1368.0000 CPU min MHz: 120.0000 anyone have a hint about it ?
Igor Posted March 2, 2017 Posted March 2, 2017 Exchange /boot/boot.cmd with https://github.com/igorpecovnik/lib/blob/master/config/bootscripts/boot-sunxi.cmd, recompile it and reboot. I think that's all. Remember you switched to developing version, which is still under development, officially not supported and you might run into problems. You already run into (first?) one
Stanislav Sinyagin Posted March 3, 2017 Posted March 3, 2017 Just did it on Orange Pi Zero, followed by mkimage -C none -A arm -T script -d /boot/boot.cmd /boot/boot.scr and it did not help: root@orangepizero:~# lscpu Architecture: armv7l Byte Order: Little Endian CPU(s): 4 On-line CPU(s) list: 0 Off-line CPU(s) list: 1-3 Thread(s) per core: 1 Core(s) per socket: 1 Socket(s): 1 Model name: ARMv7 Processor rev 5 (v7l) CPU max MHz: 1008.0000 CPU min MHz: 120.0000
martinayotte Posted March 3, 2017 Posted March 3, 2017 What about testing with nightly image instead of doing upgrades ? I did my own build about 3 weeks ago and I have the 4 cores. 1
tkaiser Posted March 3, 2017 Posted March 3, 2017 21 minutes ago, martinayotte said: I did my own build about 3 weeks ago and I have the 4 cores. Me2: http://sprunge.us/bXhA IIRC there was something with u-boot's sec/nonsec boot mode (for legacy sec is needed while nonsec with mainline for SMP bring-up -- or vice versa)?
zador.blood.stained Posted March 3, 2017 Posted March 3, 2017 17 minutes ago, tkaiser said: IIRC there was something with u-boot's sec/nonsec boot mode (for legacy sec is needed while nonsec with mainline for SMP bring-up -- or vice versa)? Yes, and for recent images it was stored in /boot/armbianEnv.txt, but in recent nightlies and future images it is solved with u-boot patches.
Stanislav Sinyagin Posted March 4, 2017 Posted March 4, 2017 installing a nightly image helped, thanks. So, it looks like the upgrade process from legacy to nightly is broken?
mariel Posted March 4, 2017 Author Posted March 4, 2017 creating a new image from scratch is working fine, many thanks
roundoup Posted October 22, 2017 Posted October 22, 2017 I know the thread is old but it is at the top of Google search, so it could help someone. apt install linux-u-boot-[device name]-dev fix the issue without reinstall.
Igor Posted October 23, 2017 Posted October 23, 2017 .dev is getting deprecatd. We are moving to: apt install linux-u-boot-[device name]-next soon.
Lukas Hejmal Posted March 29, 2018 Posted March 29, 2018 (edited) I'm not using Armbian, but had same issue and google brought me here as I was facing same issue. As mentioned tkaiser, issue was for me in u-boot script(/boot/boot.scr), where I had: "setenv bootm_boot_mode sec" and I've compiled sunxi-next kernel. When I changed it to: "setenv bootm_boot_mode nonsec" and recompiled it with "mkimage -C none -A arm -T script -d boot.cmd boot.scr" it gave me 4 online cores after reboot. Hope it will help others facing same issues. Edited March 29, 2018 by Lukas Hejmal
danman Posted April 5, 2018 Posted April 5, 2018 Hi guys, nothing from mentioned workarounds works for me: root@orangepipc:~# apt upgrade Reading package lists... Done Building dependency tree Reading state information... Done Calculating upgrade... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. root@orangepipc:~# dpkg -l | grep sunxi ii libump:armhf 3.0-0sunxi1 armhf ARM Unified Memory Provider library ii linux-dtb-next-sunxi 5.41 armhf Linux DTB, version 4.14.18-sunxi ii linux-headers-next-sunxi 5.41 armhf Linux kernel headers for 4.14.18-sunxi on armhf ii linux-image-next-sunxi 5.41 armhf Linux kernel, version 4.14.18-sunxi ii sunxi-tools 1.4.2-2~armbian5.38+1 armhf tools for working with Allwinner (sunxi) ARM processors root@orangepipc:~# cat /proc/cpuinfo processor : 0 model name : ARMv7 Processor rev 5 (v7l) BogoMIPS : 48.00 Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm CPU implementer : 0x41 CPU architecture: 7 CPU variant : 0x0 CPU part : 0xc07 CPU revision : 5 Hardware : Allwinner sun8i Family Revision : 0000 Serial : 02c000813391dd23 root@orangepipc:~# ls -lah /boot/ | grep ^l lrwxrwxrwx 1 root root 20 Apr 5 20:48 dtb -> dtb-4.15.0-rc9-sunxi lrwxrwxrwx 1 root root 17 Apr 5 20:32 dtb.net -> dtb-4.11.12-sun8i lrwxrwxrwx 1 root root 17 Mar 16 10:26 dtb.old -> dtb-4.14.18-sunxi lrwxrwxrwx 1 root root 14 Jul 15 2017 script.bin -> script.bin.bak lrwxrwxrwx 1 root root 21 Apr 5 21:00 uInitrd -> uInitrd-4.14.18-sunxi lrwxrwxrwx 1 root root 21 Mar 16 10:28 zImage -> vmlinuz-4.14.18-sunxi Do you have any other hints?
Igor Posted April 5, 2018 Posted April 5, 2018 15 minutes ago, danman said: nothing from mentioned workarounds works for me: U-boot package is critical. Provide output from armbianmonitor -u
danman Posted April 5, 2018 Posted April 5, 2018 3 minutes ago, Igor said: U-boot package is critical. Provide output from armbianmonitor -u http://ix.io/16Rz
Igor Posted April 5, 2018 Posted April 5, 2018 Try to replace (and recompile) a boot script as well. Get it from here https://github.com/armbian/build/blob/master/config/bootscripts/boot-sunxi.cmd and add rootdev=UUID=xxxx to /boot/armbianEnv.txt if you don't have rootfs on your SD card (logs are also partially broken and can't see that) ... and remove packages which you don't need: linux-dtb-dev-sun8i linux-image-dev-sun8i linux-image-sun8i linux-xenial-root-orangepipc
danman Posted April 5, 2018 Posted April 5, 2018 16 minutes ago, Igor said: Try to replace (and recompile) a boot script as well. Get it from here https://github.com/armbian/build/blob/master/config/bootscripts/boot-sunxi.cmd and add rootdev=/dev/whatever to /boot/armbianEnv.txt if this is not your SD card. ... and remove packages which you don't need: linux-dtb-dev-sun8i linux-image-dev-sun8i linux-image-sun8i linux-xenial-root-orangepipc I did but it still doesn't work
Igor Posted April 6, 2018 Posted April 6, 2018 8 hours ago, danman said: I did but it still doesn't work I am also running out of ideas I assume you see all four cores when booting from a clean build?
danman Posted April 6, 2018 Posted April 6, 2018 2 hours ago, Igor said: I am also running out of ideas I assume you see all four cores when booting from a clean build? Yes, clean install shows all 4 cores. Would you mind checking my system? I can give you SSH access if you send me your ssh key.
danman Posted April 6, 2018 Posted April 6, 2018 Hooray! I found the problem, I've had following line in /boot/armbianEnv.txt from some previous experiments: machid=1029 All cores are detected correctly after removing it. @Igor thank you for support. 1
tuxcoder Posted April 7, 2018 Posted April 7, 2018 @Lukas Hejmal thanks for you tip, worked for me. @danman I also have the Line with `machid=1029` in my `armbianEnv.txt` but 4 cores are shown. verbosity=7 console=both machid=1029 bootm_boot_mode=nonsec disp_mode=1920x1080p60 overlay_prefix=sun8i-h3 rootdev=UUID=74434014-190f-406c-9b73-2c99c49383ba rootfstype=ext4 overlays=analog-codec spi-spidev param_spidev_spi_bus=0 Long Story: Hardware: OrangePi PC * long time ago I installed a jessie image * lots of hacking was done on that board * pulseaudio in jessie get a mess so updated to stretch repo * pulseaudio needed a newer kernel!! * lots of trying with new kernel/old kernel and SPI for another project * done in the end nearly the same as `mariel` but with `*-next` and and a dist upgrade to stretch it booted \o/ * but surprise only 4 cores * read this thread and now 4 cores \o/ nice
Recommended Posts