2010-11-04 06:38:20 2010R1-RC2 serial / console problems
Andreas Schallenberg (GERMANY)
Message: 95553
I am using 2010R1-RC2 for the DNP/5370 board. For this, I re-used the board support file from a 2009-R1.1-RC4 installation without changes.
The first problem is that there is no console. I don't see the kernel booting. With a soft reset and post-mortem kernel debugging using u-boot I see the kernel boot messages:
U-Boot 2010.09 (ADI-2011R1-pre) (Nov 03 2010 - 18:11:38)
CPU: ADSP bf537-0.3 (Detected Rev: 0.3) (bypass boot)
Board: DilNet DNP5370 BF537 board
Clock: VCO: 600 MHz, Core: 600 MHz, System: 120 MHz
RAM: 32 MiB
Flash: 4 MiB
In: serial
Out: serial
Err: serial
Net: MAC address is set.
bfin_mac
bfin> strings 0018289c 32768
<5>Linux version 2.6.34.7-ADI-2010R1ASc (aschallenberg@GWS026Linux) (gcc version 4.3.5 (ADI-2010R1-RC4) ) #23 Thu Nov 4 11:34:06 CET 2010
<6>bootconsole [early_shadow0] enabled
<6>Found mtd parition at 0x001bb000, (len=0x23d000), moving to 0x01cc3000
<6>Board Memory: 32MB
<6>Kernel Managed Memory: 32MB
<6>Memory map:
<6> fixedcode = 0x00000400-0x00000490
<6> text = 0x00001000-0x0012a6a8
<6> rodata = 0x0012a6a8-0x0017c09c
<6> bss = 0x0017d000-0x0018ed24
<6> data = 0x0018ed24-0x001a4000
<6> stack = 0x001a2000-0x001a4000
<6> init = 0x001a4000-0x001bb000
<6> available = 0x001bb000-0x01cc3000
<6> rootfs = 0x01cc3000-0x01f00000
<6> DMA Zone = 0x01f00000-0x02000000
<6>Hardware Trace Active and Enabled
<6>Boot Mode: 0
<6>Blackfin support (C) 2004-2010 Analog Devices, Inc.
<6>Compiled for ADSP-BF537 Rev 0.3
<6>Blackfin Linux support by blackfin.uclinux.org/
<6>Processor Speed: 600 MHz core clock and 120 MHz System Clock
<7> boot memmap: 00000000001bb000 - 0000000001cc3000 (usable)
<7>On node 0 totalpages: 7363
<7>free_area_init_node: node 0, pgdat 0019fe84, node_mem_map 001bd000
<7> DMA zone: 58 pages used for memmap
<7> DMA zone: 0 pages reserved
<7> DMA zone: 7305 pages, LIFO batch:0
<6>NOMPU: setting up cplb tables
<6>Instruction Cache Enabled for CPU0
<6> External memory: cacheable in instruction cache
<6>Data Cache Enabled for CPU0
<6> External memory: cacheable (write-back) in data cache
<4>Built 1 zonelists in Zone order, mobility grouping off. Total pages: 7305
<5>Kernel command line: console=ttyBF0,115200 root=/dev/mtdblock3 rootfstype=romfs ro
<6>PID hash table entries: 128 (order: -3, 512 bytes)
<6>Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
<6>Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
<7>Kernel managed physical pages: 7363
<6>Memory available: 27392k/32768k RAM, (92k init code, 1189k kernel code, 487k data, 1024k dma, 292k reserved)
<6>Hierarchical RCU implementation.
<6>NR_IRQS:138
<6>Configuring Blackfin Priority Driven Interrupts
<6>Calibrating delay loop... 1196.03 BogoMIPS (lpj=2392064)
<4>Mount-cache hash table entries: 512
<6>Blackfin Scratchpad data SRAM: 4 KB
<6>Blackfin L1 Data A SRAM: 16 KB (16 KB free)
<6>Blackfin L1 Data B SRAM: 16 KB (16 KB free)
<6>Blackfin L1 Instruction SRAM: 48 KB (36 KB free)
<6>NET: Registered protocol family 16
<6>Blackfin DMA Controller
<6>DNP/5370: registering device resources
<6>DNP/5370: registering 2 SPI slave devices
<6>DNP/5370: MAC 02:80:ad:21:36:31
<4>bio: create slab <bio-0> at 0
<3>bfin-spi bfin-spi.0: No DMA channel specified
<4>bfin-spi: probe of bfin-spi.0 failed with error -2
<6>i2c-bfin-twi i2c-bfin-twi.0: Blackfin BF5xx on-chip I2C TWI Contoller, regs_base@ffc01400
<6>NET: Registered protocol family 2
<6>IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
<6>TCP established hash table entries: 1024 (order: 1, 8192 bytes)
<6>TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
<6>TCP: Hash tables configured (established 1024 bind 1024)
<6>TCP reno registered
<6>UDP hash table entries: 256 (order: 0, 4096 bytes)
<6>UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
<6>NET: Registered protocol family 1
<6>JFFS2 version 2.2. (NAND) 2001-2006 Red Hat, Inc.
<6>ROMFS MTD (C) 2007 Red Hat, Inc.
<6>msgmni has been set to 53
<6>io scheduler noop registered
<6>io scheduler deadline registered (default)
<6>bfin-dma: initialized
<6>bfin-uart: Blackfin serial driver
<5>NULL pointer access
<0>Kernel OOPS in progress
<5>Deferred Exception context
<5>CURRENT PROCESS:
<5>
bfin>
The kernel bootargs are the same as used with the 2009R1.1-RC4 kernel. The 2009 kernel boots with a working console and I can log into that system.
TranslateQuoteReplyEditDelete
2010-11-04 06:43:40 Re: 2010R1-RC2 serial / console problems
Sonic Zhang (CHINA)
Message: 95554
You should use 2010R1-RC2 uboot release as well other than
U-Boot 2010.09 (ADI-2011R1-pre) (Nov 03 2010 - 18:11:38)
QuoteReplyEditDelete
2010-11-04 06:44:21 Re: 2010R1-RC2 serial / console problems
Sonic Zhang (CHINA)
Message: 95555
So does the 2010R1-RC4 toolchain.
QuoteReplyEditDelete
2010-11-04 10:41:09 Re: 2010R1-RC2 serial / console problems
Andreas Schallenberg (GERMANY)
Message: 95562
Ok, the toolchain was 2010R1-RC4, but I am now using the u-Boot version you requested.
I found that the board config changed for the STAMP board from 2009R1.1 to 2010R1 release and I copied the serial settings from there. Now I am back with a system where I can log in.
Now I'm at the same state with the new kernel as I was with the 2009 one. No ethernet, but the PHY is detected correctly without my modification of bfin_mac.c. I'll now dig into that issue again and open a new thread if I'm unsuccessful.
Thanks again for your responses.