Booting from different CPU

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
sebastian93921
Posts: 15
Joined: Thu Jan 12, 2012 7:44 pm

Booting from different CPU

Post 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
Rew
Member
Member
Posts: 28
Joined: Mon Oct 29, 2012 2:26 pm

Re: Booting from different CPU

Post 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.
Post Reply