[SOLVED] linux-odroid-xu3: Upgrade mkinitcpio 22-1 -> 23-1

This forum is for supported devices using an ARMv7 Samsung SoC.

[SOLVED] linux-odroid-xu3: Upgrade mkinitcpio 22-1 -> 23-1

Postby sachilles » Tue Mar 14, 2017 1:05 pm

Hi there,

as of today an update for the package mkinitcpio was released. After installing an post-transaction hook started and finished with the message

$this->bbcode_second_pass_code('', '(1/4) Updating linux-odroid-xu3 initcpios
==> Building image from preset: /etc/mkinitcpio.d/linux-odroid-xu3.preset: 'default'
-> -k 4.9.13-1-ARCH -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img
==> Starting build: 4.9.13-1-ARCH
-> Running build hook: [base]
-> Running build hook: [udev]
-> Running build hook: [autodetect]
-> Running build hook: [modconf]
-> Running build hook: [block]
-> Running build hook: [filesystems]
-> Running build hook: [keyboard]
==> ERROR: module not found: `usbhid'
-> Running build hook: [fsck]
==> WARNING: No modules were added to the image. This is probably not what you want.
==> 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
')

Do you have an idea whether or not the file /boot/initramfs-linux.img was created succesfully?

Kind regards
Last edited by sachilles on Wed Mar 15, 2017 7:05 pm, edited 1 time in total.
sachilles
 
Posts: 13
Joined: Wed Aug 12, 2015 7:47 am

Re: linux-odroid-xu3: Upgrade core/mkinitcpio 22-1 -> 23-1

Postby sachilles » Tue Mar 14, 2017 4:19 pm

Hi,

I figured out that the upgrade warning does also apply to the package for the Raspberry Pi B (armv6).

Kind regards

@admins: Is there a chance to move this contribution to the section Packages or Kernel in this forum? Thanks in advance.
sachilles
 
Posts: 13
Joined: Wed Aug 12, 2015 7:47 am

Re: linux-odroid-xu3: Upgrade core/mkinitcpio 22-1 -> 23-1

Postby bernd7 » Tue Mar 14, 2017 7:27 pm

Hi,
same here: Raspberry Pi 2 B.

I updated the system using pacman -Syu. Updated package for example: linux-raspberrypi from 4.4.45-1 to 4.9.14-1.

Running mkinitcpio -p linux-raspberrypi again - same error.

Kind regards,
Bernd
bernd7
 
Posts: 8
Joined: Sat Mar 05, 2016 4:19 pm

Re: linux-odroid-xu3: Upgrade core/mkinitcpio 22-1 -> 23-1

Postby bulletmark » Tue Mar 14, 2017 10:43 pm

I got this same errror updating my RPi2 today. Is there a fix?

Is my box safe to reboot?

PS edit: I rebooted and it came up ok with the new kernel and no apparent problems.
bulletmark
 
Posts: 98
Joined: Tue Oct 13, 2015 10:17 pm

Re: linux-odroid-xu3: Upgrade core/mkinitcpio 22-1 -> 23-1

Postby enricostn » Tue Mar 14, 2017 11:22 pm

Hi there,

same error here with Raspberry Pi Model B Rev 1 and armv7 pi3b

Didn't dare to reboot :?
enricostn
 
Posts: 3
Joined: Thu Jun 23, 2016 8:44 am

Re: linux-odroid-xu3: Upgrade core/mkinitcpio 22-1 -> 23-1

Postby phovos » Wed Mar 15, 2017 3:50 am

I also have similar issue with Rpi model b.

$this->bbcode_second_pass_code('', '(1/8) Updating linux-raspberrypi initcpios
==> Building image from preset: /etc/mkinitcpio.d/linux-raspberrypi.preset: 'default'
-> -k 4.9.14-1-ARCH -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img
==> Starting build: 4.9.14-1-ARCH
-> Running build hook: [base]
-> Running build hook: [udev]
-> Running build hook: [autodetect]
-> Running build hook: [modconf]
-> Running build hook: [block]
-> Running build hook: [lvm2]
==> ERROR: module not found: `dm_mod'
==> ERROR: module not found: `dm_mirror'
==> ERROR: module not found: `dm_thin_pool'
-> Running build hook: [filesystems]
-> Running build hook: [keyboard]
==> ERROR: module not found: `usbhid'
-> 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
')
phovos
 
Posts: 12
Joined: Sat Mar 11, 2017 12:58 am

Re: linux-odroid-xu3: Upgrade core/mkinitcpio 22-1 -> 23-1

Postby ortango » Wed Mar 15, 2017 5:08 am

so what i see is:

usb_hid is built into the kernel (and dm_ modules also looks like):
$this->bbcode_second_pass_code('', '
[alarm@alarmpi ~]$ uname -a
Linux alarmpi 4.9.14-2-ARCH #1 SMP Wed Mar 15 01:53:18 UTC 2017 armv6l GNU/Linux
[alarm@alarmpi ~]$ zgrep -i usb_hid /proc/config.gz
CONFIG_USB_HID=y
CONFIG_USB_HIDDEV=y
')
the keyboard mkinitcpio hook contains usbhid
$this->bbcode_second_pass_code('', '
[alarm@alarmpi ~]$ grep -Ri usbhid /usr/lib/initcpio/install/
/usr/lib/initcpio/install/usbinput: add_module 'usbhid'
/usr/lib/initcpio/install/keyboard: add_module 'usbhid'
')
lvm2 for the dm_ stuff

no /usr/lib/modules/4.9.14-2-ARCH/kernel/drivers/hid/usbhid.ko.gz here (but its builtin)

i guess the hooks will change? though idk when or even if anything changed as far as usbhid(or dm_stuff) being built into the alarm kernels. or maybe i'm off base.
ortango
 
Posts: 2
Joined: Wed Mar 15, 2017 4:45 am

Re: linux-odroid-xu3: Upgrade core/mkinitcpio 22-1 -> 23-1

Postby sachilles » Wed Mar 15, 2017 7:21 am

Hi,

as of today the package core/mkinitcpio was updated (23-1 -> 23-1.1) and the post-transaction hook seems to work on a Raspberry Pi B

$this->bbcode_second_pass_code('', '(1/3) Updating linux-raspberrypi initcpios
==> Building image from preset: /etc/mkinitcpio.d/linux-raspberrypi.preset: 'default'
-> -k 4.9.14-2-ARCH -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img
==> Starting build: 4.9.14-2-ARCH
-> Running build hook: [base]
-> Running build hook: [udev]
-> Running build hook: [autodetect]
-> Running build hook: [modconf]
-> Running build hook: [block]
-> Running build hook: [filesystems]
-> Running build hook: [keyboard]
-> Running build hook: [fsck]
==> WARNING: No modules were added to the image. This is probably not what you want.
==> Creating gzip-compressed initcpio image: /boot/initramfs-linux.img
==> Image generation successful
')

and on a odroid XU4

$this->bbcode_second_pass_code('', '(1/3) Updating linux-odroid-xu3 initcpios
==> Building image from preset: /etc/mkinitcpio.d/linux-odroid-xu3.preset: 'default'
-> -k 4.9.13-1-ARCH -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img
==> Starting build: 4.9.13-1-ARCH
-> Running build hook: [base]
-> Running build hook: [udev]
-> Running build hook: [autodetect]
-> Running build hook: [modconf]
-> Running build hook: [block]
-> Running build hook: [filesystems]
-> Running build hook: [keyboard]
-> Running build hook: [fsck]
==> WARNING: No modules were added to the image. This is probably not what you want.
==> Creating gzip-compressed initcpio image: /boot/initramfs-linux.img
==> Image generation successful
')

However, does the warning: No modules were added to the image. This is probably not what you want. really means that there no additional modules are built in?

Best regards
sachilles
 
Posts: 13
Joined: Wed Aug 12, 2015 7:47 am

Re: linux-odroid-xu3: Upgrade core/mkinitcpio 22-1 -> 23-1

Postby enricostn » Wed Mar 15, 2017 7:48 am

$this->bbcode_second_pass_code('', 'linux-raspberrypi-4.9.14-2
mkinitcpio-23-1.1')

just landed, now the image is built without errors but there is still a warning:

https://gist.github.com/enricostano/05e ... 5d09a94dca

$this->bbcode_second_pass_code('', '
==> WARNING: No modules were added to the image. This is probably not what you want.
')

What does that mean?

Thank you!
enricostn
 
Posts: 3
Joined: Thu Jun 23, 2016 8:44 am

Re: linux-odroid-xu3: Upgrade core/mkinitcpio 22-1 -> 23-1

Postby ortango » Wed Mar 15, 2017 5:33 pm

so looks like those modules don't need to be loaded anymore because they're baked into the kernel (my previous post).

$this->bbcode_second_pass_code('', 'install_modules() {
....
if (( $# == 0 )); then
warning "No modules were added to the image. This is probably not what you want."')

throws the error, so it looks like its just because modules to install is 0

$this->bbcode_second_pass_code('', 'mkinitcpio -M') doesn't show anything scary.

and fyi mkinitcpio -1 patch:

mkinitcpio-23-1.1-any.pkg.tar/usr/lib/initcpio/functions ln 393
$this->bbcode_second_pass_code('', '(( ign_errors || _addedmodules["$target"] )) && return 0')
ortango
 
Posts: 2
Joined: Wed Mar 15, 2017 4:45 am

Next

Return to Samsung

Who is online

Users browsing this forum: No registered users and 3 guests