From: "Hervé Poussineau" <hpoussin@reactos.org>
To: "Finn Thain" <fthain@telegraphics.com.au>,
"Philippe Mathieu-Daudé" <philmd@redhat.com>
Cc: "qemu-devel@nongnu.org" <qemu-devel@nongnu.org>,
Jason Wang <jasowang@redhat.com>,
Laurent Vivier <laurent@vivier.eu>,
"qemu-stable@nongnu.org" <qemu-stable@nongnu.org>,
Aleksandar Rikalo <aleksandar.rikalo@rt-rk.com>,
Aleksandar Markovic <aleksandar.m.mail@gmail.com>
Subject: Re: NetBSD/arc on MIPS Magnum, was Re: [PATCH 00/10] Fixes for DP8393X SONIC device emulation
Date: Tue, 24 Dec 2019 07:53:37 +0100 [thread overview]
Message-ID: <8fe965fe-5cf5-2b1e-1f4c-c3e9ce06107d@reactos.org> (raw)
In-Reply-To: <alpine.LNX.2.21.1.1912241504560.11@nippy.intranet>
Le 24/12/2019 à 05:33, Finn Thain a écrit :
> On Tue, 24 Dec 2019, Finn Thain wrote:
>
>>
>> I know precious little about NetBSD installation and MIPS Magnum. What I
>> wrote above was guesswork. Hence this could be a NetBSD bug or user
>> error.
>>
>
> It was bugs and user error.
>
> The user error was not using the serial console. The NetBSD/arc
> installation guide says that only serial console is supported for MIPS
> Magnum.
>
> The bugs include regressions in NetBSD. (See below.)
>
> The other issue is that the ARC firmware didn't work properly until I
> defined one or more 'boot selections', even though none of these will ever
> be selected.
>
>> Does there exist a known-good combination of NetBSD/arc and
>> qemu-system-mips64el releases?
>>
>
> The commit log says that Herv? Poussineau used NetBSD 5.1 with dp8393x in
> the past, so I tried that.
>
> Here are the steps I used:
>
> ./mips64el-softmmu/qemu-system-mips64el -M magnum -L .
> -drive if=scsi,unit=2,media=cdrom,format=raw,file=arccd-5.1.iso
> -global ds1225y.filename=nvram -global ds1225y.size=8200
> -serial stdio -serial null
> -nic bridge,model=dp83932,mac=00:00:00:02:03:04
>
> -> Run setup -> Initialize system -> Set default configurations
> 800x688
> 3.5 1.44 M
> No
> 7
>
> -> Set default environment
> CD-ROM
> 2
>
> -> Set environment variables
> CONSOLEIN
> multi()serial(0)term()
> CONSOLEOUT
> multi()serial(0)term()
>
> -> Exit
>
> Now restart QEMU. The ARC menu should appear on the tty.
>
> -> Run a program
>
> scsi(0)cdrom(2)fdisk(0)boot scsi(0)cdrom(2)fdisk(0)netbsd
>
> That doesn't work. Add a boot selection.
>
> -> Run setup -> Manage startup -> Add a boot selection -> Scsi CD-ROM 0
> \os\nt\osloader.exe
> Yes
> \winnt
> Windows NT
> No
>
> Somehow, that seems to help. Now restart QEMU.
>
> -> Run a program
>
> scsi(0)cdrom(2)fdisk(0)boot scsi(0)cdrom(2)fdisk(0)netbsd
>
> NetBSD/arc Bootstrap, Revision 1.1
> (builds@b7.netbsd.org, Sat Nov 6 14:06:36 UTC 2010)
> devopen: scsi(0)cdrom(2)fdisk(0) type disk file netbsd
> 5502064+289092=0x5860e0
> Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
> 2006, 2007, 2008, 2009, 2010
> The NetBSD Foundation, Inc. All rights reserved.
> Copyright (c) 1982, 1986, 1989, 1991, 1993
> The Regents of the University of California. All rights reserved.
>
> NetBSD 5.1 (RAMDISK) #0: Sat Nov 6 14:17:36 UTC 2010
> builds@b7.netbsd.org:/home/builds/ab/netbsd-5-1-RELEASE/arc/201011061943Z-obj/home/builds/ab/netbsd-5-1-RELEASE/src/sys/arch/arc/compile/RAMDISK
> MIPS Magnum
> total memory = 128 MB
> avail memory = 117 MB
> mainbus0 (root)
> cpu0 at mainbus0: MIPS R4000 CPU (0x400) Rev. 0.0 with MIPS R4010 FPC Rev. 0.0
> cpu0: 8KB/16B direct-mapped L1 Instruction cache, 48 TLB entries
> cpu0: 8KB/16B direct-mapped write-back L1 Data cache
> jazzio0 at mainbus0
> timer0 at jazzio0 addr 0xe0000228
> mcclock0 at jazzio0 addr 0xe0004000: mc146818 compatible time-of-day clock
> LPT1 at jazzio0 addr 0xe0008000 intr 0 not configured
> fdc0 at jazzio0 addr 0xe0003000 intr 1
> fd0 at fdc0 drive 1: 1.44MB, 80 cyl, 2 head, 18 sec
> MAGNUM at jazzio0 addr 0xe000c000 intr 2 not configured
> VXL at jazzio0 addr 0xe0800000 intr 3 not configured
> sn0 at jazzio0 addr 0xe0001000 intr 4: SONIC Ethernet
> sonic: write 0x0015 to reg CR
> sonic: write 0x0080 to reg CR
> sonic: write 0x0000 to reg IMR
> sonic: write 0x7fff to reg ISR
> sonic: write 0x0000 to reg CR
> sn0: Ethernet address 00:00:00:00:00:00
> asc0 at jazzio0 addr 0xe0002000 intr 5: NCR53C94, 25MHz, SCSI ID 7
> scsibus0 at asc0: 8 targets, 8 luns per target
> pckbc0 at jazzio0 addr 0xe0005000 intr 6
> pckbd0 at pckbc0 (kbd slot)
> wskbd0 at pckbd0 (mux ignored)
> pms at jazzio0 addr 0xe0005000 intr 7 not configured
> com0 at jazzio0 addr 0xe0006000 intr 8: ns16550a, working fifo
> com0: txfifo disabled
> com0: console
> com1 at jazzio0 addr 0xe0007000 intr 9: ns16550a, working fifo
> com1: txfifo disabled
> jazzisabr0 at mainbus0
> isa0 at jazzisabr0
> isapnp0 at isa0 port 0x279: ISA Plug 'n Play device support
> scsibus0: waiting 2 seconds for devices to settle...
> cd0 at scsibus0 target 2 lun 0: <QEMU, QEMU CD-ROM, 2.5+> cdrom removable
> cd1 at scsibus0 target 4 lun 0: <QEMU, QEMU CD-ROM, 2.5+> cdrom removable
> boot device: <unknown>
> root on md0a dumps on md0b
> root file system type: ffs
> WARNING: preposterous TOD clock time
> WARNING: using filesystem time
> WARNING: CHECK AND RESET THE DATE!
> erase ^H, werase ^W, kill ^U, intr ^C, status ^T
> Terminal type? [vt100]
> Erase is backspace.
> (I)nstall, (S)hell or (H)alt ? s
> # ifconfig sn0 10.2.3.4/24
> # ping
> usage:
> ping [-adDfLnoPqQrRv] [-c count] [-g gateway] [-h host] [-i interval] [-I addr]
> [-l preload] [-p pattern] [-s size] [-t tos] [-T ttl] [-w maxwait] host
>
>
> My initial testing shows that NetBSD 5.1 doesn't like my v2 patch series.
> I'll debug that before I send v3.
>
> BTW, there seem to be regressions in NetBSD 8.1 compared to NetBSD 5.1.
>
> The 'boot' program on the 8.1 ISO just hangs.
>
> If I use the 'boot' program from the 5.1 ISO to load the 'netbsd'
> binary from the 8.1 ISO, I get a crash:
>
> -> Run a program
>
> scsi(0)cdrom(2)fdisk(0)boot scsi(0)cdrom(4)fdisk(0)netbsd
>
> NetBSD/arc Bootstrap, Revision 1.1
> (builds@b7.netbsd.org, Sat Nov 6 14:06:36 UTC 2010)
> devopen: scsi(0)cdrom(4)fdisk(0) type disk file netbsd
> 7902064|
> Jazz Monitor. Version 174
> Press H for help, Q to quit.
> AdEL exception occurred.
> at=149f4800 v0=00000000 v1=8003d698 a0=807f3d40 a1=80eff158 a2=00000800
> a3=80eff188 t0=00000001 t1=00000001 t2=80045400 t3=800232d8 t4=000a4fa4
> t5=00000000 t6=00746669 t7=00746685 s0=80f0cab8 s1=00000800 s2=80eff1d0
> s3=80f10000 s4=80f0ee18 s5=80f0ee18 s6=00028eef s7=00000000 t8=00746685
> t9=c0000000 k0=80041f50 k1=80000194 gp=80f0c540 sp=80eff128 s8=80f0ca30
> ra=80023310 psr=20000803 epc=8002331c cause=00004010 errorepc=00000000
> badvaddr=00746689
>>
>
> I haven't tried the latest iso (9.0-rc1).
>
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
My test for networking is:
- Terminal type = "vt100"
- (S)hell
- ifconfig sn0 10.0.2.15 netmask 255.255.255.0
- route add default 10.0.2.2
- connect to ftp.intel.com: ftp 192.198.164.82
Regards,
Hervé
next prev parent reply other threads:[~2019-12-24 6:54 UTC|newest]
Thread overview: 37+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-12-14 1:25 [PATCH 00/10] Fixes for DP8393X SONIC device emulation Finn Thain
2019-12-14 1:25 ` [PATCH 08/10] dp8393x: Implement packet size limit and RBAE interrupt Finn Thain
2019-12-14 1:25 ` [PATCH 09/10] dp8393x: Don't stop reception upon RBE interrupt assertion Finn Thain
2019-12-14 1:25 ` [PATCH 06/10] dp8393x: Clear RRRA command register bit only when appropriate Finn Thain
2019-12-14 13:31 ` Philippe Mathieu-Daudé
2019-12-14 1:25 ` [PATCH 02/10] dp8393x: Clean up endianness hacks Finn Thain
2019-12-14 1:25 ` [PATCH 05/10] dp8393x: Update LLFA register Finn Thain
2019-12-14 1:25 ` [PATCH 10/10] dp8393x: Don't clobber packet checksum Finn Thain
2019-12-14 13:21 ` Philippe Mathieu-Daudé
2019-12-14 1:25 ` [PATCH 07/10] dp8393x: Implement TBWC0 and TBWC1 registers to restore buffer state Finn Thain
2019-12-14 1:25 ` [PATCH 01/10] dp8393x: Mask EOL bit from descriptor addresses Finn Thain
2019-12-14 13:35 ` Philippe Mathieu-Daudé
2019-12-14 23:21 ` Finn Thain
2019-12-14 1:25 ` [PATCH 04/10] dp8393x: Don't advance RX descriptor twice Finn Thain
2019-12-14 1:25 ` [PATCH 03/10] dp8393x: Have dp8393x_receive() return the packet size Finn Thain
2019-12-14 13:26 ` Philippe Mathieu-Daudé
2019-12-14 1:43 ` [PATCH 00/10] Fixes for DP8393X SONIC device emulation no-reply
2019-12-14 2:52 ` Finn Thain
2019-12-14 13:38 ` Philippe Mathieu-Daudé
2019-12-14 13:45 ` Eric Blake
2019-12-14 17:17 ` Aleksandar Markovic
2019-12-14 23:16 ` Finn Thain
2019-12-14 23:32 ` Aleksandar Markovic
2019-12-14 23:35 ` Aleksandar Markovic
2019-12-20 4:24 ` Finn Thain
2019-12-23 17:17 ` Philippe Mathieu-Daudé
2019-12-24 0:12 ` NetBSD/arc on MIPS Magnum, was " Finn Thain
2019-12-24 4:33 ` Finn Thain
2019-12-24 6:53 ` Hervé Poussineau [this message]
2020-01-06 22:15 ` Finn Thain
2019-12-16 0:36 ` Finn Thain
2019-12-20 4:21 ` Finn Thain
2019-12-20 11:38 ` Aleksandar Markovic
2019-12-20 12:03 ` Aleksandar Markovic
2019-12-20 12:54 ` Laurent Vivier
2019-12-20 23:22 ` Finn Thain
2019-12-21 12:03 ` Aleksandar Markovic
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8fe965fe-5cf5-2b1e-1f4c-c3e9ce06107d@reactos.org \
--to=hpoussin@reactos.org \
--cc=aleksandar.m.mail@gmail.com \
--cc=aleksandar.rikalo@rt-rk.com \
--cc=fthain@telegraphics.com.au \
--cc=jasowang@redhat.com \
--cc=laurent@vivier.eu \
--cc=philmd@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=qemu-stable@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).