Menu

#50 /usr/sbin/flashcp works strange on bf548 ezkit

2013R1
open
None
middle
assigned
BF548-EZKIT
2015-02-24
2013-07-05
panmingquan
No

[#7819] /usr/sbin/flashcp works strange on bf548 ezkit
Move Item | Delete Item | Clone Item | Merge Item
Submitted By: Mingquan Pan
Open Date
2013-06-25 15:11:42
Priority:
Assignee:
Fixed In Release:
Status:
Found In Release:
Release:
Board:
Processor:

Silicon Revision:
Uboot version or rev.:
Toolchain version or rev.:
Is this bug repeatable?:
Resolution:
App binary format:
Summary:
Details: (Edit)

/usr/sbin/flashcp (from mtd/jffs2 utilities) works strange on bf548 ezkit, while on bf537 stamp, it works ok.

And /sbin/flashcp from busybox, is also working ok on the same kernel.

Booting kernel from Legacy Image at 02000000 ...

Image Name: bf548-0.2-3.9.0-ADI-2012R2-pre-0
Created: 2013-06-25 4:04:09 UTC
Image Type: Blackfin Linux Kernel Image (gzip compressed)
Data Size: 4935214 Bytes = 4.7 MiB
Load Address: 00001000
Entry Point: 002cde80
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
Starting Kernel at = 002cde80
Linux version 3.9.0-ADI-2012R2-pre-00123-g7069718 (test@uclinux61-bf548-std) (collect2: ld returned 1 exit status) #6 Tue Jun 25 12:04:07 CST 2013
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-0x001ddda8
rodata = 0x001ddda8-0x002838c0
bss = 0x00284000-0x0029a550
data = 0x0029a560-0x002c4000
stack = 0x002c2000-0x002c4000
init = 0x002c4000-0x00615000
available = 0x00615000-0x03e00000
DMA Zone = 0x03e00000-0x04000000
Hardware Trace active and enabled
Boot Mode: 1
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
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: 56652k/65536k RAM, (3396k init code, 1907k kernel code, 921k data, 2048k dma, 612k reserved)
NR_IRQS:295
Configuring Blackfin Priority Driven Interrupts
Console: colour dummy device 80x25
Calibrating delay loop... 1044.48 BogoMIPS (lpj=2088960)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 512
devtmpfs: initialized
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
bfin-spi bfin-spi.0: master is unqueued, this is deprecated
bfin-spi bfin-spi.0: Blackfin on-chip SPI Controller Driver, Version 1.0, regs@ffc00500, dma channel@4
bfin-spi bfin-spi.1: master is unqueued, this is deprecated
bfin-spi bfin-spi.1: Blackfin on-chip SPI Controller Driver, Version 1.0, regs@ffc02300, dma channel@5
NET: Registered protocol family 2
TCP established hash table entries: 512 (order: 0, 4096 bytes)
TCP bind hash table entries: 512 (order: -1, 2048 bytes)
TCP: Hash tables configured (established 512 bind 512)
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 110
io scheduler noop registered (default)
bf54x-lq043: FrameBuffer initializing...
dma_alloc_init: dma_page @ 0x02900000 - 512 pages at 0x03e00000
Console: switching to colour frame buffer device 80x24
bfin-uart: Blackfin serial driver
bfin-uart.1: ttyBF1 at MMIO 0xffc02000 (irq = 48) is a BFIN-UART
console [ttyBF1] enabled, bootconsole disabled
console [ttyBF1] enabled, bootconsole disabled
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
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), 256MiB, page size: 2048, OOB size: 64
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
libphy: smsc911x-mdio: probed
smsc911x smsc911x.0 eth0: attached PHY driver [Generic PHY] (mii_bus:phy_addr=smsc911x-0:01, irq=-1)
smsc911x smsc911x.0 eth0: MAC Address: 00:e0:22:fe:bf:4e
mousedev: PS/2 mouse device common for all mice
input: bf54x-keys as /devices/platform/bf54x-keys/input/input0
rtc-bfin rtc-bfin: rtc core: registered rtc-bfin as rtc0
TCP: cubic registered
NET: Registered protocol family 17
rtc-bfin rtc-bfin: setting system clock to 2004-06-01 14:34:55 UTC (1086100495)
ata1.00: ATA-7: FUJITSU MHW2040AT, 0000000B, max UDMA/100
ata1.00: 78140160 sectors, multi 16: LBA
smsc911x smsc911x.0 eth0: SMSC911x/921x identified at 0x24000000, IRQ: 175
ata1.00: configured for UDMA/66
scsi 0:0:0:0: Direct-Access ATA FUJITSU MHW2040A 0000 PQ: 0 ANSI: 5
IP-Config: Guessing netmask 255.0.0.0
IP-Config: Complete:
device=eth0, hwaddr=00:e0:22:fe:bf:4e, ipaddr=10.100.4.50, mask=255.0.0.0, gw=255.255.255.255
host=10.100.4.50, domain=, nis-domain=(none)
bootserver=255.255.255.255, rootserver=255.255.255.255, rootpath=
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
Freeing unused kernel memory: 3396k freed

BusyBox v1.21.0 (2013-06-25 11:58:07 CST) hush - the humble shell

root:/>
root:/>
root:/> /sbin/flashcp -v
BusyBox v1.21.0 (2013-06-25 11:58:07 CST) multi-call binary.

Usage: flashcp -v FILE MTD_DEVICE

Copy an image to MTD device

    -v      Verbose

root:/> /usr/sbin/flashcp -v
Undefined instruction
5 - May be used to emulate instructions that are not defined for
5 a particular processor implementation.
Deferred Exception context
CURRENT PROCESS:
COMM=flashcp PID=441 CPU=0
TEXT = 0x006b0040-0x006b6080 DATA = 0x006b60a0-0x006b7168
BSS = 0x006b7168-0x006b7410 USER-STACK = 0x006b8f3c

return address: [0x006b3e0e]; contents of:
0x006b3de0: 0002 0000 8ec8 006b 6b54 006b 0000 0000
0x006b3df0: 0002 0000 8f40 006b 6b50 006b 6b54 006b
0x006b3e00: 8ec8 006b 0000 0000 8ecc 006b 5afc [006b]
0x006b3e10: 006b e800 0003 e10a 73c0 9155 6b54 006b

ADSP-BF548-0.2 525(MHz CCLK) 131(MHz SCLK) (mpu off)
Linux version 3.9.0-ADI-2012R2-pre-00123-g7069718 (test@uclinux61-bf548-std) (collect2: ld returned 1 exit status) #6 Tue Jun 25 12:04:07 CST 2013

SEQUENCER STATUS: Not tainted
SEQSTAT: 00000021 IPEND: 0008 IMASK: ffff SYSCFG: 0006
EXCAUSE : 0x21
physical IVG3 asserted : <0xffa006b0> { _trap + 0x0 }
RETE: <0x00000000> / Maybe null pointer? /
RETN: <0x00614000> / kernel dynamic memory /
RETX: <0x00000480> / Maybe fixed code section /
RETS: <0x006b2182> [ flashcp + 0x2142 ]
PC : <0x006b3e0e> [ flashcp + 0x3dce ]
DCPLB_FAULT_ADDR: <0x006b73b0> [ flashcp + 0x73b0 ]
ICPLB_FAULT_ADDR: <0x006b3e0e> [ flashcp + 0x3dce ]
PROCESSOR STATE:
R0 : 006b6bb8 R1 : 00000001 R2 : 00000002 R3 : 00000000
R4 : 00000000 R5 : 006b6b54 R6 : 006b8ec8 R7 : 00000000
P0 : 006b7394 P1 : 006b7394 P2 : 006b6b50 P3 : 00d6a920
P4 : 006b6b54 P5 : 006b7394 FP : 006b3dcc SP : 00613f24
LB0: 006b1b29 LT0: 006b1b28 LC0: 00000000
LB1: 02e0db75 LT1: 02e0db74 LC1: 00000000
B0 : 00000000 L0 : 00000000 M0 : 00000000 I0 : 006b8e61
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: 00000000 A0.x: 00000000 A1.w: 00000000 A1.x: 00000000
USP : 006b3d94 ASTAT: 02003025

Hardware Trace:
0 Target : <0x00003e1c> { _trap_c + 0x0 }
Source : <0xffa00642> { _exception_to_level5 + 0x9a } CALL pcrel
1 Target : <0xffa005a8> { _exception_to_level5 + 0x0 }
Source : <0xffa00468> { _bfin_return_from_exception + 0x18 } RTX
2 Target : <0xffa00450> { _bfin_return_from_exception + 0x0 }
Source : <0xffa0050a> { _ex_trap_c + 0x72 } JUMP.S
3 Target : <0xffa00498> { _ex_trap_c + 0x0 }
Source : <0xffa00708> { _trap + 0x58 } JUMP (P4)
4 Target : <0xffa006b0> { _trap + 0x0 }
FAULT : <0x006b3e0e> [ flashcp + 0x3dce ] CALL (P11)
Source : <0x006b3e0c> [ flashcp + 0x3dcc ] 0x5afc
5 Target : <0x006b3e0c> [ flashcp + 0x3dcc ]
Source : <0x006b217e> [ flashcp + 0x213e ] JUMP.L
6 Target : <0x006b2164> [ flashcp + 0x2124 ]
Source : <0x006b2218> [ flashcp + 0x21d8 ] IF CC JUMP pcrel (BP)
7 Target : <0x006b2214> [ flashcp + 0x21d4 ]
Source : <0x006b2156> [ flashcp + 0x2116 ] IF !CC JUMP pcrel (BP)
8 Target : <0x006b2100> [ flashcp + 0x20c0 ]
Source : <0x006b288c> [ flashcp + 0x284c ] JUMP.L
9 Target : <0x006b287c> [ flashcp + 0x283c ]
Source : <0x006b5af8> [ flashcp + 0x5ab8 ] JUMP.L
10 Target : <0x006b5ac8> [ flashcp + 0x5a88 ]
Source : <0x006b2ada> [ flashcp + 0x2a9a ] CALL (P1)
11 Target : <0x006b2ad0> [ flashcp + 0x2a90 ]
Source : <0x006b2ac2> [ flashcp + 0x2a82 ] IF CC JUMP pcrel
12 Target : <0x006b2ab0> [ flashcp + 0x2a70 ]
Source : <0x006b08ac> [ flashcp + 0x86c ] RTS
13 Target : <0x006b089c> [ flashcp + 0x85c ]
Source : <0x006b2aae> [ flashcp + 0x2a6e ] CALL (P2)
14 Target : <0x006b2a9c> [ flashcp + 0x2a5c ]
Source : <0x006b2a88> [ flashcp + 0x2a48 ] IF CC JUMP pcrel
15 Target : <0x006b2a6e> [ flashcp + 0x2a2e ]
Source : <0x006b6070> [ flashcp + 0x6030 ] RTS
Userspace Stack
Stack info:
SP: [0x006b3d94] <0x006b3d94> [ flashcp + 0x3d54 ]
FP: (0x006b3dd8)
Memory from 0x006b3d90 to 006b4000
006b3d90: e8003228 [63e10000] 64189120 60585488 0a02916a 07106060 14080c42 00002024
006b3db0: 0c42ac52 00001820 00000000 00000001 30021ff7 0a086560 ac511c1b 006b3e08
006b3dd0: 006b2890 006b8f40 (00000000)<006b6b50> 00000002 006b8ec8 006b6b54 00000000
006b3df0: 00000002 006b8f40 <006b6b50> 006b6b54 006b8ec8 00000000 006b8ecc 006b5afc
006b3e10: e800006b e10a0003 915573c0 006b6b54 006b8ec8 0000e801 001005ad ee8ee3ff
006b3e30: 3030912f 1bf60c07 300f3005 e3ff3016 0c00ee01 50371409 61e93210 08089910
006b3e50: 00001808 6c250000 0c07912f 2fe217ee 5037640e 00002fe0 e8000568 30380003
006b3e70: 302a3031 10060c00 e8016000 05280000 e3000010 32100043 18070c42 b0576018
006b3e90: b0d5b096 2ff19310 2ff063f8 e14d05fb e14b006b e10d006b e80073f4 30380003
006b3eb0: 73f8e10b 91283265 18170c00 932067f8 91194f20 32105001 0c109110 0c181814
006b3ed0: ac5117f3 1bf00c41 00000000 a0900000 91280061 17eb0c00 e8019118 05bb0000
006b3ef0: eff2e2ff 0c41ac51 00001bdf 30070000 0061a091 00002fd9 e80005fb 307f0008
006b3f10: e1416787 e142006b e14a006b e101006b 300728b0 6e54e102 28d0e10a e1400062
006b3f30: e14a006b e10a006b e10028b0 00626e54 006be14a 006be14b 73fce10a 73f4e10b
006b3f50: 91189111 10250888 006be14c 73f8e10c 006be140 006be14a 3e9ce100 7390e10a
006b3f70: 91189310 8420ce82 00009121 32295051 93186408 93286008 006be14a 60093007
006b3f90: 28e0e10a 30450062 0000e801 001005bb 006be14c 73f8e10c bbba64a1 91204f21
006b3fb0: 0140e300 b9ba3228 18060c45 91109320 931064a0 e3ff2fce 3210e46b 93106060
006b3fd0: 00002fdc 01450144 0003e800 32093210 e120a279 54010fff 10250c00 0ba1ce82
006b3ff0: 0000a238 3408a1f9 e1283401 304200c0
Return addresses in stack:
frame 1 : <0x006b6b50> [ flashcp + 0x6b50 ]
address : <0x006b6b50> [ flashcp + 0x6b50 ]
ILL
root:/> /usr/sbin/flash
flash_erase flash_lock flash_unlock flashcp
root:/> /usr/sbin/flash_erase -v
/usr/sbin/flash_erase: invalid option -- v
flash_erase: error!: no MTD device specified
flash_erase: error!: no start erase block specified
flash_erase: error!: no erase block count specified
flash_erase: error!: Try `--help' for more information
root:/> /usr/sbin/flash_unlock -v
flash_unlock: error!: could not open: -v
error 2 (No such file or directory)
root:/>
root:/>
root:/> version
kernel: Linux release 3.9.0-ADI-2012R2-pre-00123-g7069718, build #6 Tue Jun 25 12:04:07 CST 2013
toolchain: /home/test/workspace/src/kernel/label/BF548-EZKIT-STD/output/host/usr/bin/bfin-uclinux-gcc release gcc version 4.3.5 (ADI-trunk/svn-5962)
user-dist: release git-a55648a, build #1 Mon Jun 24 19:44:27 CST 2013

Discussion

  • Sonic Zhang

    Sonic Zhang - 2013-07-09
    • Priority: 3 --> middle
     
  • Sonic Zhang

    Sonic Zhang - 2013-07-12
    • Resolution: none --> assigned
     

Log in to post a comment.