Fan not working on soft reboot VIM3 - Android

Which system do you use? Android, Ubuntu, OOWOW or others?

Android 9

Which version of system do you use? Please provide the version of the system here:

Tested on build 251202 and 241023

Please describe your issue below:

On system equipped with a fan (official Khadas one), after a soft reboot (adb reboot), the fan does not work. It looks like the fan subsystem does not initialise (if you go in the fan settings, only 3 level of fan speed are shown instead of 5 and none are working).

It looks like during soft boot, U-boot, the bootloader, doesn’t query the MCU for hardware version - it passes an empty hwver= parameter. My guess is that the fan driver sees hwver: and skips fan initialization because as it thinks it’s running on hardware without a fan.

Post a console log of your issue below:

Soft Reboot:
[ 0.000000] Kernel command line: init=/init console=ttyS0,115200 no_console_suspend earlycon=aml-uart,0xff803000 ramoops.pstore_en=1 ramoops.record_size=0x8000 ramoops.console_size=0x4000 hdr_policy=1 hdr_priority= otg_device=1 reboot_mode_android=normal logo=osd0,loaded,0x3d800000 fb_width=1080 fb_height=1920 vout2=panel,enable vout=panel,enable panel_type=lcd_3 lcd_ctrl=0x00000083 hdmitx=,444,8bit hdmimode=1080p60hz nativeui=disable hdmichecksum=0x00000000 dolby_vision_on=0 frac_rate_policy=1 hdmi_read_edid=1 cvbsmode=576cvbs osd_reverse=0 video_reverse=0 irq_check_en=0 androidboot.selinux=permissive androidboot.firstboot=0 jtag=disable wol_enable= spi_state=0 fusb302_state=1 hwver= factory_mac=[REDACTED] factory_mcu_mac=0 lcd_exist=1 ext_board_exist=0 m2x_board_exist=0 androidboot.hardware=amlogic androidboot.bootloader=U-Boot 2015.01-g541eb6c-dirty androidboot.build.expect.baseband=N/A androidboot.serialno=[REDACTED] mac=[REDACTED] androidboot.mac=[REDACTED] k

Hard Reboot

[ 0.000000] Kernel command line: init=/init console=ttyS0,115200 no_console_suspend earlycon=aml-uart,0xff803000 ramoops.pstore_en=1 ramoops.record_size=0x8000 ramoops.console_size=0x4000 hdr_policy=1 hdr_priority= otg_device=1 reboot_mode_android=normal logo=osd0,loaded,0x3d800000 fb_width=1080 fb_height=1920 vout2=panel,enable vout=panel,enable panel_type=lcd_3 lcd_ctrl=0x00000083 hdmitx=,444,8bit hdmimode=1080p60hz nativeui=disable hdmichecksum=0x00000000 dolby_vision_on=0 frac_rate_policy=1 hdmi_read_edid=1 cvbsmode=576cvbs osd_reverse=0 video_reverse=0 irq_check_en=0 androidboot.selinux=permissive androidboot.firstboot=0 jtag=disable wol_enable=0 spi_state=0 fusb302_state=1 hwver=VIM3.V11 factory_mac=[REDACTED] factory_mcu_mac=0 lcd_exist=1 ext_board_exist=0 m2x_board_exist=0 androidboot.hardware=amlogic androidboot.bootloader=U-Boot 2015.01-g541eb6c-dirty androidboot.build.expect.baseband=N/A androidboot.serialno=[REDACTED] mac=[REDACTED] androidboot.mac=[REDACTED]