[U-Boot-Users] [Q]changing serial baudrate in linuxppc_2_4_devel...

I ported u-boot-0.4.0 and linuxppc_2_4_devel(from denx) to the custom board (PPC405GPr core) and it worked fine in serial baudrate 9600....
Now I'm trying to set baudrate to 115200 in u-boot and pass it in board information structure(bi_baudrate) to linux kernel... I followed the source of linuxppc_2_4_devel from head_4xx.S to start_kernel() 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 ??
so I changed /etc/inittab in root file system as follows... console::respawn:/sbin/getty console 115200
and modified kernel console_init(void) <-- drivers/char/tty_io.c { /* Setup the default TTY line discipline. */ memset(ldiscs, 0, sizeof(ldiscs)); (void) tty_register_ldisc(N_TTY, &tty_ldisc_N_TTY);
/* * Set up the standard termios. Individual tty drivers may * deviate from this; this is used as a template. */ memset(&tty_std_termios, 0, sizeof(struct termios)); memcpy(tty_std_termios.c_cc, INIT_C_CC, NCCS); tty_std_termios.c_iflag = ICRNL | IXON; tty_std_termios.c_oflag = OPOST | ONLCR; tty_std_termios.c_cflag = B38400 | CS8 | CREAD | HUPCL; tty_std_termios.c_lflag = ISIG | ICANON | ECHO | ECHOE | ECHOK | ECHOCTL | ECHOKE | IEXTEN;
/* modified by hwjang */ tty_std_termios.c_ispeed = B115200; tty_std_termios.c_ospeed = B115200; ... }
and login prompt comes out fine but linux booting message before login prompt doen't come....
could you tell me how to set baudrate of kernel by passing it from u-boot or by modifiyng kernel source itself or by changing menuconfig option ??
here is the minicom messages... I used "make sycamore_config" to make kernel image...
======================================================================== U-Boot 0.4.0 (Nov 3 2003 - 10:28:20)
CPU: IBM PowerPC 405GP Rev. D at 200 MHz (PLB=100, OPB=50, EBC=50 MHz) PCI sync clock at 33 MHz, internal PCI arbiter enabled 16 kB I-Cache 8 kB D-Cache Board: ### No HW ID - assuming WALNUT405 I2C: ready DRAM: 32 MB FLASH: 512 kB In: serial Out: serial Err: serial Hit any key to stop autoboot: 0 => printenv bootcmd=bootm ffc00000 bootdelay=3 loads_echo=1 ethaddr=00:04:ac:e3:12:24 baudrate=9600 filesize=2407b1 ipaddr=192.168.1.200 serverip=192.168.1.210 bootargs=root=/dev/ram ip=203.238.193.33:192.168.1.210:203.238.193.1:255.255.255.0::ethfstdin=serial stdout=serial stderr=serial
Environment size: 282/4092 bytes => setenv baudrate 115200 ## Switch baudrate to 115200 bps and press ENTER ... => tftpboot 100000 /tftpboot/vmlinux.denx.115200 ENET Speed is 10 Mbps - HALF duplex connection TFTP from server 192.168.1.210; our IP address is 192.168.1.200 Filename '/tftpboot/vmlinux.denx.115200'. Load address: 0x100000 Loading: ################################################################# ###################################################### done Bytes transferred = 606962 (942f2 hex) => tftpboot 200000 /tftpboot/ramdisk.115200 ENET Speed is 10 Mbps - HALF duplex connection TFTP from server 192.168.1.210; our IP address is 192.168.1.200 Filename '/tftpboot/ramdisk.115200'. Load address: 0x200000 Loading: ################################################################# ################################################################# ################################################################# ################################################################# ################# done Bytes transferred = 1413494 (159176 hex) => bootm 100000 200000 ## Booting image at 00100000 ... Image Name: Linux-2.4.23-pre5 Created: 2003-11-04 7:53:23 UTC Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 606898 Bytes = 592.7 kB Load Address: 00000000 Entry Point: 00000000 Verifying Checksum ... OK Uncompressing Kernel Image ... OK ## Loading RAMDisk Image at 00200000 ... Image Name: ramdisk(115200) Created: 2003-11-04 2:15:31 UTC Image Type: PowerPC Linux RAMDisk Image (gzip compressed) Data Size: 1413430 Bytes = 1.3 MB Load Address: 00000000 Entry Point: 00000000 Verifying Checksum ... OK Loading Ramdisk to 01e61000, end 01fba136 ... OK <-no output here
MontaVista Linux 2.1, Preview Kit
203.238.193.33 login:
from jazz0719@dreamwiz.com
------------------------------------------------- Your Life on the Net DreamWiz Free Mail @ http://www.dreamwiz.com/
participants (1)
-
장형욱