Difference between revisions of "IoTGateway/BSP/Linux/iMX8/FAQ"
From ESS-WIKI
(Created page with "== Running M4 demo application on i.MX8 == confirm imx8mq_m4_TCM_hello_world.bin in partition 1 connect mcu debug port u-boot command as below: boot from emmc fatload m...") |
|||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
+ | == Disable debug console == | ||
+ | |||
+ | For ROM-5720 , ROM-5620, ROM-7720 | ||
+ | |||
+ | *Step 1 | ||
+ | |||
+ | disable service as below: | ||
+ | |||
+ | systemctl disable serial-getty@ttymxc0.service | ||
+ | |||
+ | *Step 2 | ||
+ | |||
+ | Adjust "1" of SW1 to on. Then reboot. | ||
+ | |||
+ | |||
+ | |||
== Running M4 demo application on i.MX8 == | == Running M4 demo application on i.MX8 == | ||
− | confirm imx8mq_m4_TCM_hello_world.bin in partition 1 | + | confirm imx8mq_m4_TCM_hello_world.bin in partition 1 |
− | connect mcu debug port | + | connect mcu debug port |
u-boot command as below: | u-boot command as below: | ||
boot from emmc | boot from emmc | ||
+ | |||
fatload mmc 0:1 0x7e0000 imx8mq_m4_TCM_hello_world.bin | fatload mmc 0:1 0x7e0000 imx8mq_m4_TCM_hello_world.bin | ||
+ | |||
boot from sd | boot from sd | ||
+ | |||
fatload mmc 1:1 0x7e0000 imx8mq_m4_TCM_hello_world.bin | fatload mmc 1:1 0x7e0000 imx8mq_m4_TCM_hello_world.bin | ||
+ | |||
then | then | ||
+ | |||
bootaux 0x7e0000 | bootaux 0x7e0000 | ||
− | console will show | + | console will show "hello world" |
+ | |||
+ | == iMX8MQ Dual Display == | ||
+ | |||
+ | *Connect HDMI and MIPI to HDMI cable | ||
+ | |||
+ | setenv mmcargs setenv bootargs ${jh_clk} console=${console} modprobe.blacklist=${modprobe.blacklist} root=${mmcroot} | ||
+ | setenv fdt_file adv-imx8mq-rom5720-a1-dual-display.dtb | ||
+ | |||
+ | *Then weston will show on MIPI to HDMI | ||
+ | *Playback video on MIPI to HDMI | ||
+ | |||
+ | gst-launch-1.0 filesrc location=HDMI.mp4 ! qtdemux ! h264parse ! vpudec ! '''waylandsink''' | ||
+ | |||
+ | *Playback video on HDMI | ||
+ | |||
+ | gst-launch-1.0 filesrc location=HDMI.mp4 ! qtdemux ! h264parse ! vpudec ! '''kmssink''' | ||
+ | |||
+ | == ROM-5721 Cold reset setup == | ||
+ | If we want to setup cold reset, we have to pull high the MX8MM_IOMUXC_SAI1_RXFS_GPIO4_IO0(default is low). |
Latest revision as of 09:49, 26 August 2020
Contents
Disable debug console
For ROM-5720 , ROM-5620, ROM-7720
- Step 1
disable service as below:
systemctl disable serial-getty@ttymxc0.service
- Step 2
Adjust "1" of SW1 to on. Then reboot.
Running M4 demo application on i.MX8
confirm imx8mq_m4_TCM_hello_world.bin in partition 1
connect mcu debug port
u-boot command as below:
boot from emmc
fatload mmc 0:1 0x7e0000 imx8mq_m4_TCM_hello_world.bin
boot from sd
fatload mmc 1:1 0x7e0000 imx8mq_m4_TCM_hello_world.bin
then
bootaux 0x7e0000
console will show "hello world"
iMX8MQ Dual Display
- Connect HDMI and MIPI to HDMI cable
setenv mmcargs setenv bootargs ${jh_clk} console=${console} modprobe.blacklist=${modprobe.blacklist} root=${mmcroot} setenv fdt_file adv-imx8mq-rom5720-a1-dual-display.dtb
- Then weston will show on MIPI to HDMI
- Playback video on MIPI to HDMI
gst-launch-1.0 filesrc location=HDMI.mp4 ! qtdemux ! h264parse ! vpudec ! waylandsink
- Playback video on HDMI
gst-launch-1.0 filesrc location=HDMI.mp4 ! qtdemux ! h264parse ! vpudec ! kmssink
ROM-5721 Cold reset setup
If we want to setup cold reset, we have to pull high the MX8MM_IOMUXC_SAI1_RXFS_GPIO4_IO0(default is low).