linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Netconsole on 8260
@ 2004-07-01 22:17 Rune Torgersen
  2004-07-02 15:37 ` Tom Rini
  0 siblings, 1 reply; 5+ messages in thread
From: Rune Torgersen @ 2004-07-01 22:17 UTC (permalink / raw)
  To: linuxppc-embedded


Hi
I am trying to get netconsole up and running on a 8260 kernel (2.6.7)

My problem is that the netconsile driver seems to start (and abort) way
too eraly for the 8260. The FCC ethernet drivcer is not initialized yet,
so the netconsiole driver aborts because it cannot find the ethernet
device.

Anybody know how to delay the startup of the netconsole driver to after
FCC ethernets are up?

Linux version 2.6.7 (runet@ernie.innovsys.com) (gcc version 3.2.2
20030217 (Yellow Dog Linux 3.0 3.2.2-2a_1)) #21 Thu Jul 1 16:50:54
 CDT 2004
Innovative Systems LLC AP2 port
Using IDMA1 for MPC8260 device erratum PCI 9 workaround
On node 0 totalpages: 131072
  DMA zone: 131072 pages, LIFO batch:16
  Normal zone: 0 pages, LIFO batch:1
  HighMem zone: 0 pages, LIFO batch:1
Built 1 zonelists
Kernel command line: netconsole=6665@172.23.11.125/eth1,@172.23.14.39/
root=/dev/hda3 rw ip=172.23.11.125:172.23.14.39:172.23.8.150:
255.255.248.0:gold4_cpu1:eth1:none
netconsole: local port 6665
netconsole: local IP 172.23.11.125
netconsole: interface eth1
netconsole: remote port 6666
netconsole: remote IP 172.23.14.39
netconsole: remote ethernet address ff:ff:ff:ff:ff:ff
PID hash table entries: 4096 (order 12: 32768 bytes)
Warning: real time clock seems stuck!
Memory: 517248k available (1724k kernel code, 448k data, 268k init, 0k
highmem)
Calibrating delay loop... 192.00 BogoMIPS
Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
Mount-cache hash table entries: 512 (order: 0, 4096 bytes)
NET: Registered protocol family 16
PCI: Probing PCI hardware
PCI: Cannot allocate resource region 0 of device 0000:00:00.0
PCI: Cannot allocate resource region 1 of device 0000:00:00.0
Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
netconsole: eth1 doesn't exist, aborting.

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Netconsole on 8260
  2004-07-01 22:17 Netconsole on 8260 Rune Torgersen
@ 2004-07-02 15:37 ` Tom Rini
  0 siblings, 0 replies; 5+ messages in thread
From: Tom Rini @ 2004-07-02 15:37 UTC (permalink / raw)
  To: Rune Torgersen; +Cc: linuxppc-embedded


On Thu, Jul 01, 2004 at 05:17:01PM -0500, Rune Torgersen wrote:

> Hi
> I am trying to get netconsole up and running on a 8260 kernel (2.6.7)
>
> My problem is that the netconsile driver seems to start (and abort) way
> too eraly for the 8260. The FCC ethernet drivcer is not initialized yet,
> so the netconsiole driver aborts because it cannot find the ethernet
> device.
>
> Anybody know how to delay the startup of the netconsole driver to after
> FCC ethernets are up?

AFAIK, the cpm2 enet drivers do not support the NETPOLL API, so
netconsole will not work yet.  But the early initalization of netconsole
is fine, that's just setting up the params.  Once ethernet comes up, the
console gets dumped out.

--
Tom Rini
http://gate.crashing.org/~trini/

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* RE: Netconsole on 8260
@ 2004-07-02 15:43 Rune Torgersen
  2004-07-02 15:51 ` Tom Rini
  0 siblings, 1 reply; 5+ messages in thread
From: Rune Torgersen @ 2004-07-02 15:43 UTC (permalink / raw)
  To: Tom Rini; +Cc: linuxppc-embedded


As far as I could see, the only thing needed to support the netpoll API
was to add a poll function that would call the interrupt driver. I did
that. Console does not get dumped to ethertnet

According to wat gets printed, netconsole  init aborts when it does not
find a ethernet device.
This is way later thatn parameter initialization, but still before FCC's
are initialized (see kernel dump from original post), last line before I
cut out some text says:

netconsole: eth1 doesn't exist, aborting.


> -----Original Message-----
> From: Tom Rini [mailto:trini@kernel.crashing.org]
> > Anybody know how to delay the startup of the netconsole driver to
> > after FCC ethernets are up?
>
> AFAIK, the cpm2 enet drivers do not support the NETPOLL API,
> so netconsole will not work yet.  But the early initalization
> of netconsole is fine, that's just setting up the params.
> Once ethernet comes up, the console gets dumped out.

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Netconsole on 8260
  2004-07-02 15:43 Rune Torgersen
@ 2004-07-02 15:51 ` Tom Rini
  0 siblings, 0 replies; 5+ messages in thread
From: Tom Rini @ 2004-07-02 15:51 UTC (permalink / raw)
  To: Rune Torgersen; +Cc: linuxppc-embedded


On Fri, Jul 02, 2004 at 10:43:11AM -0500, Rune Torgersen wrote:

> As far as I could see, the only thing needed to support the netpoll API
> was to add a poll function that would call the interrupt driver. I did
> that. Console does not get dumped to ethertnet
>
> According to wat gets printed, netconsole  init aborts when it does not
> find a ethernet device.
> This is way later thatn parameter initialization, but still before FCC's
> are initialized (see kernel dump from original post), last line before I
> cut out some text says:

Ah yes, that's the other problem...  netconsole relies on link order to
be linked in after all other network drivers.  But since the cpm2 ones
are currently broken and live in arch/ppc, the link order is busted.

You can change netconsole from module_init to late_initcall(), but I
don't think you can convince upstream that this is the correct fix.

--
Tom Rini
http://gate.crashing.org/~trini/

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* RE: Netconsole on 8260
@ 2004-07-02 16:18 Rune Torgersen
  0 siblings, 0 replies; 5+ messages in thread
From: Rune Torgersen @ 2004-07-02 16:18 UTC (permalink / raw)
  To: Tom Rini; +Cc: linuxppc-embedded


> -----Original Message-----
> From: Tom Rini [mailto:trini@kernel.crashing.org]
> You can change netconsole from module_init to
> late_initcall(), but I don't think you can convince upstream
> that this is the correct fix.

Thanks... That worked. I'll probably just keep that as a local change
here.


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2004-07-02 16:18 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-07-01 22:17 Netconsole on 8260 Rune Torgersen
2004-07-02 15:37 ` Tom Rini
  -- strict thread matches above, loose matches on Subject: below --
2004-07-02 15:43 Rune Torgersen
2004-07-02 15:51 ` Tom Rini
2004-07-02 16:18 Rune Torgersen

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).