LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 05-01-2009, 07:10 AM   #16
1mela
Member
 
Registered: Apr 2009
Posts: 38

Original Poster
Rep: Reputation: 15

no /dev/ttyUSB0 was created
 
Old 05-01-2009, 07:18 AM   #17
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,703

Rep: Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896
You need to provide more information on the USB kit.
 
Old 05-01-2009, 09:42 AM   #18
1mela
Member
 
Registered: Apr 2009
Posts: 38

Original Poster
Rep: Reputation: 15
there is FT232BL USB chipset
 
Old 05-01-2009, 10:02 AM   #19
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,703

Rep: Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896
AFAIK the ftdi_sio module should work. http://www.ftdichip.com/Drivers/VCP.htm
Look at the output of the dmesg command and check for any other error messages.
 
Old 05-01-2009, 12:03 PM   #20
1mela
Member
 
Registered: Apr 2009
Posts: 38

Original Poster
Rep: Reputation: 15
Unhappy

I tried
http://www.xverve.com/documentation/..._linux_install

mount
/dev/sdb1 on / type ext3 (rw,errors=remount-ro)
tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
procbususb on /proc/bus/usb type usbfs (rw)
udev on /dev type tmpfs (rw,mode=0755)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620)
/dev/sdb9 on /home type ext3 (rw)
/dev/sdb8 on /tmp type ext3 (rw)
/dev/sdb5 on /usr type ext3 (rw)
/dev/sdb6 on /var type ext3 (rw)
/dev/sda1 on /mnt type ext3 (rw)
none on /proc/bus/usb type usbfs (rw,mode=0666)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)

same mount on plug or unplug
 
Old 05-01-2009, 12:15 PM   #21
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,703

Rep: Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896
look at the output or the dmesg command and scan for USB error messages. Is the device now being recognized as ttyUSB0

You can not mount the device. It basically acts like a serial port and from what you have reported /dev/ttyUSB0 is not being created.
 
Old 05-01-2009, 12:32 PM   #22
1mela
Member
 
Registered: Apr 2009
Posts: 38

Original Poster
Rep: Reputation: 15
dmesq
[ 579.313029] usb 1-2: New USB device found, idVendor=0403, idProduct=fa38
[ 579.313042] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 579.313048] usb 1-2: Product: USB51KIT
[ 579.313052] usb 1-2: Manufacturer: EFS & Co.
[ 579.313066] usb 1-2: SerialNumber: 7D153ABB
[ 1012.527042] ''IN-world':'IN=eth0 OUT= MAC=00:22:15:19:ad:ff:00:0b:6b:83:31:f3:08:00 SRC=121.44.79.235 DST=10.102.10.67 LEN=90 TOS=0x00 PREC=0x00 TTL=114 ID=38628 PROTO=UDP SPT=26981 DPT=24943 LEN=70
[ 1030.128770] ''IN-world':'IN=eth0 OUT= MAC=00:22:15:19:ad:ff:00:0b:6b:83:31:f3:08:00 SRC=61.191.61.244 DST=10.102.10.67 LEN=40 TOS=0x00 PREC=0x00 TTL=99 ID=256 PROTO=TCP SPT=6000 DPT=2967 WINDOW=16384 RES=0x00 SYN URGP=0
[ 1091.276294] ''IN-world':'IN=eth0 OUT= MAC= SRC=10.102.10.67 DST=224.0.0.251 LEN=68 TOS=0x00 PREC=0x00 TTL=255 ID=0 DF PROTO=UDP SPT=5353 DPT=5353 LEN=48
[ 1109.175464] ''IN-world':'IN=eth0 OUT= MAC=00:22:15:19:ad:ff:00:0b:6b:83:31:f3:08:00 SRC=60.15.177.168 DST=10.102.10.67 LEN=622 TOS=0x00 PREC=0x00 TTL=43 ID=0 DF PROTO=UDP SPT=57710 DPT=1026 LEN=602
[ 1554.483293] ''IN-world':'IN=eth0 OUT= MAC=00:22:15:19:ad:ff:00:0b:6b:83:31:f3:08:00 SRC=124.13.235.203 DST=10.102.10.67 LEN=64 TOS=0x00 PREC=0x00 TTL=43 ID=53995 DF PROTO=TCP SPT=59592 DPT=18768 WINDOW=65535 RES=0x00 SYN URGP=0
[ 1555.537043] ''IN-world':'IN=eth0 OUT= MAC=00:22:15:19:ad:ff:00:0b:6b:83:31:f3:08:00 SRC=124.13.235.203 DST=10.102.10.67 LEN=64 TOS=0x00 PREC=0x00 TTL=43 ID=57797 DF PROTO=TCP SPT=59592 DPT=18768 WINDOW=65535 RES=0x00 SYN URGP=0
[ 1556.687155] ''IN-world':'IN=eth0 OUT= MAC=00:22:15:19:ad:ff:00:0b:6b:83:31:f3:08:00 SRC=124.13.235.203 DST=10.102.10.67 LEN=64 TOS=0x00 PREC=0x00 TTL=43 ID=4340 DF PROTO=TCP SPT=59592 DPT=18768 WINDOW=65535 RES=0x00 SYN URGP=0
[ 1557.486980] ''IN-world':'IN=eth0 OUT= MAC=00:22:15:19:ad:ff:00:0b:6b:83:31:f3:08:00 SRC=124.13.235.203 DST=10.102.10.67 LEN=48 TOS=0x00 PREC=0x00 TTL=43 ID=40414 DF PROTO=TCP SPT=59592 DPT=18768 WINDOW=65535 RES=0x00 SYN URGP=0
[ 1558.522422] ''IN-world':'IN=eth0 OUT= MAC=00:22:15:19:ad:ff:00:0b:6b:83:31:f3:08:00 SRC=124.13.235.203 DST=10.102.10.67 LEN=48 TOS=0x00 PREC=0x00 TTL=43 ID=63129 DF PROTO=TCP SPT=59592 DPT=18768 WINDOW=65535 RES=0x00 SYN URGP=0
[ 1559.465603] ''IN-world':'IN=eth0 OUT= MAC=00:22:15:19:ad:ff:00:0b:6b:83:31:f3:08:00 SRC=124.13.235.203 DST=10.102.10.67 LEN=48 TOS=0x00 PREC=0x00 TTL=43 ID=41432 DF PROTO=TCP SPT=59592 DPT=18768 WINDOW=65535 RES=0x00 SYN URGP=0
[ 1561.474813] ''IN-world':'IN=eth0 OUT= MAC=00:22:15:19:ad:ff:00:0b:6b:83:31:f3:08:00 SRC=124.13.235.203 DST=10.102.10.67 LEN=48 TOS=0x00 PREC=0x00 TTL=43 ID=25524 DF PROTO=TCP SPT=59592 DPT=18768 WINDOW=65535 RES=0x00 SYN URGP=0
[ 1565.509259] ''IN-world':'IN=eth0 OUT= MAC=00:22:15:19:ad:ff:00:0b:6b:83:31:f3:08:00 SRC=124.13.235.203 DST=10.102.10.67 LEN=48 TOS=0x00 PREC=0x00 TTL=43 ID=55737 DF PROTO=TCP SPT=59592 DPT=18768 WINDOW=65535 RES=0x00 SYN URGP=0
[ 1573.528709] ''IN-world':'IN=eth0 OUT= MAC=00:22:15:19:ad:ff:00:0b:6b:83:31:f3:08:00 SRC=124.13.235.203 DST=10.102.10.67 LEN=48 TOS=0x00 PREC=0x00 TTL=43 ID=2026 DF PROTO=TCP SPT=59592 DPT=18768 WINDOW=65535 RES=0x00 SYN URGP=0
[ 2115.280299] ''IN-world':'IN=eth0 OUT= MAC= SRC=10.102.10.67 DST=224.0.0.251 LEN=68 TOS=0x00 PREC=0x00 TTL=255 ID=0 DF PROTO=UDP SPT=5353 DPT=5353 LEN=48
[ 2201.208806] ''IN-world':'IN=eth0 OUT= MAC=00:22:15:19:ad:ff:00:0b:6b:83:31:f3:08:00 SRC=121.44.79.235 DST=10.102.10.67 LEN=90 TOS=0x00 PREC=0x00 TTL=114 ID=56616 PROTO=UDP SPT=26981 DPT=24943 LEN=70
[ 2698.800732] ''IN-world':'IN=eth0 OUT= MAC=00:22:15:19:ad:ff:00:0b:6b:83:31:f3:08:00 SRC=213.207.40.106 DST=10.102.10.67 LEN=48 TOS=0x00 PREC=0x00 TTL=112 ID=42531 PROTO=TCP SPT=1459 DPT=135 WINDOW=65535 RES=0x00 SYN URGP=0

but I dont know how to use avrp -s /dev/...
 
Old 05-01-2009, 01:13 PM   #23
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,703

Rep: Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896
avrp is an application that communicates with a serial port programmer so you can upload your code etc to the microprocessor. I have assumed that the USB kit is a serial port programmer with a built in USB serial port adapter. The FT232BL is the chip that does the USB to RS-232 conversion. The device /dev/ttyUSB0 acts just like the built in serial port /dev/ttyS0. I have never used avrp and so do not know its features.

Any other information you can provide about the programmer would be most helpful.

Last edited by michaelk; 05-01-2009 at 01:17 PM.
 
Old 05-01-2009, 01:29 PM   #24
1mela
Member
 
Registered: Apr 2009
Posts: 38

Original Poster
Rep: Reputation: 15
When avrp dont work and /dev/ttyUSB0 wasnt created , how to download code in bootlader in ATMEL ?
 
Old 05-01-2009, 01:56 PM   #25
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,703

Rep: Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896
Still trying to figure that out. Can you provide any other information about this programmer?
 
Old 05-01-2009, 02:10 PM   #26
1mela
Member
 
Registered: Apr 2009
Posts: 38

Original Poster
Rep: Reputation: 15
http://programujte.com/galerie/2005/...171648_FG2.jpg

with usb port
IO3 is FT232BL USB chipset

I try to instal ftd_sio but dont create insmod ftdi_sio.o

To install the ftdi_sio driver use the following steps:

1. Create a temporary folder in your linux machine.
2. Extract the files from ftdi_sio.tar.gz file to your temporary folder
"gunzip ftdi_sio.tar.gz"
"tar -xvf ftdi_sio.tar"
3. Build the driver
"make"
4. Plug in your ftdi device
5. Check to see if default driver was loaded
"lsmod" - you will see ftdi_sio if a driver is loaded
6. Remove the default installed driver
"rmmod ftdi_sio"
7. Install the newly built driver
"insmod ftdi_sio.o"

Last edited by 1mela; 05-01-2009 at 02:59 PM.
 
Old 05-01-2009, 08:06 PM   #27
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,703

Rep: Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896
You can try (as root)
mknod /dev/ttyUSB0 c 188 0
chmod 0664 /dev/ttyUSB0

Make sure the ftdi_sio module is loaded.
 
Old 05-02-2009, 01:00 AM   #28
1mela
Member
 
Registered: Apr 2009
Posts: 38

Original Poster
Rep: Reputation: 15
After Your advice as root.... ,
avrp -s /dev/ttyUSB0
/dev/ttyUSB0: No such device

but ttyUSB0 is there

ftd_sio is default there ,maybe it needs original module ,but as I lastly stated, I couldnt it instal properly . make didnt create any object file to make install .With loads of missings headers .

gcc -Wall -D__KERNEL__ -DMODULE -I/lib/modules/2.6.26-2-686/build/include -I/usr/src/linux-2.6.26-2-686/drivers/usb/serial/ -O -c -o ftdi_sio.o ftdi_sio.c

ftdi_sio.c:253:24: error: linux/init.h: No such file or directory
ftdi_sio.c:254:24: error: linux/slab.h: No such file or directory
ftdi_sio.c:256:30: error: linux/tty_driver.h: No such file or directory
ftdi_sio.c:257:28: error: linux/tty_flip.h: No such file or directory
ftdi_sio.c:258:26: error: linux/module.h: No such file or directory
ftdi_sio.c:259:28: error: linux/spinlock.h: No such file or directory
ftdi_sio.c:260:25: error: asm/uaccess.h: No such file or directory
ftdi_sio.c:261:23: error: linux/usb.h: No such file or directory
ftdi_sio.c:263:30: error: linux/usb/serial.h: No such file or directory
 
Old 05-09-2009, 06:45 AM   #29
1mela
Member
 
Registered: Apr 2009
Posts: 38

Original Poster
Rep: Reputation: 15
Unhappy

Before
uname -m
i686
apt-get install linux-headers-2.6-686

gcc -Wall -D__KERNEL__ -DMODULE -I/lib/modules/2.6.26-2-686/build/include -I/usr/src/linux-2.6.26-2-686/drivers/usb/serial/ -O -c -o ftdi_sio.o ftdi_sio.c


In file included from /lib/modules/2.6.26-2-686/build/include/asm/thread_info_64.h:24,
from /lib/modules/2.6.26-2-686/build/include/asm/thread_info.h:5,
from /lib/modules/2.6.26-2-686/build/include/linux/thread_info.h:47,
from /lib/modules/2.6.26-2-686/build/include/linux/preempt.h:9,
from /lib/modules/2.6.26-2-686/build/include/linux/spinlock.h:49,
from /lib/modules/2.6.26-2-686/build/include/linux/mmzone.h:7,
from /lib/modules/2.6.26-2-686/build/include/linux/gfp.h:4,
from /lib/modules/2.6.26-2-686/build/include/linux/slab.h:12,
from ftdi_sio.c:254:
/lib/modules/2.6.26-2-686/build/include/asm/processor.h:112: error: ‘CONFIG_X86_L1_CACHE_SHIFT’ undeclared here (not in a function)
/lib/modules/2.6.26-2-686/build/include/asm/processor.h:112: error: requested alignment is not a constant
In file included from /lib/modules/2.6.26-2-686/build/include/asm/thread_info_64.h:24,
from /lib/modules/2.6.26-2-686/build/include/asm/thread_info.h:5,
from /lib/modules/2.6.26-2-686/build/include/linux/thread_info.h:47,
from /lib/modules/2.6.26-2-686/build/include/linux/preempt.h:9,
from /lib/modules/2.6.26-2-686/build/include/linux/spinlock.h:49,
from /lib/modules/2.6.26-2-686/build/include/linux/mmzone.h:7,
from /lib/modules/2.6.26-2-686/build/include/linux/gfp.h:4,
from /lib/modules/2.6.26-2-686/build/include/linux/slab.h:12,
from ftdi_sio.c:254:
/lib/modules/2.6.26-2-686/build/include/asm/processor.h:152:1: warning: "cache_line_size" redefined
In file included from /lib/modules/2.6.26-2-686/build/include/asm/pda.h:7,
from /lib/modules/2.6.26-2-686/build/include/asm/thread_info_64.h:14,
from /lib/modules/2.6.26-2-686/build/include/asm/thread_info.h:5,
from /lib/modules/2.6.26-2-686/build/include/linux/thread_info.h:47,
from /lib/modules/2.6.26-2-686/build/include/linux/preempt.h:9,
from /lib/modules/2.6.26-2-686/build/include/linux/spinlock.h:49,
from /lib/modules/2.6.26-2-686/build/include/linux/mmzone.h:7,
from /lib/modules/2.6.26-2-686/build/include/linux/gfp.h:4,
from /lib/modules/2.6.26-2-686/build/include/linux/slab.h:12,
from ftdi_sio.c:254:
/lib/modules/2.6.26-2-686/build/include/linux/cache.h:64:1: warning: this is the location of the previous definition
/lib/modules/2.6.26-2-686/build/include/asm/processor.h: In function ‘load_cr3’:
/lib/modules/2.6.26-2-686/build/include/asm/processor.h:184: error: ‘CONFIG_PAGE_OFFSETUL’ undeclared (first use in this function)
/lib/modules/2.6.26-2-686/build/include/asm/processor.h:184: error: (Each undeclared identifier is reported only once
/lib/modules/2.6.26-2-686/build/include/asm/processor.h:184: error: for each function it appears in.)
/lib/modules/2.6.26-2-686/build/include/asm/processor.h: At top level:
/lib/modules/2.6.26-2-686/build/include/asm/processor.h:233: error: requested alignment is not a constant
In file included from /lib/modules/2.6.26-2-686/build/include/asm/thread_info.h:5,
from /lib/modules/2.6.26-2-686/build/include/linux/thread_info.h:47,
from /lib/modules/2.6.26-2-686/build/include/linux/preempt.h:9,
from /lib/modules/2.6.26-2-686/build/include/linux/spinlock.h:49,
from /lib/modules/2.6.26-2-686/build/include/linux/mmzone.h:7,
from /lib/modules/2.6.26-2-686/build/include/linux/gfp.h:4,
from /lib/modules/2.6.26-2-686/build/include/linux/slab.h:12,
from ftdi_sio.c:254:
/lib/modules/2.6.26-2-686/build/include/asm/thread_info_64.h: In function ‘current_thread_info’:
/lib/modules/2.6.26-2-686/build/include/asm/thread_info_64.h:66: error: ‘THREAD_SIZE’ undeclared (first use in this function)
/lib/modules/2.6.26-2-686/build/include/asm/thread_info_64.h: In function ‘stack_thread_info’:
/lib/modules/2.6.26-2-686/build/include/asm/thread_info_64.h:74: error: ‘THREAD_SIZE’ undeclared (first use in this function)
In file included from /lib/modules/2.6.26-2-686/build/include/linux/mmzone.h:16,
from /lib/modules/2.6.26-2-686/build/include/linux/gfp.h:4,
from /lib/modules/2.6.26-2-686/build/include/linux/slab.h:12,
from ftdi_sio.c:254:
/lib/modules/2.6.26-2-686/build/include/linux/nodemask.h: In function ‘__first_node’:
/lib/modules/2.6.26-2-686/build/include/linux/nodemask.h:233: warning: implicit declaration of function ‘find_first_bit’
/lib/modules/2.6.26-2-686/build/include/linux/nodemask.h: In function ‘__next_node’:
/lib/modules/2.6.26-2-686/build/include/linux/nodemask.h:239: warning: implicit declaration of function ‘find_next_bit’
/lib/modules/2.6.26-2-686/build/include/linux/nodemask.h: In function ‘__first_unset_
 
Old 05-15-2009, 01:22 PM   #30
1mela
Member
 
Registered: Apr 2009
Posts: 38

Original Poster
Rep: Reputation: 15
Hi
I used libftd2xx0.4.16 module instead offtd_sio ,becouse enclosed cd to kit has win driver libftd2 .

dmesg | grep error
[ 3.876862] ahci: probe of 0000:00:1f.2 failed with error -22
[ 4.169110] usb 1-2: device not accepting address 2, error -71
[ 5.073840] usbcore: usbfs: mount parameter error:
[ 20.541146] usbcore: usbfs: mount parameter error:


Any suggestions ?
 
  


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
LXer: Atmel offer $500 AVR dev kit with Linux and GNU debugger LXer Syndicated Linux News 0 06-27-2006 04:54 AM
Atmel USB wireless troubles Cheater512 Linux - Hardware 2 04-05-2006 05:43 PM
Atmel USB card in Suse 9.3 d3viant Linux - Wireless Networking 8 05-08-2005 12:01 PM
Atmel Wireless USB adapter vs 2.6.9 Sader Slackware 5 11-20-2004 12:23 AM
Atmel USB problems... brx Linux - Wireless Networking 0 11-18-2004 05:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 02:59 PM.

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