I tryed this method on 2S version 2.0.0-20210413.
make ARCH=arm64 tinker2_defconfig
Then I got ".config" file.
And It have line "CONFIG_USB_SERIAL_CH341=y".
Next step
make ARCH=arm64 rk3399-tinker_board_2.img -j24
I got these errors.
drivers/net/wireless/rockchip_wlan/rtl8822be/hal/phydm/halrf/rtl8822b/halrf_iqk_8822b.o
drivers/net/wireless/rockchip_wlan/rtl8822be/hal/phydm/halrf/rtl8822b/halrf_iqk_8822b.c: In function '_iqk_reload_iqk_setting_8822b':
drivers/net/wireless/rockchip_wlan/rtl8822be/hal/phydm/halrf/rtl8822b/halrf_iqk_8822b.c:449:14: warning: '~' on a boolean expression [-Wbool-operation]
error, forbidden warning:halrf_iqk_8822b.c:449
report = ~(p_iqk_info->IQK_fail_report[channel][path][idx]);
^
drivers/net/wireless/rockchip_wlan/rtl8822be/hal/phydm/halrf/rtl8822b/halrf_iqk_8822b.c:449:14: note: did you mean to use logical not?
report = ~(p_iqk_info->IQK_fail_report[channel][path][idx]);
^
!
drivers/net/wireless/rockchip_wlan/rtl8822be/hal/phydm/halrf/rtl8822b/halrf_iqk_8822b.c:453:14: warning: '~' on a boolean expression [-Wbool-operation]
error, forbidden warning:halrf_iqk_8822b.c:453
report = ~(p_iqk_info->IQK_fail_report[channel][path][idx]);
^
drivers/net/wireless/rockchip_wlan/rtl8822be/hal/phydm/halrf/rtl8822b/halrf_iqk_8822b.c:453:14: note: did you mean to use logical not?
report = ~(p_iqk_info->IQK_fail_report[channel][path][idx]);
^
!
make[6]: *** [scripts/Makefile.build:277: drivers/net/wireless/rockchip_wlan/rtl8822be/hal/phydm/halrf/rtl8822b/halrf_iqk_8822b.o] Error 1
make[5]: *** [scripts/Makefile.build:484: drivers/net/wireless/rockchip_wlan/rtl8822be] Error 2
make[5]: *** Waiting for unfinished jobs....
drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd/dhd_linux.c: In function 'dhd_ethtool':
drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd/dhd_linux.c:6965:39: warning: argument to 'sizeof' in 'strncpy' call is the same expression as the source; did you mean to use the size of the destination? [-Wsizeof-pointer-memaccess]
error, forbidden warning:dhd_linux.c:6965
strncpy(drvname, info.driver, sizeof(info.driver));
^
make[7]: *** [scripts/Makefile.build:277: drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd/dhd_linux.o] Error 1
make[7]: *** Waiting for unfinished jobs....
make[6]: *** [scripts/Makefile.build:484: drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd] Error 2
make[5]: *** [scripts/Makefile.build:484: drivers/net/wireless/rockchip_wlan/rkwifi] Error 2
make[4]: *** [scripts/Makefile.build:484: drivers/net/wireless/rockchip_wlan] Error 2
make[3]: *** [scripts/Makefile.build:484: drivers/net/wireless] Error 2
make[2]: *** [scripts/Makefile.build:484: drivers/net] Error 2
make[1]: *** [Makefile:1036: drivers] Error 2
How Can I build kernel ?