Commit Graph

40 Commits

Author SHA1 Message Date
Apaczer
358fc27372 [FIRSTBOOT] Use metric GB size value in resize check
mainly because it's not resizing to precise size if not using "max"
2023-08-11 22:50:18 +02:00
Apaczer
c087f58371 [FIRSTBOOT] Prevent over&down-resizing of FAT part. 2023-08-11 22:06:59 +02:00
Apaczer
9a59e2d38e [FIRSTBOOT] allow for resizing only of SD<=128GB
cuz of memory restrain and malloc() errors on fatresize, we add msgbox warning for bigger microSD cards
2023-08-10 23:41:50 +02:00
Apaczer
9b372b192e [FIRSTBOOT] use binary MiB/GiB for MB/GB mem view
- correct byte values in resize
- show trailing zero for GB value
- fix log.txt write if no reboot/shut
2023-08-09 17:16:37 +02:00
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
543d6d4366 [GENIMAGE] increase swap partition size
double the value, mostly to handle the partition expand of a bigger microSD with 'fatresize'
2023-08-05 21:55:11 +02:00
Apaczer
8791ad38c3 [BOARD] add mkswap for 3 partition in /etc/inittab
otherwise we have a system without Swap virtual memory!
2023-07-26 23:10:33 +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
3bbf058d81 [BOARD] fix typo in genimage script from last PR 2023-07-16 20:23:38 +02:00
Apaczer
984a567012 [BOARD] rely on manifest when copying *.conf files (#39)
workaround for genimage omitting hidden files when using `mountpoint` directive
2023-07-15 07:17:10 +02:00
Apaczer
9ddf2134b4 [BOARD] default "YES" for resize dialog 2023-07-11 20:50:47 +02:00
Apaczer
0f90d79a7c [BOARD] add missing config files + HOTKEY_CUSTOM
- omit .fpbp.conf
2023-07-04 22:37:28 +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
cbd0078ca6 [BOARD] Update firstboot.custom.sh (streamline) 2023-06-20 12:12:36 +02:00
Apaczer
fe6a544606 [BOARD] add "dialog" box for RESIZE procedure (#36)
in firstboot script
2023-05-30 18:50:51 +02:00
Apaczer
b430a7b54e [BOARD] refactor options.cfg + add INVERT setting 2023-05-30 07:42:04 +02:00
Apaczer
b65d52ae59 [BOARD] add modules.custom.sh in BOOT partition (#35)
* add modules.custom script

* refactor MODULES_CUSTOM scripting in main (disabled by default)
2023-05-26 00:07:39 +02:00
Apaczer
2aaffcfa27 [BOARD] update st7789sfb video driver long initialization fix 2023-05-16 22:37:26 +02:00
Apaczer
35c6f8e7d1 [BOARD] Remove screenshot script
no need after moving whole shell cmd to kernel
2023-05-11 11:22:37 +02:00
Apaczer
38137ca839 use native fbgrab for screenshot.sh 2023-04-14 12:05:23 +02:00
Apaczer
954a909c57 Update console.cfg
add warning in console.cfg ref. EOL issue
2023-04-12 21:07:49 +02:00
tiopex
26cf244553 disable locale, downgrade parted to v3.1, use fatresize v1.1.0 2023-04-11 10:49:52 +02:00
Apaczer
f75216531a merge changes from sdcard scripting for TVout + reboot when TV ON
6fa5835de5
2023-04-10 20:53:32 +02:00
Apaczer
42ec8c273c rework FLIP working from options.cfg 2023-04-10 20:25:37 +02:00
Apaczer
3b56bcdda6 add timidity sound patches in "/etc" for MIDI (#28) 2023-04-04 21:24:21 +02:00
tiopex
a2f39f8c83 Generate sdk tarball file by buildroot
Fix gmenu2x output files when rebuild image
2023-03-27 11:24:45 +02:00
tiopex
8bd4a5d2e2 Add version and toolchain to img filename (#18)
* add version and toolchain to img filename
---------

Co-authored-by: Apaczer <94932128+Apaczer@users.noreply.github.com>
2023-03-27 09:08:23 +02:00
Apaczer
a3b8303307 change default CONSOLE_VARIANT to "pocketgo"
the one using st7789sfb driver
2023-03-24 20:20:57 +01:00
root
8ee9df5b88 add libusbgx, add miyooctl 2023-03-22 07:31:48 +01:00
tiopex
5a0cc1df52 add build fatresize from source 2023-03-20 13:07:22 +01:00
tiopex
52c0a95984 fix uppercase and build gmenu2x dist 2023-03-17 21:49:56 +01:00
tiopex
248f82ac68 build gmenu2x with -O0
prepare to copy generated files from gmenu2x to sdcard
2023-03-17 11:48:04 +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
tiopex
dcdaa3599c bump version to 2022.02.9
add miyoo_defconfig
2023-01-31 16:39:34 +01:00
TriForceX
b3ecc6e32d Merge from bittboy/buildroot@26c91a9 2021-03-13 22:13:38 -03:00
TriForceX
6203ff3e7c Merge from bittboy/buildroot@db180c0 2019-09-25 20:52:32 -03:00