On Tue, 24 Dec 2019, hpous...@reactos.org wrote: > > > > I haven't tried the latest iso (9.0-rc1). > >
I found that NetBSD 9.0-rc1 has the same regressions. > > Hello Finn, > > Thanks for finding the required steps to boot NetBSD on MIPS Magnum. I > was trying to find how to let it work on non-configured machine since > some days! > You indeed need my patch at > https://lists.gnu.org/archive/html/qemu-devel/2019-12/msg05037.html > Thanks. As it turned out, I didn't need that patch in order to get NetBSD/arc 5.1 working. But I applied the patch anyway after I found that a Linux/mips kernel produced DMA errors. But the errors remain (see below). With a few minor Linux patches and a mipsel busybox build, I was able to boot to a prompt. ESP SCSI works, but not SONIC ethernet. My dp8393x patch series was not sufficient to make ethernet work (no regression though). NetBSD/arc Bootstrap, Revision 1.1 (bui...@b7.netbsd.org, Sat Nov 6 14:06:36 UTC 2010) devopen: scsi(0)cdrom(4)fdisk(0) type disk file vmlinux 5991052+141348 [656192+872841]=0x74eb98 Linux version 5.4.0-00003-g34add35b08c0 (fthain@nippy) (gcc version 4.6.4 (btc)) #24 Mon Jan 6 20:10:57 AEDT 2020 ARCH: Microsoft-Jazz PROMLIB: ARC firmware Version 1 Revision 2 CPU0 revision is: 00000400 (R4000PC) FPU revision is: 00000500 printk: debug: ignoring loglevel setting. Primary instruction cache 8kB, VIPT, direct mapped, linesize 16 bytes. Primary data cache 8kB, direct mapped, VIPT, cache aliases, linesize 16 bytes Zone ranges: DMA [mem 0x0000000000000000-0x0000000000ffffff] Normal [mem 0x0000000001000000-0x0000000007ffffff] Movable zone start for each node Early memory node ranges node 0: [mem 0x0000000000000000-0x0000000007ffffff] Initmem setup node 0 [mem 0x0000000000000000-0x0000000007ffffff] On node 0 totalpages: 32768 DMA zone: 32 pages used for memmap DMA zone: 0 pages reserved DMA zone: 4096 pages, LIFO batch:0 Normal zone: 224 pages used for memmap Normal zone: 28672 pages, LIFO batch:7 pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768 pcpu-alloc: [0] 0 Built 1 zonelists, mobility grouping on. Total pages: 32512 Kernel command line: scsi(0)cdrom(4)fdisk(0)vmlinux root=/dev/sda rw ignore_loglevel ip=192.168.66.11 init=/bin/sh Dentry cache hash table entries: 16384 (order: 4, 65536 bytes, linear) Inode-cache hash table entries: 8192 (order: 3, 32768 bytes, linear) mem auto-init: stack:off, heap alloc:off, heap free:off Memory: 123396K/131072K available (4716K kernel code, 168K rwdata, 812K rodata, 184K init, 100K bss, 7676K reserved, 0K cma-reserved) NR_IRQS: 128 random: get_random_bytes called from start_kernel+0x32c/0x4e0 with crng_init=0 Console: colour dummy device 80x25 sched_clock: 32 bits at 100 Hz, resolution 10000000ns, wraps every 21474836475000000ns Calibrating delay loop... 990.41 BogoMIPS (lpj=4952064) pid_max: default: 32768 minimum: 301 Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear) Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear) devtmpfs: initialized clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns futex hash table entries: 256 (order: -1, 3072 bytes, linear) NET: Registered protocol family 16 VDMA: R4030 DMA pagetables initialized. SCSI subsystem initialized NET: Registered protocol family 2 tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear) TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear) TCP bind hash table entries: 1024 (order: 0, 4096 bytes, linear) TCP: Hash tables configured (established 1024 bind 1024) UDP hash table entries: 256 (order: 0, 4096 bytes, linear) UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear) NET: Registered protocol family 1 workingset: timestamp_bits=30 max_order=15 bucket_order=0 Block layer SCSI generic (bsg) driver version 0.4 loaded (major 254) io scheduler mq-deadline registered io scheduler kyber registered Console: switching to colour frame buffer device 100x37 Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled printk: console [ttyS0] disabled serial8250.0: ttyS0 at MMIO 0xe0006000 (irq = 32, base_baud = 115200) is a 16550A printk: console [ttyS0] enabled serial8250.0: ttyS1 at MMIO 0xe0007000 (irq = 33, base_baud = 115200) is a 16550A loop: module loaded jazz_esp jazz_esp.0: esp0: regs[(ptrval):(ptrval)] irq[29] jazz_esp jazz_esp.0: esp0: is a FAS100A, 40 MHz (ccf=0), SCSI ID 7 random: fast init done scsi host0: esp scsi 0:0:0:0: Direct-Access QEMU QEMU HARDDISK 2.5+ PQ: 0 ANSI: 5 scsi target0:0:0: Beginning Domain Validation scsi target0:0:0: Domain Validation skipping write tests scsi target0:0:0: Ending Domain Validation scsi 0:0:2:0: CD-ROM QEMU QEMU CD-ROM 2.5+ PQ: 0 ANSI: 5 scsi target0:0:2: Beginning Domain Validation scsi target0:0:2: Domain Validation skipping write tests scsi target0:0:2: Ending Domain Validation scsi 0:0:4:0: CD-ROM QEMU QEMU CD-ROM 2.5+ PQ: 0 ANSI: 5 scsi target0:0:4: Beginning Domain Validation scsi target0:0:4: Domain Validation skipping write tests scsi target0:0:4: Ending Domain Validation sd 0:0:0:0: [sda] 120000 512-byte logical blocks: (61.4 MB/58.6 MiB) sd 0:0:0:0: [sda] Write Protect is off sd 0:0:0:0: [sda] Mode Sense: 63 00 00 08 sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA SONIC ethernet @e0001000, MAC 01:00:1c:00:01:00, IRQ 28 serio: i8042 KBD port at 0xe0005000,0xe0005001 irq 30 serio: i8042 AUX port at 0xe0005000,0xe0005001 irq 31 NET: Registered protocol family 10 Segment Routing with IPv6 sd 0:0:0:0: [sda] Attached SCSI disk sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver input: AT Raw Set 2 keyboard as /devices/platform/i8042/serio0/input/input0 input: ImExPS/2 Generic Explorer Mouse as /devices/platform/i8042/serio1/input/input2 EXT4-fs (sda): warning: mounting unchecked fs, running e2fsck is recommended EXT4-fs (sda): mounted filesystem without journal. Opts: (null) VFS: Mounted root (ext4 filesystem) on device 8:0. Freeing prom memory: 376k freed Freeing prom memory: 60k freed Freeing prom memory: 4k freed Freeing unused kernel memory: 184K This architecture does not have kernel memory protection. Run /bin/sh as init process VDMA: Channel 0: Address error! VDMA: Channel 0: Memory error! The patches may be found at, https://github.com/fthain/linux/commits/magnum https://github.com/fthain/linux/commits/mac68k https://github.com/fthain/qemu/commits/sonic I'll post them when I've finished testing.