Hi guys
 
My kernel command line like this:

kernel /boot/vmlinuz-2.6.15.5-kgdb ro root=/dev/hda1 kgdbwait
kgdb8250=1,115200

And I aslo defined CONFIG_KGDB_SIMPLE_SERIAL in the menuconfig

But get this error during the boot:

Invalid syntax for option kgdb8250="

Seems the erros happened inside the 8250_kgdb.c / kgdb8250_opt

The str="0,115200",so this function get lead to errout?


+static int __init kgdb8250_opt(char *str)
+{
+       /* We'll fill out and use the first slot. */
+       current_port = &kgdb8250_ports[0];
+
+       if (!strncmp(str, "io", 2)) {
+               current_port->iotype = UPIO_PORT;
+               str += 2;
+       } else if (!strncmp(str, "mmap", 4)) {
+               current_port->iotype = UPIO_MEM;
+               current_port->flags |= UPF_IOREMAP;
+               str += 4;
+       } else if (!strncmp(str, "mmio", 4)) {
+               current_port->iotype = UPIO_MEM;
+               current_port->flags &= ~UPF_IOREMAP;
+               str += 4;
+       } else
+               goto errout;
+
+       if (*str != ',')
+               goto errout;
+       str++;
+
+       if (current_port->iotype == UPIO_PORT)
+               current_port->iobase = simple_strtoul(str, &str, 16);
+       else {
+               if (current_port->flags & UPF_IOREMAP)
+                       current_port->mapbase =
+                               (unsigned long) simple_strtoul(str,
&str, 16);
+               else
+                       current_port->membase =
+                               (void *) simple_strtoul(str, &str, 16);
+       }
+
+       if (*str != ',')
+               goto errout;
+       str++;
+
+       kgdb8250_baud = simple_strtoul(str, &str, 10);
+       if (!kgdb8250_baud)
+               goto errout;
+
+       if (*str != ',')
+               goto errout;
+       str++;
+
+       current_port->irq = simple_strtoul(str, &str, 10);
+
+#ifdef CONFIG_KGDB_SIMPLE_SERIAL
+       should_copy_rs_table = 0;
+#endif
+
+       return 0;
+
+      errout:
+       printk(KERN_ERR "Invalid syntax for option kgdb8250=\n");
+       return 1;
+}


Regards
rui
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Kgdb-bugreport mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/kgdb-bugreport

Reply via email to