Commit Graph

12 Commits

Author SHA1 Message Date
Apaczer
bb60713390 [FIRSTBOOT] add safet_shutdown() with log_firstboot.txt
- increase sleep time before shutdown
- show unallocated space left in MB
- dry a bit code
2023-08-08 22:25:48 +02:00
Apaczer
40099a142e [FIRSTBOOT/MAIN] refactor fatresize -s max / LOGs
*) FIRSTBOOT:
- calculate manually "size=max" of MAIN partition (workaround for know bug in libparted ``max_size`` class)
- add debug: write LOG to /mnt/log_firstboot.txt
- ditch "/boot/resize" file method

*)MAIN
- add debug: write LOGS to /mnt/log.txt
- cleanup & use tabs for indendent
- use ${HOME} variable often

*) GENIMAGE
- rm "resize" file (no use)
2023-08-08 21:39:41 +02:00
Apaczer
5dfa1275ab [BOARD] use gmenu2x configs from package output 2023-07-25 21:32:42 +02:00
Apaczer
93546f9f29 [BOARD/README] Firstboot flashing_procedure-v2 (#42)
* [FIRSTBOOT] refactor code:
 -auto-detect all possible variants in firstboot
- DRY script code
- add $RESIZE_COMMENCED , $BITTBOY_CONFIG , $MIYOO_CONFIGvariable
- add debug log before any shutdown
- don't `export` env var if not needed
- move and use $DETECTED auto_ID variants on II Test_Block
- cleanup + add more descriptions
- add Test_Flip prompt for double check on Test Video (only if enduser selected "Flipped!" at first test)
- remove useless SWAP & MAIN part. mount
- add safety read-only for /boot before shutdown

* [BOARD] add gmenu2x inputs inputs with `manifest`
- update genimage config with `input_bittboy.conf` and `input_miyoo.conf`

* [README] Add flashing procedure schematic (made in draw.io)
2023-07-24 22:21:35 +02:00
Apaczer
dd4ecafde7 [BOARD] reboot if firstboot.custom.sh is present 2023-07-19 14:04:39 +02:00
Apaczer
9ddf2134b4 [BOARD] default "YES" for resize dialog 2023-07-11 20:50:47 +02:00
Apaczer
d89fb54e39 [BOARD] add flashing procedure to firstboot + disclaimer msg (#37)
* refactor firstboot -> Flashing procedure
displays msgbox at firsts launch:
- "Can you see this msg?" (to test readID correctness)
- "Select your device:" (to choose manually proper module parameters)
- "Test Video" & "Test_Keyboard" dialog
- "Test_Image" invertion + xyc/m3
- "Your Device" dialog for all FORCE_VARIANT
- "Test_Video'2" & "Test_Variant"
- "Does this device match yours?" msg before License
- add temp "st7789s" console variant
- load proper firsboot menu from uEnv read
- Perform Tests only for $DETECTED_VERSION

* add $device_ID array from console.cfg (see if manually selected device type, matches uboot choices)
* move at end RESIZE script in firstboot
* only reboot after firstboot if console variant changed during flashing
* default to "unknown" console if no match
* add "m3_gc9306" to devices_ID[]
* refactor "xyc" & "m3" FORCE_VERSION
* use dialog --pause in firstboot (displays left time)
* Correct indentations in firstboot to TABS
* add functions in script

update "firstboot" script
2023-06-25 21:04:50 +02:00
Apaczer
fe6a544606 [BOARD] add "dialog" box for RESIZE procedure (#36)
in firstboot script
2023-05-30 18:50:51 +02:00
tiopex
26cf244553 disable locale, downgrade parted to v3.1, use fatresize v1.1.0 2023-04-11 10:49:52 +02:00
tiopex
5a0cc1df52 add build fatresize from source 2023-03-20 13:07:22 +01:00
tpietrus
0a56e2e6cf add resize and set bakclight and volume 2023-03-16 10:08:25 +01:00
tiopex
fa8b4b1683 add build image 2023-03-13 17:52:33 +01:00