[SOLVED] Ubuntu kernel

Post Reply
kjansen387
Posts: 5
Joined: Sat May 15, 2021 6:19 am
languages_spoken: english
Has thanked: 0
Been thanked: 1 time
Contact:

[SOLVED] Ubuntu kernel

Post by kjansen387 »

Hello,

I've tried both ubuntu-20.04-3.16-mate-odroid-c2-20210120.img.xz and ubuntu-20.04-3.16-minimal-odroid-c2-20210201.img.xz . I want to load a kernel module for my USB wifi.

root@odroid:~# modprobe ath9k
modprobe: FATAL: Module ath9k not found in directory /lib/modules/3.14.65-65
root@odroid:~# ls -la /lib/modules/3.14.65-65
ls: cannot access '/lib/modules/3.14.65-65': No such file or directory
root@odroid:~# ls /lib/modules/
3.16.85-65

- Why does the kernel version in the filename suggest 3.16 and uname -a says 3.14.65-65 ?
- Why do I have modules for a 3.16, /lib/modules/3.16.85-65 ?
- How do I fix this broken image and upgrade to kernel 3.16.85-65 ?

Thanks!

kjansen387
Posts: 5
Joined: Sat May 15, 2021 6:19 am
languages_spoken: english
Has thanked: 0
Been thanked: 1 time
Contact:

Re: Ubuntu kernel

Post by kjansen387 »

Same for ubuntu-18.04.3-3.16-minimal-odroid-c2-20190814.img.xz , kernel 3.14.65-65 and modules 3.16.72-46 :(

User avatar
odroid
Site Admin
Posts: 37555
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean
ODROIDs: ODROID
Has thanked: 1846 times
Been thanked: 1160 times
Contact:

Re: Ubuntu kernel

Post by odroid »

I've freshly installed ubuntu-20.04-3.16-mate-odroid-c2-20210120.img.xz image and it seems to work fine out of the box.

Code: Select all

odroid@odroid:~$ uname -a                                                       
Linux odroid 3.16.85-65 #1 SMP PREEMPT Mon Jan 18 13:32:38 UTC 2021 aarch64 aarx
odroid@odroid:~$ sudo modprobe ath9k                                            
[sudo] password for odroid:                                                     
odroid@odroid:~$ lsmod                                                          
Module                  Size  Used by                                           
ath9k                  91820  0                                                 
ath9k_common           17059  1 ath9k                                           
ath9k_hw              418422  2 ath9k_common,ath9k                              
ath                    25857  3 ath9k_common,ath9k,ath9k_hw                     
mac80211              590722  1 ath9k                                           
cfg80211              522783  4 ath,ath9k_common,ath9k,mac80211                 
fuse                  102581  3                                                 
w1_gpio                 4281  0                                                 
wire                   32772  1 w1_gpio                                         
meson_gpiomem           4368  0                                                 
gxbb_wdt                3875  0                                                 
squashfs               36915  8                                                 
sch_fq_codel            9291  2                                                 
ip_tables              18734  0                                                 
ipv6                  427080  38                                                
autofs4                31039  2 
Try re-installing kernel 3.16.85-65 package manually and reboot just in case.

Code: Select all

sudo apt install linux-odroid-c2 --reinstall

kjansen387
Posts: 5
Joined: Sat May 15, 2021 6:19 am
languages_spoken: english
Has thanked: 0
Been thanked: 1 time
Contact:

Re: Ubuntu kernel

Post by kjansen387 »

Didn't work unfortunately.. :(

Code: Select all

root@odroid:~# sudo apt install linux-odroid-c2 --reinstall
Reading package lists... 100%
Reading package lists... Done
Building dependency tree... 99%
Building dependency tree       
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
Need to get 18.1 MB of archives.
After this operation, 0 B of additional disk space will be used.
0% [Connecting to deb.odroid.in (104.236.30.141)]                                               
Get:1 http://deb.odroid.in/c2 bionic/main arm64 linux-odroid-c2 arm64 3.16.72-46 [18.1 MB]
100% [Working]                                                                                             2174 kB/s 0s                                                Fetched 18.1 MB in 8s (2257 kB/s)
(Reading database ... 100%
(Reading database ... 35787 files and directories currently installed.)
Preparing to unpack .../linux-odroid-c2_3.16.72-46_arm64.deb ...
Unpacking linux-odroid-c2 (3.16.72-46) over (3.16.72-46) ...
Setting up linux-odroid-c2 (3.16.72-46) ...
update-initramfs: Generating /boot/initrd.img-3.16.72-46
Image Name:   uInitrd
Created:      Sat May 22 15:43:11 2021
Image Type:   AArch64 Linux RAMDisk Image (uncompressed)
Data Size:    7714349 Bytes = 7533.54 KiB = 7.36 MiB
Load Address: 00000000
Entry Point:  00000000
root@odroid:~# reboot
<rebooting>

Code: Select all

Using username "root".
root@10.5.2.7's password:
Welcome to Ubuntu 18.04.5 LTS (GNU/Linux 3.14.65-65 aarch64)

 * Documentation:  https://help.ubuntu.com
 * Management:     https://landscape.canonical.com
 * Support:        https://ubuntu.com/advantage
Last login: Sat May 22 15:42:27 2021 from 10.5.2.1
root@odroid:~# uname -a
Linux odroid 3.14.65-65 #1 SMP PREEMPT Sat May 28 02:50:51 BRT 2016 aarch64 aarch64 aarch64 GNU/Linux
Kernel seems right (first line of output):

Code: Select all

root@odroid:/boot# strings Image | grep "3\.1"  | head
Linux version 3.16.72-46 (root@builder_n2) (gcc version 7.3.0 (Ubuntu/Linaro 7.3.0-16ubuntu3) ) #1 SMP PREEMPT Tue Aug 13 18:09:58 -03 2019
3.16.72-46 SMP preempt mod_unload aarch64
3.16.72-46
6semctl(GETNCNT/GETZCNT) is since 3.16 Single Unix Specification compliant.
-v3.16.7-11053-g5063488832af
malidrv:  API_VERSION=800 REPO_URL=heads/odroidc2-3.14.y-android-3-gd5a12c1 REVISION=-v3.14.23-2647-gd5a12c1 CHANGED_REVISION=v3.14.23-2647-gd5a12c1 CHANGE_DATE=2016-01-21 14:20:54 +0900 BUILD_DATE=2016. 01. 21. (
/lib/firmware/updates/3.16.72-46
/lib/firmware/3.16.72-46
3.17
3.10
My /boot:

Code: Select all

root@odroid:/var/log/apt# ls -la /boot
total 80748
drwxr-xr-x  2 root root     4096 May 22 15:43 .
drwxr-xr-x 21 root root     4096 Jan 28  2018 ..
-rwxr-xr-x  1 root root 13622832 Aug 13  2019 Image
-rw-r--r--  1 root root  5813406 Aug 13  2019 initrd.img-3.14.79-108
-rw-r--r--  1 root root  5813416 Aug 13  2019 initrd.img-3.16.56-16
-rw-r--r--  1 root root  5813541 Aug 13  2019 initrd.img-3.16.57-20
-rw-r--r--  1 root root  7671651 Aug 13  2019 initrd.img-3.16.70-42
-rw-r--r--  1 root root  7714349 May 22 15:43 initrd.img-3.16.72-46
-rw-r--r--  1 root root    29959 Aug 13  2019 meson64_odroidc2.dtb
-rw-r--r--  1 root root    23670 Aug 13  2019 meson64_odroidc2.dts
-rw-r--r--  1 root root  5682589 Jun 12  2018 uInitrd-3.14.79-108
-rw-r--r--  1 root root  7539631 Jun 13  2018 uInitrd-3.16.56-16
-rw-r--r--  1 root root  7539207 Jun 25  2018 uInitrd-3.16.57-20
-rw-r--r--  1 root root  7671220 Aug 13  2019 uInitrd-3.16.70-42
-rw-r--r--  1 root root  7714413 May 22 15:43 uInitrd-3.16.72-46
Some interesting logging, showing that somewhere in the build process this image did indeed boot from 3.16:

Code: Select all

root@odroid:/var/log# grep "Linux version" kern.log
Jan 28 15:58:19 powah kernel: [    0.000000] Linux version 3.14.79-108 (root@a53_b1) (gcc version 5.4.0 20160609 (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.1) ) #1 SMP PREEMPT Mon Feb 27 23:18:26 BRT 2017
Jan 28 15:58:19 powah kernel: [    0.000000] Linux version 3.14.79-108 (root@a53_b1) (gcc version 5.4.0 20160609 (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.1) ) #1 SMP PREEMPT Mon Feb 27 23:18:26 BRT 2017
Jan 28 15:58:19 powah kernel: [    0.000000] Linux version 3.14.79-108 (root@a53_b1) (gcc version 5.4.0 20160609 (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.1) ) #1 SMP PREEMPT Mon Feb 27 23:18:26 BRT 2017
Jan 28 15:58:19 powah kernel: [    0.000000] Linux version 3.14.79-108 (root@a53_b1) (gcc version 5.4.0 20160609 (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.1) ) #1 SMP PREEMPT Mon Feb 27 23:18:26 BRT 2017
Jan 28 15:58:20 powah kernel: [    0.000000] Linux version 3.16.56-16 (root@0e2555e9e749) (gcc version 7.3.0 (Ubuntu/Linaro 7.3.0-16ubuntu3) ) #1 SMP PREEMPT Tue Jun 12 21:23:02 -03 2018
Jan 28 15:58:20 powah kernel: [    0.000000] Linux version 3.16.56-16 (root@0e2555e9e749) (gcc version 7.3.0 (Ubuntu/Linaro 7.3.0-16ubuntu3) ) #1 SMP PREEMPT Tue Jun 12 21:23:02 -03 2018
Jan 28 15:58:20 powah kernel: [    0.000000] Linux version 3.16.57-20 (root@0e2555e9e749) (gcc version 7.3.0 (Ubuntu/Linaro 7.3.0-16ubuntu3) ) #1 SMP PREEMPT Tue Jun 19 01:14:40 -03 2018
Jan 28 15:58:20 odroid kernel: [    0.000000] Linux version 3.16.57-20 (root@0e2555e9e749) (gcc version 7.3.0 (Ubuntu/Linaro 7.3.0-16ubuntu3) ) #1 SMP PREEMPT Tue Jun 19 01:14:40 -03 2018
Jan 28 15:58:20 odroid kernel: [    0.000000] Linux version 3.16.57-20 (root@0e2555e9e749) (gcc version 7.3.0 (Ubuntu/Linaro 7.3.0-16ubuntu3) ) #1 SMP PREEMPT Tue Jun 19 01:14:40 -03 2018
Jan 28 15:58:20 odroid kernel: [    0.000000] Linux version 3.16.57-20 (root@0e2555e9e749) (gcc version 7.3.0 (Ubuntu/Linaro 7.3.0-16ubuntu3) ) #1 SMP PREEMPT Tue Jun 19 01:14:40 -03 2018
Jan 28 15:58:20 odroid kernel: [    0.000000] Linux version 3.16.57-20 (root@0e2555e9e749) (gcc version 7.3.0 (Ubuntu/Linaro 7.3.0-16ubuntu3) ) #1 SMP PREEMPT Tue Jun 19 01:14:40 -03 2018
Jan 28 15:58:19 odroid kernel: [    0.000000] Linux version 3.16.57-20 (root@0e2555e9e749) (gcc version 7.3.0 (Ubuntu/Linaro 7.3.0-16ubuntu3) ) #1 SMP PREEMPT Tue Jun 19 01:14:40 -03 2018
Jan 28 15:58:19 odroid kernel: [    0.000000] Linux version 3.16.57-20 (root@0e2555e9e749) (gcc version 7.3.0 (Ubuntu/Linaro 7.3.0-16ubuntu3) ) #1 SMP PREEMPT Tue Jun 19 01:14:40 -03 2018
Jan 28 15:58:19 odroid kernel: [    0.000000] Linux version 3.16.72-46 (root@builder_n2) (gcc version 7.3.0 (Ubuntu/Linaro 7.3.0-16ubuntu3) ) #1 SMP PREEMPT Tue Aug 13 18:09:58 -03 2019
Jan 28 15:58:19 odroid kernel: [    0.000000] Linux version 3.16.72-46 (root@builder_n2) (gcc version 7.3.0 (Ubuntu/Linaro 7.3.0-16ubuntu3) ) #1 SMP PREEMPT Tue Aug 13 18:09:58 -03 2019
Jan 28 15:58:19 odroid kernel: [    0.000000] Linux version 3.14.65-65 (root@a53_b1) (gcc version 5.3.1 20160413 (Ubuntu/Linaro 5.3.1-14ubuntu2) ) #1 SMP PREEMPT Sat May 28 02:50:51 BRT 2016
Apr  7 06:11:19 odroid kernel: [    0.000000] Linux version 3.14.65-65 (root@a53_b1) (gcc version 5.3.1 20160413 (Ubuntu/Linaro 5.3.1-14ubuntu2) ) #1 SMP PREEMPT Sat May 28 02:50:51 BRT 2016
Apr  7 06:11:19 odroid kernel: [    0.000000] Linux version 3.14.65-65 (root@a53_b1) (gcc version 5.3.1 20160413 (Ubuntu/Linaro 5.3.1-14ubuntu2) ) #1 SMP PREEMPT Sat May 28 02:50:51 BRT 2016
Apr  7 06:11:19 odroid kernel: [    0.000000] Linux version 3.14.65-65 (root@a53_b1) (gcc version 5.3.1 20160413 (Ubuntu/Linaro 5.3.1-14ubuntu2) ) #1 SMP PREEMPT Sat May 28 02:50:51 BRT 2016
Same with Debian Stretch from viewtopic.php?f=138&t=27449:

Code: Select all

Using username "root".
root@10.5.2.7's password:
Linux odroid-stretch64 [b]3.14.65-65[/b] #1 SMP PREEMPT Sat May 28 02:50:51 BRT 2016 aarch64

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
root@odroid-stretch64:~# uname -a
Linux odroid-stretch64 3.14.65-65 #1 SMP PREEMPT Sat May 28 02:50:51 BRT 2016 aarch64 GNU/Linux
root@odroid-stretch64:~# ls /lib/modules/
[b]3.16.85+[/b]

User avatar
odroid
Site Admin
Posts: 37555
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean
ODROIDs: ODROID
Has thanked: 1846 times
Been thanked: 1160 times
Contact:

Re: Ubuntu kernel

Post by odroid »


kjansen387
Posts: 5
Joined: Sat May 15, 2021 6:19 am
languages_spoken: english
Has thanked: 0
Been thanked: 1 time
Contact:

Re: Ubuntu kernel

Post by kjansen387 »

I did - ctrl+f this thread on ubuntu-20.04-3.16-mate-odroid-c2-20210120.img.xz , it's the first one I tried. Same results..

md5sum looks ok:
$ curl https://odroid.in/ubuntu_20.04lts/c2/ub ... .xz.md5sum
49ebdb44bbbe8982bb4e007354b736ce ubuntu-20.04-3.16-mate-odroid-c2-20210120.img.xz
$ md5sum ubuntu-20.04-3.16-mate-odroid-c2-20210120.img.xz
49ebdb44bbbe8982bb4e007354b736ce ubuntu-20.04-3.16-mate-odroid-c2-20210120.img.xz

Also no HDMI output by the way, tried 2 cables on monitor and TV.

User avatar
odroid
Site Admin
Posts: 37555
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean
ODROIDs: ODROID
Has thanked: 1846 times
Been thanked: 1160 times
Contact:

Re: Ubuntu kernel

Post by odroid »

Very weird.
I had no issue when I did "sudo modprobe ath9k" on Kernel 3.16.85-65.
Do you use a microSD card with an eMMC together?

kjansen387
Posts: 5
Joined: Sat May 15, 2021 6:19 am
languages_spoken: english
Has thanked: 0
Been thanked: 1 time
Contact:

Re: Ubuntu kernel

Post by kjansen387 »

Ha, yes! I didn't know, I got this Odroid from someone else. Didn't even know it had EMMC, and it for sure didn't ping with only EMMC (forgot to insert the microSD once).

So apparently that's the problem - a half working EMMC with old data. Removed it and it works fine now. Thanks!
These users thanked the author kjansen387 for the post:
odroid (Wed May 26, 2021 9:59 am)

Post Reply

Return to “Ubuntu”

Who is online

Users browsing this forum: No registered users and 4 guests