From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from polito.it (unknown [130.192.3.45]) by ozlabs.org (Postfix) with ESMTP id ACD75DDDF3 for ; Mon, 12 May 2008 18:52:15 +1000 (EST) Message-ID: <48280504.1010602@libero.it> Date: Mon, 12 May 2008 10:51:16 +0200 From: Fabio Tosetto MIME-Version: 1.0 To: Grant Likely Subject: Re: MPC5200b MMC over SPI into PSC6 References: <481F4DFD.1000702@libero.it> <4821A551.3060205@libero.it> <482317E2.7000308@libero.it> In-Reply-To: Content-Type: multipart/alternative; boundary="------------050406010801050008060106" Cc: linuxppc-dev@ozlabs.org, Fabri List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , This is a multi-part message in MIME format. --------------050406010801050008060106 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Hello, in uboot i have setting the bootargs variable: => bootargs debug console=ttyPSC0,115200 root=/dev/ram => saveenv If I'm not wrong, the right sequence of commands should be the following: $ make ARCH=powerpc mpc5200_defconfig $ make ARCH=powerpc menuconfig .. [customizations]... $ make ARCH=powerpc CROSS_COMPILE=powerpc-linux-gnu- cuImage.lite5200b and this is the output: .. CHK include/linux/version.h CHK include/linux/utsrelease.h CALL scripts/checksyscalls.sh CHK include/linux/compile.h CALL arch/powerpc/kernel/systbl_chk.sh WRAP arch/powerpc/boot/cuImage.lite5200b DTC: dts->dtb on file "/home/ftosetto/linux-2.6.25.2-lite5200/arch/powerpc/boot/dts/lite5200b.dts" Image Name: Linux-2.6.25.2 Created: Mon May 12 10:29:40 2008 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 1518744 Bytes = 1483.15 kB = 1.45 MB Load Address: 0x00400000 Entry Point: 0x00400550 At this point I've loaded the cuImage and rootfs.uimage on the board: => usb start => usb scan => fatload usb 0 0x03000000 cuImage.lite5200b => fatload usb 0 0x04000000 rootfs.uimage => bootm 0x03000000 0x04000000 but it still hangs after this: ## Booting image at 03000000 ... Image Name: Linux-2.6.25.2 Created: 2008-05-12 7:39:07 UTC Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 1589091 Bytes = 1.5 MB Load Address: 00400000 Entry Point: 00400550 Verifying Checksum ... OK Uncompressing Kernel Image ... OK ## Loading RAMDisk Image at 04000000 ... Image Name: RamDisk Image RadioNav Created: 2007-10-24 15:48:39 UTC Image Type: PowerPC Linux RAMDisk Image (gzip compressed) Data Size: 1839123 Bytes = 1.8 MB Load Address: 00000000 Entry Point: 00000000 Verifying Checksum ... OK Loading Ramdisk to 0fd89000, end 0ff4a013 ... OK Memory <- <0x0 0x10000000> (256MB) CPU clock-frequency <- 0xbcd3d80 (198MHz) CPU timebase-frequency <- 0x1f78a40 (33MHz) CPU bus-frequency <- 0x7de2900 (132MHz) zImage starting: loaded at 0x00400000 (sp: 0x0ff4a958) Allocating 0x34d42c bytes for kernel ... gunzipping (0x00000000 <- 0x0040d000:0x007510f0)...done 0x32d150 bytes Using loader supplied ramdisk at 0xfd89000-0xff4a013 initrd head: 0x1f8b0808 Linux/PowerPC load: debug console=ttyPSC0,115200 root=/dev/ram Finalizing device tree... flat tree at 0x75e300 Where is the problem? The problem is the my rootfs.uimage? Do you have any idea? Best regards, Fabio Grant Likely ha scritto: > On Fri, May 9, 2008 at 9:02 AM, Fabri wrote: > >> Thanks for the patches, now some more rows are printed after RamDisk loading: >> >> Verifying Checksum ... OK >> Loading Ramdisk to 0fe68000, end 0ff49bf2 ... OK >> Memory <- <0x0 0x10000000> (256MB) >> CPU clock-frequency <- 0xbcd3d80 (198MHz) >> CPU timebase-frequency <- 0x1f78a40 (33MHz) >> CPU bus-frequency <- 0x7de2900 (132MHz) >> >> zImage starting: loaded at 0x00400000 (sp: 0x0ff4a958) >> Allocating 0x32d410 bytes for kernel ... >> gunzipping (0x00000000 <- 0x0040d000:0x00730fd4)...done 0x30d150 bytes >> Using loader supplied ramdisk at 0xfe68000-0xff49bf2 >> initrd head: 0x1f8b0808 >> >> Linux/PowerPC load: >> > ^^^^^^^^^^^^^^^^^^ > > Doesn't look like you are passing a kernel parameters line. The > kernel probably is booting, but doesn't know where to output the > console. Try adding "console=ttyPSC0,115200". > > Cheers, > g. > > > > --------------050406010801050008060106 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Hello,

in uboot i have setting the bootargs variable:


=> bootargs debug console=ttyPSC0,115200 root=/dev/ram
=> saveenv

If I'm not wrong, the right sequence of commands should be the following:

$ make ARCH=powerpc mpc5200_defconfig
$ make ARCH=powerpc menuconfig
.. [customizations]...
$ make ARCH=powerpc CROSS_COMPILE=powerpc-linux-gnu- cuImage.lite5200b

and this is the output:
..
  CHK     include/linux/version.h
  CHK     include/linux/utsrelease.h
  CALL    scripts/checksyscalls.sh
  CHK     include/linux/compile.h
  CALL    arch/powerpc/kernel/systbl_chk.sh
  WRAP    arch/powerpc/boot/cuImage.lite5200b
DTC: dts->dtb  on file
"/home/ftosetto/linux-2.6.25.2-lite5200/arch/powerpc/boot/dts/lite5200b.dts"
Image Name:   Linux-2.6.25.2
Created:      Mon May  12 10:29:40 2008
Image Type:   PowerPC Linux Kernel Image (gzip compressed)
Data Size:    1518744 Bytes = 1483.15 kB = 1.45 MB
Load Address: 0x00400000
Entry Point:  0x00400550


At this point I've loaded the cuImage and rootfs.uimage on the board:
=> usb start
=> usb scan
=> fatload usb 0 0x03000000 cuImage.lite5200b
=> fatload usb 0 0x04000000 rootfs.uimage
=> bootm 0x03000000 0x04000000

but it still hangs after this:

## Booting image at 03000000 ...                                               
   Image Name:   Linux-2.6.25.2                                                
   Created:      2008-05-12   7:39:07 UTC                                      
   Image Type:   PowerPC Linux Kernel Image (gzip compressed)                  
   Data Size:    1589091 Bytes =  1.5 MB                                       
   Load Address: 00400000                                                      
   Entry Point:  00400550                                                      
   Verifying Checksum ... OK                                                   
   Uncompressing Kernel Image ... OK                                           
## Loading RAMDisk Image at 04000000 ...                                       
   Image Name:   RamDisk Image RadioNav                                        
   Created:      2007-10-24  15:48:39 UTC                                      
   Image Type:   PowerPC Linux RAMDisk Image (gzip compressed)                 
   Data Size:    1839123 Bytes =  1.8 MB                                       
   Load Address: 00000000                                                      
   Entry Point:  00000000                                                      
   Verifying Checksum ... OK                                                   
   Loading Ramdisk to 0fd89000, end 0ff4a013 ... OK                            
Memory <- <0x0 0x10000000> (256MB)                                             
CPU clock-frequency <- 0xbcd3d80 (198MHz)                                      
CPU timebase-frequency <- 0x1f78a40 (33MHz)                                    
CPU bus-frequency <- 0x7de2900 (132MHz)                                        
                                                                               
zImage starting: loaded at 0x00400000 (sp: 0x0ff4a958)                         
Allocating 0x34d42c bytes for kernel ...                                       
gunzipping (0x00000000 <- 0x0040d000:0x007510f0)...done 0x32d150 bytes         
Using loader supplied ramdisk at 0xfd89000-0xff4a013                           
initrd head: 0x1f8b0808                                                        
                                                                               
Linux/PowerPC load: debug console=ttyPSC0,115200 root=/dev/ram
Finalizing device tree... flat tree at 0x75e300

Where is the problem? The problem is the my rootfs.uimage?

Do you have any idea?
Best regards,
Fabio


Grant Likely ha scritto:
On Fri, May 9, 2008 at 9:02 AM, Fabri <rider4ever@gmail.com> wrote:
  
Thanks for the patches, now some more rows are printed after RamDisk loading:

  Verifying Checksum ... OK
  Loading Ramdisk to 0fe68000, end 0ff49bf2 ... OK
Memory <- <0x0 0x10000000> (256MB)
CPU clock-frequency <- 0xbcd3d80 (198MHz)
CPU timebase-frequency <- 0x1f78a40 (33MHz)
CPU bus-frequency <- 0x7de2900 (132MHz)

zImage starting: loaded at 0x00400000 (sp: 0x0ff4a958)
Allocating 0x32d410 bytes for kernel ...
gunzipping (0x00000000 <- 0x0040d000:0x00730fd4)...done 0x30d150 bytes
Using loader supplied ramdisk at 0xfe68000-0xff49bf2
initrd head: 0x1f8b0808

Linux/PowerPC load:
    
                      ^^^^^^^^^^^^^^^^^^

Doesn't look like you are passing a kernel parameters line.  The
kernel probably is booting, but doesn't know where to output the
console.  Try adding "console=ttyPSC0,115200".

Cheers,
g.

  

  

--------------050406010801050008060106--