[uClinux-dev] abort baud of UART2

From: aavan@263.net
Date: Fri Sep 21 2001 - 02:37:54 EDT


Hi,all

I working on ucdimm (68vz328). How can I set the baud of UART2 to 115200.

I try it and encountered some problem. First, I modified the romdisk/etc/inittab and remarked the line that setting ttyS1 (UART2):

romdisk/etc/inittab:
# Inittab for uClinux
# Format
# ttyline:termcap-entry:getty-command
ttyS0:vt100:/sbin/agetty 19200 ttyS0
#ttyS1:vt100:/sbin/agetty 19200 ttyS1   !remark this line

Followed, I modified the linux/arch/m68knommu/platform/68VZ328/ucdimm/crt0_rom.S, and adding the UART2 initialization code:

movew	#0x0138,0xfffff912	
movew	#0xeb00,0xfffff916		
movew	#0xe190,0xfffff910

I uploaded the new kernel to ucdimm and executed it. The value of UBAUD2 register (0xfffff912) is 0x138 that means the baud of UART2 is 115200. I followed to execute a simple tester program which opened the "/dev/ttyS1" and close it. The baud of UART2 was reseted to 19200 after I executed this tester.

Can everybody give me a hint, thanks a lot!

Regards,
Aavan




      VCD5元,DVD10元    百元数码相机荟萃展卖                  加入书友会获精美礼品         


This message resent by the uclinux-dev@uclinux.org list server http://www.uClinux.org/


This archive was generated by hypermail 2.1.4 : Thu Sep 19 2002 - 13:20:12 EDT