Hi, Cc'ing the maintainers.
On 5/13/21 11:41 AM, ZHAOWANCHENG wrote: > hello, everyone. > > I tried to use loongson3-virt machine and install kylinos, but failed, > can anyone help me to find reason? Please open a issue: https://gitlab.com/qemu-project/qemu/-/issues > > qemu version: qemu-6.0.0-rc3 > host: x86_64 + centos8 > > This is my start command is: > qemu-system-mips64el \ > -cpu Loongson-3A1000 \ > -m 8192 \ > -M loongson3-virt \ > -bios /home/qemu/bios/bios_loongson3.bin \ > -device nec-usb-xhci \ > -device usb-kbd \ > -device usb-mouse \ > -device VGA \ > -drive > if=none,file=/data/qemu/iso/Kylin-Server-10-SP1-mips64el-Release-Build08-20201030.iso,id=cdrom,media=cdrom > \ > -device virtio-blk-pci,drive=cdrom \ > -drive > if=none,file=/home/qemu/images/kylin-server-10-mips64el-base.qcow2,id=sda \ > -device virtio-blk-pci,drive=sda Can you run adding "-d unimp,guest_errors"? > I downloaded bios_loongson3.bin can > from > https://github.com/loongson-community/firmware-nonfree/tree/main/uefi/loongson3-virt > <https://github.com/loongson-community/firmware-nonfree/tree/main/uefi/loongson3-virt> > > > I downloaded Kylin-Server-10-SP1-mips64el-Release-Build08-20201030.iso > from https://www.kylinos.cn/scheme/server/1.html > <https://www.kylinos.cn/scheme/server/1.html> > > It can be enter boot menu, but after i selected install option, there is > nothing displayed, and i found "data bus error" from serial0: > > [ 0.000000][ 0] Linux version 4.19.90-21.1.ky10.mips64el NeoKylin > Linux Adavanced Server @ CS2C (YHKYLIN-OS@localhost.localdomain) (gcc > version 8.3.1 20190507 (Kylin 8.3.1-4) (GCC)) #1 SMP PREEMPT Thu Oct 15 > 15:40:02 CST 2020 > [ 0.000000][ 0] Boot CPU ID is being fixed from 0 to 0 > [ 0.000000][ 0] BIOS configured I/O coherency: ON > [ 0.000000][ 0] CpuClock = 800000000 > [ 0.000000][ 0] CP0_Config3: CP0 16.3 (0x80) > [ 0.000000][ 0] CP0_PageGrain: CP0 5.1 (0x20000000) > [ 0.000000][ 0] NUMA: Discovered 1 cpus on 1 nodes > [ 0.000000][ 0] Node0: mem_type:1, mem_start:0x0, mem_size:0xf0 MB > [ 0.000000][ 0] start_pfn:0x0, end_pfn:0x3c00, > num_physpages:0x3c00 > [ 0.000000][ 0] Node0: mem_type:2, mem_start:0x90000000, > mem_size:0x1f00 MB > [ 0.000000][ 0] start_pfn:0x24000, end_pfn:0xa0000, > num_physpages:0x7fc00 > [ 0.000000][ 0] Node0's addrspace_offset is 0x0 > [ 0.000000][ 0] Node0: start_pfn=0x0, end_pfn=0xa0000 > [ 0.000000][ 0] NUMA: set cpumask cpu 0 on node 0 > [ 0.000000][ 0] DMI not present or invalid. > [ 0.000000][ 0] The BIOS Version: Lemote-UDK2018-V0.3.0 > [ 0.000000][ 0] bootconsole [early0] enabled > [ 0.000000][ 0] CPU0 revision is: 00006305 (Loongson-3) > [ 0.000000][ 0] FPU revision is: 00770501 > [ 0.000000][ 0] Checking for the multiply/shift bug... no. > [ 0.000000][ 0] Checking for the daddiu bug... no. > [ 0.000000][ 0] MIPS: machine is loongson,generic > [ 0.000000][ 0] Determined physical RAM map: > [ 0.000000][ 0] memory: 000000000f000000 @ 0000000000000000 (usable) > [ 0.000000][ 0] memory: 0000000000002000 @ 000000000fffe000 (reserved) > [ 0.000000][ 0] memory: 00000001f0000000 @ 0000000090000000 (usable) > [ 0.000000][ 0] Initial ramdisk at: 0x9800000007690000 (43632076 bytes) > [ 0.000000][ 0] software IO TLB: mapped [mem 0x033d8000-0x073d8000] > (64MB) > [ 0.000000][ 0] PM: Registered nosave memory: [mem > 0x01fb0000-0x01fb3fff] > [ 0.000000][ 0] Detected 4 available CPU(s) > [ 0.000000][ 0] Primary instruction cache 64kB, VIPT, 4-way, > linesize 32 bytes. > [ 0.000000][ 0] Primary data cache 64kB, 4-way, VIPT, no aliases, > linesize 32 bytes > [ 0.000000][ 0] Unified victim cache 0kB direct mapped, linesize 0 > bytes. > [ 0.000000][ 0] Unified secondary cache 4096kB 4-way, linesize 32 bytes. > [ 0.000000][ 0] Zone ranges: > [ 0.000000][ 0] DMA32 [mem 0x0000000000000000-0x00000000ffffffff] > [ 0.000000][ 0] Normal [mem 0x0000000100000000-0x000000027fffffff] > [ 0.000000][ 0] Movable zone start for each node > [ 0.000000][ 0] Early memory node ranges > [ 0.000000][ 0] node 0: [mem 0x0000000000000000-0x000000000effffff] > [ 0.000000][ 0] node 0: [mem 0x0000000090000000-0x000000027fffffff] > [ 0.000000][ 0] Reserved but unavailable: 1 pages > [ 0.000000][ 0] Initmem setup node 0 [mem > 0x0000000000000000-0x000000027fffffff] > [ 0.000000][ 0] random: get_random_bytes called from > start_kernel+0x94/0x664 with crng_init=0 > [ 0.000000][ 0] percpu: Embedded 6 pages/cpu s50976 r8192 d39136 u98304 > [ 0.000000][ 0] Built 1 zonelists, mobility grouping on. Total > pages: 521220 > [ 0.000000][ 0] Policy zone: Normal > [ 0.000000][ 0] Kernel command line: console=tty > inst.stage2=hd:LABEL=Kylin-Server-10 graphical > rd_start=0xffffffff87690000 rd_size=0x299c5cc > e1000e.InterruptThrottleRate=4,4,4,4 > [ 0.000000][ 0] Memory: 8144592K/8372224K available (24964K kernel > code, 853K rwdata, 5388K rodata, 832K init, 18940K bss, 227632K > reserved, 0K cma-reserved) > [ 0.000000][ 0] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, > Nodes=1 > [ 0.000000][ 0] rcu: Preemptible hierarchical RCU implementation. > [ 0.000000][ 0] rcu: RCU restricting CPUs from NR_CPUS=16 to > nr_cpu_ids=4. > [ 0.000000][ 0] Tasks RCU enabled. > [ 0.000000][ 0] rcu: Adjusting geometry for rcu_fanout_leaf=16, > nr_cpu_ids=4 > [ 0.000000][ 0] NR_IRQS: 320, nr_irqs: 320, preallocated irqs: 16 > [ 0.000000][ 0] Data bus error, epc == ffffffff80210eec, ra == > ffffffff82089f34 > [ 0.000000][ 0] Oops[#1]: > [ 0.000000][ 0] CPU: 0 PID: 0 Comm: swapper/0 Not tainted > 4.19.90-21.1.ky10.mips64el #1 > [ 0.000000][ 0] $ 0 : 0000000000000000 00000000540008e0 > 90000efdfb0000a0 0000000000000001 > [ 0.000000][ 0] $ 4 : 0000000000000000 ffffffff8215eeb0 > 9000000000000000 ffffffffffffffff > [ 0.000000][ 0] $ 8 : 0000000000000004 0000000000000001 > 900000003ff01418 900000003ff00000 > [ 0.000000][ 0] $12 : 980000027a000270 fffffffffffffffe > 0000000000000040 0000000000000001 > [ 0.000000][ 0] $16 : ffffffff81fe0000 ffffffff803b0000 > ffffffff81e50000 ffffffff82230000 > [ 0.000000][ 0] $20 : ffffffff81fc0000 ffffffff8210b3b8 > 0000000000000000 0000000000000000 > [ 0.000000][ 0] $24 : ffffffffffffffff 0000000000000000 > > [ 0.000000][ 0] $28 : ffffffff81fac000 ffffffff81fafdc0 > 0000000000000000 ffffffff82089f34 > [ 0.000000][ 0] Hi : 0000000000000000 > [ 0.000000][ 0] Lo : 0000000000000000 > [ 0.000000][ 0] epc : ffffffff80210eec rs780_init_irq+0xac/0x280 > [ 0.000000][ 0] ra : ffffffff82089f34 mach_init_irq+0xb4/0x280 > [ 0.000000][ 0] Status: 540008e2 KX SX UX KERNEL EXL > [ 0.000000][ 0] Cause : 4080801c (ExcCode 07) > [ 0.000000][ 0] PrId : 00006305 (Loongson-3) > [ 0.000000][ 0] Modules linked in: > [ 0.000000][ 0] Process swapper/0 (pid: 0, > threadinfo=(____ptrval____), task=(____ptrval____), tls=0000000000000000) > [ 0.000000][ 0] Stack : 0000000000000000 ffffffff82089f34 > 0000000000000140 0000000000000140 > [ 0.000000][ 0] ffffffff82050000 ffffffff8208e5ec > ffffffff81fb0000 ffffffff81fb0000 > [ 0.000000][ 0] ffffffff82100000 ffffffff82160000 > 0000000000000001 ffffffff8210b3b8 > [ 0.000000][ 0] 0000000000000000 ffffffff820810b0 > 0000000000000000 ffffffff8210b3b8 > [ 0.000000][ 0] 3218a0f031b2910e 0000000000000000 > 0000000000000000 0000000000000006 > [ 0.000000][ 0] ffffffff8efff000 980000000f030400 > 0000000000000000 0000000000000000 > [ 0.000000][ 0] 0000000000000000 ffffffff82150064 > 0000000000000000 0000000000000000 > [ 0.000000][ 0] 0000000000000000 0000000000000000 > 0000000000000000 0000000000000000 > [ 0.000000][ 0] 0000000000000000 0000000000000000 > 0000000000000000 0000000000000000 > [ 0.000000][ 0] 0000000000000000 0000000000000000 > 0000000000000000 0000000000000000 > [ 0.000000][ 0] ... > [ 0.000000][ 0] Call Trace: > [ 0.000000][ 0] [<ffffffff80210eec>] rs780_init_irq+0xac/0x280 > [ 0.000000][ 0] [<ffffffff82089f34>] mach_init_irq+0xb4/0x280 > [ 0.000000][ 0] [<ffffffff8208e5ec>] init_IRQ+0x6c/0x1c0 > [ 0.000000][ 0] [<ffffffff820810b0>] start_kernel+0x300/0x664 > [ 0.000000][ 0] Code: 644200a0 7c42d001 00461025 <f8472002> > 1468fff3 00000000 dca20018 8d631424 64420080 > [ 0.000000][ 0] > [ 0.000000][ 0] ---[ end trace 51c30fdb72969324 ]--- > [ 0.000000][ 0] Kernel panic - not syncing: Attempted to kill the > idle task! > [ 0.000000][ 0] ---[ end Kernel panic - not syncing: Attempted to > kill the idle task! ]--- > > > > > > > > >