by winestock » Fri Dec 07, 2012 5:25 pm
$this->bbcode_second_pass_quote('hydro', 'I') think you have to use setenv rootfstype ext4. This will, however, not have any effect, because boot options are set by alarm_args, and alarm_args does not know about a variable $rootfstype. You would also have to change alarm_args to use that variable and create a default value for rootfstype.
$this->bbcode_second_pass_code('', '
blparam rootfstype=ext3
blparam alarm_args='setenv bootargs console=ttyS0,115200 root=$device rootwait rootfstype=$rootfstype'
blparam alarm_ide='if ext2load ide 0:1 0x800000 /boot/uImage; then setenv device /dev/sda2; setenv rootfstype ext4; run alarm_args; bootm 0x800000; else setenv isDisk yes; fi'
')
Is there any reason why fw_setenv could not be used in this case? Such as:
$this->bbcode_second_pass_code('', '
fw_setenv alarm_args='setenv bootargs console=ttyS0,115200 root=$device rootwait rootfstype=$rootfstype'
fw_setenv alarm_ide='if ext2load ide 0:1 0x800000 /boot/uImage; then setenv device /dev/sda2; setenv rootfstype ext4; run alarm_args; bootm 0x800000; else setenv isDisk yes; fi'
')