* Re: Queston about Walnut
[not found] <000e01c388dc$eb525510$0202a8c0@homevl9biy3v7e>
@ 2003-10-02 12:17 ` Wolfgang Denk
2003-10-03 1:18 ` Jacky Lam
2003-10-03 4:11 ` Queston about Walnut Jacky Lam
0 siblings, 2 replies; 18+ messages in thread
From: Wolfgang Denk @ 2003-10-02 12:17 UTC (permalink / raw)
To: Jacky Lam; +Cc: linuxppc-embedded
In message <000e01c388dc$eb525510$0202a8c0@homevl9biy3v7e> you wrote:
>
> > 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.
> > For PowerPC systems, both Load Address and Entry Point must be
> > specified as 0.
>
> I have tried 0 before. But I get an exception in return. Could you
> kindly give me some instructions how to run a kernel on this board?
Please start by giving a precise description of what you did. and
which error messages you got.
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.
Best regards,
Wolfgang Denk
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: wd@denx.de
Totally illogical, there was no chance.
-- Spock, "The Galileo Seven", stardate 2822.3
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: Queston about Walnut
2003-10-02 12:17 ` Queston about Walnut Wolfgang Denk
@ 2003-10-03 1:18 ` Jacky Lam
[not found] ` <3F7D3238.2090400@bluewin.ch>
2003-10-03 4:11 ` Queston about Walnut Jacky Lam
1 sibling, 1 reply; 18+ messages in thread
From: Jacky Lam @ 2003-10-03 1:18 UTC (permalink / raw)
To: Wolfgang Denk; +Cc: linuxppc-embedded
> > > 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/
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: Queston about Walnut
2003-10-02 12:17 ` Queston about Walnut Wolfgang Denk
2003-10-03 1:18 ` Jacky Lam
@ 2003-10-03 4:11 ` Jacky Lam
2003-10-03 7:44 ` Jacky Lam
1 sibling, 1 reply; 18+ messages in thread
From: Jacky Lam @ 2003-10-03 4:11 UTC (permalink / raw)
To: Wolfgang Denk; +Cc: linuxppc-embedded
I trace the code in kernel and I found some strange behaviors.
In the first case (using walnut_config provided in kernel source),
kernel hangs at mapin_ram();
However, if I turn off all unnecssary options and leave only serial
console, my kernel can run until init/main.c: kmem_cache_init();
As both hangs in memory related function, I tried to run a memory
test on my board in u-boot. But it hangs.
=> mtest 0 3ffffff
Pattern 00000000 Writing...
<hangs>
I tried smaller range (ffffff), it still hangs.
I am sure my board's memory is in good condition because VxWorks can run
very well on it. Have any idea? Thanks.
Best regards,
Jacky
----- Original Message -----
From: "Wolfgang Denk" <wd@denx.de>
To: "Jacky Lam" <jackylam@astri.org>
Cc: <linuxppc-embedded@lists.linuxppc.org>
Sent: Thursday, October 02, 2003 8:17 PM
Subject: Re: Queston about Walnut
>
> In message <000e01c388dc$eb525510$0202a8c0@homevl9biy3v7e> you wrote:
> >
> > > 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.
>
> > > For PowerPC systems, both Load Address and Entry Point must be
> > > specified as 0.
> >
> > I have tried 0 before. But I get an exception in return. Could
you
> > kindly give me some instructions how to run a kernel on this board?
>
> Please start by giving a precise description of what you did. and
> which error messages you got.
>
> 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.
>
> Best regards,
>
> Wolfgang Denk
>
> --
> Software Engineering: Embedded and Realtime Systems, Embedded Linux
> Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: wd@denx.de
> Totally illogical, there was no chance.
> -- Spock, "The Galileo Seven", stardate 2822.3
>
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: Queston about Walnut
2003-10-03 4:11 ` Queston about Walnut Jacky Lam
@ 2003-10-03 7:44 ` Jacky Lam
0 siblings, 0 replies; 18+ messages in thread
From: Jacky Lam @ 2003-10-03 7:44 UTC (permalink / raw)
To: Jacky Lam, Wolfgang Denk; +Cc: linuxppc-embedded
----- Original Message -----
From: "Jacky Lam" <jackylam@astri.org>
To: "Wolfgang Denk" <wd@denx.de>
Cc: <linuxppc-embedded@lists.linuxppc.org>
Sent: Friday, October 03, 2003 12:11 PM
Subject: Re: Queston about Walnut
>
> I trace the code in kernel and I found some strange behaviors.
> In the first case (using walnut_config provided in kernel source),
> kernel hangs at mapin_ram();
> However, if I turn off all unnecssary options and leave only
serial
> console, my kernel can run until init/main.c: kmem_cache_init();
Sorry, it should be sti() just after kmem_cache_init() instead.
>
> As both hangs in memory related function, I tried to run a memory
> test on my board in u-boot. But it hangs.
>
> => mtest 0 3ffffff
> Pattern 00000000 Writing...
> <hangs>
>
> I tried smaller range (ffffff), it still hangs.
>
> I am sure my board's memory is in good condition because VxWorks can
run
> very well on it. Have any idea? Thanks.
>
> Best regards,
> Jacky
>
>
>
>
>
> ----- Original Message -----
> From: "Wolfgang Denk" <wd@denx.de>
> To: "Jacky Lam" <jackylam@astri.org>
> Cc: <linuxppc-embedded@lists.linuxppc.org>
> Sent: Thursday, October 02, 2003 8:17 PM
> Subject: Re: Queston about Walnut
>
>
> >
> > In message <000e01c388dc$eb525510$0202a8c0@homevl9biy3v7e> you wrote:
> > >
> > > > 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.
> >
> > > > For PowerPC systems, both Load Address and Entry Point must
be
> > > > specified as 0.
> > >
> > > I have tried 0 before. But I get an exception in return. Could
> you
> > > kindly give me some instructions how to run a kernel on this board?
> >
> > Please start by giving a precise description of what you did. and
> > which error messages you got.
> >
> > 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.
> >
> > Best regards,
> >
> > Wolfgang Denk
> >
> > --
> > Software Engineering: Embedded and Realtime Systems, Embedded Linux
> > Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: wd@denx.de
> > Totally illogical, there was no chance.
> > -- Spock, "The Galileo Seven", stardate 2822.3
> >
>
>
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 18+ messages in thread
* RE: Queston about Walnut
@ 2003-10-03 13:51 ARIBAUD Albert
0 siblings, 0 replies; 18+ messages in thread
From: ARIBAUD Albert @ 2003-10-03 13:51 UTC (permalink / raw)
To: linuxppc-embedded
>
> > I would suggest inspecting the timings for memory access.
> > If this is SDRAM, you must have had to program the UPM for
> > it, I suppose. Might be that VxWorks has it right, and you
> > have set it up differently.
> >
> > Also, writing to address 0 might be a Bad Ideam (tm), if you
> > have set this area to hold interrupt vectors.
> >
> > Did you try single write (say, "mw 100000 0") ?
>
> Thanks for you suggestion. Not only single write, I can
> now write to anywhere except the first 1MB of SDRAM. I think
> it is occupied by u-boot?
Possibly, but you should check that for yourself. There is
documentation on what u-boot does to RAM upon power-on.
> So, I think memory is ok now.
Seems right.
> Do you have any idea it hangs at __sti()?
As I said, I know next to nothing about the Walnut. My own
embedded uboot/Linux experience is as follows:
I had a 855T-based custom board, so I took u-boot, duplicated
the TQM855L-specific files into a custom directory *and checked
every single setting* against my own hardware. Once u-boot
started OK on my board, Linux followed almost without trouble.
Only problems were with a weird bootup IMMR address setting
(settled by modifying u-boot's startup code) and FEC MII
interrupt mishandling (settled by careful option setting in
the kernel).
You should ensure that you have access to both software (u-boot
and Linux) *and* hardware (both PPC and your board) resources.
HTH,
Albert.
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 18+ messages in thread
* RE: Queston about Walnut
@ 2003-10-03 7:57 ARIBAUD Albert
2003-10-03 8:26 ` Jacky Lam
0 siblings, 1 reply; 18+ messages in thread
From: ARIBAUD Albert @ 2003-10-03 7:57 UTC (permalink / raw)
To: linuxppc-embedded
(disclaimer : I work on 8xx, not 4xx)
I would suggest inspecting the timings for memory access.
If this is SDRAM, you must have had to program the UPM for
it, I suppose. Might be that VxWorks has it right, and you
have set it up differently.
Also, writing to address 0 might be a Bad Ideam (tm), if you
have set this area to hold interrupt vectors.
Did you try single write (say, "mw 100000 0") ?
Albert.
P.S. I think that if you write directly to linuxppc-embedded,
Wolfgang will cease receiving you mails twice (which he probably
does now since you e-mail him *and* CC: to the list).
> -----Message d'origine-----
> De : owner-linuxppc-embedded@lists.linuxppc.org
> [mailto:owner-linuxppc-embedded@lists.linuxppc.org]De la part de Jacky
> Lam
> Envoyé : vendredi 3 octobre 2003 06:11
> À : Wolfgang Denk
> Cc : linuxppc-embedded@lists.linuxppc.org
> Objet : Re: Queston about Walnut
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: Queston about Walnut
2003-10-03 7:57 ARIBAUD Albert
@ 2003-10-03 8:26 ` Jacky Lam
0 siblings, 0 replies; 18+ messages in thread
From: Jacky Lam @ 2003-10-03 8:26 UTC (permalink / raw)
To: linuxppc-embedded
----- Original Message -----
From: "ARIBAUD Albert" <a.aribaud@giat-industries.fr>
To: <linuxppc-embedded@lists.linuxppc.org>
Sent: Friday, October 03, 2003 3:57 PM
Subject: RE: Queston about Walnut
>
> (disclaimer : I work on 8xx, not 4xx)
>
> I would suggest inspecting the timings for memory access.
> If this is SDRAM, you must have had to program the UPM for
> it, I suppose. Might be that VxWorks has it right, and you
> have set it up differently.
>
> Also, writing to address 0 might be a Bad Ideam (tm), if you
> have set this area to hold interrupt vectors.
>
> Did you try single write (say, "mw 100000 0") ?
Thanks for you suggestion. Not only single write, I can now write to
anywhere except the first 1MB of SDRAM. I think it is occupied by u-boot?
So, I think memory is ok now.
Do you have any idea it hangs at __sti()?
mfmsr r3 /* Get current state */
ori r3,r3,MSR_EE /* Turn on 'EE' bit */
SYNC /* Some chip revs have problems here... */
mtmsr r3 <------Hangs after executing it /* Update
machine state */
blr
Is there any relationship with the previous instruction "SYNC"? What
revision will have problem there?
Thanks.
>
> Albert.
>
> P.S. I think that if you write directly to linuxppc-embedded,
> Wolfgang will cease receiving you mails twice (which he probably
> does now since you e-mail him *and* CC: to the list).
Thanks for remind me. I will be careful next time.
Best regards,
Jacky
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 18+ messages in thread
* Queston about Walnut
@ 2003-10-02 9:17 Jacky Lam
2003-10-02 10:13 ` Wolfgang Denk
0 siblings, 1 reply; 18+ messages in thread
From: Jacky Lam @ 2003-10-02 9:17 UTC (permalink / raw)
To: linuxppc-embedded
Dear all,
I get a IBM 405 GP evaluation board recently. After I compile the
toolchain and kernel 2.4.22 using the crosstools. I try to boot the kernel
on the board by u-boot. I follow the instruction of uboot to create a uImage
as follows:
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 0x00400000 -e
0x00400000 -n "test" -d linux.bin.gz uImage
and load the image by tftpboot. But after I type bootm, only the
following is displayed and the whole system hangs:
## Booting image at 00400000 ...
Image Name: test
Created: 2003-10-02 8:51:50 UTC
Image Type: PowerPC Linux Kernel Image (gzip compressed)
Data Size: 612743 Bytes = 598.4 kB
Load Address: 00400000
Entry Point: 00400000
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
<Hangs afterwards...>
I haven't modified any source yet. I don't know even it is needed.
Could anyone kindly tell me what's wrong about my steps? Thanks so much.
Regards,
Jacky
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: Queston about Walnut
2003-10-02 9:17 Jacky Lam
@ 2003-10-02 10:13 ` Wolfgang Denk
0 siblings, 0 replies; 18+ messages in thread
From: Wolfgang Denk @ 2003-10-02 10:13 UTC (permalink / raw)
To: Jacky Lam; +Cc: linuxppc-embedded
In message <012801c388c5$f4378540$2803050a@JackyLam> you wrote:
>
> I get a IBM 405 GP evaluation board recently. After I compile the
> toolchain and kernel 2.4.22 using the crosstools. I try to boot the kernel
> on the board by u-boot. I follow the instruction of uboot to create a uImage
> as follows:
Who gave you such (obviously wrong) instructions?
> ## Booting image at 00400000 ...
> Image Name: test
> Created: 2003-10-02 8:51:50 UTC
> Image Type: PowerPC Linux Kernel Image (gzip compressed)
> Data Size: 612743 Bytes = 598.4 kB
> Load Address: 00400000
> Entry Point: 00400000
For PowerPC systems, both Load Address and Entry Point must be
specified as 0.
Best regards,
Wolfgang Denk
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: wd@denx.de
It may be that your whole purpose in life is simply to serve as a
warning to others.
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 18+ messages in thread
end of thread, other threads:[~2003-10-07 13:37 UTC | newest]
Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <000e01c388dc$eb525510$0202a8c0@homevl9biy3v7e>
2003-10-02 12:17 ` Queston about Walnut Wolfgang Denk
2003-10-03 1:18 ` Jacky Lam
[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
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).