Re: Problems with network autoconfiguration for diskless clients

From: Johannes Elmar Dickgreber (johannes@abacom-online.net)
Date: Mon Feb 21 2000 - 18:50:08 EST


Hello
>
>The new kernels 2.3.4[3456] start in the same order: first the SCSI
>driver is installed,
>but then the message
>Config: No network devices available.
>comes up and after this the network driver 3c95x.c is installed too
>late. As a consequence the kernel hangs with the message
> Root-NFS: No NFS server available, giving up.
>Has anyone else the same problem and perhaps a solution?
>
>Thanks
>
> Hans-Juergen Knobloch

I got the same thing,
there is something wrong how things are started
My Solution

diff -u -r linux-2.3.45/init/main.c linux/init/main.c
--- linux-2.3.45/init/main.c Fri Feb 11 02:07:26 2000
+++ linux/init/main.c Sat Feb 19 19:38:48 2000
@@ -98,6 +98,8 @@
 extern void ecard_init(void);
+extern void ip_auto_config(void);
+
 #if defined(CONFIG_SYSVIPC)
 extern void ipc_init(void);
 #endif
@@ -664,6 +666,11 @@
 #endif
        do_initcalls();
+
+/* test von remote boot ip_auto_conf */
+#ifdef CONFIG_IP_PNP
+ ip_auto_config();
+#endif
        /* .. filesystems .. */
        filesystem_setup();
diff -u -r linux-2.3.45/net/core/dev.c linux/net/core/dev.c
--- linux-2.3.45/net/core/dev.c Sun Feb 13 19:18:03 2000
+++ linux/net/core/dev.c Sat Feb 19 19:39:44 2000
@@ -2024,7 +2024,10 @@
  */
 extern void net_device_init(void);
+
+/* ist in init/main.c testweise
 extern void ip_auto_config(void);
+*/
 int __init net_dev_init(void)
 {
@@ -2137,9 +2140,10 @@
        net_device_init();
+/* ist in init/main.c testweise nach do_initcalls
 #ifdef CONFIG_IP_PNP
        ip_auto_config();
 #endif
-
+*/
        return 0;
 }

With this it is remote booting and running.
Maybe some other thing will not work with this (initrd).

bye, Johannes

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



This archive was generated by hypermail 2b29 : Wed Feb 23 2000 - 21:00:29 EST