All of lore.kernel.org
 help / color / mirror / Atom feed
* qemu direct kernel boot on LoongArch
@ 2023-10-09 20:13 Thomas Weißschuh
  2023-10-10  1:12 ` maobibo
  0 siblings, 1 reply; 28+ messages in thread
From: Thomas Weißschuh @ 2023-10-09 20:13 UTC (permalink / raw)
  To: loongarch

Hi,

I'm trying to boot a LoongArch Linux via the direct kernel mode of qemu.
( qemu -kernel vmlinux -append "verbose" )
This doesn't work so well.

A few problems I encoutered:

* Linux reads the cmdline from $a1 during boot, but qemu doesn't place it there.
* Qemu puts a FDT at 1MiB but Linux doesn't use it.
* Qemu does not put the cmdline into the FDT.
* Linux panics in memory_present() because memblock_init() in
  arch/loongarch/kernel/mem.c did not set up any memblocks.
* Qemu has no support for initrds in direct kernel mode on LoongArch.

(All observations based on current git versions)

For the other architectures I'm using Linux/qemu with the direct kernel
mode works nicely including cmdline and initrds.

Are these restrictions by design/intentional or is it just for somebody
to do the necessary legwork?

The direct kernel mode is nice because it does not require the
installation of the additional EFI binary.


Thanks,
Thomas

^ permalink raw reply	[flat|nested] 28+ messages in thread

end of thread, other threads:[~2024-09-09  1:24 UTC | newest]

Thread overview: 28+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-09 20:13 qemu direct kernel boot on LoongArch Thomas Weißschuh
2023-10-10  1:12 ` maobibo
2024-09-05  3:12   ` Jason A. Donenfeld
2024-09-05  3:45     ` maobibo
2024-09-05  4:04       ` Jason A. Donenfeld
2024-09-05  5:25         ` Thomas Weißschuh
2024-09-05  6:11           ` maobibo
2024-09-05 14:54             ` Jason A. Donenfeld
2024-09-05 15:49               ` Jason A. Donenfeld
2024-09-06  1:09                 ` maobibo
2024-09-05 14:53           ` Jason A. Donenfeld
2024-09-05 15:05             ` Thomas Weißschuh
2024-09-05 15:07               ` Jason A. Donenfeld
2024-09-05 15:16                 ` Thomas Weißschuh
2024-09-05 15:18                   ` Jason A. Donenfeld
2024-09-05 16:03                     ` Thomas Weißschuh
2024-09-06  1:14                       ` maobibo
2024-09-06  4:04                         ` Jason A. Donenfeld
2024-09-06  4:48                           ` Jason A. Donenfeld
2024-09-06  4:49                             ` [PATCH] hw/loongarch: virt: support up to 4 serial ports Jason A. Donenfeld
2024-09-06  8:34                               ` maobibo
2024-09-06 14:30                                 ` Jason A. Donenfeld
2024-09-06 14:31                                   ` [PATCH v2] " Jason A. Donenfeld
2024-09-07  3:37                                     ` maobibo
2024-09-07 14:44                                       ` Jason A. Donenfeld
2024-09-07 14:57                                         ` Jason A. Donenfeld
2024-09-07 14:34                                     ` [PATCH v3] " Jason A. Donenfeld
2024-09-09  1:22                                       ` maobibo

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.