Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.


  Search this Thread
Old 03-15-2011, 11:29 AM   #1
LQ Newbie
Registered: Mar 2011
Posts: 3

Rep: Reputation: 1

Hi all,

I would like to know how can I choose the RAM area is going to be used to load my ramdisk.

That's to say, in next boot capture we can see following line:
Loading Ramdisk to 0f33f000, end 0f9bcd1f

This is a RAM position (I have a 256 MB from 0x0) that I would like to change to a smaller one.

I am generating the ramdisk file with ltib so maybe I am losing something.

Bytes transferred = 71316 (11694 hex)

## Booting image at 00400000 ...
   Image Name:   Linux-
   Created:      2011-03-15  14:17:51 UTC
   Image Type:   PowerPC Linux Kernel Image (gzip compressed)
   Data Size:    1815014 Bytes =  1.7 MB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK

## Loading RAMDisk Image at 01000000 ...
   Image Name:   uboot ext2 ramdisk rootfs
   Created:      2011-03-15  14:20:13 UTC
   Image Type:   PowerPC Linux RAMDisk Image (gzip compressed)
   Data Size:    6806815 Bytes =  6.5 MB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
   Booting using the fdt at 0x600000
   Loading Ramdisk to 0f33f000, end 0f9bcd1f ... OK
kernel messages

pd:I am working with freescale ltib over an ads5121 based board (MPC5121e).
Old 03-15-2011, 11:48 AM   #2
LQ Newbie
Registered: Mar 2011
Posts: 3

Original Poster
Rep: Reputation: 1


Ok, It semms setting initrd_high in u-boot I choose the max ram position.

I have another problem now when kernel tries to mount the filesystem:

[   90.959931] RAMDISK: Compressed image found at block 0
[   93.162656] RAMDISK: incomplete write (-28 != 32768) 33554432
[   93.715014] VFS: Mounted root (ext2 filesystem).
[   93.719726] Freeing unused kernel memory: 180k init
[   93.725405] attempt to access beyond end of device
[   93.730180] ram0: rw=0, want=72108, limit=65536
[   93.734977] attempt to access beyond end of device
[   93.739942] ram0: rw=0, want=73238, limit=65536
[   93.744490] Kernel panic - not syncing: No init found.  Try passing init= option to kernel.
[   93.752801] Rebooting in 1 seconds..<0>System Halted, OK to turn off power
It must me related with some kernel ramdisk configuration. The mine are:

ram disks = 1
ramdisksize = 32 MB
blocksize = 1024

My resulting ramdisk.gz.uboot has only 6.5 MB so I don't know exactly the meaning of the previous kernel variable ramdisksize

More study for myself is needed

Any clue is appreciated

Old 03-15-2011, 12:00 PM   #3
LQ Newbie
Registered: Mar 2011
Posts: 3

Original Poster
Rep: Reputation: 1
Hi againˇ

Problem solved, I had forgot set ramdisk_size uboot varableˇ
1 members found this post helpful.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
RAMDISK: couldn't find valid ramdisk image starting at 0. iotc247 Slackware 10 12-10-2010 04:08 PM
Ramdisk mudasar Linux - General 2 07-22-2010 12:54 PM
creating a ramdisk runtime from another ramdisk code123 Linux From Scratch 0 10-11-2004 09:59 AM
Ramdisk wburquhart Linux - Hardware 1 12-22-2003 03:18 PM
ramdisk clu Slackware 0 05-08-2003 03:25 AM

All times are GMT -5. The time now is 12:14 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration