How to write a os for pda ?

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
Matze2002

How to write a os for pda ?

Post by Matze2002 »

Hi,
how to write a os for mips processor ? (PDA)
I have a example source Code (Windows CE).
But how can i compile it ? How can i use the source code ?

Thanks
Matze
Tim

Re:How to write a os for pda ?

Post by Tim »

Good question. I suspect that, unless you run it under an emulator, you will need to find the machine's specs before you can put your own kernel code onto it.
Matze2002

Re:How to write a os for pda ?

Post by Matze2002 »

Hi,

a friend told me about embedded Linux, is this a Linux distribution for pda ?
Is the source code free, and where can i download it ?

Matze
pskyboy

Re:How to write a os for pda ?

Post by pskyboy »

Writing an OS for a PDA should be similar to writing an OS for anything else. The first thing i suggest you do is get information on the MIPS processor ie the data sheet for the processor in the PDA you are developing for. i then suggest you find out how it boot's up. ie what it does right after boot up. I suspect on a PDA when the processor is reset it will start executing code from the location 0 in Memory.

In this sense it will be easier to build an OS for this as the processor will start up in 32 bit mode etc and you woun't have to piss about like on a PC to get in in the right mode to start making an OS.

Anyway i suspect you will be able to write straight of in C as long as you compile it to a flat binary and link it from mem address 0.

This is how i think it should work but get the data sheet and check this is actually what happens. The only reason i say what i have said is this is how other embedded processors work like the C166 series (Although that has a funny loading).

Good Luck
Peter
User avatar
Pype.Clicker
Member
Member
Posts: 5964
Joined: Wed Oct 18, 2006 2:31 am
Location: In a galaxy, far, far away
Contact:

Re:How to write a os for pda ?

Post by Pype.Clicker »

A friend of mine has written a small OS (Expresso) for a Palm ... the tricks he used were :
- the use of a PDA emulator for the very first tests
- placing his code in RAM on the PDA rather than in ROM and use a small utility to steal the control from the PalmOS and give it to Expresso
...
Post Reply