开发者

x86 emulator for training embedded development

开发者 https://www.devze.com 2022-12-17 03:26 出处:网络
I wish to learn more about the inner working of the computer, to 开发者_Python百科enhance my knowledge about embedded system developement.

I wish to learn more about the inner working of the computer, to 开发者_Python百科enhance my knowledge about embedded system developement.

At work, I never get involved with the low-level details (such as, the GDT, the loader of the code from flash to RAM, etc) as all these are already written.

I'd rather not buy any other hardware currently. Is there an emulator, and a very simple OS, I can play with, in order to master with all those low level aspects of embedded programmimng? Is there a tutorial that can walk me through setting a very simple embedded environment (setting the memory segments, the GDT, getting to protected mode, and execute main())


The ususal suspects for x86 emulators would be Bochs and QEMU.

You might also want to take a look at James Molloy's kernel development tutorial and the resources it links to.


For our Operating Systems course we're currently using a toy OS called POTATOES. It's pretty basic and AFAIK based on James Molloy's kernel tutorials. You might have a look at it here.

In addition I can recommend the Wiki and discussion board at OSdev.org.

Edit: Some good information about the x86 architecture can be found in volume 3 of Intel's IA-32 Architectures Software Developer's manuals. Volume 1 features the basic architecture and in volume 2 you'll find a complete reference of the x86 assembly instruction set.


In embedded system development emulator has a very specific meaning; are you in fact talking about a "simulator"? But if you are developing on an x86, and instruction set simulator is unnecessary and limited when you can instead use a VM.

In fact if you wanted "a very simple embedded environment" you would not choose an x86. Bootstrapping and configuring these complex devices (and their associated chip-sets and memory) is non trivial.

If your platform is x86 then the simplest thing to do is to use a Virtual Machine running on a real x86. The most flexible and robust VM is available for free from VMWare, and another free one from Microsoft. Microsoft's Virtual PC however is optimised for running Windows, getting Linux to work on it can be troublesome, let alone some niche RTOS.


You might be better off using a real embedded machine. A development environment for an Arduino is hardy expensive, and there you get to work right down at the metal: http://www.sparkfun.com/commerce/product_info.php?products_id=9284

AVR is a reasonable start into that space, x86 isn't.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号