I added a new mipi panel on imx8mini platform and it had some problem

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

I added a new mipi panel on imx8mini platform and it had some problem

929 Views
tangyuan
Contributor III

 HI,

     I added a new mipi panel on imx8mini,then it had some problem

     My step is as follows:

     I created a new dts file: fsl-imx8mm-evk-jd9365.dts

     I modified the Boardconfig.mk as follows:

    #TARGET_BOARD_DTS_CONFIG += imx8mm-mipi-panel:fsl-imx8mm-evk-rm67191.dtb
TARGET_BOARD_DTS_CONFIG += imx8mm-mipi-panel:fsl-imx8mm-evk-jd9365.dtb

   When i compiled ,it reported some information as follows:

   

     make[1]: Leaving directory '/home/linux/android_build/android_build/out/target/product/evk_8mm/obj/KERNEL_OBJ'
make: Leaving directory '/home/linux/android_build/android_build/vendor/nxp-opensource/kernel_imx'
create image file: out/target/product/evk_8mm/dtbo-imx8mm.img...
Total 1 entries.
Can not read file: out/target/product/evk_8mm/obj/KERNEL_OBJ/arch/arm64/boot/dts/freescale/fsl-imx8mm-evk-jd9365.dtb
create image file: out/target/product/evk_8mm/dtbo-imx8mm-mipi-panel.img...
Traceback (most recent call last):
File "out/host/linux-x86/bin/avbtool", line 4154, in <module>
tool.run(sys.argv)
File "out/host/linux-x86/bin/avbtool", line 4004, in run
args.func(args)
File "out/host/linux-x86/bin/avbtool", line 4061, in add_hash_footer
args.do_not_use_ab)
File "out/host/linux-x86/bin/avbtool", line 2855, in add_hash_footer
image = ImageHandler(image_filename)
File "out/host/linux-x86/bin/avbtool", line 658, in __init__
self._read_header()
File "out/host/linux-x86/bin/avbtool", line 680, in _read_header
_) = struct.unpack(self.HEADER_FORMAT, header_bin)
struct.error: unpack requires a string argument of length 28
create image file: out/target/product/evk_8mm/dtbo-imx8mm-m4.img...
Total 1 entries.
create image file: out/target/product/evk_8mm/dtbo-imx8mm-ddr4.img...
Total 1 entries.
[ 74% 40/54] build out/target/product/evk_8mm/dtbo.img
[ 75% 41/54] Building arm64 2018.03 U-Boot ...
make: Entering directory '/home/linux/android_build/android_build/vendor/nxp-opensource/uboot-imx'
make: Leaving directory '/home/linux/android_build/android_build/vendor/nxp-opensource/uboot-imx'

    

It reported :Can not read file: out/target/product/evk_8mm/obj/KERNEL_OBJ/arch/arm64/boot/dts/freescale/fsl-imx8mm-evk-jd9365.dtb

When i download the image to my board,it was unnormal

linux@ubuntu:~/mipi$ sudo ./uuu_imx_android_flash.sh -f imx8mm -a -e -d mipi-panel
[sudo] password for linux:
This script is validated with uuu 1.2.135 version, please align with this version.
dtbo is supported
dual slot is supported
generate lines to flash u-boot-imx8mm.imx to the partition of bootloader0
generate lines to flash partition-table.img to the partition of gpt
generate lines to flash dtbo-imx8mm-mipi-panel.img to the partition of dtbo_a
generate lines to flash boot.img to the partition of boot_a
generate lines to flash system.img to the partition of system_a
generate lines to flash vendor.img to the partition of vendor_a
generate lines to flash vbmeta-imx8mm-mipi-panel.img to the partition of vbmeta_a
uuu script generated, start to invoke uuu with the generated uuu script
uuu (Universal Update Utility) for nxp imx chips -- libuuu_1.2.135-0-gacaf035

Wait for Known USB Device Appear...
Error: fail open file: >/tmp/dtbo-imx8mm-mipi-panel.img

Labels (1)
0 Kudos
1 Reply

881 Views
igorpadykov
NXP Employee
NXP Employee

Hi tang

for yocto/dts customizations one can refer to

https://boundarydevices.com/mx6-device-tree-customization/ 

Yocto Training - HOME 

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------