On Thu Jul 05, 2007 at 23:31:38 +0800, kashin Lin wrote:
2007/7/5, Adam Lackorzynski adam@os.inf.tu-dresden.de:
On Thu Jul 05, 2007 at 00:15:15 +0800, kashin Lin wrote:
- as you metioned above, i should adapt the configuration of fiasco
to my target platform, but... (1) when do i do this? before make anything?
Not only the configuration but also the code. You probably need to write a e.g. UART driver for your platform. As I said, I don't know which UART is used on your board. Can you tell which type of UART is used there?
There is a UART (RS232 port) which can communicate with PC. how to add that UART driver in fiasco?
You need to add a new platform. Basically you can do the same thing as it's done with the integrator platform. The UART implementation goes to src/lib/uart/arm, and need to be hooked in src/kern/arm/kernel_uart-arm.cpp.
are there any other platform dependent things that need to touch the code?
Most likely. The PIC implementation goes to src/kern/arm/pic-arm.cpp, and the timer goes to src/kern/arm/timer-arm.cpp. Other files to look at are Modules.arm to specify the label to build under and probably rules.cml to add a new platform. The CPU specific things may also need adaptions.
Adam