| View previous topic :: View next topic |
| Author |
Message |
rstofer
Joined: 27 Aug 2008 Posts: 5
|
Posted: Thu Aug 28, 2008 1:11 pm Post subject: Read Only rootfs |
|
|
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 |
|
 |
prpplague Site Admin
Joined: 05 Jun 2007 Posts: 43
|
Posted: Thu Aug 28, 2008 6:38 pm Post subject: Re: Read Only rootfs |
|
|
| 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 |
|
 |
chrislogic
Joined: 06 Apr 2009 Posts: 1
|
Posted: Mon Apr 06, 2009 2:01 pm Post subject: |
|
|
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 |
|
 |
PeterJ
Joined: 31 May 2009 Posts: 1 Location: Australia
|
Posted: Sun May 31, 2009 10:04 pm Post subject: Solved this just now |
|
|
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 |
|
 |
prpplague Site Admin
Joined: 05 Jun 2007 Posts: 43
|
Posted: Mon Jun 29, 2009 7:58 am Post subject: Re: Solved this just now |
|
|
| 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 |
|
 |
Paulin
Joined: 26 Oct 2009 Posts: 1
|
Posted: Mon Oct 26, 2009 12:22 pm Post subject: Re: Read Only rootfs |
|
|
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 |
|
 |
sfilen
Joined: 13 May 2009 Posts: 4
|
Posted: Sun Nov 08, 2009 2:12 pm Post subject: Re: Read only rootfs |
|
|
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 |
|
 |
|