Flash Debian Images from Network¶
Flashing a Complete Debian System from Network Using TFTP and NFS¶
Notes:
- Make sure your host system is ready to use TFTP/NFS. Use Debian Setup TFTP/NFS if required.
- This is a concept guide. Adapt paths and network settings to your system.
Build a Minimal File System¶
Set up the build environment as described in Build Debian from source code.
Build the image:
Create the root filesystem directory and copy the files:
mkdir ~/flash_rootfs
sudo tar xf [...]/flexbuild/build_lsdk2412/images/rootfs_lsdk2412_debian_desktop_arm32.tar.zst -C ~/flash_rootfs
sudo cp -a ~/flash_rootfs/boot/*.dtb* /tftpboot
sudo cp ~/flash_rootfs/boot/zImage /tftpboot
Edit /etc/exports, for example:
Add the following line, replacing <uname> with the actual username:
Restart the NFS server:
Boot the board, stop the autoboot to get to the U-Boot command line, and set the following environment variables:
To set the device tree manually instead of using automatic detection:
Boot from the network:
On the target, flash Debian to the SOM internal storage:
Once the file system is built, you can reuse it to flash additional
VAR-SOM-MX7 devices. You can also update the images or customize
install_debian.sh for your requirements.