If use m5stack and lora board, what firmware should choose?
The module used by the LoRa868, Ra-01H is not supported by pre built environments. You would have to build your own environment after verification that this module is supported by the underlining library you want to use (RadioLib for example).
Also if you decide to go this route, verify that the module pin assignments are compatible with the library or example as I have a doubt about this.
Is this lora module v1.2 supported by pre built environments?