2009-05-26 16:56:07     USB-to-serial on BF537

Document created by Aaronwu Employee on Aug 15, 2013
Version 1Show Document
  • View in full screen mode

2009-05-26 16:56:07     USB-to-serial on BF537

Steve Strobel (UNITED STATES)

Message: 74620   

 

I am trying to get some USB-to-serial adapters working with a custom BF537 design (similar to the Stamp) running uClinux-dist-2008R1.5-RC3.  The isp1362-based USB interface works fine with USB flash drives, so I think the hardware is OK.  I have two USB-to-serial adapters:

 

    AirLink101 AC-USBS, which I believe uses a Prolific PL-2303 chip.

    SIIG US2308, which probably uses a FTDI chip (implied several places, but I haven't verified).

 

I have been trying to follow the HOST (not gadget) instructions from   docs.blackfin.uclinux.org/doku.php?id=serial_over_usb&s[]=usb&s[]=serial&s[]=converter  Both the ACM and generic USB serial driver instructions start off with the commands:

 

mount -t usbfs none /proc/bus/usb/

cat /proc/bus//devices

 

I can't get either of those commands to work:

 

root:~> mount -t usbfs none /proc/bus/usb/

mount: mounting none on /proc/bus/usb/ failed

 

root:~> cat /proc/bus/usb/devices

cat: /proc/bus/usb/devices: No such file or directory

 

root:~> ls /proc/bus

root:~>

 

My USB configuration follows:

 

Device Drivers

  USB Support

  <*> Support for Host-side USB

  <*> ISP1362 HCD support

  (65)  GPIO for Interrupt

  <*> USB Modem (CDC ACM) support

  <*> USB Mass Storage support

  --- USB port drivers

      USB Serial Converter support  --->

  <M> USB Serial Converter support

  [*]   USB Generic Serial Driver

  <M>   USB FTDI Single Port Serial Driver (EXPERIMENTAL)

  <M>   USB Prolific 2303 Single Port Serial Driver

 

I have been building in my other drivers, but the help for the USB Generic Serial Driver suggested that the USB Serial Converter support should be complied as a module.  I don't know if having a mix is a problem or not.

 

If I don't have anything connected to the USB port on startup, the console output looks like this:

 

Linux version 2.6.22.19-ADI-2008R1.5-svn515 (stevestrobel@dev1-ubuntu) (gcc version 4.1.2 (ADI svn)) #45 Tue May 26 09:1

1:53 MDT 2009

Hardware Trace Active and Enabled

Memory size limited to 34MB due to 05000263

Reset caused by Software reset

Blackfin support (C) 2004-2007 Analog Devices, Inc.

Compiled for ADSP-BF537 Rev 0.2

Blackfin Linux support by   blackfin.uclinux.org/

Processor Speed: 500 MHz core clock and 100 MHz System Clock

Board Memory: 64MB

Kernel Managed Memory: 64MB

Memory map:

  text      = 0x00001000-0x00147940

  rodata    = 0x00148000-0x001a27f8

  data      = 0x001a3000-0x001ba000

    stack   = 0x001a4000-0x001a6000

  init      = 0x001ba000-0x001cd000

  bss       = 0x001cd000-0x001de030

  available = 0x001de030-0x02200000

  rootfs    = 0x02200000-0x03f00000

  DMA Zone  = 0x03f00000-0x04000000

NOMPU: setting up cplb tables for global access

Instruction Cache Enabled

Data Cache Enabled (write-back)

Built 1 zonelists.  Total pages: 8636

Kernel command line: root=/dev/mtdblock0 rw console=ttyBF0,115200

Configuring Blackfin Priority Driven Interrupts

PID hash table entries: 256 (order: 8, 1024 bytes)

Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)

Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)

Memory available: 32324k/65536k RAM, (76k init code, 1306k kernel code, 526k data, 1024k dma, 30280k reserved)

Blackfin Scratchpad data SRAM: 4 KB

Blackfin Data A SRAM: 16 KB (15 KB free)

Blackfin Data B SRAM: 16 KB (16 KB free)

Blackfin Instruction SRAM: 48 KB (39 KB free)

Mount-cache hash table entries: 512

NET: Registered protocol family 16

Blackfin GPIO Controller

Blackfin DMA Controller

rlc_dsp4_board_init(): registering device resources

rlc_dsp4_board_init(): registering Blackfin SPI resources

rlc_dsp4_board_init(): finished registering Blackfin SPI resources

Generic PHY: Registered new driver

SCSI subsystem initialized

usbcore: registered new interface driver usbfs

usbcore: registered new interface driver hub

usbcore: registered new device driver usb

NET: Registered protocol family 2

IP route cache hash table entries: 1024 (order: 0, 4096 bytes)

TCP established hash table entries: 2048 (order: 2, 16384 bytes)

TCP bind hash table entries: 2048 (order: 1, 8192 bytes)

TCP: Hash tables configured (established 2048 bind 2048)

TCP reno registered

JFFS2 version 2.2. (NAND) © 2001-2006 Red Hat, Inc.

io scheduler noop registered

io scheduler anticipatory registered (default)

io scheduler cfq registered

ISA-BlackFin-CAN CAN Driver 3.4.6_AD_BLACKFIN (c) May 26 2009

BlackFin port by H.J. Oertel (oe@port.de)

bfin-wdt: initialized: timeout=20 sec (nowayout=0)

RLC-DSP4 cors driver

RLC-DSP4 dtmf_data driver

RLC-DSP4 dtmf_strobe driver

MSAT-IP init_switch driver

RLC-DSP4 inputs driver

RLC-DSP4 leds driver

RLC-DSP4 ltc1863_adc driver

ltc1863_spi_init

RLC-DSP4 outputs driver

RLC-DSP4 pls driver

RLC-DSP4 ptts driver

Serial: Blackfin serial driver

bfin-uart.1: ttyBF0 at MMIO 0xffc00400 (irq = 18) is a BFIN-UART

bfin-uart.1: ttyBF1 at MMIO 0xffc02000 (irq = 20) is a BFIN-UART

RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize

bfin_mac_mdio: probed

bfin_mac: attached PHY driver [Generic PHY] (mii_bus:phy_addr=0:01, irq=-1, mdc_clk=2500000Hz(mdc_div=19)@sclk=100MHz)

bfin_mac: Version 1.1, Blackfin BF53[67] BF527 on-chip Ethernet MAC driver

uclinux[mtd]: RAM probe address=0x2200000 size=0x1d00000

Creating 1 MTD partitions on "RAM":

0x00000000-0x01d00000 : "ROMfs"

m25p80 spi0.1: m25p128 (16384 Kbytes)

Creating 4 MTD partitions on "m25p80":

0x00000000-0x00040000 : "bootloader"

0x00040000-0x00080000 : "bootloader-environment"

0x00080000-0x00e00000 : "kernel"

0x00e00000-0x01000000 : "file system"

ltc1863_spi_probe with spi pointer 0x002ce000

ltc1863_spi_probe: chip 003b8d40, spi 002ce000

bfin-spi bfin-spi.0: Blackfin BF5xx on-chip SPI Contoller Driver, Version 1.0, regs_base@ffc00500, dma channel@7

bfin-spi-gpio-mstr: registering platform driver

bfin-spi-gpio-mstr: bfin_spi_gpio_probe()

driver isp1362-hcd, 2005-04-04

isp1362-hcd isp1362-hcd.0: ISP1362 Host Controller

isp1362-hcd isp1362-hcd.0: new USB bus registered, assigned bus number 1

isp1362_hc_reset:

isp1362-hcd isp1362-hcd.0: irq 65, io mem 0x20060000

isp1362_hc_start:

isp1362-hcd isp1362-hcd.0: ISP1362 Memory usage:

isp1362-hcd isp1362-hcd.0:   ISTL:    2 *  256:      512 @ $0000:$0100

isp1362-hcd isp1362-hcd.0:   INTL:   16 * ( 64+8):  1152 @ $0200

isp1362-hcd isp1362-hcd.0:   ATL :   32 * ( 64+8):  2304 @ $0680

isp1362-hcd isp1362-hcd.0:   USED/FREE:   3968       128

usb usb1: configuration #1 chosen from 1 choice

hub 1-0:1.0: USB hub found

hub 1-0:1.0: 2 ports detected

ISP1362 Host Controller, irq 65

usbcore: registered new interface driver cdc_acm

drivers/usb/class/cdc-acm.c: v0.25:USB Abstract Control Model driver for USB modems and ISDN adapters

Initializing USB Mass Storage driver...

usbcore: registered new interface driver usb-storage

USB Mass Storage support registered.

rtc-bfin rtc-bfin: rtc core: registered rtc-bfin as rtc0

spi_mmc: configure for card detection

Advanced Linux Sound Architecture Driver Version 1.0.12rc1 (Thu Jun 22 13:55:50 2006 UTC).

ALSA device list:

  No soundcards found.

TCP cubic registered

NET: Registered protocol family 1

NET: Registered protocol family 17

rtc-bfin rtc-bfin: setting the system clock to 1970-01-03 16:42:21 (232941)

VFS: Mounted root (ext2 filesystem).

Freeing unused kernel memory: 76k freed

dma_alloc_init: dma_page @ 0x001c8000 - 256 pages at 0x03f00000

                           _____________________________________

        a8888b.           / Welcome to the uClinux distribution \

       d888888b.         /       _     _                         \

       8P"YP"Y88        /       | |   |_|            __  __ (TM)  |

       8|o||o|88  _____/        | |    _ ____  _   _ \ \/ /       |

       8'    .88       \        | |   | |  _ \| | | | \  /        |

       8`._.' Y8.       \       | |__ | | | | | |_| | /  \        |

      d/      `8b.       \      \____||_|_| |_|\____|/_/\_\       |

     dP   .    Y8b.       \   For embedded processors including   |

    d8:'  "  `::88b        \    the Analog Devices Blackfin      /

   d8"         'Y88b        \___________________________________/

  :8P    '      :888

   8a.   :     _a88P         For further information, check out:

._/"Yaa_:   .| 88P|            -   blackfin.uclinux.org/

\    YP"    `| 8P  `.          -   docs.blackfin.uclinux.org/

/     \.___.d|    .'           -   www.uclinux.org/

`--..__)8888P`._.'  jgs/a:f    -   www.analog.com/blackfin

 

Have a lot of fun...

This is /mnt/permanent/scripts/init-passwd

Checking for password file

Password file already exists

Password file exists - using it

 

 

 

BusyBox v1.4.1 (2009-05-26 09:38:38 MDT) Built-in shell (msh)

Enter 'help' for a list of built-in commands.

 

root:~>

 

Thanks for any suggestions,

 

Steve

QuoteReplyEditDelete

 

 

2009-05-26 17:01:33     Re: USB-to-serial on BF537

Mike Frysinger (UNITED STATES)

Message: 74622   

 

if you dont enable the USB filesystem, then mounting it will of course fail.  you have to enable it in your kernel configuration first.

QuoteReplyEditDelete

 

 

2009-05-27 13:52:58     Re: USB-to-serial on BF537

Steve Strobel (UNITED STATES)

Message: 74654   

 

> if you dont enable the USB filesystem, then mounting it will of course fail.

> you have to enable it in your kernel configuration first.

 

Seems obvious now   Thanks.

 

I got the SIIG adapter working.  The AirLink adapter using the Prolific chip isn't working;  it causes the message " usb 1-2: can't set config #1, error -32” to be printed when it is plugged in.  That is OK;  I don't need both anyway.

 

Steve

Attachments

    Outcomes