Hi,
I was moving form an raspberry pi to the Odroid C2 and wanted to keep my /storage on usb drive so i have edited the boot.ini and the config.ini to allow this as follows.
I added an option test to boot.ini as it would be good not to have to edit it manually after every update.
Code: config.ini
#------------------------------------------------------------------------------------------------------
#
# config.ini
#
#------------------------------------------------------------------------------------------------------
#------------------------------------------------------------------------------------------------------
#
# Console Setup
# on serial port:
# condev='ttyS0,115200'
#
#------------------------------------------------------------------------------------------------------
#------------------------------------------------------------------------------------------------------
#
# Store user data on USB memory stick (not on sd-card/emmc)
# usbstorage='1'
# usbstorage='0'
#
#------------------------------------------------------------------------------------------------------
#------------------------------------------------------------------------------------------------------
#
# Video
# Setup the video output
# hdmimode='480i60hz'
# hdmimode='480i_rpt'
# hdmimode='480p60hz'
# hdmimode='480p_rpt'
# hdmimode='576i50hz'
# hdmimode='576i_rpt'
# hdmimode='576p50hz'
# hdmimode='576p_rpt'
# hdmimode='720p60hz'
# hdmimode='720p50hz'
# hdmimode='1080i60hz'
# hdmimode='1080p60hz'
# hdmimode='1080i50hz'
# hdmimode='1080p50hz'
# hdmimode='1080p30hz'
# hdmimode='1080p25hz'
# hdmimode='1080p24hz'
# hdmimode='2160p60hz'
# hdmimode='2160p50hz'
# hdmimode='2160p30hz'
# hdmimode='2160p25hz'
# hdmimode='2160p24hz'
# hdmimode='2160p60hz420'
# hdmimode='2160p50hz420'
# hdmimode='smpte60hz'
# hdmimode='smpte50hz'
# hdmimode='smpte30hz'
# hdmimode='smpte25hz'
# hdmimode='smpte24hz'
# hdmimode='smpte60hz420'
# hdmimode='smpte50hz420'
#
#------------------------------------------------------------------------------------------------------
#------------------------------------------------------------------------------------------------------
#
# LibreELEC variables
#
# Setup the LibreELEC options
# valid values are: textmode debugging progress nofsck nosplash noram overlay quiet ssh
#
libreelec='quiet ssh'
#
#------------------------------------------------------------------------------------------------------
#------------------------------------------------------------------------------------------------------
#
# Enable|Disable HDMI CEC Control
# hdmi_cec='0'
# hdmi_cec='1'
#
#------------------------------------------------------------------------------------------------------
#------------------------------------------------------------------------------------------------------
#
# Enable|Disable RTC Shield
# rtc_shield='0'
# rtc_shield='1'
#
#------------------------------------------------------------------------------------------------------
#------------------------------------------------------------------------------------------------------
#
# CPU Frequency / Cores control
#
# WARNING!!! WARNING!!! WARNING!!!
# Before changing anything here please read the wiki entry:
# http://odroid.com/dokuwiki/doku.php?id=en:c2_set_cpu_freq
#
# MAX CPU's
# maxcpus='1'
# maxcpus='2'
# maxcpus='3'
# maxcpus='4'
#
# MAX Frequency
# 2.016GHz
# max_freq='2016'
# 1.944GHz
# max_freq='1944'
# 1.920GHz
# max_freq='1920'
# 1.896GHz
# max_freq='1896
# 1.752GHz
# max_freq='1752'
# 1.680GHz
# max_freq='1680'
# 1.656GHz
# max_freq='1656'
# 1.536GHz
# max_freq='1536'
#
#------------------------------------------------------------------------------------------------------
Display More
config.ini changes at 15-21
Code: boot.ini
#------------------------------------------------------------------------------------------------------
#
# boot.ini
#
# WARNING DO NOT MODIFY THIS FILE! ALL CHANGES WILL BE LOST WITH THE NEXT UPDATE!
# Set your own settings in config.ini
#
#------------------------------------------------------------------------------------------------------
ODROIDC2-UBOOT-CONFIG
setenv bootrootfs "BOOT_IMAGE=KERNEL boot=UUID=2222-2262 disk=UUID=222222222-2222-2222-2222-22222222222222"
setenv condev "ttyS0,115200"
setenv hdmimode "1080p60hz"
setenv hdmioutput "1"
setenv vpu "1"
setenv libreelec "quiet"
setenv hdmi_cec "1"
setenv maxcpus "4"
setenv max_freq "1536"
setenv rtc_shield "0"
setenv kernel_addr 0x11000000
setenv dtb_addr 0x1000000
setenv uenv_addr 0x13000000
fatload mmc 0:1 ${kernel_addr} KERNEL
fatload mmc 0:1 ${dtb_addr} meson64_odroidc2.dtb
if fatload mmc 0:1 ${uenv_addr} config.ini; then env import -t ${uenv_addr} $filesize; fi
fdt addr ${dtb_addr}
fdt resize
setenv odroidp1 "no_console_suspend logo=osd1,loaded,0x3f800000,${hdmimode} vout=${hdmimode},enable hdmimode=${hdmimode} cvbsmode=nocvbs"
setenv odroidp2 "mac=${ethaddr} consoleblank=0 max_freq=${max_freq} maxcpus=${maxcpus}"
setenv odroid "${odroidp1} ${odroidp2}"
if test "${hdmi_cec}" = "1"; then setenv cec "hdmitx=cec17"; fi
if test "${vpu}" = "0"; then fdt rm /mesonstream; fdt rm /vdec; fdt rm /ppmgr; fi
if test "${hdmioutput}" = "0"; then fdt rm /mesonfb; fi
if test "${rtc_shield}" = "0"; then fdt set "/i2c@c1108500/pcf8563@51" status disabled; fi
if test "${usbstorage}" = "1"; then setenv bootrootfs "BOOT_IMAGE=KERNEL boot=UUID=2222-2262 disk=/dev/sda1"; fi
setenv bootargs "console=${condev} ${bootrootfs} ${odroid} ${cec} ${libreelec} "
booti ${kernel_addr} - ${dtb_addr}
Display More
boot.ini change at line 40
I guess boot=UUID=@BOOT_UUID@ should be used on line 40 as well for installation
I also think it would be better to use disk=label=usb_storage or some variation of this and make instructions in config clear that disk label must be usb_storage, however I could not get it to work.
S McConnell