All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai] Porting IPIPE to SUN5I (Allwinner A13)
@ 2013-02-13  4:08 uMinded Strikes Again
  2013-02-13  8:40 ` Gilles Chanteperdrix
  0 siblings, 1 reply; 4+ messages in thread
From: uMinded Strikes Again @ 2013-02-13  4:08 UTC (permalink / raw)
  To: xenomai

I am trying to port IPIPE to my allwinner A13 board but do not know where
to exactly start on this... I know what needs to be done but not how to do
it.

Sofar:$
cd xenomai-2.6.2.1
$ ./scripts/prepare-kernel.sh --arch=arm \

--adeos=./ksrc/arch/arm/patches/adeos-ipipe-3.0.36-arm-1.18-11.patch.fixed \
  --linux=../linux-sunxi-sunxi-v3.0.36-r1
$ cd ../linux-sunxi-sunxi-v3.0.36-r1
$ make ARCH=arm a13_defconfig
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- uImage

edit ./sunxi-xenomai/arch/arm/include/asm/xenomai/hal.h:
#elif defined(CONFIG_ARCH_SUN5I)
#warning "CONFIG_ARCH_SUN5I timers are not configured in hal.h yet!)
#define RTHAL_TIMER_DEVICE  "tmr2"
#define RTHAL_CLOCK_DEVICE "tmr2"
#else

Just to get past the #error "Unsupported ARM machine"

I can then fully compile and at the uImage linking stage I get the
undefined reference to IPIPE symbols as I expected.

I then greped around and I will use mach-at91 as an example:
../mach-at91/at91_ipipe_time.c:int __ipipe_mach_timerint =
KERNEL_TIMER_IRQ_NUM;
../mach-at91/at91_ipipe_time.c:EXPORT_SYMBOL(__ipipe_mach_timerint);

I can see that the at91 has full IPIPE support and I checked out how it
configures timers and export the chip specific functions to generic calls
for xenomai to call.

http://linux-sunxi.org/A10/TIMER#TMR_2_CTRL Is the info to the timers in
the SUN4I/SUN5I chips but I do not know how to actually use them. Should I
copy and port ALL the function from the at91_ipipe_time.c?

http://pastebin.com/tAxwTGNZ here is a dump of all the undefined symbols I
will need to port.


Any ideas where to start?

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-02-13 21:09 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-13  4:08 [Xenomai] Porting IPIPE to SUN5I (Allwinner A13) uMinded Strikes Again
2013-02-13  8:40 ` Gilles Chanteperdrix
     [not found]   ` <CAPeEhaq-oMmhntc3rYDt-e1=qEorjkVj8G+qYKcNSxOggjGH7A@mail.gmail.com>
2013-02-13 20:30     ` [Xenomai] Fwd: " uMinded Strikes Again
2013-02-13 21:09       ` Gilles Chanteperdrix

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.