Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

serial port access problem in embedded board EM2440

Status
Not open for further replies.

imand

Newbie level 1
Joined
Mar 1, 2010
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
iran
Activity points
1,300
hi .
i'm working on embedded board EM2440 (embedsky)
i'm trying to connect rfid and finger print devices to this board via serial port
but the problem is about serial port :
i can't use serial ports such as /dev/ttyS{0,1,2} even /dev/ttySAC0 as
serial port.
/det/ttyS{0,1,2} are in /dev/ dir as character device but /dev/ttySAC0
is in /dev/ is just a regular file and content of it is : "Done" ... .
kernel params and other bios parameters are :

(i'm wondering why console param of bootargs is ttySAC0 ??? )
bootargs=noinitrd root=/dev/mtdblock2 init=/linuxrc console=ttySAC0
bootcmd=nboot 0x32000000 kernel; bootm 0x32000000
bootdelay=0
baudrate=115200
ethaddr=0a:1b:2c:3d:4e:5f
ipaddr=192.168.1.6
serverip=192.168.1.8
netmask=255.255.255.0
stdin=serial
stdout=serial
stderr=serial
mtdids=nand0=nandflash0
mtdparts=mtdparts=nandflash0:256k@0(bios),128k(params),128k(toc),512k(eboot),1024k(logo),2m(kernel),-)
partition=nand0,0
mtddevnum=0
mtddevname=bios

i've enabled serial port options in kernel :

Serial drivers --->
| | <*> 8250/16550 and compatible serial support
│ │ [*] Console on 8250/16550 and compatible serial port
│ │ (3) Maximum number of 8250/16550 serial ports
│ │ (3) Number of 8250/16550 serial ports to register at runtime
│ │ [ ] Extended 8250/16550 serial driver options
│ │ *** Non-8250 serial port support ***
│ │ <*> Samsung SoC serial support
│ │ [*] Support for console on Samsung SoC serial port
│ │ <*> Samsung S3C2440/S3C2442 Serial port support

btw : out put of dmesg is :
[root@FriendlyARM /dev]# dmesg | grep uart
s3c2440-uart.0: tq2440_serial0 at MMIO 0x50000000 (irq = 70) is a S3C2440
s3c2440-uart.1: tq2440_serial1 at MMIO 0x50004000 (irq = 73) is a S3C2440
s3c2440-uart.2: tq2440_serial2 at MMIO 0x50008000 (irq = 76) is a S3C2440
 

ttySAC0 is the console device when it is the serial port in embedded systems. It has to be initialized during kernel initialization either through boot loader or in kernel compilation.
--
Amr Ali
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top