lkml.org 
[lkml]   [2001]   [Mar]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Linux 2.2.19pre16 - ip auto config problem
Hi folks,
after a long time, I tried to upgrade the kernel I use to boot some
diskless PIII Katmai, C-PCI hosts (attached lspci -vv) with DEC ethernet
chips.

I had trouble to use "IP auto configure" feature... It seems like it is
skipped; even more, net/core/dev.c:net_dev_init() call by
drivers/block/genhd.c:device_setup() is never called.

I remember that:
1) the IDE hd scan was done, with no devices found (it is diskless:-)
2) the net device driver was started, and it found 2 DEC chips

but a few lines later NFS root couldn't be mounted as no NFS server was
set... anyway I had activated debug stuff in ipconfig.c and put a lot
of printk/console_print in dev.c and none of them was displayed so I guess
that code was never called actually.

then I added a bunch of printk/console_print in device_setup(), especially
before blk_dev_init

-------------------------------------------
#ifdef CONFIG_PARPORT
parport_init();
#endif
chr_dev_init();
console_print("before blk_dev_init()\n");
blk_dev_init();
sti();
#ifdef CONFIG_I2O
i2o_init();
#endif
#ifdef CONFIG_BLK_DEV_DAC960
DAC960_Initialize();
#endif
#ifdef CONFIG_FC4_SOC
/* This has to be done before scsi_dev_init */
soc_probe();
#endif
#ifdef CONFIG_SCSI
console_print("before scsi_dev_init()\n");
scsi_dev_init();
#endif
#ifdef CONFIG_BLK_CPQ_DA
cpqarray_init();
#endif
#ifdef CONFIG_BLK_CPQ_CISS_DA
cciss_init();
#endif
#ifdef CONFIG_NET
console_print("before net_dev_init()\n");
net_dev_init();
#endif
------------------------------------------------

(I used console_print as I was scared it could mess with irq by the sti()
code...)

and all of a sudded it was all ok, I got all the printk/console_print...etc.
I got NFS root mounting... everything OK!

hope it is useful to you.

ciao


--
+------------------------------------------------------------------+
|Rossetti Davide INFN - Sezione Roma I - gruppo V, prog. APEmille|
| web : http://apegate.roma1.infn.it/~rossetti |
| """"" E-mail : davide.rossetti@roma1.infn.it |
| |o o| phone : (+39)-06-49914412 |
|--o00O-O00o-- fax : (+39)-06-49914423 (+39)-06-4957697 |
| address: Dipartimento di Fisica (V.E.) |
| Universita' di Roma "La Sapienza" |
| P.le Aldo Moro,5 I - 00185 Roma - Italy|
| gnupg pub. key: http://apegate.roma1.infn.it/~rossetti/gnupg.txt|
| |
|"Outside of a dog,a book is a man's best friend. Inside of a dog, |
| it's too dark to read." - Groucho Marx |
+------------------------------------------------------------------+

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:29    [W:0.068 / U:1.040 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site