Skip to contentSkip to conversation

problem with qemu-system-loongarch64

DISCUSSION Waldemar Brodkorb 3 participants 3 messages Aug 11, 2022 – Aug 12, 2022

lore
Share & tools
lore
#0 lore raw

Hi Qemu developers,

I am trying to bootup a loongarch64 Linux kernel in Qemu 7.1.0-rc2. The problem is I get no output when using following command:
qemu-system-loongarch64 -M virt -nographic -kernel vmlinux

You can find my vmlinux initramfs here:
https://debug.openadk.org/vmlinux

It is cross-compiled with binutils 2.39, gcc 12.1, glibc 2.36 and Linux 5.19. I use the provided defconfig loongson3_defconfig for the kernel build.

Any hint what I can do to get a bootable Linux image?

best regards
Waldemar

#1 lore raw
CC Huacai Chen <[email protected]>
Quoted 17 lines · Waldemar Brodkorb

Hi Qemu developers,

I am trying to bootup a loongarch64 Linux kernel in Qemu 7.1.0-rc2. The problem is I get no output when using following command:
qemu-system-loongarch64 -M virt -nographic -kernel vmlinux

You can find my vmlinux initramfs here:
https://debug.openadk.org/vmlinux

It is cross-compiled with binutils 2.39, gcc 12.1, glibc 2.36 and Linux 5.19. I use the provided defconfig loongson3_defconfig for the kernel build.

Any hint what I can do to get a bootable Linux image?

best regards
Waldemar

#2 lore raw

Hi, all,

Quoted 18 lines · gaosong
CC Huacai Chen <[email protected]>
Quoted 14 lines · Waldemar Brodkorb

Hi Qemu developers,

I am trying to bootup a loongarch64 Linux kernel in Qemu 7.1.0-rc2. The problem is I get no output when using following command:
qemu-system-loongarch64 -M virt -nographic -kernel vmlinux

You can find my vmlinux initramfs here:
https://debug.openadk.org/vmlinux

It is cross-compiled with binutils 2.39, gcc 12.1, glibc 2.36 and Linux 5.19. I use the provided defconfig loongson3_defconfig for the kernel build.

Any hint what I can do to get a bootable Linux image?

The official v5.19 still lacks boot support now, please use this one:
https://github.com/loongson/linux/commits/loongarch-next

Huacai

Quoted 4 lines
Quoted 3 lines

best regards
Waldemar