[okl4-developer] How to compile OKL4 for XScale PXA270?

kashin Lin kashin08 at gmail.com
Mon Sep 3 02:09:07 EST 2007


Hi,

i want to compile OKL4(with Wombat) for XScale-PXA270 platform.
can anyone show me what's the correct way to do this?

the following is the way i tried, but got some errors...
=====================================================
1. add following machine configuration in "machine.py"
   class ibox(pxa):
     virtual = False
     c_flags = xscale.c_flags
     timer_driver = "pxa250_timer"
     skyeye = "ibox.skyeye"
     elfloader = True
     elf_entry = 0xa2008000L
     subplatform = "pxa270"
     ramstart = 0xa0000000
     ramend = 0xa4000000
     uart = "FFUART"
     wombat_config="l4linux_config_ibox"

2. add following codes in "linux/kernel/SConscript" line 31:
    elif env.machine.__name__  ==  "ibox":
       linux_conf_file = "l4linux_config_ibox"
       wombat_cflags = "-DENDIAN_%s " % env.machine.endian.upper()
p.s. if i don't add those code, i will get "name 'linux_conf_file' is not
defined"
error, even i specify " wombat_config="l4linux_config_ibox" " in machine.py
?!

3. issue "./tools/build.py machine=ibox project=iguana wombat=True simulate"
to
   build and simulate it.
=========================================================

but i got the following errors:
[ASPP] build/pistachio/object/pistachio/arch/arm/v5/src/traps.o
[CXX ] build/pistachio/object/pistachio/platform/pxa/src/timer.o
pistachio/platform/pxa/src/timer.cc: In member function `void
timer_t::init_cpu()':
pistachio/platform/pxa/src/timer.cc:131: error: `CLKCFG_B' undeclared (first
use this function)
pistachio/platform/pxa/src/timer.cc:131: error: (Each undeclared identifier
is reported only once for each function it appears in.)
pistachio/platform/pxa/src/timer.cc:137: error: `CLKCFG_HT' undeclared
(first use this function)
pistachio/platform/pxa/src/timer.cc:141: error: `CLKCFG_T' undeclared (first
use this function)
scons: *** [build/pistachio/object/pistachio/platform/pxa/src/timer.o] Error
1
scons: building terminated because of errors.

what's wrong with those steps? or
what's the correct steps to compile OKL4 for pxa270?

p.s. i have build it for gumstix successfully, so it seems not the tool
version's problem.

Thanks for any suggestions.

Best regards
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.okl4.org/pipermail/developer/attachments/20070903/4d7bab15/attachment.htm 


More information about the Developer mailing list