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

Dr. H. Nikolaus Schaller hns at goldelico.com
Mon Apr 23 22:31:18 CEST 2012


Am 23.04.2012 um 22:18 schrieb Martin Jansa:

> 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

that was what I found and made me wondering.

> 
> 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.

Ok, then I think it is safe to apply the patch. We might then even
add ext2 for convenience at the end of the list since I assume the
first successful fs ends scanning the list.

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

The reason seems to be (we have inherited from the BeagleBoard) that
it should be some ext if we boot from SD card and jffs2/ubifs if we boot
from NAND. These should not be tried on a SD card. WIth the same
kernel image which may e.g. always comes from NAND or SD card.

BR,
Nikolaus


> 
> 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
> _______________________________________________
> Gta04-owner mailing list
> Gta04-owner at goldelico.com
> http://lists.goldelico.com/mailman/listinfo/gta04-owner



More information about the Gta04-owner mailing list