question

davep avatar image
davep asked

GX update shellscript specification in sw-description fails

Hello Everyone,

I'm new to the Victron GX device and am starting a journey to create some custom SW for it. I've been experimenting with delivering some dummy content to the device in the form of an update file and have hit a snag. The sw-description specification for my script seems to be bad, but according to any examples I can find, it looks correct:

sw-description:

software =
{
    venus-version = "20200906142058 v2.60";
    version = "0.1.0";
        files: (
                {
                        filename = "dummy.txt";
                        path = "/data/dummy.txt";
                }
        );
        scripts: (
                {
                        filename = "dummy.sh";
                        type = "shellscript";
                }
        );
}


I get the following error upon install:

2020-12-10 18:48:30.761547500 Version 0.1.0
2020-12-10 18:48:30.762287500 [NOTIFY] : SWUPDATE running :  [parse_scripts] : Found Script: dummy.sh
2020-12-10 18:48:30.763127500 
2020-12-10 18:48:30.763808500 [NOTIFY] : SWUPDATE running :  [parse_files] : Found File  : dummy.txt --> /data/dummy.txt (ROOTFS) 
2020-12-10 18:48:30.767148500 
2020-12-10 18:48:30.767420500 ERROR core/parser.c : parse : 95 : feature 'shellscript' required for script 'dummy.sh' in sw-description is absent!
2020-12-10 18:48:30.769409500 [NOTIFY] : SWUPDATE failed [0] ERROR core/parser.c : parse : 95 : feature 'shellscript' required for script 'dummy.sh' in sw-description is absent!
2020-12-10 18:48:30.775105500 ERROR core/swupdate.c : install_from_file : 311 : failed to parse sw-description!
2020-12-10 18:48:30.777870500 
2020-12-10 18:48:30.778062500 [NOTIFY] : SWUPDATE failed [0] ERROR core/swupdate.c : install_from_file : 311 : failed to parse sw-description!


I think I'm doing what it says is required. Any ideas?


Thanks.


firmware update
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

1 Answer
jeroen avatar image
jeroen answered ·

ok, you dare... Please don't do such things with a Color Control, you can completely brick it. (Well it can be restored, but involves moving SMD resistors and knowledge what to do). And please make sure you have a debug console..

That said, see https://github.com/victronenergy/meta-victronenergy/blob/master/meta-venus/recipes-support/swupdate/files/sunxi/defconfig#L60, that option is not enabled in normal builds. But you can enable it of course...

Regards,

Jeroen

6 comments
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

davep avatar image davep commented ·

Jeroen,

Thanks for the pointer. That error makes much more sense now.

So, I can simply ftp stuff over as I develop, but I was trying to think ahead to something more production suitable. If this is not a safe approach, is there a better or "best practice" way to accomplish delivery of add-on SW?

Thanks.

Dave

0 Likes 0 ·
Show more comments

Related Resources

Additional resources still need to be added for this topic