I ran into this, mavlink bindings appeared only in new firmware versions. Check if there are fields singleton mavlink manual init lua_mavlink_init 2 .... in the bindings file
Bindings are located in libraries/AP_Scripting/generator/description/bindings.desc