Errors building /boot/initramfs-linux.img

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

Errors building /boot/initramfs-linux.img

Postby surdo » Fri Feb 16, 2024 3:33 pm

Hello,

Since a recent update, I´ve had errors building /boot/initramfs-linux.img

The error can be seen if I run "sudo pacman -S linux". The print out below shows the warning "consolefont: no font found in configuration". I have tried deleting "consolefont" from the HOOKS() line in /etc/mkinitcpio.conf, however this did not solve the problem.


[code]
$ sudo pacman -S linux
warning: linux-rpi-6.6.16-2 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...

Packages (1) linux-rpi-6.6.16-2

Total Installed Size: 44.83 MiB
Net Upgrade Size: 0.00 MiB

:: Proceed with installation? [Y/n]
(1/1) checking keys in keyring [######################] 100%
(1/1) checking package integrity [######################] 100%
(1/1) loading package files [######################] 100%
(1/1) checking for file conflicts [######################] 100%
:: Processing package changes...
(1/1) reinstalling linux-rpi [######################] 100%
:: Running post-transaction hooks...
(1/3) Arming ConditionNeedsUpdate...
(2/3) Updating module dependencies...
(3/3) Updating linux initcpios...
==> Building image from preset: /etc/mkinitcpio.d/linux-rpi.preset: 'default'
==> Using configuration file: '/etc/mkinitcpio.conf'
-> -k 6.6.16-2-rpi -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img
==> Starting build: '6.6.16-2-rpi'
-> Running build hook: [base]
-> Running build hook: [udev]
-> Running build hook: [autodetect]
-> Running build hook: [modconf]
-> Running build hook: [kms]
-> Running build hook: [keyboard]
-> Running build hook: [keymap]
-> Running build hook: [consolefont]
==> WARNING: consolefont: no font found in configuration
-> Running build hook: [block]
-> Running build hook: [filesystems]
-> Running build hook: [fsck]
==> Generating module dependencies
==> Creating gzip-compressed initcpio image: '/boot/initramfs-linux.img'
==> WARNING: errors were encountered during the build. The image may not be complete.
error: command failed to execute correctly
[/code]

Please help
surdo
 
Posts: 8
Joined: Thu Mar 18, 2021 4:20 pm

Re: Errors building /boot/initramfs-linux.img

Postby Fuxino » Mon Feb 19, 2024 5:09 pm

Hello,
I'm also having issues with initramfs generation with mkinitcpio>=37-1 (image generation works fine with mkinitcpio-36-1).

$ cat /sys/firmware/devicetree/base/model
Raspberry Pi 3 Model B Rev 1.2

$ uname -a
Linux raspi 6.7.5-1-aarch64-ARCH #1 SMP PREEMPT_DYNAMIC Sat Feb 17 19:53:23 MST 2024 aarch64 GNU/Linux

$ sudo mkinitcpio -P -v
[url]https://0x0.st/Hn0X.txt[/url]

(Not sure why code and url tags won't work)
Fuxino
 
Posts: 2
Joined: Mon Feb 19, 2024 4:32 pm

Re: Errors building /boot/initramfs-linux.img

Postby karog » Mon Feb 19, 2024 11:09 pm

@surdo, consolefont is not a problem. I have been getting that for months and I have never noticed a difference.

for mkinitcpio 36 to 37 breakage, see thread

[url]https://archlinuxarm.org/forum/viewtopic.php?f=15&t=16672[/url]

This forum is so messed up and has been for months for any markup.
karog
 
Posts: 301
Joined: Thu Jan 05, 2012 7:55 pm

Re: Errors building /boot/initramfs-linux.img

Postby Fuxino » Tue Feb 20, 2024 4:31 pm

I didn't see that thread, indeed removing kms hook as some suggested fixed the issue (I don't think I need that anyway, since I'm using my Raspberry Pi as a headless server), now I can successfully build the initramfs with the latest version of mkinitcpio.
Fuxino
 
Posts: 2
Joined: Mon Feb 19, 2024 4:32 pm


Return to ARMv8

Who is online

Users browsing this forum: No registered users and 4 guests