Not boot with EFI

Bug #1827750 reported by Alex Smith
16
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux-raspi2 (Ubuntu)
Fix Released
Undecided
Paolo Pisati
Bionic
Fix Released
Undecided
Unassigned
Cosmic
Fix Committed
Undecided
Unassigned
Disco
Fix Released
Undecided
Unassigned

Bug Description

Impact:

The linux-raspi2 kernel doesn't have the necessary UEFI hooks to boot on a UEFI enabled system.

Fix:

Enable the relevant UEFI options (see the attached patch).

How to test:

On a patched kernel, UEFI presence will be check during boot:

$ dmesg | grep -i eufi
...
[ 0.000000] efi: UEFI not found.
...

Regression potential:

Very low, some config option changes that have been enabled in generic for a long while.

--

Hello. I can't boot with linux-raspi2 kernel, but linux-generic work fine. Please add support kernel option CONFIG_U(EFI)_STUB=y as default.
Thanks.

os: ubuntu 18.04 lts arm64
hw: raspberry pi 3b (+ tiano core uefi)

Revision history for this message
Paolo Pisati (p-pisati) wrote :

Please test this kernel and tell us if it solves you problem:

https://people.canonical.com/~ppisati/lp1827750/

This kernel has EFI support (and several other EFI features) enabled:

https://git.launchpad.net/~p-pisati/ubuntu/+source/linux/commit/?h=b-raspi2-lp1827750&id=ce621b56138a15dd3c67d6b40429f5739a6b51ec

Once positively verified, add a step by step test procedure to this bug so we can move forward with integrating the changes.

Changed in linux-raspi2 (Ubuntu):
assignee: nobody → Paolo Pisati (p-pisati)
Paolo Pisati (p-pisati)
Changed in linux-raspi2 (Ubuntu):
status: New → Incomplete
Revision history for this message
Alex Smith (diamondfrog) wrote :

Dependency error of linux-headers-4.15.0-1035-raspi2 package. This is required itself.

dpkg: package dependencies do not allow configuring the linux-headers-4.15.0-1035-raspi2 package:
  linux-headers-4.15.0-1035-raspi2 depends on linux-raspi2-headers-4.15.0-1035, however:
   The linux-raspi2-headers-4.15.0-1035 package is not installed.

Revision history for this message
Paolo Pisati (p-pisati) wrote :

Copied out that package, try again.

Revision history for this message
Alex Smith (diamondfrog) wrote :

System started, but I can't parse temperature. CPU freq info work fine.

cat: /sys/class/thermal/thermal_zone0/temp: No such file or directory

Alex Smith (diamondfrog)
Changed in linux-raspi2 (Ubuntu):
status: Incomplete → Fix Committed
Alex Smith (diamondfrog)
tags: added: efi raspberry raspi2 uefi
tags: added: raspberrypi
Revision history for this message
satmandu (satadru-umich) wrote :

FYI the mainline arm64 kernels at https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.1.1/ boot on the 3B running arm64 on disco, with grub-efi-arm64-bin installed and a commandline of modprobe.blacklist=vc,vc4 (but I haven't tried without using the module blacklist for some time.)

Since the default RPI bootloader doesn't seem to handle kernels with an EFI stub though, enabling the EFI stub will cause boot problems on kernels using the built-in RPI bootloader, no?

Revision history for this message
Alex Smith (diamondfrog) wrote :

Take care, current kernel 4.15.0-1036.38 still not bootable with EFI.

Changed in linux-raspi2 (Ubuntu):
status: Fix Committed → Incomplete
Paolo Pisati (p-pisati)
description: updated
Changed in linux-raspi2 (Ubuntu Bionic):
status: New → In Progress
Changed in linux-raspi2 (Ubuntu Cosmic):
status: New → In Progress
Changed in linux-raspi2 (Ubuntu Disco):
status: New → In Progress
Changed in linux-raspi2 (Ubuntu Cosmic):
status: In Progress → Fix Committed
Changed in linux-raspi2 (Ubuntu Disco):
status: In Progress → Fix Committed
Changed in linux-raspi2 (Ubuntu Bionic):
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :
Download full text (11.4 KiB)

This bug was fixed in the package linux-raspi2 - 4.15.0-1041.44

---------------
linux-raspi2 (4.15.0-1041.44) bionic; urgency=medium

  * linux-raspi2: 4.15.0-1041.44 -proposed tracker (LP: #1834923)

  * Not boot with EFI (LP: #1827750)
    - [Config] enable EFI support

  [ Ubuntu: 4.15.0-55.60 ]

  * linux: 4.15.0-55.60 -proposed tracker (LP: #1834954)
  * Request backport of ceph commits into bionic (LP: #1834235)
    - ceph: use atomic_t for ceph_inode_info::i_shared_gen
    - ceph: define argument structure for handle_cap_grant
    - ceph: flush pending works before shutdown super
    - ceph: send cap releases more aggressively
    - ceph: single workqueue for inode related works
    - ceph: avoid dereferencing invalid pointer during cached readdir
    - ceph: quota: add initial infrastructure to support cephfs quotas
    - ceph: quota: support for ceph.quota.max_files
    - ceph: quota: don't allow cross-quota renames
    - ceph: fix root quota realm check
    - ceph: quota: support for ceph.quota.max_bytes
    - ceph: quota: update MDS when max_bytes is approaching
    - ceph: quota: add counter for snaprealms with quota
    - ceph: avoid iput_final() while holding mutex or in dispatch thread
  * QCA9377 isn't being recognized sometimes (LP: #1757218)
    - SAUCE: USB: Disable USB2 LPM at shutdown
  * hns: fix ICMP6 neighbor solicitation messages discard problem (LP: #1833140)
    - net: hns: fix ICMP6 neighbor solicitation messages discard problem
    - net: hns: fix unsigned comparison to less than zero
  * Fix occasional boot time crash in hns driver (LP: #1833138)
    - net: hns: Fix probabilistic memory overwrite when HNS driver initialized
  * use-after-free in hns_nic_net_xmit_hw (LP: #1833136)
    - net: hns: fix KASAN: use-after-free in hns_nic_net_xmit_hw()
  * hns: attempt to restart autoneg when disabled should report error
    (LP: #1833147)
    - net: hns: Restart autoneg need return failed when autoneg off
  * systemd 237-3ubuntu10.14 ADT test failure on Bionic ppc64el (test-seccomp)
    (LP: #1821625)
    - powerpc: sys_pkey_alloc() and sys_pkey_free() system calls
    - powerpc: sys_pkey_mprotect() system call
  * [UBUNTU] pkey: Indicate old mkvp only if old and curr. mkvp are different
    (LP: #1832625)
    - pkey: Indicate old mkvp only if old and current mkvp are different
  * [UBUNTU] kernel: Fix gcm-aes-s390 wrong scatter-gather list processing
    (LP: #1832623)
    - s390/crypto: fix gcm-aes-s390 selftest failures
  * System crashes on hot adding a core with drmgr command (4.15.0-48-generic)
    (LP: #1833716)
    - powerpc/numa: improve control of topology updates
    - powerpc/numa: document topology_updates_enabled, disable by default
  * Kernel modules generated incorrectly when system is localized to a non-
    English language (LP: #1828084)
    - scripts: override locale from environment when running recordmcount.pl
  * [UBUNTU] kernel: Fix wrong dispatching for control domain CPRBs
    (LP: #1832624)
    - s390/zcrypt: Fix wrong dispatching for control domain CPRBs
  * CVE-2019-11815
    - net: rds: force to destroy connection if t_sock is NULL in
      rds_tcp_kill_sock().
  * Sound device not detec...

Changed in linux-raspi2 (Ubuntu Bionic):
status: Fix Committed → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :
Download full text (69.7 KiB)

This bug was fixed in the package linux-raspi2 - 5.0.0-1013.13

---------------
linux-raspi2 (5.0.0-1013.13) disco; urgency=medium

  * linux-raspi2: 5.0.0-1013.13 -proposed tracker (LP: #1834884)

  * [SRU][B/B-OEM/C/D/OEM-OSP1] Add RTL8822 wifi driver rtw88 (LP: #1831828)
    - raspi2: [Config] Add realtek wifi RTW88 support

  * AX88772A USB to Ethernet dongle doesn't work (LP: #1834114)
    - raspi2: [Config] Rename ASIX module

  * Load average inexplicably high with 5.0 kernel on rpi (LP: #1825235) //
    Refresh RaspberryPi BSP (LP: #1831219)
    - raspberrypi: remove the old RaspberryPi BSP
    - arm: partially revert 702b94bff3c50542a6e4ab9a4f4cef093262fe65
    - Revert "rtc: pcf8523: properly handle oscillator stop bit"
    - smsx95xx: fix crimes against truesize
    - smsc95xx: Experimental: Enable turbo_mode and packetsize=2560 by default
    - Allow mac address to be set in smsc95xx
    - Protect __release_resource against resources without parents
    - irq-bcm2836: Prevent spurious interrupts, and trap them early
    - irq-bcm2836: Avoid "Invalid trigger warning"
    - irqchip: bcm2835: Add FIQ support
    - irqchip: irq-bcm2835: Add 2836 FIQ support
    - spi: spidev: Completely disable the spidev warning
    - dmaengine: bcm2835: Load driver early and support legacy API
    - firmware: Updated mailbox header
    - rtc: Add SPI alias for pcf2123 driver
    - watchdog: bcm2835: Support setting reboot partition
    - reboot: Use power off rather than busy spinning when halt is requested
    - bcm: Make RASPBERRYPI_POWER depend on PM
    - Register the clocks early during the boot process, so that special/critical
      clocks can get enabled early on in the boot process avoiding the risk of
      disabling a clock, pll_divider or pll when a claiming driver fails to
      install propperly - maybe it needs to defer.
    - bcm2835-rng: Avoid initialising if already enabled
    - clk-bcm2835: Mark used PLLs and dividers CRITICAL
    - clk-bcm2835: Add claim-clocks property
    - clk-bcm2835: Read max core clock from firmware
    - clk: bcm2835: Mark GPIO clocks enabled at boot as critical.
    - sound: Demote deferral errors to INFO level
    - Update vfpmodule.c
    - i2c: bcm2835: Add debug support
    - mm: Remove the PFN busy warning
    - ASoC: Add prompt for ICS43432 codec
    - irqchip: irq-bcm2836: Remove regmap and syscon use
    - lan78xx: Enable LEDs and auto-negotiation
    - amba_pl011: Don't use DT aliases for numbering
    - amba_pl011: Round input clock up
    - amba_pl011: Insert mb() for correct FIFO handling
    - amba_pl011: Add cts-event-workaround DT property
    - pinctrl-bcm2835: Set base to 0 give expected gpio numbering
    - Main bcm2708/bcm2709 linux port
    - Add dwc_otg driver
    - bcm2708 framebuffer driver
    - fbdev: add FBIOCOPYAREA ioctl
    - Speed up console framebuffer imageblit function
    - dmaengine: Add support for BCM2708
    - MMC: added alternative MMC driver
    - Adding bcm2835-sdhost driver, and an overlay to enable it
    - vc_mem: Add vc_mem driver for querying firmware memory addresses
    - vcsm: VideoCore shared memory service for BCM2835
    - Add /dev/gpiomem device for roo...

Changed in linux-raspi2 (Ubuntu Disco):
status: Fix Committed → Fix Released
Changed in linux-raspi2 (Ubuntu):
status: Incomplete → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.