1. After starting the following information, the system hangs up and does not continue to output information
switching to Clocksource tcb_clksrcnet:registered protocol family2IP route cache Hash Table entries:1024x768(Order:0,4096bytes) TCP established hash table entries:4096(Order:3,32768bytes) TCP bind hash Table entries:4096(Order:2,16384bytes) Tcp:hash tables configured (established4096Bind4096) TCP Reno registeredudp Hash Table entries: the(Order:0,4096bytes) UDP-lite Hash Table Entries: the(Order:0,4096bytes) Net:registered Protocol Family1rpc:registered UDP Transport module. Rpc:registered TCP Transport module. Rpc:registered TCP NFSv4.1backchannel Transport module. Trying to unpack Rootfs image as Initramfs...rootfs image was not Initramfs (no cpio magic); Looks like an initrd
Workaround:
Well, it is my carelessness, not ramdisk size set too big, I u-boot in this configuration Bootargs cause the above problem
Set Bootargs root=/dev/ram0 rw ramdisk_size=17912 initrd=0x21100000, 64M CONSOLE=TTYS0,115200N8
It would be nice to change the 64M to 16M.
2. Ramdisk Mount failure
The Ramdisk mount fails, and there is a similar output of the following information:
RAMDISK:gzipImage found at block0Ramdisk:incompleteWrite(4485!=32768)Writeerrorvfs:mounted Root (ext2 filesystem) on device1:0. Attempt to access beyond end of DEVICERAM0:RW=0, want=112684, limit=35824EXT2-fs (RAM0): error:ext2_get_inode:unable to read Inode block-inode= the, block=56341EXT2-fs (RAM0): error:remounting filesystem read-Onlydevtmpfs:error Mounting-5freeing Init memory:136kattempt to access beyond end of DEVICERAM0:RW=0, want=48300, limit=35824EXT2-fs (RAM0): error:ext2_get_inode:unable to read Inode block-inode= the, block=24149EXT2-fs (RAM0): error:remounting filesystem read-onlyattempt to access beyond end of device
Generally, when making RAMDisk, the specified size is too large, such as the following command to make RAMDisk
102400 -D rootfs ramdisk.image
Try to make the 102400 smaller, and I'll solve the problem after I change it.
At91sam9xek RAMDisk Start Note