ramdisk booting faild

This forum is for users of Microchip MPUs and who are interested in using Linux OS.

Moderator: nferre

jakebo
Posts: 9
Joined: Tue May 26, 2015 10:04 am

ramdisk booting faild

Fri Jul 24, 2015 3:43 am

Hello,

I work on the at91sam9x5ek board with linux-2.6.39, and I failed to boot system with ramdisk.
In the u-boot commandline, download the ramdisk.gz to RAM and set the bootargs:

Code: Select all

U-Boot> usb start
U-Boot> fatload usb 0 0x21100000 ramdisk.gz
U-Boot> set bootargs 'console=ttyS0,115200 root=/dev/ram0 rw ramdisk_size=131072 initrd=0x21100000,64M rootfstype=ext2 rootwait devtmpfs.mount=0'
U-Boot> boot
the boot process struck after the below log printed:

Code: Select all

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
Then, there are nothing output continue, I had tried many ways and searched from google, but still could not boot with ramdisk.
Can anyone have ideas? Help is appreciative, thanks!

Best Regards,
Jakebo
blue_z
Location: USA
Posts: 1547
Joined: Thu Apr 19, 2007 10:15 pm

Re: ramdisk booting faild

Fri Jul 24, 2015 11:37 pm

jakebo wrote:I work on the at91sam9x5ek board with linux-2.6.39, and I failed to boot system with ramdisk.
In the u-boot commandline, download the ramdisk.gz to RAM and set the bootargs:

Code: Select all

U-Boot> usb start
U-Boot> fatload usb 0 0x21100000 ramdisk.gz
U-Boot> set bootargs 'console=ttyS0,115200 root=/dev/ram0 rw ramdisk_size=131072 initrd=0x21100000,64M rootfstype=ext2 rootwait devtmpfs.mount=0'
U-Boot> boot
What's the complete U-Boot environment?
What version of U-Boot is this that has a `set` command?
Why a ramdisk instead of ramfs?

Regards
jakebo
Posts: 9
Joined: Tue May 26, 2015 10:04 am

Re: ramdisk booting faild

Sat Jul 25, 2015 3:12 am

blue_z wrote:What's the complete U-Boot environment?
What version of U-Boot is this that has a `set` command?
Why a ramdisk instead of ramfs?
Thanks for you reply!
It works now,

Code: Select all

initrd=0x21100000,64M
64M is to large, it can boot properly when I set with 16M.

I had some experences on ramdsik but never use ramfs, so... (:
Regards,

Return to “Linux”

Who is online

Users browsing this forum: No registered users and 1 guest