Hello,

A number of us work on the Composite <http://composite.seas.gwu.edu/> research
OS at GWU (astute readers might remember our emails from December about TLS
which we've since solved). We've modified the lower levels of BMK to use
Composite-specific functionality and are able to run nginx within a Rump
Kernel on Composite. For performance testing (to make sure we don't have
regressions), we want to get nginx running using the bmk platform directly
on the hardware as well, so we can compare the two.

We had initial difficulties getting the nginx application to boot (more
later) with bmk on hardware. To simplify, we switched to trying to just get
a "hello world" test application to boot, but had issues with this as well.
Has anyone used BMK on the bare metal anytime recently?  It works fine when
virtualized.  We're scoured the list and tried many of the suggestions.
Some details:

We used the most up-to-date version of rumprun (commit
a17ac0ede4d043c580cc9b2c990523548045ce51).  All of these trails were also
done on two different computers.

The general build procedure we used:
1. ./build-rr.sh hw -- -F ACFLAGS=-m32 : build rump kernel for hw, 32 bit
2. i486-rumprun-netbsdelf-gcc test.c -o test.o
3. rumpbake hw_generic test test.o

At this point we tested the application using qemu, everything works fine.

4. rumprun iso test

5. dd if=rumprun-test.iso of=/dev/sdb bs=8M : sdb is our usb drive.

Trying to boot off of usb:
    1. With an older version (commit
544aaab7280a3fcdca869f3987b15f9c34eec15c) of rumprun it crashes with the
message of: "failed to mount rootfs from image"

     2. With newest version, it doesn't get that far. Fails at detecting
PCI wm(NIC - PCH2 LAN 82579LM Controller rev 0x04): "PANIC:
bmk_isr_rumpkernel: cpu_intr_init"
        2.a While we could remove that PCI device, we end up back at the
failure to mount

These errors were the same for both computers.

Thinking it might be a problem with using USB we also tried:
   a. dd to a partition on HDD and boot directly from there using Ubuntu
14.04 i386 Grub2. Same behavior as above for older and newer rumprun.
   b. Booting from iso on HDD Ubuntu partition, again from Ubuntu's Grub2.
Same problem.
   c. Chainload into the partition on HDD which contains the rumprun iso:
Hangs after displaying "GRUB" for both older and newer rumprun

We also looked into a few posts that had raised such concerns, one of them:
https://www.freelists.org/post/rumpkernel-users/Booting-form-ISO-failed-to-mount-rootfs-from-image,5
Followed Antii's instructions about disabling the problematic device and
enabling USB hub etc, no luck. There are multiple indications on the list
that booting on the hardware should work, so we must be missing something.

We have pictures of the different crashes if it would help.
Any other information or insights that might help us debug the situation
would be greatly appreciated.

Thank you very much,

Robert Gifford

Reply via email to