Release Engineering

This project is intented for all release related issues (isos, installer, etc), under the umbrella of the ArchLinux Release Engineers
Tasklist

FS#59694 - [archiso] AMD ucode is loaded late

Attached to Project: Release Engineering
Opened by loqs (loqs) - Friday, 17 August 2018, 17:51 GMT
Last edited by Gerardo Exequiel Pozzi (djgera) - Sunday, 02 September 2018, 18:25 GMT
Task Type Bug Report
Category ArchISO
Status Closed
Assigned To Gerardo Exequiel Pozzi (djgera)
Laurent Carlier (lordheavy)
Architecture All
Severity Very Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

AMD ucode now like Intel ucode needs to be loaded from a separate early initrd to avoid a late load.
Related warning message "CPU features have changed after loading microcode, but might not take effect." [1]
[2] contains upstream's example of how to generate an appropriate initrd. Such a script could also be added to linux-firmware.

[1] https://bbs.archlinux.org/viewtopic.php?id=237674
[2] https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git/tree/Documentation/x86/microcode.txt?h=v4.16.13
This task depends upon

Closed by  Gerardo Exequiel Pozzi (djgera)
Sunday, 02 September 2018, 18:25 GMT
Reason for closing:  Implemented
Comment by Gerardo Exequiel Pozzi (djgera) - Saturday, 18 August 2018, 18:44 GMT
I can do these steps in build.sh, but maybe is better to have a package for amd_ucode.bin.
Comment by Gerardo Exequiel Pozzi (djgera) - Saturday, 18 August 2018, 20:16 GMT
Please test. Thanks.
Comment by loqs (loqs) - Saturday, 18 August 2018, 22:45 GMT
Thank you for the fast response djgera.

patch applied cleanly to archiso 38-1

cp -r /usr/share/archiso/configs/releng/ archive
cd archive
sudo ./build.sh

[mkarchiso] INFO: Configuration settings
[mkarchiso] INFO: Command: init
[mkarchiso] INFO: Architecture: x86_64
[mkarchiso] INFO: Working directory: work/x86_64
[mkarchiso] INFO: Installation directory: arch
[mkarchiso] INFO: Pacman config file: work/pacman.conf

[mkarchiso] INFO: Installing packages to 'work/x86_64/airootfs/'...
[mkarchiso] INFO: Packages installed successfully!

[mkarchiso] INFO: Configuration settings
[mkarchiso] INFO: Command: install
[mkarchiso] INFO: Architecture: x86_64
[mkarchiso] INFO: Working directory: work/x86_64
[mkarchiso] INFO: Installation directory: arch
[mkarchiso] INFO: Pacman config file: work/pacman.conf
[mkarchiso] INFO: Packages: haveged intel-ucode memtest86+ mkinitcpio-nfs-utils nbd zsh efitools

[mkarchiso] INFO: Installing packages to 'work/x86_64/airootfs/'...
[mkarchiso] INFO: Packages installed successfully!

[mkarchiso] INFO: Configuration settings
[mkarchiso] INFO: Command: install
[mkarchiso] INFO: Architecture: x86_64
[mkarchiso] INFO: Working directory: work/x86_64
[mkarchiso] INFO: Installation directory: arch
[mkarchiso] INFO: Pacman config file: work/pacman.conf
[mkarchiso] INFO: Packages: arch-install-scripts b43-fwcutter broadcom-wl btrfs-progs clonezilla crda darkhttpd ddrescue dhclient dialog dmraid dnsmasq dnsutils dosfstools elinks ethtool exfat-utils f2fs-tools fsarchiver gnu-netcat gpm gptfdisk grml-zsh-config grub hdparm ipw2100-fw ipw2200-fw irssi lftp linux-atm lsscsi mc mtools ndisc6 nfs-utils nilfs-utils nmap ntfs-3g ntp openconnect openssh openvpn partclone parted partimage ppp pptpclient refind-efi rp-pppoe rsync sdparm sg3_utils smartmontools sudo tcpdump testdisk usb_modeswitch vim-minimal vpnc wget wireless-regdb wireless_tools wpa_actiond wvdial xl2tpd

[mkarchiso] INFO: Installing packages to 'work/x86_64/airootfs/'...
[mkarchiso] INFO: Packages installed successfully!

[mkarchiso] INFO: Configuration settings
[mkarchiso] INFO: Command: run
[mkarchiso] INFO: Architecture: x86_64
[mkarchiso] INFO: Working directory: work/x86_64
[mkarchiso] INFO: Installation directory: arch
[mkarchiso] INFO: Run command: mkinitcpio -c /etc/mkinitcpio-archiso.conf -k /boot/vmlinuz-linux -g /boot/archiso.img

==> Starting build: 4.18.1-arch1-1-ARCH
-> Running build hook: [base]
-> Running build hook: [udev]
-> Running build hook: [memdisk]
-> Running build hook: [archiso_shutdown]
-> Running build hook: [archiso]
-> Running build hook: [archiso_loop_mnt]
-> Running build hook: [archiso_pxe_common]
==> WARNING: Possibly missing firmware for module: softing_cs
-> Running build hook: [archiso_pxe_nbd]
-> Running build hook: [archiso_pxe_http]
-> Running build hook: [archiso_pxe_nfs]
-> Running build hook: [archiso_kms]
-> Running build hook: [block]
==> WARNING: Possibly missing firmware for module: wd719x
==> WARNING: Possibly missing firmware for module: aic94xx
-> Running build hook: [filesystems]
-> Running build hook: [keyboard]
==> Generating module dependencies
==> Creating xz-compressed initcpio image: /boot/archiso.img
==> Image generation successful
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 19329 100 19329 0 0 55225 0 --:--:-- --:--:-- --:--:-- 55225

[mkarchiso] INFO: Configuration settings
[mkarchiso] INFO: Command: run
[mkarchiso] INFO: Architecture: x86_64
[mkarchiso] INFO: Working directory: work/x86_64
[mkarchiso] INFO: Installation directory: arch
[mkarchiso] INFO: Run command: /root/customize_airootfs.sh

Generating locales...
en_US.UTF-8... done
Generation complete.
Created symlink /etc/systemd/system/multi-user.target.wants/pacman-init.service -> /etc/systemd/system/pacman-init.service.
Created symlink /etc/systemd/system/multi-user.target.wants/choose-mirror.service -> /etc/systemd/system/choose-mirror.service.
Created symlink /etc/systemd/system/default.target -> /usr/lib/systemd/system/multi-user.target.
./build.sh: line 115: work/x86_64/airootfs/boot/amd-ucode.img: No such file or directory

Yes it may be better to have a ucode package that either generates or provides a combined ucode initrd or just the amd one.
Comment by Gerardo Exequiel Pozzi (djgera) - Saturday, 18 August 2018, 22:59 GMT
oops, I just tested and fixed it.

Comment by loqs (loqs) - Sunday, 19 August 2018, 20:34 GMT
Builds and compiled transferred to usb as per wiki instructions:
Intel EFI systemd-boot no issues system still applies microcode update
Intel BIOS syslinux firmware will not boot media this is an issue with my system.
I currently do not have access to an AMD system to test.
Comment by Gerardo Exequiel Pozzi (djgera) - Monday, 20 August 2018, 19:03 GMT
Thanks. I will push the patch and release a new archiso next weekeed for next iso snapshot.

Loading...