LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
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.

Notices

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

Rep: Reputation: 1
ramdisk


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.

Code:
Bytes transferred = 71316 (11694 hex)

## Booting image at 00400000 ...
   Image Name:   Linux-2.6.24.6
   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

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

Original Poster
Rep: Reputation: 1
Wink

Sorry,

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:

Code:
[   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

Regards,
 
Old 03-15-2011, 11:00 AM   #3
moidom
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.
  


Reply


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 03:08 PM
Ramdisk mudasar Linux - General 2 07-22-2010 11:54 AM
creating a ramdisk runtime from another ramdisk code123 Linux From Scratch 0 10-11-2004 08:59 AM
Ramdisk wburquhart Linux - Hardware 1 12-22-2003 02:18 PM
ramdisk clu Slackware 0 05-08-2003 02:25 AM


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

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