From nobody Tue Jan 31 10:48:49 2023 X-Original-To: freebsd-mips@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4P5hcS6jSTz3c8fJ for ; Tue, 31 Jan 2023 10:48:56 +0000 (UTC) (envelope-from emz@zhegan.in) Received: from elf.hq.norma.perm.ru (mail.norman-retail.ru [128.127.146.8]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mail.norma.perm.ru", Issuer "Let's Encrypt Authority X3" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4P5hcS1Q0Jz4L7y for ; Tue, 31 Jan 2023 10:48:56 +0000 (UTC) (envelope-from emz@zhegan.in) Authentication-Results: mx1.freebsd.org; dkim=none; spf=pass (mx1.freebsd.org: domain of emz@zhegan.in designates 128.127.146.8 as permitted sender) smtp.mailfrom=emz@zhegan.in; dmarc=none Received: from [192.168.57.177] (net208-181.perm.ertelecom.ru [46.146.208.181] (may be forged)) by elf.hq.norma.perm.ru (8.16.1/8.15.2) with ESMTPS id 30VAmsA8025809 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NO) for ; Tue, 31 Jan 2023 15:48:54 +0500 (+05) (envelope-from emz@zhegan.in) Content-Type: multipart/alternative; boundary="------------400PSBMmTHGhMhCmkX0Shqko" Message-ID: <43b04de7-46d9-0980-bbb9-dca45577c1ef@zhegan.in> Date: Tue, 31 Jan 2023 15:48:49 +0500 List-Id: Porting FreeBSD to MIPS List-Archive: https://lists.freebsd.org/archives/freebsd-mips List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-mips@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:91.0) Gecko/20100101 Thunderbird/91.9.0 To: freebsd-mips@FreeBSD.org Content-Language: en-US From: "Eugene M. Zheganin" Subject: qemu and mips64 - init died (signal 6, exit 0) X-Rspamd-Pre-Result: action=no action; module=multimap; Matched map: ip_whitelist X-Rspamd-Server: elf.hq.norma.perm.ru X-Spamd-Result: default: False [-3.22 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.92)[-0.922]; R_SPF_ALLOW(-0.20)[+a]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; FROM_EQ_ENVFROM(0.00)[]; MLMMJ_DEST(0.00)[freebsd-mips@FreeBSD.org]; MID_RHS_MATCH_FROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; R_DKIM_NA(0.00)[]; ASN(0.00)[asn:212494, ipnet:128.127.146.0/24, country:RU]; DMARC_NA(0.00)[zhegan.in]; RCPT_COUNT_ONE(0.00)[1]; TO_DN_NONE(0.00)[]; ARC_NA(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; FROM_HAS_DN(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-mips@freebsd.org]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_TLS_ALL(0.00)[] X-Rspamd-Queue-Id: 4P5hcS1Q0Jz4L7y X-Spamd-Bar: --- X-ThisMailContainsUnwantedMimeParts: N This is a multi-part message in MIME format. --------------400PSBMmTHGhMhCmkX0Shqko Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Hello, Wanted to play locally with mips64 VM to reorganise Juniper SRX300 filesystem for smaller device (which runs Cavium CPU, fs is big-endian, so I just cannot mount it from amd64). I constructed an image using instructions here: https://wiki.freebsd.org/QemuRecipes#mips . I also added ada0 for mounting (/dev/ada0 / ufs rw 1 1) and I'm starting it using recent emulators/qemu port (everything happens on an 13.1 amd64 system). But unfortunately after booting it I have init failing (below). Is there something I missed that can be assumed watching failing init ? ===Cut=== [...] lo0: bpf attached tcp_init: net.inet.tcp.tcbhashsize auto tuned to 16384 ata0: reset tp1 mask=03 ostat0=50 ostat1=00 ata0: stat0=0x50 err=0x01 lsb=0x00 msb=0x00 ata0: stat1=0x00 err=0x00 lsb=0xff msb=0xff ata0: reset tp2 stat0=50 stat1=00 devices=0x1 ata1: reset tp1 mask=03 ostat0=50 ostat1=00 ata1: stat0=0x00 err=0x01 lsb=0x14 msb=0xeb ata1: stat1=0x00 err=0x00 lsb=0xff msb=0xff ata1: reset tp2 stat0=00 stat1=00 devices=0x10000 Trying to mount root from ufs:ada0 []... ada0 at ata0 bus 0 scbus0 target 0 lun 0 ada0: ATA-7 device ada0: Serial Number QM00001 ada0: 33.300MB/s transfers (UDMA2, PIO 8192bytes) ada0: 4096MB (8388608 512 byte sectors) pass0 at ata0 bus 0 scbus0 target 0 lun 0 pass0: ATA-7 device pass0: Serial Number QM00001 pass0: 33.300MB/s transfers (UDMA2, PIO 8192bytes) pass1 at ata1 bus 0 scbus1 target 0 lun 0 pass1: Removable CD-ROM SCSI device pass1: Serial Number QM00003 pass1: 33.300MB/s transfers (UDMA2, ATAPI 12bytes, PIO 65534bytes) GEOM: new disk cd0 GEOM: new disk ada0 cd0 at ata1 bus 0 scbus1 target 0 lun 0 cd0: Removable CD-ROM SCSI device cd0: Serial Number QM00003 cd0: 33.300MB/s transfers (UDMA2, ATAPI 12bytes, PIO 65534bytes) cd0: Attempt to query device size failed: NOT READY, Medium not present Warning: no time-of-day clock registered, system time will not be set accurately start_init: trying /sbin/init init died (signal 6, exit 0) panic: Going nowhere without my init! time = 1675089140 KDB: enter: panic [ thread pid 1 tid 100001 ] Stopped at      0x4 db> ===Cut=== Thanks. Eugene. --------------400PSBMmTHGhMhCmkX0Shqko Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit

Hello,


Wanted to play locally with mips64 VM to reorganise Juniper SRX300 filesystem for smaller device (which runs Cavium CPU, fs is big-endian, so I just cannot mount it from amd64).

I constructed an image using instructions here: https://wiki.freebsd.org/QemuRecipes#mips . I also added ada0 for mounting (/dev/ada0 / ufs rw 1 1) and I'm starting it using recent emulators/qemu port (everything happens on an 13.1 amd64 system).

But unfortunately after booting it I have init failing (below). Is there something I missed that can be assumed watching failing init ?


===Cut===

[...]

lo0: bpf attached
tcp_init: net.inet.tcp.tcbhashsize auto tuned to 16384
ata0: reset tp1 mask=03 ostat0=50 ostat1=00
ata0: stat0=0x50 err=0x01 lsb=0x00 msb=0x00
ata0: stat1=0x00 err=0x00 lsb=0xff msb=0xff
ata0: reset tp2 stat0=50 stat1=00 devices=0x1
ata1: reset tp1 mask=03 ostat0=50 ostat1=00
ata1: stat0=0x00 err=0x01 lsb=0x14 msb=0xeb
ata1: stat1=0x00 err=0x00 lsb=0xff msb=0xff
ata1: reset tp2 stat0=00 stat1=00 devices=0x10000
Trying to mount root from ufs:ada0 []...
ada0 at ata0 bus 0 scbus0 target 0 lun 0
ada0: <QEMU HARDDISK 2.5+> ATA-7 device
ada0: Serial Number QM00001
ada0: 33.300MB/s transfers (UDMA2, PIO 8192bytes)
ada0: 4096MB (8388608 512 byte sectors)
pass0 at ata0 bus 0 scbus0 target 0 lun 0
pass0: <QEMU HARDDISK 2.5+> ATA-7 device
pass0: Serial Number QM00001
pass0: 33.300MB/s transfers (UDMA2, PIO 8192bytes)
pass1 at ata1 bus 0 scbus1 target 0 lun 0
pass1: <QEMU QEMU DVD-ROM 2.5+> Removable CD-ROM SCSI device
pass1: Serial Number QM00003
pass1: 33.300MB/s transfers (UDMA2, ATAPI 12bytes, PIO 65534bytes)
GEOM: new disk cd0
GEOM: new disk ada0
cd0 at ata1 bus 0 scbus1 target 0 lun 0
cd0: <QEMU QEMU DVD-ROM 2.5+> Removable CD-ROM SCSI device
cd0: Serial Number QM00003
cd0: 33.300MB/s transfers (UDMA2, ATAPI 12bytes, PIO 65534bytes)
cd0: Attempt to query device size failed: NOT READY, Medium not present
Warning: no time-of-day clock registered, system time will not be set accurately
start_init: trying /sbin/init
init died (signal 6, exit 0)
panic: Going nowhere without my init!
time = 1675089140
KDB: enter: panic
[ thread pid 1 tid 100001 ]
Stopped at      0x4
db>


===Cut===


Thanks.

Eugene.

--------------400PSBMmTHGhMhCmkX0Shqko--