Andriod 13 GKI new symbol exporting issue

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

Andriod 13 GKI new symbol exporting issue

168 Views
Lincoln_Dessen
Contributor II

Hi,

Currently I'm working on imx8qm MEK with Android Auto 13, linux kernel version is v6.1.25.

I am trying to load a kernel module for my Realtek BT USB dongle. After running insmod command, i receive error messages like this:

$ insmod rtk_btusb.ko

[  635.150717] rtk_btusb: Unknown symbol usb_disable_autosuspend (err -2)
[  635.158276] rtk_btusb: Unknown symbol filp_open (err -2)
[  635.164380] rtk_btusb: Unknown symbol kernel_read (err -2)
[  635.170689] rtk_btusb: Unknown symbol usb_interrupt_msg (err -2)

I have checked that corresponding libraries are included and both of my kernel module as well as the kernel APIs are declared under GPL license.

Since realizing that those four unknown symbols aren’t listed in android/abi_gki_aarch64.stg, I start trying to exporting there symbols.

I follow the instructions in Android user guide 9.4 chapter and download the source from https://android.googlesource.com/kernel/manifest. However, i cannot find both build/build_abi.sh and android/abi_gki_aarch64.xml.

Could you provide more details on how to export new GKI symbols?

0 Kudos
Reply
2 Replies

145 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport
0 Kudos
Reply

143 Views
Lincoln_Dessen
Contributor II

Hi @Zhiming_Liu,

Thank you for replying! I have followed the link you provided, but then encounter some problems.

 

Firstly, unknown symbol issue still exist after I update both gki files (android/abi_gki_aarch64_imx and android/abi_gki_aarch64.stg).

rtk_btusb: Unknown symbol usb_disable_autosuspend (err -2)
rtk_btusb: Unknown symbol usb_interrupt_msg (err -2)

Note: I have removed filp_open and kernel_read from my kernel module.

 

What I do is updating both imx and kernel symbol list, and then build the image locally:

tools/bazel run //common:imx_abi_update_symbol_list
tools/bazel run @//common:kernel_aarch64_abi_update_protected_exports
tools/bazel run //common:kernel_aarch64_abi_update

After that, I copy these files from gki folder to my AOSP folder:

boot.img
system_dlkm.img
android/abi_gki_aarch64_imx
android/abi_gki_aarch64.stg

 

Again, unknown symbol issue remains the same. Did I miss something during the process?

0 Kudos
Reply