Possible to update packages in chroot using x86_64

This forum is for discussion about general software issues.

Possible to update packages in chroot using x86_64

Postby rbuffat » Thu Feb 23, 2023 9:33 am

After following the RPI3 guide to install arch on an sdcard using ArchLinuxARM-rpi-aarch64-latest.tar.gz the raspberry pi will not boot because potentially e2fsprogs is too old (the sd card was formatted from an up-to-date Arch system). See also viewtopic.php?f=67&t=16388 / https://bugs.debian.org/cgi-bin/bugrepo ... ug=1031622

As ArchLinuxARM-rpi-aarch64-latest.tar.gz is from August 2022, is it possible to chroot into the Arch install on the sdcard from a x86_64 and update e2fsprogs? I would assume there would be some emulation of the aarch64 architecture necessary?
rbuffat
 
Posts: 5
Joined: Sun Feb 19, 2023 8:26 pm

Re: Possible to update packages in chroot using x86_64

Postby graysky » Thu Feb 23, 2023 9:51 am

Do you have another ArchARM box running aarch64 you can use? If so, chroot into the image from that and update. Maybe I am misunderstanding the problem.

EDIT: wait, if the problem is that the current x86_64 version of e2fsprogs formats to media with some incompatible flags (I recall this was true in the past for ODROID-C2 at some point), you can either figure out if there is a switch to disable the FEATURE_C12 thing, or you can downgrade e2fsprogs on x86_64, (use ALA), then format and create the image.
graysky
Developer
 
Posts: 1876
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Re: Possible to update packages in chroot using x86_64

Postby rbuffat » Thu Feb 23, 2023 10:10 am

Thanks for your quick answer! That's actually something I didn't think of. I indeed have a RPI4 that's booting from USB. I will try if I can use it to fix this issue.
rbuffat
 
Posts: 5
Joined: Sun Feb 19, 2023 8:26 pm

Re: Possible to update packages in chroot using x86_64

Postby graysky » Thu Feb 23, 2023 10:28 am

OK, so you're chrooting into the new image (from 2022) to update it from yoru RPi4/aarch64 box, yes? Let me know if that solves your boot problem.
graysky
Developer
 
Posts: 1876
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Re: Possible to update packages in chroot using x86_64

Postby robg » Thu Feb 23, 2023 1:24 pm

robg
 
Posts: 194
Joined: Tue Jan 05, 2021 8:22 am

Re: Possible to update packages in chroot using x86_64

Postby rbuffat » Thu Feb 23, 2023 5:38 pm

I chrootet into the sdcard using the pi4 and executed the following commands:

$this->bbcode_second_pass_code('', '
pacman-key --init
pacman-key --populate archlinuxarm
pacman -Suy
')

And now the pi3 boots successfully. But in retrospect, I'm not sure if it was safe to run pacman -Suy (e.g. regarding firmware). Thanks graysky and robg for your help!
rbuffat
 
Posts: 5
Joined: Sun Feb 19, 2023 8:26 pm


Return to General

Who is online

Users browsing this forum: No registered users and 19 guests