<HTML>
<BODY>
<BR>I ported u-boot-0.4.0 and linuxppc_2_4_devel(from denx) to the custom board
<BR>(PPC405GPr core) and it worked fine in serial baudrate 9600....
<BR>
<BR>Now I'm trying to set baudrate to 115200 in u-boot and pass it in board
<BR>information structure(bi_baudrate) to linux kernel...
<BR>I followed the source of linuxppc_2_4_devel from head_4xx.S to start_kernel()
<BR>but I couldn't find any parts in the kernel to use baudrate from u-boot bd_info setting. Isn't it the way it works ??
<BR>
<BR>so I changed /etc/inittab in root file system as follows...
<BR>console::respawn:/sbin/getty console 115200
<BR>
<BR>and modified kernel
<BR>console_init(void) <-- drivers/char/tty_io.c
<BR>{
<BR> /* Setup the default TTY line discipline. */
<BR> memset(ldiscs, 0, sizeof(ldiscs));
<BR> (void) tty_register_ldisc(N_TTY, &tty_ldisc_N_TTY);
<BR>
<BR> /*
<BR> * Set up the standard termios. Individual tty drivers may
<BR> * deviate from this; this is used as a template.
<BR> */
<BR> memset(&tty_std_termios, 0, sizeof(struct termios));
<BR> memcpy(tty_std_termios.c_cc, INIT_C_CC, NCCS);
<BR> tty_std_termios.c_iflag = ICRNL | IXON;
<BR> tty_std_termios.c_oflag = OPOST | ONLCR;
<BR> tty_std_termios.c_cflag = B38400 | CS8 | CREAD | HUPCL;
<BR> tty_std_termios.c_lflag = ISIG | ICANON | ECHO | ECHOE | ECHOK |
<BR> ECHOCTL | ECHOKE | IEXTEN;
<BR>
<BR>/* modified by hwjang */
<BR>tty_std_termios.c_ispeed = B115200;
<BR>tty_std_termios.c_ospeed = B115200;
<BR>...
<BR>}
<BR>
<BR>and login prompt comes out fine but linux booting message
<BR>before login prompt doen't come....
<BR>
<BR>could you tell me how to set baudrate of kernel by passing it from u-boot or
<BR>by modifiyng kernel source itself or by changing menuconfig option ??
<BR>
<BR>
<BR>here is the minicom messages...
<BR>I used "make sycamore_config" to make kernel image...
<BR>
<BR>
<BR>========================================================================
<BR>U-Boot 0.4.0 (Nov 3 2003 - 10:28:20)
<BR>
<BR>CPU: IBM PowerPC 405GP Rev. D at 200 MHz (PLB=100, OPB=50, EBC=50 MHz)
<BR> PCI sync clock at 33 MHz, internal PCI arbiter enabled
<BR> 16 kB I-Cache 8 kB D-Cache
<BR>Board: ### No HW ID - assuming WALNUT405
<BR>I2C: ready
<BR>DRAM: 32 MB
<BR>FLASH: 512 kB
<BR>In: serial
<BR>Out: serial
<BR>Err: serial
<BR>Hit any key to stop autoboot: 0
<BR>=> printenv
<BR>bootcmd=bootm ffc00000
<BR>bootdelay=3
<BR>loads_echo=1
<BR>ethaddr=00:04:ac:e3:12:24
<BR>baudrate=9600
<BR>filesize=2407b1
<BR>ipaddr=192.168.1.200
<BR>serverip=192.168.1.210
<BR>bootargs=root=/dev/ram ip=203.238.193.33:192.168.1.210:203.238.193.1:255.255.255.0::ethfstdin=serial
<BR>stdout=serial
<BR>stderr=serial
<BR>
<BR>Environment size: 282/4092 bytes
<BR>=> setenv baudrate 115200
<BR>## Switch baudrate to 115200 bps and press ENTER ...
<BR>=> tftpboot 100000 /tftpboot/vmlinux.denx.115200
<BR>ENET Speed is 10 Mbps - HALF duplex connection
<BR>TFTP from server 192.168.1.210; our IP address is 192.168.1.200
<BR>Filename '/tftpboot/vmlinux.denx.115200'.
<BR>Load address: 0x100000
<BR>Loading: #################################################################
<BR> ######################################################
<BR>done
<BR>Bytes transferred = 606962 (942f2 hex)
<BR>=> tftpboot 200000 /tftpboot/ramdisk.115200
<BR>ENET Speed is 10 Mbps - HALF duplex connection
<BR>TFTP from server 192.168.1.210; our IP address is 192.168.1.200
<BR>Filename '/tftpboot/ramdisk.115200'.
<BR>Load address: 0x200000
<BR>Loading: #################################################################
<BR> #################################################################
<BR> #################################################################
<BR> #################################################################
<BR> #################
<BR>done
<BR>Bytes transferred = 1413494 (159176 hex)
<BR>=> bootm 100000 200000
<BR>## Booting image at 00100000 ...
<BR> Image Name: Linux-2.4.23-pre5
<BR> Created: 2003-11-04 7:53:23 UTC
<BR> Image Type: PowerPC Linux Kernel Image (gzip compressed)
<BR> Data Size: 606898 Bytes = 592.7 kB
<BR> Load Address: 00000000
<BR> Entry Point: 00000000
<BR> Verifying Checksum ... OK
<BR> Uncompressing Kernel Image ... OK
<BR>## Loading RAMDisk Image at 00200000 ...
<BR> Image Name: ramdisk(115200)
<BR> Created: 2003-11-04 2:15:31 UTC
<BR> Image Type: PowerPC Linux RAMDisk Image (gzip compressed)
<BR> Data Size: 1413430 Bytes = 1.3 MB
<BR> Load Address: 00000000
<BR> Entry Point: 00000000
<BR> Verifying Checksum ... OK
<BR> Loading Ramdisk to 01e61000, end 01fba136 ... OK
<BR> <-no output here
<BR>
<BR>MontaVista Linux 2.1, Preview Kit
<BR>
<BR>203.238.193.33 login:
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>from jazz0719@dreamwiz.com
<BR></BODY>
</HTML>
<BR>
<img SRC="http://mail.dreamwiz.com/jazz0719/cgi-bin/receive_check.cgi?mailbox=Sent&uid_validity=00000000000961517366&uid=00000000000000000383,X00000&key=a62ff1d810e13c05ed0f8015df7b7f6f" WIDTH=1 HEIGHT=1 BORDER="0">
<a HREF="http://www.dreamwiz.com/" TARGET=_blank><img SRC=http://i.dreamwiz.com/dw/ko/logo.gif WIDTH=108 HEIGHT=21 BORDER=0></a><span style="font-size: 9pt; font-family:±¼¸²; color: #494949; text-decoration: none;">»ýÈ°ÀÎÅÍ³Ý µå¸²À§Áî http://www.dreamwiz.com/</span><br><img src="http://i.dreamwiz.com/dw/ko/mw/mail/def/n.gif" width=1 height=5 border="0"><br>
<img src="http://i.dreamwiz.com/dw/ko/n.gif" width=5 height=1 border="0"><img src="http://i.dreamwiz.com/dw/ko/cl/face_ani.gif" width=25 height=25 align="absmiddle" border="0" >
<a href="http://community.dreamwiz.com/co/"><span style="font-size: 9pt; font-family:±¼¸²; color: #494949; text-decoration: none;">[Ä¿¹Â´ÏƼ] µû¶æÇÑ <font color="red">»ç¶÷Çâ±â</font>¿Í ¾Æ¸§´Ù¿î »ç¶û..°³ÄܸøÁö ¾Ê´Â À¯¸Ó¿Í ÀçÄ¡°¡ ÀÖ´Â °÷!!</a><br>
<img src="http://i.dreamwiz.com/dw/ko/n.gif" width=5 height=1 border="0"><img src="http://i.dreamwiz.com/dw/ko/mailj.gif" height=25 align="absmiddle" border="0" >
<a href="http://www.dreamwiz.com/ma/jr/info_jr.htm"><span style="font-size: 9pt; font-family:±¼¸²; color: #494949; text-decoration: none;" >[Áê´Ï¾î¸ÞÀÏ] ¾î¸°ÀÌ¿¡°Ô ½ºÆÔ¾ø´Â °Ç°ÇÏ°í ±ú²ýÇÑ ¸ÞÀÏȯ°æÀ» ¸¸µé¾îÁֽʽÿÀ.</font></a><br>