LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-05-2012, 01:43 PM   #1
dmiralles2009
LQ Newbie
 
Registered: Jul 2012
Location: puerto rico
Distribution: several, depending on the embedded system
Posts: 4

Rep: Reputation: Disabled
Unable to comunicate with PC/104 board using TS7260 in TS-Linux


Hello:
Good to be a newbie.
I am using a SBC TS-7260, which is a ARM-processor. I am trying to interface this SBC with a custom made PC/104 which has a FPGA,which offer 4 serial uart ports in which you have to set dinamically the I/O and IRQ for each port. Now, according to the board specifications this device contains a UART in which you set the BASE(0x300) with rotatory switches and the IO and IRQ dynamically. So lets say you set them to 0x300(BASE). This means at 0x300 you then need to write the upper Most Significant Bye (MSB) of the Serial port IO address and at 0x301 you need to write the Least Significant Byte (LSB) of the Serial Port IO address, like this:
0x300 0x03(msb)
0x301 0xf8(lsb)
0x302 0x06(irq=6 in board)
I manage to configure successfully the board using /dev/mem and mmap for writing to the memory area for the pc/104 of the ARM board.
the pc/104 does not get recognised automatically with the SBC(no new entrie in /dev directory). So after several weeks trying to interface it I decided to create a device driver for it.
I am able to open the new file and writing to it, however I can not use the setserial command with my diver. I always get:
"Unknown IOCTL command for this driver: 541e
Cannot get serial info: Invalid argument"
And now, I am doubting, if my char device will work for this mission of serial port communication. Should I write a tty driver instead of a regular char driver?
Any input will be great
thanks
damian
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Help needed in building a minimal linux for a PC-104 board rainbow82 Linux - Newbie 9 07-19-2011 04:10 PM
unable to add or delete files on TS-Linux embedded single board computer JDtheGrey Linux - Kernel 9 03-14-2011 02:39 PM
Unable to run startx - fatal error 104 Kenneth1964 Red Hat 5 02-06-2009 12:49 AM
PC/104 ISA bridge VT82C686 - writing driver for self-made ISA board jpmzometa Linux - Hardware 11 08-06-2007 05:51 AM
unable to install FC4 linux on intel D915G mother board gopi.d Linux - Hardware 1 02-26-2006 12:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:08 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration