<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7638.1">
<TITLE>Re: boot failure on lite5200b board</TITLE>
</HEAD>
<BODY>
<DIV id=idOWAReplyText33202 dir=ltr>
<DIV dir=ltr><FONT face=Arial color=#000000 size=2>how about the following
U-boot settings:</FONT></DIV>
<DIV dir=ltr><BR>..............................<BR>
<P><FONT size=2>Hit any key to stop autoboot: 0<BR>=>
printenv<BR>baudrate=115200<BR>autoload=no<BR>ethact=FEC
ETHERNET<BR>ethaddr=00:01:9F:00:27:2F<BR>preboot=echo; echo Autostarting. Press
any key to abort..;
echo<BR>bootdelay=5<BR>hostname=icecube<BR>bootfile=MPC5200/uImage<BR>nv=nfsroot
root=/dev/nfs rw
nfsroot=10.190.3.113:/opt/eldk/rootfs<BR>netmask=255.255.240.0<BR>ipaddr=10.190.3.144<BR>serverip=10.190.3.103<BR>bootcmd=run
net_nfs<BR>rootfs=root=/dev/nfs
rw<BR>netdev=eth0<BR>rootpath=/opt/eldk-4-0/rootfs<BR>nfsargs=setenv bootargs
root=/dev/nfs rw nfsroot=10.190.3.103:/opt/eldk-4-0/rootfs<BR>ramargs=setenv
bootargs root=/dev/ram rw<BR>addip=setenv bootargs
ip=10.190.3.144:10.190.3.103:10.190.3.103:255.255.240.0:icecube:eth0:off
panic=1<BR>net_nfs=tftp 200000 MPC5200/uImage;run nfsargs
addip;bootm<BR>stdin=serial<BR>stdout=serial<BR>stderr=serial<BR><BR>Environment
size: 738/65532
bytes<BR>=> .<BR>................................</FONT></P>
<P><FONT size=2>The output is still the same, it hangs after displaying
arch:exit</FONT></P>
<P><FONT size=2>I have also tried the above settings with console set, it
gives the same output</FONT></P>
<P><FONT size=2>I am really wondering whether the problem is with the kernel.
Sylvain's kernel uImage is only around 600k while the one from freescale is
1.4M, anybody knows where the difference is?</FONT></P>
<P><FONT size=2>.....................................</FONT></P>
<P><FONT size=2>Autostarting. Press any key to abort..<BR><BR>Hit any key to
stop autoboot: 0<BR>Using FEC ETHERNET device<BR>TFTP from server
10.190.3.103; our IP address is 10.190.3.144<BR>Filename
'MPC5200/uImage'.<BR>Load address: 0x200000<BR>Loading:
#################################################################<BR>
#################################################################<BR>
#################################################################<BR>
#################################################################<BR>
###################################<BR>done<BR>Bytes transferred = 1510143
(170aff hex)<BR>## Booting image at 00200000 ...<BR> Image
Name: Linux-2.6.11.7<BR> Image Type: PowerPC
Linux Kernel Image (gzip compressed)<BR> Data
Size: 1510079 Bytes = 1.4 MB<BR> Load
Address: 00000000<BR> Entry Point: 00000000<BR>
Verifying Checksum ... OK<BR> Uncompressing Kernel Image ...
OK<BR>id mach(): done<BR>MMU:enter<BR>MMU:hw
init<BR>MMU:mapin<BR>MMU:setio<BR>MMU:exit<BR>setup_arch: enter<BR>setup_arch:
bootmem<BR>ocp: exit<BR>arch: exit</FONT><BR></P>
<P><FONT size=2>.....................</FONT></P>
<P><FONT size=2>Regards,</FONT></P>
<P><FONT size=2>Jianggan LI</P></FONT></DIV></DIV>
<DIV dir=ltr><BR>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> John Rigby
[mailto:jcrigby@gmail.com]<BR><B>Sent:</B> Sat 2/25/2006 1:17<BR><B>To:</B> #LI
JIANGGAN#<BR><B>Cc:</B> tnt@246tnt.com;
linuxppc-embedded@ozlabs.org<BR><B>Subject:</B> Re: boot failure on lite5200b
board<BR></FONT><BR></DIV>
<DIV>
<P><FONT size=2>I don't think your syntax for appending to an env variable is
correct:<BR><BR>try:<BR>set bootargs $(bootargs) ...appended stuff...<BR>instead
of:<BR>set bootargs env bootargs ...appended stuff....<BR><BR>Also to see what
bootargs is actually set to after all the nested<BR>commands, add a printenv
just before the bootm<BR><BR>On 2/23/06, #LI JIANGGAN#
<lijianggan@pmail.ntu.edu.sg> wrote:<BR>><BR>><BR>> I have
actually tried both kernel with both console configurations. It gave<BR>> the
same output, thus I presume that the problem lies somewhere else. I<BR>>
attached the log to this email.<BR>><BR>> the board is Lite5200B
Version 1.0. Which .config file do you want?<BR>><BR>> Sylvain, we
have ordered a debugging set but we are still waiting for<BR>> delivery, the
leaking time is said to be one month, tant pis. And the log I<BR>> attached
here are booting from a higher address (0x500000).<BR>><BR>> My
current u-boot args:<BR>> Autostarting. Press any key to
abort..<BR>><BR>> Hit any key to stop autoboot:
0<BR>> => printenv<BR>> baudrate=115200<BR>>
autoload=no<BR>> ethact=FEC ETHERNET<BR>>
flshroot=root=/dev/mtdblock2 rw<BR>>
ethaddr=00:01:9F:00:27:2F<BR>> preboot=echo; echo Autostarting. Press
any key to abort..; echo<BR>> bootdelay=5<BR>>
hostname=icecube<BR>> bootfile=MPC5200/uImage<BR>> nv=nfsroot
root=/dev/nfs rw nfsroot=10.190.3.113:/opt/eldk/rootfs<BR>>
ip=ip=10.190.3.144:10.190.3.103:10.190.3.103:255.255.240.0:icecube::off<BR>>
nfsroot=root=/dev/nfs rw nfsroot=10.190.3.103:/opt/eldk-4-0/rootfs<BR>>
bootcmd=run net_nfs<BR>> filesize=546<BR>>
fileaddr=500000<BR>> netmask=255.255.240.0<BR>>
ipaddr=10.190.3.144<BR>> serverip=10.190.3.103<BR>>
setconsole=setenv bootargs console=ttyPSC0, 115200n8 console=tty1<BR>>
rootfs=root=/dev/nfs rw nfsroot=10.190.3.103:/opt/eldk-4-0/rootfs<BR>>
bootargs=env bootargs root=/dev/nfs rw<BR>>
nfsroot=10.190.3.103:/opt/eldk-4-0/rootfs<BR>>
ip=10.190.3.144:10.190.3.103:10.190.3.103:255.255.240.0:icecube::off<BR>>
flash_nfs=run setconsole nfsargs addip;bootm<BR>> net_nfs=tftp 500000
MPC5200/uImage;run setconsole nfsargs addip;bootm<BR>> nfsargs=setenv
bootargs env bootargs root=/dev/nfs rw<BR>>
nfsroot=10.190.3.103:/opt/eldk-4-0/rootfs<BR>>
ip=10.190.3.144:10.190.3.103:10.190.3.103:255.255.240.0:icecube::offroot=/dev/nfs<BR>>
rw<BR>> addip=setenv bootargs env bootargs root=/dev/nfs rw<BR>>
nfsroot=10.190.3.103:/opt/eldk-4-0/rootfs<BR>>
ip=10.190.3.144:10.190.3.103:10.190.3.103:255.255.240.0:icecube::off<BR>>
ramargs=setenv bootargs root=/dev/ram rw<BR>>
console=console=ttyS0,115200n8 console=tty1<BR>>
stdin=serial<BR>> stdout=serial<BR>>
stderr=serial<BR>><BR>> Environment size: 1472/65532
bytes<BR>> =><BR>><BR>><BR>><BR>><BR>> USING
Sylvain's KERNEL:<BR>><BR>> U-Boot 1.1.3 (Feb 6 2006 -
09:56:46)<BR>><BR>> CPU: MPC5200 v2.2 at 462
MHz<BR>> Bus 132 MHz, IPB 132
MHz, PCI 33 MHz<BR>> Board: Freescale MPC5200 (Lite5200B)<BR>>
I2C: 85 kHz, ready<BR>> DRAM: 256 MB<BR>>
FLASH: 32 MB<BR>> PCI: Bus Dev VenId DevId Class
Int<BR>> 00
1a 1057 5809 0680 00<BR>> In:
serial<BR>> Out: serial<BR>> Err:
serial<BR>> Net: FEC ETHERNET<BR>>
IDE: Bus 0: OK<BR>> Device 0: not
available<BR>> Device 1: not
available<BR>><BR>> Autostarting. Press any key to
abort..<BR>><BR>> Hit any key to stop autoboot:
0<BR>> Using FEC ETHERNET device<BR>> TFTP from server
10.190.3.103; our IP address is 10.190.3.144<BR>> Filename
'MPC5200/uImage'.<BR>> Load address: 0x500000<BR>> Loading:
#################################################################<BR>>
################################################################<BR>>
done<BR>> Bytes transferred = 658114 (a0ac2 hex)<BR>> ##
Booting image at 00500000 ...<BR>> Image
Name: Linux-2.6.16-rc1<BR>> Image
Type: PowerPC Linux Kernel Image (gzip
compressed)<BR>> Data Size: 658050
Bytes = 642.6 kB<BR>> Load Address:
00000000<BR>> Entry Point:
00000000<BR>> Verifying Checksum ...
OK<BR>> Uncompressing Kernel Image ...
OK<BR>> id mach(): done<BR>> MMU:enter<BR>> MMU:hw
init<BR>> MMU:mapin<BR>> MMU:setio<BR>>
MMU:exit<BR>> setup_arch: enter<BR>> setup_arch:
bootmem<BR>> arch: exit<BR>><BR>><BR>><BR>> USING
KERNEL FROM Freescale:<BR>><BR>> U-Boot 1.1.3 (Feb 6 2006 -
09:56:46)<BR>><BR>> CPU: MPC5200 v2.2 at 462
MHz<BR>> Bus 132 MHz, IPB 132
MHz, PCI 33 MHz<BR>> Board: Freescale MPC5200 (Lite5200B)<BR>>
I2C: 85 kHz, ready<BR>> DRAM: 256 MB<BR>>
FLASH: 32 MB<BR>> PCI: Bus Dev VenId DevId Class
Int<BR>> 00
1a 1057 5809 0680 00<BR>> In:
serial<BR>> Out: serial<BR>> Err:
serial<BR>> Net: FEC ETHERNET<BR>>
IDE: Bus 0: OK<BR>> Device 0: not
available<BR>> Device 1: not
available<BR>><BR>> Autostarting. Press any key to
abort..<BR>><BR>> Hit any key to stop autoboot:
0<BR>> Using FEC ETHERNET device<BR>> TFTP from server
10.190.3.103; our IP address is 10.190.3.144<BR>> Filename
'MPC5200/uImage'.<BR>> Load address: 0x500000<BR>> Loading:
#################################################################<BR>>
#################################################################<BR>>
#################################################################<BR>>
#################################################################<BR>>
###################################<BR>> done<BR>> Bytes
transferred = 1510143 (170aff hex)<BR>> ## Booting image at 00500000
...<BR>> Image Name:
Linux-2.6.11.7<BR>> Image Type: PowerPC
Linux Kernel Image (gzip compressed)<BR>> Data
Size: 1510079 Bytes = 1.4
MB<BR>> Load Address:
00000000<BR>> Entry Point:
00000000<BR>> Verifying Checksum ...
OK<BR>> Uncompressing Kernel Image ...
OK<BR>> id mach(): done<BR>> MMU:enter<BR>> MMU:hw
init<BR>> MMU:mapin<BR>> MMU:setio<BR>>
MMU:exit<BR>> setup_arch: enter<BR>> setup_arch:
bootmem<BR>> ocp: exit<BR>> arch:
exit<BR>><BR>><BR>><BR>><BR>> -----Original
Message-----<BR>> From: John Rigby [<A
href="mailto:jcrigby@gmail.com">mailto:jcrigby@gmail.com</A>]<BR>>
Sent: Fri 2/24/2006 0:18<BR>> To: #LI JIANGGAN#<BR>> Subject:
Re: boot failure on lite5200b board<BR>><BR>> If you are using
Sylvain's kernel you need to set console=ttyPSC0. If you<BR>>
are<BR>> using a kernel from Freescale then you need to set
console=ttyS0.<BR>><BR>> Also what rev of the board do you
have?<BR>><BR>><BR>><BR>> On 2/23/06, #LI JIANGGAN#
<lijianggan@pmail.ntu.edu.sg> wrote:<BR>> ><BR>>
><BR>> > Thank you José María and Andrey for your advices,
however the problem<BR>> > remains. I've tried setting the console
(though I remember that our<BR>> previous<BR>> > lite5200 board
was working fine on kernel 2.4 without setting the<BR>>
console);<BR>> > meantime, I've set the booting image to 0x500000; I
have also tried using<BR>> > the kernel image come together with the
BSP, it's always the same error.<BR>> ><BR>> >
Sylvain, I've actually using your kernel source, the compiled image
is<BR>> > around 700k (compared to the 1.4M image from the BSP), but
it doesn't<BR>> solve<BR>> > the problem. So I presume that the
problem is lying somewhere else.<BR>> ><BR>> > A
SNAPSHOT OF THE BOOTING MESSAGES:<BR>> ><BR>>
><BR>> > U-Boot 1.1.3 (Feb 6 2006 -
09:56:46)<BR>> ><BR>> > CPU: MPC5200
v2.2 at 462 MHz<BR>>
> Bus 132 MHz, IPB 132 MHz,
PCI 33 MHz<BR>> > Board: Freescale MPC5200
(Lite5200B)<BR>> > I2C: 85 kHz,
ready<BR>> > DRAM: 256 MB<BR>> >
FLASH: 32 MB<BR>> > PCI: Bus Dev VenId DevId Class
Int<BR>> >
00 1a 1057 5809 0680 00<BR>> >
In: serial<BR>> > Out:
serial<BR>> > Err: serial<BR>> >
Net: FEC ETHERNET<BR>> > IDE: Bus 0:
OK<BR>> > Device 0: not available<BR>>
> Device 1: not available<BR>> ><BR>>
> Autostarting. Press any key to abort..<BR>>
><BR>> > Hit any key to stop autoboot:
0<BR>> > Using FEC ETHERNET device<BR>> >
TFTP from server 10.190.3.103; our IP address is 10.190.3.144<BR>>
> Filename 'MPC5200/uImage'.<BR>> > Load address:
0x100000<BR>> > Loading:<BR>> >
#################################################################<BR>>
><BR>> >
################################################################<BR>>
> done<BR>> > Bytes transferred = 658114 (a0ac2
hex)<BR>> > ## Booting image at 00100000 ...<BR>>
> Image Name:
Linux-2.6.16-rc1<BR>> > Image
Type: PowerPC Linux Kernel Image (gzip compressed)<BR>>
> Data Size: 658050 Bytes = 642.6
kB<BR>> > Load Address:
00000000<BR>> > Entry Point:
00000000<BR>> > Verifying Checksum ...
OK<BR>> > Uncompressing Kernel Image ...
OK<BR>> > id mach(): done<BR>> >
MMU:enter<BR>> > MMU:hw init<BR>> >
MMU:mapin<BR>> > MMU:setio<BR>> >
MMU:exit<BR>> > setup_arch: enter<BR>> >
setup_arch: bootmem<BR>> > arch: exit<BR>>
><BR>> ><BR>> > I am wondering whether it's a
kernel problem or more likely to be a<BR>> problem<BR>> > lying
with the U-boot. It seems to hang when executing setup_arch()<BR>> >
function, or maybe there is sth else behind the wall?<BR>>
><BR>> > Regards,<BR>> > Jianggan
LI<BR>> ><BR>> ><BR>> ><BR>>
><BR>> > -----Original Message-----<BR>>
> From: Sylvain Munaut [<A
href="mailto:tnt@246tNt.com">mailto:tnt@246tNt.com</A>]<BR>> >
Sent: Thu 2/23/2006 15:38<BR>> > To: #LI
JIANGGAN#<BR>> > Cc:
linuxppc-embedded@ozlabs.org<BR>> > Subject: Re: boot failure
on lite5200b board<BR>> ><BR>> > #LI JIANGGAN#
wrote:<BR>> > > Hello all,<BR>> >
><BR>> > > For my end-of-study project, I am working on
an embedded system with<BR>> > > reference of freescale's
lite5200b reference board. I was trying to<BR>> boot<BR>> >
> Linux 2.6.15 on the board (with the fec and bestcomm corrected).<BR>>
however<BR>> > > the booting was stuck at the following
stage:<BR>> ><BR>> > In addition to what has
already been said (use a higher address for the<BR>> > image
and don't forget console=ttyPSC0 in kernel command line), make<BR>>
> sure you use the kernel from my git tree, it contains a few patches
from<BR>> > John Rigby to add support for the
lite5200b.<BR>> ><BR>> > Please report if it
works, I've not been able to test those myself since<BR>> >
i'm still on lite5200.<BR>> ><BR>> ><BR>>
> Sylvain<BR>>
><BR>> ><BR>> ><BR>> ><BR>>
><BR>> ><BR>> >
_______________________________________________<BR>> >
Linuxppc-embedded mailing list<BR>> >
Linuxppc-embedded@ozlabs.org<BR>> > <A
href="https://ozlabs.org/mailman/listinfo/linuxppc-embedded">https://ozlabs.org/mailman/listinfo/linuxppc-embedded</A><BR>>
><BR>>
><BR>><BR>><BR>><BR>><BR>><BR></FONT></P></DIV>
</BODY>
</HTML>