tedh
Posts: 21
Joined: Thu Nov 01, 2012 2:56 am

Re: USB/serial converters very broken on Pi

Mon Dec 10, 2012 6:03 pm

gsh... That would be great.

tedh
Posts: 21
Joined: Thu Nov 01, 2012 2:56 am

Re: USB/serial converters very broken on Pi

Fri Dec 14, 2012 5:54 pm

I have my FPGA connected to the USB signals. I am able to capture the USB packets.
I should have some good information about the flow of packets with in the next day or so.

tedh
Posts: 21
Joined: Thu Nov 01, 2012 2:56 am

Re: USB/serial converters very broken on Pi

Sun Dec 16, 2012 4:46 pm

Anyone have a small bit of code that shows how to get the Kernel to toggle a GPIO pin
I have code that works for user code but not for the kernel.
I need to toggle a GPIO pin to stop the FPGA from sampling the USB after the Data toggle error happens.
There is too many cycles in between when Data Toggle error happens and when my C-code
detects a problem. All I am seeing on the FPGA is Start of Frames (SOF).

M33P
Posts: 199
Joined: Sun Sep 02, 2012 1:14 pm

Re: USB/serial converters very broken on Pi

Sun Dec 16, 2012 7:14 pm

Poking GPIO from inside an interrupt handler would be "interesting" if you tried to do it using the standard wrapper functions/GPIO driver.

A good place to start would be linux / arch / arm / mach-bcm2708 / bcm2708_gpio.c in the kernel - using the low-level calls to hardware (writel) as an example.

If you're doing this then you probably don't want the standard GPIO driver to be anywhere near the GPIO pins - probably to the extent where you would rmmod the driver before commencing testing.

With the driver removed the IRQ setup/pin direction would have to be done "manually" at some other point in the kernel code - you would probably get away with this in the actual interrupt handler.

gsh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 1472
Joined: Sat Sep 10, 2011 11:43 am

Re: USB/serial converters very broken on Pi

Mon Dec 17, 2012 8:38 am

Yeah just write to the gpio_set register directly to do this...

Gordon
--
Gordon Hollingworth PhD
Raspberry Pi - Director of Software Engineering

rihiveli
Posts: 2
Joined: Wed Dec 05, 2012 8:33 am

Re: USB/serial converters very broken on Pi

Tue Dec 18, 2012 2:08 pm

I had same problem with my rfxtrx433, I did the solution explained by caldimerda on Tue Nov 27, 2012 6:20 pm, Now it works, like a charm !

Thanks !

tedh
Posts: 21
Joined: Thu Nov 01, 2012 2:56 am

Re: USB/serial converters very broken on Pi

Wed Dec 19, 2012 2:34 am

I added code (that m33p pointed me to) to set a GPIO pin when a Data-Toggle error is detected (internal to the kernel).
The code compiles, I didn't try any test code to prove that the code works as I was relying on
the data-toggle error to cause the GPIO to set.
Once I rebooted the PI after doing the compile I tried my failing usb-serial test code.
Dead broke.... ARG!!!! I didn't believe that the code I added could cause this as the code
was added to the code that processed the data-toggle error. So why it is dead broke.......????
Well during the day the remote sensor unit got bumped and fell to the floor. I found that the ground
lead between the voltage regulator and the Arduino had came loose (cold solder joint????)
I soldered the ground lead back onto the Arduino (much better job this time).

My test code is now working again... :) :) :) :)
Well the my test code has been running for 24 hours with out any data-toggle errors (before this
I usually see a data-toggle error with in 2 hours or less).

I going to let the test code run until tomorrow and it I don't see any errors. I going back to running
my original c-code. I'll leave the FPGA connected and capturing the USB data.

markusrr
Posts: 6
Joined: Wed Dec 19, 2012 8:35 pm

Re: USB/serial converters very broken on Pi

Fri Dec 21, 2012 7:49 am

Hi folks,

great work, thanks very much. I can offer a little support - I can reproduce the error with my "ELV FHZ1300PC" almost instantly. Both, current Raspbian “wheezy” and current arch linux, with or without powered hub, regardless of whether in Full or Highspeed. It is using a FTDI FT232AM (0630). The device was and is working very well for almost 2 years connected to a IBM NetVista without any problem (model 2200, x86 CPU).

Experience:
Neither a serial console nor kernel debugging should be a problem, but I do not have to much experience in USB details (not more you need to have for basic Microchip-PIC-USB-LibUSB programming) nor do I have any USB analyzer hardware. I read the whole post and think I understood most of what you are doing and what the problem could be. So let me know if I can do anything useful (I will have to set up the kernel sources and start compiling but that shouldn't take to long).

Cheers

Markus

Thoralt
Posts: 2
Joined: Tue Jan 01, 2013 9:41 am

Re: USB/serial converters very broken on Pi

Tue Jan 01, 2013 10:17 am

Hi all,

a happy new year to all R-Pi enthusiasts.

I've followed this thread the last weeks and also had problems with my serial USB converter (a selfmade stick with FT232). Until yesterday I used the USB throttling fix (dwc_otg.speed=1), but then I felt like ruining my stable setup and upgraded the kernel :)

I'm now on #346 and my system is running stable since almost 24 hours. The use case is (among others) logging the level of my water system via an ultrasonic sensor connected to a microcrontroller which sends data packets of approx. 50 chars every second at 2400 baud. This used to fail after a few hours with the older kernel (#250). What happened to the kernel? Did somebody fix it or am I just lucky at the moment and my system will crash within the next hours?

Best
Thoralt

smith9
Posts: 7
Joined: Thu Jan 03, 2013 12:45 am

Re: USB/serial converters very broken on Pi

Thu Jan 03, 2013 1:03 am

I switched from the soft to hard floating point debian and started to encounter the frequent system hangs - after a few hours of reading from a ftdi serial to usb converter

current version is Linux raspberrypi 3.2.27+ #307 PREEMPT Mon Nov 26 23:22:29 GMT 2012 armv6l GNU/Linux

I added the dwc_otg.speed=1 fix and seems stable so far...will see if it hangs later today

Anyone know if a fix is forthcoming?

kalehrl
Posts: 350
Joined: Tue Jul 24, 2012 10:49 am

Re: USB/serial converters very broken on Pi

Thu Jan 03, 2013 9:08 am

I used to encounter such freezes from time to time.
For a couple of days I've been running kernel 3.6.11+ and I'm yet to experience a freeze.
Check the thread USB redux.

markusrr
Posts: 6
Joined: Wed Dec 19, 2012 8:35 pm

Re: USB/serial converters very broken on Pi

Thu Jan 03, 2013 7:57 pm

I've just upgraded to kernel #348 (3.6.11+) and current firmware and the problem persists for me: The PI freezes as soon as I open /dev/ttyUSB0 (I do not even have to send or receive anything). I tried both, USB 2.0 and USB 1.1 -> Same behavior, same freeze.

To reproduce the problem:
I am using ser2net with the following config:

Code: Select all

2001:raw:0:/dev/ttyUSB0:9600 8DATABITS NONE 1STOPBIT
and then start telnet to that port:

Code: Select all

telnet localhost 2001
Sometimes the "Trying..." is shown before my PI freezes, sometime it freezes so fast that the line is not even shown. It does not make any difference if I start telnet from another machine. And it does not make any difference whether I use a powered hub or not, too.

smith9
Posts: 7
Joined: Thu Jan 03, 2013 12:45 am

Re: USB/serial converters very broken on Pi

Thu Jan 03, 2013 11:53 pm

I tries doing an update but if freezes on the "Updating firmware (this will take a few minutes) freezing" output line, any idea how to get around this:

sudo apt-get update && sudo apt-get upgrade
sudo rpi-update
...
Updating firmware (this will take a few minutes) freezing

Thoralt
Posts: 2
Joined: Tue Jan 01, 2013 9:41 am

Re: USB/serial converters very broken on Pi

Fri Jan 04, 2013 5:25 am

smith9 wrote:I tries doing an update but if freezes on the "Updating firmware (this will take a few minutes) freezing"
How long did you wait for it to finish? It really takes several minutes to finish and there will be no output until it is done.

Thoralt

smith9
Posts: 7
Joined: Thu Jan 03, 2013 12:45 am

Re: USB/serial converters very broken on Pi

Fri Jan 04, 2013 6:31 am

probably waited about half an hour for it to finish

will try again later

anyone know if there is any logging files for the update?

markusrr
Posts: 6
Joined: Wed Dec 19, 2012 8:35 pm

Re: USB/serial converters very broken on Pi

Fri Jan 04, 2013 8:14 am

Took me about 3 or 4 hours yesterday. The GIT servers were quite slow...

M33P
Posts: 199
Joined: Sun Sep 02, 2012 1:14 pm

Re: USB/serial converters very broken on Pi

Fri Jan 04, 2013 4:19 pm

markusrr wrote:I've just upgraded to kernel #348 (3.6.11+) and current firmware and the problem persists for me: The PI freezes as soon as I open /dev/ttyUSB0 (I do not even have to send or receive anything). I tried both, USB 2.0 and USB 1.1 -> Same behavior, same freeze.

To reproduce the problem:
I am using ser2net with the following config:

Code: Select all

2001:raw:0:/dev/ttyUSB0:9600 8DATABITS NONE 1STOPBIT
and then start telnet to that port:

Code: Select all

telnet localhost 2001
Sometimes the "Trying..." is shown before my PI freezes, sometime it freezes so fast that the line is not even shown. It does not make any difference if I start telnet from another machine. And it does not make any difference whether I use a powered hub or not, too.
Interesting - I wonder if it isn't something ser2net does. I will try to replicate this (note that I have had no crashes since my last post - upgraded to latest 3.6.11+ in the meantime).

smith9
Posts: 7
Joined: Thu Jan 03, 2013 12:45 am

Re: USB/serial converters very broken on Pi

Sat Jan 05, 2013 12:24 am

i tried doing the update again and it worked within a few minutes, might have been the git servers like you said

M33P
Posts: 199
Joined: Sun Sep 02, 2012 1:14 pm

Re: USB/serial converters very broken on Pi

Sun Jan 06, 2013 3:50 pm

@markusrr

I installed ser2net but cannot replicate any crashes at all either with PL2303 or my FT232.

The clue here is that your case is repeatable - whereas most other cases the system works for days (or weeks) without ever having trouble.

Is there any way for you to get connected to the TXD/RXD serial pins (3.3V logic level - not RS232 levels) on P1 to see what happens when it crashes? The kernel will usually dump a stack trace to this if it panics, but if the hang is due to a data toggle error interrupt source then nothing will get printed as the Pi never services the interrupt and loops forever.

Mechanically, how is your USB device connected (cable length, connectors etc)?

markusrr
Posts: 6
Joined: Wed Dec 19, 2012 8:35 pm

Re: USB/serial converters very broken on Pi

Mon Jan 07, 2013 9:36 pm

@M33P

since I did not find a 3.3V level shifter I simply soldered a little pi-nullmodem-cable (the flat-ribbon-cable you see on the attached picture) and connected to two pis together.

The nullmodem is working, I can see the boot-sequence and can login at the serial console.

There is no panic when the pi freezes after a connect to the FHZ1300PC's FTDI using ser2net.

I tested opening the ttyUSB0 using socat as well: The result is the same, an instant freeze with no panic or any other line on the serial console.The command was:

Code: Select all

socat - /dev/ttyUSB0,raw,echo=0,crnl,b9600
I am using a USB 2.0 USB-A to USB-B cable for connecting the FHZ1300PC to a powered USB Hub (LogiLink UA0160). The Hub is connected using the original cable (USB-A to mini-USB) to the pi. But it makes no difference if I connect the FHZ to the PI without the hub. Both USB cables are aprox. 1m long. Both cables and the hub are working well on my windows laptop and the linux Netvista I mentioned above. Both pis are powered using the USB-power-supplies RS-Components ships as recommended for raspberry pi (HN Power Germany, HNP06-050, 1200mA).

Here is a picture of my test:
Image
click for larger view

markusrr
Posts: 6
Joined: Wed Dec 19, 2012 8:35 pm

Re: USB/serial converters very broken on Pi

Mon Jan 07, 2013 9:48 pm

Here is the log from booting the pi, since it simply freezes nothing interesting happens after the login-prompt shows up (I started socat from a ssh session in this example):

Code: Select all

Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Linux version 3.6.11+ ([email protected]) (gcc version 4.7.2 20120731 (prerelease) (crosstool-NG linaro-1.13.1+bzr2458 - Linaro GCC 2012.08) ) #348 PREEMPT Tue Jan 1 16:33:22 GMT 2013
[    0.000000] CPU: ARMv6-compatible processor [410fb767] revision 7 (ARMv7), cr=00c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
[    0.000000] Machine: BCM2708
[    0.000000] cma: CMA: reserved 16 MiB at 1b000000
[    0.000000] Memory policy: ECC disabled, Data cache writeback
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 113792
[    0.000000] Kernel command line: dma.dmachans=0x7f35 bcm2708_fb.fbwidth=656 bcm2708_fb.fbheight=416 bcm2708.boardrev=0xf bcm2708.serial=0x64cdcfa1 smsc95xx.macaddr=B8:27:EB:CD:CF:A1 sdhci-bcm2708.emmc_clock_freq=100000000 vc_mem.mem_base=0x1ec00000 vc_mem.mem_size=0x20000000  dwc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline rootwait
[    0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Memory: 448MB = 448MB total
[    0.000000] Memory: 432272k/432272k available, 26480k reserved, 0K highmem
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
[    0.000000]     vmalloc : 0xdc800000 - 0xff000000   ( 552 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xdc000000   ( 448 MB)
[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
[    0.000000]       .text : 0xc0008000 - 0xc04e43c0   (4977 kB)
[    0.000000]       .init : 0xc04e5000 - 0xc0505ddc   ( 132 kB)
[    0.000000]       .data : 0xc0506000 - 0xc053a020   ( 209 kB)
[    0.000000]        .bss : 0xc053a044 - 0xc05e26b8   ( 674 kB)
[    0.000000] NR_IRQS:330
[    0.000000] sched_clock: 32 bits at 1000kHz, resolution 1000ns, wraps every 4294967ms
[    0.000000] Console: colour dummy device 80x30
[    0.000000] console [tty1] enabled
[    0.000993] Calibrating delay loop... 697.95 BogoMIPS (lpj=3489792)
[    0.060128] pid_max: default: 32768 minimum: 301
[    0.060456] Mount-cache hash table entries: 512
[    0.061244] Initializing cgroup subsys cpuacct
[    0.061302] Initializing cgroup subsys devices
[    0.061333] Initializing cgroup subsys freezer
[    0.061361] Initializing cgroup subsys blkio
[    0.061461] CPU: Testing write buffer coherency: ok
[    0.061807] hw perfevents: enabled with v6 PMU driver, 3 counters available
[    0.061957] Setting up static identity map for 0x39c438 - 0x39c494
[    0.063569] devtmpfs: initialized
[    0.073879] NET: Registered protocol family 16
[    0.080347] DMA: preallocated 4096 KiB pool for atomic coherent allocations
[    0.081483] bcm2708.uart_clock = 0
[    0.082838] hw-breakpoint: found 6 breakpoint and 1 watchpoint registers.
[    0.082892] hw-breakpoint: maximum watchpoint size is 4 bytes.
[    0.082927] mailbox: Broadcom VideoCore Mailbox driver
[    0.083024] bcm2708_vcio: mailbox at f200b880
[    0.083120] bcm_power: Broadcom power driver
[    0.083158] bcm_power_open() -> 0
[    0.083182] bcm_power_request(0, 8)
[    0.583874] bcm_mailbox_read -> 00000080, 0
[    0.583914] bcm_power_request -> 0
[    0.583939] Serial: AMBA PL011 UART driver
[    0.584085] dev:f1: ttyAMA0 at MMIO 0x20201000 (irq = 83) is a PL011 rev3
[    0.907800] console [ttyAMA0] enabled
[    0.930492] bio: create slab <bio-0> at 0
[    0.935391] SCSI subsystem initialized
[    0.939496] usbcore: registered new interface driver usbfs
[    0.945078] usbcore: registered new interface driver hub
[    0.950687] usbcore: registered new device driver usb
[    0.957027] Switching to clocksource stc
[    0.961277] FS-Cache: Loaded
[    0.964430] CacheFiles: Loaded
[    0.979553] NET: Registered protocol family 2
[    0.984839] TCP established hash table entries: 16384 (order: 5, 131072 bytes)
[    0.992877] TCP bind hash table entries: 16384 (order: 4, 65536 bytes)
[    0.999837] TCP: Hash tables configured (established 16384 bind 16384)
[    1.006514] TCP: reno registered
[    1.009784] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    1.015706] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    1.022351] NET: Registered protocol family 1
[    1.027239] RPC: Registered named UNIX socket transport module.
[    1.033291] RPC: Registered udp transport module.
[    1.038012] RPC: Registered tcp transport module.
[    1.042757] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    1.049871] bcm2708_dma: DMA manager at f2007000
[    1.054652] bcm2708_gpio: bcm2708_gpio_probe c0513d58
[    1.060097] vc-mem: phys_addr:0x00000000 mem_base=0x1ec00000 mem_size:0x20000000(512 MiB)
[    1.069260] audit: initializing netlink socket (disabled)
[    1.074862] type=2000 audit(0.930:1): initialized
[    1.196484] VFS: Disk quotas dquot_6.5.2
[    1.200529] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    1.207598] FS-Cache: Netfs 'nfs' registered for caching
[    1.213360] NFS: Registering the id_resolver key type
[    1.218523] Key type id_resolver registered
[    1.222820] Key type id_legacy registered
[    1.227194] msgmni has been set to 876
[    1.232776] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[    1.240505] io scheduler noop registered
[    1.244557] io scheduler deadline registered (default)
[    1.249737] io scheduler cfq registered
[    1.274051] Console: switching to colour frame buffer device 82x26
[    1.286379] kgdb: Registered I/O driver kgdboc.
[    1.294010] vc-cma: Videocore CMA driver
[    1.300148] vc-cma: vc_cma_base      = 0x00000000
[    1.307128] vc-cma: vc_cma_size      = 0x00000000 (0 MiB)
[    1.314710] vc-cma: vc_cma_initial   = 0x00000000 (0 MiB)
[    1.331413] brd: module loaded
[    1.341666] loop: module loaded
[    1.347223] vchiq: vchiq_init_state: slot_zero = 0xdb000000, is_master = 0
[    1.357031] Loading iSCSI transport class v2.0-870.
[    1.365077] usbcore: registered new interface driver smsc95xx
[    1.373030] dwc_otg: version 3.00a 10-AUG-2012 (platform bus)
[    1.585927] Core Release: 2.80a
[    1.591049] Setting default values for core params
[    1.598023] Finished setting default values for core params
[    1.810817] Using Buffer DMA mode
[    1.816221] Periodic Transfer Interrupt Enhancement - disabled
[    1.824113] Multiprocessor Interrupt Enhancement - disabled
[    1.831751] OTG VER PARAM: 0, OTG VER FLAG: 0
[    1.838124] Dedicated Tx FIFOs mode
[    1.845136] dwc_otg bcm2708_usb: DWC OTG Controller
[    1.852315] dwc_otg bcm2708_usb: new USB bus registered, assigned bus number 1
[    1.861765] dwc_otg bcm2708_usb: irq 32, io mem 0x00000000
[    1.869350] Init: Port Power? op_state=1
[    1.875340] Init: Power Port (0)
[    1.880721] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    1.889782] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.899267] usb usb1: Product: DWC OTG Controller
[    1.906275] usb usb1: Manufacturer: Linux 3.6.11+ dwc_otg_hcd
[    1.914284] usb usb1: SerialNumber: bcm2708_usb
[    1.921867] hub 1-0:1.0: USB hub found
[    1.927757] hub 1-0:1.0: 1 port detected
[    1.934524] Initializing USB Mass Storage driver...
[    1.941816] usbcore: registered new interface driver usb-storage
[    1.949920] USB Mass Storage support registered.
[    1.956886] usbcore: registered new interface driver libusual
[    1.965161] mousedev: PS/2 mouse device common for all mice
[    1.973685] bcm2835-cpufreq: min=700000 max=700000 cur=700000
[    1.979520] bcm2835-cpufreq: switching to governor powersavebcm2835-cpufreq: switching to governor powersave
[    1.993664] cpuidle: using governor ladder
[    2.002172] cpuidle: using governor menu
[    2.008248] sdhci: Secure Digital Host Controller Interface driver
[    2.016623] sdhci: Copyright(c) Pierre Ossman
[    2.023271] sdhci: Enable low-latency mode
[    2.071321] mmc0: SDHCI controller on BCM2708_Arasan [platform] using platform's DMA
[    2.083547] mmc0: BCM2708 SDHC host at 0x20300000 DMA 2 IRQ 77
[    2.093947] sdhci-pltfm: SDHCI platform and OF driver helper
[    2.107772] usbcore: registered new interface driver usbhid
[    2.115770] usbhid: USB HID core driver
[    2.126769] TCP: cubic registered
[    2.134693] Indeed it is in host mode hprt0 = 00021501
[    2.142296] Initializing XFRM netlink socket
[    2.161207] NET: Registered protocol family 17
[    2.181494] Key type dns_resolver registered
[    2.188595] VFP support v0.3: implementor 41 architecture 1 part 20 variant b rev 5
[    2.208583] mmc0: new high speed SDHC card at address 59b4
[    2.221979] registered taskstats version 1
[    2.231829] mmcblk0: mmc0:59b4 00000 3.67 GiB
[    2.253120]  mmcblk0: p1 p2
[    2.381194] usb 1-1: new high-speed USB device number 2 using dwc_otg
[    2.390100] Indeed it is in host mode hprt0 = 00001101
[    2.601466] usb 1-1: New USB device found, idVendor=0424, idProduct=9512
[    2.610545] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    2.620902] hub 1-1:1.0: USB hub found
[    2.627146] hub 1-1:1.0: 3 ports detected
[    2.911365] usb 1-1.1: new high-speed USB device number 3 using dwc_otg
[    3.004061] EXT4-fs (mmcblk0p2): recovery complete
[    3.014357] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    3.027105] VFS: Mounted root (ext4 filesystem) on device 179:2.
[    3.036413] usb 1-1.1: New USB device found, idVendor=0424, idProduct=ec00
[    3.045915] usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    3.056161] devtmpfs: mounted
[    3.063124] Freeing init memory: 128K
[    3.069709] smsc95xx v1.0.4
[    3.136979] smsc95xx 1-1.1:1.0: eth0: register 'smsc95xx' at usb-bcm2708_usb-1.1, smsc95xx USB 2.0 Ethernet, b8:27:eb:cd:cf:a1
[    3.231459] usb 1-1.3: new high-speed USB device number 4 using dwc_otg
[    3.343483] usb 1-1.3: New USB device found, idVendor=05e3, idProduct=0608
[    3.353024] usb 1-1.3: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    3.363285] usb 1-1.3: Product: USB2.0 Hub
[    3.371010] hub 1-1.3:1.0: USB hub found
[    3.378985] hub 1-1.3:1.0: 4 ports detected
[    3.661722] usb 1-1.3.1: new full-speed USB device number 5 using dwc_otg
[    3.776760] usb 1-1.3.1: New USB device found, idVendor=0403, idProduct=e0e8
[    3.792868] usb 1-1.3.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    3.805086] usb 1-1.3.1: Product: ELV FHZ 1300 PC
[    3.812482] usb 1-1.3.1: Manufacturer: ELV AG
[    3.819143] usb 1-1.3.1: SerialNumber: EL64JQY1
[    4.455175] udevd[142]: starting version 175
[    5.793048] usbcore: registered new interface driver usbserial
[    6.111394] usbcore: registered new interface driver usbserial_generic
[    6.120408] USB Serial support registered for generic
[    6.511217] usbserial: USB Serial Driver core
[    6.635183] usbcore: registered new interface driver ftdi_sio
[    6.737439] USB Serial support registered for FTDI USB Serial Device
[    6.850442] ftdi_sio 1-1.3.1:1.0: FTDI USB Serial Device converter detected
[    6.933459] usb 1-1.3.1: Detected FT8U232AM
[    6.940123] usb 1-1.3.1: Number of endpoints 2
[    7.033591] usb 1-1.3.1: Endpoint 1 MaxPacketSize 64
[    7.040944] usb 1-1.3.1: Endpoint 2 MaxPacketSize 64
[    7.114476] usb 1-1.3.1: Setting MaxPacketSize 64
[    7.144729] ftdi_sio ttyUSB0: Unable to read latency timer: -32
[    7.159017] ftdi_sio ttyUSB0: Unable to write latency timer: -32
[    7.168215] usb 1-1.3.1: FTDI USB Serial Device converter now attached to ttyUSB0
[    7.180451] ftdi_sio: v1.6.0:USB FTDI Serial Converters Driver
[    9.285922] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
[    9.702486] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
[   10.406528] bcm2835 ALSA card created!
[   10.420478] bcm2835 ALSA chip created!
[   10.433111] bcm2835 ALSA chip created!
[   10.442069] bcm2835 ALSA chip created!
[   10.452500] bcm2835 ALSA chip created!
[   10.460736] bcm2835 ALSA chip created!
[   10.468886] bcm2835 ALSA chip created!
[   10.476925] bcm2835 ALSA chip created!
øø
Debian GNU/Linux 7.0 raspberrypi ttyAMA0

raspberrypi login:

M33P
Posts: 199
Joined: Sun Sep 02, 2012 1:14 pm

Re: USB/serial converters very broken on Pi

Mon Jan 07, 2013 10:09 pm

markusrr wrote:Here is the log from booting the pi, since it simply freezes nothing interesting happens after the login-prompt shows up (I started socat from a ssh session in this example):

Code: Select all

Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Linux version 3.6.11+ ([email protected]) (gcc version 4.7.2 20120731 (prerelease) (crosstool-NG linaro-1.13.1+bzr2458 - Linaro GCC 2012.08) ) #348 PREEMPT Tue Jan 1 16:33:22 GMT 2013
[    0.000000] CPU: ARMv6-compatible processor [410fb767] revision 7 (ARMv7), cr=00c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
[    0.000000] Machine: BCM2708
[    0.000000] cma: CMA: reserved 16 MiB at 1b000000
[    0.000000] Memory policy: ECC disabled, Data cache writeback
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 113792
[    0.000000] Kernel command line: dma.dmachans=0x7f35 bcm2708_fb.fbwidth=656 bcm2708_fb.fbheight=416 bcm2708.boardrev=0xf bcm2708.serial=0x64cdcfa1 smsc95xx.macaddr=B8:27:EB:CD:CF:A1 sdhci-bcm2708.emmc_clock_freq=100000000 vc_mem.mem_base=0x1ec00000 vc_mem.mem_size=0x20000000  dwc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline rootwait
[    0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Memory: 448MB = 448MB total
[    0.000000] Memory: 432272k/432272k available, 26480k reserved, 0K highmem
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
[    0.000000]     vmalloc : 0xdc800000 - 0xff000000   ( 552 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xdc000000   ( 448 MB)
[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
[    0.000000]       .text : 0xc0008000 - 0xc04e43c0   (4977 kB)
[    0.000000]       .init : 0xc04e5000 - 0xc0505ddc   ( 132 kB)
[    0.000000]       .data : 0xc0506000 - 0xc053a020   ( 209 kB)
[    0.000000]        .bss : 0xc053a044 - 0xc05e26b8   ( 674 kB)
[    0.000000] NR_IRQS:330
[    0.000000] sched_clock: 32 bits at 1000kHz, resolution 1000ns, wraps every 4294967ms
[    0.000000] Console: colour dummy device 80x30
[    0.000000] console [tty1] enabled
[    0.000993] Calibrating delay loop... 697.95 BogoMIPS (lpj=3489792)
[    0.060128] pid_max: default: 32768 minimum: 301
[    0.060456] Mount-cache hash table entries: 512
[    0.061244] Initializing cgroup subsys cpuacct
[    0.061302] Initializing cgroup subsys devices
[    0.061333] Initializing cgroup subsys freezer
[    0.061361] Initializing cgroup subsys blkio
[    0.061461] CPU: Testing write buffer coherency: ok
[    0.061807] hw perfevents: enabled with v6 PMU driver, 3 counters available
[    0.061957] Setting up static identity map for 0x39c438 - 0x39c494
[    0.063569] devtmpfs: initialized
[    0.073879] NET: Registered protocol family 16
[    0.080347] DMA: preallocated 4096 KiB pool for atomic coherent allocations
[    0.081483] bcm2708.uart_clock = 0
[    0.082838] hw-breakpoint: found 6 breakpoint and 1 watchpoint registers.
[    0.082892] hw-breakpoint: maximum watchpoint size is 4 bytes.
[    0.082927] mailbox: Broadcom VideoCore Mailbox driver
[    0.083024] bcm2708_vcio: mailbox at f200b880
[    0.083120] bcm_power: Broadcom power driver
[    0.083158] bcm_power_open() -> 0
[    0.083182] bcm_power_request(0, 8)
[    0.583874] bcm_mailbox_read -> 00000080, 0
[    0.583914] bcm_power_request -> 0
[    0.583939] Serial: AMBA PL011 UART driver
[    0.584085] dev:f1: ttyAMA0 at MMIO 0x20201000 (irq = 83) is a PL011 rev3
[    0.907800] console [ttyAMA0] enabled
[    0.930492] bio: create slab <bio-0> at 0
[    0.935391] SCSI subsystem initialized
[    0.939496] usbcore: registered new interface driver usbfs
[    0.945078] usbcore: registered new interface driver hub
[    0.950687] usbcore: registered new device driver usb
[    0.957027] Switching to clocksource stc
[    0.961277] FS-Cache: Loaded
[    0.964430] CacheFiles: Loaded
[    0.979553] NET: Registered protocol family 2
[    0.984839] TCP established hash table entries: 16384 (order: 5, 131072 bytes)
[    0.992877] TCP bind hash table entries: 16384 (order: 4, 65536 bytes)
[    0.999837] TCP: Hash tables configured (established 16384 bind 16384)
[    1.006514] TCP: reno registered
[    1.009784] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    1.015706] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    1.022351] NET: Registered protocol family 1
[    1.027239] RPC: Registered named UNIX socket transport module.
[    1.033291] RPC: Registered udp transport module.
[    1.038012] RPC: Registered tcp transport module.
[    1.042757] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    1.049871] bcm2708_dma: DMA manager at f2007000
[    1.054652] bcm2708_gpio: bcm2708_gpio_probe c0513d58
[    1.060097] vc-mem: phys_addr:0x00000000 mem_base=0x1ec00000 mem_size:0x20000000(512 MiB)
[    1.069260] audit: initializing netlink socket (disabled)
[    1.074862] type=2000 audit(0.930:1): initialized
[    1.196484] VFS: Disk quotas dquot_6.5.2
[    1.200529] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    1.207598] FS-Cache: Netfs 'nfs' registered for caching
[    1.213360] NFS: Registering the id_resolver key type
[    1.218523] Key type id_resolver registered
[    1.222820] Key type id_legacy registered
[    1.227194] msgmni has been set to 876
[    1.232776] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[    1.240505] io scheduler noop registered
[    1.244557] io scheduler deadline registered (default)
[    1.249737] io scheduler cfq registered
[    1.274051] Console: switching to colour frame buffer device 82x26
[    1.286379] kgdb: Registered I/O driver kgdboc.
[    1.294010] vc-cma: Videocore CMA driver
[    1.300148] vc-cma: vc_cma_base      = 0x00000000
[    1.307128] vc-cma: vc_cma_size      = 0x00000000 (0 MiB)
[    1.314710] vc-cma: vc_cma_initial   = 0x00000000 (0 MiB)
[    1.331413] brd: module loaded
[    1.341666] loop: module loaded
[    1.347223] vchiq: vchiq_init_state: slot_zero = 0xdb000000, is_master = 0
[    1.357031] Loading iSCSI transport class v2.0-870.
[    1.365077] usbcore: registered new interface driver smsc95xx
[    1.373030] dwc_otg: version 3.00a 10-AUG-2012 (platform bus)
[    1.585927] Core Release: 2.80a
[    1.591049] Setting default values for core params
[    1.598023] Finished setting default values for core params
[    1.810817] Using Buffer DMA mode
[    1.816221] Periodic Transfer Interrupt Enhancement - disabled
[    1.824113] Multiprocessor Interrupt Enhancement - disabled
[    1.831751] OTG VER PARAM: 0, OTG VER FLAG: 0
[    1.838124] Dedicated Tx FIFOs mode
[    1.845136] dwc_otg bcm2708_usb: DWC OTG Controller
[    1.852315] dwc_otg bcm2708_usb: new USB bus registered, assigned bus number 1
[    1.861765] dwc_otg bcm2708_usb: irq 32, io mem 0x00000000
[    1.869350] Init: Port Power? op_state=1
[    1.875340] Init: Power Port (0)
[    1.880721] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    1.889782] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.899267] usb usb1: Product: DWC OTG Controller
[    1.906275] usb usb1: Manufacturer: Linux 3.6.11+ dwc_otg_hcd
[    1.914284] usb usb1: SerialNumber: bcm2708_usb
[    1.921867] hub 1-0:1.0: USB hub found
[    1.927757] hub 1-0:1.0: 1 port detected
[    1.934524] Initializing USB Mass Storage driver...
[    1.941816] usbcore: registered new interface driver usb-storage
[    1.949920] USB Mass Storage support registered.
[    1.956886] usbcore: registered new interface driver libusual
[    1.965161] mousedev: PS/2 mouse device common for all mice
[    1.973685] bcm2835-cpufreq: min=700000 max=700000 cur=700000
[    1.979520] bcm2835-cpufreq: switching to governor powersavebcm2835-cpufreq: switching to governor powersave
[    1.993664] cpuidle: using governor ladder
[    2.002172] cpuidle: using governor menu
[    2.008248] sdhci: Secure Digital Host Controller Interface driver
[    2.016623] sdhci: Copyright(c) Pierre Ossman
[    2.023271] sdhci: Enable low-latency mode
[    2.071321] mmc0: SDHCI controller on BCM2708_Arasan [platform] using platform's DMA
[    2.083547] mmc0: BCM2708 SDHC host at 0x20300000 DMA 2 IRQ 77
[    2.093947] sdhci-pltfm: SDHCI platform and OF driver helper
[    2.107772] usbcore: registered new interface driver usbhid
[    2.115770] usbhid: USB HID core driver
[    2.126769] TCP: cubic registered
[    2.134693] Indeed it is in host mode hprt0 = 00021501
[    2.142296] Initializing XFRM netlink socket
[    2.161207] NET: Registered protocol family 17
[    2.181494] Key type dns_resolver registered
[    2.188595] VFP support v0.3: implementor 41 architecture 1 part 20 variant b rev 5
[    2.208583] mmc0: new high speed SDHC card at address 59b4
[    2.221979] registered taskstats version 1
[    2.231829] mmcblk0: mmc0:59b4 00000 3.67 GiB
[    2.253120]  mmcblk0: p1 p2
[    2.381194] usb 1-1: new high-speed USB device number 2 using dwc_otg
[    2.390100] Indeed it is in host mode hprt0 = 00001101
[    2.601466] usb 1-1: New USB device found, idVendor=0424, idProduct=9512
[    2.610545] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    2.620902] hub 1-1:1.0: USB hub found
[    2.627146] hub 1-1:1.0: 3 ports detected
[    2.911365] usb 1-1.1: new high-speed USB device number 3 using dwc_otg
[    3.004061] EXT4-fs (mmcblk0p2): recovery complete
[    3.014357] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    3.027105] VFS: Mounted root (ext4 filesystem) on device 179:2.
[    3.036413] usb 1-1.1: New USB device found, idVendor=0424, idProduct=ec00
[    3.045915] usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    3.056161] devtmpfs: mounted
[    3.063124] Freeing init memory: 128K
[    3.069709] smsc95xx v1.0.4
[    3.136979] smsc95xx 1-1.1:1.0: eth0: register 'smsc95xx' at usb-bcm2708_usb-1.1, smsc95xx USB 2.0 Ethernet, b8:27:eb:cd:cf:a1
[    3.231459] usb 1-1.3: new high-speed USB device number 4 using dwc_otg
[    3.343483] usb 1-1.3: New USB device found, idVendor=05e3, idProduct=0608
[    3.353024] usb 1-1.3: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    3.363285] usb 1-1.3: Product: USB2.0 Hub
[    3.371010] hub 1-1.3:1.0: USB hub found
[    3.378985] hub 1-1.3:1.0: 4 ports detected
[    3.661722] usb 1-1.3.1: new full-speed USB device number 5 using dwc_otg
[    3.776760] usb 1-1.3.1: New USB device found, idVendor=0403, idProduct=e0e8
[    3.792868] usb 1-1.3.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    3.805086] usb 1-1.3.1: Product: ELV FHZ 1300 PC
[    3.812482] usb 1-1.3.1: Manufacturer: ELV AG
[    3.819143] usb 1-1.3.1: SerialNumber: EL64JQY1
[    4.455175] udevd[142]: starting version 175
[    5.793048] usbcore: registered new interface driver usbserial
[    6.111394] usbcore: registered new interface driver usbserial_generic
[    6.120408] USB Serial support registered for generic
[    6.511217] usbserial: USB Serial Driver core
[    6.635183] usbcore: registered new interface driver ftdi_sio
[    6.737439] USB Serial support registered for FTDI USB Serial Device
[    6.850442] ftdi_sio 1-1.3.1:1.0: FTDI USB Serial Device converter detected
[    6.933459] usb 1-1.3.1: Detected FT8U232AM
[    6.940123] usb 1-1.3.1: Number of endpoints 2
[    7.033591] usb 1-1.3.1: Endpoint 1 MaxPacketSize 64
[    7.040944] usb 1-1.3.1: Endpoint 2 MaxPacketSize 64
[    7.114476] usb 1-1.3.1: Setting MaxPacketSize 64
[    7.144729] ftdi_sio ttyUSB0: Unable to read latency timer: -32
[    7.159017] ftdi_sio ttyUSB0: Unable to write latency timer: -32
[    7.168215] usb 1-1.3.1: FTDI USB Serial Device converter now attached to ttyUSB0
[    7.180451] ftdi_sio: v1.6.0:USB FTDI Serial Converters Driver
[    9.285922] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
[    9.702486] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
[   10.406528] bcm2835 ALSA card created!
[   10.420478] bcm2835 ALSA chip created!
[   10.433111] bcm2835 ALSA chip created!
[   10.442069] bcm2835 ALSA chip created!
[   10.452500] bcm2835 ALSA chip created!
[   10.460736] bcm2835 ALSA chip created!
[   10.468886] bcm2835 ALSA chip created!
[   10.476925] bcm2835 ALSA chip created!
øø
Debian GNU/Linux 7.0 raspberrypi ttyAMA0

raspberrypi login:
What happens to the kernel output when you perform the same test after adding

Code: Select all

loglevel=7 dwc_otg.debug=14
into /boot/cmdline.txt?

The FT8U232AM is a very old FTDI chip - now obsolete. I wonder if it doesn't have some strange behaviour that was fixed with the FT232R.

markusrr
Posts: 6
Joined: Wed Dec 19, 2012 8:35 pm

Re: USB/serial converters very broken on Pi

Mon Jan 07, 2013 10:27 pm

The pi sadly simply freezes without any notice, again.

The booting takes a little longer [EDIT: but only because of a fs-repair]. Here are the boot messages:

Code: Select all

Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Linux version 3.6.11+ ([email protected]) (gcc version 4.7.2 20120731 (prerelease) (crosstool-NG linaro-1.13.1+bzr2458 - Linaro GCC 2012.08) ) #348 PREEMPT Tue Jan 1 16:33:22 GMT 2013
[    0.000000] CPU: ARMv6-compatible processor [410fb767] revision 7 (ARMv7), cr=00c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
[    0.000000] Machine: BCM2708
[    0.000000] cma: CMA: reserved 16 MiB at 1b000000
[    0.000000] Memory policy: ECC disabled, Data cache writeback
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 113792
[    0.000000] Kernel command line: dma.dmachans=0x7f35 bcm2708_fb.fbwidth=656 bcm2708_fb.fbheight=416 bcm2708.boardrev=0xf bcm2708.serial=0x64cdcfa1 smsc95xx.macaddr=B8:27:EB:CD:CF:A1 sdhci-bcm2708.emmc_clock_freq=100000000 vc_mem.mem_base=0x1ec00000 vc_mem.mem_size=0x20000000  dwc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline rootwait loglevel=7 dwc_otg.debug=14
[    0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Memory: 448MB = 448MB total
[    0.000000] Memory: 432272k/432272k available, 26480k reserved, 0K highmem
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
[    0.000000]     vmalloc : 0xdc800000 - 0xff000000   ( 552 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xdc000000   ( 448 MB)
[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
[    0.000000]       .text : 0xc0008000 - 0xc04e43c0   (4977 kB)
[    0.000000]       .init : 0xc04e5000 - 0xc0505ddc   ( 132 kB)
[    0.000000]       .data : 0xc0506000 - 0xc053a020   ( 209 kB)
[    0.000000]        .bss : 0xc053a044 - 0xc05e26b8   ( 674 kB)
[    0.000000] NR_IRQS:330
[    0.000000] sched_clock: 32 bits at 1000kHz, resolution 1000ns, wraps every 4294967ms
[    0.000000] Console: colour dummy device 80x30
[    0.000000] console [tty1] enabled
[    0.000997] Calibrating delay loop... 697.95 BogoMIPS (lpj=3489792)
[    0.060127] pid_max: default: 32768 minimum: 301
[    0.060455] Mount-cache hash table entries: 512
[    0.061242] Initializing cgroup subsys cpuacct
[    0.061300] Initializing cgroup subsys devices
[    0.061333] Initializing cgroup subsys freezer
[    0.061362] Initializing cgroup subsys blkio
[    0.061460] CPU: Testing write buffer coherency: ok
[    0.061802] hw perfevents: enabled with v6 PMU driver, 3 counters available
[    0.061952] Setting up static identity map for 0x39c438 - 0x39c494
[    0.063555] devtmpfs: initialized
[    0.073974] NET: Registered protocol family 16
[    0.080444] DMA: preallocated 4096 KiB pool for atomic coherent allocations
[    0.081636] bcm2708.uart_clock = 0
[    0.082990] hw-breakpoint: found 6 breakpoint and 1 watchpoint registers.
[    0.083044] hw-breakpoint: maximum watchpoint size is 4 bytes.
[    0.083080] mailbox: Broadcom VideoCore Mailbox driver
[    0.083178] bcm2708_vcio: mailbox at f200b880
[    0.083272] bcm_power: Broadcom power driver
[    0.083310] bcm_power_open() -> 0
[    0.083335] bcm_power_request(0, 8)
[    0.584028] bcm_mailbox_read -> 00000080, 0
[    0.584068] bcm_power_request -> 0
[    0.584093] Serial: AMBA PL011 UART driver
[    0.584237] dev:f1: ttyAMA0 at MMIO 0x20201000 (irq = 83) is a PL011 rev3
[    0.910384] console [ttyAMA0] enabled
[    0.933128] bio: create slab <bio-0> at 0
[    0.938031] SCSI subsystem initialized
[    0.942137] usbcore: registered new interface driver usbfs
[    0.947720] usbcore: registered new interface driver hub
[    0.953323] usbcore: registered new device driver usb
[    0.959715] Switching to clocksource stc
[    0.963961] FS-Cache: Loaded
[    0.967118] CacheFiles: Loaded
[    0.982238] NET: Registered protocol family 2
[    0.987525] TCP established hash table entries: 16384 (order: 5, 131072 bytes)
[    0.995570] TCP bind hash table entries: 16384 (order: 4, 65536 bytes)
[    1.002531] TCP: Hash tables configured (established 16384 bind 16384)
[    1.009210] TCP: reno registered
[    1.012478] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    1.018397] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    1.025041] NET: Registered protocol family 1
[    1.029933] RPC: Registered named UNIX socket transport module.
[    1.035987] RPC: Registered udp transport module.
[    1.040708] RPC: Registered tcp transport module.
[    1.045454] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    1.052625] bcm2708_dma: DMA manager at f2007000
[    1.057407] bcm2708_gpio: bcm2708_gpio_probe c0513d58
[    1.062850] vc-mem: phys_addr:0x00000000 mem_base=0x1ec00000 mem_size:0x20000000(512 MiB)
[    1.072015] audit: initializing netlink socket (disabled)
[    1.077619] type=2000 audit(0.930:1): initialized
[    1.199254] VFS: Disk quotas dquot_6.5.2
[    1.203299] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    1.210376] FS-Cache: Netfs 'nfs' registered for caching
[    1.216143] NFS: Registering the id_resolver key type
[    1.221337] Key type id_resolver registered
[    1.225631] Key type id_legacy registered
[    1.230005] msgmni has been set to 876
[    1.235584] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[    1.243315] io scheduler noop registered
[    1.247368] io scheduler deadline registered (default)
[    1.252547] io scheduler cfq registered
[    1.274042] Console: switching to colour frame buffer device 82x26
[    1.286371] kgdb: Registered I/O driver kgdboc.
[    1.294010] vc-cma: Videocore CMA driver
[    1.300159] vc-cma: vc_cma_base      = 0x00000000
[    1.307144] vc-cma: vc_cma_size      = 0x00000000 (0 MiB)
[    1.314737] vc-cma: vc_cma_initial   = 0x00000000 (0 MiB)
[    1.331423] brd: module loaded
[    1.341663] loop: module loaded
[    1.347316] vchiq: vchiq_init_state: slot_zero = 0xdb000000, is_master = 0
[    1.357129] Loading iSCSI transport class v2.0-870.
[    1.365171] usbcore: registered new interface driver smsc95xx
[    1.372998] dwc_otg: version 3.00a 10-AUG-2012 (platform bus)
[    1.586021] Core Release: 2.80a
[    1.591145] Setting default values for core params
[    1.598123] Finished setting default values for core params
[    1.810918] Using Buffer DMA mode
[    1.816335] Periodic Transfer Interrupt Enhancement - disabled
[    1.824229] Multiprocessor Interrupt Enhancement - disabled
[    1.831810] OTG VER PARAM: 0, OTG VER FLAG: 0
[    1.838234] Dedicated Tx FIFOs mode
[    1.845270] dwc_otg bcm2708_usb: DWC OTG Controller
[    1.852261] dwc_otg bcm2708_usb: new USB bus registered, assigned bus number 1
[    1.861805] dwc_otg bcm2708_usb: irq 32, io mem 0x00000000
[    1.869470] Init: Port Power? op_state=1
[    1.875474] Init: Power Port (0)
[    1.880859] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    1.889920] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.899409] usb usb1: Product: DWC OTG Controller
[    1.906406] usb usb1: Manufacturer: Linux 3.6.11+ dwc_otg_hcd
[    1.914414] usb usb1: SerialNumber: bcm2708_usb
[    1.921927] hub 1-0:1.0: USB hub found
[    1.927920] hub 1-0:1.0: 1 port detected
[    1.934685] Initializing USB Mass Storage driver...
[    1.941837] usbcore: registered new interface driver usb-storage
[    1.950081] USB Mass Storage support registered.
[    1.957083] usbcore: registered new interface driver libusual
[    1.965365] mousedev: PS/2 mouse device common for all mice
[    1.973832] bcm2835-cpufreq: min=700000 max=700000 cur=700000
[    1.979668] bcm2835-cpufreq: switching to governor powersavebcm2835-cpufreq: switching to governor powersave
[    1.993738] cpuidle: using governor ladder
[    2.002225] cpuidle: using governor menu
[    2.008363] sdhci: Secure Digital Host Controller Interface driver
[    2.016733] sdhci: Copyright(c) Pierre Ossman
[    2.023315] sdhci: Enable low-latency mode
[    2.074005] mmc0: SDHCI controller on BCM2708_Arasan [platform] using platform's DMA
[    2.086254] mmc0: BCM2708 SDHC host at 0x20300000 DMA 2 IRQ 77
[    2.096626] sdhci-pltfm: SDHCI platform and OF driver helper
[    2.110435] usbcore: registered new interface driver usbhid
[    2.118449] usbhid: USB HID core driver
[    2.129451] TCP: cubic registered
[    2.137369] Indeed it is in host mode hprt0 = 00021501
[    2.144949] Initializing XFRM netlink socket
[    2.163892] NET: Registered protocol family 17
[    2.184218] Key type dns_resolver registered
[    2.191376] VFP support v0.3: implementor 41 architecture 1 part 20 variant b rev 5
[    2.211371] mmc0: new high speed SDHC card at address 59b4
[    2.224673] registered taskstats version 1
[    2.234516] mmcblk0: mmc0:59b4 00000 3.67 GiB
[    2.255788]  mmcblk0: p1 p2
[    2.383875] usb 1-1: new high-speed USB device number 2 using dwc_otg
[    2.393159] Indeed it is in host mode hprt0 = 00001101
[    2.427210] EXT4-fs (mmcblk0p2): recovery complete
[    2.446623] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    2.473867] VFS: Mounted root (ext4 filesystem) on device 179:2.
[    2.493936] devtmpfs: mounted
[    2.500085] Freeing init memory: 128K
[    2.644226] usb 1-1: New USB device found, idVendor=0424, idProduct=9512
[    2.653301] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    2.664244] hub 1-1:1.0: USB hub found
[    2.670566] hub 1-1:1.0: 3 ports detected
[    2.954020] usb 1-1.1: new high-speed USB device number 3 using dwc_otg
[    3.064557] usb 1-1.1: New USB device found, idVendor=0424, idProduct=ec00
[    3.081628] usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    3.104269] smsc95xx v1.0.4
[    3.178874] smsc95xx 1-1.1:1.0: eth0: register 'smsc95xx' at usb-bcm2708_usb-1.1, smsc95xx USB 2.0 Ethernet, b8:27:eb:cd:cf:a1
[    3.274075] usb 1-1.2: new full-speed USB device number 4 using dwc_otg
[    3.409366] usb 1-1.2: New USB device found, idVendor=0403, idProduct=e0e8
[    3.429027] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    3.447046] usb 1-1.2: Product: ELV FHZ 1300 PC
[    3.463935] usb 1-1.2: Manufacturer: ELV AG
[    3.470553] usb 1-1.2: SerialNumber: EL64JQY1
[    3.916223] udevd[142]: starting version 175
[    5.230612] usbcore: registered new interface driver usbserial
[    5.539735] usbcore: registered new interface driver usbserial_generic
[    5.746147] USB Serial support registered for generic
[    5.915793] usbserial: USB Serial Driver core
[    6.080606] usbcore: registered new interface driver ftdi_sio
[    6.180239] USB Serial support registered for FTDI USB Serial Device
[    6.289957] ftdi_sio 1-1.2:1.0: FTDI USB Serial Device converter detected
[    6.374086] usb 1-1.2: Detected FT8U232AM
[    6.380565] usb 1-1.2: Number of endpoints 2
[    6.482023] usb 1-1.2: Endpoint 1 MaxPacketSize 64
[    6.518159] usb 1-1.2: Endpoint 2 MaxPacketSize 64
[    6.559320] usb 1-1.2: Setting MaxPacketSize 64
[    6.601907] ftdi_sio ttyUSB0: Unable to read latency timer: -32
[    6.633102] ftdi_sio ttyUSB0: Unable to write latency timer: -32
[    6.642712] usb 1-1.2: FTDI USB Serial Device converter now attached to ttyUSB0
[    6.652590] ftdi_sio: v1.6.0:USB FTDI Serial Converters Driver
[    9.890293] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
[   10.305293] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
[   10.997185] bcm2835 ALSA card created!
[   11.011096] bcm2835 ALSA chip created!
[   11.023513] bcm2835 ALSA chip created!
[   11.032337] bcm2835 ALSA chip created!
[   11.042593] bcm2835 ALSA chip created!
[   11.050785] bcm2835 ALSA chip created!
[   11.059001] bcm2835 ALSA chip created!
[   11.067020] bcm2835 ALSA chip created!
[   15.127449] mmc0: missed completion of cmd 18 DMA (512/512 [1]/[1]) - ignoring it
[   15.138434] mmc0: DMA IRQ 6 ignored - results were reset
[   15.154385] mmc0: missed completion of cmd 18 DMA (512/512 [1]/[1]) - ignoring it
[   15.165500] mmc0: DMA IRQ 6 ignored - results were reset
øø
Debian GNU/Linux 7.0 raspberrypi ttyAMA0

raspberrypi login:

Howard
Posts: 64
Joined: Sun Mar 04, 2012 7:38 pm
Contact: Website

Re: USB/serial converters very broken on Pi

Fri Jan 11, 2013 7:04 am

If I understand this topic, it is focussed on USB data toggle errors and assumes that USB serial converter problems are related to toggle errors...

I further understand that data toggle errors (whatever they are) can only occur with more than one USB device plugged in.

My serial port locks up the Pi when I only have the USB serial dongle and ssh in over ethernet.
Or does ethernet count as a USB device for this problem?

Thing is my Pi only locks up soon after opening the port, never after sending a few hundred packets so it doesn't 'feel' like a USB conflict type problem to me.

grs64
Posts: 1
Joined: Tue Dec 18, 2012 10:05 am
Location: Sydney, Australia

Re: USB/serial converters very broken on Pi

Fri Jan 11, 2013 9:50 pm

Thanks for all the hard work on this topic.
I have a project that will require using the CDC as a connection to a USB equipped micro controller. This will not use a real serial port, data is sent and received using the USB but the baud rate, pin changes (DTR,RTS RxData,TxData ) don't exist, Data is sent as if it were coming from the RxPin but is in fact from the processors internal memory. This works fine on a PC with data rates at about +90KB/S.

I would like to know what stage this kernel / driver code is up to. Would it be capable to get the through put I'm after? How do I incorporate the changes from your work into my RPi?

(I also noticed that a similar problem exists in the archlinux RPi build, probably the same kernel code).

Return to “Troubleshooting”