[#5212] xip kernel fails to boot for bf518/bf526
Submitted By: Vivi Li
Open Date
2009-06-05 00:21:31 Close Date
2009-06-17 03:00:46
Priority:
Medium High Assignee:
Bernd Schmidt
Jie Zhang
Status:
Closed Fixed In Release:
N/A
Found In Release:
N/A Release:
Category:
Tests Board:
N/A
Processor:
BF518 Silicon Revision:
Is this bug repeatable?:
Yes Resolution:
Fixed
Uboot version or rev.:
Toolchain version or rev.:
gcc4.1-09r1_rc6
App binary format:
N/A
Summary: xip kernel fails to boot for bf518/bf526
Details:
On bf518f-ezbrd, xip kernel fails to boot for fdpic format. It passed for shared-flat format. Last passed test result is not known.
On bf526-ezbrd, xip kernel fails to boot for both fdpic and flat format. It passed on 2009_May_06.
This bug should exist on both trunk and 09r1 branch.
Bellow is the log for fdpic xip test on bf518f:
--
U-Boot 2008.10-svn1873 (ADI-2009R1-rc1) (May 22 2009 - 17:31:26)^M
^M
CPU: ADSP bf518-0.0 (Detected Rev: 0.0) (parallel flash boot)^M
Board: ADI BF518F EZ-Board board^M
Support: http://blackfin.uclinux.org/^M
Clock: VCO: 400 MHz, Core: 400 MHz, System: 80 MHz^M
RAM: 64 MB^M
Flash: 4 MB^M
In: serial^M
Out: serial^M
Err: serial^M
Net: Blackfin EMAC^M
MAC: 00:E0:FE:55:B3:BC^M
Hit any key to stop autoboot: 5 ^H^H^H 0 ^M
bfin> successful reset attemp
set bootargs root=mtd0 rootfstype=romfs ro^M
bfin> tftpboot 0x1000000 uImage.romfs^M
Using Blackfin EMAC device^M
TFTP from server 10.100.4.174; our IP address is 10.100.4.50^M
Filename 'uImage.romfs'.^M
Load address: 0x1000000^M
Loading: *^H#################################################################^M
#################################################################^M
#################################################################^M
########################^M
done^M
Bytes transferred = 3209964 (30faec hex)^M
bfin> bootm^M
## Booting kernel from Legacy Image at 01000000 ...^M
Image Name: Linux Kernel and romfs^M
Created: 2009-06-05 11:14:38 UTC^M
Image Type: Blackfin Linux Kernel Image (gzip compressed)^M
Data Size: 3209900 Bytes = 3.1 MB^M
Load Address: 00001000^M
Entry Point: 0018093c^M
Verifying Checksum ... OK^M
Uncompressing Kernel Image ... OK^M
Starting Kernel at = 0018093c^M
Linux version 2.6.28.10-ADI-2009R1-svn6571 (test@uclinux80-518f) (gcc version 4.1.2 (ADI svn)) #3 Fri Jun 5 11:09:30 GMT 2009^M
Board Memory: 64MB^M
Kernel Managed Memory: 64MB^M
Memory map:^M
fixedcode = 0x00000400-0x00000490^M
text = 0x00001000-0x001039b0^M
rodata = 0x001039b0-0x0015281c^M
bss = 0x00153000-0x001637bc^M
data = 0x001637bc-0x00174000^M
stack = 0x00172000-0x00174000^M
init = 0x00174000-0x00191000^M
available = 0x00191000-0x03a5e000^M
rootfs = 0x03a5e000-0x03f00000^M
DMA Zone = 0x03f00000-0x04000000^M
Hardware Trace Active and Enabled^M
Boot Mode: 1^M
Blackfin support (C) 2004-2009 Analog Devices, Inc.^M
Compiled for ADSP-BF518 Rev 0.0^M
Blackfin Linux support by http://blackfin.uclinux.org/^M
Processor Speed: 400 MHz core clock and 80 MHz System Clock^M
NOMPU: setting up cplb tables^M
Instruction Cache Enabled for CPU0^M
Data Cache Enabled for CPU0 (write-back)^M
Built 1 zonelists in Zone order, mobility grouping off. Total pages: 14825^M
Kernel command line: root=mtd0 rootfstype=romfs ro^M
Configuring Blackfin Priority Driven Interrupts^M
PID hash table entries: 256 (order: 8, 1024 bytes)^M
console [ttyBF0] enabled^M
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)^M
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)^M
Memory available: 57596k/65536k RAM, (116k init code, 1034k kernel code, 450k data, 1024k dma, 572k reserved)^M
Calibrating delay loop... 796.67 BogoMIPS (lpj=1593344)^M
Security Framework initialized^M
Mount-cache hash table entries: 512^M
Blackfin Scratchpad data SRAM: 4 KB^M
Blackfin L1 Data A SRAM: 16 KB (15 KB free)^M
Blackfin L1 Data B SRAM: 16 KB (16 KB free)^M
Blackfin L1 Instruction SRAM: 48 KB (42 KB free)^M
net_namespace: 288 bytes^M
NET: Registered protocol family 16^M
Blackfin DMA Controller^M
ezbrd_init(): registering device resources^M
NET: Registered protocol family 2^M
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)^M
TCP established hash table entries: 2048 (order: 2, 16384 bytes)^M
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)^M
TCP: Hash tables configured (established 2048 bind 2048)^M
TCP reno registered^M
NET: Registered protocol family 1^M
msgmni has been set to 112^M
io scheduler noop registered (default)^M
Serial: Blackfin serial driver^M
bfin-uart.1: ttyBF0 at MMIO 0xffc00400 (irq = 29) is a BFIN-UART^M
brd: module loaded^M
bfin_mii_bus: probed^M
bfin_mac: attached PHY driver [Generic PHY] (mii_bus:phy_addr=0:03, irq=-1, mdc_clk=2500000Hz(mdc_div=15)@sclk=80MHz)^M
bfin_mac bfin_mac.0: Blackfin on-chip Ethernet MAC driver, Version 1.1^M
uclinux[mtd]: RAM probe address=0x3a5e000 size=0x4a1700^M
Creating 1 MTD partitions on "RAM":^M
0x00000000-0x004a1700 : "ROMfs"^M
bfin-spi bfin-spi.0: Blackfin on-chip SPI Controller Driver, Version 1.0, regs_base@ffc00500, dma channel@7^M
bfin-spi bfin-spi.1: Blackfin on-chip SPI Controller Driver, Version 1.0, regs_base@ffc03400, dma channel@5^M
rtc-bfin rtc-bfin: rtc core: registered rtc-bfin as rtc0^M
i2c /dev entries driver^M
i2c-bfin-twi i2c-bfin-twi.0: Blackfin BF5xx on-chip I2C TWI Contoller, regs_base@ffc01400^M
bfin-wdt: initialized: timeout=20 sec (nowayout=0)^M
TCP cubic registered^M
NET: Registered protocol family 17^M
rtc-bfin rtc-bfin: setting system clock to 2004-06-06 11:50:42 UTC (1086522642)^M
VFS: Cannot open root device "mtd0" or unknown-block(0,0)^M
Please append a correct "root=" boot option; here are the available partitions:^M
1f00 4741 mtdblock0 (driver?)^M
Kernel panic - not
Last passed test result is not found!!
--
Bellow is the log for fdpic xip test on bf526:
--
Linux version 2.6.28.10-ADI-2009R1-svn6543 (test@uclinux81-bf526) (gcc version 4.1.2 (ADI svn)) #35 Thu Jun 4 02:14:31 GMT 2009^M
Board Memory: 64MB^M
Kernel Managed Memory: 64MB^M
Memory map:^M
fixedcode = 0x00000400-0x00000490^M
text = 0x00001000-0x0012e4e0^M
rodata = 0x0012e4e0-0x0018ec0c^M
bss = 0x0018f000-0x0019ff28^M
data = 0x0019ff28-0x001b4000^M
stack = 0x001b2000-0x001b4000^M
init = 0x001b4000-0x001d3000^M
available = 0x001d3000-0x039fa000^M
rootfs = 0x039fa000-0x03f00000^M
DMA Zone = 0x03f00000-0x04000000^M
Hardware Trace Active and Enabled^M
Boot Mode: 1^M
Blackfin support (C) 2004-2009 Analog Devices, Inc.^M
Compiled for ADSP-BF526 Rev 0.0^M
Warning: Compiled for Rev 0, but running on Rev 65535^M
Warning: Unsupported Chip Revision ADSP-BF526 Rev 0.65535 detected^M
Blackfin Linux support by http://blackfin.uclinux.org/^M
Processor Speed: 400 MHz core clock and 80 MHz System Clock^M
NOMPU: setting up cplb tables^M
Instruction Cache Enabled for CPU0^M
Data Cache Enabled for CPU0 (write-back)^M
Built 1 zonelists in Zone order, mobility grouping off. Total pages: 14726^M
Kernel command line: root=mtd0 rootfstype=romfs ro^M
Configuring Blackfin Priority Driven Interrupts^M
PID hash table entries: 256 (order: 8, 1024 bytes)^M
console [ttyBF0] enabled^M
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)^M
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)^M
Memory available: 56932k/65536k RAM, (124k init code, 1205k kernel code, 535k data, 1024k dma, 572k reserved)^M
Calibrating delay loop... 796.67 BogoMIPS (lpj=1593344)^M
Security Framework initialized^M
Mount-cache hash table entries: 512^M
Blackfin Scratchpad data SRAM: 4 KB^M
Blackfin L1 Data A SRAM: 16 KB (15 KB free)^M
Blackfin L1 Data B SRAM: 16 KB (16 KB free)^M
Blackfin L1 Instruction SRAM: 48 KB (42 KB free)^M
net_namespace: 288 bytes^M
NET: Registered protocol family 16^M
Blackfin DMA Controller^M
ezbrd_init(): registering device resources^M
SCSI subsystem initialized^M
usbcore: registered new interface driver usbfs^M
usbcore: registered new interface driver hub^M
usbcore: registered new device driver usb^M
musb_hdrc: version 6.0, musb-dma, host, debug=0^M
musb_hdrc: USB Host mode controller at ffc03800 using DMA, IRQ 59^M
musb_hdrc musb_hdrc.0: MUSB HDRC host driver^M
musb_hdrc musb_hdrc.0: new USB bus registered, assigned bus number 1^M
usb usb1: configuration #1 chosen from 1 choice^M
hub 1-0:1.0: USB hub found^M
dma_alloc_init: dma_page @ 0x039dd000 - 256 pages at 0x03f00000^M
hub 1-0:1.0: 1 port detected^M
NET: Registered protocol family 2^M
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)^M
TCP established hash table entries: 2048 (order: 2, 16384 bytes)^M
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)^M
TCP: Hash tables configured (established 2048 bind 2048)^M
TCP reno registered^M
NET: Registered protocol family 1^M
msgmni has been set to 111^M
io scheduler noop registered (default)^M
bfin-otp: initialized^M
Serial: Blackfin serial driver^M
bfin-uart.1: ttyBF0 at MMIO 0xffc02000 (irq = 31) is a BFIN-UART^M
brd: module loaded^M
bfin_mii_bus: probed^M
bfin_mac: attached PHY driver [Generic PHY] (mii_bus:phy_addr=0:01, irq=-1, mdc_clk=2500000Hz(mdc_div=15)@sclk=80MHz)^M
bfin_mac bfin_mac.0: Blackfin on-chip Ethernet MAC driver, Version 1.1^M
Driver 'sd' needs updating - please use bus_type methods^M
physmap platform flash device: 00400000 at 20000000^M
physmap-flash.0: Found 1 x16 devices at 0x0 in 16-bit bank^M
Intel/Sharp Extended Query Table at 0x0039^M
Intel/Sharp Extended Query Table at 0x0039^M
Intel/Sharp Extended Query Table at 0x0039^M
Intel/Sharp Extended Query Table at 0x0039^M
Intel/Sharp Extended Query Table at 0x0039^M
cfi_cmdset_0001: Erase suspend on write enabled^M
cmdlinepart partition parsing not available^M
RedBoot partition parsing not available^M
Using physmap partition information^M
Creating 3 MTD partitions on "physmap-flash.0":^M
0x00000000-0x00040000 : "bootloader(nor)"^M
0x00040000-0x00200000 : "linux kernel(nor)"^M
0x00200000-0x00400000 : "file system(nor)"^M
uclinux[mtd]: RAM probe address=0x39fa000 size=0x505d40^M
Creating 1 MTD partitions on "RAM":^M
0x00000000-0x00505d40 : "ROMfs"^M
m25p80 spi0.1: unrecognized JEDEC id bf2504^M
m25p80 spi0.1: found UNKNOWN, expected m25p16^M
bfin-spi bfin-spi.0: Blackfin on-chip SPI Controller Driver, Version 1.0, regs_base@ffc00500, dma channel@7^M
Initializing USB Mass Storage driver...^M
usbcore: registered new interface driver usb-storage^M
USB Mass Storage support registered.^M
rtc-bfin rtc-bfin: rtc core: registered rtc-bfin as rtc0^M
i2c-bfin-twi i2c-bfin-twi.0: Blackfin BF5xx on-chip I2C TWI Contoller, regs_base@ffc01400^M
bfin-wdt: initialized: timeout=20 sec (nowayout=0)^M
usbcore: registered new interface driver usbhid^M
usbhid: v2.6:USB HID core driver^M
TCP cubic registered^M
NET: Registered protocol family 17^M
rtc-bfin rtc-bfin: setting system clock to 2004-05-31 12:16:23 UTC (1086005783)^M
VFS: Cannot open root device "mtd0" or unknown-block(0,0)^M
Please append a correct "root=" boot option; here are the available partitions:^M
1f00 256 mtdblock0 (driver?)^M
1f01 1792 mtdblock1 (driver?)^M
1f02 2048 mtdblock2 (driver?)^M
1f03 5143 mtdblock3 (driver?)^M
Kernel panic - not syncing: VFS: Una
Last passed time: 2009_May_06_19_20, ucdist ver: 8040, kernel ver: 6319
--
Follow-ups
--- Sonic Zhang 2009-06-05 03:17:25
Never passed since regression on bf518 is set up.
--- Vivi Li 2009-06-05 06:30:50
xip fdpic also fails on bf538-ezkit. Last passed time: 2009_Jun_03_11_56, ucdist
ver: 8185, kernel ver: 6543.
--
Linux version 2.6.28.10-ADI-2009R1-svn6571 (test@linux70-bf538) (gcc version
4.1.2 (ADI svn)) #37 Thu Jun 4 22:28:34 CST 2009^M
Board Memory: 64MB^M
Kernel Managed Memory: 64MB^M
Memory map:^M
fixedcode = 0x00000400-0x00000490^M
text = 0x00001000-0x001042b0^M
rodata = 0x001042b0-0x001557ec^M
bss = 0x00156000-0x00166848^M
data = 0x00166848-0x00176000^M
stack = 0x00174000-0x00176000^M
init = 0x00176000-0x00197000^M
available = 0x00197000-0x03a6f000^M
rootfs = 0x03a6f000-0x03f00000^M
DMA Zone = 0x03f00000-0x04000000^M
Hardware Trace Active and Enabled^M
Boot Mode: 0^M
Reset caused by Software reset^M
Blackfin support (C) 2004-2009 Analog Devices, Inc.^M
Compiled for ADSP-BF538 Rev 0.4^M
Blackfin Linux support by http://blackfin.uclinux.org/^M
Processor Speed: 525 MHz core clock and 131 MHz System Clock^M
NOMPU: setting up cplb tables^M
Instruction Cache Enabled for CPU0^M
Data Cache Enabled for CPU0 (write-through)^M
Built 1 zonelists in Zone order, mobility grouping off. Total pages: 14842^M
Kernel command line: root=mtd0 rootfstype=romfs ro^M
Configuring Blackfin Priority Driven Interrupts^M
PID hash table entries: 256 (order: 8, 1024 bytes)^M
console [ttyBF0] enabled^M
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)^M
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)^M
Memory available: 57640k/65536k RAM, (132k init code, 1036k kernel code, 456k
data, 1024k dma, 572k reserved)^M
Calibrating delay loop... 1044.48 BogoMIPS (lpj=2088960)^M
Security Framework initialized^M
Mount-cache hash table entries: 512^M
Blackfin Scratchpad data SRAM: 4 KB^M
Blackfin L1 Data A SRAM: 16 KB (15 KB free)^M
Blackfin L1 Data B SRAM: 16 KB (16 KB free)^M
Blackfin L1 Instruction SRAM: 64 KB (53 KB free)^M
net_namespace: 288 bytes^M
NET: Registered protocol family 16^M
Blackfin DMA Controller^M
ezkit_init(): registering device resources^M
NET: Registered protocol family 2^M
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)^M
TCP established hash table entries: 2048 (order: 2, 16384 bytes)^M
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)^M
TCP: Hash tables configured (established 2048 bind 2048)^M
TCP reno registered^M
NET: Registered protocol family 1^M
msgmni has been set to 112^M
io scheduler noop registered^M
io scheduler anticipatory registered (default)^M
io scheduler cfq registered^M
Serial: Blackfin serial driver^M
bfin-uart.1: ttyBF0 at MMIO 0xffc00400 (irq = 21) is a BFIN-UART^M
bfin-uart.1: ttyBF1 at MMIO 0xffc02000 (irq = 48) is a BFIN-UART^M
bfin-uart.1: ttyBF2 at MMIO 0xffc02100 (irq = 50) is a BFIN-UART^M
brd: module loaded^M
smc91x.c: v1.1, sep 22 2004 by Nicolas Pitre <nico@cam.org>^M
eth0: SMC91C11xFD (rev 2) at 20310300 IRQ 71 [nowait]^M
eth0: Ethernet addr: 00:e0:22:fe:bc:8b^M
uclinux[mtd]: RAM probe address=0x3a6f000 size=0x490f30^M
Creating 1 MTD partitions on "RAM":^M
0x00000000-0x00490f30 : "ROMfs"^M
bfin-spi bfin-spi.0: Blackfin on-chip SPI Controller Driver, Version 1.0,
regs_base@ffc00500, dma channel@5^M
bfin-spi bfin-spi.1: Blackfin on-chip SPI Controller Driver, Version 1.0,
regs_base@ffc02300, dma channel@14^M
bfin-spi bfin-spi.2: Blackfin on-chip SPI Controller Driver, Version 1.0,
regs_base@ffc02400, dma channel@15^M
ad7879 spi0.1: Failed to probe AD7879 Touchscreen^M
rtc-bfin rtc-bfin: rtc core: registered rtc-bfin as rtc0^M
bfin-wdt: initialized: timeout=20 sec (nowayout=0)^M
TCP cubic registered^M
NET: Registered protocol family 17^M
rtc-bfin rtc-bfin: setting system clock to 2004-05-31 10:30:12 UTC
(1085999412)^M
VFS: Cannot open root device "mtd0" or unknown-block(0,0)^M
Please append a correct "root=" boot option; here are the available
partitions:^M
1f00 4675 mtdblock0 (driver?)^M
Kernel panic - not syncing
Last passed time: 2009_Jun_03_11_56, ucdist ver: 8185, kernel ver: 6543
--
--- Bernd Schmidt 2009-06-15 10:43:40
Is this maybe another case where you have to pass something like mtd1, mtd2, ...
instead of mtd0? We've had a few bugs opened for this kind of issue.
--- Vivi Li 2009-06-16 06:38:24
526 can work now.
bf518/bf538 still have such problem, even after I tried mtd0-mtd4.
--- Bernd Schmidt 2009-06-16 08:11:11
I don't have hardware for any of those. Jie, can you take a look using the test
boards?
--- Vivi Li 2009-06-17 01:31:11
Latest status are:
bf526/bf518 fdpic fail;
bf538 pass for both fdpic and shared-flat.
--- Jie Zhang 2009-06-17 02:17:52
In the config files vivi posted, CONFIG_ROMFS_MTD_FS was not selected. Selecting
it should boot the kernel.
--- Vivi Li 2009-06-17 03:00:45
Because the dependency changed in config, I need to "make menuconfig"
twice to ensure that CONFIG_ROMFS_MTD_FS is selected.
Build script has been updated.
Close this bug.
--- Robin Getz 2009-06-19 12:54:51
If the configuration changes - which causes a bug - it is likely the
documentation needs to be updated as well.
It sounds anyway there needs to be a note about the root= should be.
https://docs.blackfin.uclinux.org/doku.php?id=linux-kernel:xip
-Robin
Files
Changes
Commits
Dependencies
Duplicates
Associations
Tags
File Name File Type File Size Posted By
config.xip.fdpic.bf518f application/octet-stream 29397 Vivi Li
config.xip.fdpic.bf526 application/octet-stream 37243 Vivi Li