...
The target operating system kernel is usually installed in mmcblk0p2
FAT32 partition ans uses a third partition mmcblk0p3
as non-volatile rootfs partition. However other partition layouts are possible for the target OS like customer specific partition layouts or Android-based multi partition layouts.
Booting Flash-N-Go System
Anchor | ||||
---|---|---|---|---|
|
There are two options of booting the device into Flash-N-Go System instead of booting the target OS. The first one is pressing down and holding the bootmode switch while the power supply is switched on. The location of the bootmode switch is shown in the following figure
...
Code Block |
---|
FLASH-N-GO:/# xconfig Usage: $0 [command] [options] Script to manipulate the XML-configuration data of GuF i.MX Boards inside the NAND Flash. xconfig expect one of the following commands to define its behavior: list show the current contents of the XML-configuration as obtained from NAND import import an external XML-configuration file into the NAND Flash addnode add a new (empty) XML node delnode delete XML node(s) and its/their children addattribute add a new or change an existing attribute delattribute delete an existing attribute If no command and option given xconfig will display its version and exit. Syntax: xconfig list [-v] [-p <path>] -v show whole (sub)tree instead of summary, the format is suitable to be used as input to "xconfig import" -s search for a specific pattern -l show long path syntax instead of xml --node filter result by node name, basic wildcards are allowed --attribute filter result by attribute name, basic wildcards are allowed format is either --attribute linux* matches all nodes that have an attribute starting with linux or --attribute key="value" matching nodes that have an attribute 'key' with the value 'value' -p <path> path to subtree, e.g.: -p /configurationFile/variables/setting[@key='enable_serialdiag] if omitted, the whole tree is shown xconfig import [-v] [-y] [-b] <file> -v be verbose -y assume yes - apply changes without user interaction <file> path to file to import -b deprecated - do not use xconfig addnode [-y] -p <path> -n <name> -y same as above -p <path> path to parent node -n <name> name of new node xconfig delnode [-y] -p <path> -y same as above -p <path> path to node xconfig addattribute [-y] -p <path> -n <attr-name> -v <value> -y same as above -p <path> path to parent node -n <attr-name> name of the attribute -v <value> new value of attribute xconfig delattribute [-y] -p <path> -n <attr-name> -y same as above -p <path> path to parent node -n <attr-name> name of the attribute xconfig listattributes -p <path> -p <path> path to node xconfig getattribute -p <path> -n <attr-name> -p <path> path to parent node -n <attr-name> name of the attribute |
Manual System Update
The manual system update considers a manual operating system (OS) installation via a console. The update process described here requires an Ethernet connection of the device to a development PC, either directly or via intranet. Also a TFTP-Server or HTTP-Server is required on the development PC. There are several, also free, TFTP-Servers and HTTP-Servers online available. Please make sure that the timeout settings of the TFTP-Server are set to 60 seconds at minimum. The installation of target OSes, and Flash-N-Go System and Flash-N-Go Boot should work via console one- or two-liners. All device partitioning, deployment actions should be done by shell scripts executed by the simple command. See Booting Flash-N-Go System
Accessing the target system via serial console
Before updating the target operating system we first need an access to the device. The easiest way to access the target is via the serial console. Simply connect the first RS-232 port of your target system with a COM port of your PC or a USB-to-RS-232 converter using a null modem cable. With the serial connection set up start your favorite terminal program (e.g. minicom or tera term) with the following settings:
115200 baud
8 data bits
no parity
1 stop bit
no hardware flow control
no software flow control
From the very first moment when the target is powered, you should see debug messages in the terminal if the standard configuration is set.