All of lore.kernel.org
 help / color / mirror / Atom feed
From: fachkar.datawind@gmail.com (f. achkar)
To: linux-arm-kernel@lists.infradead.org
Subject: zImage works, but not vmlinux
Date: Tue, 25 May 2010 13:30:59 -0400	[thread overview]
Message-ID: <4BFC0953.7010702@gmail.com> (raw)
In-Reply-To: <20100525171207.GC3085@boggieman>

On 05/25/2010 01:12 PM, Kristoffer Ericson wrote:
> On Tue, May 25, 2010 at 01:07:27PM -0400, f. achkar wrote:
>   
>> On 05/25/2010 12:54 PM, Kristoffer Ericson wrote:
>>     
>>> On Tue, May 25, 2010 at 11:43:17AM -0400, f. achkar wrote:
>>>   
>>>       
>>>> Hi,
>>>> I have tried to send this message some part of it was ignored, resending
>>>> sorry ...
>>>>
>>>> greetings,
>>>> I'm newbie to arm linux, so pls if my issue is already addressed just
>>>> point me to that reference. I'm trying to learn, but couldn't pass the
>>>> following stage:
>>>> I have a s3c245 based board, I have a working compressed kernel image
>>>> zImage, this image boots properly via u-boot-1.1.6, however I simply
>>>> failed to load (i.e., boot vmlinux) via u-boot directly from SDRAM.
>>>>
>>>> more details:
>>>>
>>>>    1. I let the target boot until the message of "  Hit any key to stop
>>>>       autoboot: " for which I hit enter, (this initialized the board
>>>>       enables MMU, I-Cache, .. etc);
>>>>    2. board info as seen by u-boot
>>>>       # bdinfo
>>>>       arch_number = 0x00000648
>>>>       env_t       = 0x00000000
>>>>       boot_params = 0x30000100
>>>>       DRAM bank   = 0x00000000
>>>>       -> start    = 0x30000000
>>>>       -> size     = 0x04000000
>>>>       DRAM bank   = 0x00000001
>>>>       -> start    = 0x38000000
>>>>       -> size     = 0x04000000
>>>>       ethaddr     = ...:5B
>>>>       ip_addr     = ...200
>>>>       baudrate    = 115200 bps
>>>>    3. laod vmlinux to SDRAM :
>>>>       tftp 30008000 vmlinux
>>>>       TFTP from server ...210; our IP address is ...200
>>>>       Filename 'vmlinux'.
>>>>       Load address: 0x30008000
>>>>       Loading: T ############ .....
>>>>    4. # bootm 30008000
>>>>       ## Booting image at 30008000 ...
>>>>       Boot with Image
>>>>       do not support this address : 30008000
>>>>
>>>>       Starting kernel ...
>>>>     
>>>>         
>>> Is that kernel compiled with early printk? 
>>>   
>>>       
>> the kernel version is 2.6.21-1, and there is no early_printk support yet
>> for that version!
>> thanks
>>     
> Then you should add some ascii_printk output so you get more info.
> I believe its described on arm wiki.
>   
thanks for your approach ... pls read on:
I have j-link jtag connected to the target board I can successfully
debug via openocd + gdb various assembly codes that controls &
configures the target hardware, however when I try the same with the
vmlinux (root directory of linux source ) things don't go as expected!
I can stepi thought the initial code of the stext
(arch/arm/kernel/head.S) as per
http://www.linux-arm.org/LinuxBootLoader/SMPBoot

however when I reach :
smp_setup_processor_id();  in main.c: kernel_start , If I do in gdb
next, the control never returns to gdb, also I don't see any output on
the serial console!

that's why I have asked on how to boot or launch that same vmlinux which
I am trying to debug from within u-boot command prompt, and which simply
as mentioned hangs immediately.
To make things clear : I'm trying to LEARN how to debug remotely via
openocd (jtag) + gdb the linux kernel on an arm926ejs based target. Note
that zImage is working just fine for the same source tree of vmlinux.
thanks
ferar

>
>   
>>>   
>>>       
>>>> and nothing happens it probably crashed somewhere, why zImage works
>>>> while vmlinux does not?
>>>> thanks,
>>>> ferar
>>>>
>>>>
>>>> _______________________________________________
>>>> linux-arm-kernel mailing list
>>>> linux-arm-kernel at lists.infradead.org
>>>> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
>>>>     
>>>>         

  reply	other threads:[~2010-05-25 17:30 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-25 15:43 zImage works, but not vmlinux f. achkar
2010-05-25 16:54 ` Kristoffer Ericson
2010-05-25 17:07   ` f. achkar
2010-05-25 17:12     ` Kristoffer Ericson
2010-05-25 17:30       ` f. achkar [this message]
2010-05-25 17:27 ` Seth Forshee
2010-05-25 17:52 ` Nicolas Pitre

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=4BFC0953.7010702@gmail.com \
    --to=fachkar.datawind@gmail.com \
    --cc=linux-arm-kernel@lists.infradead.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.