From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ey-out-2122.google.com (ey-out-2122.google.com [74.125.78.25]) by ozlabs.org (Postfix) with ESMTP id DE957DE2FA for ; Fri, 16 Jan 2009 00:10:02 +1100 (EST) Received: by ey-out-2122.google.com with SMTP id d26so132624eyd.15 for ; Thu, 15 Jan 2009 05:10:00 -0800 (PST) Message-ID: <8cad0aa0901150510o7a8146f1m2045e252c5e1cf24@mail.gmail.com> Date: Thu, 15 Jan 2009 14:10:00 +0100 From: "Jean-Michel Hautbois" To: "Anatolij Gustschin" Subject: Re: [MPC8272ADS]Cannot start my Linux Kernel In-Reply-To: <496F318D.6010302@denx.de> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_9654_6238053.1232025000390" References: <8cad0aa0901150342s2362e53bqf9472c1dc239636c@mail.gmail.com> <496F318D.6010302@denx.de> Cc: linuxppc-dev@ozlabs.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , ------=_Part_9654_6238053.1232025000390 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline 2009/1/15 Anatolij Gustschin > Jean-Michel Hautbois wrote: > > > I have a MPC8272ADS board, 64MB RAM, 8MB Flash. > > I compiled u-boot using the existing config file, and compiled my linux > > kernel successfully with the defconfig file too. > > > > I have updated u-boot, downloaded my kernel file, and a ramdisk image > > from the eldk distribution. > > I have tried using a lot of bootargs ( > > bootargs root=/dev/ram rw console=ttyS0,115200 > > bootargs through nfs, etc.) > > > > When I am resetting my card, it reboots: > > bootargs=root=/dev/ram rw console=ttyS0,115200 > > bootcmd=bootm ff800000 ff980000 > > you also need to build a device tree blob for mpc8272ads, load it > into RAM or flash and boot using "bootm" command as follows: > > => bootm ff800000 ff980000 %FDT_ADDR%" > > See also http://www.denx.de/wiki/view/DULG/BootingEmbeddedLinux > > Best regards, > Anatolij I just tried. I created a dtb from the file arch/powerpc/boot/dst/mpc8272ads.dts file. It is not rebboting, but handling (my "run" led is switching off). => tftp 2000000 mpc8272ads.dtb Using FCC1 ETHERNET device TFTP from server 10.0.0.1; our IP address is 10.0.0.2 Filename 'mpc8272ads.dtb'. Load address: 0x2000000 Loading: # done Bytes transferred = 4442 (115a hex) => bootm FF800000 FF980000 2000000 ## Booting kernel from Legacy Image at ff800000 ... Image Name: Linux-2.6.29-rc1-01197-g5a7b6e7- Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 1487167 Bytes = 1.4 MB Load Address: 00000000 Entry Point: 00000000 Verifying Checksum ... OK ## Loading init Ramdisk from Legacy Image at ff980000 ... Image Name: Simple Embedded Linux Framework Image Type: PowerPC Linux RAMDisk Image (gzip compressed) Data Size: 1730966 Bytes = 1.7 MB Load Address: 00000000 Entry Point: 00000000 Verifying Checksum ... OK ## Flattened Device Tree blob at 02000000 Booting using the fdt blob at 0x2000000 Uncompressing Kernel Image ... OK Loading Ramdisk to 039d7000, end 03b7d996 ... OK Loading Device Tree to 007fb000, end 007ff159 ... OK Unable to update property /cpus/cpu@0:bus-frequency, err=FDT_ERR_NOTFOUND Unable to update property /cpus/cpu@0:timebase-frequency, err=FDT_ERR_NOTFOUND Unable to update property /cpus/cpu@0:clock-frequency, err=FDT_ERR_NOTFOUND ------=_Part_9654_6238053.1232025000390 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline
2009/1/15 Anatolij Gustschin <agust@denx.de>
Jean-Michel Hautbois wrote:

> I have a MPC8272ADS board, 64MB RAM, 8MB Flash.
> I compiled u-boot using the existing config file, and compiled my linux
> kernel successfully with the defconfig file too.
>
> I have updated u-boot, downloaded my kernel file, and a ramdisk image
> from the eldk distribution.
> I have tried using a lot of bootargs (
> bootargs root=/dev/ram rw console=ttyS0,115200
> bootargs through nfs, etc.)
>
> When I am resetting my card, it reboots:
> bootargs=root=/dev/ram rw console=ttyS0,115200
> bootcmd=bootm ff800000 ff980000

you also need to build a device tree blob for mpc8272ads, load it
into RAM or flash and boot using "bootm" command as follows:

=> bootm ff800000 ff980000 %FDT_ADDR%"

See also http://www.denx.de/wiki/view/DULG/BootingEmbeddedLinux

Best regards,
Anatolij

I just tried. I created a dtb from the file arch/powerpc/boot/dst/mpc8272ads.dts file.
It is not rebboting, but handling (my "run" led is switching off).

=> tftp 2000000 mpc8272ads.dtb
Using FCC1 ETHERNET device
TFTP from server 10.0.0.1; our IP address is 10.0.0.2
Filename 'mpc8272ads.dtb'.
Load address: 0x2000000
Loading: #
done
Bytes transferred = 4442 (115a hex)
=> bootm FF800000 FF980000 2000000
## Booting kernel from Legacy Image at ff800000 ...
   Image Name:   Linux-2.6.29-rc1-01197-g5a7b6e7-
   Image Type:   PowerPC Linux Kernel Image (gzip compressed)
   Data Size:    1487167 Bytes =  1.4 MB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at ff980000 ...
   Image Name:   Simple Embedded Linux Framework
   Image Type:   PowerPC Linux RAMDisk Image (gzip compressed)
   Data Size:    1730966 Bytes =  1.7 MB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 02000000
   Booting using the fdt blob at 0x2000000
   Uncompressing Kernel Image ... OK
   Loading Ramdisk to 039d7000, end 03b7d996 ... OK
   Loading Device Tree to 007fb000, end 007ff159 ... OK
Unable to update property /cpus/cpu@0:bus-frequency, err=FDT_ERR_NOTFOUND
Unable to update property /cpus/cpu@0:timebase-frequency, err=FDT_ERR_NOTFOUND
Unable to update property /cpus/cpu@0:clock-frequency, err=FDT_ERR_NOTFOUND

------=_Part_9654_6238053.1232025000390--