* 2.6.25-rc3 on mpc8548amc doesn't boot
@ 2008-02-27 12:37 maxime louvel
2008-02-27 16:25 ` maxime louvel
0 siblings, 1 reply; 7+ messages in thread
From: maxime louvel @ 2008-02-27 12:37 UTC (permalink / raw)
To: linuxppc-embedded
[-- Attachment #1.1: Type: text/plain, Size: 2003 bytes --]
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
[-- Attachment #1.2: Type: text/html, Size: 2322 bytes --]
[-- Attachment #2: 2.6.23.6.mpc8548_amc_2.6.25-rc3.mpc85xx_amc --]
[-- Type: application/octet-stream, Size: 1263 bytes --]
--- ../../srcChanges/2.6.23.6/mpc8548_amc.c 2008-02-27 12:27:33.000000000 +0000
+++ linux-2.6.25-rc3_changed/arch/powerpc/platforms/85xx/mpc85xx_amc.c 2008-02-27 10:29:13.000000000 +0000
@@ -1,5 +1,5 @@
/*
- * MPC8548 AMC board specific routines
+ * MPC85xx AMC board specific routines
*
* Copyright 2006 Freescale Semiconductor Inc.
*
@@ -23,14 +23,20 @@
#include <asm/prom.h>
#include <mm/mmu_decl.h>
#include <asm/udbg.h>
-#include <asm/of_device.h>
-#include <asm/of_platform.h>
+/* #include <asm/of_device.h> */
+/* #include <asm/of_platform.h> */
+/* commit:
+ * [POWERPC] 8xxx: Convert #include of asm/of_{platform, device}.h
+ into linux/of_{platform, device}.h.
+ */
+#include <linux/of_device.h>
+#include <linux/of_platform.h>
#include <asm/mpic.h>
#include <sysdev/fsl_soc.h>
-/*#include <sysdev/fsl_rio.h>*/
-#include "mpc85xx.h"
+#include <sysdev/fsl_rio.h>
+/* #include "mpc85xx.h" */
#ifndef CONFIG_PCI
unsigned long isa_io_base = 0;
@@ -141,7 +147,7 @@
.init_IRQ = mpc85xx_amc_pic_init,
.show_cpuinfo = mpc85xx_amc_show_cpuinfo,
.get_irq = mpic_get_irq,
- .restart = mpc85xx_restart,
+ .restart = fsl_rstcr_restart,
.calibrate_decr = generic_calibrate_decr,
.progress = udbg_progress,
};
[-- Attachment #3: 2.6.23.6.mpc8548dts_2.6.25-rc3.mpc8548dts --]
[-- Type: application/octet-stream, Size: 2593 bytes --]
--- ../../srcChanges/2.6.23.6/mpc8548amc.dts 2008-02-27 12:27:46.000000000 +0000
+++ linux-2.6.25-rc3_changed/arch/powerpc/boot/dts/mpc8548amc.dts 2008-02-27 10:22:13.000000000 +0000
@@ -15,6 +15,12 @@
compatible = "MPC8548AMC";
#address-cells = <1>;
#size-cells = <1>;
+ aliases {
+ ethernet0 = &enet0;
+ ethernet1 = &enet1;
+ ethernet2 = &enet2;
+ ethernet3 = &enet3;
+ };
cpus {
#cpus = <1>;
@@ -31,7 +37,6 @@
timebase-frequency = <0>; // 33 MHz, from uboot
bus-frequency = <0>; // From uboot
clock-frequency = <0>; // From uboot
- 32-bit;
};
};
@@ -43,14 +48,15 @@
soc8548@e0000000 {
#address-cells = <1>;
#size-cells = <1>;
- #interrupt-cells = <2>;
device_type = "soc";
ranges = <0 e0000000 00100000>;
reg = <e0000000 00100000>; // CCSRBAR 1M
bus-frequency = <0>;
-
+
i2c@3000 {
- device_type = "i2c";
+ #address-cells = <1>;
+ #size-cells = <0>;
+ cell-index = <0>
compatible = "fsl-i2c";
reg = <3000 100>;
interrupts = <1b 2>;
@@ -58,13 +64,24 @@
dfsrr;
};
+ i2c@3100 {
+ #address-cells = <1>;
+ #size-cells = <0>;
+ cell-index = <1>;
+ compatible = "fsl-i2c";
+ reg = <3100 100>;
+ interrupts = <1b 2>;
+ interrupt-parent = <&mpic>;
+ dfsrr;
+ };
+
mdio@24520 {
#address-cells = <1>;
#size-cells = <0>;
- device_type = "mdio";
- compatible = "gianfar";
+ compatible = "fsl,gianfar-mdio";
reg = <24520 20>;
linux,phandle = <24520>;
+
phy0: ethernet-phy@10 {
interrupt-parent = <&mpic>;
interrupts = <34 1>;
@@ -91,9 +108,8 @@
};
};
- ethernet@24000 {
- #address-cells = <1>;
- #size-cells = <0>;
+ enet0: ethernet@24000 {
+ cell-index = <0>;
device_type = "network";
model = "eTSEC";
compatible = "gianfar";
@@ -104,9 +120,8 @@
phy-handle = <&phy0>;
};
- ethernet@25000 {
- #address-cells = <1>;
- #size-cells = <0>;
+ enet1: ethernet@25000 {
+ cell-index = <1>;
device_type = "network";
model = "eTSEC";
compatible = "gianfar";
@@ -117,9 +132,8 @@
phy-handle = <&phy1>;
};
- ethernet@26000 {
- #address-cells = <1>;
- #size-cells = <0>;
+ enet3: ethernet@26000 {
+ cell-index = <2>;
device_type = "network";
model = "eTSEC";
compatible = "gianfar";
@@ -130,9 +144,8 @@
phy-handle = <&phy2>;
};
- ethernet@27000 {
- #address-cells = <1>;
- #size-cells = <0>;
+ enet4: ethernet@27000 {
+ cell-index = <3>;
device_type = "network";
model = "eTSEC";
compatible = "gianfar";
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: 2.6.25-rc3 on mpc8548amc doesn't boot
2008-02-27 12:37 2.6.25-rc3 on mpc8548amc doesn't boot maxime louvel
@ 2008-02-27 16:25 ` maxime louvel
2008-02-28 7:03 ` Kumar Gala
0 siblings, 1 reply; 7+ messages in thread
From: maxime louvel @ 2008-02-27 16:25 UTC (permalink / raw)
To: linuxppc-embedded
[-- Attachment #1: Type: text/plain, Size: 2510 bytes --]
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
[-- Attachment #2: Type: text/html, Size: 3077 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: 2.6.25-rc3 on mpc8548amc doesn't boot
2008-02-27 16:25 ` maxime louvel
@ 2008-02-28 7:03 ` Kumar Gala
2008-02-28 7:56 ` maxime louvel
0 siblings, 1 reply; 7+ messages in thread
From: Kumar Gala @ 2008-02-28 7:03 UTC (permalink / raw)
To: maxime louvel; +Cc: linuxppc-embedded
On Feb 27, 2008, at 10:25 AM, maxime louvel wrote:
> 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...
Any plans to submit patches to add support for this board to the kernel?
- k
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: 2.6.25-rc3 on mpc8548amc doesn't boot
2008-02-28 7:03 ` Kumar Gala
@ 2008-02-28 7:56 ` maxime louvel
2008-02-28 8:31 ` maxime louvel
2008-02-28 14:23 ` Kumar Gala
0 siblings, 2 replies; 7+ messages in thread
From: maxime louvel @ 2008-02-28 7:56 UTC (permalink / raw)
To: Kumar Gala; +Cc: linuxppc-embedded
[-- Attachment #1: Type: text/plain, Size: 730 bytes --]
Hi,
I wanted first to check how the kernel is behaving, with a few tests.
Then what is the best solution to do this ?
A patch from the 2.6.25-rc3 vanilla kernel ?
cheers,
Maxime
On Thu, Feb 28, 2008 at 7:03 AM, Kumar Gala <galak@kernel.crashing.org>
wrote:
>
> On Feb 27, 2008, at 10:25 AM, maxime louvel wrote:
>
> > 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...
>
> Any plans to submit patches to add support for this board to the kernel?
>
> - k
>
>
--
Maxime Louvel
0044 7964 5555 80
43 Allen road
Whitemore reans
WV60AW Wolverhampton
United Kingdom
[-- Attachment #2: Type: text/html, Size: 1135 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: 2.6.25-rc3 on mpc8548amc doesn't boot
2008-02-28 7:56 ` maxime louvel
@ 2008-02-28 8:31 ` maxime louvel
2008-02-28 14:21 ` Kumar Gala
2008-02-28 14:23 ` Kumar Gala
1 sibling, 1 reply; 7+ messages in thread
From: maxime louvel @ 2008-02-28 8:31 UTC (permalink / raw)
To: Kumar Gala; +Cc: linuxppc-embedded
[-- Attachment #1: Type: text/plain, Size: 1535 bytes --]
Hi,
I have a question for submitting my changes:
As I said I have commented a few line 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=40
I guess that shouldn't be integrated in my patch, should I ?
For what I have found on websearch that should come from my gcc version (
3.4.3 with specific stuff).
But still I needed that...
thanks,
Maxime
On Thu, Feb 28, 2008 at 7:56 AM, maxime louvel <m.louvel@gmail.com> wrote:
> Hi,
>
> I wanted first to check how the kernel is behaving, with a few tests.
> Then what is the best solution to do this ?
> A patch from the 2.6.25-rc3 vanilla kernel ?
>
> cheers,
> Maxime
>
>
> On Thu, Feb 28, 2008 at 7:03 AM, Kumar Gala <galak@kernel.crashing.org>
> wrote:
>
> >
> > On Feb 27, 2008, at 10:25 AM, maxime louvel wrote:
> >
> > > 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...
> >
> > Any plans to submit patches to add support for this board to the kernel?
> >
> > - k
> >
> >
>
>
> --
> 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
[-- Attachment #2: Type: text/html, Size: 2317 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: 2.6.25-rc3 on mpc8548amc doesn't boot
2008-02-28 8:31 ` maxime louvel
@ 2008-02-28 14:21 ` Kumar Gala
0 siblings, 0 replies; 7+ messages in thread
From: Kumar Gala @ 2008-02-28 14:21 UTC (permalink / raw)
To: maxime louvel; +Cc: linuxppc-embedded
On Feb 28, 2008, at 2:31 AM, maxime louvel wrote:
> Hi,
>
> I have a question for submitting my changes:
> As I said I have commented a few line 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=40
>
> I guess that shouldn't be integrated in my patch, should I ?
> For what I have found on websearch that should come from my gcc
> version (3.4.3 with specific stuff).
> But still I needed that...
I thought Josh published a patch to work around the toolchain issues
people had.
But yes, this shouldn't be part of the patch :)
- k
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: 2.6.25-rc3 on mpc8548amc doesn't boot
2008-02-28 7:56 ` maxime louvel
2008-02-28 8:31 ` maxime louvel
@ 2008-02-28 14:23 ` Kumar Gala
1 sibling, 0 replies; 7+ messages in thread
From: Kumar Gala @ 2008-02-28 14:23 UTC (permalink / raw)
To: maxime louvel; +Cc: linuxppc-embedded
On Feb 28, 2008, at 1:56 AM, maxime louvel wrote:
> Hi,
>
> I wanted first to check how the kernel is behaving, with a few tests.
> Then what is the best solution to do this ?
> A patch from the 2.6.25-rc3 vanilla kernel ?
2.6.25-rc3 is fine. The best solution is against my git-tree (git://
git.kernel.org/pub/scm/linux/kernel/git/galak/powerpc.git).
-k
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2008-02-28 14:23 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-27 12:37 2.6.25-rc3 on mpc8548amc doesn't boot maxime louvel
2008-02-27 16:25 ` maxime louvel
2008-02-28 7:03 ` Kumar Gala
2008-02-28 7:56 ` maxime louvel
2008-02-28 8:31 ` maxime louvel
2008-02-28 14:21 ` Kumar Gala
2008-02-28 14:23 ` Kumar Gala
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).