Booting image at 02030000 ...<br /> Image Name: Linux-2.6.9-Centaur<br /> Image Type: ARM Linux Kernel Image (uncompressed)<br /> Data Size: 855828 Bytes = 835.8 kB<br /> Load Address: 00008000<br /> Entry Point: 00008000<br /> Verifying Checksum ... OK<br />OK<br />No initrd<br />## Transferring control to Linux (at address 00008000) ...<br /><br />Starting kernel ...<br /><br />Uncompressing Linux........................................................ done<br />, booting the kernel.<br /><br />执行过程如上,然后就死机了,看了网上的**,说是u-boot和linux中的参数不匹配,<br />但是我的U-BOOT中设置的波特率是38400,bootargs=console=ttyAM0,38400;<br /><br />linux中的串口驱动:<br />static int __init ks8695_console_setup(struct console *co, char *options)<br />{<br /> struct uart_port *port;<br /> int baud = 38400;<br /> int bits = 8;<br /> int parity = 'n';<br /> int flow = 'n';<br /><br /> /*<br /> * Check whether an invalid uart number has been specified, and<br /> * if so, search for the first available port that does have<br /> * console support.<br /> */<br /> port = uart_get_console(ks8695_uart_ports, UART_NR, co);<br /><br /> if (options)<br /> uart_parse_options(options, &baud, &parity, &bits, &flow);<br /> else<br /> ks8695_console_get_options(port, &baud, &parity, &bits);<br /><br /> /* The spinlock is setup in uart_add_one_port function but that<br /> function is not called yet.<br /> */<br /> spin_lock_init(&port->lock);<br /> return uart_set_options(port, co, baud, parity, bits, flow);<br />}<br />照目前看,两边的波特率是一样的。<br /><br /><br />问题:<br />1.死机的原因是由波特率的不同造成的吗?<br /><br />2.我这样的分析对吗?<br /><br />3.还有其它的原因及其解决方法吗? |
|