Date: Tue, 31 Jan 2023 15:48:49 +0500 From: "Eugene M. Zheganin" <emz@zhegan.in> To: freebsd-mips@FreeBSD.org Subject: qemu and mips64 - init died (signal 6, exit 0) Message-ID: <43b04de7-46d9-0980-bbb9-dca45577c1ef@zhegan.in>
next in thread | raw e-mail | index | archive | help
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: <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 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit <html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> </head> <body> <p>Hello,</p> <p><br> </p> <p>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).</p> <p>I constructed an image using instructions here: <a class="moz-txt-link-freetext" href="https://wiki.freebsd.org/QemuRecipes#mips">https://wiki.freebsd.org/QemuRecipes#mips</a> . I also added ada0 for mounting (<span style="font-family:monospace"><span style="color:#000000;background-color:#ffffff;">/dev/ada0 / ufs rw 1 1</span></span>) and I'm starting it using recent emulators/qemu port (everything happens on an 13.1 amd64 system).<br> </p> <p>But unfortunately after booting it I have init failing (below). Is there something I missed that can be assumed watching failing init ?</p> <p><br> </p> <p>===Cut===<br> </p> <p>[...]</p> <p><span style="font-family:monospace"><span style="color:#000000;background-color:#ffffff;">lo0: bpf attached </span><br> tcp_init: net.inet.tcp.tcbhashsize auto tuned to 16384 <br> ata0: reset tp1 mask=03 ostat0=50 ostat1=00 <br> ata0: stat0=0x50 err=0x01 lsb=0x00 msb=0x00 <br> ata0: stat1=0x00 err=0x00 lsb=0xff msb=0xff <br> ata0: reset tp2 stat0=50 stat1=00 devices=0x1 <br> ata1: reset tp1 mask=03 ostat0=50 ostat1=00 <br> ata1: stat0=0x00 err=0x01 lsb=0x14 msb=0xeb <br> ata1: stat1=0x00 err=0x00 lsb=0xff msb=0xff <br> ata1: reset tp2 stat0=00 stat1=00 devices=0x10000 <br> Trying to mount root from ufs:ada0 []... <br> ada0 at ata0 bus 0 scbus0 target 0 lun 0 <br> ada0: <QEMU HARDDISK 2.5+> ATA-7 device <br> ada0: Serial Number QM00001 <br> ada0: 33.300MB/s transfers (UDMA2, PIO 8192bytes) <br> ada0: 4096MB (8388608 512 byte sectors) <br> pass0 at ata0 bus 0 scbus0 target 0 lun 0 <br> pass0: <QEMU HARDDISK 2.5+> ATA-7 device <br> pass0: Serial Number QM00001 <br> pass0: 33.300MB/s transfers (UDMA2, PIO 8192bytes) <br> pass1 at ata1 bus 0 scbus1 target 0 lun 0 <br> pass1: <QEMU QEMU DVD-ROM 2.5+> Removable CD-ROM SCSI device <br> pass1: Serial Number QM00003 <br> pass1: 33.300MB/s transfers (UDMA2, ATAPI 12bytes, PIO 65534bytes) <br> GEOM: new disk cd0 <br> GEOM: new disk ada0 <br> cd0 at ata1 bus 0 scbus1 target 0 lun 0 <br> cd0: <QEMU QEMU DVD-ROM 2.5+> Removable CD-ROM SCSI device <br> cd0: Serial Number QM00003 <br> cd0: 33.300MB/s transfers (UDMA2, ATAPI 12bytes, PIO 65534bytes) <br> cd0: Attempt to query device size failed: NOT READY, Medium not present <br> Warning: no time-of-day clock registered, system time will not be set accurately <br> start_init: trying /sbin/init <br> init died (signal 6, exit 0) <br> panic: Going nowhere without my init! <br> time = 1675089140 <br> KDB: enter: panic <br> [ thread pid 1 tid 100001 ] <br> Stopped at 0x4 <br> db></span></p> <p><br> <span style="font-family:monospace">===Cut===</span></p> <p><span style="font-family:monospace"><br> </span></p> <p><span style="font-family:monospace">Thanks.</span></p> <p><span style="font-family:monospace">Eugene.<br> </span></p> </body> </html> --------------400PSBMmTHGhMhCmkX0Shqko--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?43b04de7-46d9-0980-bbb9-dca45577c1ef>