ltib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Ltib] FW: boot problems after upgrading ltib version for MPC8315ERD


From: Stuart Hughes
Subject: Re: [Ltib] FW: boot problems after upgrading ltib version for MPC8315ERDB
Date: Mon, 11 Jan 2010 15:41:09 +0000
User-agent: Thunderbird 2.0.0.16 (X11/20080707)

Hi Bob,

For BSPs that need to override this, you'd expect an entry in their platform's main.lkc file something like this:

# capabilities if different from defaults.lkc

config SYSCFG_DTU_LOAD_ADDR
    string
    default "0x1200000"

Note: that address is a just by way of example (as it's board/RAM dependent).

Normally Freescale BSP developers would have set a good default for this, it's worth dropping them an email and asking how this is supposed to be booted. If you get an answer please could you post a summary of what's needed to this list (or ask the Freescale guys/gals to reply on this forum).

Regards, Stuart

Belcham Rob (ST-CO/ENG5) wrote:
Hi Stuart,

The BSP ISO update was downloaded from the freescale website.
The version of u-boot is 2009.03-rc2.

Thanks for the dtu / dtb tip - I've managed to get a bit further & with the aid 
of some printf's I think I can see what's going on :-

The boot commands I'm using are :-

=> tftp 200000 uImage
=> tftp 400000 mpc8315erdb-default.dtu
=> bootm 200000 - 400000

What seems to happen, is the FDT is found at 400000 and then re-located to the 
load address at 300000, which is contained in the fdt image header. When the 
kernel is then uncompressed to address 0, it overwrites the FDT at location 
300000.

## Flattened Device Tree from Legacy Image at 00400000
   Image Name:
   Created:      2010-01-08  10:24:30 UTC
   Image Type:   PowerPC Linux Flat Device Tree (uncompressed)
   Data Size:    9953 Bytes =  9.7 kB
   Load Address: 00300000
   Entry Point:  00000000
   Verifying Checksum ... OK

   Uncompressing Kernel Image ...  load(0x0) unc_len(0x800000), 
image_start(0x200040), image_len(0x1FA245)

From using find-in-files, I've found the following line in 
dist/lfs-5.1/kernel/kernel-common.tmpl

   DTC_LOAD_ADDR=${SYSCFG_DTU_LOAD_ADDR:-0x300000}

Which I believe is providing the default load address for the mkimage'd dtb.

So my next question is : where is the correct place to define SYSCFG_DTU_LOAD_ADDR ? - it currently doesn't appear to be defined (I can't find using find-in-files). I want to try moving this to address 400000 so that it doesn't get trashed by the uncompressed kernel.
Thanks

Rob Belcham


Principal DSP Engineer
Midas and Klark Teknik Please note my email will be changing shortly to address@hidden Please update your records accordingly
Switch Board: +44 1562 741515

www.midasconsoles.com │ www.klarkteknik.com │ www.ktsquareone.com
Bosch Communications Systems

Telex Communications (UK) Limited, Limited Company, Number 2414018, 
Incorporated in England.
Registered Office: Klark Industrial Park, Walter Nash Road, Kidderminster. Worcestershire. DY11 7HJ. UK. Warning! The information contained in this e-mail is confidential and is intended for the use only of the addressee. Any unauthorised dissemination or copying of this e-mail and any use or disclosure of information contained in it is strictly prohibited and may be illegal. Please note that we cannot accept any responsibility for any transmitted viruses. It is therefore your responsibility to virus scan attachments.
-----Original Message-----
From: address@hidden [mailto:address@hidden On Behalf Of Stuart Hughes
Sent: 10 January 2010 11:37
To: Belcham Rob (ST-CO/ENG5)
Cc: address@hidden
Subject: Re: [Ltib] FW: boot problems after upgrading ltib version for 
MPC8315ERDB

Hi Bob,

Was the update (20091019) a Freescale BSP ISO or Savannah CVS?
Also, what version of u-boot is this?

Looking at your failure it seems the problem is likely to do with the boot arguments you are passing. What is your boot command line?

For NFS boot using powerpc for later u-boots and later zImage kernels it should be something like (after loading the images)

bootm bootm $loadkernaddr - $loaddtbaddr

Note the device tree you load needs to be a .dtu (i.e. a .dtb that mkimage has been run on). LTIB normally builds these for you and you'd see them in rootfs/boot.

Regards, Stuart

Belcham Rob (ST-CO/ENG5) wrote:
Hi, I'm not sure if this is really the right place to ask, but since the issue I have is related to problems encountered when updating the version of Ltib I'm using - I thought it would be a good place to start. I'm using the ltib from freescale for the MPC8315E Power quicc processor. I was previously using the release that came with the dev board dated 20080630, which used u-boot 1.20 to NFS boot my board. I have switched to the latest ltib release dated 20091019 but I can't get my board to boot correcly with the new linux kernel & u-boot images that I've built. I've programmed the latest flavour of u-boot into my board, but it fails when trying to boot into linux. Here's the boot-up output : U-Boot 2009.03-rc2 (Jan 07 2010 - 15:47:10) MPC83XX Reset Status: CPU: e300c3, MPC8315E, Rev: 1.1 at 400 MHz, CSB: 133.333 MHz
Board: Freescale MPC8315ERDB Rev 1.0
I2C:   ready
DRAM:  128 MB
FLASH:  8 MB
NAND:  32 MiB
PCIE0: No link
PCIE1: No link
In:    serial
Out:   serial
Err:   serial
Net:   eTSEC0, eTSEC1
Hit any key to stop autoboot:  0
Speed: 100, full duplex
Using eTSEC0 device
TFTP from server 192.168.20.3; our IP address is 192.168.20.10
Filename 'uImage'.
Load address: 0x500000
Loading: #################################################################
         #################################################################
         ###########
done
Bytes transferred = 2069379 (1f9383 hex)
Speed: 100, full duplex
Using eTSEC0 device
TFTP from server 192.168.20.3; our IP address is 192.168.20.10
Filename 'mpc8315erdb-default.dtb'.
Load address: 0x400000
Loading: #
done
Bytes transferred = 9953 (26e1 hex)
## Booting kernel from Legacy Image at 00500000 ...
   Image Name:   Linux-2.6.29.6-rt23
   Created:      2010-01-07  15:31:48 UTC
   Image Type:   PowerPC Linux Kernel Image (gzip compressed)
   Data Size:    2069315 Bytes =  2 MB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 00400000
   Booting using the fdt blob at 0x400000
   Uncompressing Kernel Image ... OK
ERROR: image is not a fdt - must RESET the board to recover.
Resetting the board.
At which point, the unit reboots & starts all over again. I've checked that the version of mpc8315erdb-default.dtb is the one built by the latest ltib. Not sure where to go from here -- anyone got any ideas ? Thanks in advance. Rob Belcham

Principal DSP Engineer
*Midas and Klark Teknik*
/Please note my email will be changing shortly to /address@hidden <mailto:address@hidden>./ Please update your records accordingly/ Switch Board: +44 1562 741515

_www.midasconsoles.com_ <http://www.midasconsoles.com/> │ _www.klarkteknik.com_ <http://www.klarkteknik.com/> │ _www.ktsquareone.com_ <http://www.ktsquareone.com/> *Bosch Communications Systems

*Telex Communications (UK) Limited, Limited Company, Number 2414018, Incorporated in England. Registered Office: Klark Industrial Park, Walter Nash Road, Kidderminster. Worcestershire. DY11 7HJ. UK. *Warning!* The information contained in this e-mail is confidential and is intended for the use only of the addressee. Any unauthorised dissemination or copying of this e-mail and any use or disclosure of information contained in it is strictly prohibited and may be illegal. Please note that we cannot accept any responsibility for any transmitted viruses. It is therefore your responsibility to virus scan attachments.

------------------------------------------------------------------------

_______________________________________________
LTIB home page: http://ltib.org

Ltib mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/ltib


_______________________________________________
LTIB home page: http://ltib.org

Ltib mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/ltib





reply via email to

[Prev in Thread] Current Thread [Next in Thread]