devel

BF537 hangs after a cmdline reboot

Discussion created by devel on Jun 6, 2014
Latest reply on Oct 13, 2014 by devel

I've posted in similar thread: https://ez.analog.com/message/143239#143239

log:

U-Boot 2013.07 (ADI-2013R1) (Jun 06 2014 - 14:03:30)

CPU:   ADSP bf537-0.3 (Detected Rev: 0.3) (spi flash boot)
Board: ADI BF537 stamp board
       Support: http://blackfin.uclinux.org/
Clock: VCO: 500 MHz, Core: 500 MHz, System: 125 MHz
RAM:   64 MiB
Flash: ## Unknown flash on Bank 1 - Size = 0x00000000 = 0 MB
0 Bytes
MMC:   
SF: Detected M25P40 with page size 64 KiB, total 512 KiB
In:    serial
Out:   serial
Err:   serial
KGDB:  [on serial] ready
Warning: Generating 'random' MAC address
Net:   bfin_mac
Hit any key to stop autoboot:  0 
bfin> setenv ipaddr 192.168.5.246
bfin> setenv serverip 192.168.5.40
bfin> tftpboot $(loadaddr) uImage
Using bfin_mac device
TFTP from server 192.168.5.40; our IP address is 192.168.5.246
Filename 'uImage'.
Load address: 0x1000000
Loading: T #################################################################
      #################################################################
      #################################################################
      #################################################################
      #################################################################
      #############################################
      507.8 KiB/s
done
Bytes transferred = 5426857 (52cea9 hex)
bfin> bootm 0x1000000
## Booting kernel from Legacy Image at 01000000 ...
   Image Name:   bf537-0.3-3.10.10-ADI-2013R1
   Created:      2014-06-06  11:46:05 UTC
   Image Type:   Blackfin Linux Kernel Image (gzip compressed)
   Data Size:    5426793 Bytes = 5.2 MiB
   Load Address: 00001000
   Entry Point:  001ef71c
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK
Starting Kernel at = 001ef71c
Linux version 3.10.10-ADI-2013R1 (de@de-desktop) (gcc version 4.3.5 (ADI-2013R1-RC1) ) #4 Fri Jun 6 13:46:04 CEST 2014
register early platform devices
bootconsole [early_shadow0] enabled
bootconsole [early_BFuart0] enabled
early printk enabled on early_BFuart0
Board Memory: 64MB
Kernel Managed Memory: 64MB
Memory map:
  fixedcode = 0x00000400-0x00000490
  text      = 0x00001000-0x00147750
  rodata    = 0x00147774-0x001b5438
  bss       = 0x001b6000-0x001c9280
  data      = 0x001c9280-0x001e8000
    stack   = 0x001e6000-0x001e8000
  init      = 0x001e8000-0x0062c000
  available = 0x0062c000-0x03f00000
  DMA Zone  = 0x03f00000-0x04000000
Hardware Trace active and enabled
Boot Mode: 3
Blackfin support (C) 2004-2010 Analog Devices, Inc.
Compiled for ADSP-BF537 Rev 0.3
Blackfin Linux support by http://blackfin.uclinux.org/
Processor Speed: 500 MHz core clock and 100 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,uart0,57600 console=ttyBF0,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)
Sorting __ex_table...
Memory available: 57584k/65536k RAM, (4368k init code, 1305k kernel code, 643k data, 1024k dma, 612k reserved)
NR_IRQS:146
Configuring Blackfin Priority Driven Interrupts
Calibrating delay loop... 995.32 BogoMIPS (lpj=1990656)
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 (35 KB free)
NET: Registered protocol family 16
Blackfin DMA Controller
stamp_init(): registering device resources
bio: create slab  at 0
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
Switching to clocksource bfin_cs_cycles
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 112
io scheduler noop registered (default)
bfin-uart: Blackfin serial driver
bfin-uart.0: ttyBF0 at MMIO 0xffc00400 (irq = 18) is a BFIN-UART
console [ttyBF0] enabled, bootconsole disabled
console [ttyBF0] enabled, bootconsole disabled
bfin-uart.1: ttyBF1 at MMIO 0xffc02000 (irq = 20) is a BFIN-UART
brd: module loaded
ONFI param page 0 valid
ONFI flash detected
NAND device: Manufacturer ID: 0x20, Chip ID: 0xda (ST Micro NAND02GW3B2DN6), 256MiB, page size: 2048, OOB size: 64
Scanning device for bad blocks
Bad eraseblock 1454 at 0x00000b5c0000
Bad eraseblock 1477 at 0x00000b8a0000
Bad eraseblock 1501 at 0x00000bba0000
Bad eraseblock 1505 at 0x00000bc20000
Bad eraseblock 1532 at 0x00000bf80000
Bad eraseblock 1561 at 0x00000c320000
Bad eraseblock 1628 at 0x00000cb80000
Bad eraseblock 1676 at 0x00000d180000
Bad eraseblock 1805 at 0x00000e1a0000
Creating 2 MTD partitions on "gen_nand":
0x000000000000-0x000001000000 : "linux kernel(nand)"
0x000001000000-0x000010000000 : "file system(nand)"
smc91x.c: v1.1, sep 22 2004 by Nicolas Pitre eth0: SMC91C11xFD (rev 2) at 20310300 IRQ 55 [nowait]
eth0: Invalid ethernet MAC address.  Please set using ifconfig
rtc-bfin rtc-bfin: rtc core: registered rtc-bfin as rtc0
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-11-13 04:09:55 UTC (27317395)
dma_alloc_init: dma_page @ 0x006f0000 - 256 pages at 0x03f00000
Freeing unused kernel memory: 4368K (1e8000 - 62c000)
libphy: bfin_mii_bus: probed
bfin_mac: attached PHY driver [SMSC LAN83C185] (mii_bus:phy_addr=bfin_mii_bus-0:00, irq=-1, mdc_clk=2500000Hz(mdc_div=19)@sclk=100MHz)
bfin_mac bfin_mac.0 eth1: Blackfin on-chip Ethernet MAC driver, Version 1.1


BusyBox v1.21.1 (2014-06-06 13:32:53 CEST) hush - the humble shell

root:/> reboot
The system is going down NOW!
Sent SIGTERM to all processes
Sent SIGKILL to all processes
Requesting system reboot
Restarting system.

Also, there is a RAM problem related to u-boot. when 128MB is specified - I get an error on image extraction:

bfin> bootm 0x1000000
## Booting kernel from Legacy Image at 01000000 ...
   Image Name:   bf537-0.3-3.10.10-ADI-2013R1
   Created:      2014-06-06  11:46:05 UTC
   Image Type:   Blackfin Linux Kernel Image (gzip compressed)
   Data Size:    5426793 Bytes = 5.2 MiB
   Load Address: 00001000
   Entry Point:  001ef71c
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... Error: inflate() returned -3
GUNZIP: uncompress, out-of-mem or overwrite error - must RESET board to recover�

Outcomes