[Gta04-owner] [gta04-uboot][PATCH] boot.txt: use better rootfstype value

Martin Jansa martin.jansa at gmail.com
Mon Apr 23 22:18:25 CEST 2012


On Mon, Apr 23, 2012 at 10:05:10PM +0200, Dr. H. Nikolaus Schaller wrote:
> Hi Martin,
> thanks for the patch.
> 
> I am trying to understand it - but where is it documented that
> the rootfstype allows a comma separated list? I am not sure if
> all kernels support this.

linux/Documentation/kernel-parameters.txt says just:
rootfstype= [KNL] Set root filesystem type

but
http://tldp.org/HOWTO/BootPrompt-HOWTO-3.html
The `rootfstype=' Argument

This option allows you to give a comma separated list of fs types that
will be tried for a match when trying to mount the root filesystem. This
list will be used instead of the internal default which usually starts
with ext2, minix and the like.

and
init/do_mounts.c in kernel confirms that comma separated list was
supported already in Linux-2.6.12-rc2 and probably even before.

Not many defconfigs in kernel are using list of filesystems, but in this
case no rootfstype param would be better then just ext3.

Cheers,

> Am 22.04.2012 um 21:40 schrieb Martin Jansa:
> 
> > * ext4 partition with some ext4 features enabled was failing to mount
> >  EXT3-fs (mmcblk0p2): error: couldn't mount because of unsupported optional features (240)
> >  even with ext4 fs support enabled in kernel
> > 
> > Signed-off-by: Martin Jansa <Martin.Jansa at gmail.com>
> > ---
> > boot-scr/boot.txt |    4 ++--
> > 1 files changed, 2 insertions(+), 2 deletions(-)
> > 
> > diff --git a/boot-scr/boot.txt b/boot-scr/boot.txt
> > index a61e5cc..519fc90 100644
> > --- a/boot-scr/boot.txt
> > +++ b/boot-scr/boot.txt
> > @@ -26,7 +26,7 @@
> > # 3. run bootcmd
> > #
> > 
> > -VERSION=011	# increment if we need to re-initialize the boot environment
> > +VERSION=012	# increment if we need to re-initialize the boot environment
> > 
> > echo "*** if you boot from NAND don-t worry about error messages when U-Boot tries to read a non-existing MMC ***"
> > 
> > @@ -67,7 +67,7 @@ if test "${gta04}" != "${VERSION}"
> > 	# set boot arguments
> > 	setenv mmcargs 'setenv bootargs console=${console} mpurate=${mpurate} vram=${vram} omapfb.mode=dvi:${dvimode} omapfb.debug=y omapdss.def_disp=${defaultdisplay} root=${mmcroot} rootfstype=${mmcrootfstype}; echo using mmc rootfs; if fatload mmc ${mmcdev} ${imgtempaddr} bootargs.scr; then source ${imgtempaddr}; elif ext2load mmc 0:2 ${imgtempaddr} /boot/bootargs.scr; ; then source ${imgtempaddr}; fi'
> > 	setenv mmcroot '/dev/mmcblk0p2 rw'
> > -	setenv mmcrootfstype 'ext3 rootwait'
> > +	setenv mmcrootfstype 'ext4,ext3,btrfs rootwait'
> > 
> > 	setenv nandargs 'setenv bootargs console=${console} mpurate=${mpurate} vram=${vram} omapfb.mode=dvi:${dvimode} omapfb.debug=y omapdss.def_disp=${defaultdisplay} root=${nandroot} rootfstype=${nandrootfstype}; echo using nand rootfs'
> > 	setenv nandroot '/dev/mtdblock4 rw'
> > -- 
> > 1.7.8.5
> > 
> > _______________________________________________
> > Gta04-owner mailing list
> > Gta04-owner at goldelico.com
> > http://lists.goldelico.com/mailman/listinfo/gta04-owner
> 
> _______________________________________________
> Gta04-owner mailing list
> Gta04-owner at goldelico.com
> http://lists.goldelico.com/mailman/listinfo/gta04-owner

-- 
Martin 'JaMa' Jansa     jabber: Martin.Jansa at gmail.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.goldelico.com/pipermail/gta04-owner/attachments/20120423/341c5f2c/attachment-0001.bin>


More information about the Gta04-owner mailing list