From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.236]) by ozlabs.org (Postfix) with ESMTP id 81E9DDDE3C for ; Thu, 28 Feb 2008 03:25:32 +1100 (EST) Received: by wx-out-0506.google.com with SMTP id h27so2813023wxd.15 for ; Wed, 27 Feb 2008 08:25:30 -0800 (PST) Message-ID: Date: Wed, 27 Feb 2008 16:25:30 +0000 From: "maxime louvel" To: linuxppc-embedded@ozlabs.org Subject: Re: 2.6.25-rc3 on mpc8548amc doesn't boot In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_7200_31653630.1204129530183" References: List-Id: Linux on Embedded PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , ------=_Part_7200_31653630.1204129530183 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi again, I am answering my self sorry for the spam... Just to say that my problem has been solve if someone has something similar... My changes were good, I just didn't compile the good file... cheers, Maxime On Wed, Feb 27, 2008 at 12:37 PM, maxime louvel wrote: > Hi, > > I am still trying to make a 2.6.25-rc3 vanilla kernel boot (an work fine > in a second time) on a mpc8548amc board. > I have add the platform specific stuff from the sources of the current > kernel running on the cards. > What I have basically add is: > - arch/powerpc/platforms/85xx/mpc85xx_amc.c > - arch/powerpc/boot/dts/mpc8548amc.dts > I have also changed the Kconfig and Makefile in the > arch/powerpc/platforms/85xx to make the kernel try to support my board > > I have encountered some problem when compiling a uImage that I have > basically solve like this (in arch/powerpc/boot/Makefile) > #$(obj)/4xx.o: BOOTCFLAGS += -mcpu=405 > #$(obj)/ebony.o: BOOTCFLAGS += -mcpu=405 > #$(obj)/cuboot-taishan.o: BOOTCFLAGS += -mcpu=405 > #$(obj)/cuboot-katmai.o: BOOTCFLAGS += -mcpu=405 > #$(obj)/treeboot-walnut.o: BOOTCFLAGS += -mcpu=405 > > I have a gcc-3.4.3 embedded compiler with some stuff specific to the > platform. > > After the previous hack, I have been able to compile a uImage. > > I have tried to boot it and this is what I got: > AMC=> bootm 0x1000000 > ## Booting image at 01000000 ... > Image Name: Linux-2.6.24 > Image Type: PowerPC Linux Kernel Image (gzip compressed) > Data Size: 1802038 Bytes = 1.7 MB > Load Address: 00000000 > Entry Point: 00000000 > Verifying Checksum ... OK > Uncompressing Kernel Image ... OK > > No further messages... > > I have recently updated the uboot of the cards (to support the new image > version) and I am capable of booting a 2.6.23.6 image. > This last image has been compiled from a vanilla kernel where I have add > the platform specific stuff (cf beginning of this mail). > > Since my 2.6.23.6 image works fine, I have tried to adapt the file I have > added to the 2.6.25-rc3 kernel. > > I have made some changes in the arch/powerpc/platforms/85xx/mpc85xx_amc.c > file and in the mpc8548amc.dts file. > I have attached the changes I have done on both files. > > Do you have an idea ? > > cheers, > Maxime > > -- > Maxime Louvel > 0044 7964 5555 80 > 43 Allen road > Whitemore reans > WV60AW Wolverhampton > United Kingdom -- Maxime Louvel 0044 7964 5555 80 43 Allen road Whitemore reans WV60AW Wolverhampton United Kingdom ------=_Part_7200_31653630.1204129530183 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi again,

I am answering my self sorry for the spam...
Just to say that my problem has been solve if someone has something similar...
My changes were good, I just didn't compile the good file...

cheers,
Maxime

On Wed, Feb 27, 2008 at 12:37 PM, maxime louvel <m.louvel@gmail.com> wrote:
Hi,

I am still trying to make a 2.6.25-rc3 vanilla kernel boot (an work fine in a second time) on a mpc8548amc board.
I have add the platform specific stuff from the sources of the current kernel running on the cards.
What I have basically add is:
- arch/powerpc/platforms/85xx/mpc85xx_amc.c
- arch/powerpc/boot/dts/mpc8548amc.dts
I have also changed the Kconfig and Makefile in the arch/powerpc/platforms/85xx to make the kernel try to support my board

I have encountered some problem when compiling a uImage that I have basically solve like this (in arch/powerpc/boot/Makefile)
#$(obj)/4xx.o: BOOTCFLAGS += -mcpu=405
#$(obj)/ebony.o: BOOTCFLAGS += -mcpu=405
#$(obj)/cuboot-taishan.o: BOOTCFLAGS += -mcpu=405
#$(obj)/cuboot-katmai.o: BOOTCFLAGS += -mcpu=405
#$(obj)/treeboot-walnut.o: BOOTCFLAGS += -mcpu=405

I have a gcc-3.4.3 embedded compiler with some stuff specific to the platform.

After the previous hack, I have been able to compile a uImage.

I have tried to boot it and this is what I got:
AMC=> bootm 0x1000000
## Booting image at 01000000 ...
  Image Name:   Linux-2.6.24
  Image Type:   PowerPC Linux Kernel Image (gzip compressed)
  Data Size:    1802038 Bytes =  1.7 MB
  Load Address: 00000000
  Entry Point:  00000000
  Verifying Checksum ... OK
  Uncompressing Kernel Image ... OK

No further messages...

I have recently updated the uboot of the cards (to support the new image version) and I am capable of booting a 2.6.23.6 image.
This last image has been compiled from a vanilla kernel where I have add the platform specific stuff (cf beginning of this mail).

Since my 2.6.23.6 image works fine, I have tried to adapt the file I have added to the 2.6.25-rc3 kernel.

I have made some changes in the arch/powerpc/platforms/85xx/mpc85xx_amc.c file and in the mpc8548amc.dts file.
I have attached the changes I have done on both files.

Do you have an idea ?

cheers,
Maxime

--
Maxime Louvel
0044 7964 5555 80
43 Allen road
Whitemore reans
WV60AW Wolverhampton
United Kingdom



--
Maxime Louvel
0044 7964 5555 80
43 Allen road
Whitemore reans
WV60AW Wolverhampton
United Kingdom ------=_Part_7200_31653630.1204129530183--