loboris / Odroid-installer

Boot menu and tools for Odroid XU3/XU4 & C2
30 stars 7 forks source link

Setting DEFAULT_OS has no effect #3

Open crazyquark opened 7 years ago

crazyquark commented 7 years ago

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.

mvrk69 commented 7 years ago

I confirm, no effect at all.

Any ideas on how to fix?

yuri206 commented 6 years ago

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.