2009-08-08 01:04:15     BF532-USB Driver Development - Dist

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

2009-08-08 01:04:15     BF532-USB Driver Development - Dist

John Peter (INDIA)

Message: 78528   

 

Hai,

 

I have customised my board BF532 using U-boot2008R1.5. In the custom board ISP1760 is used as USB host controller. Can any one pls guide me for  USB Driver Development using extended ports(Latch)? I am going to use uClinux-dist-2008R1.5-RC3 for developing the uImage.

 

By

Peter

QuoteReplyEditDelete

 

 

2009-08-09 10:26:09     Re: BF532-USB Driver Development - Dist

Mike Frysinger (UNITED STATES)

Message: 78539   

 

what exactly do you want to do ?  you want to hook up a USB device that no driver exists and be able to use it ?

QuoteReplyEditDelete

 

 

2009-08-10 04:26:49     Re: BF532-USB Driver Development - Dist

John Peter (INDIA)

Message: 78548   

 

Dear Mike,

I am customising my board BF532 for USB driver development. I am using 2009R uClinux disrtibution and USB Host controller ISP 1760 is being used in my custom board. Tell me What I have to do right from the beginning steps?

 

Thanks

Peter

QuoteReplyEditDelete

 

 

2009-08-10 04:58:18     Re: BF532-USB Driver Development - Dist

Michael Hennerich (GERMANY)

Message: 78550   

 

Add struct platform_device bfin_isp1760_device to struct platform_device

*yourboards_devices[].

As an example look at arch/blackfin/mach-bf537/boards/stamp.c

You need to provide resource information: IRQ used and base address.

 

Enable the ISP1760 driver during kernel configuration.

Done

 

-Michael

QuoteReplyEditDelete

 

 

2009-08-10 07:22:13     Re: BF532-USB Driver Development - Dist

John Peter (INDIA)

Message: 78552   

 

Thanks Mike. Then I am getting the following error for compiling the dist 2009R1.

 

I ahve not done any modifications. I have just customised my board to BF533 Ezkit and compiled. Can you please clarify reg this?

 

CC      libbb/verror_msg.o

CC      libbb/vfork_daemon_rexec.o

CC      libbb/warn_ignoring_args.o

CC      libbb/wfopen.o

CC      libbb/wfopen_input.o

CC      libbb/write.o

CC      libbb/xatonum.o

CC      libbb/xconnect.o

CC      libbb/xfunc_die.o

CC      libbb/xfuncs.o

CC      libbb/xfuncs_printf.o

CC      libbb/xgetcwd.o

CC      libbb/xgethostbyname.o

CC      libbb/xreadlink.o

CC      libbb/xrealloc_vector.o

CC      libbb/xregcomp.o

AR      libbb/lib.a

LINK    busybox_unstripped

Trying libraries: crypt m

Library crypt is not needed, excluding it

Library m is not needed, excluding it

Final link with:

make[4]: Leaving directory `/home/chinna/uClinux-dist/user/busybox/build-busybox-1.13.4'

make[3]: Leaving directory `/home/chinna/uClinux-dist/user/busybox'

make[2]: Leaving directory `/home/chinna/uClinux-dist/user'

make[1]: *** [all] Error 2

make[1]: Leaving directory `/home/chinna/uClinux-dist/user'

make: *** [subdirs] Error 1

 

chinna@HMS-DENON:~/uClinux-dist> make menuconfig

find vendors -mindepth 2 \'(\' -name .svn -prune \')\' -o -type f -name Kconfig -print | sed \'s:^:source ../:\' > vendors/Kconfig

config/mkconfig > Kconfig

KCONFIG_NOTIMESTAMP=1 /home/chinna/uClinux-dist/config/kconfig/mconf Kconfig

 

Your kernel configuration changes were NOT saved.

 

Thanks

Peter

QuoteReplyEditDelete

 

 

2009-08-10 07:30:37     Re: BF532-USB Driver Development - Dist

Michael Hennerich (GERMANY)

Message: 78553   

 

I don't see the error

 

Try make single ...

 

michael@mhenneri-D02:~/devel/svn/uclinux-dist-2009R1> make single

make NON_SMP_BUILD=3D1 `expr single : 'single[_]*\(.*\)'`

make[1]: Entering directory `/home/michael/devel/svn/uclinux-dist-2009R1

QuoteReplyEditDelete

 

 

2009-08-10 07:51:27     Re: BF532-USB Driver Development - Dist

John Peter (INDIA)

Message: 78554   

 

Michael,

Wats the diff between make and make single? I am geeting error for make single too as below...

 

compr_zlib.c: In function jffs2_zlib_decompress:

compr_zlib.c:102: warning: unused parameter model

compr_zlib.c: At top level:

compr_zlib.c:130: warning: initialization discards qualifiers from pointer target type

mkdir -p /home/chinna/uClinux-dist/user/mtd-utils/build-606f38a2221648ca5c5fa292c9f71d2ddd59fa66-host/

gcc -I./include -DWITHOUT_XATTR -D_FILE_OFFSET_BITS=64 -O2 -g -Wall -Wextra -Wwrite-strings -Wno-sign-compare -c -o /home/chinna/uClinux-dist/user/mtd-utils/build-606f38a2221648ca5c5fa292c9f71d2ddd59fa66-host/compr_lzo.o compr_lzo.c -g -Wp,-MD,/home/chinna/uClinux-dist/user/mtd-utils/build-606f38a2221648ca5c5fa292c9f71d2ddd59fa66-host/.compr_lzo.c.dep

compr_lzo.c:29:23: error: lzo/lzo1x.h: No such file or directory

compr_lzo.c: In function jffs2_lzo_cmpr:

compr_lzo.c:51: error: lzo_uint undeclared (first use in this function)

compr_lzo.c:51: error: (Each undeclared identifier is reported only once

compr_lzo.c:51: error: for each function it appears in.)

compr_lzo.c:51: error: expected ; before compress_size

compr_lzo.c:54: warning: implicit declaration of function lzo1x_999_compress

compr_lzo.c:54: error: compress_size undeclared (first use in this function)

compr_lzo.c:56: error: LZO_E_OK undeclared (first use in this function)

compr_lzo.c:49: warning: unused parameter model

compr_lzo.c: In function jffs2_lzo_decompress:

compr_lzo.c:72: error: lzo_uint undeclared (first use in this function)

compr_lzo.c:72: error: expected ; before dl

compr_lzo.c:74: warning: implicit declaration of function lzo1x_decompress_safe

compr_lzo.c:74: error: dl undeclared (first use in this function)

compr_lzo.c:76: error: LZO_E_OK undeclared (first use in this function)

compr_lzo.c:69: warning: unused parameter model

compr_lzo.c: At top level:

compr_lzo.c:84: warning: initialization discards qualifiers from pointer target type

compr_lzo.c: In function jffs2_lzo_init:

compr_lzo.c:95: error: LZO1X_999_MEM_COMPRESS undeclared (first use in this function)

make[5]: *** [/home/chinna/uClinux-dist/user/mtd-utils/build-606f38a2221648ca5c5fa292c9f71d2ddd59fa66-host/compr_lzo.o] Error 1

make[5]: Leaving directory `/home/chinna/uClinux-dist/user/mtd-utils/606f38a2221648ca5c5fa292c9f71d2ddd59fa66'

make[4]: *** [all] Error 2

make[4]: Leaving directory `/home/chinna/uClinux-dist/user/mtd-utils'

make[3]: *** [mtd-utils] Error 2

make[3]: Leaving directory `/home/chinna/uClinux-dist/user'

make[2]: *** [all] Error 2

make[2]: Leaving directory `/home/chinna/uClinux-dist/user'

make[1]: *** [subdirs] Error 1

make[1]: Leaving directory `/home/chinna/uClinux-dist'

make: *** [single] Error 2

chinna@HMS-DENON:~/uClinux-dist>

 

Thanks

Peter

QuoteReplyEditDelete

 

 

2009-08-10 08:02:48     Re: BF532-USB Driver Development - Dist

Michael Hennerich (GERMANY)

Message: 78556   

 

"make single" same as "make NON_SMP_BUILD=1" turns off parallel builds

 

- you NOW see where the error is.

Your current library configuration misses zlib.

Either select CONFIG_LIB_ZLIB or turn deslect MTD-UTILS.

 

-Michael

QuoteReplyEditDelete

 

 

2009-08-11 04:51:07     Re: BF532-USB Driver Development - Dist

John Peter (INDIA)

Message: 78604   

 

Michael,

Thanks for your continued support. As you said I configured for my usb driver ISP1760. For that I added the code in arch/blackfin/mach-bf533/boards/ezkit.c as mentioned below.

 

#if defined(CONFIG_USB_ISP1760_HCD) || defined(CONFIG_USB_ISP1760_HCD_MODULE)

#include usb/isp1760.h>

static struct resource bfin_isp1760_resources[] = {

       [0] = {

               .start  = 0x20140000,                  //0x203C0000 Added by Chinna

               .end    = 0x20140000 + 0x000fffff,     //0x203C0000 + 0x000fffff

               .flags  = IORESOURCE_MEM,

       },

       [1] = {

               .start  = IRQ_PF5,  //IRQ_PF7 Chinna

               .end    = IRQ_PF5,  //IRQ_PF7 Chinna

               .flags  = IORESOURCE_IRQ,

       },

};

 

static struct isp1760_platform_data isp1760_priv = {

       .is_isp1761 = 0,

       .port1_disable = 0,

       .bus_width_16 = 1,

       .port1_otg = 0,

       .analog_oc = 0,

       .dack_polarity_high = 0,

       .dreq_polarity_high = 0,

};

 

static struct platform_device bfin_isp1760_device = {

       .name           = "isp1760-hcd",

       .id             = 0,

       .dev = {

               .platform_data = &isp1760_priv,

       },

       .num_resources  = ARRAY_SIZE(bfin_isp1760_resources),

       .resource       = bfin_isp1760_resources,

};

#endif

 

The following is the error I am getting after booting the uImage as bootm.

bfin> bootm

## Booting image at 01000000 ...

  Image Name:   Linux-2.6.28.10-ADI-2009R1

  Created:      2009-08-11   8:17:06 UTC

  Image Type:   Blackfin Linux Kernel Image (gzip compressed)

  Data Size:    3530909 Bytes =  3.4 MB

  Load Address: 00001000

  Entry Point:  0018d2ec

  Verifying Checksum ... OK

  Uncompressing Kernel Image ... OK

Starting Kernel at = 18d2ec

console [early_BFuart0] enabled

early printk enabled on early_BFuart0

return address: [0x001824d4]; contents of:

0x001824b0:  ????  ????  ????  ????  ????  ????  ????  ????

0x001824c0:  ????  ????  ????  ????  ????  ????  ????  ????

0x001824d0:  ????  ???? [????] ????  ????  ????  ????  ????

0x001824e0:  ????  ????  ????  ????  ????  ????  ????  ????

 

ADSP-BF533-0.5 400(MHz CCLK) 133(MHz SCLK) (mpu off)

Linux version 2.6.28.10-ADI-2009R1

Built with gcc version 4.1.2 (ADI svn)

 

SEQUENCER STATUS:               Not tainted

SEQSTAT: 0000e026  IPEND: 1824d4  SYSCFG: 0006

EXCAUSE   : 0x26

physical IVG2 asserted : <0x0018d218> { _early_trap + 0x0 }

interrupts disabled

physical IVG6 asserted : <0x0018d218> { _early_trap + 0x0 }

physical IVG7 asserted : <0x0018d218> { _early_trap + 0x0 }

physical IVG10 asserted : <0x0018d218> { _early_trap + 0x0 }

physical IVG13 asserted : <0x0018d218> { _early_trap + 0x0 }

RETE: <0x00120004> /* kernel dynamic memory */

RETN: <0x0018d218> { _early_trap + 0x0 }

RETX: <0x0018d218> { _early_trap + 0x0 }

RETS: <0x001824c6> { _start_kernel + 0x16 }

PC  : <0x001824d4> { _start_kernel + 0x24 }

DCPLB_FAULT_ADDR: <0x00000000> /* Maybe null pointer? */

ICPLB_FAULT_ADDR: <0x00000000> /* Maybe null pointer? */

 

PROCESSOR STATE:

R0 : 00000000    R1 : 0000001f    R2 : 0000003f    R3 : 00163050

R4 : 00000000    R5 : 00000000    R6 : 00000000    R7 : ffb00000

P0 : 00175348    P1 : 0016c768    P2 : 00173980    P3 : 00000000

P4 : 00000000    P5 : 00000000    FP : 00181fe4    SP : 00181ef0

LB0: ffa015cc    LT0: ffa015cc    LC0: 00000000

LB1: 03fd0508    LT1: 03fd0502    LC1: 00000000

B0 : 00000000    L0 : 00000000    M0 : 00000000    I0 : 00000000

B1 : 00000000    L1 : 00000000    M1 : 00000000    I1 : 00000000

B2 : 00000000    L2 : 00000000    M2 : 00000000    I2 : 00000000

B3 : 00000000    L3 : 00000000    M3 : 00000000    I3 : 00000000

A0.w: fffb33d3   A0.x: ffffffff   A1.w: ffffeab0   A1.x: ffffffff

USP : 00182000  ASTAT: 00002020

 

Hardware Trace:

  0 Target : <0x0018d218> { _early_trap + 0x0 }

    Source : <0x001824d2> { _start_kernel + 0x22 }

  1 Target : <0x001824c6> { _start_kernel + 0x16 }

    Source : <0x000233ac> { _notifier_chain_register + 0x34 }

  2 Target : <0x000233a6> { _notifier_chain_register + 0x2e }

    Source : <0x00023380> { _notifier_chain_register + 0x8 }

  3 Target : <0x00023378> { _notifier_chain_register + 0x0 }

    Source : <0x00023484> { _raw_notifier_chain_register + 0x0 }

  4 Target : <0x00023484> { _raw_notifier_chain_register + 0x0 }

    Source : <0x000271aa> { _clockevents_register_notifier + 0xa }

  5 Target : <0x000271a0> { _clockevents_register_notifier + 0x0 }

    Source : <0x0018efa8> { _tick_init + 0x8 }

  6 Target : <0x0018efa0> { _tick_init + 0x0 }

    Source : <0x001824c2> { _start_kernel + 0x12 }

  7 Target : <0x001824c0> { _start_kernel + 0x10 }

    Source : <0x00182078> { _smp_setup_processor_id + 0x8 }

  8 Target : <0x00182070> { _smp_setup_processor_id + 0x0 }

    Source : <0x001824be> { _start_kernel + 0xe }

  9 Target : <0x001824b0> { _start_kernel + 0x0 }

    Source : <0x0018d46a> { _real_start + 0x2a }

10 Target : <0x0018d468> { _real_start + 0x28 }

    Source : <0x0018d1de> { _init_pda + 0x3a }

11 Target : <0x0018d1c0> { _init_pda + 0x1c }

    Source : <0xffa015d2> { _memset + 0x2e } RTS

12 Target : <0xffa015a4> { _memset + 0x0 }

    Source : <0x0018d1bc> { _init_pda + 0x18 }

13 Target : <0x0018d1a4> { _init_pda + 0x0 }

    Source : <0x0018d464> { _real_start + 0x24 }

14 Target : <0x0018d458> { _real_start + 0x18 }

    Source : <0x00187874> { _cmdline_init + 0x38 }

15 Target : <0x00187872> { _cmdline_init + 0x36 }

    Source : <0x0018786c> { _cmdline_init + 0x30 }

Kernel panic - not syncing: Died early

 

Please clarify me in this regard ?

 

Thanks

Peter.

QuoteReplyEditDelete

 

 

2009-08-11 05:04:28     Re: BF532-USB Driver Development - Dist

Michael Hennerich (GERMANY)

Message: 78605    I bet this has nothing to-do with the modifications made to

arch/blackfin/mach-bf533/boards/ezkit.c, and your kernel won't even

start without the ISP1760-HCD enabled?

 

Can you restore the BF533-EZKIT defaults by dosing something like this:

 

michael@mhenneri-D02:~/devel/svn/uclinux-dist-2009R1> cp

linux-2.6.x/arch/blackfin/configs/BF533-EZKIT_defconfig

linux-2.6.x/.config

 

Make sure your kernel boots without the ISP1760-HCD enabled.

 

-Michael

QuoteReplyEditDelete

 

 

2009-08-11 06:02:10     Re: BF532-USB Driver Development - Dist

John Peter (INDIA)

Message: 78611   

 

Michael,

Thanks for yuor support. Then after booting the uImage I am getting this message "init: /sbin/syslogd respawning too fast". continuously. Can you please clarify this?

 

Image Type: Blackfin Linux Kernel Image (gzip compressed)

Data Size: 2858686 Bytes = 2.7 MB

Load Address: 00001000

Entry Point: 000fb1b4

Verifying Checksum ... OK

Uncompressing Kernel Image ... OK

Starting Kernel at = fb1b4

Linux version 2.6.28.10-ADI-2009R1 (chinna@HMS-DENON) (gcc version 4.1.2 (ADI sv

n)) #31 Tue Aug 11 15:06:06 IST 2009

Board Memory: 64MB

Kernel Managed Memory: 64MB

Memory map:

fixedcode = 0x00000400-0x00000490

text = 0x00001000-0x000a18a0

rodata = 0x000a18a0-0x000d7a0c

bss = 0x000d8000-0x000e5fc4

data = 0x000e5fe0-0x000f0000

stack = 0x000ee000-0x000f0000

init = 0x000f0000-0x00544000

available = 0x00544000-0x03eff000

DMA Zone = 0x03f00000-0x04000000

Hardware Trace Active and Enabled

Boot Mode: 2

Reset caused by Software reset

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

Compiled for ADSP-BF532 Rev 0.5

Blackfin Linux support by   blackfin.uclinux.org/

Processor Speed: 400 MHz core clock and 133 MHz System Clock

NOMPU: setting up cplb tables

Instruction Cache Enabled for CPU0

Data Cache Enabled for CPU0 (write-back)

Built 1 zonelists in Zone order, mobility grouping off. Total pages: 16001

Kernel command line: console=ttyBF0,57600

Configuring Blackfin Priority Driven Interrupts

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

console [ttyBF0] enabled

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

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

Memory available: 58548k/65536k RAM, (4432k init code, 642k kernel code, 314k da

ta, 1024k dma, 572k reserved)

Calibrating delay loop... 796.67 BogoMIPS (lpj=1593344)

Security Framework initialized

Mount-cache hash table entries: 512

Blackfin Scratchpad data SRAM: 4 KB

Blackfin L1 Instruction SRAM: 32 KB (21 KB free)

Blackfin DMA Controller

ezkit_init(): registering device resources

msgmni has been set to 114

io scheduler noop registered

io scheduler anticipatory registered (default)

io scheduler cfq registered

Serial: Blackfin serial driver

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

brd: module loaded

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

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

rtc-bfin rtc-bfin: setting system clock to 1970-01-18 00:25:28 UTC (1470328)

Freeing unused kernel memory: 4432k freed

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

ifconfig: socket: Function not implemented

                          _____________________________________

       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...

 

 

BusyBox v1.13.4 (2009-08-11 10:33:48 IST) built-in shell (msh)

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

 

root:/> init: /sbin/syslogd respawning too fast

init: /sbin/syslogd respawning too fast

init: /sbin/syslogd respawning too fast

QuoteReplyEditDelete

 

 

2009-08-11 06:11:42     Re: BF532-USB Driver Development - Dist

Mike Frysinger (UNITED STATES)

Message: 78614   

 

please read the faq:

  docs.blackfin.uclinux.org/doku.php?id=faq

QuoteReplyEditDelete

 

 

2009-08-11 06:33:07     Re: BF532-USB Driver Development - Dist

John Peter (INDIA)

Message: 78616   

 

Michael,

Thanks. Where can I see the  syslogd in the kernel config??

 

Thanks

Peter

QuoteReplyEditDelete

 

 

2009-08-11 07:01:33     Re: BF532-USB Driver Development - Dist

John Peter (INDIA)

Message: 78619   

 

Mike,

Now I configured my custom board BF532 for the USB driver ISP1760 using dist 2009R1. Now can you please tell me how to test for the USB driver ?

 

Thanks

Peter

QuoteReplyEditDelete

 

 

2009-08-11 17:24:23     Re: BF532-USB Driver Development - Dist

Mike Frysinger (UNITED STATES)

Message: 78677   

 

the menu config has a search function you can use.  just hit forward slash.

QuoteReplyEditDelete

 

 

2009-08-11 17:25:36     Re: BF532-USB Driver Development - Dist

Mike Frysinger (UNITED STATES)

Message: 78678   

 

why dont you enable it and then read the log output.  then stick a usb device in.

QuoteReplyEditDelete

 

 

2009-08-12 01:51:01     Re: BF532-USB Driver Development - Dist

John Peter (INDIA)

Message: 78705   

 

Mike,

Thanks Mike. I tried both of enabling and disabling syslogd in the kernel config. I don know how to read the log file. The following is the details I got before and after enabling syslogd. After booting the uImage I attached the USB stick, but it is not at all detected.

 

Before enabling syslogd:

 

## Booting image at 01000000 ...

  Image Name:   Linux-2.6.28.10-ADI-2009R1

  Created:      2009-08-12   5:05:17 UTC

  Image Type:   Blackfin Linux Kernel Image (gzip compressed)

  Data Size:    3341746 Bytes =  3.2 MB

  Load Address: 00001000

  Entry Point:  0018b18c

  Verifying Checksum ... OK

  Uncompressing Kernel Image ... OK

Starting Kernel at = 18b18c

Linux version 2.6.28.10-ADI-2009R1 (chinna@HMS-DENON) (gcc version 4.1.2 (ADI sv

n)) #45 Wed Aug 12 10:35:09 IST 2009

Board Memory: 64MB

Kernel Managed Memory: 64MB

Memory map:

fixedcode = 0x00000400-0x00000490

text      = 0x00001000-0x0010f060

rodata    = 0x0010f060-0x0015e774

bss       = 0x0015f000-0x0016f6c8

data      = 0x0016f6e0-0x00180000

   stack   = 0x0017e000-0x00180000

init      = 0x00180000-0x00629000

available = 0x00629000-0x03eff000

DMA Zone  = 0x03f00000-0x04000000

Hardware Trace Active and Enabled

Boot Mode: 2

Reset caused by Software reset

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

Compiled for ADSP-BF532 Rev 0.5

Blackfin Linux support by   blackfin.uclinux.org/

Processor Speed: 400 MHz core clock and 133 MHz System Clock

NOMPU: setting up cplb tables

Instruction Cache Enabled for CPU0

Data Cache Enabled for CPU0 (write-back)

Built 1 zonelists in Zone order, mobility grouping off.  Total pages: 16001

Kernel command line: console=ttyBF0,57600

Configuring Blackfin Priority Driven Interrupts

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

console [ttyBF0] enabled

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

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

Memory available: 57632k/65536k RAM, (4772k init code, 1080k kernel code, 452k d

ata, 1024k dma, 572k reserved)

Calibrating delay loop... 796.67 BogoMIPS (lpj=1593344)

Security Framework initialized

Mount-cache hash table entries: 512

Blackfin Scratchpad data SRAM: 4 KB

Blackfin L1 Instruction SRAM: 32 KB (21 KB free)

net_namespace: 484 bytes

NET: Registered protocol family 16

Blackfin DMA Controller

ezkit_init(): registering device resources

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

NET: Registered protocol family 1

msgmni has been set to 112

io scheduler noop registered

io scheduler anticipatory registered (default)

io scheduler cfq registered

Serial: Blackfin serial driver

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

brd: module loaded

usbcore: registered new interface driver libusual

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

TCP cubic registered

NET: Registered protocol family 15

Freeing unused kernel memory: 4772k freed

dma_alloc_init: dma_page @ 0x00626000 - 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...

BusyBox v1.13.4 (2009-08-11 16:27:05 IST) built-in shell (msh)

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

root:/>

 

After enabling syslogd :

 

## Booting image at 01000000 ...

  Image Name:   Linux-2.6.28.10-ADI-2009R1

  Created:      2009-08-12   5:20:25 UTC

  Image Type:   Blackfin Linux Kernel Image (gzip compressed)

  Data Size:    3343030 Bytes =  3.2 MB

  Load Address: 00001000

  Entry Point:  0018b18c

  Verifying Checksum ... OK

  Uncompressing Kernel Image ... OK

Starting Kernel at = 18b18c

Linux version 2.6.28.10-ADI-2009R1 (chinna@HMS-DENON) (gcc version 4.1.2 (ADI sv

n)) #47 Wed Aug 12 10:50:18 IST 2009

Board Memory: 64MB

Kernel Managed Memory: 64MB

Memory map:

fixedcode = 0x00000400-0x00000490

text      = 0x00001000-0x0010f060

rodata    = 0x0010f060-0x0015e774

bss       = 0x0015f000-0x0016f6c8

data      = 0x0016f6e0-0x00180000

   stack   = 0x0017e000-0x00180000

init      = 0x00180000-0x00629000

available = 0x00629000-0x03eff000

DMA Zone  = 0x03f00000-0x04000000

Hardware Trace Active and Enabled

Boot Mode: 2

Reset caused by Software reset

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

Compiled for ADSP-BF532 Rev 0.5

Blackfin Linux support by   blackfin.uclinux.org/

Processor Speed: 400 MHz core clock and 133 MHz System Clock

NOMPU: setting up cplb tables

Instruction Cache Enabled for CPU0

Data Cache Enabled for CPU0 (write-back)

Built 1 zonelists in Zone order, mobility grouping off.  Total pages: 16001

Kernel command line: console=ttyBF0,57600

Configuring Blackfin Priority Driven Interrupts

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

console [ttyBF0] enabled

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

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

Memory available: 57632k/65536k RAM, (4772k init code, 1080k kernel code, 452k d

ata, 1024k dma, 572k reserved)

Calibrating delay loop... 796.67 BogoMIPS (lpj=1593344)

Security Framework initialized

Mount-cache hash table entries: 512

Blackfin Scratchpad data SRAM: 4 KB

Blackfin L1 Instruction SRAM: 32 KB (21 KB free)

net_namespace: 484 bytes

NET: Registered protocol family 16

Blackfin DMA Controller

ezkit_init(): registering device resources

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

NET: Registered protocol family 1

msgmni has been set to 112

io scheduler noop registered

io scheduler anticipatory registered (default)

io scheduler cfq registered

Serial: Blackfin serial driver

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

brd: module loaded

usbcore: registered new interface driver libusual

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

TCP cubic registered

NET: Registered protocol family 15

Freeing unused kernel memory: 4772k freed

dma_alloc_init: dma_page @ 0x00626000 - 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...

BusyBox v1.13.4 (2009-08-11 16:27:05 IST) built-in shell (msh)

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

 

Mike,

Also below is the details I got in the root prompt. Can you please clarify this ?

 

root:/>

root:/> cat

bin/   etc/   init   mnt/   root/  sys/   usr/

dev/   home/  lib/   proc/  sbin/  tmp/   var/

root:/> cat dev/

dev/console             dev/ram10               dev/random

dev/cpu_dma_latency     dev/ram11               dev/sport0

dev/fd/                 dev/ram12               dev/sport1

dev/full                dev/ram13               dev/stderr

dev/kmsg                dev/ram14               dev/stdin

dev/log                 dev/ram15               dev/stdout

dev/mem                 dev/ram2                dev/tty

dev/network_latency     dev/ram3                dev/ttyBF0

dev/network_throughput  dev/ram4                dev/urandom

dev/null                dev/ram5                dev/usbmon0

dev/ptmx                dev/ram6                dev/watchdog

dev/pts/                dev/ram7                dev/zero

dev/ram0                dev/ram8

dev/ram1                dev/ram9

root:/> ls

bin   etc   init  mnt   root  sys   usr

dev   home  lib   proc  sbin  tmp   var

root:/> cd dev

root:/dev> ls

console             ptmx                ram2                sport1

cpu_dma_latency     pts                 ram3                stderr

fd                  ram0                ram4                stdin

full                ram1                ram5                stdout

kmsg                ram10               ram6                tty

log                 ram11               ram7                ttyBF0

mem                 ram12               ram8                urandom

network_latency     ram13               ram9                usbmon0

network_throughput  ram14               random              watchdog

null                ram15               sport0              zero

root:/dev>

 

Thanks

Peter

QuoteReplyEditDelete

 

 

2009-08-12 02:31:55     Re: BF532-USB Driver Development - Dist

Mike Frysinger (UNITED STATES)

Message: 78712   

 

you need to actually enable the usb host controller and add proper board resources for it.  plugging devices into a controller that itself isnt enabled wont matter at all.

QuoteReplyEditDelete

 

 

2009-08-12 02:40:29     Re: BF532-USB Driver Development - Dist

John Peter (INDIA)

Message: 78713   

 

Mike,

 

I have enabled the USB driver via

 

make linux_menuconfig->Device Drivers->USB Support->ISP 1760 HCD support.

 

Also I have set the BAse address and enabled the PF pins related to my custom board. I have correctly updated the driver resources.

 

Thanks

Peter.

QuoteReplyEditDelete

 

 

2009-08-12 02:44:35     Re: BF532-USB Driver Development - Dist

Mike Frysinger (UNITED STATES)

Message: 78715   

 

if those statements were all true, then you would have gotten output from the ISP1760 driver during boot.  you didnt, so something is wrong with your configuration or board resources.

QuoteReplyEditDelete

 

 

2009-08-12 03:55:37     Re: BF532-USB Driver Development - Dist

John Peter (INDIA)

Message: 78721   

 

Thanks Mike. Then I want to know one thing in the kernel. In my custom board BF532, for selecting the USB driver they have set and clear some latch(bit) via Extended ports. If I want add those functionalities for selecting the USB stick, in which part of the code I have to add ? or where to check for all these things? Please clarify.

 

Thanks,

Peter.

QuoteReplyEditDelete

 

 

2009-08-12 04:05:10     Re: BF532-USB Driver Development - Dist

Mike Frysinger (UNITED STATES)

Message: 78723   

 

i have no idea.  we didnt write the driver.

QuoteReplyEditDelete

 

 

2009-08-12 04:26:48     Re: BF532-USB Driver Development - Dist

Michael Hennerich (GERMANY)

Message: 78724    >USB driver they have set and clear some latch(bit) via Extended ports.

If I want add those

>functionalities for selecting the USB stick, in which part of the code

I have to add ? or where to

>check for all these things? Please clarify.

 

I have no idea what you are talking about. In case the ISP1760 driver

get's successfully initialized.

All three host ports become available.

 

-Michael

QuoteReplyEditDelete

 

 

2009-08-14 05:56:07     Re: BF532-USB Driver Development - Dist

John Peter (INDIA)

Message: 78869    Hai Michael, Thanks for your support. Now I am able to see the initialisation of host driver ISP1760 in my board. But without attaching the USB stick it shows as "usb 1-1: new high speed USB device using isp1760-hcd and address 2". See the below log and can you please clarify in this regard ? ## Booting image at 01000000 ... Image Name: Linux-2.6.28.10-ADI-2009R1 Created: 2009-08-13 14:07:46 UTC Image Type: Blackfin Linux Kernel Image (gzip compressed) Data Size: 3648631 Bytes = 3.5 MB Load Address: 00001000 Entry Point: 001a518c Verifying Checksum ... OK Uncompressing Kernel Image ... OK Starting Kernel at = 1a518c Linux version 2.6.28.10-ADI-2009R1 (chinna@HMS-DENON) (gcc version 4.1.2 (ADI sv n)) #105 Thu Aug 13 19:37:37 IST 2009 Board Memory: 64MB Kernel Managed Memory: 64MB Memory map: fixedcode = 0x00000400-0x00000490 text = 0x00001000-0x0011eb70 rodata = 0x0011eb70-0x00176d5c bss = 0x00177000-0x001878c8 data = 0x001878e0-0x0019a000 stack = 0x00198000-0x0019a000 init = 0x0019a000-0x006cb000 available = 0x006cb000-0x03eff000 DMA Zone = 0x03f00000-0x04000000 Hardware Trace Active and Enabled Boot Mode: 2 Reset caused by Software reset Blackfin support (C) 2004-2009 Analog Devices, Inc. Compiled for ADSP-BF532 Rev 0.5 Blackfin Linux support by   blackfin.uclinux.org/ Processor Speed: 400 MHz core clock and 133 MHz System Clock NOMPU: setting up cplb tables Instruction Cache Enabled for CPU0 Data Cache Enabled for CPU0 (write-back) Built 1 zonelists in Zone order, mobility grouping off. Total pages: 16001 Kernel command line: console=ttyBF0,57600 Configuring Blackfin Priority Driven Interrupts PID hash table entries: 256 (order: 8, 1024 bytes) console [ttyBF0] enabled Dentry cache hash table entries: 8192 (order: 3, 32768 bytes) Inode-cache hash table entries: 4096 (order: 2, 16384 bytes) Memory available: 56984k/65536k RAM, (5316k init code, 1142k kernel code, 494k d ata, 1024k dma, 572k reserved) Calibrating delay loop... 796.67 BogoMIPS (lpj=1593344) Security Framework initialized Mount-cache hash table entries: 512 Blackfin Scratchpad data SRAM: 4 KB Blackfin L1 Instruction SRAM: 32 KB (21 KB free) net_namespace: 484 bytes NET: Registered protocol family 16 Blackfin DMA Controller ezkit_init(): registering device resources 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 NET: Registered protocol family 1 msgmni has been set to 111 io scheduler noop registered io scheduler anticipatory registered (default) io scheduler cfq registered Serial: Blackfin serial driver bfin-uart.1: ttyBF0 at MMIO 0xffc00400 (irq = 21) is a BFIN-UART brd: module loaded Driver 'sd' needs updating - please use bus_type methods It is after reset It is in function isp1760_pdev_probe It is in function isp1760_register isp1760-hcd isp1760-hcd.0: NXP ISP1760 USB Host Controller isp1760-hcd isp1760-hcd.0: new USB bus registered, assigned bus number 1 Its in function isp1760_hc_setup Its in function isp1760_init_regs isp1760-hcd isp1760-hcd.0: bus width: 16, oc: digital isp1760-hcd isp1760-hcd.0: irq 38, io mem 0x20140000 isp1760-hcd isp1760-hcd.0: USB ISP 1761 HW rev. 1 started usb usb1: configuration #1 chosen from 1 choice hub 1-0:1.0: USB hub found hub 1-0:1.0: 1 port detected usb usb1: New USB device found, idVendor=1d6b, idProduct=0002 usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1 usb usb1: Product: NXP ISP1760 USB Host Controller usb usb1: Manufacturer: Linux 2.6.28.10-ADI-2009R1 isp1760-hcd usb usb1: SerialNumber: isp1760-hcd.0 Its after platform_driver_register 0 Initializing USB Mass Storage driver... usbcore: registered new interface driver usb-storage USB Mass Storage support registered. usbcore: registered new interface driver libusual bfin-wdt: initialized: timeout=20 sec (nowayout=0) TCP cubic registered NET: Registered protocol family 15 Freeing unused kernel memory: 5316k freed dma_alloc_init: dma_page @ 0x006c8000 - 256 pages at 0x03f00000 port 1 high speed usb 1-1: new high speed USB device using isp1760-hcd and address 2 _____________________________________ 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... BusyBox v1.13.4 (2009-08-13 15:26:07 IST) built-in shell (msh) Enter 'help' for a list of built-in commands. root:/> port 1 high speed usb 1-1: device descriptor read/64, error -110 port 1 high speed usb 1-1: device descriptor read/64, error -110 port 1 high speed usb 1-1: new high speed USB device using isp1760-hcd and address 3 port 1 high speed usb 1-1: device descriptor read/64, error -110 port 1 high speed usb 1-1: device descriptor read/64, error -110 port 1 high speed usb 1-1: new high speed USB device using isp1760-hcd and address 4 usb 1-1: device not accepting address 4, error -110 port 1 high speed usb 1-1: new high speed USB device using isp1760-hcd and address 5 usb 1-1: device not accepting address 5, error -110 hub 1-0:1.0: unable to enumerate USB device on port 1 Thanks Peter.

QuoteReplyEditDelete

 

 

2009-08-14 10:19:42     Re: BF532-USB Driver Development - Dist

Michael Hennerich (GERMANY)

Message: 78907    Check your EBIU settings

- I know with SCLK = 125MHz, EBIU setting 0x66C4 should work.

-Michael

QuoteReplyEditDelete

 

 

2009-08-17 04:02:38     Re: BF532-USB Driver Development - Dist

John Peter (INDIA)

Message: 78942    Michael, I tried the same with SCLK as 125 MHz and AMCTL0 and AMCTL1 value as 0x66C466C4 and 0x66C466C4 respectively. I cant get it. Below is the log for the same. U-Boot 1.1.6 (ADI-2008R1.5) (Aug 11 2009 - 13:28:54) CPU: ADSP bf532-0.5 (Detected Rev: 0.5) Board: ADI BF532 EZ-Kit Lite board Support:   blackfin.uclinux.org/ Clock: VCO: 400 MHz, Core: 400 MHz, System: 133 MHz RAM: 64 MB Flash: 2.1 MB In: serial Out: serial Err: serial Net: MAC: 11:22:33:44:55:66 Hit any key to stop autoboot: 0 bfin> bfin> tftp 0x1000000 uImage;bootm PHY ID : 0x7, 0xc0c3 start Auto negotiation... (take ~2sec) Auto negotiation complete, 100BaseTX, full duplex TFTP from server 172.16.6.55; our IP address is 172.16.15.49 Filename 'uImage'. Load address: 0x1000000 Loading: ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ############### done Bytes transferred = 3400051 (33e173 hex) ## Booting image at 01000000 ... Image Name: Linux-2.6.28.10-ADI-2009R1 Created: 2009-08-17 6:36:59 UTC Image Type: Blackfin Linux Kernel Image (gzip compressed) Data Size: 3399987 Bytes = 3.2 MB Load Address: 00001000 Entry Point: 001a518c Verifying Checksum ... OK Uncompressing Kernel Image ... OK Starting Kernel at = 1a518c Linõveò®ë¹²Ér²rŠ‚PTª’°Ê’Å i¡¥î+!ͪ‰ÎÊ*¨ÖöY®¥ï ¢r±IBÁT šÙîJ ±L&j½n AõŠº L&‚² Š 2¥áåÖ½‘åê‚ø‚‚‚°‚j°Á0°°¢Ê‚!¢•ø ê ÂÁ0°Š‚‚°KÂÁ°L*‰Ý°C!ò‹…ÑὂÂÁ°L*‰·j‚ÂÁ°L“–‚j  Í Í  ê‚ø‚Šº·‚‚j°Á01¸áŠ"…ôX ê°Á0±¸*ÁÂÁ°±NÁ°°C! šÑ…ë½‚ÂÁ°L‚°j‚ÂÁ°L Á°j   Z+Ñ  O‚ÂÁ °LNX‚‚j‚ø‚²¢´‚‚jŠ ÙáZ+‰±åê°Á06´‚‚ÂÁ3å–‚‚!"5A ZïîYê ÂÁ³æ‚‚‚°KÂÁ´‚‚‚°j Há.Ö…Éå¢É…ã Y ôZWá‹Å+‰±•äC!½ïj½äY'’!UÍå…õ®â^š½æ×WÉå’•ÍåWHBìX¬Ë¥îšÕÁðKс¨¨ ’°¢j²‚Ê ¹ aloç TÙ¥ãY. J¹¹Š¨«Áé«‘æKÁÄ*Õµ&ÒY‚®MHBìX¬Ë¥îb¥¹õsõÁ½ÉÑ ¬èô鯯,+ëV˹õ,+ ¹õ¹oòç©HÐòk•ÍóKSðYé ¦SÍJcï®±ï¬ ¹d 1²µj!é ªÍÑå[±ï¬«ŠÎª Ué ®WËëõcpì,¢…‰ìY®H(ÊkÑÉ õ,WëË …èY*¹á,«‘ ÖKÃUjŠTÑ… ¨¡å*¹…â«‘æKCÐUB÷®‹•µâX¬©HHÕ¥ìŠ ¯Ë«±é.ׁé Ò½îYzÉäYj ½‰¥±éWçò«Á¥îz™æ ¢½ôX ‚…•Íé L‚±C¡©–¹•±ã««…îb¥îY'½nsoìåOåÂbª·‚jŠ¨Ë™éV—¥î± …ã-VË ‚É¥½òZWÄ®Ë•îJ¹Ñå.ÕÁô®HÐÉB…ó ¢…â«åî—¥•ó'’ª¶BzÉäY.¸ Š‚²åÑ宩Š¬ËͽìYÚÑô^(êen áâ«‘5ŠDeî—åãX,«èX. ¢…‰±• Y‹ÉéY.¸L’¨K‘•ò'šb &º²¸åÑ宩 IîïVµãá,«èX. ¢…‰±• Y‹ÉéY.´Ê ²¨K‘•ò'’b LÓ´åÑ•óJHMemﮁaöX‹…‰ìY'ª·M&Óëɪª³Ó

QuoteReplyEditDelete

 

 

2009-08-17 04:21:24     Re: BF532-USB Driver Development - Dist

Michael Hennerich (GERMANY)

Message: 78944    Please attach your kernel config file (linux-2.6.x/.config)

QuoteReplyEditDelete

 

 

2009-08-17 04:44:42     Re: BF532-USB Driver Development - Dist

John Peter (INDIA)

Message: 78945   

 

Michael,

 

PFA the .config file.

 

config

QuoteReplyEditDelete

 

 

2009-08-17 05:32:31     Re: BF532-USB Driver Development - Dist

Michael Hennerich (GERMANY)

Message: 78946    This is not your linux-2.6.x/.config !

QuoteReplyEditDelete

 

 

2009-08-17 05:35:57     Re: BF532-USB Driver Development - Dist

John Peter (INDIA)

Message: 78947   

 

Michael,

 

After booting the uImage, I am getting the message "hub 1-0:1.0: unable to enumerate USB device on port 1" even without attaching the USB stick.  Then the error message "usb 1-1: device descriptor read/64, error -110 port 1 high speed" comes frequently. See the below log.

 

 

 

bfin> tftp 0x1000000 uImage;bootm

PHY ID : 0x7, 0xc0c3

start Auto negotiation... (take ~2sec)

Auto negotiation complete, 100BaseTX, full duplex

TFTP from server 172.16.6.55; our IP address is 172.16.15.49

Filename 'uImage'.

Load address: 0x1000000

Loading: #################################################################

         #################################################################

         #################################################################

         #################################################################

         #################################################################

         #################################################################

         #################################################################

         #################################################################

         #################################################################

         #################################################################

         ###############

done

Bytes transferred = 3400020 (33e154 hex)

## Booting image at 01000000 ...

   Image Name:   Linux-2.6.28.10-ADI-2009R1

   Created:      2009-08-17   8:50:43 UTC

   Image Type:   Blackfin Linux Kernel Image (gzip compressed)

   Data Size:    3399956 Bytes =  3.2 MB

   Load Address: 00001000

   Entry Point:  001a518c

   Verifying Checksum ... OK

   Uncompressing Kernel Image ... OK

Starting Kernel at = 1a518c

Linux version 2.6.28.10-ADI-2009R1 (chinna@HMS-DENON) (gcc version 4.1.2 (ADI sv

n)) #123 Mon Aug 17 14:20:30 IST 2009

Board Memory: 64MB

Kernel Managed Memory: 64MB

Memory map:

  fixedcode = 0x00000400-0x00000490

  text      = 0x00001000-0x0011eb70

  rodata    = 0x0011eb70-0x00176d18

  bss       = 0x00177000-0x001878c8

  data      = 0x001878e0-0x0019a000

    stack   = 0x00198000-0x0019a000

  init      = 0x0019a000-0x00644000

  available = 0x00644000-0x03eff000

  DMA Zone  = 0x03f00000-0x04000000

Hardware Trace Active and Enabled

Boot Mode: 2

Reset caused by Software reset

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

Compiled for ADSP-BF532 Rev 0.5

Blackfin Linux support by   blackfin.uclinux.org/

Processor Speed: 400 MHz core clock and 133 MHz System Clock

NOMPU: setting up cplb tables

Instruction Cache Enabled for CPU0

Data Cache Enabled for CPU0 (write-back)

Built 1 zonelists in Zone order, mobility grouping off.  Total pages: 16001

Kernel command line: console=ttyBF0,57600

Configuring Blackfin Priority Driven Interrupts

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

console [ttyBF0] enabled

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

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

Memory available: 57524k/65536k RAM, (4776k init code, 1142k kernel code, 494k d

ata, 1024k dma, 572k reserved)

Calibrating delay loop... 796.67 BogoMIPS (lpj=1593344)

Security Framework initialized

Mount-cache hash table entries: 512

Blackfin Scratchpad data SRAM: 4 KB

Blackfin L1 Instruction SRAM: 32 KB (21 KB free)

net_namespace: 484 bytes

NET: Registered protocol family 16

Blackfin DMA Controller

ezkit_init(): registering device resources

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

NET: Registered protocol family 1

msgmni has been set to 112

io scheduler noop registered

io scheduler anticipatory registered (default)

io scheduler cfq registered

Serial: Blackfin serial driver

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

brd: module loaded

Driver 'sd' needs updating - please use bus_type methods

 

It is after reset

 

 

It is in function isp1760_pdev_probe

 

It is in function isp1760_register

isp1760-hcd isp1760-hcd.0: NXP ISP1760 USB Host Controller

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

 

Its in function isp1760_hc_setup

 

Its in function isp1760_init_regs

isp1760-hcd isp1760-hcd.0: bus width: 16, oc: digital

isp1760-hcd isp1760-hcd.0: irq 38, io mem 0x20140000

isp1760-hcd isp1760-hcd.0: USB ISP 1761 HW rev. 1 started

usb usb1: configuration #1 chosen from 1 choice

hub 1-0:1.0: USB hub found

hub 1-0:1.0: 1 port detected

usb usb1: New USB device found, idVendor=1d6b, idProduct=0002

usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1

usb usb1: Product: NXP ISP1760 USB Host Controller

usb usb1: Manufacturer: Linux 2.6.28.10-ADI-2009R1 isp1760-hcd

usb usb1: SerialNumber: isp1760-hcd.0

 

 

Its after platform_driver_register 0

Initializing USB Mass Storage driver...

usbcore: registered new interface driver usb-storage

USB Mass Storage support registered.

usbcore: registered new interface driver libusual

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

TCP cubic registered

NET: Registered protocol family 15

Freeing unused kernel memory: 4776k freed

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

port 1 high speed

usb 1-1: new high speed USB device using isp1760-hcd and address 2

                           _____________________________________

        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...

 

 

BusyBox v1.13.4 (2009-08-17 14:19:03 IST) built-in shell (msh)

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

 

root:/> port 1 high speed

usb 1-1: device descriptor read/64, error -110

port 1 high speed

usb 1-1: device descriptor read/64, error -110

port 1 high speed

usb 1-1: new high speed USB device using isp1760-hcd and address 3

port 1 high speed

usb 1-1: device descriptor read/64, error -110

port 1 high speed

usb 1-1: device descriptor read/64, error -110

port 1 high speed

usb 1-1: new high speed USB device using isp1760-hcd and address 4

usb 1-1: device not accepting address 4, error -110

port 1 high speed

usb 1-1: new high speed USB device using isp1760-hcd and address 5

usb 1-1: device not accepting address 5, error -110

hub 1-0:1.0: unable to enumerate USB device on port 1

QuoteReplyEditDelete

 

 

2009-08-17 05:42:42     Re: BF532-USB Driver Development - Dist

John Peter (INDIA)

Message: 78948   

 

Michael,

 

Sorry. PFA the config file u asked.

 

config

QuoteReplyEditDelete

 

 

2009-08-17 08:01:32     Re: BF532-USB Driver Development - Dist

Michael Hennerich (GERMANY)

Message: 78949    >isp1760-hcd isp1760-hcd.0: irq 38, io mem 0x20140000

 

io mem 0x20140000 ... Doesn't this collide with the Async. Flash on

BF533-EZKIT???

 

-Michael

QuoteReplyEditDelete

 

 

2009-08-18 01:27:48     Re: BF532-USB Driver Development - Dist

John Peter (INDIA)

Message: 78969   

 

The USB host controller base address starts from that location only.  I am in need to give the base address as 0x20140000.

QuoteReplyEditDelete

 

 

2009-08-18 03:58:01     Re: BF532-USB Driver Development - Dist

Michael Hennerich (GERMANY)

Message: 78980    Are you using the BF533-EZKIT?

QuoteReplyEditDelete

 

 

2009-08-18 04:07:37     Re: BF532-USB Driver Development - Dist

John Peter (INDIA)

Message: 78982    No, I am using BF532 Custom board and ISP 1760 is used as USB host controller in that board.

QuoteReplyEditDelete

 

 

2009-08-18 04:23:22     Re: BF532-USB Driver Development - Dist

Michael Hennerich (GERMANY)

Message: 78985    Sorry I can't help you since I don't know your hardware -

I know the ISP1760-HCD driver works - So you must have a hardware or

configuration problem.

 

-Michael

QuoteReplyEditDelete

 

 

2009-08-26 08:31:27     Re: BF532-USB Driver Development - Dist

John Peter (INDIA)

Message: 79235   

 

Hai,

 

   isp1760 driver initialized successfully and I am able to mount USB in my custom board after modifying

 

.flags = IORESOURCE_IRQ

 

as

 

.flags = IORESOURCE_IRQ | IORESOURCE_IRQ_LOWLEVEL

 

in static struct resource bfin_isp1760_resources[].

 

Thanks for all your support.

 

By

Peter.

Attachments

Outcomes