Odroid-installer icon indicating copy to clipboard operation
Odroid-installer copied to clipboard

Setting DEFAULT_OS has no effect

Open crazyquark opened this issue 8 years ago • 2 comments

Hello,

Setting DEFAULT_OS in either boot.ini or multiboot/boot.ini.multi has no effect. Option 1 will always be booted by default. BOOT_DELAY does work.

Tested on the prebuilt v2.1.

crazyquark avatar Feb 17 '17 08:02 crazyquark

I confirm, no effect at all.

Any ideas on how to fix?

mvrk69 avatar Sep 20 '17 11:09 mvrk69

Maybe this can help someone in the future so I'll post it here.

After looking at the init script I found that the variable for the os number just has the wrong name. The easiest fix for this is to go into your boot.ini file (the one in the boot partitions root not the one in multiboot folder) and change the parameters name in line 158 to default_boot.

So the whole line will read: setenv bootargs "console=tty0 quiet cardtype=${CARD_TYPE} boot_delay=${BOOT_DELAY} default_boot=${DEFAULT_OS} no_console_suspend loglevel=0 hdmimode=${m} ${comde} m_bpp=${m_bpp} vout=${vout} fsck.repair=yes net.ifnames=0 elevator=noop disablehpd=${hpd} max_freq=${max_freq} maxcpus=${maxcpus} monitor_onoff=${monitor_onoff}"

Note that I only changed the name of the variable set as bootarg. The DEFAULT_OS variable can keep it's name.

yuri206 avatar Mar 13 '18 13:03 yuri206