[Bug 872266] New: /lib/mkinitrd/setup/91-amd_microcode.sh fails
https://bugzilla.novell.com/show_bug.cgi?id=872266 https://bugzilla.novell.com/show_bug.cgi?id=872266#c0 Summary: /lib/mkinitrd/setup/91-amd_microcode.sh fails Classification: openSUSE Product: openSUSE 13.1 Version: Final Platform: x86-64 OS/Version: openSUSE 13.1 Status: NEW Severity: Normal Priority: P5 - None Component: Kernel AssignedTo: kernel-maintainers@forge.provo.novell.com ReportedBy: riggwelter@opensuse.org QAContact: qa-bugs@suse.de Found By: --- Blocker: --- When running mkinitrd on my new laptop, it fails with the following error: riggwelter:~ # mkinitrd Kernel image: /boot/vmlinuz-3.11.10-7-desktop Initrd image: /boot/initrd-3.11.10-7-desktop KMS drivers: radeon Root device: /dev/disk/by-id/ata-WDC_WD10JPVX-22JC3T0_WD-WX31E73CYSK3-part2 (/dev/sda2) (mounted on / as ext4) Microcode: Adding AMD microcode microcode_amd_fam16h.bin cp: missing destination file operand after ‘/tmp/.hWdCaWsx/mnt/lib/firmware/amd-ucode’ Try 'cp --help' for more information. Script /lib/mkinitrd/setup/91-amd_microcode.sh failed! There was an error generating the initrd (1) There is no such file in /lib/firmware/amd-ucode - only fam15h. Of course, the initrd then is not built as mkinitrd exits. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=872266
https://bugzilla.novell.com/show_bug.cgi?id=872266#c1
--- Comment #1 from James Ogley
https://bugzilla.novell.com/show_bug.cgi?id=872266
https://bugzilla.novell.com/show_bug.cgi?id=872266#c2
--- Comment #2 from Dirk Weber
https://bugzilla.novell.com/show_bug.cgi?id=872266
https://bugzilla.novell.com/show_bug.cgi?id=872266#c3
--- Comment #3 from Neil Brown
https://bugzilla.novell.com/show_bug.cgi?id=872266
https://bugzilla.novell.com/show_bug.cgi?id=872266#c4
Neil Brown
https://bugzilla.novell.com/show_bug.cgi?id=872266
https://bugzilla.novell.com/show_bug.cgi?id=872266#c5
--- Comment #5 from Bernhard Wiedemann
https://bugzilla.novell.com/show_bug.cgi?id=872266
https://bugzilla.novell.com/show_bug.cgi?id=872266#c6
--- Comment #6 from Bernhard Wiedemann
https://bugzilla.novell.com/show_bug.cgi?id=872266
https://bugzilla.novell.com/show_bug.cgi?id=872266#c7
--- Comment #7 from James Ogley
https://bugzilla.novell.com/show_bug.cgi?id=872266
https://bugzilla.novell.com/show_bug.cgi?id=872266#c8
--- Comment #8 from Swamp Workflow Management
https://bugzilla.novell.com/show_bug.cgi?id=872266
https://bugzilla.novell.com/show_bug.cgi?id=872266#c9
--- Comment #9 from James Ogley
https://bugzilla.novell.com/show_bug.cgi?id=872266
https://bugzilla.novell.com/show_bug.cgi?id=872266#c10
--- Comment #10 from James Ogley
https://bugzilla.novell.com/show_bug.cgi?id=872266
https://bugzilla.novell.com/show_bug.cgi?id=872266#c11
Dirk Weber
The patched version is still wrong, it checks for family >= 16 where it should be < 16.
Changing line 19 to the following fixes it: if [ $fam -lt 16 >& /dev/null ];then
In my understanding line 19 as is it included in the current setup-amd_microcode.sh with >= 16 is correct. Only CPUs of family >= 16 (0x10) support update of the ucode at all. This version of the script created correct initrds for fam 16 (0x10) and fam 20 (0x14) for me including the related ucode files. As far as I tested it would also create an initrd for fam 21 (0x15) containing the correct ucode file. It also exits with a return code of 0 for fam 22 (0x16) for which no ucode file exists - the return code != 0 in this case was the original problem which broke the creation of the initrd. It is a valid case that no ucode update exists (yet) for a family which supports ucode updates. The script also exits with return code 0 for fam < 16 (0x10) which do not support ucode updates. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=872266
https://bugzilla.novell.com/show_bug.cgi?id=872266#c12
--- Comment #12 from James Ogley
https://bugzilla.novell.com/show_bug.cgi?id=872266
https://bugzilla.novell.com/show_bug.cgi?id=872266#c13
--- Comment #13 from Dirk Weber
https://bugzilla.novell.com/show_bug.cgi?id=872266
https://bugzilla.novell.com/show_bug.cgi?id=872266#c14
--- Comment #14 from James Ogley
https://bugzilla.novell.com/show_bug.cgi?id=872266
https://bugzilla.novell.com/show_bug.cgi?id=872266#c15
--- Comment #15 from Dirk Weber
https://bugzilla.novell.com/show_bug.cgi?id=872266
https://bugzilla.novell.com/show_bug.cgi?id=872266#c16
--- Comment #16 from James Ogley
https://bugzilla.novell.com/show_bug.cgi?id=872266
https://bugzilla.novell.com/show_bug.cgi?id=872266#c17
--- Comment #17 from Dirk Weber
https://bugzilla.novell.com/show_bug.cgi?id=872266
https://bugzilla.novell.com/show_bug.cgi?id=872266#c18
--- Comment #18 from Dirk Weber
participants (1)
-
bugzilla_noreply@novell.com