BalenaFin Coprosessor Flash index.js error

Hi,
i manged to build docker image for balena-fin-flash-coprocessor. But when running docker
i get error:

root@raspberrypi:/home/pi# docker run flash
/usr/src/app/node_modules/node-gtk/lib/index.js:489
GI.Repository_require.call(repo, ns, version || null, 0)
^
Error: Typelib file for namespace ‘Fin’, version ‘0.1’ not found
at Object.giRequire [as require] (/usr/src/app/node_modules/node-gtk/lib/index.js:489:27)
at Object. (/usr/src/app/index.js:5:10)
at Module._compile (internal/modules/cjs/loader.js:1137:30)
at Object.Module._extensions…js (internal/modules/cjs/loader.js:1157:10)
at Module.load (internal/modules/cjs/loader.js:985:32)
at Function.Module._load (internal/modules/cjs/loader.js:878:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12)
at internal/main/run_main_module.js:17:47

Hello,

the balena-fin-flash-coprocessor is a balena application and you should push this project to your balena application for your fin.

before that you should already have your firmware in hex format at balena-fin-flash-coprocessor/co-processor/app/firmware/ replacing YOUR_FIRMWARE.hex

Follow our Node.js getting started guide for instructions on how to deploy a nodejs based balena application such as balena-fin-flash-coprocessor

Hope this is helpful

Hi,
I am using rabian fin lite image on balena fin. So is it possible to use rasbian and build images on docker and run them? If that is not possible i have to use manual flashing with jtagger right? Is there step by step instructions how to that?
-Olli

Hey @haikaol

my bad for assuming you were running balenaOS. I’ve asked my colleague to provide more details on how to do this on raspbian and will get back to you

Hi @haikaol,

I’m looking into this for you, it seems to be an issue with the node module we use for identifying which version of the balenaFin you are using.