Hi,

On 19-01-15 15:43, Peter Mattern wrote:
Hi.

While testing your instructions I happened to see that u-boot-sunxi-with-spl.bin's size 
is exactly the same with or without "Enable workarounds for booting old 
kernels" set as described in your mail.
This got me wonder about the effects of the said option. Am I correct by supposing as of 
now the only effect is setting "Boot in secure mode by default" or is there 
anything else?

The reason to ask is that this in turn made me wonder whether it may be 
feasible to boot linux-sunxi and mainline kernel alternately on one device by 
using only one U-Boot binary (u-boot-sunxi-with-spl.bin) and changing e. g. 
boot.scr. only.

Setting "Enable workarounds for booting old kernels" also changes a divider
in pll5, as older linux-sunxi kernels have the divider hardcoded rather then
looking at what the bootloader actually programmed. Other then that it indeed
only changes "Boot in secure mode by default" which can be changed by setting
the "bootm_boot_mode" env variable to either "sec" or "nonsec" before calling
bootm.

Note that the latest sunxi-3.4/next kernels do not suffer from the PLL5
divider issue, and you can boot a new kernel just fine with the slightly
less optimal pll5 div chosen when building with "Enable workarounds for booting
old kernels"

So yes you can boot both kernels with a single u-boot binary.

Regards,

Hans

--
You received this message because you are subscribed to the Google Groups 
"linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to