FAQ: [#6151] ADXL34x accelerometer has no response in trunk(2010)

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

[#6151] ADXL34x accelerometer has no response in trunk

Submitted By: Vivi Li

Open Date

2010-08-05 07:14:20     Close Date

2010-08-20 04:27:04

Priority:

Medium     Assignee:

Michael Hennerich

Status:

Closed     Fixed In Release:

N/A

Found In Release:

2010R1     Release:

Category:

Drivers     Board:

N/A

Processor:

BF548     Silicon Revision:

Is this bug repeatable?:

Yes     Resolution:

Fixed

Uboot version or rev.:

    Toolchain version or rev.:

gcc4.3-2010_Apr_07

App binary format:

N/A     

Summary: ADXL34x accelerometer has no response in trunk

Details:

 

ADXL34x accelerometer has no response in trunk.

 

Last passed version:

--

kernel:    Linux release 2.6.34.1-ADI-2010R1-pre-svn8997, build #96 Thu Jul 22 11:52:35 CST 2010

toolchain: bfin-uclinux-gcc release gcc version 4.3.4 (ADI-trunk/svn-3951)

user-dist: release svn-9728, build #2045 Thu Jul 22 11:51:58 CST 2010

--

 

First failed version:

--

kernel:    Linux release 2.6.34.1-ADI-2010R1-pre-svn9008, build #100 Fri Jul 23 04:15:57 CST 2010

toolchain: bfin-uclinux-gcc release gcc version 4.3.4 (ADI-trunk/svn-3951)

user-dist: release svn-9728, build #2092 Fri Jul 23 04:15:23 CST 2010

--

 

Bellow is the log:

--

Linux version 2.6.34.2-ADI-2010R1-pre-svn9040 (test@uclinux61-bf548-std) (gcc version 4.3.4 (ADI-trunk/svn-3951) ) #136 Wed Aug 4 14:58:58 CST 2010

register early platform devices

bootconsole [early_shadow0] enabled

bootconsole [early_BFuart1] enabled

early printk enabled on early_BFuart1

Board Memory: 64MB

Kernel Managed Memory: 64MB

Memory map:

  fixedcode = 0x00000400-0x00000490

  text      = 0x00001000-0x001a3a18

  rodata    = 0x001a3a18-0x0023cf50

  bss       = 0x0023d000-0x002510c4

  data      = 0x002510c4-0x0026e000

    stack   = 0x0026c000-0x0026e000

  init      = 0x0026e000-0x0099d000

  available = 0x0099d000-0x03e00000

  DMA Zone  = 0x03e00000-0x04000000

Hardware Trace Active and Enabled

Boot Mode: 1

Reset caused by Software reset

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

Compiled for ADSP-BF548 Rev 0.2

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

Processor Speed: 525 MHz core clock and 131 MHz System Clock

NOMPU: setting up cplb tables

Instruction Cache Enabled for CPU0

  External memory: cacheable in instruction cache

  L2 SRAM        : uncacheable in instruction cache

Data Cache Enabled for CPU0

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

  L2 SRAM        : uncacheable in data cache

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

Kernel command line: root=/dev/mtdblock0 rw ip=10.100.4.50 earlyprintk=serial,uart1,57600 console=ttyBF1,57600 ip=10.100.4.50:10.100.4.174:10.100.4.174:255.255.255.0:bf548-ezkit: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: 53076k/65536k RAM, (7356k init code, 1674k kernel code, 810k data, 2048k dma, 572k reserved)

Hierarchical RCU implementation.

NR_IRQS:295

Configuring Blackfin Priority Driven Interrupts

console [ttyBF1] enabled, bootconsole disabled

console [ttyBF1] enabled, bootconsole disabled

Calibrating delay loop... 1046.52 BogoMIPS (lpj=2093056)

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: 48 KB (42 KB free)

Blackfin L2 SRAM: 128 KB (128 KB free)

NET: Registered protocol family 16

Blackfin DMA Controller

ezkit_init(): registering device resources

bio: create slab <bio-0> at 0

SCSI subsystem initialized

spi spi0.2: Warning: SPI CPHA not set: Slave Select not under software control!

See Documentation/blackfin/bfin-spi-notes.txt

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

bfin-spi bfin-spi.1: Blackfin on-chip SPI Controller Driver, Version 1.0, regs_base@ffc02300, dma channel@5

usbcore: registered new interface driver usbfs

usbcore: registered new interface driver hub

usbcore: registered new device driver usb

i2c-bfin-twi i2c-bfin-twi.0: Blackfin BF5xx on-chip I2C TWI Contoller, regs_base@ffc00700

i2c-bfin-twi i2c-bfin-twi.1: Blackfin BF5xx on-chip I2C TWI Contoller, regs_base@ffc02200

Advanced Linux Sound Architecture Driver Version 1.0.22.1.

musb_hdrc: version 6.0, musb-dma, host, debug=0

musb_hdrc musb_hdrc.0: MUSB HDRC host driver

musb_hdrc musb_hdrc.0: new USB bus registered, assigned bus number 1

hub 1-0:1.0: USB hub found

hub 1-0:1.0: 1 port detected

musb_hdrc musb_hdrc.0: USB Host mode controller at ffc03c00 using DMA, IRQ 82

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

Slow work thread pool: Starting up

Slow work thread pool: Ready

msgmni has been set to 103

io scheduler noop registered (default)

bf54x-lq043: FrameBuffer initializing...

dma_alloc_init: dma_page @ 0x02988000 - 512 pages at 0x03e00000

bfin-otp: initialized

bfin-uart: Blackfin serial driver

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

brd: module loaded

register bfin atapi driver

scsi0 : pata-bf54x

ata1: PATA max UDMA/66 irq 68

physmap platform flash device: 02000000 at 20000000

physmap-flash.0: Found 1 x16 devices at 0x0 in 16-bit bank

Intel/Sharp Extended Query Table at 0x010A

Intel/Sharp Extended Query Table at 0x010A

Intel/Sharp Extended Query Table at 0x010A

Intel/Sharp Extended Query Table at 0x010A

Intel/Sharp Extended Query Table at 0x010A

Using buffer write method

Using auto-unlock on power-up/resume

cfi_cmdset_0001: Erase suspend on write enabled

RedBoot partition parsing not available

Using physmap partition information

Creating 3 MTD partitions on "physmap-flash.0":

0x000000000000-0x000000040000 : "bootloader(nor)"

0x000000040000-0x000000440000 : "linux kernel(nor)"

0x000000440000-0x000001000000 : "file system(nor)"

m25p80 spi0.1: m25p16 (2048 Kbytes)

Creating 2 MTD partitions on "m25p80":

0x000000000000-0x000000040000 : "bootloader(spi)"

0x000000040000-0x000000200000 : "linux kernel(spi)"

BF5xx on-chip NAND FLash Controller Driver, Version 1.2 (c) 2007 Analog Devices, Inc.

bf5xx-nand bf5xx-nand.0: data_width=8, wr_dly=3, rd_dly=3

NAND device: Manufacturer ID: 0x20, Chip ID: 0xda (ST Micro NAND 256MiB 3,3V 8-bit)

Creating 2 MTD partitions on "NAND 256MiB 3,3V 8-bit":

0x000000000000-0x000000400000 : "linux kernel(nand)"

0x000000400000-0x000010000000 : "file system(nand)"

smsc911x: Driver version 2008-10-21.

smsc911x-mdio: probed

eth0: attached PHY driver [Generic PHY] (mii_bus:phy_addr=0:01, irq=-1)

net eth0: MAC Address: 00:e0:22:fe:bf:4e

Initializing USB Mass Storage driver...

usbcore: registered new interface driver usb-storage

USB Mass Storage support registered.

input: bf54x-keys as /devices/platform/bf54x-keys/input/input0

input: ADXL34x accelerometer as /devices/platform/i2c-bfin-twi.1/i2c-1/1-0053/input/input1

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

i2c /dev entries driver

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

usbcore: registered new interface driver usbhid

usbhid: USB HID core driver

dma rx:0 tx:1, err irq:10, regs:ffc00800

AD1980 SoC Audio Codec

asoc: AC97 <-> bf5xx-ac97 mapping ok

ALSA device list:

  #0: bf5xx-board (AD1980)

TCP cubic registered

NET: Registered protocol family 17

rtc-bfin rtc-bfin: setting system clock to 2004-05-31 11:59:39 UTC (1086004779)

mmc0: host does not support reading read-only switch. assuming write-enable.

mmc0: new SD card at address e624

ata1.00: ATA-6: TOSHIBA MK4032GAX, AD101A, max UDMA/100

ata1.00: 78140160 sectors, multi 16: LBA48

ata1.00: configured for UDMA/66

blk_queue_max_segments: set to minimum 1

scsi 0:0:0:0: Direct-Access     ATA      TOSHIBA MK4032GA AD10 PQ: 0 ANSI: 5

sd 0:0:0:0: [sda] 78140160 512-byte logical blocks: (40.0 GB/37.2 GiB)

sd 0:0:0:0: [sda] Write Protect is off

sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA

sda: sda1 sda2

sd 0:0:0:0: [sda] Attached SCSI disk

net eth0: SMSC911x/921x identified at 0x24000000, IRQ: 175

IP-Config: Complete:

     device=eth0, addr=10.100.4.50, mask=255.255.255.0, gw=10.100.4.174,

     host=bf548-ezkit, domain=, nis-domain=(none),

     bootserver=10.100.4.174, rootserver=10.100.4.174, rootpath=

Freeing unused kernel memory: 7356k 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.16.2 (2010-08-04 14:47:12 CST) hush - the humble shell

 

root:/> ^[[6nversion

kernel:    Linux release 2.6.34.2-ADI-2010R1-pre-svn9040, build #136 Wed Aug 4 14:58:58 CST 2010

toolchain: bfin-uclinux-gcc release gcc version 4.3.4 (ADI-trunk/svn-3951)

user-dist: release svn-9772, build #2937 Wed Aug 4 14:58:22 CST 2010

root:/> ^[[6nsuccessful boot attempt

************** STEP 3: Starting test.

 

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

scsi1 : usb-storage 1-1:1.0

scsi 1:0:0:0: Direct-Access     SanDisk  U3 Cruzer Micro  6.51 PQ: 0 ANSI: 0 CCS

sd 1:0:0:0: [sdb] 2014271 512-byte logical blocks: (1.03 GB/983 MiB)

sd 1:0:0:0: [sdb] Write Protect is off

sd 1:0:0:0: [sdb] Assuming drive cache: write through

sd 1:0:0:0: [sdb] Assuming drive cache: write through

sdb: sdb1 sdb2

sd 1:0:0:0: [sdb] Assuming drive cache: write through

sd 1:0:0:0: [sdb] Attached SCSI removable disk

dmesg|grep ADXL34x

input: ADXL34x accelerometer as /devices/platform/i2c-bfin-twi.1/i2c-1/1-0053/input/input1

root:/> ^[[6n

Case 1 ...PASS

 

Case 1 ...PASS

 

Detected device.

cat /sys/class/input/input1/name

ADXL34x accelerometer

root:/> ^[[6n

Case 2 ...PASS

 

Case 2 ...PASS

cat /proc/interrupts

  6:       4868      CORE  Blackfin CoreTimer

  9:          0      INTN  PPI ERROR

10:          0      INTN  SPORT err

14:          1      INTN  rtc-bfin

16:          0      INTN  SPORT RX Data

17:          0      INTN  SPORT TX Data

48:          0      INTN  BFIN_UART_RX

49:         90      INTN  BFIN_UART_TX

52:          0      INTN  i2c-bfin-twi

53:         67      INTN  i2c-bfin-twi

68:          3      INTN  pata-bf54x

74:          2      INTN  bfin-sdhDMA

76:          0      INTN  bf54x-keys

79:         47      INTN  SDH Status IRQ

82:         77      INTN  musb_hdrc.0

85:         43      INTN  musb_hdrc.0

140:          0      GPIO  1-0053

175:          1      GPIO  eth0

NMI:          0      CORE  Non Maskable Interrupt

Err:          0

root:/> ^[[6n

Case 3 ...PASS

 

Case 3 ...PASS

event_test /dev/input/event1

Input driver version is 1.0.0

Input device ID: bus 0x18 vendor 0x0 product 0x159 version 0x0

Input device name: "ADXL34x accelerometer"

Supported events:

  Event type 0 (Sync)

  Event type 1 (Key)

    Event code 330 (Touch)

  Event type 3 (Absolute)

    Event code 0 (X)

      Value      0

      Min    -4096

      Max     4096

      Fuzz       3

      Flat       3

    Event code 1 (Y)

      Value      0

      Min    -4096

      Max     4096

      Fuzz       3

      Flat       3

    Event code 2 (Z)

      Value      0

      Min    -4096

      Max     4096

      Fuzz       3

      Flat       3

Testing ... (interrupt to exit)

 

Last passed time: 2010_Jul_21_18_28, ucdist ver: 9728, kernel ver: 8997

--

 

Follow-ups

 

--- Michael Hennerich                                        2010-08-05 08:33:17

assign to me

 

--- Michael Hennerich                                        2010-08-05 08:52:00

This bug was introduced on mainline.

I fixed this inversed disable logic thing before

https://patchwork.kernel.org/patch/109022/

However for some reason it is missed in mainline

 

Fixed on trunk

Please try again.

-Michael

 

--- Vivi Li                                                  2010-08-20 04:27:03

OK now. Close it.

 

 

 

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

 

File Name     File Type     File Size     Posted By

config.linux.adxl_i2c    application/octet-stream    46849    Vivi Li

Attachments

Outcomes