./rzx2l-loader.py -p <serial port> -l <loader> --image <boot image>
where: - path to serial port, i.e. /dev/ttyUSB0 - path to loader file in motorola S-record format - path to emmc boot partition image file in binary format
example usage:
./rzx2l-loader.py -p /dev/ttyUSB0 -l Flash_Writer_SCIF_VSOM_G2L_1GB_DDR4_1GB_1PCS.mot --image boot.img
In order to run this tool, "pySerial" module is needed. It can be installed with command:
pip3 install --user pyserial
For proper operation, it is necessary to use flash writer binary compiled from: https://github.com/SoMLabs/rzg2_flash_writer
Recommended build option for optimal performance:
CROSS_COMPILE=aarch64-none-linux-gnu- make -f makefile.linaro BOARD=VSOM_V2L_1GB SERIAL_FLASH=DISABLE MEM_CMD=DISABLE MEM_TEST_CMD=DISABLE EMMC_DISP=DISABLE
CROSS_COMPILE=aarch64-none-linux-gnu- make -f makefile.linaro BOARD=VSOM_G2L_1GB SERIAL_FLASH=DISABLE MEM_CMD=DISABLE MEM_TEST_CMD=DISABLE EMMC_DISP=DISABLE
Renesas RZ/X2L boot room expects following eMMC boot partition content:
-----------------------------
| sectors | content |
-----------------------------
| 0 | unused |
| 1..x | bl2_bp |
| 256..x | fip.bin |
-----------------------------
This can be generated i.e. with commands:
dd if=bl2_bp.bin of=boot.img seek=1 bs=512
dd if=fip.bin of=boot.img seek=256 bs=512