AnsweredAssumed Answered

Loading uClinux on bf527

Question asked by crocodile on Sep 11, 2013
Latest reply on Sep 13, 2013 by crocodile

Hello Friends,

 

I have a board with bf527.  The board's design is based on bf527-ezkit rev-2.2 excluded Parallel Flash, NAND Flash and Touchscreens, Keypads, Backlights, LCDs and audio circuit. Also, in bf527-ezkit is used uart1 as console, but on my board used uart0.

 

I use blackfin-buildroot-2012R2-RC5 to building uClinux for my board.

 

I use configs/bf527-ezkit-v2_defconfig as linux configuration. In linux kernel configuration I only enable uart0 in "Device Drivers->Charater Devices->Serial Ports" section.

 

This is my boot log that I see on uart0:

 

bfin> tftpboot uImage
Using bfin_mac device
TFTP from server 192.168.9.12; our IP address is 192.168.9.110
Filename 'uImage'.
Load address: 0x1000000
Loading: T #################################################################
         #################################################################
         #################################################################
         ########################################################

done

Bytes transferred = 3670586 (38023a hex)


bfin> bootm 1000000
## Booting kernel from Legacy Image at 01000000 ...
   Image Name:   bf527-0.2-3.5.7-ADI-2012R2

   Created:      2013-09-05  19:54:57 UTC


   Image Type:   Blackfin Linux Kernel Image (gzip compressed)

   Data Size:    3670522 Bytes = 3.5 MiB

   Load Address: 00001000

   Entry Point:  00272db4


   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK

Starting Kernel at = 00272db4

Linux version 3.5.7-ADI-2012R2 (root@localhost) (gcc version 4.3.5 (ADI-2012R2-RC2) ) #5 Thu Sep 5 23:54:49 MSK 2013


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-0x001a5eb0

  rodata    = 0x001a5eb0-0x00232408

  bss       = 0x00233000-0x00246e1c

  data      = 0x00246e20-0x0026a000

    stack   = 0x00268000-0x0026a000

  init      = 0x0026a000-0x004ad000

  available = 0x004ad000-0x03f00000


  DMA Zone  = 0x03f00000-0x04000000
Hardware Trace active and enabled
Boot Mode: 3
Blackfin support (C) 2004-2010 Analog Devices, Inc.
Compiled for ADSP-BF527 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
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=tty0 console=ttyBF0,57600 ip=192.168.0.15:192.168.0.2:192.168.0.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 available: 59116k/65536k RAM, (2316k init code, 1683k kernel code, 785k data, 1024k dma, 612k reserved)


NR_IRQS:159
Configuring Blackfin Priority Driven Interrupts
bfin-rtc: invalid date; resetting
Console: colour dummy device 80x25
console [tty0] enabled
console [ttyBF0] enabled, bootconsole disabled
console [ttyBF0] enabled, bootconsole disabled
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 (41 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@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 Version 1.0.25.


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
msgmni has been set to 115
io scheduler noop registered (default)

dma_alloc_init: dma_page @ 0x02620000 - 256 pages at 0x03f00000


Console: switching to colour frame buffer device 40x30
bfin-lq035q1 bfin-lq035q1: 320x240 16-bit RGB FrameBuffer initialized
bfin-uart: Blackfin serial driver
bfin-uart.0: ttyBF0 at MMIO 0xffc00400 (irq = 29) is a BFIN-UART
bfin-uart.1: ttyBF1 at MMIO 0xffc02000 (irq = 31) is a BFIN-UART
bfin-otp: initialized
brd: module loaded

i2c i2c-0: smbus transfer timeout

adp5520 0-0032: failed writing 0x80 to 0x00

adp5520 0-0032: failed to write

adp5520: probe of 0-0032 failed with error -1


m25p80 spi0.1: m25p16 (2048 Kbytes)
Creating 2 MTD partitions on "m25p80":
0x000000000000-0x000000040000 : "bootloader(spi)"
0x000000040000-0x000000200000 : "linux kernel(spi)"
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

Initializing USB Mass Storage driver...

usbcore: registered new interface driver usb-storage

USB Mass Storage support registered.

musb-hdrc: version 6.0, ?dma?, otg (peripheral+host)

i2c i2c-0: smbus transfer timeout

ad7879 0-002c: Failed to write AD7879 Touchscreen

ad7879: probe of 0-002c failed with error -1

 

Loading stops on this step and I have not found the solution of this problem.

 

I removed errors with ad7879 and adp5520 by excluding support of these devices in linux kernel configuration but loading still stop.

 

Can anybody help me with this issue?

For the first, can anybody give me boot log of own bf527-ezkit board. With this log, may be, I will understand in which next step my loading stops.

 

Thanks and Regards.

Outcomes