FAQ: [#6911] request generic gpio on bf533-stamp board fail(2011)

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

[#6911] request generic gpio on bf533-stamp board fail

Submitted By: Mingquan Pan

Open Date

2011-11-29 21:45:15     Close Date

2011-11-30 03:30:29

Priority:

Medium     Assignee:

Nobody

Status:

Closed     Fixed In Release:

N/A

Found In Release:

2011R1     Release:

Category:

N/A     Board:

N/A

Processor:

ALL     Silicon Revision:

Is this bug repeatable?:

Yes     Resolution:

Not reproducible

Uboot version or rev.:

    Toolchain version or rev.:

ADI-2011R1-RC2

App binary format:

N/A     

Summary: request generic gpio on bf533-stamp board fail

Details:

 

request generic gpio on bf533-stamp board fail.

 

## Booting kernel from Legacy Image at 02000000 ...

   Image Name:   bf533-0.3-3.1.0-ADI-2012R1-pre-s

   Created:      2011-11-30   1:35:01 UTC

   Image Type:   Blackfin Linux Kernel Image (gzip compressed)

   Data Size:    4245001 Bytes = 4 MiB

   Load Address: 00001000

   Entry Point:  001b8788

   Verifying Checksum ... OK

   Uncompressing Kernel Image ... OK

Starting Kernel at = 001b8788

Linux version 3.1.0-ADI-2012R1-pre-svn10232 (test@adsl) (gcc version 4.3.5 (ADI/svn-5686) ) #9 Wed Nov 30 09:34:56 CST 2011

register early platform devices

bootconsole [early_shadow0] enabled

bootconsole [early_BFuart0] enabled

early printk enabled on early_BFuart0

Limiting kernel memory to 56MB due to anomaly 05000263

Board Memory: 128MB

Kernel Managed Memory: 128MB

Memory map:

  fixedcode = 0x00000400-0x00000490

  text      = 0x00001000-0x0012e9a8

  rodata    = 0x0012e9a8-0x00190244

  bss       = 0x00191000-0x001a0ae4

  data      = 0x001a0ae4-0x001b2000

    stack   = 0x001b0000-0x001b2000

  init      = 0x001b2000-0x007fa000

  available = 0x007fa000-0x03800000

  DMA Zone  = 0x07f00000-0x08000000

Hardware Trace active and enabled

Boot Mode: 0

Reset caused by Software reset

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

Compiled for ADSP-BF533 Rev 0.3

Warning: Compiled for Rev 3, but running on Rev 4

Blackfin Linux support by http://blackfin.uclinux.org/

Processor Speed: 497 MHz core clock and 82 MHz System Clock

NOMPU: setting up cplb tables

Instruction Cache Enabled for CPU0

  External memory: cacheable in instruction cache

Data Cache Enabled for CPU0

  External memory: cacheable (write-back) in data cache

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

Kernel command line: root=/dev/mtdblock0 rw ip=10.100.4.50 earlyprintk=serial,uart0,57600 console=ttyBF0,57600 ip=10.100.4.50:10.100.4.174:192.168.0.1:255.255.255.0:bf533-stamp:eth0:off

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

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

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

Memory available: 48568k/131072k RAM, (6432k init code, 1206k kernel code, 526k data, 1024k dma, 73316k reserved)

NR_IRQS:81

Configuring Blackfin Priority Driven Interrupts

console [ttyBF0] enabled, bootconsole disabled

console [ttyBF0] enabled, bootconsole disabled

Calibrating delay loop... 989.18 BogoMIPS (lpj=1978368)

pid_max: default: 32768 minimum: 301

Mount-cache hash table entries: 512

Blackfin Scratchpad data SRAM: 4 KB

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

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

Blackfin L1 Instruction SRAM: 64 KB (50 KB free)

NET: Registered protocol family 16

Blackfin DMA Controller

stamp_init(): registering device resources

bio: create slab <bio-0> at 0

bfin-spi bfin-spi.0: Blackfin on-chip SPI Controller Driver, Version 1.0, regs@ffc00500, dma channel@5

i2c-gpio i2c-gpio.0: using pins 2 (SDA) and 3 (SCL)

Switching to clocksource bfin_cs_cycles

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

UDP hash table entries: 256 (order: 0, 4096 bytes)

UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)

NET: Registered protocol family 1

debug-mmrs: setting up Blackfin MMR debugfs

msgmni has been set to 94

io scheduler noop registered (default)

bfin-uart: Blackfin serial driver

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

brd: module loaded

smc91x.c: v1.1, sep 22 2004 by Nicolas Pitre <nico@fluxnic.net>

eth0: SMC91C11xFD (rev 1) at 20300300 IRQ 40 [nowait]

eth0: Ethernet addr: 00:11:22:33:44:55

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

i2c /dev entries driver

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

TCP cubic registered

NET: Registered protocol family 17

rtc-bfin rtc-bfin: setting system clock to 1970-01-01 07:44:24 UTC (27864)

smc91x smc91x.0: eth0: link down

smc91x smc91x.0: eth0: link up, 100Mbps, full-duplex, lpa 0x41E1

IP-Config: Gateway not on directly connected network.

dma_alloc_init: dma_page @ 0x02805000 - 256 pages at 0x07f00000

Freeing unused kernel memory: 6432k freed

                           _____________________________________

        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|            - http://blackfin.uclinux.org/

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

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

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

 

Have a lot of fun...

 

 

BusyBox v1.18.4 (2011-11-29 16:36:24 CST) hush - the humble shell

 

root:/> version

^[[58;9Rkernel:    Linux release 3.1.0-ADI-2012R1-pre-svn10232, build #9 Wed Nov 30 09:34:56 CST 2011

toolchain: bfin-uclinux-gcc release gcc version 4.3.5 (ADI/svn-5686)

user-dist: release svn-10545, build #3 Wed Nov 30 09:34:18 CST 2011

root:/>

*******************************************************************

STEP 4: Starting test

 

 

^[[58;9Rcd /sys/class/gpio/

root:/sys/class/gpio>

ase 1 ...PASS

6necho 2 > export

root:/sys/class/gpio> ls

export     gpiochip0  unexport

root:/sys/class/gpio> ^[[58;23R

Last passed test result is not found!!

 

Case 2 ...FAIL

 

 

Follow-ups

 

--- Sonic Zhang                                              2011-11-30 01:06:51

Can't replicate. Test pass on bf533-stamp v 1.2.

 

--- Mingquan Pan                                             2011-11-30 03:46:44

Yes, with the default config + generic gpio config, the built kernel can run the

gpio case ok. So close.

 

 

 

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

 

File Name     File Type     File Size     Posted By

config.gpio    application/octet-stream    34157    Mingquan Pan

Attachments

Outcomes