I have problem booting 32bit kernel on UEFI (Both on VirtualBox and Real System). I got kernel panic when initializing efivars. I guess efivars on 32bit kernel try to use 32bit EFI data structure when booting on 64bit UEFI. This may related to problems I found before about efibootmgr because different efivars sysfs data structure is different when running 32bit and 64bit kernel. If efibootmgr compiled for 32bit it cannot be use on 64bit kernel (and also 64bit UEFI) and vice versa. https://bugs.gentoo.org/show_bug.cgi?id=431984 So anyway It means I cannot update UEFI boot variables either booting 64bit kernel with 32bit userland or 32bit kernel. Only way is to boot 64bit kernel + userland to do that. Initializing cgroup subsys cpuset Initializing cgroup subsys cpu Linux version 3.5.2-gentoo (root@xwing) (gcc version 4.5.3 (Gentoo 4.5.3-r2 p1.5, pie-0.4.7) ) #1 SMP PREEMPT Mon Aug 20 21:12:08 Local time zone must be set-- e820: BIOS-provided physical RAM map: BIOS-e820: [mem 0x0000000000000000-0x000000000009ffff] usable BIOS-e820: [mem 0x0000000000100000-0x000000005e9d2fff] usable BIOS-e820: [mem 0x000000005e9d3000-0x000000005e9f5fff] reserved BIOS-e820: [mem 0x000000005e9f6000-0x000000005ea1ffff] usable BIOS-e820: [mem 0x000000005ea20000-0x000000005ea35fff] reserved BIOS-e820: [mem 0x000000005ea36000-0x000000005f8bdfff] usable BIOS-e820: [mem 0x000000005f8be000-0x000000005f8cbfff] reserved BIOS-e820: [mem 0x000000005f8cc000-0x000000005f912fff] usable BIOS-e820: [mem 0x000000005f913000-0x000000005f921fff] reserved BIOS-e820: [mem 0x000000005f922000-0x000000005f92efff] usable BIOS-e820: [mem 0x000000005f92f000-0x000000005f99efff] reserved BIOS-e820: [mem 0x000000005f99f000-0x000000005f9bafff] ACPI data BIOS-e820: [mem 0x000000005f9bb000-0x000000005f9befff] ACPI NVS BIOS-e820: [mem 0x000000005f9bf000-0x000000005fedffff] usable BIOS-e820: [mem 0x000000005fee0000-0x000000005fefffff] reserved Notice: NX (Execute Disable) protection cannot be enabled: non-PAE kernel! efi: EFI v2.10 by VBOX 64 efi: ACPI=0x5f9ba000 ACPI 2.0=0x5f9ba014 SMBIOS=0x5f9bd000 MPS=0x5f9bc000 efi: No EFI runtime due to 32/64-bit mismatch with kernel efi: mem00: type=7, attr=0xf, range=[0x0000000000000000-0x00000000000a0000) (0MB) efi: mem01: type=2, attr=0xf, range=[0x0000000000100000-0x00000000007e2000) (6MB) efi: mem02: type=7, attr=0xf, range=[0x00000000007e2000-0x000000001f000000) (488MB) efi: mem03: type=3, attr=0xf, range=[0x000000001f000000-0x000000001f00e000) (0MB) efi: mem04: type=7, attr=0xf, range=[0x000000001f00e000-0x0000000037c40000) (396MB) efi: mem05: type=2, attr=0xf, range=[0x0000000037c40000-0x0000000037e18000) (1MB) efi: mem06: type=7, attr=0xf, range=[0x0000000037e18000-0x000000004617b000) (227MB) efi: mem07: type=2, attr=0xf, range=[0x000000004617b000-0x000000005d7cf000) (374MB) efi: mem08: type=4, attr=0xf, range=[0x000000005d7cf000-0x000000005dbb6000) (3MB) efi: mem09: type=7, attr=0xf, range=[0x000000005dbb6000-0x000000005dc9b000) (0MB) efi: mem10: type=4, attr=0xf, range=[0x000000005dc9b000-0x000000005dc9d000) (0MB) efi: mem11: type=7, attr=0xf, range=[0x000000005dc9d000-0x000000005dc9e000) (0MB) efi: mem12: type=4, attr=0xf, range=[0x000000005dc9e000-0x000000005dce3000) (0MB) efi: mem13: type=7, attr=0xf, range=[0x000000005dce3000-0x000000005de63000) (1MB) efi: mem14: type=2, attr=0xf, range=[0x000000005de63000-0x000000005de69000) (0MB) efi: mem15: type=4, attr=0xf, range=[0x000000005de69000-0x000000005de6f000) (0MB) efi: mem16: type=1, attr=0xf, range=[0x000000005de6f000-0x000000005de8d000) (0MB) efi: mem17: type=4, attr=0xf, range=[0x000000005de8d000-0x000000005e7e7000) (9MB) efi: mem18: type=3, attr=0xf, range=[0x000000005e7e7000-0x000000005e951000) (1MB) efi: mem19: type=4, attr=0xf, range=[0x000000005e951000-0x000000005e952000) (0MB) efi: mem20: type=3, attr=0xf, range=[0x000000005e952000-0x000000005e9d3000) (0MB) efi: mem21: type=5, attr=0x800000000000000f, range=[0x000000005e9d3000-0x000000005e9f6000) (0MB) efi: mem22: type=3, attr=0xf, range=[0x000000005e9f6000-0x000000005ea20000) (0MB) efi: mem23: type=5, attr=0x800000000000000f, range=[0x000000005ea20000-0x000000005ea35000) (0MB) efi: mem24: type=0, attr=0xf, range=[0x000000005ea35000-0x000000005ea36000) (0MB) efi: mem25: type=4, attr=0xf, range=[0x000000005ea36000-0x000000005eed3000) (4MB) efi: mem26: type=3, attr=0xf, range=[0x000000005eed3000-0x000000005eede000) (0MB) efi: mem27: type=4, attr=0xf, range=[0x000000005eede000-0x000000005f83f000) (9MB) efi: mem28: type=7, attr=0xf, range=[0x000000005f83f000-0x000000005f843000) (0MB) efi: mem29: type=3, attr=0xf, range=[0x000000005f843000-0x000000005f8be000) (0MB) efi: mem30: type=5, attr=0x800000000000000f, range=[0x000000005f8be000-0x000000005f8cc000) (0MB) efi: mem31: type=3, attr=0xf, range=[0x000000005f8cc000-0x000000005f913000) (0MB) efi: mem32: type=5, attr=0x800000000000000f, range=[0x000000005f913000-0x000000005f922000) (0MB) efi: mem33: type=3, attr=0xf, range=[0x000000005f922000-0x000000005f92f000) (0MB) efi: mem34: type=5, attr=0x800000000000000f, range=[0x000000005f92f000-0x000000005f933000) (0MB) efi: mem35: type=5, attr=0x800000000000000f, range=[0x000000005f933000-0x000000005f94f000) (0MB) efi: mem36: type=6, attr=0x800000000000000f, range=[0x000000005f94f000-0x000000005f985000) (0MB) efi: mem37: type=6, attr=0x800000000000000f, range=[0x000000005f985000-0x000000005f99f000) (0MB) efi: mem38: type=9, attr=0xf, range=[0x000000005f99f000-0x000000005f9b5000) (0MB) efi: mem39: type=9, attr=0xf, range=[0x000000005f9b5000-0x000000005f9bb000) (0MB) efi: mem40: type=10, attr=0xf, range=[0x000000005f9bb000-0x000000005f9bc000) (0MB) efi: mem41: type=10, attr=0xf, range=[0x000000005f9bc000-0x000000005f9bf000) (0MB) efi: mem42: type=4, attr=0xf, range=[0x000000005f9bf000-0x000000005fee0000) (5MB) efi: mem43: type=6, attr=0x800000000000000f, range=[0x000000005fee0000-0x000000005ff00000) (0MB) DMI 2.5 present. e820: last_pfn = 0x5fee0 max_arch_pfn = 0x100000 x86 PAT enabled: cpu 0, old 0x7040600070406, new 0x7010600070106 CPU MTRRs all blank - virtualized system. found SMP MP-table at [mem 0x0009fff0-0x0009ffff] mapped at [c009fff0] init_memory_mapping: [mem 0x00000000-0x377fdfff] RAMDISK: [mem 0x37c40000-0x37e17fff] Allocated new RAMDISK: [mem 0x37626000-0x377fda4f] Move RAMDISK from [mem 0x37c40000-0x37e17a4f] to [mem 0x37626000-0x377fda4f] ACPI: RSDP 5f9ba014 00024 (v02 VBOX ) ACPI: XSDT 5f9ba120 0003C (v01 VBOX VBOXFACP 00000001 01000013) ACPI: FACP 5f9b8000 000F4 (v04 VBOX VBOXFACP 00000001 ASL 00000061) ACPI: DSDT 5f9b6000 01B96 (v01 VBOX VBOXBIOS 00000002 INTL 20100528) ACPI: FACS 5f9be000 00040 ACPI: APIC 5f9b9000 0006C (v02 VBOX VBOXAPIC 00000001 ASL 00000061) ACPI: SSDT 5f9b5000 001CC (v01 VBOX VBOXCPUT 00000002 INTL 20100528) 646MB HIGHMEM available. 887MB LOWMEM available. mapped low ram: 0 - 377fe000 low ram: 0 - 377fe000 Zone ranges: DMA [mem 0x00010000-0x00ffffff] Normal [mem 0x01000000-0x377fdfff] HighMem [mem 0x377fe000-0x5fedffff] Movable zone start for each node Early memory node ranges node 0: [mem 0x00010000-0x0009ffff] node 0: [mem 0x00100000-0x5e9d2fff] node 0: [mem 0x5e9f6000-0x5ea1ffff] node 0: [mem 0x5ea36000-0x5f8bdfff] node 0: [mem 0x5f8cc000-0x5f912fff] node 0: [mem 0x5f922000-0x5f92efff] node 0: [mem 0x5f9bf000-0x5fedffff] Using APIC driver default ACPI: PM-Timer IO Port: 0x408 ACPI: LAPIC (acpi_id[0x00] lapic_id[0x00] enabled) ACPI: LAPIC (acpi_id[0x01] lapic_id[0x01] enabled) ACPI: LAPIC (acpi_id[0x02] lapic_id[0x02] enabled) ACPI: LAPIC (acpi_id[0x03] lapic_id[0x03] enabled) ACPI: IOAPIC (id[0x04] address[0xfec00000] gsi_base[0]) IOAPIC[0]: apic_id 4, version 17, address 0xfec00000, GSI 0-23 ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl) ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level) Using ACPI (MADT) for SMP configuration information SMP: Allowing 4 CPUs, 0 hotplug CPUs PM: Registered nosave memory: 00000000000a0000 - 0000000000100000 e820: [mem 0x5ff00000-0xffffffff] available for PCI devices Booting paravirtualized kernel on bare hardware setup_percpu: NR_CPUS:8 nr_cpumask_bits:8 nr_cpu_ids:4 nr_node_ids:1 PERCPU: Embedded 12 pages/cpu @f69ec000 s24800 r0 d24352 u49152 Built 1 zonelists in Zone order, mobility grouping on. Total pages: 389516 Kernel command line: BOOT_IMAGE=/boot/kernel-genkernel-x86-3.5.2-gentoo root=/dev/mapper/xwvg0-data ro rootflags=subvol=xwing32 dolvm dolvm console=ttyS0,115200 console=tty0 PID hash table entries: 4096 (order: 2, 16384 bytes) Dentry cache hash table entries: 131072 (order: 7, 524288 bytes) Inode-cache hash table entries: 65536 (order: 6, 262144 bytes) __ex_table already sorted, skipping sort Initializing CPU#0 Initializing HighMem for node 0 (000377fe:0005fee0) Memory: 1512684k/1571712k available (3830k kernel code, 21192k reserved, 1431k data, 416k init, 625020k highmem) virtual kernel memory layout: fixmap : 0xfff16000 - 0xfffff000 ( 932 kB) pkmap : 0xff800000 - 0xffc00000 (4096 kB) vmalloc : 0xf7ffe000 - 0xff7fe000 ( 120 MB) lowmem : 0xc0000000 - 0xf77fe000 ( 887 MB) .init : 0xc1524000 - 0xc158c000 ( 416 kB) .data : 0xc13bd97e - 0xc15235e0 (1431 kB) .text : 0xc1000000 - 0xc13bd97e (3830 kB) Checking if this processor honours the WP bit even in supervisor mode...Ok. Preemptible hierarchical RCU implementation. NR_IRQS:2304 nr_irqs:712 16 Console: colour dummy device 80x25 console [tty0] enabled console [ttyS0] enabled Fast TSC calibration failed TSC: PIT calibration matches PMTIMER. 2 loops Detected 1630.513 MHz processor. Calibrating delay loop (skipped), value calculated using timer frequency.. 3261.02 BogoMIPS (lpj=1630513) pid_max: default: 32768 minimum: 301 Mount-cache hash table entries: 512 Initializing cgroup subsys cpuacct Initializing cgroup subsys devices Initializing cgroup subsys freezer Initializing cgroup subsys blkio CPU: Physical Processor ID: 0 CPU: Processor Core ID: 0 mce: CPU supports 0 MCE banks ACPI: Core revision 20120320 Enabling APIC mode: Flat. Using 1 I/O APICs ..TIMER: vector=0x30 apic1=0 pin1=2 apic2=-1 pin2=-1 CPU0: Intel(R) Core(TM) i5-2467M CPU @ 1.60GHz stepping 07 Performance Events: unsupported p6 CPU model 42 no PMU driver, software events only. Booting Node 0, Processors #1Initializing CPU#1 mce: CPU supports 0 MCE banks TSC synchronization [CPU#0 -> CPU#1]: Measured 52328 cycles TSC warp between CPUs, turning off TSC clock. Marking TSC unstable due to check_tsc_sync_source failed #2Initializing CPU#2 mce: CPU supports 0 MCE banks #3 Ok. Initializing CPU#3 mce: CPU supports 0 MCE banks Brought up 4 CPUs Total of 4 processors activated (13044.10 BogoMIPS). PM: Registering ACPI NVS region [mem 0x5f9bb000-0x5f9befff] (16384 bytes) NET: Registered protocol family 16 ACPI: bus type pci registered PCI: Using configuration type 1 for base access bio: create slab <bio-0> at 0 ACPI: Added _OSI(Module Device) ACPI: Added _OSI(Processor Device) ACPI: Added _OSI(3.0 _SCP Extensions) ACPI: Added _OSI(Processor Aggregator Device) ACPI: Executed 1 blocks of module-level executable AML code ACPI: Interpreter enabled ACPI: (supports S0 S5) ACPI: Using IOAPIC for interrupt routing PCI: Ignoring host bridge windows from ACPI; if necessary, use "pci=use_crs" and report a bug ACPI: PCI Root Bridge [PCI0] (domain 0000 [bus 00-ff]) PCI host bridge to bus 0000:00 pci_bus 0000:00: root bus resource [io 0x0000-0xffff] pci_bus 0000:00: root bus resource [mem 0x00000000-0xffffffff] pci 0000:00:07.0: quirk: [io 0x0400-0x043f] claimed by PIIX4 ACPI pci0000:00: Unable to request _OSC control (_OSC support mask: 0x1e) ACPI: PCI Interrupt Link [LNKA] (IRQs 5 9 10 *11) ACPI: PCI Interrupt Link [LNKB] (IRQs 5 *9 10 11) ACPI: PCI Interrupt Link [LNKC] (IRQs 5 9 10 *11) ACPI: PCI Interrupt Link [LNKD] (IRQs 5 *9 10 11) vgaarb: device added: PCI:0000:00:02.0,decodes=io+mem,owns=io+mem,locks=none vgaarb: loaded vgaarb: bridge control possible 0000:00:02.0 SCSI subsystem initialized ACPI: bus type usb registered usbcore: registered new interface driver usbfs usbcore: registered new interface driver hub usbcore: registered new device driver usb PCI: Using ACPI for IRQ routing pnp: PnP ACPI init ACPI: bus type pnp registered pnp: PnP ACPI: found 6 devices ACPI: ACPI bus type pnp unregistered Switching to clocksource acpi_pm NET: Registered protocol family 2 IP route cache hash table entries: 32768 (order: 5, 131072 bytes) TCP established hash table entries: 131072 (order: 8, 1048576 bytes) TCP bind hash table entries: 65536 (order: 7, 524288 bytes) TCP: Hash tables configured (established 131072 bind 65536) TCP: reno registered UDP hash table entries: 512 (order: 2, 16384 bytes) UDP-Lite hash table entries: 512 (order: 2, 16384 bytes) NET: Registered protocol family 1 pci 0000:00:00.0: Limiting direct PCI/PCI transfers pci 0000:00:01.0: Activating ISA DMA hang workarounds Trying to unpack rootfs image as initramfs... Freeing initrd memory: 1888k freed platform rtc_cmos: registered platform RTC device (no PNP device found) audit: initializing netlink socket (disabled) type=2000 audit(1345618829.707:1): initialized highmem bounce pool size: 64 pages VFS: Disk quotas dquot_6.5.2 Dquot-cache hash table entries: 1024 (order 0, 4096 bytes) squashfs: version 4.0 (2009/01/31) Phillip Lougher Btrfs loaded msgmni has been set to 1737 Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253) io scheduler noop registered io scheduler deadline registered io scheduler cfq registered (default) Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A 00:05: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A Linux agpgart interface v0.103 efifb: probing for efifb efifb: framebuffer at 0x80000000, mapped to 0xf8080000, using 3072k, total 3072k efifb: mode is 1024x768x32, linelength=4096, pages=1 efifb: scrolling: redraw efifb: Truecolor: size=8:8:8:8, shift=24:16:8:0 Console: switching to colour frame buffer device 128x48 fb0: EFI VGA frame buffer device input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input0 ACPI: Power Button [PWRF] input: Sleep Button as /devices/LNXSYSTM:00/LNXSLPBN:00/input/input1 ACPI: Sleep Button [SLPF] [drm] Initialized drm 1.1.0 20060810 [drm:i915_init] *ERROR* drm/i915 can't work without intel_agp module! brd: module loaded loop: module loaded ahci: SSS flag set, parallel bus scan disabled ahci 0000:00:0d.0: AHCI 0001.0100 32 slots 3 ports 3 Gbps 0x7 impl SATA mode ahci 0000:00:0d.0: flags: 64bit ncq stag only ccc scsi0 : ahci scsi1 : ahci scsi2 : ahci ata1: SATA max UDMA/133 abar m8192@0x84408000 port 0x84408100 irq 21 ata2: SATA max UDMA/133 abar m8192@0x84408000 port 0x84408180 irq 21 ata3: SATA max UDMA/133 abar m8192@0x84408000 port 0x84408200 irq 21 scsi3 : ata_piix scsi4 : ata_piix ata4: PATA max UDMA/33 cmd 0x1f0 ctl 0x3f6 bmdma 0x1050 irq 14 ata5: PATA max UDMA/33 cmd 0x170 ctl 0x376 bmdma 0x1058 irq 15 ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver ehci_hcd 0000:00:0b.0: EHCI Host Controller ehci_hcd 0000:00:0b.0: new USB bus registered, assigned bus number 1 ehci_hcd 0000:00:0b.0: irq 19, io mem 0x8440a000 ehci_hcd 0000:00:0b.0: USB 2.0 started, EHCI 1.00 usb usb1: New USB device found, idVendor=1d6b, idProduct=0002 usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1 usb usb1: Product: EHCI Host Controller usb usb1: Manufacturer: Linux 3.5.2-gentoo ehci_hcd usb usb1: SerialNumber: 0000:00:0b.0 hub 1-0:1.0: USB hub found hub 1-0:1.0: 8 ports detected ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver ohci_hcd 0000:00:06.0: OHCI Host Controller ohci_hcd 0000:00:06.0: new USB bus registered, assigned bus number 2 ohci_hcd 0000:00:06.0: irq 22, io mem 0x8440b000 ata5.00: ATAPI: VBOX CD-ROM, 1.0, max UDMA/133 usb usb2: New USB device found, idVendor=1d6b, idProduct=0001 ata5.00: configured for UDMA/33 ata4.00: ATA-6: VBOX HARDDISK, 1.0, max UDMA/133 ata4.00: 976773168 sectors, multi 128: LBA48 ata4.01: ATA-6: VBOX HARDDISK, 1.0, max UDMA/133 ata4.01: 156301488 sectors, multi 128: LBA ata4.00: configured for UDMA/33 ata4.01: configured for UDMA/33 usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1 usb usb2: Product: OHCI Host Controller ata1: SATA link down (SStatus 0 SControl 300) usb usb2: Manufacturer: Linux 3.5.2-gentoo ohci_hcd usb usb2: SerialNumber: 0000:00:06.0 hub 2-0:1.0: USB hub found hub 2-0:1.0: 8 ports detected uhci_hcd: USB Universal Host Controller Interface driver Initializing USB Mass Storage driver... usbcore: registered new interface driver usb-storage USB Mass Storage support registered. i8042: PNP: PS/2 Controller [PNP0303:PS2K,PNP0f03:PS2M] at 0x60,0x64 irq 1,12 serio: i8042 KBD port at 0x60,0x64 irq 1 serio: i8042 AUX port at 0x60,0x64 irq 12 mousedev: PS/2 mouse device common for all mice input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input2 rtc_cmos rtc_cmos: rtc core: registered rtc_cmos as rtc0 rtc0: alarms up to one day, 114 bytes nvram cpuidle: using governor ladder cpuidle: using governor menu EFI Variables Facility v0.08 2004-May-17 IP: [< (null)>] (null) *pde = 00000000 Oops: 0000 [#1] PREEMPT SMP Modules linked in: Pid: 1, comm: swapper/0 Not tainted 3.5.2-gentoo #1 innotek GmbH VirtualBox EIP: 0060:[<00000000>] EFLAGS: 00010286 CPU: 3 EIP is at 0x0 EAX: f645bf98 EBX: c15bf158 ECX: f645bf88 EDX: f5c97000 ESI: c15bf14c EDI: f645bf88 EBP: f645bfa8 ESP: f645bf78 DS: 007b ES: 007b FS: 00d8 GS: 0000 SS: 0068 CR0: 8005003b CR2: 00000000 CR3: 01594000 CR4: 000006d0 DR0: 00000000 DR1: 00000000 DR2: 00000000 DR3: 00000000 DR6: ffff0ff0 DR7: 00000400 Process swapper/0 (pid: 1, ti=f645a000 task=f6459960 task.ti=f645a000) Stack: c1325ada f5c81940 f5c97000 f645bfa8 c11e9b52 f5c81940 f648bc40 c14a44af 00000400 00000000 000000a6 c157e220 f645bfb4 c154a861 00000006 f645bfd0 c1001203 00000000 c154a7d7 00000006 000000a6 c157e220 f645bfe4 c1524a1e Call Trace: [<c1325ada>] ? register_efivars+0x97/0x1f1 [<c11e9b52>] ? kobject_create_and_add+0x22/0x4f [<c154a861>] efivars_init+0x8a/0xcd [<c1001203>] do_one_initcall+0x71/0x11e [<c154a7d7>] ? dmi_scan_machine+0xc5/0xc5 [<c1524a1e>] kernel_init+0x10b/0x190 [<c1524913>] ? start_kernel+0x301/0x301 [<c13bcf96>] kernel_thread_helper+0x6/0xd Code: Bad EIP value. EIP: [<00000000>] 0x0 SS:ESP 0068:f645bf78 CR2: 0000000000000000 ---[ end trace 89cb94ea963a6330 ]--- Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000009 BUG: unable to handle kernel NULL pointer dereference at (null) -- To unsubscribe from this list: send the line "unsubscribe linux-efi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html