linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Re: u-boot on mbx860
       [not found] <AD2F581BD7340A4C908AF1AFB066EA3B0E4819@ntah901e.savan.com>
@ 2003-09-18 15:17 ` Wolfgang Denk
  0 siblings, 0 replies; 4+ messages in thread
From: Wolfgang Denk @ 2003-09-18 15:17 UTC (permalink / raw)
  To: Amit.Lubovsky; +Cc: linuxppc-embedded


Dear Amit,

in message <AD2F581BD7340A4C908AF1AFB066EA3B0E4819@ntah901e.savan.com> you wrote:
>
> The process has finished sucessfully but after switching the power and
> setting back the J4 jumper nothing came up.

I'm sorry, but I never used  a  MBX  board  with  PPCBoot  or  U-Boot
myself, so my experience is limited.

> EPPC-Bug>pflash 4000:83fff fc000100
>
> Source Starting/Ending Addresses      =00004000/00087FFE
>
> Destination Starting/Ending Addresses =FC000100/FC0840FE
>
> Number of Effective Bytes             =00083FFF (&540671)

There are two obvious errors here:

First, U-Boot must start at offset 0, not  0x100;  I  don't  know  if
FC000100  is  the correct address - if the "FC" prefix is correct (*)
then you must program the image to FC000000, not FC000100.

(*) The U-Boot configuration  for  the  MBX-Board  sets  TEXT_BASE  =
0xFE000000 so please double-check your address.

Second, the image size of >500  kB  is  wrong.  You  must  flash  the
"u-boot.bin" image, which should be in the 120..130 kB range.

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
Always borrow money from a pessimist; they don't expect  to  be  paid
back.

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* u-boot on mbx860
@ 2003-09-30  9:02 Amit.Lubovsky
  2003-09-30 21:46 ` Wolfgang Denk
  0 siblings, 1 reply; 4+ messages in thread
From: Amit.Lubovsky @ 2003-09-30  9:02 UTC (permalink / raw)
  To: linuxppc-embedded


Hi,
I have compiled u-boot for mbx860, created uImage (using the sources from
denx site) but have
a problem when I try to run the uImge on the board, follows what I get:

create u-boot image
-------------------
[devel@amit_lap linuxppc_2_4_devel]$ make uImage
. scripts/mkversion > .tmpversion
dnsdomainname: Unknown host
ppc_8xx-gcc -D__KERNEL__ -I/home/devel/mbx860/linuxppc_2_4_devel/include
-Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing
-fno-common -fomit-frame-pointer
-I/home/devel/mbx860/linuxppc_2_4_devel/arch/ppc -fsigned-char -msoft-float
-pipe -ffixed-r2 -Wno-uninitialized -mmultiple -mstring
-DUTS_MACHINE='"ppc"' -DKBUILD_BASENAME=version -c -o init/version.o
init/version.c
...

make[1]: Entering directory
`/home/devel/mbx860/linuxppc_2_4_devel/arch/ppc/boot'
make -C images vmlinux.gz
make[2]: Entering directory
`/home/devel/mbx860/linuxppc_2_4_devel/arch/ppc/boot/images'
ppc_8xx-objcopy --strip-all -S -O binary
/home/devel/mbx860/linuxppc_2_4_devel/vmlinux vmlinux
gzip -vf9 vmlinux
vmlinux:                 57.0% -- replaced with vmlinux.gz
make[2]: Leaving directory
`/home/devel/mbx860/linuxppc_2_4_devel/arch/ppc/boot/images'
./utils/mkimage.wrapper -A ppc -O linux -T kernel -C gzip -a 00000000 -e
00000000 \
-n 'Linux-2.4.20' \
-d images/vmlinux.gz images/vmlinux.PPCBoot
Image Name:   Linux-2.4.20
Created:      Tue Sep 30 11:50:22 2003
Image Type:   PowerPC Linux Kernel Image (gzip compressed)
Data Size:    842305 Bytes = 822.56 kB = 0.80 MB
Load Address: 0x00000000
Entry Point:  0x00000000
ln -sf vmlinux.PPCBoot images/pImage
ln -sf vmlinux.PPCBoot images/uImage
make[1]: Leaving directory
`/home/devel/mbx860/linuxppc_2_4_devel/arch/ppc/boot'



load the uImage to the mbx board
--------------------------------

=>



U-Boot 0.4.8 (Sep 18 2003 - 17:29:19)



CPU:   XPC86xxxZPnnC1 at 50 MHz: 4 kB I-Cache 4 kB D-Cache

Board: MBX860-006C860EN(01-W3527F31C)

         *** Warning: Low Battery Status - On-Board Battery ***

DRAM:  16 MB

FLASH:  8 MB

In:    serial

Out:   serial

Err:   serial

Net:   SCC ETHERNET

PCMCIA:   No Card found

=> tftp 0x20000 uImage

TFTP from server 192.168.15.18; our IP address is 192.168.15.34

Filename 'uImage'.

Load address: 0x20000

Loading: #################################################################

         #################################################################

         ###################################

done

Bytes transferred = 842369 (cda81 hex)

=> bootm 0x20000

## Booting image at 00020000 ...

   Image Name:   Linux-2.4.20

   Image Type:   PowerPC Linux Kernel Image (gzip compressed)

   Data Size:    842305 Bytes = 822.6 kB

   Load Address: 00000000

   Entry Point:  00000000

   Verifying Checksum ... OK

   Uncompressing Kernel Image ... Error: inflate() returned -3

GUNZIP ERROR - must RESET board to recover



U-Boot 0.4.8 (Sep 18 2003 - 17:29:19)

CPU:   XPC86xxxZPnnC1 at 50 MHz: 4 kB I-Cache 4 kB D-Cache

Board: MBX860-006C860EN(01-W3527F31C)

         *** Warning: Low Battery Status - On-Board Battery ***

DRAM:  16 MB

FLASH:  8 MB

In:    serial

Out:   serial

Err:   serial

Net:   SCC ETHERNET

PCMCIA:   No Card found

=>

Any idea what is wrong ?

Thanks,
Amit.


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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: u-boot on mbx860
@ 2003-09-30 19:49 Rod Boyce
  0 siblings, 0 replies; 4+ messages in thread
From: Rod Boyce @ 2003-09-30 19:49 UTC (permalink / raw)
  To: linuxppc-embedded


My guess would be RAM unitisation is not correct in U-boot.  What
configuration is your MBX board?  If you transfer the kernel image into two
separate locations on your board and do a memory compare are both images the
same.  If you download the image back to the PC and do another memory
compare are the images still the same?

This is where I would start.

Regards,
Rod Boyce.

> -----Original Message-----
> From: Amit.Lubovsky@infineon.com [mailto:Amit.Lubovsky@infineon.com]
> Sent: Tuesday, 30 September 2003 9:02 p.m.
> To: linuxppc-embedded@lists.linuxppc.org
> Subject: u-boot on mbx860
>
>
> Hi,
> I have compiled u-boot for mbx860, created uImage (using the sources from
> denx site) but have
> a problem when I try to run the uImge on the board, follows what I get:
>
> create u-boot image
> -------------------
> [devel@amit_lap linuxppc_2_4_devel]$ make uImage
> . scripts/mkversion > .tmpversion
> dnsdomainname: Unknown host
> ppc_8xx-gcc -D__KERNEL__ -I/home/devel/mbx860/linuxppc_2_4_devel/include
> -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing
> -fno-common -fomit-frame-pointer
> -I/home/devel/mbx860/linuxppc_2_4_devel/arch/ppc -fsigned-char -msoft-
> float
> -pipe -ffixed-r2 -Wno-uninitialized -mmultiple -mstring
> -DUTS_MACHINE='"ppc"' -DKBUILD_BASENAME=version -c -o init/version.o
> init/version.c
> ...
>
> make[1]: Entering directory
> `/home/devel/mbx860/linuxppc_2_4_devel/arch/ppc/boot'
> make -C images vmlinux.gz
> make[2]: Entering directory
> `/home/devel/mbx860/linuxppc_2_4_devel/arch/ppc/boot/images'
> ppc_8xx-objcopy --strip-all -S -O binary
> /home/devel/mbx860/linuxppc_2_4_devel/vmlinux vmlinux
> gzip -vf9 vmlinux
> vmlinux:                 57.0% -- replaced with vmlinux.gz
> make[2]: Leaving directory
> `/home/devel/mbx860/linuxppc_2_4_devel/arch/ppc/boot/images'
> ./utils/mkimage.wrapper -A ppc -O linux -T kernel -C gzip -a 00000000 -e
> 00000000 \
> -n 'Linux-2.4.20' \
> -d images/vmlinux.gz images/vmlinux.PPCBoot
> Image Name:   Linux-2.4.20
> Created:      Tue Sep 30 11:50:22 2003
> Image Type:   PowerPC Linux Kernel Image (gzip compressed)
> Data Size:    842305 Bytes = 822.56 kB = 0.80 MB
> Load Address: 0x00000000
> Entry Point:  0x00000000
> ln -sf vmlinux.PPCBoot images/pImage
> ln -sf vmlinux.PPCBoot images/uImage
> make[1]: Leaving directory
> `/home/devel/mbx860/linuxppc_2_4_devel/arch/ppc/boot'
>
>
>
> load the uImage to the mbx board
> --------------------------------
>
> =>
>
>
>
> U-Boot 0.4.8 (Sep 18 2003 - 17:29:19)
>
>
>
> CPU:   XPC86xxxZPnnC1 at 50 MHz: 4 kB I-Cache 4 kB D-Cache
>
> Board: MBX860-006C860EN(01-W3527F31C)
>
>          *** Warning: Low Battery Status - On-Board Battery ***
>
> DRAM:  16 MB
>
> FLASH:  8 MB
>
> In:    serial
>
> Out:   serial
>
> Err:   serial
>
> Net:   SCC ETHERNET
>
> PCMCIA:   No Card found
>
> => tftp 0x20000 uImage
>
> TFTP from server 192.168.15.18; our IP address is 192.168.15.34
>
> Filename 'uImage'.
>
> Load address: 0x20000
>
> Loading: #################################################################
>
>          #################################################################
>
>          ###################################
>
> done
>
> Bytes transferred = 842369 (cda81 hex)
>
> => bootm 0x20000
>
> ## Booting image at 00020000 ...
>
>    Image Name:   Linux-2.4.20
>
>    Image Type:   PowerPC Linux Kernel Image (gzip compressed)
>
>    Data Size:    842305 Bytes = 822.6 kB
>
>    Load Address: 00000000
>
>    Entry Point:  00000000
>
>    Verifying Checksum ... OK
>
>    Uncompressing Kernel Image ... Error: inflate() returned -3
>
> GUNZIP ERROR - must RESET board to recover
>
>
>
> U-Boot 0.4.8 (Sep 18 2003 - 17:29:19)
>
> CPU:   XPC86xxxZPnnC1 at 50 MHz: 4 kB I-Cache 4 kB D-Cache
>
> Board: MBX860-006C860EN(01-W3527F31C)
>
>          *** Warning: Low Battery Status - On-Board Battery ***
>
> DRAM:  16 MB
>
> FLASH:  8 MB
>
> In:    serial
>
> Out:   serial
>
> Err:   serial
>
> Net:   SCC ETHERNET
>
> PCMCIA:   No Card found
>
> =>
>
> Any idea what is wrong ?
>
> Thanks,
> Amit.
>
>

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: u-boot on mbx860
  2003-09-30  9:02 Amit.Lubovsky
@ 2003-09-30 21:46 ` Wolfgang Denk
  0 siblings, 0 replies; 4+ messages in thread
From: Wolfgang Denk @ 2003-09-30 21:46 UTC (permalink / raw)
  To: Amit.Lubovsky; +Cc: linuxppc-embedded


Dear Amit,

in message <AD2F581BD7340A4C908AF1AFB066EA3B0E4831@ntah901e.savan.com> you wrote:
>
> I have compiled u-boot for mbx860, created uImage (using the sources from
> denx site) but have
> a problem when I try to run the uImge on the board, follows what I get:
...
> => bootm 0x20000
> ## Booting image at 00020000 ...
>    Image Name:   Linux-2.4.20
>    Image Type:   PowerPC Linux Kernel Image (gzip compressed)
>    Data Size:    842305 Bytes = 822.6 kB

Compressed size is 800+ kB, so uncompressed size will be around 2+ MB.

>    Load Address: 00000000
>    Entry Point:  00000000
>    Verifying Checksum ... OK
>    Uncompressing Kernel Image ... Error: inflate() returned -3

You load the image at 0x20000 = 128 kB. It will overwrite itself when
it starts to uncompress and load the kernel.

Use a higher download address, like 0x200000.

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
"We don't have to protect the environment -- the Second Coming is  at
hand."                                                   - James Watt

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2003-09-30 21:46 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <AD2F581BD7340A4C908AF1AFB066EA3B0E4819@ntah901e.savan.com>
2003-09-18 15:17 ` u-boot on mbx860 Wolfgang Denk
2003-09-30  9:02 Amit.Lubovsky
2003-09-30 21:46 ` Wolfgang Denk
  -- strict thread matches above, loose matches on Subject: below --
2003-09-30 19:49 Rod Boyce

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).