[okl4-developer] Developer Digest, Vol 6, Issue 2
고원석
magicyaba at gmail.com
Mon Sep 3 16:28:36 EST 2007
Hi ..
I tried to port L4 to PXA270 board(called KMU board), and I success..
This is my configuration
1. modified ./tools/machine.py
class kmu(pxa):
virtual = False
timer_driver = "pxa250_timer"
uart = "FFUART"
subplatform = "pxa270"
drivers = [timer_driver] + pxa.drivers
memory = pxa.memory.copy()
memory['physical'] = [(0xa1000000L, 0xb0000000L)] //RAM CONFIGURATION
cpp_defines = pxa.cpp_defines + [("PLATFORM_PXA", 1), ("SERIAL_FFUART",
1), ("CONFIG_PXA270", 1), ("MAGICYABA", 1), ("CONFIG_RESTRICTED_VM", 1),
("CONFIG_PXA27x", 1), ("CONFIG_SUBPLAT_PXA270", 1)]
2. Create a Makefile
See the mailing list, then U get answer.
3. linux/kernel/SConscript
wombat_cflags =""
if env.machine.arch == "ia32":
linux_conf_file = "l4linux_config_ia32"
wombat_cflags += "-I../../libs/l4/arch/ia32/include "
// THIS IS MY MACHINE CONFIGURE
elif env.machine.__name__ == "kmu" or env.machine.__name__ == "kmu_hw":
linux_conf_file = "l4linux_config_kmu"
wombat_cflags = "-DENDIAN_%s " % env.machine.endian.upper()
elif env.machine.__name__ == "gumstix" or env.machine.__name__ ==
"gumstix_hw":
# linux_conf_file = "l4linux_config_gumstix"
linux_conf_file = "l4linux_config_arm"
wombat_cflags = "-DENDIAN_%s " % env.machine.endian.upper()
elif env.machine.__name__ == "kzm_arm11" or env.machine.__name__ ==
"kzm_arm11_hw":
wombat_cflags = "-DENDIAN_%s " % env.machine.endian.upper()
linux_conf_file = "l4linux_config_sa1100"
4. WOMBAT modified
PATH: linux/kernel/arch/l4/sys-arm/mach-pxa/machine(pleb2/gumstix/ibox).c
//(void) platform_add_devices(devices, ARRAY_SIZE(devices));
-----Original Message-----
From: developer-bounces at okl4.org [mailto:developer-bounces at okl4.org] On
Behalf Of developer-request at okl4.org
Sent: Monday, September 03, 2007 11:00 AM
To: developer at okl4.org
Subject: Developer Digest, Vol 6, Issue 2
Send Developer mailing list submissions to
developer at okl4.org
To subscribe or unsubscribe via the World Wide Web, visit
https://lists.okl4.org/mailman/listinfo/developer
or, via email, send a message with subject or body 'help' to
developer-request at okl4.org
You can reach the person managing the list at
developer-owner at okl4.org
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Developer digest..."
Today's Topics:
1. How to compile OKL4 for XScale PXA270? (kashin Lin)
----------------------------------------------------------------------
Message: 1
Date: Mon, 3 Sep 2007 00:09:07 +0800
From: "kashin Lin" <kashin08 at gmail.com>
Subject: [okl4-developer] How to compile OKL4 for XScale PXA270?
To: developer at okl4.org
Message-ID:
<6bd1be890709020909s4a886f92ycab11b78bdcb6c94 at mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"
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/atta
chment.html
------------------------------
_______________________________________________
Developer mailing list
Developer at okl4.org
https://lists.okl4.org/mailman/listinfo/developer
End of Developer Digest, Vol 6, Issue 2
***************************************
More information about the Developer
mailing list