Firefox for appium(Android) not running on linux

As mentioned https://github.com/appium/appium-geckodriver#usage that platform name should be either mac , linux , windows but while running on linux getting error
{"value":{"error":"invalid argument","message":"'platformName' linux not part of fake,android,ios,tvos,windows,mac,tizen","stacktrace":"InvalidArgumentError: 'platformName' linux not part of fake,android,ios,tvos,windows,mac,tizen\\n at processCapabilities (/usr/local/.browserstack/appium_1.20.2_bstack/node_modules/appium-base-driver/lib/basedriver/capabilities.js:220:13)\\n at parseCapsForInnerDriver (/usr/local/.browserstack/appium_1.20.2_bstack/lib/utils.js:116:21)\\n at AppiumDriver.createSession (/usr/local/.browserstack/appium_1.20.2_bstack/lib/appium.js:309:26)\\n at commandExecutor (/usr/local/.browserstack/appium_1.20.2_bstack/node_modules/appium-base-driver/lib/basedriver/driver.js:334:9)\\n at AppiumDriver.executeCommand (/usr/local/.browserstack/appium_1.20.2_bstack/node_modules/appium-base-driver/lib/basedriver/driver.js:348:15)\\n at AppiumDriver.executeCommand (/usr/local/.browserstack/appium_1.20.2_bstack/lib/appium.js:533:26)\\n at asyncHandler (/usr/local/.browserstack/appium_1.20.2_bstack/node_modules/appium-base-driver/lib/protocol/protocol.js:297:34)\\n at /usr/local/.browserstack/appium_1.20.2_bstack/node_modules/appium-base-driver/lib/protocol/protocol.js:423:15\\n at Layer.handle [as handle_request] (/usr/local/.browserstack/appium_1.20.2_bstack/node_modules/express/lib/router/layer.js:95:5)\\n at next (/usr/local/.browserstack/appium_1.20.2_bstack/node_modules/express/lib/router/route.js:137:13)\\n at Route.dispatch (/usr/local/.browserstack/appium_1.20.2_bstack/node_modules/express/lib/router/route.js:112:3)\\n at Layer.handle [as handle_request] (/usr/local/.browserstack/appium_1.20.2_bstack/node_modules/express/lib/router/layer.js:95:5)\\n at /usr/local/.browserstack/appium_1.20.2_bstack/node_modules/express/lib/router/index.js:281:22\\n at Function.process_params (/usr/local/.browserstack/appium_1.20.2_bstack/node_modules/express/lib/router/index.js:335:12)\\n at next (/usr/local/.browserstack/appium_1.20.2_bstack/node_modules/express/lib/router/index.js:275:10)\\n at logger (/usr/local/.browserstack/appium_1.20.2_bstack/node_modules/morgan/index.js:144:5)"}}
On diiging found that appium soucecode doesn’t include linux https://github.com/appium/appium/blob/a5c6f1c80e031679b16cea2d92fc45281223975f/lib/appium.js#L14
Have tried passing tizen and mac on linux just for sanity and they didn’t work.