> 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
> > ========================================================================
>
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"