Page 1 of 1
VBOX hardware profile
Posted: Sat Aug 20, 2011 2:47 pm
by guferr
hi, i have a ELF executable that runs on had hat linux that has been made to an specific hardware, and all that i know about this hardware is that the processor is an i686 and uses mmx, and nothing else. when i try to execute this software in other hardware its give me the message "Segmentation fault". I need to know if there's anyway to change the processor and the chipset that the VBOX emulates so i can run this software.
Thanks.
Re: VBOX hardware profile
Posted: Sat Aug 20, 2011 4:31 pm
by Yargh
"had hat" Linux? Also, VirtualBox only emulates 1 chipset, and if I remember correctly it only emulates 1 or 2 types of CPU's.
Re: VBOX hardware profile
Posted: Sat Aug 20, 2011 5:04 pm
by guferr
Sorry i was very, VERY rushed, i didn't had time to remember the name of the linux, now i realized that the name was "red hat".
Is there any other emulator that can do what i need?
Re: VBOX hardware profile
Posted: Sun Aug 21, 2011 12:41 am
by Combuster
Virtual machines don't normally emulate a CPU, they display your host's CPU as the VM's CPU. Qemu/Virtualbox may run as recompilers, in which case they do emulate processor features to the extent necessary but leave traces (my kernel registers a spoofed CPU).
Nevertheless, if the reason simply was MMX, it should run on any P2 or later out there (and the worst kind of stupidities on that area should be covered if the host shows itself as an Intel processor).
So if it deals with some old version of Red Hat and specific hardware, it's more likely to be tied to a specific kernel, its drivers and the matching hardware. Unfortunately VM's provide very limited hardware support - usually providing only the kind of hardware that is most used in real life as well.
Re: VBOX hardware profile
Posted: Sun Aug 21, 2011 11:33 am
by guferr
I'm using the original kernel in wich it came, and it's running perfectly on the original hardware, but in other hardware it's giving me the "Segmentation fault" message.
I tried to run the executable in other linux, and the message is ever the same, and i think the message has been generated by something external to the executable itself, because i decompiled it, and i didn't find the word "Segmentation" on it's data references, so i think the linux kernel may be doing it.
Re: VBOX hardware profile
Posted: Sun Aug 21, 2011 2:27 pm
by Brynet-Inc
guferr wrote: ... because i decompiled it, and i didn't find the word "Segmentation" on it's data references, so i think the linux kernel may be doing it.
What the.. I don't even..
PEBKAC.
Re: VBOX hardware profile
Posted: Sun Aug 21, 2011 8:28 pm
by guferr
Any messages generated by an program must be inside it, unless that this message have been generated by something that it calls or includes, such as drivers or libraries.
If this message wasn't generated by something external, then the message is encrypted inside the program, but i don't see reason to it to be encrypted.
Re: VBOX hardware profile
Posted: Sun Aug 21, 2011 9:26 pm
by Yargh
"Segmentation fault" is generated by the OS's exception handler. Not the program.
Re: VBOX hardware profile
Posted: Mon Aug 22, 2011 4:57 am
by Combuster
Actually,
Code: Select all
combuster@daphnis ~/dev $ cat /usr/lib64/libc.a | grep "Segmentation fault"
Binary file (standard input) matches
I do hope you know what libc is?
Re: VBOX hardware profile
Posted: Mon Aug 22, 2011 4:59 am
by Combuster
I already asked it to be tossed out of OS development. And in this case, Brynet-Inc already supplied the answer.
Re: VBOX hardware profile
Posted: Wed Aug 24, 2011 3:31 pm
by guferr
I found a way to fix the error. The error was related to something with the vga shared memory, because i put an offboard video card (what disables the shared memory) and the problem stopped.
Thanks anyway.
Obs.: This was related with OS development because i need one hardware emulator to test my OS's drivers.