Unable to comunicate with PC/104 board using TS7260 in TS-Linux
Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
Distribution: several, depending on the embedded system
Posts: 4
Rep:
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.