All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Felipe Brandão Cavalcanti" <cavalkaf@domain.hid>
To: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] Problems when cross-compiling Xenomai
Date: Mon, 15 Feb 2010 15:19:49 -0200	[thread overview]
Message-ID: <8b216e9e1002150919p250b5270tab0bf5f242e87a25@domain.hid> (raw)
In-Reply-To: <8b216e9e1002131225v16024e66p521d7eaad376441d@domain.hid>

[-- Attachment #1: Type: text/plain, Size: 5635 bytes --]

2010/2/13 Felipe Brandão Cavalcanti <cavalkaf@domain.hid>

>
>
> 2010/2/13 Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
>
> Felipe Brandão Cavalcanti wrote:
>> > OK - I did apply the patch to 2.6.30.10, with some very minor
>> modifications
>> > in the sound system and in the headers (MACH_TYPE_IGEP0020 wasn't
>> defined).
>> > I also applied the latest Adeos Ipipe patch.
>> >
>> > However, the compiled kernel doesn't boot - it actually just sits there,
>> > doing nothing:
>> >
>> > Bytes transferred = 2555616 (26fee0 hex)
>> > ## Booting kernel from Legacy Image at 80000000 ...
>> >    Image Name:   Linux-2.6.30.10
>> >    Image Type:   ARM Linux Kernel Image (uncompressed)
>> >    Data Size:    2555552 Bytes =  2.4 MB
>> >    Load Address: 80008000
>> >    Entry Point:  80008000
>> >    Verifying Checksum ... OK
>> >    Loading Kernel Image ... OK
>> > OK
>> >
>> > Starting kernel ...
>> >
>> > Uncompressing
>> >
>> Linux..................................................................................................................................................................
>> > done, booting the kernel.
>> >
>> > My guess is that Linux is simply not sending anything through my serial
>> > (i.e., debug) port. Should I attempt to port over the serial driver, or
>> is
>> > this something else?
>> > I am also downloading kernel 2.6.32 to see if I can make it boot on my
>> IGEP.
>>
>> Do you pass the proper "console=" argument to the kernel? Is the support
>> for serial driver enabled in the kernel?
>>
>> If yes, then apply trick #1 from the "Tips and tricks" section in the
>> "porting I-pipe to a new board" HOWTO on Xenomai website.
>>
>>
> Yeah, I called it with the console= argument, and support is enabled. Just
> tested 2.6.32 - working fine in my board!
>
> I will try 2.6.30 again, but this time with no I-pipe patch, as well as
> enabling the low-level debug options.
>
>

OK - so I compiled the kernel with a series of kernel debug options, to find
out what was going on. However, the kernel is stuck in a very strange
position - just after starting the network!

So, any ideas on where I should take a look? I will attempt disabling
network support, but this would a temporary solution, as I actually need
network on my embedded system.

Thanks for the help,
  -Felipe Brandão Cavalcanti

Here is my console output:

Starting kernel ...

Uncompressing
Linux............................................................................................................................................................................................
<5>Linux version 2.6.30.10 (jdoe@domain.hid) (gcc version 4.3.2 (GCC) ) #1 Mon
Feb 15 18:06:42 CET 2010
CPU: ARMv7 Processor [411fc083] revision 3 (ARMv7), cr=10c5387f
CPU: VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
Machine: IGEP v2.x board
Memory policy: ECC disabled, Data cache writeback
<5>Truncating RAM at 80000000-9fffffff to -87ffffff (vmalloc region
overlap).
<7>On node 0 totalpages: 32768
<7>free_area_init_node: node 0, pgdat c06f9208, node_mem_map c0d29000
<7>  Normal zone: 256 pages used for memmap
<7>  Normal zone: 0 pages reserved
<7>  Normal zone: 32512 pages, LIFO batch:7
<6>OMAP3430 ES3.1
<6>SRAM: Mapped pa 0x40200000 to va 0xd7000000 size: 0x100000
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32512
<5>Kernel command line: mem=512M console=ttyS2,115200n8 console=tty0
omapfb.mode=dvi:1024x768MR-16@domain.hid root=/dev/mtdblock4 rootfstype=jffs2
<3>Unknown boot option `omapfb.mode=dvi:1024x768MR-16@domain.hid': ignoring
<6>NR_IRQS:402
<6>Clocking rate (Crystal/DPLL/ARM core): 26.0/332/720 MHz
<6>GPMC revision 5.0
<6>IRQ: Found an INTC at 0xd8200000 (revision 4.0) with 96 interrupts
<6>Total of 96 interrupts on 1 active controller
<6>OMAP34xx GPIO hardware version 2.5
PID hash table entries: 512 (order: 9, 2048 bytes)
<6>OMAP clockevent source: GPTIMER1 at 32768 Hz
Console: colour dummy device 80x30
<6>console [tty0] enabled
Lock dependency validator: Copyright (c) 2006 Red Hat, Inc., Ingo Molnar
... MAX_LOCKDEP_SUBCLASSES:  8
... MAX_LOCK_DEPTH:          48
... MAX_LOCKDEP_KEYS:        8191
... CLASSHASH_SIZE:          4096
... MAX_LOCKDEP_ENTRIES:     16384
... MAX_LOCKDEP_CHAINS:      32768
... CHAINHASH_SIZE:          16384
 memory used by lock dependency info: 3871 kB
 per task-struct memory footprint: 2304 bytes
<6>Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
<6>Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
<6>Memory: 128MB = 128MB total
<5>Memory: 116308KB available (4880K code, 8068K data, 180K init, 0K
highmem)
<7>ODEBUG: 0 of 0 active objects replaced
<6>Calibrating delay loop... 715.27 BogoMIPS (lpj=2793472)
Mount-cache hash table entries: 512
<6>CPU: Testing write buffer coherency: ok
<6>net_namespace: 988 bytes
<6>regulator: core version 0.5
<6>NET: Registered protocol family 16



>
>> --
>>                                             Gilles.
>>
>>
>
>
> --
>       -Felipe Brandão Cavalcanti
>       LARA - Robotics and Automation Laboratory
>       Department of Electrical Engineering
>       UnB - University of Brasília, Brazil
>       http://www.lara.unb.br/~fbcavalcanti/<http://www.lara.unb.br/%7Efbcavalcanti/>
>



-- 
      -Felipe Brandão Cavalcanti
      LARA - Robotics and Automation Laboratory
      Department of Electrical Engineering
      UnB - University of Brasília, Brazil
      http://www.lara.unb.br/~fbcavalcanti/

[-- Attachment #2: Type: text/html, Size: 7269 bytes --]

  reply	other threads:[~2010-02-15 17:19 UTC|newest]

Thread overview: 36+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-10 11:27 [Xenomai-help] Problems when cross-compiling Xenomai Felipe Brandão Cavalcanti
2010-02-10 11:39 ` Gilles Chanteperdrix
2010-02-10 11:49   ` Felipe Brandão Cavalcanti
2010-02-10 11:58     ` Felipe Brandão Cavalcanti
2010-02-10 12:04       ` Gilles Chanteperdrix
2010-02-10 12:16         ` Gilles Chanteperdrix
2010-02-10 14:24       ` Gilles Chanteperdrix
2010-02-10 19:28         ` Felipe Brandão Cavalcanti
2010-02-11 18:05           ` Felipe Brandão Cavalcanti
2010-02-11 18:08             ` Gilles Chanteperdrix
2010-02-11 18:24               ` Felipe Brandão Cavalcanti
2010-02-11 18:39                 ` Gilles Chanteperdrix
2010-02-11 18:53                   ` Felipe Brandão Cavalcanti
2010-02-11 19:20                     ` Gilles Chanteperdrix
2010-02-11 19:38                     ` Gilles Chanteperdrix
2010-02-11 20:15                       ` Felipe Brandão Cavalcanti
2010-02-11 21:00                         ` Gilles Chanteperdrix
2010-02-11 22:30                           ` Felipe Brandão Cavalcanti
2010-02-12  7:20                             ` Gilles Chanteperdrix
2010-02-12 18:23                               ` Felipe Brandão Cavalcanti
2010-02-12 18:29                                 ` Gilles Chanteperdrix
2010-02-12 18:34                                   ` Stefan Kisdaroczi
2010-02-13 19:57                                     ` Felipe Brandão Cavalcanti
2010-02-13 20:02                                       ` Gilles Chanteperdrix
2010-02-13 20:25                                         ` Felipe Brandão Cavalcanti
2010-02-15 17:19                                           ` Felipe Brandão Cavalcanti [this message]
2010-02-15 18:19                                             ` Gilles Chanteperdrix
2010-02-15 18:34                                               ` Felipe Brandão Cavalcanti
2010-03-02 15:29                                                 ` Felipe Brandão Cavalcanti
2010-03-02 15:32                                                   ` Gilles Chanteperdrix
2010-05-05  0:11                                                     ` Gilles Chanteperdrix
2010-05-06  3:27                                                       ` Felipe Brandão Cavalcanti
2010-02-11 18:30             ` Gilles Chanteperdrix
2010-02-11 18:39               ` Felipe Brandão Cavalcanti
2010-02-10 12:00     ` Gilles Chanteperdrix
2010-02-10 12:19     ` Gilles Chanteperdrix

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8b216e9e1002150919p250b5270tab0bf5f242e87a25@domain.hid \
    --to=cavalkaf@domain.hid \
    --cc=gilles.chanteperdrix@xenomai.org \
    --cc=xenomai@xenomai.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.