* smc91x does not use netdev=
@ 2006-07-18 22:06 Shaun Jackman
0 siblings, 0 replies; only message in thread
From: Shaun Jackman @ 2006-07-18 22:06 UTC (permalink / raw)
To: uClinux development list, LKML, Nicolas Pitre
On 7/18/06, Shaun Jackman <sjackman@gmail.com> wrote:
> I've compiled the smc91x driver into my kernel (CONFIG_SMC91X=y), but
> the boot process complains `IP-Config: No network devices available.'
> I tried using the netdev kernel parameter to start the smc91x driver
> (netdev=1,0x300,eth0 and ether=1,0x300,eth0), but I don't see any
> output on the console from the smc91x driver. The driver doesn't
> appear to be starting. How do I start the smc91x driver? I'm compiling
> linux.2.6.14.7-hsc0 for ARM nommu (Atmel AT91).
>
> Thanks,
> Shaun
The smc91x driver doesn't seem to pull its parameters from the netdev=
parameter. Instead, a `platform_bus' is used, which requires a call to
`platform_add_devices' -- an example of this below. Could the smc91x
driver be modified to pulls its parameters from netdev=?
Cheers,
Shaun
#include <linux/device.h>
static struct resource smc91x_resources[] = {
[0] = {
.name = "smc91x-regs",
.start = 0x300,
.end = 0x30f,
.flags = IORESOURCE_MEM,
},
[1] = {
.start = 17,
.end = 17,
.flags = IORESOURCE_IRQ,
},
};
static struct platform_device smc91x_device = {
.name = "smc91x",
.id = -1,
.num_resources = ARRAY_SIZE(smc91x_resources),
.resource = smc91x_resources,
};
static struct platform_device *devices[] __initdata = {
&smc91x_device,
};
void __init pathport_init(void)
{
platform_add_devices(devices, ARRAY_SIZE(devices));
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-07-18 22:06 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-07-18 22:06 smc91x does not use netdev= Shaun Jackman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®