qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] Emulating mips


From: Renich Bon Ciric
Subject: Re: [Qemu-devel] Emulating mips
Date: Tue, 23 Jul 2013 01:24:51 -0500

On Tue, Jul 23, 2013 at 12:41 AM, Rob Landley <address@hidden> wrote:
> On 07/23/2013 12:16:53 AM, Renich Bon Ciric wrote:
>>
>> Hello,
>>
>> I am new to this...
>>
>> I'm trying to run some rom file I got from a client. It's a sc2005
>> processor; supposedly compatible with 4k.
>>
>> Anyway, I do this:
>>
>> qemu-system-mips -M mips -pflash 301-3100\ -\ user\ specified\ -\
>> Full.bin -serial stdio
>>
>> The processor goes to 100% but I see nothing, not in the serial
>> console nor in the window (monitor, maybe?)
>>
>> I'd appreciate some tips
>
>
> I have working mips images at
>
> http://landley.net/aboriginal/bin/system-image-mips.tar.bz2
>
> Grab that extract it, and ./run-emulator.sh.
>
> That should let you know what "working" looks like, and if you can dig a
> chroot or loopback mount out of your rom image, you can probably mount it
> under there and try running the binaries.
>
> Rob

Ah, I've noticed on the kernel output that it's configured for a 24kc
and my rom is desinged for a 4k compatible cpu. I think I should
recreate the vmlinux right?

Anyway, it totally stops when it seems not able to find the right
partition for the rom:

Linux version 3.10.0 (address@hidden) (collect2: ld returned 1 exit
status) #1 Wed Jul 3 00:54:09 CDT 2013
bootconsole [early0] enabled
CPU revision is: 00019300 (MIPS 24Kc)
FPU revision is: 00739300
Software DMA cache coherency enabled
Determined physical RAM map:
 memory: 00001000 @ 00000000 (reserved)
 memory: 000ef000 @ 00001000 (ROM data)
 memory: 0038f000 @ 000f0000 (reserved)
 memory: 07b80000 @ 0047f000 (usable)
Wasting 36832 bytes for tracking 1151 unused pages
Zone ranges:
  DMA      [mem 0x00000000-0x00ffffff]
  Normal   [mem 0x01000000-0x07ffefff]
Movable zone start for each node
Early memory node ranges
  node   0: [mem 0x00000000-0x07ffefff]
Primary instruction cache 2kB, VIPT, 2-way, linesize 16 bytes.
Primary data cache 2kB, 2-way, VIPT, no aliases, linesize 16 bytes
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32511
Kernel command line: root=/dev/hda rw console=ttyS0 HOST=mips
PID hash table entries: 512 (order: -1, 2048 bytes)
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
Writing ErrCtl register=00000000
Readback ErrCtl register=00000000
Memory: 125296k/126464k available (2596k kernel code, 1168k reserved,
606k data, 188k init, 0k highmem)
SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
NR_IRQS:256
CPU frequency 200.00 MHz
Console: colour dummy device 80x25
Calibrating delay loop... 970.75 BogoMIPS (lpj=1941504)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 512
devtmpfs: initialized
NET: Registered protocol family 16
bio: create slab <bio-0> at 0
vgaarb: loaded
SCSI subsystem initialized
PCI host bridge to bus 0000:00
pci_bus 0000:00: root bus resource [mem 0x10000000-0x17ffffff]
pci_bus 0000:00: root bus resource [io  0x2000-0x1fffff]
pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
pci 0000:00:0a.3: no compatible bridge window for [io  0x1100-0x110f]
vgaarb: device added: PCI:0000:00:12.0,decodes=io+mem,owns=none,locks=none
pci 0000:00:0a.3: BAR 8: [io  0x1100-0x110f] has bogus alignment
pci 0000:00:12.0: BAR 0: assigned [mem 0x10000000-0x11ffffff pref]
pci 0000:00:0b.0: BAR 6: assigned [mem 0x12000000-0x1201ffff pref]
pci 0000:00:12.0: BAR 6: assigned [mem 0x12020000-0x1202ffff pref]
pci 0000:00:12.0: BAR 1: assigned [mem 0x12030000-0x12030fff]
pci 0000:00:0a.2: BAR 4: assigned [io  0x2000-0x201f]
pci 0000:00:0b.0: BAR 0: assigned [io  0x2020-0x203f]
pci 0000:00:0b.0: BAR 1: assigned [mem 0x12031000-0x1203101f]
pci 0000:00:0a.1: BAR 4: assigned [io  0x2040-0x204f]
Switching to clocksource pit
NET: Registered protocol family 2
TCP established hash table entries: 1024 (order: 1, 8192 bytes)
TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
TCP: Hash tables configured (established 1024 bind 1024)
TCP: reno registered
UDP hash table entries: 256 (order: 0, 4096 bytes)
UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
NET: Registered protocol family 1
PCI: Enabling device 0000:00:0a.2 (0000 -> 0001)
squashfs: version 4.0 (2009/01/31) Phillip Lougher
9p: Installing v9fs 9p2000 file system support
msgmni has been set to 244
io scheduler noop registered (default)
Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
serial8250.0: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
console [ttyS0] enabled, bootconsole disabled
console [ttyS0] enabled, bootconsole disabled
serial8250.0: ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
loop: module loaded
Uniform Multi-Platform E-IDE driver
piix 0000:00:0a.1: IDE controller (0x8086:0x7111 rev 0x00)
PCI: Enabling device 0000:00:0a.1 (0000 -> 0001)
piix 0000:00:0a.1: not 100% native mode: will probe irqs later
    ide0: BM-DMA at 0x2040-0x2047
    ide1: BM-DMA at 0x2048-0x204f
hda: QEMU HARDDISK, ATA DISK drive
hda: UDMA/33 mode selected
hdc: QEMU DVD-ROM, ATAPI CD/DVD-ROM drive
hdc: UDMA/33 mode selected
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
ide1 at 0x170-0x177,0x376 on irq 15
ide-gd driver 1.18
hda: max request size: 512KiB
hda: 8192 sectors (4 MB) w/256KiB Cache, CHS=8/255/63
hda: cache flushes supported
 hda: unknown partition table
ide-cd driver 5.00
ide-cd: hdc: ATAPI 4X DVD-ROM drive, 512kB Cache
cdrom: Uniform CD-ROM driver Revision: 3.20
pcnet32: pcnet32.c:v1.35 21.Apr.2008 address@hidden
PCI: Enabling device 0000:00:0b.0 (0000 -> 0003)
pcnet32: PCnet/PCI II 79C970A at 0x2020, 52:54:00:12:34:56 assigned IRQ 10
pcnet32: eth0: registered as PCnet/PCI II 79C970A
pcnet32: 1 cards_found
mousedev: PS/2 mouse device common for all mice
TCP: cubic registered
NET: Registered protocol family 17
9pnet: Installing 9P2000 support
drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
List of all partitions:
0300            4096 hda  driver: ide-gd
1600         4194302 hdc  driver: ide-cdrom
No filesystem could mount root, tried:  ext3 ext2 ext4 squashfs
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(3,0)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]