heartofamom.com
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Read Only rootfs

 
Post new topic   Reply to topic    Tin Can Tools Forum Index -> Linux Build Environment
View previous topic :: View next topic  
Author Message
rstofer



Joined: 27 Aug 2008
Posts: 5

PostPosted: Thu Aug 28, 2008 1:11 pm    Post subject: Read Only rootfs Reply with quote

If I build a new rootfs following the directions from the Hello World tutorial exactly and then reflash the rootfs image, I wind up with a read-only file system in which I can not create a subdirectory to /mnt as in /mnt/thumb

If I reflash with the factory binary image, everything works fine.

My rootfs is 4321 blocks and the factory image has 4387 blocks.

One thing I have noticed about buildroot is that it uses headers from linux-2.6.22.1 while the kernel is actually built from lnux-2.5.22

Any thoughts?

Richard
Back to top
View user's profile Send private message
prpplague
Site Admin


Joined: 05 Jun 2007
Posts: 43

PostPosted: Thu Aug 28, 2008 6:38 pm    Post subject: Re: Read Only rootfs Reply with quote

rstofer wrote:
If I build a new rootfs following the directions from the Hello World tutorial exactly and then reflash the rootfs image, I wind up with a read-only file system in which I can not create a subdirectory to /mnt as in /mnt/thumb


you can add those directories to the device_table.txt file for buildroot which will generate those directories when the image is built. add an entry such as this:

/mnt d 755 0 0 - - - - -
/mnt/thumb d 755 0 0 - - - - -

rstofer wrote:

One thing I have noticed about buildroot is that it uses headers from linux-2.6.22.1 while the kernel is actually built from lnux-2.5.22

Any thoughts?

Richard


kernel headers are very consistant between versions, it is normal to use kernel headers from a different version during a cross compiler build as long as there weren't any major changes in the headers or large differences in the base, i.e. linux-2.6.22 build with linux 2.4.23 headers is not a good idea, but linux-2.6.22 build with linux-2.6.22.1 is no problems since the .1 is just a bug fix release.
Back to top
View user's profile Send private message
chrislogic



Joined: 06 Apr 2009
Posts: 1

PostPosted: Mon Apr 06, 2009 2:01 pm    Post subject: Reply with quote

Hi Rstofer,

Did you solve the read-only buildroot issue? I got the same result. If I load the factory rootfs it works fine. If I build my own, I end up with a read-only system.

Best Regards
Chris
Back to top
View user's profile Send private message
PeterJ



Joined: 31 May 2009
Posts: 1
Location: Australia

PostPosted: Sun May 31, 2009 10:04 pm    Post subject: Solved this just now Reply with quote

I had the same problem and attempting to re-mount root as read/write gave me an error /proc/mounts was missing, so I added the following to the device table:

/proc d 777 0 0 - - - - -
/proc/mounts d 777 0 0 - - - - -
/proc/devices d 777 0 0 - - - - -

I added the following stuff for the MMC:

/dev/mmcblk0 b 777 0 0 179 0 - - -
/dev/mmcblk0p1 b 777 0 0 179 1 - - -
/mnt/mmc d 777 0 0 - - - - -

And now I can mount after startup using:

mount /dev/mmcblk0p1 /mnt/mmc

This is with kernel 2.6.29 although there is a bug in the current mach-tct_hammer.c file that you need to get a copy of from support.
Back to top
View user's profile Send private message
prpplague
Site Admin


Joined: 05 Jun 2007
Posts: 43

PostPosted: Mon Jun 29, 2009 7:58 am    Post subject: Re: Solved this just now Reply with quote

PeterJ wrote:

This is with kernel 2.6.29 although there is a bug in the current mach-tct_hammer.c file that you need to get a copy of from support.


tthe mach-tct_hammer.c file that is included in the 2.6.29 kernel does not have a bug, it simply does not have support for the mmc/sd card via the SPI interface. to include this support you can download a patch from elinux wiki:

http://elinux.org/Hammer_Board_Software_System#Kernel
Back to top
View user's profile Send private message
Paulin



Joined: 26 Oct 2009
Posts: 1

PostPosted: Mon Oct 26, 2009 12:22 pm    Post subject: Re: Read Only rootfs Reply with quote

Dear Sir,

I am a new user of and have encountered the same problem with the rootfs.

How did you solve the problem?

Thanks,

Paulin.



rstofer wrote:
If I build a new rootfs following the directions from the Hello World tutorial exactly and then reflash the rootfs image, I wind up with a read-only file system in which I can not create a subdirectory to /mnt as in /mnt/thumb

If I reflash with the factory binary image, everything works fine.

My rootfs is 4321 blocks and the factory image has 4387 blocks.

One thing I have noticed about buildroot is that it uses headers from linux-2.6.22.1 while the kernel is actually built from lnux-2.5.22

Any thoughts?

Richard
Back to top
View user's profile Send private message
sfilen



Joined: 13 May 2009
Posts: 4

PostPosted: Sun Nov 08, 2009 2:12 pm    Post subject: Re: Read only rootfs Reply with quote

hello,

i had the same problem like you.
however i just created "proc" directory in buildroot target skeleton:

~/buildroot/target/device/Samsung/Hammer/target_skeleton/proc

i hope that this will help to you.

regards.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Tin Can Tools Forum Index -> Linux Build Environment All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum