AT91SAM9XEK ramdisk 启动笔记
生活随笔
收集整理的這篇文章主要介紹了
AT91SAM9XEK ramdisk 启动笔记
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
1. 啟動下面信息之后系統(tǒng)就掛掉了,沒有繼續(xù)輸出信息
Switching to clocksource tcb_clksrc NET: Registered protocol family 2 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: 2, 16384 bytes) TCP: Hash tables configured (established 4096 bind 4096) TCP reno registered UDP hash table entries: 256 (order: 0, 4096 bytes) UDP-Lite hash table entries: 256 (order: 0, 4096 bytes) NET: Registered protocol family 1 RPC: Registered udp transport module. RPC: Registered tcp transport module. RPC: Registered tcp NFSv4.1 backchannel transport module. Trying to unpack rootfs image as initramfs... rootfs image is not initramfs (no cpio magic); looks like an initrd解決辦法:
好吧,是我粗心,不ramdisk的大小設(shè)置得太大了,我在 u-boot 這樣配置 bootargs 導(dǎo)致了上面的問題
set bootargs root=/dev/ram0 rw ramdisk_size=17912 initrd=0x21100000,64M console=ttyS0,115200n8把 64M 改為 16M 就好了
2. Ramdisk 掛載失敗
Ramdisk 掛載失敗,并有類似的下面信息輸出:
RAMDISK: gzip image found at block 0 RAMDISK: incomplete write (4485 != 32768) write error VFS: Mounted root (ext2 filesystem) on device 1:0. attempt to access beyond end of device ram0: rw=0, want=112684, limit=35824 EXT2-fs (ram0): error: ext2_get_inode: unable to read inode block - inode=230, block=56341 EXT2-fs (ram0): error: remounting filesystem read-only devtmpfs: error mounting -5 Freeing init memory: 136K attempt to access beyond end of device ram0: rw=0, want=48300, limit=35824 EXT2-fs (ram0): error: ext2_get_inode: unable to read inode block - inode=97, block=24149 EXT2-fs (ram0): error: remounting filesystem read-only attempt to access beyond end of device一般是制作 ramdisk 的時候指定的大小太大了,比如用下面的命令制作 ramdisk
genext2fs -b 102400 -d rootfs ramdisk.image把102400改小一點試試,我是改小之后就解決這個問題了
?
轉(zhuǎn)載于:https://www.cnblogs.com/jakebo/p/4673446.html
總結(jié)
以上是生活随笔為你收集整理的AT91SAM9XEK ramdisk 启动笔记的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 关于jQuery Mobile 的pag
- 下一篇: JQuery弹出层,点击按钮后弹出遮罩层