[#6631] spi flash m25p80 can't get detected now
Submitted By: Mingquan Pan
Open Date
2011-06-10 02:27:02 Close Date
2011-06-21 23:13:40
Priority:
Medium Assignee:
Bob Liu
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:
Fixed
Uboot version or rev.:
Toolchain version or rev.:
5013
App binary format:
N/A
Summary: spi flash m25p80 can't get detected now
Details:
spi flash m25p80 can't get detected now on both bf548 ezkit and bf518 ezkit from Jun 1.
bfin> bootm
## Booting kernel from Legacy Image at 02000000 ...
Image Name: bf548-0.2-2.6.39-ADI-2011R1-pre-
Created: 2011-06-03 3:43:24 UTC
Image Type: Blackfin Linux Kernel Image (gzip compressed)
Data Size: 2834914 Bytes = 2.7 MiB
Load Address: 00001000
Entry Point: 0024bd78
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
Starting Kernel at = 0024bd78
Linux version 2.6.39-ADI-2011R1-pre-svn9919 (test@uclinux61-bf548-std) (gcc version 4.3.5 (ADI-trunk/svn-5013) ) #533 Fri Jun 3 11:43:18 CST 2011
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-0x0018d068
rodata = 0x0018d068-0x00214084
bss = 0x00215000-0x00227878
data = 0x00227878-0x00242000
stack = 0x00240000-0x00242000
init = 0x00242000-0x00528000
available = 0x00528000-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: 57600k/65536k RAM, (2968k init code, 1584k kernel code, 724k data, 2048k dma, 612k reserved)
NR_IRQS:295
Configuring Blackfin Priority Driven Interrupts
console [ttyBF1] enabled, bootconsole disabled
console [ttyBF1] enabled, bootconsole disabled
Calibrating delay loop... 1044.48 BogoMIPS (lpj=2088960)
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: 48 KB (41 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
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
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
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
JFFS2 version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
msgmni has been set to 112
io scheduler noop registered (default)
bfin-uart: Blackfin serial driver
bfin-uart.1: ttyBF1 at MMIO 0xffc02000 (irq = 48) is a BFIN-UART
bfin-otp: initialized
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. Manufacturer ID 0x000089 Chip ID 0x00881e
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 5 MTD partitions on "physmap-flash.0":
0x000000000000-0x000000080000 : "bootloader(nor)"
0x000000080000-0x000000480000 : "linux kernel(nor)"
0x000000480000-0x000000fe0000 : "file system(nor)"
0x000000fe0000-0x000000ff8000 : "config(nor)"
0x000000ff8000-0x000001000000 : "u-boot env(nor)"
bfin-spi bfin-spi.0: transfer: unsupported bits_per_word
m25p80: probe of spi0.1 failed with error -22
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 3 MTD partitions on "NAND 256MiB 3,3V 8-bit":
0x000000000000-0x000000080000 : "bootloader(nand)"
0x000000080000-0x000000480000 : "linux kernel(nand)"
0x000000480000-0x000010000000 : "file system(nand)"
smsc911x: Driver version 2008-10-21.
smsc911x smsc911x.0: eth0: Features changed: 0x00004800 -> 0x00004000
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
i2c /dev entries driver
dma_alloc_init: dma_page @ 0x02639000 - 512 pages at 0x03e00000
TCP cubic registered
NET: Registered protocol family 17
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: detected capacity change from 0 to 40007761920
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: 2968k freed
_____________________________________
a8888b. / Welcome to the uClinux distribution \
d888888b. / _ _ \
8P"YP"Y88 / | | |_| __ __ (TM) |
8|o||o|88 _____/ | | _ ____ _ _ \ \/ / |
8' .88 \ | | | | _ \| | | | \ / |
...
empty_blocks 0, bad_blocks 0, c->nr_blocks 32^M
mount: mounting /dev/mtdblock6 on /mnt failed: I
Last passed time: 2011_Jun_01_05_23, ucdist ver: 10185, kernel ver: 9909
Case 2 ...FAIL
Follow-ups
--- Mike Frysinger 2011-06-10 10:24:34
are you changing the board resources at all ?
bfin-spi bfin-spi.0: transfer: unsupported bits_per_word
m25p80: probe of spi0.1 failed with error -22
--- Mingquan Pan 2011-06-14 23:24:40
I didn't change anything on the board as this board is for regression test in
the lab. The issue should due to source code change.
--- Mingquan Pan 2011-06-15 01:36:55
The spi-net test running on bf537-stamp regression board also fails to be
detected.
log:
brd: module loaded^M
bfin_mii_bus: probed^M
bfin_mac: attached PHY driver [SMSC LAN83C185] (mii_bus:phy_addr=0:01, irq=-1,
mdc_clk=2500000Hz(mdc_div=24)@sclk=125MHz)^M
bfin_mac bfin_mac.0: eth0: Blackfin on-chip Ethernet MAC driver, Version 1.1^M
enc28j60 spi0.18: enc28j60 Ethernet driver 1.01 loaded^M
bfin-spi bfin-spi.0: transfer: unsupported bits_per_word^M
bfin-spi bfin-spi.0: transfer: unsupported bits_per_word^M
bfin-spi bfin-spi.0: transfer: unsupported bits_per_word^M
bfin-spi bfin-spi.0: transfer: unsupported bits_per_word^M
bfin-spi bfin-spi.0: transfer: unsupported bits_per_word^M
bfin-spi bfin-spi.0: transfer: unsupported bits_per_word^M
bfin-spi bfin-spi.0: transfer: unsupported bits_per_word^M
bfin-spi bfin-spi.0: transfer: unsupported bits_per_word^M
bfin-spi bfin-spi.0: transfer: unsupported bits_per_word^M
bfin-spi bfin-spi.0: transfer: unsupported bits_per_word^M
bfin-spi bfin-spi.0: transfer: unsupported bits_per_word^M
bfin-spi bfin-spi.0: transfer: unsupported bits_per_word^M
bfin-spi bfin-spi.0: transfer: unsupported bits_per_word^M
bfin-spi bfin-spi.0: transfer: unsupported bits_per_word^M
bfin-spi bfin-spi.0: transfer: unsupported bits_per_word^M
bfin-spi bfin-spi.0: transfer: unsupported bits_per_word^M
enc28j60 spi0.18: enc28j60 chip not found^M
enc28j60: probe of spi0.18 failed with error -5^M
rtc-bfin rtc-bfin: rtc core: registered rtc-bfin as rtc0^M
bfin-wdt: initialized: timeout=20 sec (nowayout=0)^M
TCP cubic registered^M
NET: Registered protocol family 17^M
..
Last passed time: 2011_May_31_13_18, ucdist ver: 10183, kernel ver: 9909
--- Bob Liu 2011-06-19 23:16:14
fixed by commit [Linux-kernel-commits] spi/bfin_spi: fix handling of default
bits per word setting
--- Mingquan Pan 2011-06-21 23:10:52
Yes, it is fixed and spi flash can get detected now.
...
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 5 MTD partitions on "physmap-flash.0":
0x000000000000-0x000000080000 : "bootloader(nor)"
0x000000080000-0x000000480000 : "linux kernel(nor)"
0x000000480000-0x000000fe0000 : "file system(nor)"
0x000000fe0000-0x000000ff8000 : "config(nor)"
0x000000ff8000-0x000001000000 : "u-boot env(nor)"
m25p80 spi0.1: m25p16 (2048 Kbytes)
Creating 2 MTD partitions on "m25p80":
0x000000000000-0x000000080000 : "bootloader(spi)"
0x000000080000-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 3 MTD partitions on "NAND 256MiB 3,3V 8-bit":
0x000000000000-0x000000080000 : "bootloader(nand)"
0x000000080000-0x000000480000 : "linux kernel(nand)"
0x000000480000-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
i2c /dev entries driver
dma_alloc_init: dma_page @ 0x02ba4000 - 512 pages at 0x03e00000
TCP cubic registered
NET: Registered protocol family 17
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: 8244k 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 - https://www.analog.com/blackfin
Have a lot of fun...
BusyBox v1.18.4 (2011-06-20 15:36:30 CST) hush - the humble shell
root:/> ^[[58;9Rversion
kernel: Linux release 2.6.39.1-ADI-2011R1-pre-svn9962, build #12 Wed Jun 22
10:59:12 CST 2011
toolchain: bfin-uclinux-gcc release gcc version 4.3.5 (ADI-trunk/svn-5013)
user-dist: release svn-10209, build #23 Wed Jun 22 10:58:31 CST 2011
root:/>
[6*******************************************************************
STEP 3: MTD test
ncat /proc/mtd
dev: size erasesize name
mtd0: 00080000 00020000 "bootloader(nor)"
mtd1: 00400000 00020000 "linux kernel(nor)"
mtd2: 00b60000 00020000 "file system(nor)"
mtd3: 00018000 00008000 "config(nor)"
mtd4: 00008000 00008000 "u-boot env(nor)"
mtd5: 00080000 00010000 "bootloader(spi)"
mtd6: 00180000 00010000 "linux kernel(spi)"
mtd7: 00080000 00020000 "bootloader(nand)"
mtd8: 00400000 00020000 "linux kernel(nand)"
mtd9: 0fb80000 00020000 "file system(nand)"
...
So close.
Files
Changes
Commits
Dependencies
Duplicates
Associations
Tags
File Name File Type File Size Posted By
config.linux.spi_net application/octet-stream 35613 Mingquan Pan
config.config.spi_net application/octet-stream 51825 Mingquan Pan