linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: dony <dony.he@huawei.com.cn>
To: Raphael Bossek <raphael.bossek@solutions4linux.de>,
	linuxppc-embed <linuxppc-embedded@lists.linuxppc.org>
Subject: Re: Please help me...
Date: Sun, 02 Jan 2000 15:23:29 +0800	[thread overview]
Message-ID: <386EFCF1.ABF25328@huawei.com.cn> (raw)
In-Reply-To: 19991227094239.B1025@raphael.bossek.home




> hi dony,
>
> > Do you know why? How can I programme to make it run?
> i thing you have download it into wrong address! i would recompile
> the kernel with debugging information and single step your code...
> the decompressor and some of the first lines of code of the kernel
> are initialisation and possible to debug...

How can I debug whether the decompress_kernel() and some of the first
lines of code of the kernel in arch/ppc/mbxboot/head.s are running or not?
I think they are not running,  because
I cannot see any startup messages coded in decompress_kernel().

> check where the
> decompressor jump to and compare where the decompressor reads from!
> use binutils to get mixed code on your host and compare the lines
> with your debuger

Yes, I should try check, but I just don't know how to check that .
Can you give me some more detailed information for debug?

>
> let take me a look... the 8xxrom load the kernel elf image to phy
> address 0x00200000

Yes, I have downloaded your 8xxrom codes and read them.
But they seem to read the kernel from flash into RAM 0x00200000 on board,
which is a bit defferent from what I am doing.
Now I will try to express my idea to you as clearly as possibly. Please
give me some helpful suggestions.
I use the monitor program based on vxWorks BSP. This monitor program
initialize all the things after power on (or system reset): MPC860 CPU
initialization, MEMORY initialization, Serial Port initialization(SMC2)
and Ethernet initialization(SCC1) etc. Then it use the BOOTP/TFTP protocol
to download the kernel "zImage" (compressed) or "vmlinux" (uncompressed)
from a linux box Server which has been configured bootpd , tftpd, and nfsd
.Yes , It successfully download the kernel to RAM 0x00200000 on my custom
board. Then I am very confused at this stage. Now questions appears:
1     If I directly jump there 0x00200000 at this time, will it run and
decompress the kernel automatically?
I think there are some bootloader codes (including the
decompress_kernel()) at 0x00200000 at this time , so it should run  the
first lines of the bootloader codes and then decompress_kernel() in order,
right? But it fails at all. After loading the kernel, it just shows a
message "start at 0x00200000..." (which is coded in my monitor program)
and doesn't show some startup messages in decompress_kernel() such as
"loading at... relocated to...  board data at... relocated to... zImage
at... ". I think this means the decompress_kernel() doesn't run, even the
first lines of the bootloader also not run (How can I prove whether the
latter is running or not?)
I also try to put some lighting-led-on-board codes at the very begining of
the arch/ppc/mbxboot/head.S , those red and green leds also don't light.

> > Since the kernel is a compressed image (zvmlinux), need I make
> > some codes to decompress it and then run it? if so, how to do it?
> the decompressor is part of the image but it expects the real image
> at a special address which you have to consider before downloading
> into ram.

Sorry, I don't know what you are meaning here.


> this will be done by the 8xxrom from Magnus Damm and some
> patches for the 823 avilable at http://www.s4l.de/powerpc.html of
> course :-)

Yes, I have downloaded your 8xxrom and studied these two functionss
elf_bootz (), bootvm() in elf.c. After reading the kernel "zImage" from
flash to RAM 0x00200000, you seem to handle them to strip the elf header
before you call start_loc() to run the bootloader. Am I right?
So when I download the "zImage" to RAM 0x00200000 on my custom board ,Need
I do the same thing as you before jumping there directly to run the
bootloader?

Thank you very much:-))
dony



> the 8xxrom resists in flash and load the linux kernel from
> a pcmcia ide hd or from flash using a rom-fs but this is an another
> solution that can be used in a ready product with little modifications
> in image selection...

> --
> Raphael Bossek <raphael.bossek@solutions4linux.de> [ICQ #40047651]
> PGP fingerprint: DF 6F 2C 76 46 1E B4 1C  5B A5 2E 1B FC E0 D3 F6
> PGP public key: http://www.solutions4linux.de/private/pgpkey.asc


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

  reply	other threads:[~2000-01-02  7:23 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-12-31  2:29 Please help me dony
1999-12-27  8:42 ` Raphael Bossek
2000-01-02  7:23   ` dony [this message]
1999-12-30  2:11 ` Brendan J Simon
     [not found]   ` <38701F3A.FAD6263E@huawei.com.cn>
1999-12-30  4:23     ` Brendan J Simon
     [not found]       ` <38704D0B.94438516@huawei.com.cn>
1999-12-30  6:46         ` Brendan J Simon
1999-12-30 13:25           ` Charles Lepple
2000-01-03 11:48           ` Cannot booting the kernel dony
2000-01-04  0:46             ` Brendan J Simon
     [not found]               ` <38715DAE.B6CBC772@huawei.com.cn>
     [not found]                 ` <3871572F.FA4E7842@ctam.com.au>
     [not found]                   ` <38717C52.ECF1AFFD@huawei.com.cn>
     [not found]                     ` <3871953B.345DDA23@ctam.com.au>
     [not found]                       ` <38754F28.B6B4CE70@huawei.com.cn>
     [not found]                         ` <38754419.20D95C5A@ctam.com.au>
     [not found]                           ` <3876A6E5.3488738B@huawei.com.cn>
     [not found]                             ` <3876C6FD.794BD1BF@ctam.com.au>
     [not found]                               ` <387A87DF.4ED23CA6@huawei.com.cn>
     [not found]                                 ` <387A81F3.702B29A2@ctam.com.au>
     [not found]                                   ` <387C4D8D.9C058F1C@huawei.com.cn>
     [not found]                                     ` <387D3212.A4E9904F@ctam.com.au>
2000-01-13  7:10                                       ` Cross-compile Applications for 860 on x86 dony
2000-01-13 22:09                                         ` Brendan J Simon
     [not found]                                       ` <387DAFAF.DB0096C7@huawei.com.cn>
     [not found]                                         ` <387E460F.B007CE56@ctam.com.au>
     [not found]                                           ` <387E7F82.99AF83CE@huawei.com.cn>
     [not found]                                             ` <387E7AF5.A92A6122@ctam.com.au>
     [not found]                                               ` <387E9927.48689C08@huawei.com.cn>
     [not found]                                                 ` <387EBEB9.B69B1680@ctam.com.au>
2000-01-14  8:31                                                   ` dony
2000-01-14 11:01                                                     ` Wolfgang Denk
     [not found]                                                       ` <387F0D81.48F7CABE@iname.com>
2000-01-14 17:13                                                         ` Wolfgang Denk
     [not found]                                                         ` <38827CD5.D7A44261@huawei.com.cn>
2000-01-17  3:56                                                           ` Jim Lewis
2000-01-17  3:26                                                             ` dony
2000-01-17  4:35                                                               ` Jim Lewis
2000-01-16  2:01                                                     ` Brendan J Simon
     [not found]                                                       ` <388ABF55.5BD3A031@eng.uct.ac.za>
     [not found]                                                         ` <388B9C86.8970590A@ctam.com.au>
     [not found]                                                           ` <388BA902.B41A2E11@huawei.com.cn>
2000-01-24  3:00                                                             ` Cross-compile dynamic apps for mpc860 on ix86 Brendan J Simon
2000-01-24  5:03                                                               ` Wolfgang Denk
2000-01-24  6:46                                                               ` dony
2000-01-24  8:02                                                                 ` Wolfgang Denk
     [not found] ` <000401bf5016$4757c420$0201a8c0@home>
1999-12-31  8:37   ` Please help me dony
     [not found]     ` <000c01bf5086$3e358d80$0201a8c0@home>
2000-01-01  1:58       ` dony
     [not found]         ` <001801bf50e1$6d3ad8a0$0201a8c0@home>
2000-01-01  8:46           ` dony
1999-12-31  8:40   ` dony

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=386EFCF1.ABF25328@huawei.com.cn \
    --to=dony.he@huawei.com.cn \
    --cc=linuxppc-embedded@lists.linuxppc.org \
    --cc=raphael.bossek@solutions4linux.de \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).