[ELDK] Sequoia AMCC 440EPx booting using cuImage.sequoia
Steven A. Falco
sfalco at harris.com
Fri Aug 8 15:55:59 CEST 2008
Nguyen Phuong Duy wrote:
> Hi forks,
> I'm trying to booting from u-boot version 1.3.3 without of using dtb file by trying cuImage.sequoia.
> These tool i am using:
> linux-2.6.25.7-denx
> uImage version 1.3.3
> I have done these steps to build cuImage:
> 1.make ARCH=powerpc CROSS_COMPILE=powerpc=linux- sequoia_defconfig
> 2.make ARCH=powerpc CROSS_COMPILE=powerpc=linux- zImage
> then I copy the file arch/powerpc/boot/cuImage.sequoia to folder /tftpboot/ on server:
> 3.cp arch/powerpc/boot/cuImage.sequoia 192.168.1.3:/tftpboot/sequoia
> Boot up the board:
>
> Board: Sequoia - AMCC PPC440EPx Evaluation Board, Rev. F, PCI=66 MHz
> I2C: ready
> DTT: 1 is 37 C
> DRAM: 256 MB
> FLASH: 64 MB
> NAND: 32 MiB
> PCI: Bus Dev VenId DevId Class Int
> In: serial
> Out: serial
> Err: serial
> USB: Host(int phy) Device(ext phy)
> Net: ppc_4xx_eth0
> Hit any key to stop autoboot: 5 0
>
> => tftp 0x200000 cuImage.sequoia
> tftp 0x200000 cuImage.sequoia
> Waiting for PHY auto negotiation to complete... done
> ENET Speed is 1000 Mbps - FULL duplex connection (EMAC0)
> Using ppc_4xx_eth0 device
> TFTP from server 192.168.1.1; our IP address is 192.168.1.3
> Filename 'cuImage.sequoia'.
> Load address: 0x200000
> Loading: T #################################################################
> #########################
> done
> Bytes transferred = 1319374 (1421ce hex)
>
> => tftp 0x4000000 sequoia/uRamdisk
> tftp 0x4000000 sequoia/uRamdisk
> ENET Speed is 1000 Mbps - FULL duplex connection (EMAC0)
> Using ppc_4xx_eth0 device
> TFTP from server 192.168.1.1; our IP address is 192.168.1.3
> Filename 'sequoia/uRamdisk'.
> Load address: 0x4000000
> Loading: #################################################################
> #################################################################
> #################################################################
> #################################################################
> ##########################
> done
> Bytes transferred = 4194304 (400000 hex)
>
> => imi 0x200000
> imi 0x200000
> ## Checking Image at 00200000 ...
> Legacy image found
> Image Name: Linux-2.6.26
> Image Type: PowerPC Linux Kernel Image (gzip compressed)
> Data Size: 1319310 Bytes = 1.3 MB
> Load Address: 00400000
> Entry Point: 00400458
> Verifying Checksum ... OK
> => run nfsargs addip addtty
>
> => print bootargs
> bootargs=root=/dev/nfs rw nfsroot=192.168.1.1:/nfsboot/sequoia ip=192.168.1.3:192.168.1.1:192.168.1.1:255.255.255.0:sequoia:eth0:off panic=1 console=tty0 console=ttyS0,115200
>
> => bootm 0x200000 0x4000000
> bootm 0x200000 0x4000000
> ## Booting kernel from Legacy Image at 00200000 ...
> Image Name: Linux-2.6.26
> Image Type: PowerPC Linux Kernel Image (gzip compressed)
> Data Size: 1319310 Bytes = 1.3 MB
> Load Address: 00400000
> Entry Point: 00400458
> Verifying Checksum ... OK
> Uncompressing Kernel Image ... OK
> Wrong Ramdisk Image Format
> CPU clock-frequency <- 0x27bc86a4 (667MHz)
> CPU timebase-frequency <- 0x27bc86a4 (667MHz)
> /plb: clock-frequency <- 9ef21a9 (167MHz)
> /plb/opb: clock-frequency <- 4f790d4 (83MHz)
> /plb/opb/ebc: clock-frequency <- 34fb5e3 (56MHz)
> /plb/opb/serial at ef600300: clock-frequency <- a8c000 (11MHz)
> /plb/opb/serial at ef600400: clock-frequency <- a8c000 (11MHz)
> /plb/opb/serial at ef600500: clock-frequency <- 42ecac (4MHz)
> /plb/opb/serial at ef600600: clock-frequency <- 42ecac (4MHz)
> Memory <- <0x0 0x0 0xffff000> (255MB)
> ethernet0: local-mac-address <- 00:10:ec:00:ee:73
> ethernet1: local-mac-address <- 00:00:00:00:00:00
> zImage starting: loaded at 0x00400000 (sp: 0x0ff12800)
> Allocating 0x2b6fbc bytes for kernel ...
> gunzipping (0x00000000 <- 0x0040e000:0x006e1cd0)...done 0x290f3d bytes
> Linux/PowerPC load: root=/dev/nfs rw nfsroot=10.38.6.99:/nfsboot/sequoia ip=10.38.6.141:10.38.6.99:10.38.4.1:255.255.252.0:sequoia:eth0:off panic=1 console=tty0 console=ttyS0,115200
> Finalizing device tree... flat tree at 0x6ee300
>
> -----------------------------------------------------------------
> It just run to that point. I don't know what I am was wrong.
> These are enviroment of u-boot
> => version
> U-Boot 1.3.3 (July 19 2008 - 12:58:08)
> => print nfsargs
> nfsargs=setenv bootargs root=/dev/nfs rw nfsroot=${serverip}:${rootpath}
> => print addip
> addip=setenv bootargs ${bootargs} ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:${hostname}:${netdev}:off panic=1
> => print addtty
> addtty=setenv bootargs ${bootargs} console=tty0 console=ttyS0,${baudrate}
> => print rootpath
> rootpath=/nfsboot/sequoia
> => print baudrate
> baudrate=115200
>
>
When I build for the sequoia, I don't specify zImage in the make - don't
know if that matters. Here are the last few lines of the make:
BOOTCC arch/powerpc/boot/cuboot-rainier.o
BOOTCC arch/powerpc/boot/redboot-8xx.o
BOOTCC arch/powerpc/boot/ep8248e.o
BOOTCC arch/powerpc/boot/cuboot-warp.o
BOOTCC arch/powerpc/boot/cuboot-85xx-cpm2.o
WRAP arch/powerpc/boot/cuImage.sequoia
DTC: dts->dtb on file
"/n/maytag/proj/hydra/sw/sfalco/linux-2.6-denx/arch/powerpc/boot/dts/sequoia.dts"
Image Name: Linux-2.6.25.4-00021-g4b3b5ea
Created: Fri Aug 8 09:51:58 2008
Image Type: PowerPC Linux Kernel Image (gzip compressed)
Data Size: 1780673 Bytes = 1738.94 kB = 1.70 MB
Load Address: 0x00400000
Entry Point: 0x00400454
Mine boots and runs fine. Does your build look similar?
Steve
More information about the eldk
mailing list