Skip to content

Instantly share code, notes, and snippets.

@seanbruno
Created February 3, 2017 23:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save seanbruno/dc5c1e2145199d8101f1a665f1d8d2df to your computer and use it in GitHub Desktop.
Save seanbruno/dc5c1e2145199d8101f1a665f1d8d2df to your computer and use it in GitHub Desktop.
# qemu-system-mips -M malta -kernel /var/tmp/sbruno/mips.mips/home/sbruno/fbsd_head/sys/MALTA/kernel.full -hda mips_clang.img -nographic
WARNING: Image format was not specified for 'mips_clang.img' and probing guessed raw.
Automatically detecting the format is dangerous for raw images, write operations on block 0 will be restricted.
Specify the 'raw' format explicitly to remove the restrictions.
entry: platform_start()
cmd line: /var/tmp/sbruno/mips.mips/home/sbruno/fbsd_head/sys/MALTA/kernel.full
envp:
memsize = 134217728
ememsize = 134217728
modetty0 = 38400n8r
memsize = 134217728 (0x08000000)
ememsize = 134217728
Cache info:
picache_stride = 4096
picache_loopcount = 0
pdcache_stride = 1024
pdcache_loopcount = 2
max line size = 16
cpu0: MIPS Technologies processor v0.147
MMU: Standard TLB, 16 entries (4K 16K 64K 256K 1M 16M 64M 256M pg sizes)
L1 i-cache: 2 ways of 64 sets, 16 bytes per line
L1 d-cache: 2 ways of 64 sets, 16 bytes per line
L2 cache: disabled
Config1=0x9e190c8f<WatchRegs,MIPS16,EJTAG,FPU>
Config2=0x80000000
Physical memory chunk(s):
0x65b000 - 0x7ffffff, 127553536 bytes (31141 pages)
Maxmem is 0x8000000
KDB: debugger backends: ddb
KDB: current backend: ddb
Copyright (c) 1992-2017 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 12.0-CURRENT #0 r313096M: Fri Feb 3 23:26:51 UTC 2017
sbruno@tasty.ysv.freebsd.org:/var/tmp/sbruno/mips.mips/home/sbruno/fbsd_head/sys/MALTA mips
clang version 5.0.0 (trunk 294008)
Preloaded elf kernel "kernel" at 0x80650a80.
real memory = 134217728 (131072K bytes)
Physical memory chunk(s):
0x006ef000 - 0x07d9dfff, 124448768 bytes (30383 pages)
avail memory = 123662336 (117MB)
random: entropy device external interface
null: <full device, null device, zero device>
mem: <memory>
nfslock: pseudo-device
nexus0: <MIPS32 root nexus>
random: harvesting attach, 8 bytes (4 bits) from nexus0
gt0: <GT64120 chip> on nexus0
pcib0: <GT64120 PCI bridge> on gt0
pci0: <PCI bus> on pcib0
pci0: domain=0, physical bus=0
found-> vendor=0x11ab, dev=0x4620, revid=0x10
domain=0, bus=0, slot=0, func=0
class=06-00-00, hdrtype=0x00, mfdev=0
cmdreg=0x0000, statreg=0x0280, cachelnsz=0 (dwords)
lattimer=0x00 (0 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns)
intpin=a, irq=0
map[14]: type Prefetchable Memory, range 32, base 0x1000000, size 24, memory disabled
map[18]: type Memory, range 32, base 0x1c000000, size 26, memory disabled
map[1c]: type Memory, range 32, base 0x1f000000, size 24, memory disabled
map[20]: type Memory, range 32, base 0x14000000, size 26, memory disabled
map[24]: type I/O Port, range 32, base 0x14000000, size 26, port disabled
pcib0: no IRQ mapping for 0/0/0/1
found-> vendor=0x8086, dev=0x7110, revid=0x00
domain=0, bus=0, slot=10, func=0
class=06-01-00, hdrtype=0x00, mfdev=1
cmdreg=0x0000, statreg=0x0200, cachelnsz=0 (dwords)
lattimer=0x00 (0 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns)
found-> vendor=0x8086, dev=0x7111, revid=0x00
domain=0, bus=0, slot=10, func=1
class=01-01-80, hdrtype=0x00, mfdev=0
cmdreg=0x0000, statreg=0x0280, cachelnsz=0 (dwords)
lattimer=0x00 (0 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns)
map[20]: type I/O Port, range 32, base 0, size 4, port disabled
found-> vendor=0x8086, dev=0x7112, revid=0x01
domain=0, bus=0, slot=10, func=2
class=0c-03-00, hdrtype=0x00, mfdev=0
cmdreg=0x0000, statreg=0x0000, cachelnsz=0 (dwords)
lattimer=0x00 (0 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns)
intpin=d, irq=0
map[20]: type I/O Port, range 32, base 0, size 5, port disabled
pcib0: no IRQ mapping for 0/10/2/4
found-> vendor=0x8086, dev=0x7113, revid=0x03
domain=0, bus=0, slot=10, func=3
class=06-80-00, hdrtype=0x00, mfdev=0
cmdreg=0x0000, statreg=0x0280, cachelnsz=0 (dwords)
lattimer=0x00 (0 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns)
intpin=a, irq=0
pcib0: no IRQ mapping for 0/10/3/1
found-> vendor=0x1022, dev=0x2000, revid=0x10
domain=0, bus=0, slot=11, func=0
class=02-00-00, hdrtype=0x00, mfdev=0
cmdreg=0x0000, statreg=0x0280, cachelnsz=0 (dwords)
lattimer=0x00 (0 ns), mingnt=0x06 (1500 ns), maxlat=0xff (63750 ns)
intpin=a, irq=0
map[10]: type I/O Port, range 32, base 0, size 5, port disabled
map[14]: type Memory, range 32, base 0, size 5, memory disabled
found-> vendor=0x1013, dev=0x00b8, revid=0x00
domain=0, bus=0, slot=18, func=0
class=03-00-00, hdrtype=0x00, mfdev=0
cmdreg=0x0000, statreg=0x0000, cachelnsz=0 (dwords)
lattimer=0x00 (0 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns)
map[10]: type Prefetchable Memory, range 32, base 0, size 25, memory disabled
map[14]: type Memory, range 32, base 0, size 12, memory disabled
obio0 irq 0 at device 0.0 on pci0
uart0: <16550 or compatible> on obio0
uart0: console (9600,n,8,1)
uart0: fast interrupt
uart0: PPS capture mode: DCD
random: harvesting attach, 8 bytes (4 bits) from uart0
random: harvesting attach, 8 bytes (4 bits) from obio0
pci0: <bridge, PCI-ISA> at device 10.0 (no driver attached)
atapci0: <Intel PIIX4 UDMA33 controller> port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376 at device 10.1 on pci0
atapci0: Lazy allocation of 0x10 bytes rid 0x20 type 4 at 0x100
ata0: <ATA channel> at channel 0 on atapci0
random: harvesting attach, 8 bytes (4 bits) from ata0
ata1: <ATA channel> at channel 1 on atapci0
random: harvesting attach, 8 bytes (4 bits) from ata1
random: harvesting attach, 8 bytes (4 bits) from atapci0
pci0: <serial bus, USB> at device 10.2 (no driver attached)
pci0: <bridge> at device 10.3 (no driver attached)
le0: <AMD PCnet-PCI> irq 10 at device 11.0 on pci0
le0: Lazy allocation of 0x20 bytes rid 0x10 type 4 at 0x120
le0: 16 receive buffers, 4 transmit buffers
le0: bpf attached
le0: Ethernet address: 52:54:00:12:34:56
random: harvesting attach, 8 bytes (4 bits) from le0
vgapci0: <VGA-compatible display> at device 18.0 on pci0
random: harvesting attach, 8 bytes (4 bits) from vgapci0
random: harvesting attach, 8 bytes (4 bits) from pci0
random: harvesting attach, 8 bytes (4 bits) from pcib0
random: harvesting attach, 8 bytes (4 bits) from gt0
clock0: <Generic MIPS32 ticker> on nexus0
Timecounter "MIPS32" frequency 100000000 Hz quality 800
Event timer "MIPS32" frequency 100000000 Hz quality 800
random: harvesting attach, 8 bytes (4 bits) from clock0
Device configuration finished.
Timecounters tick every 10.000 msec
lo0: bpf attached
tcp_init: net.inet.tcp.tcbhashsize auto tuned to 2048
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
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: 13.300MB/s transfers (WDMA1, ATAPI 12bytes, PIO 65534bytes)
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: 1024MB (2097152 512 byte sectors)
Trying to mount root from ufs:ada0 []...
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: 13.300MB/s transfers (WDMA1, 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
BAD_PAGE_FAULT: pid 18 tid 100038 (sh), uid 0: pc 0x404392d8 got a read fault (type 0x2) at 0x20020
Trapframe Register Dump:
zero: 0 at: 0x20040 v0: 0 v1: 0
a0: 0 a1: 0 a2: 0x40438110 a3: 0x70000009
t0: 0x20000 t1: 0x7000000a t2: 0x70000011 t3: 0x70000013
t4: 0x10 t5: 0 t6: 0 t7: 0
t8: 0 t9: 0x40439234 s0: 0x40473c30 s1: 0x40438000
s2: 0 s3: 0 s4: 0 s5: 0
s6: 0 s7: 0 k0: 0 k1: 0
gp: 0x40473c30 sp: 0x7ffeee68 s8: 0x7ffeee68 ra: 0x404390f0
sr: 0x8413 mullo: 0 mulhi: 0 badvaddr: 0x20020
cause: 0x8 pc: 0x404392d8
Page table info for pc address 0x404392d8: pde = 0x80955000, pte = 0xa002a5da
Dumping 4 words starting at pc address 0x404392d8:
8c21ffe0 00300821 00200008 00000000
Page table info for bad address 0x20020: pde = 0, pte = 0
pid 18 (sh), uid 0: exited on signal 11
Feb 3 23:29:20 init: /bin/sh on /etc/rc terminated abnormally, going to single user mode
Enter full pathname of shell or RETURN for /bin/sh:
BAD_PAGE_FAULT: pid 19 tid 100038 (sh), uid 0: pc 0x404392d8 got a read fault (type 0x2) at 0x20020
Trapframe Register Dump:
zero: 0 at: 0x20040 v0: 0 v1: 0
a0: 0 a1: 0 a2: 0x40438110 a3: 0x70000009
t0: 0x20000 t1: 0x7000000a t2: 0x70000011 t3: 0x70000013
t4: 0x10 t5: 0 t6: 0 t7: 0
t8: 0 t9: 0x40439234 s0: 0x40473c30 s1: 0x40438000
s2: 0 s3: 0 s4: 0 s5: 0
s6: 0 s7: 0 k0: 0 k1: 0
gp: 0x40473c30 sp: 0x7ffeee80 s8: 0x7ffeee80 ra: 0x404390f0
sr: 0x8413 mullo: 0 mulhi: 0 badvaddr: 0x20020
cause: 0x8 pc: 0x404392d8
Page table info for pc address 0x404392d8: pde = 0x8096e000, pte = 0xa002a5da
Dumping 4 words starting at pc address 0x404392d8:
8c21ffe0 00300821 00200008 00000000
Page table info for bad address 0x20020: pde = 0, pte = 0
pid 19 (sh), uid 0: exited on signal 11
Feb 3 23:29:25 init: single user shell terminated, restarting
Enter full pathname of shell or RETURN for /bin/sh:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment