teejee2008 / ukuu

A paid version of Ukuu is now available with more features. https://teejeetech.in/2019/01/20/ukuu-v19-01/ Kernel Update Utility for Ubuntu-based distributions. Provides desktop notifications when new mainline kernel is available. Lists kernels from http://kernel.ubuntu.com/~kernel-ppa/mainline/ with options to install and remove.
https://teejeetech.in/ukuu
GNU Lesser General Public License v3.0
401 stars 158 forks source link

Identification of system's architecture. #83

Open cdplayer opened 6 years ago

cdplayer commented 6 years ago

I think ukuu incorrectly identifies architecture as armhf instead of arm64/aarch64 because it uses dpkg --print-architecture

I have a new nano-t4 from friendlyarm. It uses Rockchip rk3399. I'm using the Lubuntu package they optionally supply. device shipped with Android 7.1 installed.

pi@FriendlyELEC:~$ uname -i
aarch64
pi@FriendlyELEC:~$ dpkg --print-architecture
armhf
pi@FriendlyELEC:~$ ukuu --list-installed
ukuu v18.5.1
Distribution: Ubuntu 16.04.4 LTS
Architecture: armhf
Running kernel: 4.4.126
Kernel version: 4.4.126.7
Cache: /home/pi/.cache/ukuu
Temp: /tmp/ukuu/WP3Qj4ae
----------------------------------------------------------------------
Found installed: 4.17.3-041703.201806252030
Found installed: 4.17.2-041702.201806160433
----------------------------------------------------------------------
pi@FriendlyELEC:~$ uname -a
Linux FriendlyELEC 4.4.126 #7 SMP Fri Jun 29 17:13:10 CST 2018 aarch64 aarch64 aarch64 GNU/Linux

http://wiki.friendlyarm.com/wiki/index.php/NanoPC-T4 File i imaged to eMMC via a microSD was name "rk3399-eflasher-20180630-friendly-core-arm64.img.zip" uploaded by Lawrence Tang (friendlyarm?)

pi@FriendlyELEC:~$ cat /etc/*-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=16.04
DISTRIB_CODENAME=xenial
DISTRIB_DESCRIPTION="Ubuntu 16.04.4 LTS"
NAME="Ubuntu"
VERSION="16.04.4 LTS (Xenial Xerus)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 16.04.4 LTS"
VERSION_ID="16.04"
HOME_URL="http://www.ubuntu.com/"
SUPPORT_URL="http://help.ubuntu.com/"
BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"
VERSION_CODENAME=xenial
UBUNTU_CODENAME=xenial

pi@FriendlyELEC:~$ inxi
CPU~Hexa core ARMv8 rev 4 (v8l) (-MCP-) speed~1200 MHz Kernel~4.4.126 aarch64 Up~1:27 Mem~1842.3/3858.3MB HDD~NA(-) Procs~238 Client~Shell inxi~2.2.35  
satmandu commented 6 years ago

This is a big problem. There are multiple armhf distributions which can use arm64 kernels with a armhf userspace. (Similar to how sparc64 kernels would often be used with a sparc userspace.)

Can there be an option to select the kernel arch at runtime?