[okl4-developer] About serial and timer driver for ARM926ej-s
kashin Lin
kashin08 at gmail.com
Fri Dec 14 04:22:20 EST 2007
Hi,
i
have compiled okl4 image for arm926 successfully by doing some
modification and setting as below:
machine.py in platform/pxa/tools add :
class davinci(arm926ejs):
virtual = False
platform = "pxa"
platform_dir = "pxa"
timer_driver = "pxa250_timer"
uart = "FFUART"
subplatform = "pxa255"
drivers = [timer_driver] + xscale.drivers
device_core = "davinci"
v2_drivers = [ ("pxa250_timer", "vtimer"), ("uart_8250", "vserial"),]
skyeye = "davinci.skyeye"
memory = arm926ejs.memory.copy()
memory['physical'] = [(0x80000000L, 0x8FFFFFFFL)]
cpp_defines = arm926ejs.cpp_defines + [("PLATFORM_PXA", 1),
("SERIAL_FFUART", 1)]
run_methods = copy.copy(arm926ejs.run_methods)
in arch/arm/pistachio/cpu/arm926ejs/include/cpu.h add two line:
#include <arch/asm.h>
#define IODEVICE_VADDR IO_AREA0_VADDR
after those, i issue "./tool/build.py machine=davinci project=iguana
example=naming" to build image.
but when i load the image to my target and run, nothing happened... (no any
messages showed through uart)
i think the cause
may be the serial and timer driver, because arm926 has different memory map
from xscale.
how should i modify the serial and timer driver if i know the UART and
timer's PHY memory base and IRQ# ?
(it seems okl4 use vtimer and vserial server for above machine.py)
or i just shouldn't use "pxa250_timer" and "uart_8250" driver?
or are there anything else may cause this situation happened?
it's important to me to port okl4 to arm926ejs-base platform. i really need
some help.
any suggestions and hints will be welcome.
thanks in advance.
best regard,
kashin lin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.okl4.org/pipermail/developer/attachments/20071214/501a3cfa/attachment.htm
More information about the Developer
mailing list