AnsweredAssumed Answered

ucLinux boot fails on Finboard

Question asked by bbmisra on Nov 30, 2014
Latest reply on Dec 15, 2016 by dell-jin

Hi,

I am trying to port ucLinux onto BF609 based Finboard.

 

Got u-boot (u-boot-2012.07-rc2-2012R2-RC3) working on the board.

 

Host on Ubuntu 14.04 LTS.

Toolchain - (ADI-2014R1-RC2) 4.3.5

 

Attempting to build root with blackfin-buildroot-2014R1-RC1. Boot process stops at init_pda in init.c. Request help in resolving this problem on Finboard.

 

Boot log is give below. Last two lines indicate a re-boot.

**************************************************************************************************************

bfin> boot 

Waiting for PHY auto negotiation to complete. done 

ENET Speed is 100 Mbps - FULL duplex connection 

Using mii0 device 

TFTP from server 192.168.0.2; our IP address is 192.168.0.15 

Filename 'uImage'. 

Load address: 0x1000000 

Loading: ################################################################# 

################################################################# 

################################################################# 

################################################################# 

################################################################# 

################################################################# 

################################################################# 

################################################################# 

################################################################# 

################################################################# 

  ##### 

done 

Bytes transferred = 9613134 (92af4e hex) 

## Booting kernel from Legacy Image at 01000000 ... 

  Image Name: bf609-0.0-3.10.10-ADI-2014R1 

  Image Type: Blackfin Linux Kernel Image (gzip compressed) 

  Data Size: 9613070 Bytes = 9.2 MiB 

  Load Address: 00001000 

  Entry Point: 0029da00 

  Verifying Checksum ... OK 

  Uncompressing Kernel Image ... OK 

Starting Kernel at = 0029da00 

[ 0.000000] Linux version 3.10.10-ADI-2014R1 (bbmisra@bbmisra-S400CA) (gcc version 4.3.5 (ADI-2014R1-RC2) ) #10 Sun Nov 30 11:40:16 IST 2014

[ 0.000000] register early platform devices 

[ 0.000000] bootconsole [early_shadow0] enabled 

[ 0.000000] ERROR: Not running on ADSP-BF609: unknown CPUID 0x0000 Rev 0.0 

[ 0.000000] bootconsole [early_BFuart0] enabled 

[ 0.000000] early printk enabled on early_BFuart0 

[ 0.000000] Board Memory: 128MB 

[ 0.000000] Kernel Managed Memory: 128MB 

[ 0.000000] Memory map: 

[ 0.000000] fixedcode = 0x00000400-0x00000490 

[ 0.000000] text = 0x00001000-0x001b8888 

[ 0.000000] rodata = 0x001b88ac-0x00245534 

[ 0.000000] bss = 0x00246000-0x002755e4 

[ 0.000000] data = 0x00275600-0x0029a000 

[ 0.000000] stack = 0x00298000-0x0029a000 

[ 0.000000] init = 0x0029a000-0x013e4000 

[ 0.000000] available = 0x013e4000-0x07f00000 

[ 0.000000] DMA Zone = 0x07f00000-0x08000000 

[ 0.000000] Hardware Trace active and enabled 

[ 0.000000] Blackfin support (C) 2004-2010 Analog Devices, Inc. 

[ 0.000000] Compiled for ADSP-BF609 Rev 0.0 

[ 0.000000] Blackfin Linux support by http://blackfin.uclinux.org/ 

[ 0.000000] Processor Speed: 500 MHz core clock, 125 MHz SCLk, 125 MHz SCLK0, 125 MHz SCLK1 and 250 MHz DCLK

[ 0.000000] MPU: setting up cplb tables with memory protection 

[ 0.000000] Instruction Cache Enabled for CPU0 

[ 0.000000] External memory: cacheable in instruction cache 

[ 0.000000] L2 SRAM : uncacheable in instruction cache 

[ 0.000000] Data Cache Enabled for CPU0 

[ 0.000000] External memory: cacheable (write-back) in data cache 

[ 0.000000] L2 SRAM : uncacheable in data cache 

[ 0.000000] Kernel command line: root=/dev/mtdblock0 rw clkin_hz=(25000000) earlyprintk=serial,uart0,57600 console=ttyBF0,57600 ip=192.168.0.15:192f

[ 0.000000] PID hash table entries: 512 (order: -1, 2048 bytes) 

[ 0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes) 

[ 0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes) 

[ 0.000000] Sorting __ex_table... 

[ 0.000000] Memory available: 108400k/131072k RAM, (17704k init code, 1758k kernel code, 902k data, 1024k dma, 1284k reserved) 

[ 0.000000] NR_IRQS:291 

[ 0.000000] Configuring Blackfin Priority Driven Interrupts# 

  

U-Boot 2012.07-rc2 (ADI-2012R2) (Jan 07 2013 - 16:28:00) 

  

CPU: ADSP bf609-0.0 (Detected Rev: 0.0) (spi flash boot)

**************************************************************************************************************

 

Log buffer from operating system: 

Linux version 3.10.10-ADI-2014R1 (bbmisra@bbmisra-S400CA) (gcc version 4.3.5 (ADI-2014R1-RC2) ) #10 Sun Nov 30 11:40:16 IST 2014 

/home/bbmisra/blackfin_uclinux/blackfin-buildroot/linux/linux-kernel/arch/blackfin/kernel/early_printk.c : 174 [init_early_exception_vectors]

Running on wrong machine type, expected 0x27fe, but running on 0x0000 

/home/bbmisra/blackfin_uclinux/blackfin-buildroot/linux/linux-kernel/arch/blackfin/kernel/setup.c : 195 [bfin_relocate_l1_mem]

/home/bbmisra/blackfin_uclinux/blackfin-buildroot/linux/linux-kernel/arch/blackfin/kernel/bfin_dma.c : 267 [blackfin_dma_early_init]

/home/bbmisra/blackfin_uclinux/blackfin-buildroot/linux/linux-kernel/arch/blackfin/kernel/bfin_dma.c : 278 [early_dma_memcpy]

/home/bbmisra/blackfin_uclinux/blackfin-buildroot/linux/linux-kernel/arch/blackfin/kernel/bfin_dma.c : 278 [early_dma_memcpy]

/home/bbmisra/blackfin_uclinux/blackfin-buildroot/linux/linux-kernel/arch/blackfin/kernel/bfin_dma.c : 343 [early_dma_memcpy_done]

/home/bbmisra/blackfin_uclinux/blackfin-buildroot/linux/linux-kernel/arch/blackfin/kernel/setup.c : 1486 [cmdline_init]

/home/bbmisra/blackfin_uclinux/blackfin-buildroot/linux/linux-kernel/arch/blackfin/mm/init.c : 71 [init_pda]

[ 0.000000] Linux version 3.10.10-ADI-2014R1 (bbmisra@bbmisra-S400CA) (gcc version 4.3.5 (ADI-2014R1-RC2) ) #10 Sun Nov 30 11:40:16 IST 2014

[ 0.000000] register early platform devices 

[ 0.000000] bootconsole [early_shadow0] enabled 

[ 0.000000] ERROR: Not running on ADSP-BF609: unknown CPUID 0x0000 Rev 0.0

**************************************************************************************************************

 

Thanks

 

- Misra

Outcomes