Packages

Nerves System - Khadas VIM3 (Amlogic A311D)

Current section

Files

Jump to
nerves_system_vim3 rootfs_overlay etc erlinit.config
Raw

rootfs_overlay/etc/erlinit.config

its point to # NOTE: VIM3 uses mmcblk0 for SD card (mmcblk2 for eMMC)
# MBR Partition Layout:
# Partition 0: Boot (FAT32)
# Partition 1: RootFS A (squashfs, active)
# Partition 2: RootFS B (squashfs, upgrade slot)
# Partition 3: Application data (f2fs)
# Erlinit configuration for VIM3
# Specify the UART port for the console
-c ttyAML0
# If more than one tty are available, always warn if the user is looking at the wrong one.
--warn-unused-tty
# Use nbtty to improve terminal handling on serial ports.
-s "/usr/bin/nbtty"
# Enable UTF-8 filename handling in Erlang and custom inet configuration
-e LANG=en_US.UTF-8;LANGUAGE=en;ERL_INETRC=/etc/erl_inetrc;ELIXIR_ERL_OPTIONS=+fnu
# Enable crash dumps
-e ERL_CRASH_DUMP=/root/erl_crash.dump;ERL_CRASH_DUMP_SECONDS=5
# Mount the application partition (run "man fstab" for field names)
-m /dev/mmcblk0p1:/boot:vfat:ro,nodev,noexec,nosuid:
# /data partition is auto-formatted and mounted by nerves_runtime
-m pstore:/sys/fs/pstore:pstore:nodev,noexec,nosuid:
-m tmpfs:/sys/fs/cgroup:tmpfs:nodev,noexec,nosuid:mode=755,size=1024k
-m cpu:/sys/fs/cgroup/cpu:cgroup:nodev,noexec,nosuid:cpu
-m memory:/sys/fs/cgroup/memory:cgroup:nodev,noexec,nosuid:memory
# Erlang release search path
-r /srv/erlang
# Assign a hostname using boardid (will be overridden by application config if provided)
# Hostname will be set by application or default to nerves-XXXX
# If using shoehorn, start the shoehorn OTP release up first
--boot shoehorn