Page 1 of 1

Booting from different CPU

Posted: Tue Feb 11, 2014 10:55 pm
by sebastian93921
As my operating system is built from AMD cpu
Also, I can run my operating system normally in my own PC's qemu

but, there have a little bit differences when I running in the intel's computer qemu
although the bootloader pass to kernel successfully (I can see it pass to protected mode), but when booting with the kernel, the kernel starting with shows nothing :(

Is there have any differences when booting with differences CPU?
I'm using flat binary to compile my operating system

Re: Booting from different CPU

Posted: Wed Feb 12, 2014 12:06 pm
by Rew
Without more information about what your kernel is trying to when you are running into a problem, it is really difficult to say what is wrong. That being said, it seems quite unlikely that the different processor matters. The more probable cause is that you are making an assumption about the default state of the system that happens to work for one environment, but not for another. You will probably have to debug on the intel system to find out what it is that is wrong.

You said you are using a flat binary with QEMU. I'm assuming you are using the "-kernel" option as your bootloader. It is possible that different builds of QEMU could do/not do something in the bootload stage, the same as if you were using different builds of a seperate bootloader. Or, if you are using a seperate bootloader, ensure you are using the same in both cases.