[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [microblaze-uclinux] changing fstab
Hi Brett,
Brett Brotherton wrote:
I am using the 2.4 kernel on the ML401 Board, and want to know how to
edit the fstab file so that I can mount a JFFS2 filesystem at boot, I
have searched throught the sources and cannot seem to locate the fstab
file.
If you are using flatfsd (which by default PetaLinux targets do), then
you shold see on boot the /etc/fstab is a symlink to /etc/config/fstab
Thus, you can just edit /etc/fstab after the system has booted, save
your changes then do "flatfsd -s" to commit those changes to the flash,
and they shold be persistent across the next boot.
The first time flatfsd is run, it initialises /etc/config from
/etc/default, so you can modify your vendors Makefile
(petalinux-dist/vendors/XXX/YYY/Makefile) to create this file as you
require, something like
romfs::
$(ROMFSINST) -a "/dev/mtdblock0 jffs2 /mnt" /etc/default/fstab
This will add the string "/dev/mtdblock0..." to the
$(ROMFSDIR)/etc/default/fstab file.
I hope this clears things up.
Regards,
John
___________________________
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/