Menu

#81 lsz stuck the board when the toolchain version is 2013R1 or 2014R1 release

master head
open
nobody
BF527-EZKIT (1)
low
none
BF527
BF527
2014-09-01
2014-09-01
Hao Liang
No

lsz would make board stuck after sending file.
File was transmitted successfully.
Actually board doesn't die, just the console dies, board still can be pinged through.
The following debugging information can help reproduced the phenomenon on board BF527-EZKIT:

Linux version 3.16.0-ADI-2014R1-pre-00410-g0e65f87-dirty (jikan@jikan-OptiPlex-760) (gcc version 4.3.5 (ADI-master/git-a2bfd7b) ) #2 Mon Sep 1 11:08:47 CST 2014
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-0x001e1b60
rodata = 0x001e1b60-0x00285e14
bss = 0x00286000-0x0029e8dc
data = 0x0029e8e0-0x002c4000
stack = 0x002c2000-0x002c4000
init = 0x002c4000-0x005a7000
available = 0x005a7000-0x03f00000
DMA Zone = 0x03f00000-0x04000000
Hardware Trace active and enabled
Boot Mode: 1
Blackfin support (C) 2004-2010 Analog Devices, Inc.
Compiled for ADSP-BF527 Rev 0.1
Warning: Compiled for Rev 1, but running on Rev 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
Data Cache Enabled for CPU0
External memory: cacheable (write-back) in data cache
Built 1 zonelists in Zone order, mobility grouping off. Total pages: 16002
Kernel command line: root=/dev/mtdblock0 rw clkin_hz=25000000 earlyprintk=serial,uart1,57600 console=ttyBF1,57600 ip=10.100.4.50:10.100.4.174:10.99.24.1:255.255.255.0:bf527-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: 58116K/64512K available (1922K kernel code, 149K rwdata, 656K rodata, 2956K init, 98K bss, 6396K reserved, 1024K DMA)
NR_IRQS:159
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: 1024 (order: 0, 4096 bytes)
Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
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)
NET: Registered protocol family 16
Blackfin DMA Controller
ezkit_init(): registering device resources
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@7
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 on-chip I2C TWI Contoller, regs_base@ffc01400
Advanced Linux Sound Architecture Driver Initialized.
NET: Registered protocol family 2
TCP established hash table entries: 1024 (order: 0, 4096 bytes)
TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
TCP: Hash tables configured (established 1024 bind 1024)
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 113
io scheduler noop registered (default)
bfin-t350mcqb: 320x240 24-bit RGB FrameBuffer initializing...
dma_alloc_init: dma_page @ 0x02677000 - 256 pages at 0x03f00000
Console: switching to colour frame buffer device 40x30
bfin-uart: Blackfin serial driver
bfin-uart.1: ttyBF1 at MMIO 0xffc02000 (irq = 31, base_baud = 8203125) is a BFIN-UART
console [ttyBF1] enabled
console [ttyBF1] enabled
bootconsole [early_BFuart1] disabled
bootconsole [early_BFuart1] disabled
bootconsole [early_shadow0] disabled
bfin-otp: initialized
brd: module loaded
m25p80 spi0.1: m25p16 (2048 Kbytes)
Creating 2 MTD partitions on "m25p80":
0x000000000000-0x000000040000 : "bootloader(spi)"
0x000000040000-0x000000200000 : "linux kernel(spi)"
libphy: bfin_mii_bus: probed
bfin_mac: attached PHY driver [Generic PHY] (mii_bus:phy_addr=bfin_mii_bus-0:01, irq=-1, mdc_clk=2500000Hz(mdc_div=25)@sclk=131MHz)
bfin_mac bfin_mac.0 eth0: Blackfin on-chip Ethernet MAC driver, Version 1.1
usbcore: registered new interface driver usb-storage
musb-hdrc musb-hdrc.0.auto: musb_init_controller failed with status -517
platform musb-hdrc.0.auto: Driver musb-hdrc requests probe deferral
rtc (null): invalid alarm value: 1900-1-5 0:0:0
rtc-bfin rtc-bfin: rtc core: registered rtc-bfin as rtc0
bfin_wdt: initialized: timeout=20 sec (nowayout=0)
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
bfin-i2s bfin-i2s.0: dma rx:3 tx:4, err irq:15, regs:ffc00800
soc-audio soc-audio: ASoC: machine bfin-ssm2602 should use snd_soc_register_card()
ssm2602 0-001b: Failed to issue reset: -5
ssm2602 0-001b: ASoC: failed to probe CODEC -5
soc-audio soc-audio: ASoC: failed to instantiate card -5
soc-audio: probe of soc-audio failed with error -5
TCP: cubic registered
NET: Registered protocol family 17
musb-hdrc musb-hdrc.0.auto: musb_init_controller failed with status -517
platform musb-hdrc.0.auto: Driver musb-hdrc requests probe deferral
rtc-bfin rtc-bfin: setting system clock to 1970-01-05 04:22:31 UTC (361351)
IP-Config: Gateway not on directly connected network
ALSA device list:
No soundcards found.
Freeing unused kernel memory: 2956K (002c4000 - 005a7000)

BusyBox v1.22.1 (2014-09-01 10:58:04 CST) hush - the humble shell
root:/> bfin_mac bfin_mac.0 eth0: Link is Up - 100Mbps/Full - flow control off

root:/> version
kernel: Linux release 3.16.0-ADI-2014R1-pre-00410-g0e65f87-dirty, build #2 Mon Sep 1 11:08:47 CST 2014
toolchain: /home/jikan/workplace/buildroot/compare/adi-buildroot-code/output/host/usr/bin/bfin-uclinux-gcc release gcc version 4.3.5 (ADI-master/git-a2bfd7b)
user-dist: release git-2fdfff1, build #1 Mon Sep 1 11:02:52 CST 2014
root:/> random: nonblocking pool is initialized
root:/> lsz /etc/hosts
**B00

This problem exist whether the toolchain version is 2013R1 or 2014R1 release.
If we use toolchain which compiled from git-a2bfd7b or git-46c6a72, the problem disappear when BR2_GCC_TARGET_CPU_REVISION in buildroot was set to 0.0.
If we set BR2_GCC_TARGET_CPU_REVISION in buildroot to 0.2, lsz also stuck the board.

lsz from uImage which BR2_GCC_TARGET_CPU_REVISION is 0.0 can work normally in linux which boot from uImage which BR2_GCC_TARGET_CPU_REVISION is 0.2.
But lsz from uImage which BR2_GCC_TARGET_CPU_REVISION is 0.2 always stuck the board in linux which boot from uImage which BR2_GCC_TARGET_CPU_REVISION is 0.0.

And execute file of lsz is different when BR2_GCC_TARGET_CPU_REVISION is different.
Different versions of lsz related file are in the attachment.

1 Attachments

Discussion


Log in to post a comment.

MongoDB Logo MongoDB