In message <Pine.GSO.email@example.com> Ryan Sweet
: Is it possibl;e that you could pass along the theory about what's involved
: in writing a bootloader?thanks,
Create a WinCE program that will read in ELF binaries. Read in the
binary into virtual memory using the Win32 apis. Kick into kernel
mode[*], touch each page building a page table by looking at the tlb.
Seize total control of the processor. Copy (and this is tricky) the
pages to the right location using physical addresses using the page
table you built before. Create whatever boot args you need to pass to
the kernel. Call the boot address.
This should get you loaded. I've not solved the reboot problem (eg
how do I reboot w/o having to reconfigure wince to get to the point
that I can run this program again), nor have I actually run this
I have much of this written. I'm missing the WinCE specific parts :-)
Also, I'm still working on getting a mips-hpc-wince target for
gcc/egcs functional. I found a start on the net, but it needed a lot
of work to even build.
[*] Yes, user processes can do this on WinCE!