@Steve Is there any particular reason for this: $ scp build/ovms3.bin mark@ev914.local:/sd/ovms3.new scp: size unacceptable: 1841760 Can we increase to allow firmware copies to SD? Regards, Mark.
Mark, Yes, that limit can definitely be made larger. It is just part of the code validating the command received from the scp client. I modeled that validation code after the scp code in openssh where the size validation was checking for the value to fit in off_t, but my mindset at the time was that only small files like scripts and configs would be transferred. I wasn't sure about an appropriate off_t definition in esp-idf. What size limit do you think would be appropriate? -- Steve On Sun, 25 Mar 2018, Mark Webb-Johnson wrote:
@Steve
Is there any particular reason for this:
$ scp build/ovms3.bin mark@ev914.local:/sd/ovms3.new scp: size unacceptable: 1841760
Can we increase to allow firmware copies to SD?
Regards, Mark.
I can’t imagine sending anything much bigger than flash images to the SD card. Those are around 4MB maximum. Perhaps CAN bus dumps? But those would more likely be downloaded, not uploaded. How about setting it to 10MB for the moment? Regards, Mark
On 25 Mar 2018, at 11:56 PM, Stephen Casner <casner@acm.org> wrote:
Mark,
Yes, that limit can definitely be made larger. It is just part of the code validating the command received from the scp client. I modeled that validation code after the scp code in openssh where the size validation was checking for the value to fit in off_t, but my mindset at the time was that only small files like scripts and configs would be transferred. I wasn't sure about an appropriate off_t definition in esp-idf.
What size limit do you think would be appropriate?
-- Steve
On Sun, 25 Mar 2018, Mark Webb-Johnson wrote:
@Steve
Is there any particular reason for this:
$ scp build/ovms3.bin mark@ev914.local:/sd/ovms3.new scp: size unacceptable: 1841760
Can we increase to allow firmware copies to SD?
Regards, Mark.
OvmsDev mailing list OvmsDev@lists.teslaclub.hk http://lists.teslaclub.hk/mailman/listinfo/ovmsdev
Done. On Mon, 26 Mar 2018, Mark Webb-Johnson wrote:
I can't imagine sending anything much bigger than flash images to the SD card. Those are around 4MB maximum. Perhaps CAN bus dumps? But those would more likely be downloaded, not uploaded.
How about setting it to 10MB for the moment?
Regards, Mark
On 25 Mar 2018, at 11:56 PM, Stephen Casner <casner@acm.org> wrote:
Mark,
Yes, that limit can definitely be made larger. It is just part of the code validating the command received from the scp client. I modeled that validation code after the scp code in openssh where the size validation was checking for the value to fit in off_t, but my mindset at the time was that only small files like scripts and configs would be transferred. I wasn't sure about an appropriate off_t definition in esp-idf.
What size limit do you think would be appropriate?
-- Steve
On Sun, 25 Mar 2018, Mark Webb-Johnson wrote:
@Steve
Is there any particular reason for this:
$ scp build/ovms3.bin mark@ev914.local:/sd/ovms3.new scp: size unacceptable: 1841760
Can we increase to allow firmware copies to SD?
Regards, Mark.
OvmsDev mailing list OvmsDev@lists.teslaclub.hk http://lists.teslaclub.hk/mailman/listinfo/ovmsdev
_______________________________________________ OvmsDev mailing list OvmsDev@lists.teslaclub.hk http://lists.teslaclub.hk/mailman/listinfo/ovmsdev
participants (2)
-
Mark Webb-Johnson -
Stephen Casner