Editing FS files?

More
19 Feb 2018 15:07 #67588 by Quell
Editing FS files? was created by Quell
After I edit a fs file with python, just removing the ; to enable the NRF24L01, when I save the file it changes the size to 159kb no way that fs file will load.

Please Log in or Create an account to join the conversation.

More
19 Feb 2018 15:31 #67589 by vlad_vy

Please Log in or Create an account to join the conversation.

More
19 Feb 2018 19:17 #67591 by Quell
Replied by Quell on topic Editing FS files?
when i open the biuldfs aplication it flashes the black box on the screen then cuts off like flash then gone.
how do i use the python code that phractured blue put on the misc. downloads for editing fs ?
im new to python and computer programming.

i can program , ive done it for years on CNC equipmet but that was G codes and M codes.
sorry to bother you pros with stupid questions but im almost there...

Please Log in or Create an account to join the conversation.

More
19 Feb 2018 20:32 - 19 Feb 2018 20:51 #67592 by Schugy
Replied by Schugy on topic Editing FS files?
This tool is a command line tool and isn't made for use with a graphical file manager. Use xterm, gterm, konsole or any other preferred terminal emulator.

Get buildfs.py first:

:~$ wget raw.githubusercontent.com/DeviationTX/de...ms/devofs/buildfs.py
:~$ md5sum buildfs.py
759d7f5ef9e075b6c2c1566fd7d8e35b buildfs.py

Here is an example:

:~$ mkdir devofs-test4Quell
:~$ cd devofs-test4Quell/
:~/devofs-test4Quell$ cp ~/devo.fs/
:~/devofs-test4Quell$ cp ~/devo.fs/devo.fs-20171219 ./
:~/devofs-test4Quell$ cp ~/devo.fs/buildfs.py ./
:~/devofs-test4Quell$ mkdir devo.fs-20171219-extraction-dir
:~/devofs-test4Quell$ python buildfs.py --fs devo.fs-20171219 --dir devo.fs-20171219-extraction-dir --extract
Warning: Spoiler! [ Click to expand ]


:~/devofs-test4Quell$ python buildfs.py --fs devo.fs-20171219-recreated4Quell --dir devo.fs-20171219-extraction-dir --create
Filesystem will use 50kB of 64kB filesystem

:~/devofs-test4Quell$ md5sum devo.fs-2017121*
4f4de1a9c7780827a128e4595d77178d devo.fs-20171219
4f4de1a9c7780827a128e4595d77178d devo.fs-20171219-recreated4Quell
Last edit: 19 Feb 2018 20:51 by Schugy.

Please Log in or Create an account to join the conversation.

More
19 Feb 2018 22:12 #67594 by Quell
Replied by Quell on topic Editing FS files?
i have the python shell= Python 2.7.14 (v2.7.14:84471935ed, Sep 16 2017, 20:19:30) [MSC v.1500 32 bit (Intel)] on win32
will that work as a terminal emulator, or notepad++, there are 2 python, python command line and IDLE python GUI.

i copy and paste the buildfs.py link you sent me but nothing works I dont know where to use it?
the examples you sent have my head spinning, i can see your putting effort in to help me but im to dumb to use it!

how about fs files for dummies

Please Log in or Create an account to join the conversation.

More
19 Feb 2018 22:31 #67596 by Schugy
Replied by Schugy on topic Editing FS files?
In Windows just use buildfs.exe in cmd.

Please Log in or Create an account to join the conversation.

More
19 Feb 2018 22:45 - 19 Feb 2018 22:49 #67598 by Quell
Replied by Quell on topic Editing FS files?
I try buildfs.exe with the command line Ines for c: devo\devo.fs-- dir c: on and on just like posted and I get
Buildfs. Exe is not recognized as a internal or external command,
Operable program or batch file

That in command prompt
Last edit: 19 Feb 2018 22:49 by Quell. Reason: Spell check additional letters

Please Log in or Create an account to join the conversation.

More
19 Feb 2018 23:37 #67600 by Schugy
Replied by Schugy on topic Editing FS files?
Create a subdirectory for the extracted file system. You can do it with the explorer.
Then type something like
c:\home\quell\downloads\buildfs.exe --fs c:\devo\devo.fs --dir c:\devo\subdirectoryname -x

Please Log in or Create an account to join the conversation.

More
19 Feb 2018 23:43 #67601 by Quell
Replied by Quell on topic Editing FS files?
I'm in cmd and changing to windows then CD to my devo file I have C: \devo>
The devo file contains buildfs. Exe so I'm getting there

Please Log in or Create an account to join the conversation.

More
20 Feb 2018 03:11 #67604 by Quell
Replied by Quell on topic Editing FS files?
ok i can manualy put a fs file in my FDDESTINATION folder thats in a devo folder, with buildfs inside the devo folder also.

i can run the command line in CMD with the -x on the end and it just runs 1 second and then brings up another command start.

when i run the same command line with the -c on the end it runs for a second then says filesystem size:65552 is to large for 64k file system, so its trying!

When i run the command line with the -c on the end but no file in the FSDESTINATION folder. IT runs and says Filesystem will use 0kb of 64kb filesystem.
Soooo something is getting through, what am I doing wrong

Please Log in or Create an account to join the conversation.

More
20 Feb 2018 04:02 #67607 by Quell
Replied by Quell on topic Editing FS files?
If my radio uses the F:\ USB port to communicate to the computer so what would the command line look like to load to and from the radio with the buildfs program
I read that this may help with the fs files being slightly over 64 when transferred back and forth.

Please Log in or Create an account to join the conversation.

More
20 Feb 2018 13:18 #67628 by Quell
Replied by Quell on topic Editing FS files?
YES, everything in the devo.fs is unpacked from the radio and in my fsdestination folder.
This morning I decided to try the build fs command lines to/from the radio directly and its working.

now I just have to figure out how to add and remove Protocols and models and stuff, maybe just swap out the folders and then repack it?

getting there, thanks, everyone!

Please Log in or Create an account to join the conversation.

More
20 Feb 2018 18:31 #67638 by Schugy
Replied by Schugy on topic Editing FS files?
Don't add too many protocols and models, 64kb are not that much and also model.ini-files with complex mixers can become 2kb in size. When the file system is full your transmitter will not be able to save the changes. I'm glad you have found out how to use buildfs.exe.

Please Log in or Create an account to join the conversation.

More
20 Feb 2018 21:00 #67640 by Quell
Replied by Quell on topic Editing FS files?
Thanks for the advice Schuyler, I even deleted some of the models I only have 2 drones right now and all my old airplane stuff is still on the Old Airtronics 8ch 72Mhz frequency radio.
If I ever want a plane to fly I can get a new receiver for them, once I get more than 4 or 5 models I can put in the expanded memory chip I got 2 incase I screw up on one.
I spent about 2 hours putting in my NRF24L01 and it worked on my the first try on my Bayangtoys drones, they're all over the place right now but they bind and function I just have to tune it all in and set up the switches. YES, YIPPEE!

Funny thing is that 64k limit, my fist computer was a Vic 20 then I thought it was huge to be able to get the Commodore 64!
Now it's not enough for some people to fly Rc with....

Please Log in or Create an account to join the conversation.

Time to create page: 0.059 seconds
Powered by Kunena Forum