[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [microblaze-uclinux] EXT2 error / read only file system



Hi Bruno,

Bruno Herrera wrote:
Hi follow my filesystem permitons...

ls -ls
   1 -rw-r--r--    1 0        0              24 resolv.conf
   1 -rw-r--r--    1 0        0             345 rc.sysinit
   1 -rw-r--r--    1 0        0              98 inittab
  10 -rw-r--r--    1 0        0            8205 services
   1 -rw-r--r--    1 0        0             170 passwd
   1 drwxr-xr-x    1 0        0              32 init.d
   1 -rw-r--r--    1 0        0             219 rc.reboot
   3 -rw-r--r--    1 0        0            2598 ramfs.img
   1 -rw-r--r--    1 0        0              44 hosts
1 drwxr-xr-x 1 0 0 32 rc.d

Shouldn't my rc.sysinit be executable also?

We generally use simpleinit, rather than busybox's init, so I'm not sure here.

How I change this in makefiles?

To test it, first just do a chmod +x romfs/etc/sysinit.rc, then rerun the "make image" phase. Try this new image, see if it works.

If not, then the problem is something else.

If it does work, you can edit the vendor Makefile to perform the chmod.

To tell you where to do this, we will need to know if you are using petalinux or a uClinux-dist download from uclinux.org.

Regards,

John


Best Regards,
Bruno Herrera

On 4/12/07, *Bruno Herrera * <bruherrera@xxxxxxxxx <mailto:bruherrera@xxxxxxxxx>> wrote:

    Hi John,

    I'm using the uClinux-dist that I get in CVS some time ago. Is there
    a way to succeed mounting a EXT2 filesystem? Is something missing in
    my linux configuration?

    I will check the permissions and then I post it here!

    Best Regards,
    Bruno Herrera


    On 4/11/07, *John Williams* < jwilliams@xxxxxxxxxxxxxx
    <mailto:jwilliams@xxxxxxxxxxxxxx>> wrote:

        Hi Bruno,

        Bruno Herrera wrote:
        [snip]

 uclinux[mtd]: root filesystem index=0
 *******
 VFS: test name = </dev/root>
 VFS: fs_name = <ext2>
 VFS: fs_name = <romfs>
 VFS: root name <1f:00>
 *******
 VFS: tried fs_name = <ext2> err= -22
 VFS: tried fs_name = <romfs> err= 0

        At boot, the kernel attempts to mount the root device with all known
        filesystems.  You have compiled ext2 and romfs support into your
        kernel,
        so both filesystems "get a go" at mounting the root
        device.  Since your
        root dev points to a memory-based romfs filesystem, ext2 fails, but
        romfs succeeeds.  This is not an error, it's just how it's designed.

 VFS: Mounted root (romfs filesystem) readonly.
 Freeing init memory: 36K
 init started:  BusyBox v1.00 (2006.12.05-04:15+0000)
        multi-call binary
 Could not run '/etc/rc.sysinit': Permission denied

        On your development machine, have a look in
        petalinux-dist/romfs/etc -
        what are the permissions on the rc.sysinit file?

        Are you using a standard petalinux install, or uClinux-dist?

        Regards,
        John
        ___________________________
        microblaze-uclinux mailing list
        microblaze-uclinux@xxxxxxxxxxxxxx
        <mailto:microblaze-uclinux@xxxxxxxxxxxxxx>
        Project Home Page :
        http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
        <http://www.itee.uq.edu.au/%7Ejwilliams/mblaze-uclinux>
        Mailing List Archive :
        http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/
        <http://www.itee.uq.edu.au/%7Elistarch/microblaze-uclinux/>




-- Bruno Meirelles Herrera
    Eng. de Computação / Computer Eng.

    SCJP -Sun Certified Programmer for Java 2 Platform 1.4
SCJA - Sun Certified Associate for Java Platform



--
Bruno Meirelles Herrera
Eng. de Computação / Computer Eng.

SCJP -Sun Certified Programmer for Java 2 Platform 1.4
SCJA -  Sun Certified Associate for Java Platform

___________________________
microblaze-uclinux mailing list
microblaze-uclinux@xxxxxxxxxxxxxx
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/