All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Jacky Lam" <jackylam@astri.org>
To: "Wolfgang Denk" <wd@denx.de>
Cc: <linuxppc-embedded@lists.linuxppc.org>
Subject: Re: Queston about Walnut
Date: Fri, 3 Oct 2003 09:18:12 +0800	[thread overview]
Message-ID: <001101c3894c$38833ab0$2803050a@JackyLam> (raw)
In-Reply-To: 20031002121733.A2E32C59E4@atlas.denx.de


> > > Who gave you such (obviously wrong) instructions?
> >
> >         I take the example of u-boot to create the "uImage" and download
it
> > to the board.
>
> Please show me which U-Boot document uses 0x00400000 as load or entry
> point address so I can fix this immediately. It is WRONG  and  CANNOT
> work.

    I take the "step" from u-boot's README file only. Because I got an
exception, I try to load it to other address. I use 0x00400000 because
zImage seems to be loaded at there....anyway, just a guess.

>
> Please start by giving a precise description of  what  you  did.  and
> which error messages you got.

    Here is the exact step that I have done so far:

    <Compile toolcahin by crosstools>
    <Patch 2.4.22 kernel with patch on
http://www.kernel.org/pub/linux/kernel/ports/ppc/2.4/linuxppc-2.4.22.patch.bz2>
    <Compile kernel with cross toolchain>
    powerpc-405-linux-gnu-objcopy -O binary -R .note -R .comment -S vmlinux
linux.bin
    gzip -9  linux.bin
    ./mkimage -A ppc -O linux -T kernel -C gzip -a 0x00000000 -e
0x00000000 -n "test" -d linux.bin.gz uImage
    <run ftpd on host>
    <boot up the board and enter command prompt of u-boot>

    Here is the u-boot log:

    U-Boot 0.4.0 (Sep 29 2003 - 11:44:31)

CPU:   IBM PowerPC 405GP Rev. D at 200 MHz (PLB=100, OPB=50, EBC=33 MHz)
           PCI sync clock at 33 MHz, external PCI arbiter enabled
           16 kB I-Cache 8 kB D-Cache
Board: ### No HW ID - assuming WALNUT405
I2C:   ready
DRAM:  64 MB
FLASH: 512 kB
In:    serial
Out:   serial
Err:   serial
KGDB:  kgdb ready
ready
BEDBUG:ready
Hit any key to stop autoboot:  0
=> tftpboot
ENET Speed is 100 Mbps - FULL duplex connection
TFTP from server 10.5.6.76; our IP address is 10.5.3.45
Filename 'uImage'.
Load address: 0x400000
Loading: #################################################################
         #######################################################
done
Bytes transferred = 612748 (9598c hex)
=> bootm
## Booting image at 00400000 ...
   Image Name:   test
   Created:      2003-10-03   1:08:06 UTC
   Image Type:   PowerPC Linux Kernel Image (gzip compressed)
   Data Size:    612684 Bytes = 598.3 kB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK
id mach(): done
MMU:enter
MMU:hw init
MMU:mapin

<hang>


>
> You "get an exception" - when? When running "mkimage"?  When  booting
> the kernel? Which sort of exception? What is the exact error message?
> Please include a complete log of your actions and all output.

    Maybe I do something wrong before. Now, it just hangs. Thanks your
suggestion about the load address.



Best Regards,
Jacky


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

  reply	other threads:[~2003-10-03  1:18 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <000e01c388dc$eb525510$0202a8c0@homevl9biy3v7e>
2003-10-02 12:17 ` Queston about Walnut Wolfgang Denk
2003-10-03  1:18   ` Jacky Lam [this message]
     [not found]     ` <3F7D3238.2090400@bluewin.ch>
2003-10-03  9:40       ` Jacky Lam
2003-10-03 15:07         ` Matt Porter
2003-10-03 16:34           ` Jacky Lam
2003-10-04 16:07             ` Matt Porter
2003-10-03 16:10         ` Dan Kegel
2003-10-03 16:45           ` Jacky Lam
2003-10-03 17:31             ` Dan Kegel
     [not found]       ` <20031003151729.GC21468@ip68-0-152-218.tc.ph.cox.net>
2003-10-03 23:36         ` Kernel versions Gary Thomas
2003-10-07 13:37           ` Tom Rini
2003-10-03  4:11   ` Queston about Walnut Jacky Lam
2003-10-03  7:44     ` Jacky Lam
2003-10-03 13:51 ARIBAUD Albert
  -- strict thread matches above, loose matches on Subject: below --
2003-10-03  7:57 ARIBAUD Albert
2003-10-03  8:26 ` Jacky Lam
2003-10-02  9:17 Jacky Lam
2003-10-02 10:13 ` Wolfgang Denk

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='001101c3894c$38833ab0$2803050a@JackyLam' \
    --to=jackylam@astri.org \
    --cc=linuxppc-embedded@lists.linuxppc.org \
    --cc=wd@denx.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 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.