2008-08-12 09:36:17 kernel booting problem
Pafone Lee (CHINA)
Message: 60331
I tried to port uClinux kernel to my custom board, have done something as the doc http://docs.blackfin.uclinux.org/doku.php?id=linux-kernel:customizing_for_your_board discribes.
and i did noting to change the kernel configuration except the Blackfin processor option--->system type
the system type was set to my custom board.
then saved and make
but when boot this compiled kernel , the system halt after output Warning : unable to open an initial console.
what's the problem with my kernel configuration. and where to config the console,how.
thanks.
TranslateQuoteReplyEditDelete
2008-08-12 10:01:23 Re: kernel booting problem
Mike Frysinger (UNITED STATES)
Message: 60333
if you did not correctly update your kernel clock settings to match your hardware, that's a very bad thing and you need to go back and do that
you need to check your uclinux-dist settings and make sure that the console device node is being created in your rootfs image
post the full kernel boot output
QuoteReplyEditDelete
2008-08-12 20:54:35 Re: kernel booting problem
Pafone Lee (CHINA)
Message: 60351
done
Bytes transferred = 4628989 (46a1fd hex)
pafone-bfin> bootelf 0x1000000
Loading .text @ 0x00001000 (977264 bytes)
Loading .rodata @ 0x000f0000 (213248 bytes)
Loading __ksymtab @ 0x00124100 (13976 bytes)
Loading __ksymtab_gpl @ 0x00127798 (3840 bytes)
Loading __ksymtab_strings @ 0x00128698 (42556 bytes)
Loading __param @ 0x00132cd4 (320 bytes)
Loading .data @ 0x00133000 (61440 bytes)
Loading .init.text @ 0x00142000 (80380 bytes)
Loading .init.data @ 0x001559fc (3228 bytes)
Loading .init.setup @ 0x00156698 (584 bytes)
Loading .initcall.init @ 0x001568e0 (412 bytes)
Loading .con_initcall.init @ 0x00156a7c (4 bytes)
Loading .init.ramfs @ 0x00156a80 (2690322 bytes)
Loading .text_l1 @ 0xffa00000 (8264 bytes)
sh_addr: FFA00000, p_paddr: 003E7792
Loading from: 013E8000 to 003E7792, size: 8264
Loading .data_l1 @ 0xff800000 (192 bytes)
sh_addr: FF800000, p_paddr: 003E97DA
Loading from: 013EB000 to 003E97DA, size: 192
Clearing .bss @ 0x003ea000 (59120 bytes)
## Starting application at 0x00142000 ...
Linux version 2.6.22.18-ADI-2008R1-svn (root@localhost.localdomain) (gcc versio8
early printk enabled on early_BFuart0
Hardware Trace Active and Enabled
Warning: limiting memory to 31MB due to hardware anomaly 05000263
Blackfin support (C) 2004-2007 Analog Devices, Inc.
Compiled for ADSP-BF533 Rev 0.3
Blackfin Linux support by http://blackfin.uclinux.org/
Processor Speed: 594 MHz core clock and 118 MHz System Clock
Board Memory: 32MB
Kernel Managed Memory: 32MB
Memory map:
text = 0x00001000-0x000ef970
rodata = 0x000f0000-0x00132e14
data = 0x00133000-0x00142000
stack = 0x00134000-0x00136000
init = 0x00142000-0x003ea000
bss = 0x003ea000-0x003f86f0
available = 0x003f86f0-0x01eff000
DMA Zone = 0x01f00000-0x02000000
Instruction Cache Enabled
Data Cache Enabled (write-through)
Built 1 zonelists. Total pages: 7874
Kernel command line: root=/dev/mtdblock0 rw earlyprintk=serial,uart0,57600 ip=2f
Configuring Blackfin Priority Driven Interrupts
PID hash table entries: 128 (order: 7, 512 bytes)
console handover: boot [early_BFuart0] -> real [ttyBF0]
Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
Memory available: 27376k/32768k RAM, (2720k init code, 954k kernel code, 387k d)
Blackfin Scratchpad data SRAM: 4 KB
Blackfin Data A SRAM: 16 KB (15 KB free)
Blackfin Data B SRAM: 16 KB (16 KB free)
Blackfin Instruction SRAM: 64 KB (55 KB free)
Security Framework v1.0.0 initialized
Mount-cache hash table entries: 512
NET: Registered protocol family 16
Blackfin GPIO Controller
Blackfin DMA Controller
pafone_init(): registering device resources
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 1024 (order: 1, 8192 bytes)
TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
TCP: Hash tables configured (established 1024 bind 1024)
TCP reno registered
io scheduler noop registered
io scheduler anticipatory registered (default)
io scheduler cfq registered
bfin-wdt: initialized: timeout=20 sec (nowayout=0)
Serial: Blackfin serial driver
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
smc91x: not found (-19).
rtc-bfin rtc-bfin: rtc core: registered rtc-bfin as rtc0
TCP cubic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
rtc-bfin rtc-bfin: setting the system clock to 1970-01-01 22:59:30 (82770)
IP-Config: Device `eth0' not found.
Freeing unused kernel memory: 2720k freed
Warning: unable to open an initial console.
the above is the booting message.
TranslateQuoteReplyEditDelete
2008-08-12 21:07:00 Re: kernel booting problem
Pafone Lee (CHINA)
Message: 60352
but i try doing
$make AnalogDevices/BF533-EZKIT_default
$make
and booted it on my board , it can enter the linux .though something were wrong such as the wrong eth0
the booting message:
done
Bytes transferred = 4637388 (46c2cc hex)
pafone-bfin> bootelf 0x1000000
Loading .text @ 0x00001000 (977264 bytes)
Loading .rodata @ 0x000f0000 (213292 bytes)
Loading __ksymtab @ 0x0012412c (13976 bytes)
Loading __ksymtab_gpl @ 0x001277c4 (3840 bytes)
Loading __ksymtab_strings @ 0x001286c4 (42556 bytes)
Loading __param @ 0x00132d00 (320 bytes)
Loading .data @ 0x00133000 (69632 bytes)
Loading .init.text @ 0x00144000 (80396 bytes)
Loading .init.data @ 0x00157a0c (3236 bytes)
Loading .init.setup @ 0x001586b0 (576 bytes)
Loading .initcall.init @ 0x001588f0 (412 bytes)
Loading .con_initcall.init @ 0x00158a8c (4 bytes)
Loading .init.ramfs @ 0x00158a90 (2690346 bytes)
Loading .text_l1 @ 0xffa00000 (8264 bytes)
sh_addr: FFA00000, p_paddr: 003E97BA
Loading from: 013EA000 to 003E97BA, size: 8264
Loading .data_l1 @ 0xff800000 (192 bytes)
sh_addr: FF800000, p_paddr: 003EB802
Loading from: 013ED000 to 003EB802, size: 192
Clearing .bss @ 0x003ec000 (59120 bytes)
## Starting application at 0x00144000 ...
Linux version 2.6.22.18-ADI-2008R1-svn (root@localhost.localdomain) (gcc versio8
early printk enabled on early_BFuart0
Hardware Trace Active and Enabled
Warning: limiting memory to 31MB due to hardware anomaly 05000263
Reset caused by Software reset
Blackfin support (C) 2004-2007 Analog Devices, Inc.
Compiled for ADSP-BF533 Rev 0.3
Blackfin Linux support by http://blackfin.uclinux.org/
Processor Speed: 594 MHz core clock and 118 MHz System Clock
Board Memory: 32MB
Kernel Managed Memory: 32MB
Memory map:
text = 0x00001000-0x000ef970
rodata = 0x000f0000-0x00132e40
data = 0x00133000-0x00144000
stack = 0x00134000-0x00136000
init = 0x00144000-0x003ec000
bss = 0x003ec000-0x003fa6f0
available = 0x003fa6f0-0x01eff000
DMA Zone = 0x01f00000-0x02000000
Instruction Cache Enabled
Data Cache Enabled (write-through)
Built 1 zonelists. Total pages: 7874
Kernel command line: root=/dev/mtdblock0 rw earlyprintk=serial,uart0,57600 ip=2f
Configuring Blackfin Priority Driven Interrupts
PID hash table entries: 128 (order: 7, 512 bytes)
console handover: boot [early_BFuart0] -> real [ttyBF0]
Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
Memory available: 27368k/32768k RAM, (2720k init code, 954k kernel code, 395k d)
Blackfin Scratchpad data SRAM: 4 KB
Blackfin Data A SRAM: 16 KB (15 KB free) 只选择了BF533-ezkit,其它不变make menuconfig内核在eflag板上的启动信息
Blackfin Data B SRAM: 16 KB (16 KB free)
Blackfin Instruction SRAM: 64 KB (55 KB free)
Security Framework v1.0.0 initialized
Mount-cache hash table entries: 512
NET: Registered protocol family 16
Blackfin GPIO Controller
Blackfin DMA Controller
ezkit_init(): registering device resources
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 1024 (order: 1, 8192 bytes)
TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
TCP: Hash tables configured (established 1024 bind 1024)
TCP reno registered
io scheduler noop registered
io scheduler anticipatory registered (default)
io scheduler cfq registered
bfin-wdt: initialized: timeout=20 sec (nowayout=0)
Serial: Blackfin serial driver
bfin-uart.1: ttyBF0 at MMIO 0xffc00400 (irq = 21) is a BFIN-UART
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
smc91x: not found (-19).
bfin-spi bfin-spi.0: Blackfin BF5xx on-chip SPI Contoller Driver, Version 1.0, 5
rtc-bfin rtc-bfin: rtc core: registered rtc-bfin as rtc0
TCP cubic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
rtc-bfin rtc-bfin: setting the system clock to 1970-01-01 20:09:02 (72542)
IP-Config: Device `eth0' not found.
Freeing unused kernel memory: 2720k freed
dma_alloc_init: dma_page @ 0x003e8000 - 256 pages at 0x01f00000
_____________________________________
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.4.1 (2008-08-12 17:49:19 CST) Built-in shell (msh)
Enter 'help' for a list of built-in commands.
root:/>
TranslateQuoteReplyEditDelete
2008-08-12 21:34:34 Re: kernel booting problem
Mike Frysinger (UNITED STATES)
Message: 60353
which indicates that whatever you're using to generate the final image is doing something wrong. check your vendor settings as well as vendor makefiles.
QuoteReplyEditDelete
2008-08-13 04:12:31 Re: kernel booting problem
Pafone Lee (CHINA)
Message: 60368
cheers !
I found the reason that the BOARD.c ,in this case is pafone.c,did not declare the UART resource .
I added the declare code and the problem resolved.
thank Mike for remind me the console device node