bochs failure on make emulate on Ubuntu 14.10

1,338 views
Skip to first unread message

John McDermott

unread,
Dec 4, 2014, 12:59:40 PM12/4/14
to muen...@googlegroups.com
Muen Developers,

Trying to get "make emulate" to run, to convince my management that they should let me work on Muen. Any suggestions would be appreciated. (Good documentation by the way.)

I'd like to get the Ubuntu 14.10 version working and not worry about the other, but I do mention it so the community will know there is an issue with 14.04 and bochs 2.6.7 from source.

1. Tried to build and run on Ubuntu 14.04:
a. image created by plain old "make" builds and boots
b. build and install bochs 2.6.7 from source
c. "make emulate" never launches, with what looks like a bochs cpuid instruction error.

2. Switch to newer hardware running Ubuntu 14.10, hoping the latest distro bochs will work:
a. "make emulate" never launches, with what looks like a bochs error re the number of cpus.

3. I don't know enough to decide if the error is a makefile issue or a bochs configuration issue. Neither attempt produced either an emulate/bochsout.txt or an emulate/serial.out. Both did produce a file emulate/emulate.out . The Ubuntu 14.10 host reports 8 cores:

----
root@host:~# tail -n 26 /proc/cpuinfo
processor : 7
vendor_id : GenuineIntel
cpu family : 6
model : 60
model name : Intel(R) Core(TM) i7-4790S CPU @ 3.20GHz
stepping : 3
microcode : 0x19
cpu MHz : 800.000
cache size : 8192 KB
physical id : 0
siblings : 8
core id : 3
cpu cores : 4
apicid : 7
initial apicid : 7
fpu : yes
fpu_exception : yes
cpuid level : 13
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm ida arat epb xsaveopt pln pts dtherm tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm
bogomips : 6400.05
clflush size : 64
cache_alignment : 64
address sizes : 39 bits physical, 48 bits virtual
power management:

root@host:~#
----

mc@host:~/muen/emulate$ cat emulate.out
00000000000i[ ] LTDL_LIBRARY_PATH not set. using compile time default '/usr/lib/bochs/plugins'
00000000000i[ ] BXSHARE not set. using compile time default '/usr/share/bochs'
00000000000i[ ] lt_dlhandle is 0x48893a0
00000000000i[PLGIN] loaded plugin libbx_unmapped.so
00000000000i[ ] lt_dlhandle is 0x488b740
00000000000i[PLGIN] loaded plugin libbx_biosdev.so
00000000000i[ ] lt_dlhandle is 0x488c050
00000000000i[PLGIN] loaded plugin libbx_speaker.so
00000000000i[ ] lt_dlhandle is 0x488c8c0
00000000000i[PLGIN] loaded plugin libbx_extfpuirq.so
00000000000i[ ] lt_dlhandle is 0x488d140
00000000000i[PLGIN] loaded plugin libbx_parallel.so
00000000000i[ ] lt_dlhandle is 0x488ec90
00000000000i[PLGIN] loaded plugin libbx_serial.so
00000000000i[ ] lt_dlhandle is 0x48929b0
00000000000i[PLGIN] loaded plugin libbx_gameport.so
00000000000i[ ] lt_dlhandle is 0x4893430
00000000000i[PLGIN] loaded plugin libbx_iodebug.so
00000000000i[ ] reading configuration from bochsrc
00000000000p[CTRL ] >>PANIC<< numerical parameter 'n_processors' was set to 4, which is out of range 1 to 1
00000000000e[CTRL ] notify called, but no bxevent_callback function is registered
00000000000i[CPU0 ] CPU is in real mode (active)
00000000000i[CPU0 ] CS.mode = 16 bit
00000000000i[CPU0 ] SS.mode = 16 bit
00000000000i[CPU0 ] EFER = 0x00000000
00000000000i[CPU0 ] | EAX=00000000 EBX=00000000 ECX=00000000 EDX=00000000
00000000000i[CPU0 ] | ESP=00000000 EBP=00000000 ESI=00000000 EDI=00000000
00000000000i[CPU0 ] | IOPL=0 id vip vif ac vm rf nt of df if tf sf ZF af PF cf
00000000000i[CPU0 ] | SEG sltr(index|ti|rpl) base limit G D
00000000000i[CPU0 ] | CS:0000( 0000| 0| 0) 00000000 00000000 0 0
00000000000i[CPU0 ] | DS:0000( 0000| 0| 0) 00000000 00000000 0 0
00000000000i[CPU0 ] | SS:0000( 0000| 0| 0) 00000000 00000000 0 0
00000000000i[CPU0 ] | ES:0000( 0000| 0| 0) 00000000 00000000 0 0
00000000000i[CPU0 ] | FS:0000( 0000| 0| 0) 00000000 00000000 0 0
00000000000i[CPU0 ] | GS:0000( 0000| 0| 0) 00000000 00000000 0 0
00000000000i[CPU0 ] | EIP=00000000 (00000000)
00000000000i[CPU0 ] | CR0=0x00000000 CR2=0x00000000
00000000000i[CPU0 ] | CR3=0x00000000 CR4=0x00000000
00000000000i[CTRL ] quit_sim called with exit code 1
========================================================================
Bochs x86 Emulator 2.6
Built from SVN snapshot on September 2nd, 2012
Compiled on May 30 2014 at 11:14:37
========================================================================
bx_dbg_read_linear: physical memory read error (phy=0x0000000000000000, lin=0x0000000000000000)
$mc@host:~/muen/emulate$

----
What is the formal meaning of the one-line program
#include "/dev/tty"

J.P. McDermott building 12
Code 5542 john.mc...@nrl.navy.mil
Naval Research Laboratory voice: +1 202.404.8301
Washington, DC 20375, US fax: +1 202.404.7942






Adrian-Ken Rueegsegger

unread,
Dec 4, 2014, 1:54:33 PM12/4/14
to muen...@googlegroups.com
Hello John,

Welcome to the list!

On 12/04/2014 06:59 PM, John McDermott wrote:
> I'd like to get the Ubuntu 14.10 version working and not worry about the other, but I do mention it so the community will know there is an issue with 14.04 and bochs 2.6.7 from source.
>
> 1. Tried to build and run on Ubuntu 14.04:
> a. image created by plain old "make" builds and boots
> b. build and install bochs 2.6.7 from source
> c. "make emulate" never launches, with what looks like a bochs cpuid instruction error.

Could you provide the Bochs log output with the cpuid instruction error?

> 2. Switch to newer hardware running Ubuntu 14.10, hoping the latest distro bochs will work:
> a. "make emulate" never launches, with what looks like a bochs error re the number of cpus.

It seems that this particular Bochs version was not compiled with SMP
support (--enable-smp) which is necessary since we configure Bochs to
emulate a system with four CPUs (see emulate/bochsrc).

[...]
According to the output Bochs version 2.6 (also without SMP support) was
used. Muen requires Bochs with version 2.6.5. It seems that the Bochs
package of Ubuntu 14.10 was not compiled with --enable-smp [1] and is
too old. So I am afraid Muen cannot be emulated on Ubuntu 14.10 out of
the box.

Using Bochs built from source with the compilation flags specified at
[2] should provide you with a working Muen demo system. Could you give
it another go on your system and report back the output of the
emulate.out file?

Regards,
Adrian

[1] -
http://bazaar.launchpad.net/~ubuntu-branches/ubuntu/utopic/bochs/utopic-proposed/view/head:/debian/rules#L88
[2] - http://muen.codelabs.ch/#_deploy

Adrian-Ken Rueegsegger

unread,
Dec 4, 2014, 6:23:35 PM12/4/14
to muen...@googlegroups.com
Hello John,

On 12/04/2014 06:59 PM, John McDermott wrote:
> I'd like to get the Ubuntu 14.10 version working and not worry about the other, but I do mention it so the community will know there is an issue with 14.04 and bochs 2.6.7 from source.

I just verified that the Muen 'devel' branch works on a fresh Ubuntu
14.10 installation using the latest Bochs release (2.6.7) built from source.

> 1. Tried to build and run on Ubuntu 14.04:
> a. image created by plain old "make" builds and boots
> b. build and install bochs 2.6.7 from source
> c. "make emulate" never launches, with what looks like a bochs cpuid instruction error.

Did you by any chance have multiple Bochs versions installed, e.g. the
Bochs Ubuntu package as well as the binary built from source? If so,
could you please try 'make emulate' again after making sure that the
correct Bochs binary is used, e.g. by setting the PATH environment
variable or (temporarily) removing the Bochs package?

Regards,
Adrian

John McDermott

unread,
Dec 5, 2014, 8:10:21 AM12/5/14
to Adrian-Ken Rueegsegger, muen...@googlegroups.com

--
You received this message because you are subscribed to the Google Groups "muen-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to muen-dev+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Adrian,

Thanks for your help.

The 14.04 did not have multiple Bochs installations. 

As a matter of long experience, I will also re-install 14.10, without Bochs, on the newer hardware, to be sure there is not a trace of the Canonical version remaining, when I try compiling the newer version of Bochs.

The compilation of Bochs on the 14.04 version was with the configure flags as per the directions, with one exception: with all of those exact flags, 2.6.7 would not compile because of some problem with Dockbook and Openjade. So I compiled with all of the flags as directed but also the flag --enable-docbook=no; then everything compiled. I would be surprise if that were the cause of the problem.

The only Bochs log that I can find on the older 14.04 system, the one with the cupid fault, is in the build directory as /home/mc/bochs-2.6/config.log. That's all I found with "locate bochs | grep log". I can send that if that would help or any other file that you know about that I do not. 

Should "make emulate" be run as root? I did not do that.

Sincerely,

John

----

What is the formal meaning of the one-line program

#include "/dev/tty"

John McDermott

Virginia, US

John McDermott

unread,
Dec 5, 2014, 8:24:39 AM12/5/14
to Adrian-Ken Rueegsegger, muen...@googlegroups.com
Adrian,

I am using X forwarding to do most of this, but I don't see that as being the problem either. I did try both the 14.04 and 14.10 platforms directly, to be sure.

Here is the emulate.out from the 14.04 machine with the CPUID issue
----
00000000000i[     ] reading configuration from bochsrc
00000000000p[     ] >>PANIC<< bochsrc:9: cpuid directive malformed.
========================================================================
Bochs is exiting with the following message:
[     ] bochsrc:9: cpuid directive malformed.
========================================================================
00000000000i[CTRL ] quit_sim called with exit code 1
========================================================================
                        Bochs x86 Emulator 2.6
            Built from SVN snapshot on September 2nd, 2012
                  Compiled on Dec  4 2014 at 10:34:33
========================================================================

----

What is the formal meaning of the one-line program

#include "/dev/tty"

John McDermott

Virginia, US

Adrian-Ken Rueegsegger

unread,
Dec 5, 2014, 8:45:02 AM12/5/14
to John McDermott, muen...@googlegroups.com
Hello John,
It seems that you are using Bochs version 2.6 built from source. Is it
possible that you downloaded an older source release? Could you please
try with the latest version found at [1]? That is the tarball I used
successfully in my test run yesterday. Thanks.

Regards,
Adrian

[1] -
http://sourceforge.net/projects/bochs/files/bochs/2.6.7/bochs-2.6.7.tar.gz/download

John McDermott

unread,
Dec 5, 2014, 9:06:31 AM12/5/14
to Adrian-Ken Rueegsegger, muen...@googlegroups.com


On Fri, Dec 5, 2014 at 8:44 AM, Adrian-Ken Rueegsegger <k...@codelabs.ch> wrote:
<snip>


It seems that you are using Bochs version 2.6 built from source. Is it
possible that you downloaded an older source release? Could you please
try with the latest version found at [1]? That is the tarball I used
successfully in my test run yesterday. Thanks.

Regards,
Adrian

[1] -
http://sourceforge.net/projects/bochs/files/bochs/2.6.7/bochs-2.6.7.tar.gz/download

Adrian,

I already tried to compile the latest 2.6.7 on the 14.04 host and it would not compile, so I dropped back to the stable 2.6. I will try the latest Bochs again.

I have also tried compile from source stable 2.6 on the 14.10 host and make emulate brings up a Bochs window, via X forwarding, on my Macbook Pro Yosemite (woo hoo!), so Muen works with Yosemite ;-). However, there it has a boot failure cannot read boot disk error. I would include that below but XQuartz will not let me copy text from the Bochs window. 

Here is emulate/emulate.out from the 14.10 box, using stable 2.6 Bochs:

00000000000i[     ] reading configuration from bochsrc
00000000000e[     ] bochsrc:23: Bochs is not compiled with internal debugger support
00000000000i[     ] installing sdl module as the Bochs GUI
00000000000i[     ] using log file bochsout.txt
========================================================================
Event type: PANIC
Device: [BIOS ]
Message: No bootable device.

A PANIC has occurred.  Do you want to:
  cont       - continue execution
  alwayscont - continue execution, and don't ask again.
               This affects only PANIC events from device [BIOS ]
  die        - stop execution now
  abort      - dump core 
========================================================================
                        Bochs x86 Emulator 2.6
            Built from SVN snapshot on September 2nd, 2012
                  Compiled on Dec  5 2014 at 08:52:43
========================================================================
Choose one of the actions above: [die] 

----

Here is emulate/bochsout.txt:

00000000000i[     ] Bochs x86 Emulator 2.6
00000000000i[     ]   Built from SVN snapshot on September 2nd, 2012
00000000000i[     ] Compiled on Dec  5 2014 at 08:52:43
00000000000i[     ] System configuration
00000000000i[     ]   processors: 4 (cores=1, HT threads=1)
00000000000i[     ]   A20 line support: yes
00000000000i[     ]   load configurable MSRs from file "msrs.def"
00000000000i[     ] IPS is set to 50000000
00000000000i[     ] CPU configuration
00000000000i[     ]   level: 6
00000000000i[     ]   SMP support: yes, quantum=16
00000000000i[     ]   Using pre-defined CPU configuration: corei7_ivy_bridge_3770k
00000000000i[     ] Optimization configuration
00000000000i[     ]   RepeatSpeedups support: no
00000000000i[     ]   Fast function calls: no
00000000000i[     ]   Handlers Chaining speedups: no
00000000000i[     ] Devices configuration
00000000000i[     ]   NE2000 support: no
00000000000i[     ]   PCI support: no, enabled=no
00000000000i[     ]   SB16 support: no
00000000000i[     ]   USB support: no
00000000000i[     ]   VGA extension support: vbe 
00000000000i[MEM0 ] allocated memory at 0x7f699d6fe010. after alignment, vector=0x7f699d6ff000
00000000000i[MEM0 ] 2048.00MB
00000000000i[MEM0 ] mem block size = 0x00100000, blocks=2048
00000000000i[MEM0 ] rom at 0xfffe0000/131072 ('/usr/local/share/bochs/BIOS-bochs-latest')
00000000000i[CPU0 ] WARNING: RDRAND is not implemented yet !
00000000000i[CPU1 ] WARNING: RDRAND is not implemented yet !
00000000000i[CPU2 ] WARNING: RDRAND is not implemented yet !
00000000000i[CPU3 ] WARNING: RDRAND is not implemented yet !
00000000000i[     ] init_dev of 'cmos' plugin device by virtual method
00000000000i[CMOS ] Using local time for initial clock
00000000000i[CMOS ] Setting initial clock to: Fri Dec  5 08:53:51 2014 (time0=1417787631)
00000000000i[     ] init_dev of 'dma' plugin device by virtual method
00000000000i[DMA  ] channel 4 used by cascade
00000000000i[     ] init_dev of 'pic' plugin device by virtual method
00000000000i[     ] init_dev of 'pit' plugin device by virtual method
00000000000i[     ] init_dev of 'floppy' plugin device by virtual method
00000000000i[DMA  ] channel 2 used by Floppy Drive
00000000000i[     ] init_dev of 'vga' plugin device by virtual method
00000000000i[MEM0 ] Register memory access handlers: 0x00000000000a0000 - 0x00000000000bffff
00000000000i[VGA  ] interval=200000
00000000000i[MEM0 ] Register memory access handlers: 0x00000000e0000000 - 0x00000000e0ffffff
00000000000i[BXVGA] VBE Bochs Display Extension Enabled
00000000000i[MEM0 ] rom at 0xc0000/41472 ('/usr/local/share/bochs/VGABIOS-lgpl-latest')
00000000000i[     ] init_dev of 'ioapic' plugin device by virtual method
00000000000i[IOAP ] initializing I/O APIC
00000000000i[MEM0 ] Register memory access handlers: 0x00000000fec00000 - 0x00000000fec00fff
00000000000i[     ] init_dev of 'keyboard' plugin device by virtual method
00000000000i[KBD  ] will paste characters every 1000 keyboard ticks
00000000000i[     ] init_dev of 'harddrv' plugin device by virtual method
00000000000i[HD   ] CD on ata0-0: 'muen.iso'
00000000000i[CD1  ] load cdrom with path=muen.iso
00000000000i[CD1  ] Opening image file as a cd.
00000000000i[HD   ] Media present in CD-ROM drive
00000000000i[HD   ] Capacity is 10342 sectors (20.20 MB)
00000000000i[HD   ] Using boot sequence cdrom, none, none
00000000000i[HD   ] Floppy boot signature check is enabled
00000000000i[     ] init_dev of 'unmapped' plugin device by virtual method
00000000000i[     ] init_dev of 'biosdev' plugin device by virtual method
00000000000i[     ] init_dev of 'speaker' plugin device by virtual method
00000000000i[     ] init_dev of 'extfpuirq' plugin device by virtual method
00000000000i[     ] init_dev of 'parallel' plugin device by virtual method
00000000000i[PAR  ] parallel port 1 at 0x0378 irq 7
00000000000i[     ] init_dev of 'serial' plugin device by virtual method
00000000000i[SER  ] com1 at 0x03f8 irq 4
00000000000i[     ] register state of 'cmos' plugin device by virtual method
00000000000i[     ] register state of 'dma' plugin device by virtual method
00000000000i[     ] register state of 'pic' plugin device by virtual method
00000000000i[     ] register state of 'pit' plugin device by virtual method
00000000000i[     ] register state of 'floppy' plugin device by virtual method
00000000000i[     ] register state of 'vga' plugin device by virtual method
00000000000i[     ] register state of 'unmapped' plugin device by virtual method
00000000000i[     ] register state of 'biosdev' plugin device by virtual method
00000000000i[     ] register state of 'speaker' plugin device by virtual method
00000000000i[     ] register state of 'extfpuirq' plugin device by virtual method
00000000000i[     ] register state of 'parallel' plugin device by virtual method
00000000000i[     ] register state of 'serial' plugin device by virtual method
00000000000i[     ] register state of 'ioapic' plugin device by virtual method
00000000000i[     ] register state of 'keyboard' plugin device by virtual method
00000000000i[     ] register state of 'harddrv' plugin device by virtual method
00000000000i[SYS  ] bx_pc_system_c::Reset(HARDWARE) called
00000000000i[CPU0 ] cpu hardware reset
00000000000i[APIC0] allocate APIC id=0 (MMIO enabled) to 0x00000000fee00000
00000000000i[CPU0 ] CPU[0] is the bootstrap processor
00000000000i[CPU0 ] CPUID[0x00000000]: 0000000d 756e6547 6c65746e 49656e69
00000000000i[CPU0 ] CPUID[0x00000001]: 000306a9 00010800 379ae3bf bfebfbff
00000000000i[CPU0 ] CPUID[0x00000002]: 76035a01 00f0b2ff 00000000 00ca0000
00000000000i[CPU0 ] CPUID[0x00000003]: 00000000 00000000 00000000 00000000
00000000000i[CPU0 ] CPUID[0x00000004]: 1c004121 01c0003f 0000003f 00000000
00000000000i[CPU0 ] CPUID[0x00000005]: 00000040 00000040 00000003 00001120
00000000000i[CPU0 ] CPUID[0x00000006]: 00000077 00000002 00000009 00000000
00000000000i[CPU0 ] CPUID[0x00000007]: 00000000 00000281 00000000 00000000
00000000000i[CPU0 ] CPUID[0x00000008]: 00000000 00000000 00000000 00000000
00000000000i[CPU0 ] CPUID[0x00000009]: 00000000 00000000 00000000 00000000
00000000000i[CPU0 ] WARNING: Architectural Performance Monitoring is not implemented
00000000000i[CPU0 ] CPUID[0x0000000a]: 07300403 00000000 00000000 00000603
00000000000i[CPU0 ] CPUID[0x0000000b]: 00000002 00000004 00000000 00000000
00000000000i[CPU0 ] CPUID[0x0000000c]: 00000000 00000000 00000000 00000000
00000000000i[CPU0 ] CPUID[0x0000000d]: 00000007 00000240 00000340 00000000
00000000000i[CPU0 ] CPUID[0x80000000]: 80000008 00000000 00000000 00000000
00000000000i[CPU0 ] CPUID[0x80000001]: 00000000 00000000 00000001 28100000
00000000000i[CPU0 ] CPUID[0x80000002]: 20202020 49202020 6c65746e 20295228
00000000000i[CPU0 ] CPUID[0x80000003]: 65726f43 294d5428 2d376920 30373733
00000000000i[CPU0 ] CPUID[0x80000004]: 5043204b 20402055 30352e33 007a4847
00000000000i[CPU0 ] CPUID[0x80000005]: 00000000 00000000 00000000 00000000
00000000000i[CPU0 ] CPUID[0x80000006]: 00000000 00000000 01006040 00000000
00000000000i[CPU0 ] CPUID[0x80000007]: 00000000 00000000 00000000 00000100
00000000000i[CPU0 ] CPUID[0x80000008]: 00003028 00000000 00000000 00000000
00000000000i[CPU1 ] cpu hardware reset
00000000000i[APIC1] allocate APIC id=1 (MMIO enabled) to 0x00000000fee00000
00000000000i[CPU1 ] CPU[1] is an application processor. Halting until IPI.
00000000000i[CPU1 ] CPUID[0x00000000]: 0000000d 756e6547 6c65746e 49656e69
00000000000i[CPU1 ] CPUID[0x00000001]: 000306a9 01010800 379ae3bf bfebfbff
00000000000i[CPU1 ] CPUID[0x00000002]: 76035a01 00f0b2ff 00000000 00ca0000
00000000000i[CPU1 ] CPUID[0x00000003]: 00000000 00000000 00000000 00000000
00000000000i[CPU1 ] CPUID[0x00000004]: 1c004121 01c0003f 0000003f 00000000
00000000000i[CPU1 ] CPUID[0x00000005]: 00000040 00000040 00000003 00001120
00000000000i[CPU1 ] CPUID[0x00000006]: 00000077 00000002 00000009 00000000
00000000000i[CPU1 ] CPUID[0x00000007]: 00000000 00000281 00000000 00000000
00000000000i[CPU1 ] CPUID[0x00000008]: 00000000 00000000 00000000 00000000
00000000000i[CPU1 ] CPUID[0x00000009]: 00000000 00000000 00000000 00000000
00000000000i[CPU1 ] WARNING: Architectural Performance Monitoring is not implemented
00000000000i[CPU1 ] CPUID[0x0000000a]: 07300403 00000000 00000000 00000603
00000000000i[CPU1 ] CPUID[0x0000000b]: 00000002 00000004 00000000 00000001
00000000000i[CPU1 ] CPUID[0x0000000c]: 00000000 00000000 00000000 00000000
00000000000i[CPU1 ] CPUID[0x0000000d]: 00000007 00000240 00000340 00000000
00000000000i[CPU1 ] CPUID[0x80000000]: 80000008 00000000 00000000 00000000
00000000000i[CPU1 ] CPUID[0x80000001]: 00000000 00000000 00000001 28100000
00000000000i[CPU1 ] CPUID[0x80000002]: 20202020 49202020 6c65746e 20295228
00000000000i[CPU1 ] CPUID[0x80000003]: 65726f43 294d5428 2d376920 30373733
00000000000i[CPU1 ] CPUID[0x80000004]: 5043204b 20402055 30352e33 007a4847
00000000000i[CPU1 ] CPUID[0x80000005]: 00000000 00000000 00000000 00000000
00000000000i[CPU1 ] CPUID[0x80000006]: 00000000 00000000 01006040 00000000
00000000000i[CPU1 ] CPUID[0x80000007]: 00000000 00000000 00000000 00000100
00000000000i[CPU1 ] CPUID[0x80000008]: 00003028 00000000 00000000 00000000
00000000000i[CPU2 ] cpu hardware reset
00000000000i[APIC2] allocate APIC id=2 (MMIO enabled) to 0x00000000fee00000
00000000000i[CPU2 ] CPU[2] is an application processor. Halting until IPI.
00000000000i[CPU2 ] CPUID[0x00000000]: 0000000d 756e6547 6c65746e 49656e69
00000000000i[CPU2 ] CPUID[0x00000001]: 000306a9 02010800 379ae3bf bfebfbff
00000000000i[CPU2 ] CPUID[0x00000002]: 76035a01 00f0b2ff 00000000 00ca0000
00000000000i[CPU2 ] CPUID[0x00000003]: 00000000 00000000 00000000 00000000
00000000000i[CPU2 ] CPUID[0x00000004]: 1c004121 01c0003f 0000003f 00000000
00000000000i[CPU2 ] CPUID[0x00000005]: 00000040 00000040 00000003 00001120
00000000000i[CPU2 ] CPUID[0x00000006]: 00000077 00000002 00000009 00000000
00000000000i[CPU2 ] CPUID[0x00000007]: 00000000 00000281 00000000 00000000
00000000000i[CPU2 ] CPUID[0x00000008]: 00000000 00000000 00000000 00000000
00000000000i[CPU2 ] CPUID[0x00000009]: 00000000 00000000 00000000 00000000
00000000000i[CPU2 ] WARNING: Architectural Performance Monitoring is not implemented
00000000000i[CPU2 ] CPUID[0x0000000a]: 07300403 00000000 00000000 00000603
00000000000i[CPU2 ] CPUID[0x0000000b]: 00000002 00000004 00000000 00000002
00000000000i[CPU2 ] CPUID[0x0000000c]: 00000000 00000000 00000000 00000000
00000000000i[CPU2 ] CPUID[0x0000000d]: 00000007 00000240 00000340 00000000
00000000000i[CPU2 ] CPUID[0x80000000]: 80000008 00000000 00000000 00000000
00000000000i[CPU2 ] CPUID[0x80000001]: 00000000 00000000 00000001 28100000
00000000000i[CPU2 ] CPUID[0x80000002]: 20202020 49202020 6c65746e 20295228
00000000000i[CPU2 ] CPUID[0x80000003]: 65726f43 294d5428 2d376920 30373733
00000000000i[CPU2 ] CPUID[0x80000004]: 5043204b 20402055 30352e33 007a4847
00000000000i[CPU2 ] CPUID[0x80000005]: 00000000 00000000 00000000 00000000
00000000000i[CPU2 ] CPUID[0x80000006]: 00000000 00000000 01006040 00000000
00000000000i[CPU2 ] CPUID[0x80000007]: 00000000 00000000 00000000 00000100
00000000000i[CPU2 ] CPUID[0x80000008]: 00003028 00000000 00000000 00000000
00000000000i[CPU3 ] cpu hardware reset
00000000000i[APIC3] allocate APIC id=3 (MMIO enabled) to 0x00000000fee00000
00000000000i[CPU3 ] CPU[3] is an application processor. Halting until IPI.
00000000000i[CPU3 ] CPUID[0x00000000]: 0000000d 756e6547 6c65746e 49656e69
00000000000i[CPU3 ] CPUID[0x00000001]: 000306a9 03010800 379ae3bf bfebfbff
00000000000i[CPU3 ] CPUID[0x00000002]: 76035a01 00f0b2ff 00000000 00ca0000
00000000000i[CPU3 ] CPUID[0x00000003]: 00000000 00000000 00000000 00000000
00000000000i[CPU3 ] CPUID[0x00000004]: 1c004121 01c0003f 0000003f 00000000
00000000000i[CPU3 ] CPUID[0x00000005]: 00000040 00000040 00000003 00001120
00000000000i[CPU3 ] CPUID[0x00000006]: 00000077 00000002 00000009 00000000
00000000000i[CPU3 ] CPUID[0x00000007]: 00000000 00000281 00000000 00000000
00000000000i[CPU3 ] CPUID[0x00000008]: 00000000 00000000 00000000 00000000
00000000000i[CPU3 ] CPUID[0x00000009]: 00000000 00000000 00000000 00000000
00000000000i[CPU3 ] WARNING: Architectural Performance Monitoring is not implemented
00000000000i[CPU3 ] CPUID[0x0000000a]: 07300403 00000000 00000000 00000603
00000000000i[CPU3 ] CPUID[0x0000000b]: 00000002 00000004 00000000 00000003
00000000000i[CPU3 ] CPUID[0x0000000c]: 00000000 00000000 00000000 00000000
00000000000i[CPU3 ] CPUID[0x0000000d]: 00000007 00000240 00000340 00000000
00000000000i[CPU3 ] CPUID[0x80000000]: 80000008 00000000 00000000 00000000
00000000000i[CPU3 ] CPUID[0x80000001]: 00000000 00000000 00000001 28100000
00000000000i[CPU3 ] CPUID[0x80000002]: 20202020 49202020 6c65746e 20295228
00000000000i[CPU3 ] CPUID[0x80000003]: 65726f43 294d5428 2d376920 30373733
00000000000i[CPU3 ] CPUID[0x80000004]: 5043204b 20402055 30352e33 007a4847
00000000000i[CPU3 ] CPUID[0x80000005]: 00000000 00000000 00000000 00000000
00000000000i[CPU3 ] CPUID[0x80000006]: 00000000 00000000 01006040 00000000
00000000000i[CPU3 ] CPUID[0x80000007]: 00000000 00000000 00000000 00000100
00000000000i[CPU3 ] CPUID[0x80000008]: 00003028 00000000 00000000 00000000
00000000000i[     ] reset of 'cmos' plugin device by virtual method
00000000000i[     ] reset of 'dma' plugin device by virtual method
00000000000i[     ] reset of 'pic' plugin device by virtual method
00000000000i[     ] reset of 'pit' plugin device by virtual method
00000000000i[     ] reset of 'floppy' plugin device by virtual method
00000000000i[     ] reset of 'vga' plugin device by virtual method
00000000000i[     ] reset of 'ioapic' plugin device by virtual method
00000000000i[     ] reset of 'keyboard' plugin device by virtual method
00000000000i[     ] reset of 'harddrv' plugin device by virtual method
00000000000i[     ] reset of 'unmapped' plugin device by virtual method
00000000000i[     ] reset of 'biosdev' plugin device by virtual method
00000000000i[     ] reset of 'speaker' plugin device by virtual method
00000000000e[SPEAK] Failed to open /dev/console: Permission denied
00000000000e[SPEAK] Deactivating beep on console
00000000000i[     ] reset of 'extfpuirq' plugin device by virtual method
00000000000i[     ] reset of 'parallel' plugin device by virtual method
00000000000i[     ] reset of 'serial' plugin device by virtual method
00000000040i[MEM0 ] allocate_block: block=0x0 used 0x1 of 0x200
00000009395i[BIOS ] $Revision: 11318 $ $Date: 2012-08-06 19:59:54 +0200 (Mo, 06. Aug 2012) $
00000700132i[KBD  ] reset-disable command received
00000726497i[BIOS ] Starting rombios32
00000727386i[BIOS ] Shutdown flag 0
00000728508i[BIOS ] ram_size=0x80000000
00000729369i[BIOS ] ram_end=2048MB
00000730370i[APIC1] Deliver INIT IPI
00000730370i[APIC2] Deliver INIT IPI
00000730370i[APIC3] Deliver INIT IPI
00000730370i[APIC1] Deliver Start Up IPI
00000730370i[CPU1 ] CPU 1 started up at 9F00:00000000 by APIC
00000730370i[APIC2] Deliver Start Up IPI
00000730370i[CPU2 ] CPU 2 started up at 9F00:00000000 by APIC
00000730370i[APIC3] Deliver Start Up IPI
00000730370i[CPU3 ] CPU 3 started up at 9F00:00000000 by APIC
00000730473i[CPU1 ] WARNING: HLT instruction with IF=0!
00000730473i[CPU2 ] WARNING: HLT instruction with IF=0!
00000730473i[CPU3 ] WARNING: HLT instruction with IF=0!
00001225605i[BIOS ] Found 4 cpu(s)
00001262499i[BIOS ] bios_table_addr: 0x000fa438 end=0x000fcc00
00001287034i[BIOS ] bios_table_cur_addr: 0x000fa438
00001823165i[VBIOS] VGABios $Id: vgabios.c,v 1.75 2011/10/15 14:07:21 vruppert Exp $
00001823327i[BXVGA] VBE known Display Interface b0c0
00001823383i[BXVGA] VBE known Display Interface b0c5
00001830114i[VBIOS] VBE Bios $Id: vbe.c,v 1.64 2011/07/19 18:25:05 vruppert Exp $
00013727739i[BIOS ] IDE time out
00164905130i[BIOS ] CDROM boot failure code : 0009
00165005906p[BIOS ] >>PANIC<< No bootable device.
00165008272i[CPU0 ] WARNING: HLT instruction with IF=0!
06280050000i[CD1  ] load cdrom with path=muen.iso
06280050000i[CD1  ] Opening image file as a cd.
06280050000i[HD   ] Media present in CD-ROM drive
06280050000i[HD   ] Capacity is 10342 sectors (20.20 MB)

----

Adrian-Ken Rueegsegger

unread,
Dec 5, 2014, 9:22:50 AM12/5/14
to muen...@googlegroups.com
Hello John,

On 12/05/2014 03:06 PM, John McDermott wrote:
> I already tried to compile the latest 2.6.7 on the 14.04 host and it would
> not compile, so I dropped back to the stable 2.6. I will try the latest
> Bochs again.

At least Bochs version 2.6.5 is necessary to emulate Muen since we use
advanced VT-x features that are not present in prior versions of Bochs.
So unfortunately Bochs 2.6 cannot be used.

> I have also tried compile from source stable 2.6 on the 14.10 host and make
> emulate brings up a Bochs window, via X forwarding, on my Macbook Pro
> Yosemite (woo hoo!), so Muen works with Yosemite ;-). However, there it has

Thats good to know, thanks for sharing :)

Regards,
Adrian

John McDermott

unread,
Dec 5, 2014, 9:36:47 AM12/5/14
to muen...@googlegroups.com, k...@codelabs.ch
> Hello John,
>
> On 12/05/2014 02:24 PM, John McDermott wrote:
> > Adrian,
> >
> > I am using X forwarding to do most of this, but I don't see that as being
> > the problem either. I did try both the 14.04 and 14.10 platforms directly,
> > to be sure.
> >
> > Here is the emulate.out from the 14.04 machine with the CPUID issue
> > ----
> > 00000000000i[ ] reading configuration from bochsrc
> > 00000000000p[ ] >>PANIC<< bochsrc:9: cpuid directive malformed.
> > ========================================================================
> > Bochs is exiting with the following message:
> > [ ] bochsrc:9: cpuid directive malformed.
> > ========================================================================
> > 00000000000i[CTRL ] quit_sim called with exit code 1
> > ========================================================================
> > Bochs x86 Emulator 2.6
> > Built from SVN snapshot on September 2nd, 2012
> > Compiled on Dec 4 2014 at 10:34:33
> > ========================================================================
>
> It seems that you are using Bochs version 2.6 built from source. Is it
> possible that you downloaded an older source release? Could you please
> try with the latest version found at [1]? That is the tarball I used
> successfully in my test run yesterday. Thanks.
>
> Regards,
> Adrian
>
> [1] -
> http://sourceforge.net/projects/bochs/files/bochs/2.6.7/bochs-2.6.7.tar.gz/download

Adrian,

Thanks for your help. I am making lots of progress.

I was able to build the newer (2.6.7) Bochs on the 14.10 host. When I run "make emulate" I get the same error: a nice Bochs window forwards over X to my desktop, but it hangs at "no bootable device". I also get the identical error when working directly from the desktop, so it is not a problem with X forwarding. Since this is the same error with both 2.6 and 2.6.7 Bochs, it looks like a problem other than the emulator per se? Maybe some Bochs config file needs to be twiddled? Since I cannot copy from the emulator window, the following is a hand reconstruction of the Bochs window output, which may contain minor typos:

----
Bochs BIOS - build: 07/10/14
$Revision: 12412 $ $Date: 2014-07-10 09:28:59 +0200 (Do, 10. Jul 2014) $
Options: apmbios pcibios pnpbios eltorito rombios32

ata0 master: Generic 1234 ATAPI-4 CD-Rom/DVD-Rom

Press F12 for boot menu.

Booting from CD-ROM...
20MB medium detected
CDROM boot failure code : 0009
Boot failed: could not read the boot disk

FATAL: No bootable device.

----

Here is the emulate/bochsout.txt that goes with it:

00000000000i[ ] Bochs x86 Emulator 2.6.7
00000000000i[ ] Built from SVN snapshot on November 2, 2014
00000000000i[ ] Compiled on Dec 5 2014 at 09:17:53
00000000000i[ ] System configuration
00000000000i[ ] processors: 4 (cores=1, HT threads=1)
00000000000i[ ] A20 line support: yes
00000000000i[ ] load configurable MSRs from file "msrs.def"
00000000000i[ ] IPS is set to 50000000
00000000000i[ ] CPU configuration
00000000000i[ ] SMP support: yes, quantum=16
00000000000i[ ] Using pre-defined CPU configuration: corei7_ivy_bridge_3770k
00000000000i[ ] Optimization configuration
00000000000i[ ] RepeatSpeedups support: no
00000000000i[ ] Fast function calls: no
00000000000i[ ] Handlers Chaining speedups: no
00000000000i[ ] Devices configuration
00000000000i[ ] NE2000 support: no
00000000000i[ ] PCI support: yes, enabled=yes
00000000000i[ ] SB16 support: no
00000000000i[ ] USB support: no
00000000000i[ ] VGA extension support: vbe
00000000000i[MEM0 ] allocated memory at 0x7fc963515010. after alignment, vector=0x7fc963516000
00000000000i[MEM0 ] 2048.00MB
00000000000i[MEM0 ] mem block size = 0x00100000, blocks=2048
00000000000i[MEM0 ] rom at 0xfffe0000/131072 ('/usr/local/share/bochs/BIOS-bochs-latest')
00000000000i[CPU0 ] WARNING: RDRAND would not produce true random numbers !
00000000000i[CPU1 ] WARNING: RDRAND would not produce true random numbers !
00000000000i[CPU2 ] WARNING: RDRAND would not produce true random numbers !
00000000000i[CPU3 ] WARNING: RDRAND would not produce true random numbers !
00000000000i[PLUGIN] init_dev of 'pci' plugin device by virtual method
00000000000i[DEV ] i440FX PMC present at device 0, function 0
00000000000i[PLUGIN] init_dev of 'pci2isa' plugin device by virtual method
00000000000i[DEV ] PIIX3 PCI-to-ISA bridge present at device 1, function 0
00000000000i[PLUGIN] init_dev of 'cmos' plugin device by virtual method
00000000000i[CMOS ] Using local time for initial clock
00000000000i[CMOS ] Setting initial clock to: Fri Dec 5 09:19:10 2014 (time0=1417789150)
00000000000i[PLUGIN] init_dev of 'dma' plugin device by virtual method
00000000000i[DMA ] channel 4 used by cascade
00000000000i[PLUGIN] init_dev of 'pic' plugin device by virtual method
00000000000i[PLUGIN] init_dev of 'pit' plugin device by virtual method
00000000000i[PLUGIN] init_dev of 'vga' plugin device by virtual method
00000000000i[MEM0 ] Register memory access handlers: 0x0000000a0000 - 0x0000000bffff
00000000000i[VGA ] interval=200000
00000000000i[MEM0 ] Register memory access handlers: 0x0000e0000000 - 0x0000e0ffffff
00000000000i[BXVGA ] VBE Bochs Display Extension Enabled
00000000000i[MEM0 ] rom at 0xc0000/41472 ('/usr/local/share/bochs/VGABIOS-lgpl-latest')
00000000000i[PLUGIN] init_dev of 'floppy' plugin device by virtual method
00000000000i[DMA ] channel 2 used by Floppy Drive
00000000000i[PLUGIN] init_dev of 'acpi' plugin device by virtual method
00000000000i[DEV ] ACPI Controller present at device 1, function 3
00000000000i[PLUGIN] init_dev of 'ioapic' plugin device by virtual method
00000000000i[IOAPIC] initializing I/O APIC
00000000000i[MEM0 ] Register memory access handlers: 0x0000fec00000 - 0x0000fec00fff
00000000000i[IOAPIC] IOAPIC enabled (base address = 0xfec00000)
00000000000i[PLUGIN] init_dev of 'keyboard' plugin device by virtual method
00000000000i[KBD ] will paste characters every 400 keyboard ticks
00000000000i[PLUGIN] init_dev of 'harddrv' plugin device by virtual method
00000000000i[HD ] CD on ata0-0: 'muen.iso'
00000000000i[CD1 ] load cdrom with path='muen.iso'
00000000000i[CD1 ] Opening image file as a cd.
00000000000i[HD ] Media present in CD-ROM drive
00000000000i[HD ] Capacity is 10342 sectors (20.20 MB)
00000000000i[HD ] Using boot sequence cdrom, none, none
00000000000i[HD ] Floppy boot signature check is enabled
00000000000i[PLUGIN] init_dev of 'pci_ide' plugin device by virtual method
00000000000i[DEV ] PIIX3 PCI IDE controller present at device 1, function 1
00000000000i[PLUGIN] init_dev of 'unmapped' plugin device by virtual method
00000000000i[PLUGIN] init_dev of 'biosdev' plugin device by virtual method
00000000000i[PLUGIN] init_dev of 'speaker' plugin device by virtual method
00000000000e[PCSPK ] Failed to open /dev/console: Permission denied
00000000000e[PCSPK ] Deactivating beep on console
00000000000i[PLUGIN] init_dev of 'extfpuirq' plugin device by virtual method
00000000000i[PLUGIN] init_dev of 'parallel' plugin device by virtual method
00000000000i[PAR ] parallel port 1 at 0x0378 irq 7
00000000000i[PLUGIN] init_dev of 'serial' plugin device by virtual method
00000000000i[SER ] com1 at 0x03f8 irq 4 (mode: file)
00000000000i[PLUGIN] register state of 'pci' plugin device by virtual method
00000000000i[PLUGIN] register state of 'pci2isa' plugin device by virtual method
00000000000i[PLUGIN] register state of 'cmos' plugin device by virtual method
00000000000i[PLUGIN] register state of 'dma' plugin device by virtual method
00000000000i[PLUGIN] register state of 'pic' plugin device by virtual method
00000000000i[PLUGIN] register state of 'pit' plugin device by virtual method
00000000000i[PLUGIN] register state of 'vga' plugin device by virtual method
00000000000i[PLUGIN] register state of 'floppy' plugin device by virtual method
00000000000i[PLUGIN] register state of 'unmapped' plugin device by virtual method
00000000000i[PLUGIN] register state of 'biosdev' plugin device by virtual method
00000000000i[PLUGIN] register state of 'speaker' plugin device by virtual method
00000000000i[PLUGIN] register state of 'extfpuirq' plugin device by virtual method
00000000000i[PLUGIN] register state of 'parallel' plugin device by virtual method
00000000000i[PLUGIN] register state of 'serial' plugin device by virtual method
00000000000i[PLUGIN] register state of 'acpi' plugin device by virtual method
00000000000i[PLUGIN] register state of 'ioapic' plugin device by virtual method
00000000000i[PLUGIN] register state of 'keyboard' plugin device by virtual method
00000000000i[PLUGIN] register state of 'harddrv' plugin device by virtual method
00000000000i[PLUGIN] register state of 'pci_ide' plugin device by virtual method
00000000000i[SYS ] bx_pc_system_c::Reset(HARDWARE) called
00000000000i[CPU0 ] cpu hardware reset
00000000000i[APIC0 ] allocate APIC id=0 (MMIO enabled) to 0x0000fee00000
00000000000i[CPU0 ] CPU[0] is the bootstrap processor
00000000000i[CPU0 ] CPUID[0x00000000]: 0000000d 756e6547 6c65746e 49656e69
00000000000i[CPU0 ] CPUID[0x00000001]: 000306a9 00010800 77bae3bf bfebfbff
00000000000i[CPU0 ] CPUID[0x00000002]: 76035a01 00f0b2ff 00000000 00ca0000
00000000000i[CPU0 ] CPUID[0x00000003]: 00000000 00000000 00000000 00000000
00000000000i[CPU0 ] CPUID[0x00000004]: 1c004121 01c0003f 0000003f 00000000
00000000000i[CPU0 ] CPUID[0x00000005]: 00000040 00000040 00000003 00001120
00000000000i[CPU0 ] CPUID[0x00000006]: 00000077 00000002 00000009 00000000
00000000000i[CPU0 ] CPUID[0x00000007]: 00000000 00000281 00000000 00000000
00000000000i[CPU0 ] CPUID[0x00000008]: 00000000 00000000 00000000 00000000
00000000000i[CPU0 ] CPUID[0x00000009]: 00000000 00000000 00000000 00000000
00000000000i[CPU0 ] WARNING: Architectural Performance Monitoring is not implemented
00000000000i[CPU0 ] CPUID[0x0000000a]: 07300403 00000000 00000000 00000603
00000000000i[CPU0 ] CPUID[0x0000000b]: 00000002 00000004 00000000 00000000
00000000000i[CPU0 ] CPUID[0x0000000c]: 00000000 00000000 00000000 00000000
00000000000i[CPU0 ] CPUID[0x0000000d]: 00000007 00000240 00000340 00000000
00000000000i[CPU1 ] cpu hardware reset
00000000000i[APIC1 ] allocate APIC id=1 (MMIO enabled) to 0x0000fee00000
00000000000i[CPU1 ] CPU[1] is an application processor. Halting until SIPI.
00000000000i[CPU1 ] CPUID[0x00000000]: 0000000d 756e6547 6c65746e 49656e69
00000000000i[CPU1 ] CPUID[0x00000001]: 000306a9 01010800 77bae3bf bfebfbff
00000000000i[CPU1 ] CPUID[0x00000002]: 76035a01 00f0b2ff 00000000 00ca0000
00000000000i[CPU1 ] CPUID[0x00000003]: 00000000 00000000 00000000 00000000
00000000000i[CPU1 ] CPUID[0x00000004]: 1c004121 01c0003f 0000003f 00000000
00000000000i[CPU1 ] CPUID[0x00000005]: 00000040 00000040 00000003 00001120
00000000000i[CPU1 ] CPUID[0x00000006]: 00000077 00000002 00000009 00000000
00000000000i[CPU1 ] CPUID[0x00000007]: 00000000 00000281 00000000 00000000
00000000000i[CPU1 ] CPUID[0x00000008]: 00000000 00000000 00000000 00000000
00000000000i[CPU1 ] CPUID[0x00000009]: 00000000 00000000 00000000 00000000
00000000000i[CPU1 ] WARNING: Architectural Performance Monitoring is not implemented
00000000000i[CPU1 ] CPUID[0x0000000a]: 07300403 00000000 00000000 00000603
00000000000i[CPU1 ] CPUID[0x0000000b]: 00000002 00000004 00000000 00000001
00000000000i[CPU1 ] CPUID[0x0000000c]: 00000000 00000000 00000000 00000000
00000000000i[CPU1 ] CPUID[0x0000000d]: 00000007 00000240 00000340 00000000
00000000000i[CPU2 ] cpu hardware reset
00000000000i[APIC2 ] allocate APIC id=2 (MMIO enabled) to 0x0000fee00000
00000000000i[CPU2 ] CPU[2] is an application processor. Halting until SIPI.
00000000000i[CPU2 ] CPUID[0x00000000]: 0000000d 756e6547 6c65746e 49656e69
00000000000i[CPU2 ] CPUID[0x00000001]: 000306a9 02010800 77bae3bf bfebfbff
00000000000i[CPU2 ] CPUID[0x00000002]: 76035a01 00f0b2ff 00000000 00ca0000
00000000000i[CPU2 ] CPUID[0x00000003]: 00000000 00000000 00000000 00000000
00000000000i[CPU2 ] CPUID[0x00000004]: 1c004121 01c0003f 0000003f 00000000
00000000000i[CPU2 ] CPUID[0x00000005]: 00000040 00000040 00000003 00001120
00000000000i[CPU2 ] CPUID[0x00000006]: 00000077 00000002 00000009 00000000
00000000000i[CPU2 ] CPUID[0x00000007]: 00000000 00000281 00000000 00000000
00000000000i[CPU2 ] CPUID[0x00000008]: 00000000 00000000 00000000 00000000
00000000000i[CPU2 ] CPUID[0x00000009]: 00000000 00000000 00000000 00000000
00000000000i[CPU2 ] WARNING: Architectural Performance Monitoring is not implemented
00000000000i[CPU2 ] CPUID[0x0000000a]: 07300403 00000000 00000000 00000603
00000000000i[CPU2 ] CPUID[0x0000000b]: 00000002 00000004 00000000 00000002
00000000000i[CPU2 ] CPUID[0x0000000c]: 00000000 00000000 00000000 00000000
00000000000i[CPU2 ] CPUID[0x0000000d]: 00000007 00000240 00000340 00000000
00000000000i[CPU3 ] cpu hardware reset
00000000000i[APIC3 ] allocate APIC id=3 (MMIO enabled) to 0x0000fee00000
00000000000i[CPU3 ] CPU[3] is an application processor. Halting until SIPI.
00000000000i[CPU3 ] CPUID[0x00000000]: 0000000d 756e6547 6c65746e 49656e69
00000000000i[CPU3 ] CPUID[0x00000001]: 000306a9 03010800 77bae3bf bfebfbff
00000000000i[CPU3 ] CPUID[0x00000002]: 76035a01 00f0b2ff 00000000 00ca0000
00000000000i[CPU3 ] CPUID[0x00000003]: 00000000 00000000 00000000 00000000
00000000000i[CPU3 ] CPUID[0x00000004]: 1c004121 01c0003f 0000003f 00000000
00000000000i[CPU3 ] CPUID[0x00000005]: 00000040 00000040 00000003 00001120
00000000000i[CPU3 ] CPUID[0x00000006]: 00000077 00000002 00000009 00000000
00000000000i[CPU3 ] CPUID[0x00000007]: 00000000 00000281 00000000 00000000
00000000000i[CPU3 ] CPUID[0x00000008]: 00000000 00000000 00000000 00000000
00000000000i[CPU3 ] CPUID[0x00000009]: 00000000 00000000 00000000 00000000
00000000000i[CPU3 ] WARNING: Architectural Performance Monitoring is not implemented
00000000000i[CPU3 ] CPUID[0x0000000a]: 07300403 00000000 00000000 00000603
00000000000i[CPU3 ] CPUID[0x0000000b]: 00000002 00000004 00000000 00000003
00000000000i[CPU3 ] CPUID[0x0000000c]: 00000000 00000000 00000000 00000000
00000000000i[CPU3 ] CPUID[0x0000000d]: 00000007 00000240 00000340 00000000
00000000000i[PLUGIN] reset of 'pci' plugin device by virtual method
00000000000i[PLUGIN] reset of 'pci2isa' plugin device by virtual method
00000000000i[PLUGIN] reset of 'cmos' plugin device by virtual method
00000000000i[PLUGIN] reset of 'dma' plugin device by virtual method
00000000000i[PLUGIN] reset of 'pic' plugin device by virtual method
00000000000i[PLUGIN] reset of 'pit' plugin device by virtual method
00000000000i[PLUGIN] reset of 'vga' plugin device by virtual method
00000000000i[PLUGIN] reset of 'floppy' plugin device by virtual method
00000000000i[PLUGIN] reset of 'acpi' plugin device by virtual method
00000000000i[PLUGIN] reset of 'ioapic' plugin device by virtual method
00000000000i[PLUGIN] reset of 'keyboard' plugin device by virtual method
00000000000i[PLUGIN] reset of 'harddrv' plugin device by virtual method
00000000000i[PLUGIN] reset of 'pci_ide' plugin device by virtual method
00000000000i[PLUGIN] reset of 'unmapped' plugin device by virtual method
00000000000i[PLUGIN] reset of 'biosdev' plugin device by virtual method
00000000000i[PLUGIN] reset of 'speaker' plugin device by virtual method
00000000000i[PLUGIN] reset of 'extfpuirq' plugin device by virtual method
00000000000i[PLUGIN] reset of 'parallel' plugin device by virtual method
00000000000i[PLUGIN] reset of 'serial' plugin device by virtual method
00000009395i[BIOS ] $Revision: 12412 $ $Date: 2014-07-10 09:28:59 +0200 (Do, 10. Jul 2014) $
00000700137i[KBD ] reset-disable command received
00000726477i[BIOS ] Starting rombios32
00000727379i[BIOS ] Shutdown flag 0
00000728487i[BIOS ] ram_size=0x80000000
00000729335i[BIOS ] ram_end=2048MB
00000730448i[APIC1 ] Deliver INIT IPI
00000730448i[APIC2 ] Deliver INIT IPI
00000730448i[APIC3 ] Deliver INIT IPI
00000730448i[APIC1 ] Deliver Start Up IPI
00000730448i[CPU1 ] CPU 1 started up at 9F00:00000000 by APIC
00000730448i[APIC2 ] Deliver Start Up IPI
00000730448i[CPU2 ] CPU 2 started up at 9F00:00000000 by APIC
00000730448i[APIC3 ] Deliver Start Up IPI
00000730448i[CPU3 ] CPU 3 started up at 9F00:00000000 by APIC
00000730611i[CPU1 ] WARNING: HLT instruction with IF=0!
00000730611i[CPU2 ] WARNING: HLT instruction with IF=0!
00000730611i[CPU3 ] WARNING: HLT instruction with IF=0!
00001225590i[BIOS ] Found 4 cpu(s)
00001262525i[BIOS ] bios_table_addr: 0x000fa498 end=0x000fcc00
00002131026i[PCI ] i440FX PMC write to PAM register 59 (TLB Flush)
00002999763i[P2ISA ] PCI IRQ routing: PIRQA# set to 0x0b
00002999777i[P2ISA ] PCI IRQ routing: PIRQB# set to 0x09
00002999794i[P2ISA ] PCI IRQ routing: PIRQC# set to 0x0b
00002999811i[P2ISA ] PCI IRQ routing: PIRQD# set to 0x09
00002999829i[P2ISA ] write: ELCR2 = 0x0a
00003001377i[BIOS ] PIIX3/PIIX4 init: elcr=00 0a
00003012717i[BIOS ] PCI: bus=0 devfn=0x00: vendor_id=0x8086 device_id=0x1237 class=0x0600
00003017019i[BIOS ] PCI: bus=0 devfn=0x08: vendor_id=0x8086 device_id=0x7000 class=0x0601
00003021113i[BIOS ] PCI: bus=0 devfn=0x09: vendor_id=0x8086 device_id=0x7010 class=0x0101
00003021382i[PIDE ] new BM-DMA address: 0xc000
00003022583i[BIOS ] region 4: 0x0000c000
00003026595i[BIOS ] PCI: bus=0 devfn=0x0b: vendor_id=0x8086 device_id=0x7113 class=0x0680
00003026905i[ACPI ] new irq line = 11
00003026918i[ACPI ] new irq line = 9
00003026947i[ACPI ] new PM base address: 0xb000
00003026963i[ACPI ] new SM base address: 0xb100
00003026995i[PCI ] setting SMRAM control register to 0x4a
00003461789i[CPU0 ] Enter to System Management Mode
00003461789i[CPU0 ] enter_system_management_mode: temporary disable VMX while in SMM mode
00003461802i[CPU0 ] RSM: Resuming from System Management Mode
00003896406i[PCI ] setting SMRAM control register to 0x0a
00003919311i[BIOS ] MP table addr=0x000fa5b0 MPC table addr=0x000fa4a0 size=0x104
00003923396i[BIOS ] SMBIOS table addr=0x000fa5c0
00003928536i[BIOS ] ACPI tables: RSDP addr=0x000fa760 ACPI DATA addr=0x7fff0000 size=0xfb2
00003936700i[BIOS ] Firmware waking vector 0x7fff00cc
00003939885i[PCI ] i440FX PMC write to PAM register 59 (TLB Flush)
00003941362i[BIOS ] bios_table_cur_addr: 0x000fa784
00004477493i[VBIOS ] VGABios $Id: vgabios.c,v 1.76 2013/02/10 08:07:03 vruppert Exp $
00004477643i[BXVGA ] VBE known Display Interface b0c0
00004477699i[BXVGA ] VBE known Display Interface b0c5
00004484430i[VBIOS ] VBE Bios $Id: vbe.c,v 1.65 2014/07/08 18:02:25 vruppert Exp $
00016394845i[BIOS ] IDE time out
00169485128i[BIOS ] CDROM boot failure code : 0009
00169586708p[BIOS ] >>PANIC<< No bootable device.
00169589075i[CPU0 ] WARNING: HLT instruction with IF=0!



What is the formal meaning of the one-line program
#include "/dev/tty"

Adrian-Ken Rueegsegger

unread,
Dec 5, 2014, 10:08:25 AM12/5/14
to John McDermott, muen...@googlegroups.com
Hello John,

On 12/05/2014 03:36 PM, John McDermott wrote:
> I was able to build the newer (2.6.7) Bochs on the 14.10 host. When I run "make emulate" I get the same error: a nice Bochs window forwards over X to my desktop, but it hangs at "no bootable device". I also get the identical error when working directly from the desktop, so it is not a problem with X forwarding. Since this is the same error with both 2.6 and 2.6.7 Bochs, it looks like a problem other than the emulator per se? Maybe some Bochs config file needs to be twiddled? Since I cannot copy from the emulator window, the following is a hand reconstruction of the Bochs window output, which may contain minor typos:

Can you go into the emulate directory and rebuild the ISO image like so?

$ cd emulate
$ make clean
$ make

Is an error message output on the command line when creating the ISO?

Also to better understand where the differences are between your
environment and my setup: are you running a 32-bit or 64-bit (x86_64)
version of Ubuntu 14.10?

> ----
> Bochs BIOS - build: 07/10/14
> $Revision: 12412 $ $Date: 2014-07-10 09:28:59 +0200 (Do, 10. Jul 2014) $
> Options: apmbios pcibios pnpbios eltorito rombios32
>
> ata0 master: Generic 1234 ATAPI-4 CD-Rom/DVD-Rom
>
> Press F12 for boot menu.
>
> Booting from CD-ROM...
> 20MB medium detected
> CDROM boot failure code : 0009
> Boot failed: could not read the boot disk
>
> FATAL: No bootable device.

According to [1] the error code means that the El-Torito boot catalog
specifies a bad platform. So I suspect there is an issue during the
assembly of the ISO image that is used for emulation.

Regards,
Adrian

[1] - http://bochs.sourceforge.net/doc/docbook/user/bios-tips.html

John McDermott

unread,
Dec 5, 2014, 10:20:11 AM12/5/14
to Adrian-Ken Rueegsegger, muen...@googlegroups.com

> On Dec 5, 2014, at 10:08, Adrian-Ken Rueegsegger <k...@codelabs.ch> wrote:
>
> Can you go into the emulate directory and rebuild the ISO image like so?
>
> $ cd emulate
> $ make clean
> $ make
>
> Is an error message output on the command line when creating the ISO?
>
> Also to better understand where the differences are between your
> environment and my setup: are you running a 32-bit or 64-bit (x86_64)
> version of Ubuntu 14.10?

Adrian,

Host is x86_64
--------------

mc@host:~/nrl-muen/muen/emulate$ uname -a
Linux xenpro5 3.16.0-25-generic #33-Ubuntu SMP Tue Nov 4 12:06:54 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
mc@host:~/nrl-muen/muen/emulate$

No error on rebuilding ISO, same error on Bochs
-----------------------------------------------

I rebuilt the ISO and it gave this output; launched the emulator successfully; but still gives the "bad platform" error.

(Don't be too concerned. I have a gift for breaking things just by touching them. I once broke an NSA security device that had a guest visitor keypad code of "0000". I just typed in 0000 and it froze, with security guards coming out of the woodwork. It's one reason I work in security.)
----
output:

mc@host:~/nrl-muen/muen$ cd emulate
mc@host:~/nrl-muen/muen/emulate$ make clean
mc@host:~/nrl-muen/muen/emulate$ make
xorriso 1.3.2 : RockRidge filesystem manipulator, libburnia project.

Drive current: -outdev 'stdio:muen.iso'
Media current: stdio file, overwriteable
Media status : is blank
Media summary: 0 sessions, 0 data blocks, 0 data, 186g free
Added to ISO image: directory '/'='/tmp/grub.YieCwM'
xorriso : UPDATE : 277 files added in 1 seconds
Added to ISO image: file '/boot/grub/grub.cfg'='/home/mc/nrl-muen/muen/emulate/grub.cfg'
Added to ISO image: file '/boot/kernel.bin'='/home/mc/nrl-muen/muen/pack/obj/muen.img'
xorriso : UPDATE : 279 files added in 1 seconds
ISO image produced: 10342 sectors
Written to medium : 10342 sectors at LBA 0
Writing to 'stdio:muen.iso' completed successfully.

mc@host:~/nrl-muen/muen/emulate$

The emulator error output is the same.

Sincerely,

John

----

Adrian-Ken Rueegsegger

unread,
Dec 5, 2014, 10:31:44 AM12/5/14
to John McDermott, muen...@googlegroups.com
Hello John,

On 12/05/2014 04:20 PM, John McDermott wrote:
> No error on rebuilding ISO, same error on Bochs
> -----------------------------------------------
>
> I rebuilt the ISO and it gave this output; launched the emulator successfully; but still gives the "bad platform" error.

Can you provide me with the grub version that is installed on your system?

$ grub-mkrescue -V
$ dpkg -l | grep grub

Thanks.

Regards,
Adrian

John McDermott

unread,
Dec 5, 2014, 10:35:31 AM12/5/14
to Adrian-Ken Rueegsegger, muen...@googlegroups.com

> On Dec 5, 2014, at 10:08, Adrian-Ken Rueegsegger <k...@codelabs.ch> wrote:
>
> Also to better understand where the differences are between your
> environment and my setup: are you running a 32-bit or 64-bit (x86_64)
> version of Ubuntu 14.10?

Adrian,

My target host has an MSDOS partition for EFI boot, as in /dev/sda1 mounts as /boot/efi, but the rest of /boot is ext4? I don't understand where the ISO file is located. Would the ISO file be worth posting?

root@host:/boot# mount
/dev/sda2 on / type ext4 (rw,errors=remount-ro)
proc on /proc type proc (rw,nodev,noexec,nosuid)
sysfs on /sys type sysfs (rw,nodev,noexec,nosuid)
none on /sys/fs/cgroup type tmpfs (rw,uid=0,gid=0,mode=0755,size=1024)
none on /sys/fs/fuse/connections type fusectl (rw)
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/security type securityfs (rw)
none on /sys/firmware/efi/efivars type efivarfs (rw)
udev on /dev type devtmpfs (rw,mode=0755)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
tmpfs on /run type tmpfs (rw,noexec,nosuid,size=10%,mode=0755)
none on /run/lock type tmpfs (rw,nodev,noexec,nosuid,size=5242880)
none on /run/shm type tmpfs (rw,nosuid,nodev)
none on /run/user type tmpfs (rw,nodev,noexec,nosuid,size=104857600,mode=0755)
none on /sys/fs/pstore type pstore (rw)
/dev/sda1 on /boot/efi type vfat (rw)
rpc_pipefs on /run/rpc_pipefs type rpc_pipefs (rw)
systemd on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,noexec,nodev,none,name=systemd)
gvfsd-fuse on /run/user/1000/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,user=mc)
root@host:/boot#

Sincerely,

John

Adrian-Ken Rueegsegger

unread,
Dec 5, 2014, 10:39:49 AM12/5/14
to John McDermott, muen...@googlegroups.com
Hi John,

On 12/05/2014 04:35 PM, John McDermott wrote:
>
>> On Dec 5, 2014, at 10:08, Adrian-Ken Rueegsegger <k...@codelabs.ch> wrote:
>>
>> Also to better understand where the differences are between your
>> environment and my setup: are you running a 32-bit or 64-bit (x86_64)
>> version of Ubuntu 14.10?
>
> Adrian,
>
> My target host has an MSDOS partition for EFI boot, as in /dev/sda1 mounts as /boot/efi, but the rest of /boot is ext4? I don't understand where the ISO file is located. Would the ISO file be worth posting?

I suspected that you are running an EFI system so I did a quick check on
my Ubuntu 14.10. I can reproduce your error. Can you install the
grub-pc-bin package an try again?

$ sudo apt-get install grub-pc-bin

That should hopefully get you a correct ISO image that is bootable in Bochs.

Regards,
Adrian

John McDermott

unread,
Dec 5, 2014, 10:56:26 AM12/5/14
to Adrian-Ken Rueegsegger, muen...@googlegroups.com
Adrian,

mc@host:~/nrl-muen/muen/emulate$ grub-mkrescue -V
grub-mkrescue (GRUB) 2.02~beta2-15
mc@host:~/nrl-muen/muen/emulate$ dpkg -l | grep grub
ii grub-common 2.02~beta2-15 amd64 GRand Unified Bootloader (common files)
ii grub-efi-amd64 2.02~beta2-15 amd64 GRand Unified Bootloader, version 2 (EFI-AMD64 version)
ii grub-efi-amd64-bin 2.02~beta2-15 amd64 GRand Unified Bootloader, version 2 (EFI-AMD64 binaries)
ii grub-efi-amd64-signed 1.38+2.02~beta2-15 amd64 GRand Unified Bootloader, version 2 (EFI-AMD64 version, signed)
ii grub2-common 2.02~beta2-15 amd64 GRand Unified Bootloader (common files for version 2)
mc@host:~/nrl-muen/muen/emulate$

I also tried cleaning out /tmp and remaking the ISO, but I got the same error.

Sincerely,

John

John McDermott

unread,
Dec 5, 2014, 11:00:22 AM12/5/14
to Adrian-Ken Rueegsegger, muen...@googlegroups.com

> On Dec 5, 2014, at 10:39, Adrian-Ken Rueegsegger <k...@codelabs.ch> wrote:
>
>> <snip>

>> Adrian,
>>
>> My target host has an MSDOS partition for EFI boot, as in /dev/sda1 mounts as /boot/efi, but the rest of /boot is ext4? I don't understand where the ISO file is located. Would the ISO file be worth posting?
>
> I suspected that you are running an EFI system so I did a quick check on
> my Ubuntu 14.10. I can reproduce your error. Can you install the
> grub-pc-bin package an try again?
>
> $ sudo apt-get install grub-pc-bin
>
> That should hopefully get you a correct ISO image that is bootable in Bochs.
>
> Regards,
> Adrian
Adrian,

It boots all the way. I see NIC Linux at the top and no output from the terminal.

John McDermott

unread,
Dec 5, 2014, 11:10:23 AM12/5/14
to Adrian-Ken Rueegsegger, muen...@googlegroups.com
Adrian,

I am seeing VMFAIL and halted CPUs in the tail of the bochsout.txt file.

Sincerely,

John

bochsout.txt

Adrian-Ken Rueegsegger

unread,
Dec 5, 2014, 11:22:36 AM12/5/14
to John McDermott, muen...@googlegroups.com
Hello John,

On 12/05/2014 05:10 PM, John McDermott wrote:
> Adrian,
>
> I am seeing VMFAIL and halted CPUs in the tail of the bochsout.txt file.

The VMFAIL Bochs message is expected and does not represent an error. Do
the Linux subjects in the demo system boot to the prompt? Can you switch
between the NIC and USB Linux subject using the F1 and F2 keys?

The serial.out file provides additional debug information for the
running system. If the kernel encounters an issue it will be logged to
this file.

Regards,
Adrian

John McDermott

unread,
Dec 5, 2014, 11:30:01 AM12/5/14
to Adrian-Ken Rueegsegger, muen...@googlegroups.com
Adrian,

I have no prompt, just a blank screen without even a cursor. I can switch between the NIC and USB Linux, in the sense that pressing F1 and F2 changes the display bar at the top of the window. No other keyboard key produces any effect. File serial.out has this, which looks like the response to keys F1 and F2:

mc@host:~/nrl-muen/muen/emulate$ tail serial.out
0001|Switching to VT 02
---
0001|Switching to VT 01
---
0001|Switching to VT 02
---
0001|Switching to VT 01
---
0001|Switching to VT 02

I will poke around some more, just to learn what I can.

John McDermott

unread,
Dec 5, 2014, 1:10:02 PM12/5/14
to muen...@googlegroups.com, Adrian-Ken Rueegsegger
Muen Developers,

Just an FYI on the thread: after upgrading all packages on the Ubuntu 14.04 host, the older one with BIOS boot firmware, I was able to get make emulate to work as advertised, using Bochs 2.6.7 compiled from source. I noticed that the Bochs tarball that I used the first time, the one that would not compile on my Ubuntu 14.04, was not the same tarball that Adrian pointed me to. Not sure why, but the tarball from his link does compile and Muen runs just fine.

Sincerely,

John

----

Adrian-Ken Rueegsegger

unread,
Dec 5, 2014, 1:13:28 PM12/5/14
to John McDermott, muen...@googlegroups.com
Hello John,

On 12/05/2014 07:09 PM, John McDermott wrote:
> Muen Developers,
>
> Just an FYI on the thread: after upgrading all packages on the Ubuntu 14.04 host, the older one with BIOS boot firmware, I was able to get make emulate to work as advertised, using Bochs 2.6.7 compiled from source. I noticed that the Bochs tarball that I used the first time, the one that would not compile on my Ubuntu 14.04, was not the same tarball that Adrian pointed me to. Not sure why, but the tarball from his link does compile and Muen runs just fine.

Thanks for reporting your success. We will tweak the documentation and
add grub-pc-bin to the list of packages to install.

Regards,
Adrian
Reply all
Reply to author
Forward
0 new messages