板子Atmel AT91SAM9261-EK開機的問題

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

版主: chester

板子Atmel AT91SAM9261-EK開機的問題

文章kaichun1225 » 週六 7月 21, 2007 1:35 pm

我先↓
#tftp 0x20000000 uImage
#tftp 0x21100000 ext2fs.gz
then↓
#bootm 0x20000000

U-Boot> bootm 0x20000000e: registered new interf
## Booting image at 20000000 ...T T T T T T T T T T T T T T T T
Image Name: Linux-2.6.20port registered.
Image Type: ARM Linux Kernel Image (uncompressed) T T T T T T T T T T T T T T T T T T T T T T T T T T T
Data Size: 1049028 Bytes = 1 MB
i2c /dev e
Load Address: 20008000 T T T T T T T T T T T T
Entry Point: 20008000T T T T T T T T T T T
Verifying Checksum ... OKtered
NE
OKRe

Starting kernel ... T T T T T T T T T

Uncompressing Linux.............................................................
RAMDISK: Couldn't find valid RAM disk image st

Machine: Atmel AT91SAM9261-EK


Ignoring unrecognised tag 0x54410008 T T T T T T T T T T T T T T T T T T
Memory policy: ECC disabled, Data cache writebackMhz]:AT45DB642
Nb pages
Clocks: CPU 198 MHz, master 99 MHz, main 18.432 MHz T T T T T T T T T T T T T T T T T T T T T T T
Logi
CPU0: D VIVT write-back cache
*-------
CPU0: I cache: 16384 bytes, associativity 4, 32 byte lines, 128 sets T T T T T T T T T T T T T T
2: Start UBOOT
CPU0: D cache: 16384 bytes, associativity 4, 32 b
checking if image is initramfs...it isn't (no cpio magic); looks like an initrdite-back cache
CPU0: I cache: 16384 bytes, associa
Freeing initrd memory: 29296Kets00
NetWinder Floating Point Emulator V0.97 (double precision)6384 bytes, associativity 4, 32 byte lines, 128 setsp 2110
io scheduler noop registered
serverip=192.168.0.1
io scheduler anticipatory registered (default)dout=serial
stderr=ser
Kernel com
atmel_usart.0: ttyS0 at MMIO 0xfefff200 (irq = 1) is a ATMEL_SERIALoo
U-Boot> tftp 0x20000000 uImage

RAMDISK driver initialized: 16 RAM disks of 32768000K size 1024 blocksize
MAC: 12:34:56:78:9a:bc
AT91: 96 gpio irqs in 3 ba
dm9000 Ethernet Driver
0x00040000-0x04000000 : "Partition 2"
usbmon: debugfs is not available
at91_ohci at91_ohci: AT91 OHCI
at91_ohci at91_ohci: new USB bus registered, assigned bus number 1
at91_ohci at91_ohci: irq 20, io mem 0x00500000
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
udc: at91_udc version 3 May 2006
mice: PS/2 mouse device common for all mice
i2c /dev entries driver
at91_i2c at91_i2c: AT91 i2c bus driver.
TCP cubic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
RAMDISK: Compressed image found at block 0
VFS: Mounted root (ext2 filesystem).
Freeing init memory: 92K
Failed to execute /sbin/init. Attempting defaults...
Kernel panic - not syncing: No init found. Try passing init= option to kernel.

然後就停在這裡沒動作了....
請問是為什麼呢??
ext2fs.gz是根據這各網站http://www.jollen.org/blog/2007/01/arm9_bootstrap_root_filesystem.html 自己做的filesystem
請各位大大幫幫忙><
kaichun1225
可愛的小學生
可愛的小學生
 
文章: 2
註冊時間: 週六 7月 21, 2007 1:33 pm

文章nra65dr » 週六 7月 21, 2007 7:15 pm

Jollen網頁最下面有提到
jollen.org # tftpboot 32000000 urootfs.img; tftpboot 30F00000 uimage.img; bootm 30F00000 32000000

看出來你少了什麼嗎?No init found就是說你的rootfs沒掛成功
先用mkimage -A arm -O linux -T ramdisk -C把你的ext2fs.gz 包裝成 U-Boot 的格式後

再把
#bootm 0x20000000
改成
#bootm 0x20000000 0x21100000吧

註:mkimage 可以在uboot的source file目錄中找到 (tools/mkimage)
nra65dr
可愛的小學生
可愛的小學生
 
文章: 15
註冊時間: 週六 12月 30, 2006 10:49 pm

文章kaichun1225 » 週一 7月 23, 2007 9:00 pm

我成功了,謝謝大大幫忙
真的很感激,
感激 :crying:
kaichun1225
可愛的小學生
可愛的小學生
 
文章: 2
註冊時間: 週六 7月 21, 2007 1:33 pm


回到 embedded system

誰在線上

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