============================ L4T .ini Configuration ============================
Never use # to comment out keys in the ini.
Either avoid them or use ; in front to invalidate a key.
Example: rootdev=mmcblk0p2 -> ;rootdev=mmcblk0p2

Below you can find all supported keys and their defaults.

========================= .ini Boot Entry Config Keys ==========================

[l4t=1]
 Enables and parses the .ini boot entry with L4T Loader.
 Mandatory!

[boot_prefixes=/switchroot/ubuntu/]
 Sets the main L4T boot directory.
 Mandatory!

[emmc=1]
 Enable eMMC.
 Also allows booting from eMMC.

[rootdev=mmcblk0p2]
 Default disk and linux partition.
 Gets overridden via [id] if FS label is found.
 (sda1, sda2, sdb1, mmcblk0p2, mmcblk1p1, etc)

[rootfstype=ext4]
 Sets linux partition FS type.
 Only ext4 is generally suggested since other filesystems use more CPU or
 they are slower.

[rootfs_fw=/lib/firmware/]
 Sets firmware directory for kernel to search in.

[id=SWR-UBU]
 Set FS Label name. SWR-UBU by default.
 Used to automatically find the correct linux partition.

[rootlabel_retries=1]
 How many times to retry and search rootdev.
 Each iteration is 200ms. Useful when booting via USB (use 50 for 10s).

[auto_rootdev_disable]
 Disable [rootdev] search done by initramfs which uses [id].

================================================================================

[r2p_action=self]
 self:       Reboots to self.
 bootloader: Reboots to bootloader menu.
 normal:     Reboots with no config. Allows default auto boot to be used.

[usb3_enable=0]
 1: Enable  USB3 support.
 Enabling it can dramatically decrease WiFi 2.4GHz and Bluetooth signal quality.

[4k60_disable=0]
 1: Disable 4K@60 for Nintendo Switch (OLED).
 If [usb3_enable] is set, the driver will automatically choose between USB3
 and 4K@60. 4K@60 is preferred in that case.

[uart_port=0]
 0: Disable serial logging
 1: Enable serial logging on UART-A
 2: Enable serial logging on UART-B
 3: Enable serial logging on UART-C
 4: Enable serial logging on USB

[fbconsole=9]
 0: Enable kernel logging on built-in display.
 1: Enable kernel logging on DP/HDMI/VGA.
 9: Or removed, disables kernel logging on any display.

[als_enable=0]
 1: Enable  Ambient Light Sensor.

[jc_rail_disable=0]
 1: Disable railed Joycon support.

[cec_disable=0]
 1: Disable auto DP/HDMI CEC negotiation.

[touch_skip_tuning=0]
 1: Disables touch panel tuning on boot.
 Some panels with broken flex cable might need it.

[bootargs_extra=]
 Set extra kernel command line arguments.

[dvfsb=0]
 1: Enable DVFS B-Side.
 Reduces power draw in order to use less battery for the same performance.
 Can also allow higher CPU/GPU clocks. If OC is used, the reduced power draw
 is negated.

[ram_oc=0]
 Set RAM Overclock frequency in KHz.
 If you hang or get corruption or artifacts, try to reduce it.

 On T210 (Erista max 1996 MHz):
  Only frequencies in the following list are supported:
   1728000, 1795200, 1862400, 1894400, 1932800, 1996800
  Suggested:
   - 1862400

 On T210B01 (Mariko max 2133 MHz):
  Any multiple of 38400 KHz can be used.
  Suggested:
   - 1866000
   - 2133000

================================================================================

======================== Reboot 2 Payload while Booted =========================

When already booted the above and more can be changed with the following
sysfs controls:

 /sys/devices/r2p/action:
  Like above. 'ums' is also supported which reboots to USB Mass Storage mode.

 /sys/devices/r2p/param1:
  Sets entry index to reboot to. If 'ums' is used at [action], it selects which
  drive to mount.

 /sys/devices/r2p/param2:
  If 'self' is used at [action], it enables re-booting into an entry
  from ini folder.

 /sys/devices/r2p/entry_id:
  If 'self' is used at [action], it reboots to the entry that has that id.
  Nintendo Switch (2017) only.

Examples:
 echo self > /sys/devices/r2p/action
 echo 2 > /sys/devices/r2p/param1
 echo 1 > /sys/devices/r2p/param2
 Will reboot to 2nd boot entry from the /bootloader/ini folder.
 The .ini files are parsed in ASCII order. Each entry they have are appended in
 order of show up.

 echo self > /sys/devices/r2p/action
 echo 3 > /sys/devices/r2p/param1
 echo 0 > /sys/devices/r2p/param2
 Will reboot to 3rd boot entry from /bootloader/hekate_ipl.ini.

 echo ums > /sys/devices/r2p/action
 echo 0 > /sys/devices/r2p/param1
 Will mount SD card to PC on reboot.
 0: SD Card.
 1: eMMC BOOT0.
 2: eMMC BOOT1.
 3: eMMC GPP.
 4: emuMMC BOOT0.
 5: emuMMC BOOT1.
 6: emuMMC GPP.

 echo bootloader > /sys/devices/r2p/action
 Will reboot to hekate menu.

 echo self > /sys/devices/r2p/action
 echo SWR-123 > /sys/devices/r2p/entry_id
 Will reboot to the config entry that has 'id=SWR-123'.

================================================================================
