MKINITCPIO give a error message

This forum is for discussion about general software issues.

MKINITCPIO give a error message

Postby 1retfel » Mon Feb 12, 2024 12:34 pm

I'm having a trouble with a kernel image generation. After tthe command execution appears the following error message.

[quote]==> Starting build: '(VER)-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]
-> 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.[/quote]

And I don't know how I see what is the cause of this error.
1retfel
 
Posts: 9
Joined: Wed Oct 05, 2022 3:15 pm

Re: MKINITCPIO give a error message

Postby laurawoods » Tue Feb 20, 2024 4:55 am

You can run `mkinitcpio` with the `-v` flag (e.g., `mkinitcpio -v (VER)-rpi`). This increases the verbosity of output, possibly revealing more information during the build process.
laurawoods
 
Posts: 1
Joined: Tue Feb 20, 2024 4:53 am

Re: MKINITCPIO give a error message | Sorry for my delay, an

Postby 1retfel » Sat Mar 09, 2024 2:24 am

...I have a new problem!

[code]==> Starting build: '6.6.20-2-rpi'
-> Running build hook: [base]
-> Running build hook: [udev]
-> Running build hook: [autodetect]
-> Running build hook: [microcode]
==> WARNING: architecture 'aarch64' not supported, skipping hook
-> Running build hook: [modconf]
-> Running build hook: [kms]
-> Running build hook: [keyboard]
-> Running build hook: [keymap]
-> Running build hook: [consolefont]
-> Running build hook: [block]
-> Running build hook: [filesystems]
-> Running build hook: [fsck]
==> Generating module dependencies
==> Creating gzip-compressed initcpio image: '/boot/initramfs-linux.img'
bsdtar: Failed to set default locale
bsdtar: Failed to set default locale
==> Initcpio image generation successful[/code]
1retfel
 
Posts: 9
Joined: Wed Oct 05, 2022 3:15 pm

Re: MKINITCPIO give a error message

Postby shyne » Mon Mar 11, 2024 10:49 am

Same error here:

# mkinitcpio -p linux-aarch64
==> Building image from preset: /etc/mkinitcpio.d/linux-aarch64.preset: 'default'
==> Using configuration file: '/etc/mkinitcpio.conf'
-> -k 6.7.8-1-aarch64-ARCH -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img
==> Starting build: '6.7.8-1-aarch64-ARCH'
-> 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: [block]
-> Running build hook: [filesystems]
-> Running build hook: [fsck]
==> Generating module dependencies
==> Creating gzip-compressed initcpio image: '/boot/initramfs-linux.img'
bsdtar: bsdtar: Failed to set default localeFailed to set default locale

==> WARNING: errors were encountered during the build. The image may not be complete.
shyne
 
Posts: 7
Joined: Wed Jun 21, 2023 6:20 am

Re: MKINITCPIO give a error message

Postby shyne » Mon Mar 11, 2024 11:49 am

Ok, mkinicpio seems to force locale to C.UTF-8

So I have uncommented C.UTF-8 UTF-8 in /etc/locale.gen and rerun locale-gen.
shyne
 
Posts: 7
Joined: Wed Jun 21, 2023 6:20 am

Re: MKINITCPIO give a error message

Postby 1retfel » Mon Mar 11, 2024 6:16 pm

Well... the problem with the locale was solved. But...

==> WARNING: architecture 'aarch64' not supported, skipping hook
1retfel
 
Posts: 9
Joined: Wed Oct 05, 2022 3:15 pm

Re: MKINITCPIO give a error message

Postby shyne » Mon Mar 11, 2024 6:22 pm

Remove microcode hook from /etc/mkinitcpio.conf
shyne
 
Posts: 7
Joined: Wed Jun 21, 2023 6:20 am

Re: MKINITCPIO give a error message

Postby 1retfel » Mon Mar 11, 2024 6:52 pm

It's worked. But why?
1retfel
 
Posts: 9
Joined: Wed Oct 05, 2022 3:15 pm


Return to General

Who is online

Users browsing this forum: No registered users and 5 guests