Thread (47 messages) 47 messages, 13 authors, 2007-10-08

RE: [PATCH] phy: export phy_mii_ioctl

From: Pedro Luis D. L. <hidden>
Date: 2007-09-19 14:31:07

On 9/19/07, Jon Smirl  wrote:
On 9/19/07, Pedro Luis D. L.  wrote:
quoted
Hello Jon,
I=B4m also working with a Phytec pcm030, but I can=B4t get it booted...
Which kernel are you using?
I tried to apply the 7 bestcomm patches from Sylvain and patch over thes=
e with this new ones that Domen released.
quoted
The base kernel I=B4m using is 2.6.22.6 from kernel.org.
Although I used the patch that creates pcm030.c in arch/platforms/52xx/ =
and compiled using this file, it gets halted at booting time.
quoted
Bytes transferred =3D 5091 (13e3 hex)
## Booting image at 00500000 ...
   Image Name:   Linux-2.6.22.6
   Created:      2007-09-19   8:53:02 UTC
   Image Type:   PowerPC Linux Kernel Image (gzip compressed)
   Data Size:    1196911 Bytes =3D  1.1 MB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK
   Booting using flat device tree at 0x400000

(No more output and boot is halted)
=20
=20

I checked that and both are the same:

In pcm030.c:

static int __init pcm030_probe(void)
{
	unsigned long node =3D of_get_flat_dt_root();

	if (!of_flat_dt_is_compatible(node, "pcm030"))
		return 0;

	return 1;
}

define_machine(pcm030) {
	.name 		=3D "pcm030",
	.probe 		=3D pcm030_probe,
	.setup_arch 	=3D pcm030_setup_arch,
	.restart	=3D mpc52xx_restart,
	.init           =3D pcm030_init,
	.init_IRQ 	=3D mpc52xx_init_irq,
	.get_irq 	=3D mpc52xx_get_irq,
	.show_cpuinfo	=3D pcm030_show_cpuinfo,
	.calibrate_decr	=3D generic_calibrate_decr,
};


in pcm030.dts:

	model =3D "pcm030";
	compatible =3D "pcm030\0mpc5200b\0mpc52xx";
	#address-cells =3D ;
	#size-cells =3D ;

And it still doesn=B4t boot...
I know it sounds hard, but... Can I skip the "if (!of_flat_dt_is_compatible=
(node, "pcm030"))" line?

This pcm030.c and pcm030.dts files work and boot with 2.6.20 kernel...

Pedro Dominguez


=20
_________________________________________________________________
Consigue el nuevo Windows Live Messenger
http://get.live.com/messenger/overview=
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help