portapack-mayhem / mayhem-firmware

Custom firmware for the HackRF+PortaPack H1/H2
GNU General Public License v3.0
3.22k stars 530 forks source link

(Vote) Fine tune of sdcard structure and naming #1980

Open zxkmm opened 5 months ago

zxkmm commented 5 months ago

This is an ongoing fine-tune plan of #1967. We will do it after made out specific decisions and merged. You can click "Edit" button to add new options or edit current. (Regarding PRs #1967 & #1968, and earlier draft PRs #1953 & #1956)

way 0 (current)

(folders in bold below are included in downloaded SDcard image)

root: /ADSB /AIS /APPS /APRS /AUDIO /BLERX /BLETX /CAPTURES /DEBUG /FIRMWARE /FREQMAN /GPS /LOGS /LOOKINGGLASS /PLAYLIST /REMOTES /SAMPLES /SCREENSHOTS /SETTINGS /SPECTRUM /SPLASH /SSTV /WAV /WHIPCALC _PPTEST.DAT debug_log.txt splash.bmp

pros: users familiar with this organization; folder locations same for all firmware versions; wiki doesn't have to explain "if firmware version is >2.00 then the folder is located elsewhere"; SD card access is rather slow so this file organization may be slightly faster (fewest levels of directories to traverse).

cons: root dir looks extremely complicated; some folders include a mix of files that came from the original SD card image on the website plus files created later; when user unzips new SD card image there is a possibility of overwriting a changed file when merging

way 1 (u-foka)

root: /SYS /USR

pros: The logic is more clear

cons: User would not be able to easily update/upgrade blob files by simple delete and paste new one

way 2 (HTotoo)

root: /SYS /USR /FIRMWARE

pros:

cons:

way 3 (u-foka + spamnoob)

root: /RES /USR /BIN

pros: user can easily update/upgrade blob files by simple delete and paste new one

cons: root dir looks complicated

way 4 (spamnoob) (implementation of #1967 & #1968)

root: /RES /USR /APPS /FIRMWARE

pros: user can easily update/upgrade blob files by simple delete and paste new one

cons: root dir looks extremely complicated

way 5 (Gull)

root: /SYS /USR

htotoo commented 5 months ago

my vote: w2, or w4

NotherNgineer commented 5 months ago

Personally I like "SYS" better than "RES"

NotherNgineer commented 5 months ago

Regarding making SD Card content updates easier for the user, please also see my related suggestion #1996.

u-foka commented 5 months ago

Is there a difference between 1 and 5? :D

NotherNgineer commented 5 months ago

Also see another alternative in #2057 - configurable root folder