LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 12-17-2014, 05:13 AM   #1
ayyasprings
Member
 
Registered: Aug 2014
Posts: 118

Rep: Reputation: Disabled
Doubt in formatting partition where Uboot is residing


Hi,

As Uboot bootloader extracts into RAM from flash for execution, can we format/partition the space where Uboot resides in the flash while it was executing in the RAM space?

Please help!
 
Old 01-30-2015, 06:48 PM   #2
linux_walt
Member
 
Registered: Dec 2014
Location: Houston, TX
Distribution: Debian wheezy
Posts: 127

Rep: Reputation: 29
Just wondering if you ever got this sorted out. I am going through the process of building an sd card image, and the following is information for my system (linux-sunxi). I don't know if this format is universal, but it may give you some pointers of where to find more info for your system.

SD card layout for u-boot <= v2013.07 otherwise u-boot starts at 40, not 32
Code:
Start  Size    Usage
0      8KB     Unused, available for partition table
8      24KB    Initial SPL loader
32     512KB   u-boot
544    128KB   environment
672    352KB   reserved
1024   rest    Free for partitions
Since u-boot is after the partition table, and before the partitions actually start, there 'should' not be a problem if you partition and format the flash, as long as your first partition starts at 1024 (1Meg).

I have not tried duplicating a card, but I would definitely look into that before trying anything, or you risk loosing not only u-boot, but spl loader and everything else that is stored before the first partition.

However, taking your question literally:
Quote:
can we format/partition the space where Uboot resides in the flash
I guess the answer should be 'no'. Everything located between the partition table and first partition must stay at those locations.

Any corrections welcome.

Last edited by linux_walt; 01-30-2015 at 07:06 PM.
 
  


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
[SOLVED] Doubt in the uboot bootloader 's fsload command ayyasprings Linux - Embedded & Single-board computer 1 11-29-2014 04:13 AM
Not formatting a partition while installing Ubuntu but still data getting lost from that partition! ravisingh1 Linux - Laptop and Netbook 5 07-29-2014 02:44 AM
Doubt about /boot partition irmorales SUSE / openSUSE 1 03-30-2007 05:30 PM
Partition formatting TurboChicken Linux - Hardware 3 03-07-2006 11:16 AM
Creating a partition, formatting, etc JasonSmead Linux - Newbie 5 08-03-2003 07:18 AM

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

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