Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.kernel > #93893 > unrolled thread

Bug#1145677: riscv64: Boot failure due to "linux,uefi-secure-boot not found"

Started byHan Gao <rabenda.cn@gmail.com>
First post2026-08-26 17:40 +0200
Last post2026-09-03 00:10 +0200
Articles 7 — 3 participants

Back to article view | Back to linux.debian.kernel


Contents

  Bug#1145677: riscv64: Boot failure due to "linux,uefi-secure-boot not found" Han Gao <rabenda.cn@gmail.com> - 2026-08-26 17:40 +0200
    Processed: Re: Bug#1145677: riscv64: Boot failure due to  "linux,uefi-secure-boot not found" "Debian Bug Tracking System" <owner@bugs.debian.org> - 2026-08-28 15:10 +0200
    Bug#1145677: riscv64: Boot failure due to "linux,uefi-secure-boot not found" Bastian Blank <waldi@debian.org> - 2026-08-28 15:10 +0200
      Bug#1145677: riscv64: Boot failure due to "linux,uefi-secure-boot not found" Bastian Blank <waldi@debian.org> - 2026-08-28 15:30 +0200
        Bug#1145677: riscv64: Boot failure due to "linux,uefi-secure-boot not found" Bastian Blank <waldi@debian.org> - 2026-09-02 22:00 +0200
    Bug#1145677: riscv64: Boot failure due to "linux,uefi-secure-boot not found" Bastian Blank <waldi@debian.org> - 2026-09-02 22:50 +0200
    Bug#1145677: marked as done (riscv64: Boot failure due to  incorrect memory map) "Debian Bug Tracking System" <owner@bugs.debian.org> - 2026-09-03 00:10 +0200

#93893 — Bug#1145677: riscv64: Boot failure due to "linux,uefi-secure-boot not found"

FromHan Gao <rabenda.cn@gmail.com>
Date2026-08-26 17:40 +0200
SubjectBug#1145677: riscv64: Boot failure due to "linux,uefi-secure-boot not found"
Message-ID<NwnTk-dotO-23@gated-at.bofh.it>
Source: linux
Version: 7.1.7+deb13-riscv64
Severity: important
X-Debbugs-Cc: debian-riscv@lists.debian.org, vimer@debian.org
User: debian-riscv@lists.debian.org
Usertags: riscv64

Dear Maintainer,

    The RISC-V kernel has also encountered an issue similar to bug #963033.
    The boot process consists of coreboot(ACPI)/LinuxBoot kexec loading the Debian kernel.

Thanks,
Han

[    0.000000] Booting Linux on hartid 0
[    0.000000] Linux version 7.1.7+deb13-riscv64 (debian-kernel@lists.debian.org) (riscv64-linux-gnu-gcc-14 (Debian 14.2.0-19) 14.2.0, GNU ld (GNU Binutils for Debian) 2.44) #1 SMP PREEMPT Debian 7.1.7-1~bpo13+1 (2026-08-10)
[    0.000000] random: crng init done
[    0.000000] SBI specification v2.0 detected
[    0.000000] SBI implementation ID=0x1 Version=0x10006
[    0.000000] SBI TIME extension detected
[    0.000000] SBI IPI extension detected
[    0.000000] SBI RFENCE extension detected
[    0.000000] SBI SRST extension detected
[    0.000000] SBI DBCN extension detected
[    0.000000] earlycon: uart8250 at MMIO32 0x0000000008181900 (options '')
[    0.000000] printk: legacy bootconsole [uart8250] enabled
[    0.000000] efi: Getting UEFI parameters from /chosen in DT:
[    0.000000] efi:   System Table         : 0x00000000900108a8
[    0.000000] efi:   MemMap Address       : 0x000000008cb3f068
[    0.000000] efi:   MemMap Size          : 0x0000000000000370
[    0.000000] efi:   MemMap Desc. Size    : 0x0000000000000028
[    0.000000] efi:   MemMap Desc. Version : 0x0000000000000001
[    0.000000] efi: Can't find property 'linux,uefi-secure-boot' in DT!
[    0.000000] __memblock_reserve: [0x0000000084200000-0x00000000865fffff] nid=-1 flags=0 paging_init+0xf8/0x6d0
[    0.000000] INITRD: 0x1ff6d9f000+0x009a1000 is not a memory region - disabling initrd
[    0.000000] __memblock_reserve: [0x0000001ff6d9f000-0x0000001ff773f79e] nid=-1 flags=0 early_init_fdt_scan_reserved_mem+0xe0/0x110
[    0.000000] __memblock_reserve: [0x000000207dd5b000-0x000000207dd5b37d] nid=-1 flags=0 paging_init+0x23c/0x6d0
[    0.000000] cma: Size (0x0000000006000000) of region at 0x0000000000000000 exceeds limit (0x0000000000000000)
[    0.000000] cma: Failed to reserve 96 MiB
[    0.000000] memblock_phys_alloc_range: 2097152 bytes align=0x1000 from=0x0000000000000000 max_addr=0x0000000000000000 paging_init+0x3fc/0x6d0
[    0.000000] ------------[ cut here ]------------
[    0.000000] kernel BUG at arch/riscv/mm/init.c:1224!
[    0.000000] Kernel BUG [#1]
[    0.000000] Modules linked in:
[    0.000000] CPU: 0 UID: 0 PID: 0 Comm: swapper Not tainted 7.1.7+deb13-riscv64 #1 PREEMPTLAZY  Debian 7.1.7-1~bpo13+1 
[    0.000000] epc : paging_init+0x400/0x6d0
[    0.000000]  ra : paging_init+0x3fc/0x6d0
[    0.000000] epc : ffffffff80e08af0 ra : ffffffff80e08aec sp : ffffffff82003d90
[    0.000000]  gp : ffffffff822bffd0 tp : ffffffff82010b00 t0 : 5f00000000000000
[    0.000000]  t1 : 000000000000006d t2 : 5f6b636f6c626d65 s0 : ffffffff82003e00
[    0.000000]  s1 : ffffffff81713b18 a0 : 0000000000000000 a1 : ffffffff81234cc8
[    0.000000]  a2 : 0000000000000000 a3 : ffffffff82135940 a4 : 0000000000000000
[    0.000000]  a5 : 0000000000000000 a6 : ffffffff82003c88 a7 : 0000000000000000
[    0.000000]  s2 : 0000000085400000 s3 : 0000000084200000 s4 : 0000000000000000
[    0.000000]  s5 : 0000000000e00000 s6 : 0000000001000000 s7 : 0000000000000000
[    0.000000]  s8 : 0000000000000000 s9 : 0000000000000000 s10: 0000000000000000
[    0.000000]  s11: 0000000000000000 t3 : ffffffff822fe717 t4 : ffffffff822fe717
[    0.000000]  t5 : ffffffff822fe718 t6 : ffffffff82003b88 ssp : 0000000000000000
[    0.000000] status: 0000000200000100 badaddr: ffffffff80e08af0 cause: 0000000000000003
[    0.000000] [<ffffffff80e08af0>] paging_init+0x400/0x6d0
[    0.000000] [<ffffffff80e053c0>] setup_arch+0xe8/0x6f0
[    0.000000] [<ffffffff80e00bc8>] start_kernel+0x88/0xac8
[    0.000000] Code: 4601 6585 0537 0020 e097 0001 80e7 05c0 8a2a e111 (9002) 05b7 
[    0.000000] ---[ end trace 0000000000000000 ]---
[    0.000000] Kernel panic - not syncing: Fatal exception in interrupt
[    0.000000] ---[ end Kernel panic - not syncing: Fatal exception in interrupt ]---

[toc] | [next] | [standalone]


#93901 — Processed: Re: Bug#1145677: riscv64: Boot failure due to "linux,uefi-secure-boot not found"

From"Debian Bug Tracking System" <owner@bugs.debian.org>
Date2026-08-28 15:10 +0200
SubjectProcessed: Re: Bug#1145677: riscv64: Boot failure due to "linux,uefi-secure-boot not found"
Message-ID<Nx4vf-dLPI-5@gated-at.bofh.it>
In reply to#93893
Processing control commands:

> retitle -1 riscv64: Boot failure due to incorrect memory map
Bug #1145677 [src:linux] riscv64: Boot failure due to "linux,uefi-secure-boot not found"
Changed Bug title to 'riscv64: Boot failure due to incorrect memory map' from 'riscv64: Boot failure due to "linux,uefi-secure-boot not found"'.
> tags -1 moreinfo
Bug #1145677 [src:linux] riscv64: Boot failure due to incorrect memory map
Added tag(s) moreinfo.

-- 
1145677: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1145677
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems

[toc] | [prev] | [next] | [standalone]


#93902

FromBastian Blank <waldi@debian.org>
Date2026-08-28 15:10 +0200
Message-ID<Nx4vf-dLPI-3@gated-at.bofh.it>
In reply to#93893
Control: retitle -1 riscv64: Boot failure due to incorrect memory map
Control: tags -1 moreinfo

On Wed, Aug 26, 2026 at 11:30:00PM +0800, Han Gao wrote:
>     The RISC-V kernel has also encountered an issue similar to bug #963033.

Similar, yes, but not related to what you claim.

>     The boot process consists of coreboot(ACPI)/LinuxBoot kexec loading the Debian kernel.

As I don't know which package provides linuxboot and no such package
exists in Debian: please re-assign this bug yourself.

> [    0.000000] efi: Getting UEFI parameters from /chosen in DT:
> [    0.000000] efi:   System Table         : 0x00000000900108a8
> [    0.000000] efi:   MemMap Address       : 0x000000008cb3f068
> [    0.000000] efi:   MemMap Size          : 0x0000000000000370
> [    0.000000] efi:   MemMap Desc. Size    : 0x0000000000000028
> [    0.000000] efi:   MemMap Desc. Version : 0x0000000000000001

You claim you boot via coreboot(ACPI) and linuxboot/kexec.  But the
kernel finds a device tree, and a populated one.  But this device tree
includes EFI information, but at least incomplete EFI information.

> [    0.000000] efi: Can't find property 'linux,uefi-secure-boot' in DT!

This line means that the EFI stub did not run.  So you boot with EFI and
without EFI at the same time.

> [    0.000000] __memblock_reserve: [0x0000000084200000-0x00000000865fffff] nid=-1 flags=0 paging_init+0xf8/0x6d0
> [    0.000000] INITRD: 0x1ff6d9f000+0x009a1000 is not a memory region - disabling initrd

Even your initrd is located in memory that does not exist in the
provided memory map in the device tree.

> [    0.000000] __memblock_reserve: [0x0000001ff6d9f000-0x0000001ff773f79e] nid=-1 flags=0 early_init_fdt_scan_reserved_mem+0xe0/0x110
> [    0.000000] __memblock_reserve: [0x000000207dd5b000-0x000000207dd5b37d] nid=-1 flags=0 paging_init+0x23c/0x6d0
> [    0.000000] cma: Size (0x0000000006000000) of region at 0x0000000000000000 exceeds limit (0x0000000000000000)
> [    0.000000] cma: Failed to reserve 96 MiB
> [    0.000000] memblock_phys_alloc_range: 2097152 bytes align=0x1000 from=0x0000000000000000 max_addr=0x0000000000000000 paging_init+0x3fc/0x6d0
> [    0.000000] ------------[ cut here ]------------
> [    0.000000] kernel BUG at arch/riscv/mm/init.c:1224!
> [    0.000000] Kernel BUG [#1]

And here we failed two times (first CMA, then kfence) to get any usable
memory.

I don't see where this is a problem in the kernel.  The boot loader
needs to provide memory information and fails.

Bastian

-- 
The sooner our happiness together begins, the longer it will last.
		-- Miramanee, "The Paradise Syndrome", stardate 4842.6

[toc] | [prev] | [next] | [standalone]


#93903

FromBastian Blank <waldi@debian.org>
Date2026-08-28 15:30 +0200
Message-ID<Nx4OB-dLWn-1@gated-at.bofh.it>
In reply to#93902
On Fri, Aug 28, 2026 at 03:04:31PM +0200, Bastian Blank wrote:
> As I don't know which package provides linuxboot and no such package
> exists in Debian: please re-assign this bug yourself.

I completely forgot to ask: when did it work the last time?  And please
provide the output of "reportbug --template kernel" from the running
state.

Bastian

-- 
She won' go Warp 7, Cap'n!  The batteries are dead!

[toc] | [prev] | [next] | [standalone]


#93981

FromBastian Blank <waldi@debian.org>
Date2026-09-02 22:00 +0200
Message-ID<NyZhL-eOrr-13@gated-at.bofh.it>
In reply to#93903
On Fri, Aug 28, 2026 at 03:19:28PM +0200, Bastian Blank wrote:
> On Fri, Aug 28, 2026 at 03:04:31PM +0200, Bastian Blank wrote:
> > As I don't know which package provides linuxboot and no such package
> > exists in Debian: please re-assign this bug yourself.
> I completely forgot to ask: when did it work the last time?  And please
> provide the output of "reportbug --template kernel" from the running
> state.

Please answer our questions.

Bastian

-- 
It would seem that evil retreats when forcibly confronted.
		-- Yarnek of Excalbia, "The Savage Curtain", stardate 5906.5

[toc] | [prev] | [next] | [standalone]


#93985

FromBastian Blank <waldi@debian.org>
Date2026-09-02 22:50 +0200
Message-ID<Nz049-eOSe-5@gated-at.bofh.it>
In reply to#93893
On Thu, Sep 03, 2026 at 04:38:56AM +0800, Han Gao wrote:
> This is a new machine. The kernel that boots normally is a custom
> kernel; it's a Linuxboot firmware.
> Does running `reportbug --template kernel` make sense in this situation,
> since the debian kernel was never successfully booted?

Yes.  We need to establish that this piece of hardware is actually
supported by upstream.  And given the error messages we saw already, I
doubt that, or at least the combination with linuxboot.

Bastian

-- 
... The prejudices people feel about each other disappear when they get
to know each other.
		-- Kirk, "Elaan of Troyius", stardate 4372.5

[toc] | [prev] | [next] | [standalone]


#93987 — Bug#1145677: marked as done (riscv64: Boot failure due to incorrect memory map)

From"Debian Bug Tracking System" <owner@bugs.debian.org>
Date2026-09-03 00:10 +0200
SubjectBug#1145677: marked as done (riscv64: Boot failure due to incorrect memory map)
Message-ID<Nz1jA-ePCK-11@gated-at.bofh.it>
In reply to#93893

[Multipart message — attachments visible in raw view] — view raw

Your message dated Thu, 3 Sep 2026 00:01:18 +0200
with message-id <s5yxohy6kij2uzu2m37ahqfct2t55jafgi7sp3xycuepzrizfh@dxwpmthicgct>
and subject line Re: Bug#1145677: riscv64: Boot failure due to "linux,uefi-secure-boot not found"
has caused the Debian Bug report #1145677,
regarding riscv64: Boot failure due to incorrect memory map
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
1145677: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1145677
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.kernel


csiph-web