Jump to content
  • 0

ego boot update doesn't find microcode


perfmonk
 Share

Question

Trying to run "ego boot update" to reboot on funtoo and install the graphic environment  (in a VM).

I get the following error message :

(chroot)livecd /etc/portage # ego boot update
  * Generating config for grub...

ERROR: Ego encountered an unexpected error: AttributeError
ERROR: Full traceback written to /tmp/ego-traceback-16718.txt.

And the following is in the traceback log :

'NoneType' object has no attribute 'generate_cpu_microcode_initramfs'Traceback (most recent call last):
  File "/usr/bin/ego", line 120, in <module>
    EgoModule.run_ego_module(action, econfig, args, VERSION)
  File "/usr/share/ego/python/ego/module.py", line 110, in run_ego_module
    ego_module(*args)
  File "/usr/share/ego/python/ego/module.py", line 95, in __call__
    self.handle()
  File "/usr/share/ego/modules/boot.ego", line 256, in handle
    handler()
  File "/usr/share/ego/modules/boot.ego", line 225, in update_action
    self.update(boot_menu, quiet=quiet, cleanup=True, check=check, boot_options=self.boot_options)
  File "/usr/share/ego/modules/boot.ego", line 113, in update
    success = extension.regenerate(boot_menu)
  File "/usr/share/ego/python/funtoo/boot/extension.py", line 98, in regenerate
    self.generateConfigFile(boot_menu)
  File "/usr/share/ego/python/funtoo/boot/extensions/grub.py", line 413, in generateConfigFile
    self.resolver.GenerateSections(boot_menu, self.generateBootEntry, self.generateOtherBootEntry)
  File "/usr/share/ego/python/funtoo/boot/resolver.py", line 505, in GenerateSections
    ok = self._GenerateLinuxSection(boot_menu, sect, sfunc)
  File "/usr/share/ego/python/funtoo/boot/resolver.py", line 432, in _GenerateLinuxSection
    ok = sfunc(boot_menu, sect, kname, kext)
  File "/usr/share/ego/python/funtoo/boot/extensions/grub.py", line 209, in generateBootEntry
    initrds = self.resolver.find_initrds(initrds, scanpath, k_full_path, kext)
  File "/usr/share/ego/python/funtoo/boot/resolver.py", line 135, in find_initrds
    success, initramfs = self.generate_cpu_microcode_initramfs(scanpath=scanpath)
  File "/usr/share/ego/python/funtoo/boot/resolver.py", line 129, in generate_cpu_microcode_initramfs
    return self.cpu.generate_cpu_microcode_initramfs(scanpath)
AttributeError: 'NoneType' object has no attribute 'generate_cpu_microcode_initramfs'

 

I have installed "linux-firmware" 20211027  but ego doesn't seems to find the AMD firmware.

Info on the laptop here:

linux-0rk5:/mnt/garuda/@/etc # inxi -faz
CPU:       Info: Quad Core model: AMD A6-3400M APU with Radeon HD Graphics socket: FS1 bits: 64 type: MCP arch: Fusion
           family: 12 (18) model-id: 1 stepping: 0 microcode: 3000027 cache: L1: 512 KiB L2: 4 MiB bogomips: 11179
           Speed: 801 MHz min/max: 800/1400 MHz base/boost: 1400/1400 boost: enabled volts: 1.1 V ext-clock: 100 MHz
           Core speeds (MHz): 1: 801 2: 811 3: 799 4: 807
           Flags: 3dnow 3dnowext 3dnowprefetch abm aperfmperf apic arat clflush cmov cmp_legacy constant_tsc cpb cpuid
           cr8_legacy cx16 cx8 de extapic extd_apicid fpu fxsr fxsr_opt ht hw_pstate ibs lahf_lm lbrv lm mca mce misalignsse
           mmx mmxext monitor msr mtrr nonstop_tsc nopl npt nrip_save nx osvw pae pat pausefilter pdpe1gb pge pni popcnt pse
           pse36 rdtscp rep_good sep skinit sse sse2 sse4a svm svm_lock syscall tsc vme vmmcall wdt
           Vulnerabilities: Type: itlb_multihit status: Not affected
           Type: l1tf status: Not affected
           Type: mds status: Not affected
           Type: meltdown status: Not affected
           Type: spec_store_bypass status: Not affected
           Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer sanitization
           Type: spectre_v2 mitigation: Full AMD retpoline, STIBP: disabled, RSB filling
           Type: srbds status: Not affected
           Type: tsx_async_abort status: Not affected


I'm installing Funtoo in a VM under KVM.  Booted the VM with 3Gb memory, 25Gb vdisk with ext2 /boot on vda1, btrfs root on vda3 (yes I had to recompile genkernel and linux-debian-source) and 2Gb swap on vda2.  The vm processors are a copy of the current machine and virtmanage show it is an "Opteron_G3".

I have installed inxi in the vm and it show the following info :

(chroot)livecd /etc/portage # inxi -faz
CPU:       Info: 4x Single Core model: AMD Opteron 23xx (Gen 3 Class Opteron) bits: 64 type: SMP arch: K10 family: 10 (16)
           model-id: 2 stepping: 3 microcode: 1000065 cache: L2: 2 MiB bogomips: 11179
           Speed: 1397 MHz min/max: N/A Core speeds (MHz): 1: 1397 2: 1397 3: 1397 4: 1397
           Flags: 3dnow 3dnowext 3dnowprefetch abm apic arat clflush cmov cmp_legacy cpuid cr8_legacy cx16 cx8 de extd_apicid
           fpu fxsr fxsr_opt hypervisor lahf_lm lm mca mce misalignsse mmx mmxext msr mtrr nopl nx osvw pae pat pdpe1gb pge
           pni popcnt pse pse36 rdtscp rep_good sep sse sse2 sse4a syscall tsc tsc_deadline_timer tsc_known_freq vme vmmcall
           x2apic
           Vulnerabilities: Type: l1tf status: Not affected
           Type: mds status: Not affected
           Type: meltdown status: Not affected
           Type: spec_store_bypass status: Not affected
           Type: spectre_v1 mitigation: __user pointer sanitization
           Type: spectre_v2 mitigation: Full AMD retpoline, STIBP: disabled, RSB filling

 

I have added use flag "btrfs" in the make.conf previously.

Anything I have forget ?  Or is that a problem with the AMD microcode not loading ???

Regards,

              BT

 

Any hint how to finally be able to boot this VM ???

Edited by perfmonk
Link to comment
Share on other sites

1 answer to this question

Recommended Posts

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...