And I took the config files such as package.conf, platform.conf in the $UPGRADE_DIR/Amlogic of output of fenix build and updated with my uboot, dtb and rootfs.
When I use the flash tool https://github.com/khadas/utils to run the flashage. I have some errors before the step “Create partitions” (after OK of step “Running u-boot”).
[LUSB]BL2 END, waiting TPL plug-in...
........[OK]
Command output: AmlUsbBulkCmd[ echo 12345]
AM_REQ_BULK_CMD_Handler ret=-110,blkcmd= echo 12345 error_msg=error sending control message: Connection timed out
[AmlUsbRom]Err:rettemp = 0 buffer = [ echo 12345]
ERR: AmlUsbBulkCmd failed!
Command output: file size is 0x13386
AmlUsbTplCmd = download mem dtb normal 0x13386 IOCTL_TPL_CMD_Handler ret=-110,tpl_cmd=download mem dtb normal 0x13386 error_msg=error sending control message: Connection timed out
rettemp = 0 buffer = download mem dtb normal 0x13386
Create partitions
run_update_assert1
Command output: AmlUsbBulkCmd[ disk_initial 1]
AM_REQ_BULK_CMD_Handler ret=-110,blkcmd= disk_initial 1 error_msg=error sending control message: Connection timed out
[AmlUsbRom]Err:rettemp = 0 buffer = [ disk_initial 1]
ERR: AmlUsbBulkCmd failed!
[KO]
I think I made some errors on amlogic pakcaging config like package.conf, platform.conf, or I did not notice some details.
I did not found documentation about it. Do you have any idea or documentation about creating/pakcaging image? Thanks a lot.
Thanks @numbqq, I was already doing this and then got errors as shown in my post. I have replaced my own uboot.bin and replaced kvim3.dtb by my own dtb file meson-g12b-a311d-khadas-vim3.dtb (the “printenv fdtfile” in my uboot). Regarding the mainline kernel, are the config of package.conf and plateform.conf different? (or any info/doc about how I should modify them?)
OK, for this version USB_Burning_Tool in Windows does not work either? I have also an error.
There is a mainline version uboot 2024.10 in fenix project, for this option, how can we flash it in emmc without entering in a SD card OS?
Is emmc-install used to flash the whole current image of the SD card to the eMMC? However, can it flash an external image file (e.g., a .img file stored on the SD card) to the eMMC?
Do we have access to the source code for this program to make it integrable with other OS?
As the aml flash tool does not work for mainline u-boot, I flashed image which has boot and rootfs partitions directly into /dev/mmcblk0. (I did not pack it using aml_image_v2_packer).
After flashing my image, the new u-boot only works for the first boot, after a reboot, it reverts to using the old Fenix u-boot.
If using the U-Boot console to write the new u-boot, it can work after reboots.
kvim3#fatload mmc 0:1 0x1080000 u-boot.bin.mmc.bin
reading u-boot.bin.mmc.bin
1654128 bytes read in 96 ms (16.4 MiB/s)