[PATCH] phy: export phy_mii_ioctl

Pedro Luis D. L. carcadiz at hotmail.com
Thu Sep 20 00:31:05 EST 2007


On 9/19/07, Jon Smirl  wrote:

>On 9/19/07, Pedro Luis D. L.  wrote:
>>
>> Hello Jon,
>> I´m also working with a Phytec pcm030, but I can´t get it booted...
>> Which kernel are you using?
>> I tried to apply the 7 bestcomm patches from Sylvain and patch over these with this new ones that Domen released.
>> The base kernel I´m 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.
>>
>> Bytes transferred = 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 =  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)
> 
 

I checked that and both are the same:

In pcm030.c:

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

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

	return 1;
}

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


in pcm030.dts:

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

And it still doesn´t 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


 
_________________________________________________________________
Consigue el nuevo Windows Live Messenger
http://get.live.com/messenger/overview


More information about the Linuxppc-embedded mailing list