* [Xenomai-help] "How to Adapt ARM I-pipe patch to S3C6410" - still not solved
@ 2012-01-31 16:04 Alex Nikitenko
2012-01-31 16:20 ` Gilles Chanteperdrix
0 siblings, 1 reply; 3+ messages in thread
From: Alex Nikitenko @ 2012-01-31 16:04 UTC (permalink / raw)
To: xenomai
[-- Attachment #1: Type: text/plain, Size: 4499 bytes --]
Hi all.
I'm facing the same problem that has been already discussed some time ago.
Here is the subj.
On 12/19/2011 02:38 AM, ?? wrote:
>> I want to get the ARM I-pipe patch Adapt to S3C6410,but when I start up
>> the board,it stopped at the head.s,with no warning and notice.I find It
>> even not go to the start_kernel() function.what can I do??
>>
>What kernel version? What I-pipe version? What kernel configuration?
>Have you tried the howto?
>http://www.xenomai.org/index.php/I-pipe:ArmPorting
On 12/22/2011 03:37 AM, ?? wrote:
> The kernel version is 2.6.37.6 I-pipe patch is 2.6.0-rc4,
2.6.0-rc4 is a xenomai version, not an I-pipe version. And xenomai
2.6.0-rc4 is obsolete and superseeded by xenomai 2.6.0.
I tried the
> howto ,but I couldn't find the variables and functions in irq.c ,but
> some of the functions and variables in time.c were here because of
> the patch. I want to know whether all the function need to be add by
> myself ? because some of it exist when I patch the ipipe-patch.
> And the tip "Implementing a high-resolution counter.",I modified the
> CONFIG file and use the second way "Decrementer See s3c24xx
> implementation."
> The complie work was finished with no error. Is there any patch t
> adpat to the board?
> Thank you !
As indicated by the howto: "In the rest of this document we will call
these files time.c and irq.c, even though they may have another name for
your board. "
Anyway, irq demuxing is done differently with current versions of the
I-pipe, the howto is out of date. For each irq demux (the callbacks
registered with set_irq_chained_handler), the demux function should call
ipipe_handle_chained_irq instead of generic_handle_irq.
However, if the bug happens before start_kernel, the bug has probably
nothing to do with the modifications you made for the I-pipe. But are
you sure that the bug happens before start_kernel? Have you noted that
printk does not work as early as in start_kernel, you have to enable
early printk or use the printascii trick mentioned in the "tips and
tricks" section of the howto.
Please no private mails.
--
Gilles.
On 12/24/2011 03:10 AM, ?? wrote:
> sorry for the mistake,my ipipe-patch is
> adeos-ipipe-2.6.37.6-arm-1.18-03 ,and where can I get the new
> "HowTo" as it maybe out of date.
> As I said,I add the printascii function in the begin of
> start_kernel(),but it didn't print out ,so I believe it didn't go to
> the start_kernel. I also add the printascii function to the
> arch/arm/kernel/head.S,I found when it run to "enable the mmu" it
> stopped. I believe the .config file works well before I patch the
> xenomai .I also believe the xenomai has nothing to do with the setup
> of hardware before the kernel startup.
>
There is no updated version of the howto. But the only wrong thing is
the part about multiplexed interrupts.
You should try printascii with a non-patched kernel to verify that
printascii works for the board you use.
As for using printascii around the place where the mmu is enabled, have
you read the following comment in the kernel sources:
/*
* Enable the MMU. This completely changes the structure of the visible
* memory space. You will not be able to trace execution through this.
* If you have an enquiry about this, *please* check the linux-arm-kernel
* mailing list archives BEFORE sending another post to the list.
Anyway, as early in the boot process the I-pipe patch does not change
anything, so, your problem does not come from the I-pipe patch. Have you
tried the exact same config you use with the patched kernel with an
unpatched kernel?
--
Gilles.
The problem is that I cannot enter start_kernel() function only with
CONFIG_IPIPE enabled.
If I disable this config everything boots just fine.
I used printascii at arch/arm/kernel/head.S to trace the execution. It goes
to start_kernel() and after this it hangs. But ONLY with CONFIG_IPIPE
enabled.
I also used printk("some string") at the very begining of start_kernel().
If CONFIG_IPIPE not set - string is printed out and kernel boots.
If CONFIG_IPIPE - hang after calling start_kernel.
Printascii works well.
I used the howto but it seems to have nothing to deal with this problem.
IRQs and Timers are initialized later as I understood.
Kernel version - 2.6.36. Ipipe patch version -
adeos-ipipe-2.6.35.9-arm-1.18-
03.patch.
Any help would be appreciated.
Regards,
Alex
[-- Attachment #2: Type: text/html, Size: 5711 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [Xenomai-help] "How to Adapt ARM I-pipe patch to S3C6410" - still not solved
2012-01-31 16:04 [Xenomai-help] "How to Adapt ARM I-pipe patch to S3C6410" - still not solved Alex Nikitenko
@ 2012-01-31 16:20 ` Gilles Chanteperdrix
[not found] ` <CAJp2OCMk4tp5b5KKxBn7a2akAhbjpOamnx0StaNsohpp5c3wkQ@mail.gmail.com>
0 siblings, 1 reply; 3+ messages in thread
From: Gilles Chanteperdrix @ 2012-01-31 16:20 UTC (permalink / raw)
To: Alex Nikitenko; +Cc: xenomai
On 01/31/2012 05:04 PM, Alex Nikitenko wrote:
> Hi all.
> I'm facing the same problem that has been already discussed some time ago.
> Here is the subj.
I am sorry, but I do not understand your question. If you want to reply
an old mail, use the "reply" button, and properly quote it, bottom
posting. Otherwise it is impossible to understand what you are talking
about.
Here you top-posting, and pasting without quoting a mail of answer to
someone who has issues on ARM. So, the least you can do is reply to each
of this answer, and tell us why they do not work for you, or are not
relevant, etc... Or if the mail is not relevant, simply do not quote it.
RFC 1855 may help.
--
Gilles.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-01-31 17:44 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-31 16:04 [Xenomai-help] "How to Adapt ARM I-pipe patch to S3C6410" - still not solved Alex Nikitenko
2012-01-31 16:20 ` Gilles Chanteperdrix
[not found] ` <CAJp2OCMk4tp5b5KKxBn7a2akAhbjpOamnx0StaNsohpp5c3wkQ@mail.gmail.com>
2012-01-31 17:44 ` 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.