嵌入式平台的疑問

我們生活周遭存在太多太多的 embedded system ,過去 embedded system 有專屬的 OS,現在 linux 也可以應用在嵌入式環境,不過本版將廣泛討論所有嵌入式系統不只 linux 喔,歡迎有這方面經驗或有興趣的朋友一同進來討論。

版主: chester

嵌入式平台的疑問

文章pao1985 » 週五 6月 27, 2008 11:50 am

請教各位porting的前輩一下,
最近在porting OS 到PB11MPCore的時候一直出錯,
按照print出來的訊息,得知應該已經可以成功開啟kernel,
但是連接不到filesystem,所以一直出錯。
請教各位前輩是因為這個問題嗎?
如果是有人知道那段command該如何設嗎?
我已經是了將近100個command都沒辦法成功,
這個問題已經疑惑了我快半個月了><"
請幫幫我,
拜託!謝謝!!
*************************************************************************************
ARM PB11MPCore Boot Monitor
Version: V4.1
Build Date: Oct 24 2007
Tile Site : Tile Not Fitted
Endian: Little
Running boot script - myscript.txt


U-Boot 1.3.1-rc1 (Dec 6 2007 - 03:52:08)

*** Auto-detects ethernet chip ***



DRAM: 0 kB
Flash: 64 MB
In: serial
Out: serial
Err: serial
Hit any key to stop autoboot: 0
LAN9118 ethernet chip detected
TFTP from server 192.168.1.1; our IP address is 192.168.1.2
Filename 'uImage'.
Load address: 0x100000
Loading: #################################################################
#######################################
done
Bytes transferred = 1512080 (171290 hex)
## Booting image at 00100000 ...
Image Name: Linux-2.6.24-arm2
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 1512016 Bytes = 1.4 MB
Load Address: 00008000
Entry Point: 00008000
OK

Starting kernel ...

Uncompressing Linux.................................................................................................. done, booting the kernel.
Linux version 2.6.24-arm2 (root@localhost.localdomain) (gcc version 4.2.0 20070413 (prerelease) (CodeSourcery Sourcery G++ Lite 2007q1-21)) #12 SMP Thu Jun 26 11:44:50 CST 2008
CPU: ARMv6-compatible processor [410fb020] revision 0 (ARMv7), cr=00c5387f
Machine: ARM-RealView PB11MPCore
Memory policy: ECC disabled, Data cache writeback
CPU0: D VIPT write-back cache
CPU0: I cache: 32768 bytes, associativity 4, 32 byte lines, 256 sets
CPU0: D cache: 32768 bytes, associativity 4, 32 byte lines, 256 sets
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 32512
Kernel command line: root==/dev/bon/3 rw mtdparts=armflash.0:7268k@0x40100000(carmfs) mem=128M console=ttyAMA0
PID hash table entries: 512 (order: 9, 2048 bytes)
Console: colour dummy device 80x30
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
Memory: 128MB = 128MB total
Memory: 126592KB available (2812K code, 250K data, 104K init)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
Calibrating local timer... 104.47MHz.
CPU1: Booted secondary processor
CPU1: D VIPT write-back cache
CPU1: I cache: 32768 bytes, associativity 4, 32 byte lines, 256 sets
CPU1: D cache: 32768 bytes, associativity 4, 32 byte lines, 256 sets
CPU2: Booted secondary processor
CPU2: D VIPT write-back cache
CPU2: I cache: 32768 bytes, associativity 4, 32 byte lines, 256 sets
CPU2: D cache: 32768 bytes, associativity 4, 32 byte lines, 256 sets
CPU3: Booted secondary processor
CPU3: D VIPT write-back cache
CPU3: I cache: 32768 bytes, associativity 4, 32 byte lines, 256 sets
CPU3: D cache: 32768 bytes, associativity 4, 32 byte lines, 256 sets
Brought up 4 CPUs
SMP: Total of 4 processors activated (334.02 BogoMIPS).
net_namespace: 64 bytes
NET: Registered protocol family 16
L2X0 cache controller enabled
armflash.0: failed to claim resource 1
NET: Registered protocol family 2
Time: timer3 clocksource has been installed.
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 4096 (order: 3, 32768 bytes)
TCP bind hash table entries: 4096 (order: 3, 32768 bytes)
TCP: Hash tables configured (established 4096 bind 4096)
TCP reno registered
JFFS2 version 2.2. (NAND) ?? 2001-2006 Red Hat, Inc.
io scheduler noop registered (default)
CLCD: RealView hardware, VGA display
Clock CLCDCLK: setting VCO reg params: S=1 R=99 V=98
Console: switching to colour frame buffer device 80x30
Serial: AMBA PL011 UART driver
dev:f1: ttyAMA0 at MMIO 0x10009000 (irq = 36) is a AMBA/PL011
console [ttyAMA0] enabled
dev:f2: ttyAMA1 at MMIO 0x1000a000 (irq = 37) is a AMBA/PL011
dev:f3: ttyAMA2 at MMIO 0x1000b000 (irq = 78) is a AMBA/PL011
fpga:09: ttyAMA3 at MMIO 0x1000c000 (irq = 79) is a AMBA/PL011
smc911x: Driver version 2007-07-08.
eth0: SMSC911x MAC Address: 00:02:f7:00:21:52
Generic platform RAM MTD, (c) 2004 Simtec Electronics
No recognised DiskOnChip devices found
mice: PS/2 mouse device common for all mice
atkbd.c: keyboard reset failed on fpga:06
atkbd.c: keyboard reset failed on fpga:07
Advanced Linux Sound Architecture Driver Version 1.0.15 (Tue Nov 20 19:16:42 2007 UTC).
aaci-pl041 fpga:04: ARM AC'97 Interface at 0x0000000010004000, irq 32, fifo 512
ALSA device list:
#0: ARM AC'97 Interface at 0x0000000010004000, irq 32
TCP cubic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
VFP support v0.3: implementor 41 architecture 1 part 20 variant b rev 3
Root-NFS: No NFS server available, giving up.
VFS: Unable to mount root fs via NFS, trying floppy.
VFS: Cannot open root device "=/dev/bon/3" or unknown-block(2,0)
Please append a correct "root=" boot option; here are the available partitions:
1f00 4096 mtdblock0 (driver?)
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)
*************************************************************************************
pao1985
可愛的小學生
可愛的小學生
 
文章: 1
註冊時間: 週五 6月 27, 2008 11:47 am

文章tomjpsun » 週五 6月 27, 2008 1:45 pm

要不要先試試 initramfs?
make menuconfig ->general setup ->initramfs source files 設定到一個可以boot的ARM root file system
build kernel 時會直接包進去
理論上這樣不用擔心找filesystem的過程不正確,應該要開機成功才對
boot成功後再來找問題,可能比較有線索 ...
tomjpsun
可愛的小學生
可愛的小學生
 
文章: 82
註冊時間: 週一 1月 03, 2005 2:40 pm


回到 embedded system

誰在線上

正在瀏覽這個版面的使用者:沒有註冊會員 和 1 位訪客