i've got two cleanly build mips64-764 initrds (based on cross linux from scratch, gcc 6.1 and linux kernel 4.7) that i want to boot with qemu

initrd.cpio ~14.5 MB
big_initrd.cpio ~323.4 MB

mips64-softmmu/qemu-system-mips64 -M malta -m 1GB -nographic -monitor telnet::4440,server,nowait -serial telnet::3000,server -kernel clfskernel-4.7.0 -initrd initrd.cpio

the smaller initrd.cpio (~14.5 MB) boots without any problem and shows the output of an test-program at end of the booting the big one with ~323.4 MB seems to hang right before the ramdisk/initrd extraction

both initrds are build by the same script - the bigger one just gets more programs in - the same script is used for building for
ppc64, alpha and sparc an both initrds are working on these platforms

small tests show that this seem not to be a kernel or gcc bug (same problem with linux 4.5,4.6.4,4,7, gcc 5.2,5.3,6.1)

is my big_inird.cpio too large for the malta platform (or my linux-conf?) or is this maybe an emulation problem with qemu?

dennis


Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
Linux version 4.7.0 (dl@dl-linux) (gcc version 6.1.0 (GCC) ) #1 SMP Sun Aug 7 
08:50:12 CEST 2016
earlycon: uart8250 at I/O port 0x3f8 (options '38400n8')
bootconsole [uart8250] enabled
Config serial console: console=ttyS0,38400n8r
CPU0 revision is: 000182a0 (MIPS 20Kc)
FPU revision is: 000f8200
Checking for the multiply/shift bug... no.
Checking for the daddiu bug... no.
MIPS: machine is mti,malta
Software DMA cache coherency enabled
Determined physical RAM map:
 memory: 0000000010000000 @ 0000000000000000 (usable)
Initial ramdisk at: 0x98000000007c0000 (14502925 bytes)
Zone ranges:
  DMA      [mem 0x0000000000000000-0x0000000000ffffff]
  DMA32    [mem 0x0000000001000000-0x00000000ffffffff]
  Normal   empty
Movable zone start for each node
Early memory node ranges
  node   0: [mem 0x0000000000000000-0x000000000fffffff]
Initmem setup node 0 [mem 0x0000000000000000-0x000000000fffffff]
Primary instruction cache 32kB, VIVT, 4-way, linesize 32 bytes.
Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
percpu: Embedded 4 pages/cpu @9800000001688000 s28448 r8192 d28896 u65536
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 16327
Kernel command line: rd_start=0xffffffff807c0000 rd_size=14502925  
console=ttyS0,38400n8r
PID hash table entries: 1024 (order: -1, 8192 bytes)
Dentry cache hash table entries: 32768 (order: 4, 262144 bytes)
Inode-cache hash table entries: 16384 (order: 3, 131072 bytes)
Enable cache parity protection for MIPS 20KC/25KF CPUs.
Memory: 238624K/262144K available (4886K kernel code, 350K rwdata, 1100K 
rodata, 304K init, 240K bss, 23520K reserved, 0K cma-reserved)
Hierarchical RCU implementation.
        Build-time adjustment of leaf fanout to 64.
        RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=1.
RCU: Adjusting geometry for rcu_fanout_leaf=64, nr_cpu_ids=1
NR_IRQS:256
CPU frequency 100.00 MHz
clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 
19112638867 ns
sched_clock: 32 bits at 99MHz, resolution 10ns, wraps every 21474875386ns
Console: colour dummy device 80x25
Calibrating delay loop... 806.91 BogoMIPS (lpj=4034560)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 2048 (order: 0, 16384 bytes)
Mountpoint-cache hash table entries: 2048 (order: 0, 16384 bytes)
Checking for the daddi bug... no.
Brought up 1 CPUs
devtmpfs: initialized
clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 
19112604462750000 ns
NET: Registered protocol family 16
clocksource: pit: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 
1601818034827 ns
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  0x1000-0x1fffff]
pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
pci 0000:00:00.0: [Firmware Bug]: reg 0x14: invalid BAR (can't size)
pci 0000:00:00.0: [Firmware Bug]: reg 0x18: invalid BAR (can't size)
pci 0000:00:00.0: [Firmware Bug]: reg 0x1c: invalid BAR (can't size)
pci 0000:00:00.0: [Firmware Bug]: reg 0x20: invalid BAR (can't size)
pci 0000:00:00.0: [Firmware Bug]: reg 0x24: invalid BAR (can't size)
pci 0000:00:0a.1: legacy IDE quirk: reg 0x10: [io  0x01f0-0x01f7]
pci 0000:00:0a.1: legacy IDE quirk: reg 0x14: [io  0x03f6]
pci 0000:00:0a.1: legacy IDE quirk: reg 0x18: [io  0x0170-0x0177]
pci 0000:00:0a.1: legacy IDE quirk: reg 0x1c: [io  0x0376]
pci 0000:00:0a.3: quirk: [io  0x1000-0x103f] claimed by PIIX4 ACPI
pci 0000:00:0a.3: quirk: [io  0x1100-0x110f] claimed by PIIX4 SMB
vgaarb: device added: PCI:0000:00:12.0,decodes=io+mem,owns=none,locks=none
pci 0000:00:12.0: BAR 0: assigned [mem 0x10000000-0x11ffffff pref]
pci 0000:00:0b.0: BAR 6: assigned [mem 0x12000000-0x1203ffff pref]
pci 0000:00:12.0: BAR 6: assigned [mem 0x12040000-0x1204ffff pref]
pci 0000:00:12.0: BAR 1: assigned [mem 0x12050000-0x12050fff]
pci 0000:00:0a.2: BAR 4: assigned [io  0x1040-0x105f]
pci 0000:00:0b.0: BAR 0: assigned [io  0x1060-0x107f]
pci 0000:00:0b.0: BAR 1: assigned [mem 0x12051000-0x1205101f]
pci 0000:00:0a.1: BAR 4: assigned [io  0x1080-0x108f]
clocksource: Switched to clocksource MIPS
VFS: Disk quotas dquot_6.6.0
VFS: Dquot-cache hash table entries: 2048 (order 0, 16384 bytes)
NET: Registered protocol family 2
TCP established hash table entries: 2048 (order: 0, 16384 bytes)
TCP bind hash table entries: 2048 (order: 1, 32768 bytes)
TCP: Hash tables configured (established 2048 bind 2048)
UDP hash table entries: 512 (order: 0, 16384 bytes)
UDP-Lite hash table entries: 512 (order: 0, 16384 bytes)
NET: Registered protocol family 1
RPC: Registered named UNIX socket transport module.
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
Unpacking initramfs...
Initramfs unpacking failed: junk in compressed archive
Freeing initrd memory: 14160K (98000000007c0000 - 9800000001594000)
futex hash table entries: 256 (order: 0, 16384 bytes)
workingset: timestamp_bits=60 max_order=14 bucket_order=0
Installing knfsd (copyright (C) 1996 o...@monad.swb.de).
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253)
io scheduler noop registered
io scheduler deadline registered
io scheduler cfq registered (default)
PCI: Enabling device 0000:00:12.0 (0000 -> 0002)
cirrusfb 0000:00:12.0: Cirrus Logic chipset on PCI bus, RAM (4096 kB) at 
0x10000000
Console: switching to colour frame buffer device 80x30
Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
console [ttyS0] disabled
serial8250.0: ttyS0 at I/O 0x3f8 (irq = 4, base_baud = 115200) is a 16550A
console [ttyS0] enabled
console [ttyS0] enabled
bootconsole [uart8250] disabled
bootconsole [uart8250] disabled
serial8250.0: ttyS1 at I/O 0x2f8 (irq = 3, base_baud = 115200) is a 16550A
Uniform Multi-Platform E-IDE driver
ide_generic: please use "probe_mask=0x3f" module parameter for probing all 
legacy ISA IDE ports
ide-gd driver 1.18
ide-cd driver 5.00
PCI: Enabling device 0000:00:0a.1 (0000 -> 0001)
scsi host0: ata_piix
scsi host1: ata_piix
ata1: PATA max UDMA/33 cmd 0x1f0 ctl 0x3f6 bmdma 0x1080 irq 14
ata2: PATA max UDMA/33 cmd 0x170 ctl 0x376 bmdma 0x1088 irq 15
physmap platform flash device: 00400000 at 1e000000
physmap-flash.0: Found 1 x32 devices at 0x0 in 32-bit bank. Manufacturer ID 
0x000000 Chip ID 0x000000
Intel/Sharp Extended Query Table at 0x0031
Using buffer write method
Creating 3 MTD partitions on "physmap-flash.0":
0x000000000000-0x000000100000 : "YAMON"
0x000000100000-0x0000003e0000 : "User FS"
0x0000003e0000-0x000000400000 : "Board Config"
pcnet32: pcnet32.c:v1.35 21.Apr.2008 tsbog...@alpha.franken.de
PCI: Enabling device 0000:00:0b.0 (0000 -> 0003)
pcnet32: PCnet/PCI II 79C970A at 0x1060, 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
rtc_cmos rtc_cmos: rtc core: registered rtc_cmos as rtc0
rtc_cmos rtc_cmos: alarms up to one day, 242 bytes nvram
NET: Registered protocol family 17
NET: Registered protocol family 15
rtc_cmos rtc_cmos: setting system clock to 2016-09-08 09:03:08 UTC (1473325388)
ata2.00: ATAPI: QEMU DVD-ROM, 2.5+, max UDMA/100
ata2.00: configured for UDMA/33
scsi 1:0:0:0: CD-ROM            QEMU     QEMU DVD-ROM     2.5+ PQ: 0 ANSI: 5
Freeing unused kernel memory: 304K (ffffffff80734000 - ffffffff80780000)
This architecture does not have kernel memory protection.
C printf Hello World!
C++ std::cout Hello World!
endianess: big
/bin/bash exists?: FALSE
init
root/
dev/
  console
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
Linux version 4.7.0 (dl@dl-linux) (gcc version 6.1.0 (GCC) ) #1 SMP Sun Aug 7 
08:50:12 CEST 2016
earlycon: uart8250 at I/O port 0x3f8 (options '38400n8')
bootconsole [uart8250] enabled
Config serial console: console=ttyS0,38400n8r
CPU0 revision is: 000182a0 (MIPS 20Kc)
FPU revision is: 000f8200
Checking for the multiply/shift bug... no.
Checking for the daddiu bug... no.
MIPS: machine is mti,malta
Software DMA cache coherency enabled
Determined physical RAM map:
 memory: 0000000010000000 @ 0000000000000000 (usable)

Reply via email to