i'm perusing the openwrt QEMU page here:

 http://wiki.openwrt.org/doc/howto/qemu

so i thought i'd test a couple of the architectures with images
downloaded from the 14.07-rc3 directory. all this is being done on a
64-bit fedora rawhide system with the appropriate qemu-system-*
packages installed. so here's where i'm getting the images from:

 https://downloads.openwrt.org/barrier_breaker/14.07-rc3/...

  first, MIPS, where i tried to boot just the kernel image:

$ qemu-system-mipsel -kernel openwrt-malta-le-vmlinux.elf -nographic -m 256
[    0.000000] Linux version 3.10.49 (bb@builder1) (gcc version 4.8.3
(OpenWrt/Linaro GCC 4.8-2014.04 r41989) ) #1 SMP Fri Aug 8 02:50:38
CEST 2014
[    0.000000] Config serial console: console=ttyS0,38400n8r
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU revision is: 00019300 (MIPS 24Kc)
[    0.000000] FPU revision is: 00739300
... snip ...
[    0.560000] VFS: Cannot open root device "(null)" or unknown-block(0,0): 
error -6
[    0.560000] Please append a correct "root=" boot option; here are the 
available partitions:
[    0.570000] 1f00            1024 mtdblock0  (driver?)
[    0.570000] 1f01            2944 mtdblock1  (driver?)
[    0.570000] 1f02             128 mtdblock2  (driver?)
[    0.570000] Kernel panic - not syncing: VFS: Unable to mount root fs on 
unknown-block(0,0)

which is, of course, exactly what i expected -- choke on a lack of
rootfs, so that looks good.

  now try with initramfs, which doesn't work so well:

$ qemu-system-mipsel -kernel openwrt-malta-le-vmlinux-initramfs.elf -nographic 
-m 256
... snip ...
[    0.710000] Freeing YAMON memory: 956k freed
[    0.720000] Freeing unused kernel memory: 4940K (8045d000 - 80930000)
[    0.760000] Kernel panic - not syncing: Attempted to kill init! 
exitcode=0x00000004
[    0.760000]

should i have expected that? it is precisely the command on the
openwrt QEMU page that is implied to work.

  thoughts? i'm about to try the ARM stuff, will ask about that
shortly ...

rday

-- 

========================================================================
Robert P. J. Day                                 Ottawa, Ontario, CANADA
                        http://crashcourse.ca

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================
_______________________________________________
openwrt-users mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-users

Reply via email to