uname -r incorrect after upgrade under qemu

This forum is for topics dealing with problems with software specifically in the AArch64 repo.

uname -r incorrect after upgrade under qemu

Postby shaughan » Wed May 13, 2020 9:07 pm

Under qemu:
After upgrading (pacman -Syu) linux-aarch64,
I have
$this->bbcode_second_pass_code('', '
pacman -Qs linux-aarch64
local/linux-aarch64 5.6.11-1
')
but
$this->bbcode_second_pass_code('', '
uname -r
5.5.7-1-ARCH
')
As a result, modules do not load and (among other things) no nic. And yes—I did remember to reboot.
Last edited by shaughan on Thu May 14, 2020 8:56 pm, edited 1 time in total.
shaughan
 
Posts: 7
Joined: Wed May 13, 2020 8:54 pm

Re: uname -r incorrect after upgrade

Postby moonman » Thu May 14, 2020 5:46 am

You boot partition is not mounted during upgrade, or mounted at a wrong mount point.
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3387
Joined: Sat Jan 15, 2011 3:36 am

Re: uname -r incorrect after upgrade

Postby shaughan » Thu May 14, 2020 5:29 pm

Thank you for replying.
$this->bbcode_second_pass_code('', 'ls /boot
Image Image.gz dtbs initramfs-linux-fallback.img initramfs-linux.img
')
so it seems to be mounted. However, there is no boot entry in /etc/mtab. My fstab has no entries. I'm confused about what all that means.
shaughan
 
Posts: 7
Joined: Wed May 13, 2020 8:54 pm

Re: uname -r incorrect after upgrade

Postby summers » Thu May 14, 2020 5:41 pm

Use $this->bbcode_second_pass_code('', 'fdisk') on your disk, and see what $this->bbcode_second_pass_code('', 'p') says ...
summers
 
Posts: 984
Joined: Sat Sep 06, 2014 12:56 pm

Re: uname -r incorrect after upgrade

Postby shaughan » Thu May 14, 2020 7:24 pm

$this->bbcode_second_pass_code('', '
fdisk -l
')
shows /dev/vda and /dev/loop0.
$this->bbcode_second_pass_code('', '
fdisk /dev/vda
p
')
shows "Device does not contain a recognized partition table."
as does
$this->bbcode_second_pass_code('', '
fdisk /dev/loop0
p
')
shaughan
 
Posts: 7
Joined: Wed May 13, 2020 8:54 pm

Re: uname -r incorrect after upgrade

Postby summers » Thu May 14, 2020 7:34 pm

I'd check through $this->bbcode_second_pass_code('', 'dmesg') for the disks found, its probably where the root partition is, that can be seen probably in $this->bbcode_second_pass_code('', 'cat /proc/cmdline')also $this->bbcode_second_pass_code('', 'df') should show what root is ... $this->bbcode_second_pass_code('', 'lsblk') also helps, and so on ...
summers
 
Posts: 984
Joined: Sat Sep 06, 2014 12:56 pm

Re: uname -r incorrect after upgrade

Postby shaughan » Thu May 14, 2020 8:47 pm

Thanks!
$this->bbcode_second_pass_code('', '
cat /proc/cmdline
root=/dev/vda rw

df
/dev/vda … /

lsblk
vda 252:0 … disk /
')
shaughan
 
Posts: 7
Joined: Wed May 13, 2020 8:54 pm

Re: uname -r incorrect after upgrade

Postby summers » Thu May 14, 2020 8:54 pm

Ah so it's a virtual machine. Alas that's beyond my experience. I've no idea how uboot would find the boot partition under such a machine.
summers
 
Posts: 984
Joined: Sat Sep 06, 2014 12:56 pm

Re: uname -r incorrect after upgrade under qemu

Postby shaughan » Thu May 14, 2020 8:58 pm

Well, thanks for trying. I've added qemu to the title of the top post now. That's been my problem—I know nothing about how qemu boots, and not much comes up on a search.
Last edited by shaughan on Fri May 15, 2020 4:19 pm, edited 1 time in total.
shaughan
 
Posts: 7
Joined: Wed May 13, 2020 8:54 pm

Re: uname -r incorrect after upgrade under qemu

Postby summers » Fri May 15, 2020 8:09 am

Did few minutes research on qemu over breakfast. Whats important is how you bring qemu up on the host machine, e.g. how you boot. If you use the linux/multiboot set up: https://www.qemu.org/docs/master/system/invocation.html#hxtool-8 then you need to update the parameters passed to the new kernel version.

If you are booting from an iso, then you should be able to fdisk the iso, and see whats on it (I think, been few years since I last did this).

But this then takes you back to how did you install arch linux arm in qemu in the first place, usually arch comes as tar file of root + some actions you do to get uboot to boot into arch. This is what you'll need to look at, whatever you did at install is what you'll need to change to point to the new kernel.
summers
 
Posts: 984
Joined: Sat Sep 06, 2014 12:56 pm

Next

Return to ARMv8

Who is online

Users browsing this forum: No registered users and 7 guests