LinuxQuestions.org
Visit Jeremy's Blog.
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 11-24-2014, 06:02 AM   #1
ayyasprings
Member
 
Registered: Aug 2014
Posts: 118

Rep: Reputation: Disabled
Bootloading sequence doubt


Hi,

When partitioning the target board's NAND memory for first time(board which dont have any software before), using Uboot bootloader with kernel partition,bootloader partition, root filesystem partition, how does the bootloader instruct the kernel about the memory address of root filesytem to load after kernel was loaded in the power up sequence?

In kernel where will this address info stored after partitioning as the kernel image will be generated in the host environment and at that time kernel image was not aware of these address and after bootloader loads the kernel it transfers the control to kernel?

Please reply!
 
Old 11-25-2014, 12:18 PM   #2
eSelix
Senior Member
 
Registered: Oct 2009
Location: Wroclaw, Poland
Distribution: Arch, Kubuntu
Posts: 1,279

Rep: Reputation: 320Reputation: 320Reputation: 320Reputation: 320
You can specify this in kernel command line "mtdparts" argument if compiled with CONFIG_MTD_CMDLINE_PARTS, it can be passed by U-Boot or you can compile information about partitions into kernel image using device tree information.
 
Old 11-26-2014, 03:21 AM   #3
ayyasprings
Member
 
Registered: Aug 2014
Posts: 118

Original Poster
Rep: Reputation: Disabled
Hi eSelix,

When, Where and how to use/execute mtdparts argument option?

Please help!
 
Old 11-26-2014, 10:11 AM   #4
eSelix
Senior Member
 
Registered: Oct 2009
Location: Wroclaw, Poland
Distribution: Arch, Kubuntu
Posts: 1,279

Rep: Reputation: 320Reputation: 320Reputation: 320Reputation: 320
You can store it in U-Boot "bootargs" environment variable. It is automatically passed to kernel at boot. You mentioned "Building Embedded Linux Systems" book in another post, this is described in chapter 9 in "Using U-Boot’s Environment Variables".
 
Old 11-26-2014, 10:36 AM   #5
ayyasprings
Member
 
Registered: Aug 2014
Posts: 118

Original Poster
Rep: Reputation: Disabled
Hi,

I also like to know the mtdparts arguments usage details. Please reply to that question too.
 
Old 11-26-2014, 10:50 AM   #6
eSelix
Senior Member
 
Registered: Oct 2009
Location: Wroclaw, Poland
Distribution: Arch, Kubuntu
Posts: 1,279

Rep: Reputation: 320Reputation: 320Reputation: 320Reputation: 320
It is detailed described in U-Boot documentation, in kernel config documentation, and also in book.
 
  


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
Bootloading an USB on the main GRUB Pelly Linux - Software 1 11-19-2013 03:10 PM
One doubt please .. vibinlakshman Slackware 1 02-18-2009 08:57 PM
Doubt in Booting Sequence. dsksatish Linux - Newbie 3 12-29-2007 07:00 AM
a doubt... ashesh Linux - General 6 09-08-2003 02:07 PM
USB Wireless Logitech Mouse Issue During GRUB bootloading screen jambeck Linux - Hardware 0 10-10-2002 12:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer

All times are GMT -5. The time now is 03:26 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