AnsweredAssumed Answered

Can't get past the early kernel prints...

Question asked by arad85 on Oct 27, 2012
Latest reply on Oct 29, 2012 by CraigG

Hi,

 

I can't figure out what is wrong with my environment to get this to boot. I have an IP02 blackfin PABX and I'm trying to compile some code to run on it. The environment is the default switchfin environment available from switchfin.org. I compile everything with console UART support and have tried a number of methods of booting - but none get console output after the early printk has happened. I'm after the magic runes that will let me boot this kernel fully... Here is the console output:

 

U-Boot 2010.06 (ADI-2010R1-pre) (Jan 08 2011 - 14:09:20)

 

 

CPU:   ADSP bf532-0.5 (Detected Rev: 0.6) (spi flash boot)

Board: IPPBX IP0x

Clock: VCO: 400 MHz, Core: 400 MHz, System: 133.333 MHz

RAM:   64 MiB

NAND:  256 MiB

SF: Detected W25X40 with page size 256, total 512 KiB

In:    serial

Out:   serial

Err:   serial

Net:   dm9000

starting from spi flash

Hit any key to stop autoboot:  0

ip0x> printenv

bootargs=

bootdelay=3

baudrate=115200

loads_echo=1

autoload=no

preboot=echo starting from spi flash

rootpath=/romfs

hostname=IP0x

loadaddr=0x1000000

flashboot=bootm 0x20100000

ethact=dm9000

ethaddr=00:09:45:5A:1C:CC

eth1addr=00:09:45:5A:1C:CD

mtdparts=mtdparts=ip0x-nand:0x00800000(kernel),0x0f800000(fs)

serveraddr=00:0c:29:d7:0a:5a

filesize=6C0000

fileaddr=2000000

gatewayip=192.168.1.1

netmask=255.255.255.0

mtdids=nand0=ip0x-nand

partition=nand0,0

mtddevnum=0

mtddevname=kernel

autostart=yes

nandboot=run setbootargs; nand read.e 0x2000000 kernel; bootm 0x2000000

bootcmd=run nandboot

ipaddr=192.168.1.200

serverip=192.168.1.1

setbootargs=setenv bootargs ethaddr=$(ethaddr) ethaddr1=$(eth1addr) console=ttyBF0,115200 earlyprintk=serial,uart0,115200 root=/dev/mtdblock0 rw ${mtdparts}

stdin=serial

stdout=serial

stderr=serial

 

 

Environment size: 829/65532 bytes

ip0x> setenv bootargs console=serial,ttyBF0,115200   earlyprintk=serial,uart0,115200

ip0x> tftp uImage-2012-10-27-22-22

ERROR: resetting DM9000 -> not responding

dm9000 i/o: 0x20100000, id: 0x90000a46

DM9000: running in 16 bit mode

MAC: 00:09:45:5a:1c:cc

operating at 100M full duplex mode

Using dm9000 device

TFTP from server 192.168.1.1; our IP address is 192.168.1.200

Filename 'uImage-2012-10-27-22-22'.

Load address: 0x1000000

Loading: T #################################################################

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

done

Bytes transferred = 6815744 (680000 hex)

Automatic boot of image at addr 0x01000000 ...

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

   Image Name:   Linux Kernel and ext2

   Image Type:   Blackfin Linux Kernel Image (gzip compressed)

   Data Size:    6707251 Bytes = 6.4 MiB

   Load Address: 00001000

   Entry Point:  0021430c

   Verifying Checksum ... OK

   Uncompressing Kernel Image ... OK

Starting Kernel at = 0021430c

Linux version 3.0.8-ADI-2011R1switchfin (andy@afin.home) (gcc version 4.3.5 (ADI-2011R1-RC4) ) #4 Sat Oct 27 22:14:31 BST 2012

register early platform devices

bootconsole [early_shadow0] enabled

bootconsole [early_BFuart0] enabled

early printk enabled on early_BFuart0

Found mtd parition at 0x0022b000, (len=0x1400000), moving to 0x02b00000

Board Memory: 64MB

Kernel Managed Memory: 64MB

Memory map:

  fixedcode = 0x00000400-0x00000490

  text      = 0x00001000-0x0017a370

  rodata    = 0x0017a370-0x001ea6d8

  bss       = 0x001eb000-0x001faff8

  data      = 0x001fb000-0x00210000

    stack   = 0x0020e000-0x00210000

  init      = 0x00210000-0x0022b000

  available = 0x0022b000-0x02b00000

  rootfs    = 0x02b00000-0x03f00000

  DMA Zone  = 0x03f00000-0x04000000

Hardware Trace active and enabled

Boot Mode: 6

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

Compiled for ADSP-BF532 Rev any, running on 0.6

Blackfin Linux support by http://blackfin.uclinux.org/

Processor Speed: 400 MHz core clock and 133 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: 10922

Kernel command line: console=serial,ttyBF0,115200 earlyprintk=serial,uart0,115200

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: 41204k/65536k RAM, (108k init code, 1508k kernel code, 600k data, 1024k dma, 612k reserved)

SLUB: Genslabs=13, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1

NR_IRQS:81

Configuring Blackfin Priority Driven Interrupts

bfin-uart.0: No uart status IRQ specified

bfin-console: unable to probe bfin-uart early.

Calibrating delay loop... 792.57 BogoMIPS (lpj=1585152)

pid_max: default: 32768 minimum: 301

Security Framework initialized

Mount-cache hash table entries: 512

Blackfin Scratchpad data SRAM: 4 KB

Blackfin L1 Instruction SRAM: 32 KB (20 KB free)

NET: Registered protocol family 16

Blackfin DMA Controller

ip0x_init(): chip_id=627A50CB,dspid=E5040006

ip0x_init(): registering nand resources

ip0x_init(): registering platform devices

bio: create slab <bio-0> at 0

SCSI subsystem initialized

Switching to clocksource bfin_cs_cycles

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

msgmni has been set to 80

io scheduler noop registered

io scheduler cfq registered (default)

bfin-uart: Blackfin serial driver

bfin-uart bfin-uart.0: No uart status IRQ specified

bfin-uart: probe of bfin-uart.0 failed with error -2

brd: module loaded

uclinux[mtd]: RAM probe address=0x2b00000 size=0x1400000

Creating 1 MTD partitions on "RAM":

0x000000000000-0x000001400000 : "ROMfs"

Generic platform RAM MTD, (c) 2004 Simtec Electronics

NAND device: Manufacturer ID: 0xec, Chip ID: 0xda (Samsung NAND 256MiB 3,3V 8-bit)

Scanning device for bad blocks

Bad eraseblock 1353 at 0x00000a920000

tun: Universal TUN/TAP device driver, 1.6

tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>

dm9000 Ethernet Driver, V1.31

eth0: dm9000b at 20100000,20100002 IRQ 48 MAC: 00:09:45:5a:1c:cc (chip)

dm9000 dm9000.1: eth%d: Invalid ethernet MAC address. Please set using ifconfig

eth1: dm9000b at 20200000,20200002 IRQ 47 MAC: 56:18:33:3c:33:bb (random)

bfin-wdt: initialized: timeout=20 sec (nowayout=0)

TCP cubic registered

NET: Registered protocol family 17

802.1Q VLAN Support v1.8

turn off boot console early_BFuart0

 

The relevant bit of the config file at: /home/andy/switchfin/build_ip04/blackfin-linux-dist/linux-2.6.x

 

is:

 

#

# Character devices

#

# CONFIG_VT is not set

CONFIG_UNIX98_PTYS=y

# CONFIG_DEVPTS_MULTIPLE_INSTANCES is not set

# CONFIG_LEGACY_PTYS is not set

# CONFIG_BFIN_JTAG_COMM is not set

# CONFIG_SERIAL_NONSTANDARD is not set

# CONFIG_N_GSM is not set

# CONFIG_TRACE_SINK is not set

CONFIG_BFIN_DMA_INTERFACE=m

# CONFIG_BFIN_PPI is not set

# CONFIG_BFIN_SIMPLE_TIMER is not set

# CONFIG_BFIN_SPORT is not set

# CONFIG_DEVKMEM is not set

 

 

#

# Serial drivers

#

# CONFIG_SERIAL_8250 is not set

 

 

#

# Non-8250 serial port support

#

# CONFIG_SERIAL_MAX3100 is not set

# CONFIG_SERIAL_MAX3107 is not set

CONFIG_SERIAL_BFIN=y

CONFIG_SERIAL_BFIN_CONSOLE=y

CONFIG_SERIAL_BFIN_DMA=y

# CONFIG_SERIAL_BFIN_PIO is not set

CONFIG_SERIAL_BFIN_UART0=y

# CONFIG_BFIN_UART0_CTSRTS is not set

CONFIG_SERIAL_CORE=y

CONFIG_SERIAL_CORE_CONSOLE=y

# CONFIG_SERIAL_BFIN_SPORT is not set

# CONFIG_SERIAL_TIMBERDALE is not set

# CONFIG_SERIAL_ALTERA_JTAGUART is not set

# CONFIG_SERIAL_ALTERA_UART is not set

# CONFIG_SERIAL_XILINX_PS_UART is not set

CONFIG_TTY_PRINTK=y

# CONFIG_HVC_BFIN_JTAG is not set

# CONFIG_IPMI_HANDLER is not set

CONFIG_HW_RANDOM=y

# CONFIG_HW_RANDOM_TIMERIOMEM is not set

# CONFIG_R3964 is not set

# CONFIG_RAW_DRIVER is not set

# CONFIG_TCG_TPM is not set

# CONFIG_RAMOOPS is not set

# CONFIG_I2C is not set

CONFIG_SPI=y

CONFIG_SPI_MASTER=y

 

 

How do I get it to show the complete console output?

Outcomes