[#5224] kernel with CONFIG_BFIN_KERNEL_CLOCK fails to boot on bf526 ezbrd 0.2.
Submitted By: Mingquan Pan
Open Date
2009-06-10 00:20:46 Close Date
2009-07-01 03:50:26
Priority:
Medium High Assignee:
Graf Yang
Status:
Closed Fixed In Release:
N/A
Found In Release:
N/A Release:
Category:
N/A Board:
N/A
Processor:
BF526 Silicon Revision:
Is this bug repeatable?:
Yes Resolution:
Fixed
Uboot version or rev.:
Toolchain version or rev.:
09R1-RC7
App binary format:
N/A
Summary: kernel with CONFIG_BFIN_KERNEL_CLOCK fails to boot on bf526 ezbrd 0.2.
Details:
kernel with CONFIG_BFIN_KERNEL_CLOCK fails to boot on bf526 ezbrd 0.2, while with the same u-boot and kernel, it can boot up on another bf526 ezbrd 0.1 board.
failed like:
U-Boot 2008.10-svn1905 (ADI-2009R1-rc1) (Jun 10 2009 - 11:20:25)
CPU: ADSP bf526-0.0 (Detected Rev: 0.0) (parallel flash boot)
Board: ADI BF526 EZ-Board board
Support: http://blackfin.uclinux.org/
Clock: VCO: 400 MHz, Core: 400 MHz, System: 80 MHz
RAM: 64 MB
Flash: 4 MB
In: serial
Out: serial
Err: serial
Net: Blackfin EMAC
MAC: B2:63:4D:0F:0A:77
Hit any key to stop autoboot: 0
bfin> tftp 0x2000000 uImage
Using Blackfin EMAC device
TFTP from server 10.100.4.174; our IP address is 10.100.4.50
Filename 'uImage'.
Load address: 0x2000000
Loading: #################################################################
#################################################################
#################################################################
#################################################################
##################
done
Bytes transferred = 4074598 (3e2c66 hex)
bfin> bootm
## Booting kernel from Legacy Image at 02000000 ...
Image Name: Linux-2.6.28.10-ADI-2009R1-svn65
Created: 2009-06-04 0:17:19 UTC
Image Type: Blackfin Linux Kernel Image (gzip compressed)
Data Size: 4074534 Bytes = 3.9 MB
Load Address: 00001000
Entry Point: 001c1684
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
Starting Kernel at = 001c1684
Pass log on bf526-ezkit 0.1 like:
U-Boot 2008.10-svn1905 (ADI-2009R1-rc1) (Jun 10 2009 - 11:20:25)
CPU: ADSP bf526-0.0 (Detected Rev: 0.0) (parallel flash boot)
Board: ADI BF526 EZ-Board board
Support: http://blackfin.uclinux.org/
Clock: VCO: 400 MHz, Core: 400 MHz, System: 80 MHz
RAM: 64 MB
Flash: 4 MB
In: serial
Out: serial
Err: serial
Net: Blackfin EMAC
MAC: B2:63:4D:0F:0A:77
Hit any key to stop autoboot: 0
bfin> tftp 0x2000000 uImage
Using Blackfin EMAC device
TFTP from server 10.100.4.174; our IP address is 10.100.4.50
Filename 'uImage'.
Load address: 0x2000000
Loading: #################################################################
#################################################################
#################################################################
#################################################################
##################
done
Bytes transferred = 4074598 (3e2c66 hex)
bfin> bootm
## Booting kernel from Legacy Image at 02000000 ...
Image Name: Linux-2.6.28.10-ADI-2009R1-svn65
Created: 2009-06-04 0:17:19 UTC
Image Type: Blackfin Linux Kernel Image (gzip compressed)
Data Size: 4074534 Bytes = 3.9 MB
Load Address: 00001000
Entry Point: 001c1684
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
Starting Kernel at = 001c1684
Linux version 2.6.28.10-ADI-2009R1-svn6543 (test@uclinux81-bf526) (gcc version 4.1.2 (ADI svn)) #36 Thu Jun 4 00:17:09 GMT 2009
console [early_BFuart0] enabled
early printk enabled on early_BFuart0
Board Memory: 64MB
Kernel Managed Memory: 64MB
Memory map:
fixedcode = 0x00000400-0x00000490
text = 0x00001000-0x0012d8a0
rodata = 0x0012d8a0-0x0018daa8
bss = 0x0018e000-0x0019ef20
data = 0x0019ef20-0x001b4000
stack = 0x001b2000-0x001b4000
init = 0x001b4000-0x00794000
available = 0x00794000-0x03eff000
DMA Zone = 0x03f00000-0x04000000
Hardware Trace Active and Enabled
Boot Mode: 1
Blackfin support (C) 2004-2009 Analog Devices, Inc.
Compiled for ADSP-BF526 Rev 0.0
Warning: Compiled for Rev 0, but running on Rev 65535
Warning: Unsupported Chip Revision ADSP-BF526 Rev 0.65535 detected
Blackfin Linux support by http://blackfin.uclinux.org/
Processor Speed: 350 MHz core clock and 70 MHz System Clock
NOMPU: setting up cplb tables
Instruction Cache Enabled for CPU0
Data Cache Enabled for CPU0 (write-back)
Built 1 zonelists in Zone order, mobility grouping off. Total pages: 16001
Kernel command line: root=/dev/mtdblock0 rw clkin_hz=25000000 earlyprintk=serial,uart1,57600 console=ttyBF0,57600
Configuring Blackfin Priority Driven Interrupts
PID hash table entries: 256 (order: 8, 1024 bytes)
console handover: boot [early_BFuart0] -> real [ttyBF0]
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory available: 56180k/65536k RAM, (6016k init code, 1202k kernel code, 538k data, 1024k dma, 572k reserved)
Calibrating delay loop... 696.32 BogoMIPS (lpj=1392640)
Security Framework initialized
Mount-cache hash table entries: 512
Blackfin Scratchpad data SRAM: 4 KB
Blackfin L1 Data A SRAM: 16 KB (15 KB free)
Blackfin L1 Data B SRAM: 16 KB (16 KB free)
Blackfin L1 Instruction SRAM: 48 KB (42 KB free)
net_namespace: 288 bytes
NET: Registered protocol family 16
Blackfin DMA Controller
ezbrd_init(): registering device resources
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
musb_hdrc: version 6.0, musb-dma, host, debug=0
musb_hdrc: USB Host mode controller at ffc03800 using DMA, IRQ 59
musb_hdrc musb_hdrc.0: MUSB HDRC host driver
musb_hdrc musb_hdrc.0: new USB bus registered, assigned bus number 1
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
dma_alloc_init: dma_page @ 0x03ed1000 - 256 pages at 0x03f00000
hub 1-0:1.0: 1 port detected
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
NET: Registered protocol family 1
msgmni has been set to 109
io scheduler noop registered (default)
bfin-otp: initialized
Serial: Blackfin serial driver
bfin-uart.1: ttyBF0 at MMIO 0xffc02000 (irq = 31) is a BFIN-UART
brd: module loaded
bfin_mii_bus: probed
bfin_mac: attached PHY driver [Generic PHY] (mii_bus:phy_addr=0:01, irq=-1, mdc_clk=2500000Hz(mdc_div=13)@sclk=70MHz)
bfin_mac bfin_mac.0: Blackfin on-chip Ethernet MAC driver, Version 1.1
Driver 'sd' needs updating - please use bus_type methods
physmap platform flash device: 00400000 at 20000000
physmap-flash.0: Found 1 x16 devices at 0x0 in 16-bit bank
Intel/Sharp Extended Query Table at 0x0039
Intel/Sharp Extended Query Table at 0x0039
Intel/Sharp Extended Query Table at 0x0039
Intel/Sharp Extended Query Table at 0x0039
Intel/Sharp Extended Query Table at 0x0039
cfi_cmdset_0001: Erase suspend on write enabled
cmdlinepart partition parsing not available
RedBoot partition parsing not available
Using physmap partition information
Creating 3 MTD partitions on "physmap-flash.0":
0x00000000-0x00040000 : "bootloader(nor)"
0x00040000-0x00200000 : "linux kernel(nor)"
0x00200000-0x00400000 : "file system(nor)"
m25p80 spi0.1: unrecognized JEDEC id bf2504
m25p80 spi0.1: found UNKNOWN, expected m25p16
bfin-spi bfin-spi.0: Blackfin on-chip SPI Controller Driver, Version 1.0, regs_base@ffc00500, dma channel@7
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
rtc-bfin rtc-bfin: rtc core: registered rtc-bfin as rtc0
i2c-bfin-twi i2c-bfin-twi.0: Blackfin BF5xx on-chip I2C TWI Contoller, regs_base@ffc01400
bfin-wdt: initialized: timeout=20 sec (nowayout=0)
usbcore: registered new interface driver usbhid
usbhid: v2.6:USB HID core driver
TCP cubic registered
NET: Registered protocol family 17
rtc-bfin rtc-bfin: setting system clock to 2004-05-31 15:06:51 UTC (1086016011)
Freeing unused kernel memory: 6016k freed
_____________________________________
a8888b. / Welcome to the uClinux distribution \
d888888b. / _ _ \
8P"YP"Y88 / | | |_| __ __ (TM) |
8|o||o|88 _____/ | | _ ____ _ _ \ \/ / |
8' .88 \ | | | | _ \| | | | \ / |
8`._.' Y8. \ | |__ | | | | | |_| | / \ |
d/ `8b. \ \____||_|_| |_|\____|/_/\_\ |
dP . Y8b. \ For embedded processors including |
d8:' " `::88b \ the Analog Devices Blackfin /
d8" 'Y88b \___________________________________/
:8P ' :888
8a. : _a88P For further information, check out:
._/"Yaa_: .| 88P| - http://blackfin.uclinux.org/
\ YP" `| 8P `. - http://docs.blackfin.uclinux.org/
/ \.___.d| .' - http://www.uclinux.org/
`--..__)8888P`._.' jgs/a:f - http://www.analog.com/blackfin
Have a lot of fun...
BusyBox v1.13.4 (2009-06-03 23:20:58 GMT) built-in shell (msh)
Enter 'help' for a list of built-in commands.
This issue may related to an old bug 4615, sincee it is ezbrd, and the other ezkit boards looks booting up ok with CONFIG_BFIN_KERNEL_CLOCK item on , I open this tracker.
Follow-ups
--- Graf Yang 2009-06-17 06:24:54
This bug is caused by SDC parameters not fit for it's SDRAM chip.
ADI website
(http://www.analog.com/en/embedded-processing-dsp/blackfin/BF526-EZBRD/processors/product.html)
says it use MT48H32M16LFCJ-75(VFBGA 54ball 8mmx9mm).
On 0.1 board, it's a VFBGA 54ball 11mmx9mm chip. Kernel boot OK in a variety of
system clocks.
There is a 8mmx9mm chip on 0.2 board.
But it fails if reprogram the sclk.
I found if increment the SDRAM_tRAS by 1, both the boards will boot at various
sclks.
But apparently it is not the timing for MT48H32M16.
Can I add a new timing table for this fake MT48H32M16 chip?
--- Mike Frysinger 2009-06-17 06:30:48
the bf526-ezbrd changed SDRAM chips in between revisions. use the timings in
u-boot as their designed to accommodate both.
--- Graf Yang 2009-06-18 01:50:50
Fixed. I have added a new timing table for bf526-ezbrd for both trunk and
branch, and made a brief test.
--- Mingquan Pan 2009-07-01 03:50:26
Yes, it can boot up on bf526 ezbrd 0.2 with 350 clk and 70 ssclk. Close.
Files
Changes
Commits
Dependencies
Duplicates
Associations
Tags
File Name File Type File Size Posted By
No Files Were Found