Boot Process
This boot process is universal to all PROXmobil3 units as best we can tell with existing data.
- U-Boot starts from the 16 MB SPI flash (
mtd0). It is2018.03-INIT-004, built in March 2019. Itsbootcmdrunssdboot, thenfailover, thensdbootagain, thenpanicboot. - U-Boot loads the kernel and DTB from
sda1:/bootor from the SPI copy. The.oldkernel and DTB are the rollback path. The kernel command line isroot=/dev/sda1 ro rootfstype=ext4 rootwait cma=128M. - The root filesystem mounts read-only at
/. systemd is PID 1. init.mountmounts the partition labelledinitat/init, using/dev/disk/by-label/init. The label cannot be changed. The mount unit has the normal 90-second timeout; if the init partition is missing, the boot does not complete.init-rc.serviceruns/init/tools/initexec.sh startup. If thestartupargument is missing, the script prints its usage and exits.initexec.shsources/init/tools/initenv.shif it exists, which can set environment variables and aliases. It exportsINIT_ROOT=/init,NX_EXE=NxExe, andREBOOT_FLAG, and creates the runtime directories. It reads the distribution channel fromefad/pgm/env.ini(VertriebsWeg=72by default).- It calls
do_startup, which installs any pending archives from/init/install/archive. It processes theX72/x72files in name order, skips downgrades againstBaseVersioninefad/pgm/arcinfo.dat, skips archives that already have a log, runs each_install.sh, and keeps the log on success. The stock log line has a typo:installed archvie. - If
/init/tmp/reboot.flgexists, it removes the flag and reboots. - It runs every executable in
/init/autorun/in filename order. The stock scripts are:10-eeprom.shreads the mounting-plate or dongle EEPROM into/tmp/eeprom.dat.20-ext-sdcard.shmounts the external SD/USB at/init/efad/mp_sd.90-testmode.shstops nx, disables the PIC32 watchdog, extracts the[TestMode]block from/tmp/eeprom.dat, and runs it as a shell script.99-devmode.shstops nx and disables the watchdog ifNxProxis missing.
initexec.shprintsStartup completed. The autorun scripts themselves do not launchNxProx.NxProxis a systemd service.init-abtproxy.serviceis enabled on the stock image;nx.serviceis enabled or started by the unit configuration. If enabled, nx starts afterinit-rc.service.
nx.service has FailureAction=poweroff. If nx is stopped or crashes in the wrong way, the unit can power off. If you are working on the unit, disable the PIC32 watchdog in the same step you stop nx:
systemctl stop nx init-abtproxy NxExe watchdog 0
The PIC32 watchdog is external to the SoC. It power-cycles the unit about 60 seconds after boot unless something feeds it. nx normally feeds it.
The init sequence is easy to change on purpose. Edit initexec.sh, or drop a script into /init/autorun/. The supported way to do that without opening the case is the [TestMode] dongle payload or an autorun script on the init SD card.
Serial console
The U-Boot and kernel console is ttymxc1 on the four-pin ARMcons header. Settings are 115200 8N1. Interrupt U-Boot there if you need the bootloader prompt.
