omap kernel does not support omap4

Bug #623077 reported by John Rigby
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Linaro Linux
Fix Released
Medium
Unassigned
linux-linaro (Ubuntu)
Invalid
Wishlist
Unassigned
linux-linaro-omap (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

The omap flavour kernel only support omap3. Turning on omap4 results in build errors.

Tags: armel
Revision history for this message
Loïc Minier (lool) wrote :

Could you paste the error log here for google juice goodness?

Thanks!

tags: added: armel
Changed in linux-linaro (Ubuntu):
importance: Undecided → Medium
Changed in linux-linaro:
importance: Undecided → Medium
Revision history for this message
Jamie Bennett (jamiebennett) wrote :

jcrigby: This bug hasn't been updated for a while. Can you provide comment on the error log and if any progress has been made on this?

Revision history for this message
John Rigby (jcrigby) wrote :

When I turn on OMAP4 in the kernel config I get an error from the assembler:

 AS arch/arm/kernel/entry-armv.o
/home/jcrigby/work/git-trees/linux-linaro/linux-linaro/arch/arm/kernel/entry-armv.S: Assembler messages:
/home/jcrigby/work/git-trees/linux-linaro/linux-linaro/arch/arm/kernel/entry-armv.S:48: Error: bad instruction `test_for_ipi r0,r6,r5,lr'
/home/jcrigby/work/git-trees/linux-linaro/linux-linaro/arch/arm/kernel/entry-armv.S:48: Error: bad instruction `test_for_ltirq r0,r6,r5,lr'
/home/jcrigby/work/git-trees/linux-linaro/linux-linaro/arch/arm/kernel/entry-armv.S:48: Error: bad instruction `test_for_ipi r0,r6,r5,lr'
/home/jcrigby/work/git-trees/linux-linaro/linux-linaro/arch/arm/kernel/entry-armv.S:48: Error: bad instruction `test_for_ltirq r0,r6,r5,lr'

Changed in linux-linaro (Ubuntu):
importance: Medium → Wishlist
Revision history for this message
John Rigby (jcrigby) wrote :

Tried kernel config form ubuntu omap4 kernel and it builds but crashes coming up:
[ 0.000000] Initializing cgroup subsys ns
[ 0.000000] Initializing cgroup subsys cpuacct
[ 0.000000] Initializing cgroup subsys memory
[ 0.000000] Initializing cgroup subsys devices
[ 0.000000] CPU: Testing write buffer coherency: ok
[ 0.000000] Unhandled fault: imprecise external abort (0x1406) at 0x2ad551a8
[ 0.000000] Internal error: : 1406 [#1] PREEMPT SMP
[ 0.000000] last sysfs file:
[ 0.000000] Modules linked in:
[ 0.000000] CPU: 0 Not tainted (2.6.35-1008-linaro-omap4 #16)
[ 0.000000] PC is at kernel_thread_helper+0x0/0x10
[ 0.000000] LR is at kernel_thread_helper+0x0/0x10
[ 0.000000] pc : [<800435c4>] lr : [<800435c4>] psr: 00000093
[ 0.000000] sp : 9c843ff8 ip : 00000000 fp : 00000000
[ 0.000000] r10: 00000000 r9 : 00000000 r8 : 00000000
[ 0.000000] r7 : 00000013 r6 : 800435d4 r5 : 8008a9d8 r4 : 00000000
[ 0.000000] r3 : 00000000 r2 : 00000000 r1 : 00000000 r0 : 00000000
[ 0.000000] Flags: nzcv IRQs off FIQs on Mode SVC_32 ISA ARM Segment kernel
[ 0.000000] Control: 10c5387f Table: 8000404a DAC: 00000015
[ 0.000000] Process swapper (pid: 2, stack limit = 0x9c8422f8)
[ 0.000000] Stack: (0x9c843ff8 to 0x9c844000)
[ 0.000000] 3fe0: efbe2ad1 02810920
[ 0.000000] [<800435c4>] (kernel_thread_helper+0x0/0x10) from [<00000000>] (0x0)
[ 0.000000] Code: 805bd3cd 805ccea9 806c45a0 805bd3d2 (e121f007)
[ 0.000000] ---[ end trace da227214a82491b7 ]---
[ 0.000000] Calibrating local timer... 491.19MHz.
[ 0.000000] L310 cache controller enabled
[ 0.000000] l2x0: 16 ways, CACHE_ID 0x410000c4, AUX_CTRL 0x0e050000

no more output after that

Revision history for this message
Loïc Minier (lool) wrote :

Anand said at Linaro@UDS that we need to backport a small number of patches to get that working; Anand, would you mind providing this list here and/or to Nicolas Pitre?

  Thanks!

Revision history for this message
Lee Jones (lag) wrote :

I don't think this can be considered one single bug.

The differences between the current working OMAP4 tree and the Linaro one is as follows:

All differences between 2.6.35..HEAD:
  http://paste.ubuntu.com/524076/
All differences within arch/arm:
  http://paste.ubuntu.com/524078/
All differences within arch/arm mentioning Panda:
  http://paste.ubuntu.com/524079/

Revision history for this message
Loïc Minier (lool) wrote :

@Lee: we're not trying to get a fully working OMAP4; something booting to a serial console would be good for us at this point in our cycle

Revision history for this message
Jamie Bennett (jamiebennett) wrote :

@Loic I think Lee understands this hence the break-down of required patches in his links above. A serial console is definitely what we are after and the 16 patches that Lee highlights in the last link are a good initial investigation point, at least 5 of which are not needed.

Revision history for this message
Loïc Minier (lool) wrote :

I think these patches are from the omap4 BSP while I think we want the mainline patches?

Revision history for this message
Jamie Bennett (jamiebennett) wrote :

Ideally yes but we need to investigate whether mainline has enough to get to a console prompt on the panda, I do not have that information at the moment but maybe John does?

Revision history for this message
Steve Sakoman (steve-sakoman) wrote :

Mainline 2.6.36 does not have enough to get to a serial console prompt on Panda.

For example: mmc support is broken.

I've started adding patches to 2.6.36 to see how far I can get, but I am hampered by a Panda with bad POP memory. This results in random segfaults. I should have a replacement Panda in the next day or two.

Patches up to this point are at:

http://www.sakoman.com/cgi-bin/gitweb.cgi?p=linux-omap-2.6.git;a=shortlog;h=refs/heads/omap-2.6.36

Note: this branch also includes overo support.

Revision history for this message
Anand Gadiyar (gadiyar) wrote : Re: [Bug 623077] Re: omap kernel does not support omap4

(Sorry for top-posting. Not sure what's the protocol on this list).

I've made sure mainline works great on OMAP4. On top of current mainline
head, we need the following two patches that are not yet in mainline.

[1] https://patchwork.kernel.org/patch/279661/
[2] https://patchwork.kernel.org/patch/294842/

Should be there by v2.6.37-rc2.

omap2plus_defconfig should be just fine. This boots up to a console
prompt on my pandaboard.

For kernel/linux-linaro-2.6.35.git, I'll cherry-pick a minimal set of patches to
get omap4 working.

- Anand

On Tue, Nov 2, 2010 at 9:33 AM, Jamie Bennett <email address hidden> wrote:
> Ideally yes but we need to investigate whether mainline has enough to
> get to a console prompt on the panda, I do not have that information at
> the moment but maybe John does?
>
> --
> omap kernel does not support omap4
> https://bugs.launchpad.net/bugs/623077
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in Linaro Linux: New
> Status in “linux-linaro” package in Ubuntu: New
>
> Bug description:
> The omap flavour kernel only support omap3.  Turning on omap4 results in build errors.
>
> To unsubscribe from this bug, go to:
> https://bugs.launchpad.net/linux-linaro/+bug/623077/+subscribe
>

Revision history for this message
Anand Gadiyar (gadiyar) wrote :

2.6.37-rc1 is better. These two patches should be all that are needed,
as the MMC support is fixed there, as also basic ES2.0 support for the
newer boards.

[1] https://patchwork.kernel.org/patch/279661/
[2] https://patchwork.kernel.org/patch/294842/

- Anand

On Tue, Nov 2, 2010 at 10:20 AM, Steve Sakoman
<email address hidden> wrote:
> Mainline 2.6.36 does not have enough to get to a serial console prompt
> on Panda.
>
> For example: mmc support is broken.
>
> I've started adding patches to 2.6.36 to see how far I can get, but I am
> hampered by a Panda with bad POP memory.  This results in random
> segfaults.  I should have a replacement Panda in the next day or two.
>
> Patches up to this point are at:
>
> http://www.sakoman.com/cgi-bin/gitweb.cgi?p=linux-
> omap-2.6.git;a=shortlog;h=refs/heads/omap-2.6.36
>
> Note: this branch also includes overo support.
>
> --
> omap kernel does not support omap4
> https://bugs.launchpad.net/bugs/623077
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in Linaro Linux: New
> Status in “linux-linaro” package in Ubuntu: New
>
> Bug description:
> The omap flavour kernel only support omap3.  Turning on omap4 results in build errors.
>
> To unsubscribe from this bug, go to:
> https://bugs.launchpad.net/linux-linaro/+bug/623077/+subscribe
>

Revision history for this message
Jamie Bennett (jamiebennett) wrote :

Thanks for the clarification Anand.

Revision history for this message
Anand Gadiyar (gadiyar) wrote : Pull request for OMAP4 Pandaboard support

Nicolas,

Please pull the following set of patches that get the OMAP4 Pandaboard
booting to a serial console on ttyS2. MMC is still not usable, but I can
try and get that going if anyone feels it's useful. Otherwise the board
can be used with a ramdrive for now.

(I couldn't figure out where to provide the commit IDs from mainline.
Let me know if these are needed).

Thanks in advance,
Anand

The following changes since commit 5c1ae6d7d1035a335cc66b1636ed7bdff7fd0e7b:
   Felipe Contreras (1):
         video: omap: vram: remove from normal memory

are available in the git repository at:

   git://dev.omapzoom.org/pub/scm/anand/linux-omap-usb.git for-linaro-2.6.35

David Anders (1):
       omap4: Panda: Add DEBUG_LL support

Santosh Shilimkar (3):
       omap4: Update id.c and cpu.h for es2.0
       omap4: l2x0: Fix init parameter for es2.0
       omap4: Fix bootup crash observed with higher CPU clocks

  arch/arm/mach-omap2/id.c | 38
+++++++++++++++++++++-----
  arch/arm/mach-omap2/omap4-common.c | 10 +++++--
  arch/arm/plat-omap/dmtimer.c | 2 +-
  arch/arm/plat-omap/include/plat/cpu.h | 5 +++-
  arch/arm/plat-omap/include/plat/uncompress.h | 1 +
  5 files changed, 44 insertions(+), 12 deletions(-)

Revision history for this message
Anand Gadiyar (gadiyar) wrote :

On Wed, Nov 3, 2010 at 9:45 PM, Nicolas Pitre <email address hidden> wrote:
> On Wed, 3 Nov 2010, Anand Gadiyar wrote:
>
>> Nicolas,
>>
>> Please pull the following set of patches that get the OMAP4 Pandaboard booting
>> to a serial console on ttyS2. MMC is still not usable, but I can try and get
>> that going if anyone feels it's useful. Otherwise the board can be used with a
>> ramdrive for now.
>>
>> (I couldn't figure out where to provide the commit IDs from mainline. Let me
>> know if these are needed).
>
> It is preferable to have them.  You just need to use -x with 'git
> cherry-pick' to automatically record them in the commit log.
>

Okay, sending an updated pull request then. Please ignore this one.

- Anand

Revision history for this message
Anand Gadiyar (gadiyar) wrote : Pull request (v2) for OMAP4 Pandaboard support

Nicolas,

This is v2 of a pull-request I sent a few minutes ago for getting OMAP4
Pandaboard support on linux-linaro-2.6.35. Change from v1 is a different
branch being used, and the commits were cherry picked with the -x option.

MMC support is still work in progress. I'll try and get that working
ASAP, so we can have a slightly more useful kernel.

- Anand

The following changes since commit 5c1ae6d7d1035a335cc66b1636ed7bdff7fd0e7b:
   Felipe Contreras (1):
         video: omap: vram: remove from normal memory

are available in the git repository at:

   git://dev.omapzoom.org/pub/scm/anand/linux-omap-usb.git for-linaro-v2

David Anders (1):
       omap4: Panda: Add DEBUG_LL support

Santosh Shilimkar (3):
       omap4: Update id.c and cpu.h for es2.0
       omap4: l2x0: Fix init parameter for es2.0
       omap4: Fix bootup crash observed with higher CPU clocks

  arch/arm/mach-omap2/id.c | 38
+++++++++++++++++++++-----
  arch/arm/mach-omap2/omap4-common.c | 10 +++++--
  arch/arm/plat-omap/dmtimer.c | 2 +-
  arch/arm/plat-omap/include/plat/cpu.h | 5 +++-
  arch/arm/plat-omap/include/plat/uncompress.h | 1 +
  5 files changed, 44 insertions(+), 12 deletions(-)

Revision history for this message
Anand Gadiyar (gadiyar) wrote :

(+<email address hidden>. Apologies for not copying the list
earlier. I thought I had added to CC)

On Wed, Nov 3, 2010 at 9:59 PM, Anand Gadiyar <email address hidden> wrote:
> Nicolas,
>
> This is v2 of a pull-request I sent a few minutes ago for getting OMAP4
> Pandaboard support on linux-linaro-2.6.35. Change from v1 is a different
> branch being used, and the commits were cherry picked with the -x option.
>
> MMC support is still work in progress. I'll try and get that working ASAP,
> so we can have a slightly more useful kernel.
>
> - Anand
>
> The following changes since commit 5c1ae6d7d1035a335cc66b1636ed7bdff7fd0e7b:
>  Felipe Contreras (1):
>        video: omap: vram: remove from normal memory
>
> are available in the git repository at:
>
>  git://dev.omapzoom.org/pub/scm/anand/linux-omap-usb.git for-linaro-v2
>
> David Anders (1):
>      omap4: Panda: Add DEBUG_LL support
>
> Santosh Shilimkar (3):
>      omap4: Update id.c and cpu.h for es2.0
>      omap4: l2x0: Fix init parameter for es2.0
>      omap4: Fix bootup crash observed with higher CPU clocks
>
>  arch/arm/mach-omap2/id.c                     |   38
> +++++++++++++++++++++-----
>  arch/arm/mach-omap2/omap4-common.c           |   10 +++++--
>  arch/arm/plat-omap/dmtimer.c                 |    2 +-
>  arch/arm/plat-omap/include/plat/cpu.h        |    5 +++-
>  arch/arm/plat-omap/include/plat/uncompress.h |    1 +
>  5 files changed, 44 insertions(+), 12 deletions(-)
>

Revision history for this message
John Rigby (jcrigby) wrote :

Anand,

What kernel config should I use? Thanks for working on this.

John

On Wed, Nov 3, 2010 at 3:00 PM, Gadiyar, Anand <email address hidden> wrote:
> (+<email address hidden>. Apologies for not copying the list
> earlier. I thought I had added to CC)
>
> On Wed, Nov 3, 2010 at 9:59 PM, Anand Gadiyar <email address hidden> wrote:
>> Nicolas,
>>
>> This is v2 of a pull-request I sent a few minutes ago for getting OMAP4
>> Pandaboard support on linux-linaro-2.6.35. Change from v1 is a different
>> branch being used, and the commits were cherry picked with the -x option.
>>
>> MMC support is still work in progress. I'll try and get that working ASAP,
>> so we can have a slightly more useful kernel.
>>
>> - Anand
>>
>> The following changes since commit 5c1ae6d7d1035a335cc66b1636ed7bdff7fd0e7b:
>>  Felipe Contreras (1):
>>        video: omap: vram: remove from normal memory
>>
>> are available in the git repository at:
>>
>>  git://dev.omapzoom.org/pub/scm/anand/linux-omap-usb.git for-linaro-v2
>>
>> David Anders (1):
>>      omap4: Panda: Add DEBUG_LL support
>>
>> Santosh Shilimkar (3):
>>      omap4: Update id.c and cpu.h for es2.0
>>      omap4: l2x0: Fix init parameter for es2.0
>>      omap4: Fix bootup crash observed with higher CPU clocks
>>
>>  arch/arm/mach-omap2/id.c                     |   38
>> +++++++++++++++++++++-----
>>  arch/arm/mach-omap2/omap4-common.c           |   10 +++++--
>>  arch/arm/plat-omap/dmtimer.c                 |    2 +-
>>  arch/arm/plat-omap/include/plat/cpu.h        |    5 +++-
>>  arch/arm/plat-omap/include/plat/uncompress.h |    1 +
>>  5 files changed, 44 insertions(+), 12 deletions(-)
>>
>
> _______________________________________________
> linaro-dev mailing list
> <email address hidden>
> http://lists.linaro.org/mailman/listinfo/linaro-dev
>

Revision history for this message
Anand Gadiyar (gadiyar) wrote :

On 11/4/2010 2:45 AM, John Rigby wrote:
> Anand,
>
> What kernel config should I use? Thanks for working on this.
>

I had a custom config based on the omap3_defconfig. I notice now that
with plain old omap3_defconfig, as also with omap_4430sdp_defconfig,
there're a couple of build breaks. I'll send a follow on series to fix that.

For now, you can use:
- omap3_defconfig with CONFIG_USB_MUSB disabled (you get a non-SMP
kernel that boots on OMAP3/4)

- Anand

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package linux-linaro-omap - 2.6.37-1001.4

---------------
linux-linaro-omap (2.6.37-1001.4) natty; urgency=low

  [ John Rigby ]

  * rebase to new upstreams:
    snapshot of linux-linaro-2.6.36 13Dec2010
    revert 2.6.36.1
    merge v2.6.37-rc4
    rebase Ubuntu-2.6.37-8.21 onto the result
    - LP: #623077
    - LP: #627512
    - LP: #627779
    - LP: #645653
  * LINARO: update configs
    enable CONFIG_SWAP, CONFIG_POSIX_MQUEUES, CONFIG_PERF_EVENTS
    - LP: #646419
    - LP: #672656
    - LP: #683195
 -- John Rigby <email address hidden> Mon, 13 Dec 2010 16:51:19 -0700

Changed in linux-linaro-omap (Ubuntu):
status: New → Fix Released
Steve Langasek (vorlon)
Changed in linux-linaro (Ubuntu):
status: New → Invalid
Changed in linux-linaro:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.