LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-06-2016, 04:51 AM   #1
Dmitry_qt
LQ Newbie
 
Registered: Apr 2015
Posts: 4

Rep: Reputation: Disabled
Question Embedded Linux start-up options from Uboot


Hi guys,
First of all, sorry that this question could not be related to the current thread, I'm quite new to this forum.

I have an embedded linux(arago project) starting on a custom device. I see the following parameters set inside uboot.

bootargs=mem=32M@0xc0000000 mem=56M@0xc4000000 console=ttyS2,115200n8 root=/dev/ram0 rw initrd=0xc4000000,15M ramdisk_size=49152 ip=192.168.2.11

bootcmd=nand read.e 0xc4000000 0x400000 0xdf0000; nboot.e 0xc0700000 0 0x200000; bootm

As far as I understand 56+32M are allocated for Linux in disjoint areas inside RAM. And there is a initram of 15M. I believe 15M is a size of compressed rootfs, after gunzip it's about 46M. But what about ramdisk_size option...does it mean that ram disk in total has 49M capacity...hm, then what about 56+32-49M ? What are they for? Are they wasted?

I've tried to increase ramdisk_size up to 90M and everything works fine. I googled for several days for some explicit explanations but I didn't get the idea of this setup.

Please, can anybody explain me how this thing works?

Looking forward to hearing from you in the earliest time...I'm really in stuck.
 
Old 05-07-2016, 01:31 PM   #2
sag47
Senior Member
 
Registered: Sep 2009
Location: Raleigh, NC
Distribution: Kubuntu x64, Raspbian, CentOS
Posts: 1,861
Blog Entries: 36

Rep: Reputation: 459Reputation: 459Reputation: 459Reputation: 459Reputation: 459
Hi Dmitry,

Can you be more specific about which arago kernel you're using?

Project sources can be found at http://arago-project.org/git/projects/

In general, the Linux Kernel has a "Documentation" folder at the root of the source which can be perused for options. Additionally, one can grep for specific options of interest. e.g.

Code:
grep -irl ramdisk_size Documentation
The Kernel documentation is also fairly logical. e.g. to learn anout memory look at memory.txt. To learn about ramfs one can look in the filesystems folder.

For things you're not sure about the location you can clone the source and use grep to find it.

Edit: found ramdisk_size in the kernel docs by web searching "kernel.org ramdisk_size". It seems the option is in KB so 49152 is 48MB.

Last edited by sag47; 05-07-2016 at 01:59 PM.
 
  


Reply

Tags
uboot


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
Linux Start Up Options? Chuck E Linux - Newbie 6 01-25-2014 07:54 PM
How to Start Embedded Linux arunpatil.c Linux - Embedded & Single-board computer 1 12-23-2011 02:20 PM
How to start learning Embedded Linux ? indian Linux - Newbie 5 06-03-2008 05:35 AM
uboot unable to start arm embedded kernal kandhala Linux - Software 0 09-26-2007 05:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:50 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration