Skip to content

Commit 00f51af

Browse files
Change PiggyOS to MicroPythonOS
1 parent 28bbb9b commit 00f51af

File tree

6 files changed

+19
-18
lines changed

6 files changed

+19
-18
lines changed

README.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
PiggyOS
1+
MicroPythonOS
22
=======
33

44
This is an operating system for microcontrollers like the ESP32.
@@ -50,43 +50,43 @@ Prepare all the sources:
5050
mkdir ~/sources/
5151
cd ~/sources/
5252
53-
git clone https://github.com/LightningPiggy/PiggyOS.git
53+
git clone https://github.com/MicroPythonOS/MicroPythonOS.git
5454
5555
git clone https://github.com/bixb922/freezeFS
56-
~/sources/PiggyOS/scripts/freezefs_mount_builtin.sh
56+
~/sources/MicroPythonOS/scripts/freezefs_mount_builtin.sh
5757
5858
git clone https://github.com/cnadler86/micropython-camera-API
5959
echo 'include("~/sources/lvgl_micropython/build/manifest.py")' >> micropython-camera-API/src/manifest.py
6060
6161
git clone https://github.com/lvgl-micropython/lvgl_micropython
62-
cp ~/sources/PiggyOS/patches/lv_conf.h lvgl_micropython/lib/
62+
cp ~/sources/MicroPythonOS/patches/lv_conf.h lvgl_micropython/lib/
6363
6464
cd lvgl_micropython/lib/micropython
65-
patch -p1 < ~/sources/PiggyOS/patches/lvgl_micropython*.patch
65+
patch -p1 < ~/sources/MicroPythonOS/patches/lvgl_micropython*.patch
6666
```
6767

6868
Start the build:
6969

7070
```
71-
~/sources/PiggyOS/scripts/build_lvgl_micropython.sh
71+
~/sources/MicroPythonOS/scripts/build_lvgl_micropython.sh
7272
```
7373

7474
Or if you want to build for development, so without any preinstalled files, do:
7575

7676
```
77-
~/sources/PiggyOS/scripts/build_lvgl_micropython.sh devbuild
77+
~/sources/MicroPythonOS/scripts/build_lvgl_micropython.sh devbuild
7878
```
7979

8080
Now install it with:
8181

8282
```
83-
~/sources/PiggyOS/scripts/flash_over_usb.sh
83+
~/sources/MicroPythonOS/scripts/flash_over_usb.sh
8484
```
8585

8686
If you made a 'devbuild', then you probably want to install all files and apps manually:
8787

8888
```
89-
~/sources/PiggyOS/scripts/install.sh
89+
~/sources/MicroPythonOS/scripts/install.sh
9090
```
9191

9292
Release checklist
@@ -114,13 +114,13 @@ To do so, make sure you have the necessary dependencies:
114114
...and then run:
115115

116116
```
117-
~/sources/PiggyOS/scripts/build_lvgl_micropython.sh unix
117+
~/sources/MicroPythonOS/scripts/build_lvgl_micropython.sh unix
118118
```
119119

120120
or
121121

122122
```
123-
~/sources/PiggyOS/scripts/build_lvgl_micropython.sh macOS
123+
~/sources/MicroPythonOS/scripts/build_lvgl_micropython.sh macOS
124124
```
125125

126126
To run it, it's recommended to symlink your ~/.micropython/lib folder into this project's lib:

c_mpos/micropython.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# Seems this must be passed as:
2-
# USER_C_MODULE=/home/user/sources/PiggyOS/c_mpos/micropython.cmake
1+
# This must be passed as:
2+
# USER_C_MODULE=/home/user/sources/MicroPythonOS/c_mpos/micropython.cmake
33
# ...to make.py when building for esp32 to ensure it gets compiled.
44

55
add_library(usermod_c_mpos INTERFACE)

scripts/build_lvgl_micropython.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ manifest=""
1919

2020
if [ "$target" == "esp32" ]; then
2121
if [ "$buildtype" == "prod" ]; then
22-
manifest="FROZEN_MANIFEST=/home/user/sources/PiggyOS/manifest.py"
22+
manifest="FROZEN_MANIFEST=/home/user/sources/MicroPythonOS/manifest.py"
2323
fi
2424
# Build for https://www.waveshare.com/wiki/ESP32-S3-Touch-LCD-2.
2525
# See https://github.com/lvgl-micropython/lvgl_micropython
@@ -34,10 +34,10 @@ if [ "$target" == "esp32" ]; then
3434
# CONFIG_FREERTOS_USE_TRACE_FACILITY=y
3535
# CONFIG_FREERTOS_VTASKLIST_INCLUDE_COREID=y
3636
# CONFIG_FREERTOS_GENERATE_RUN_TIME_STATS=y
37-
python3 make.py --ota --partition-size=4194304 --flash-size=16 esp32 BOARD=ESP32_GENERIC_S3 BOARD_VARIANT=SPIRAM_OCT DISPLAY=st7789 INDEV=cst816s USER_C_MODULE=/home/user/sources/micropython-camera-API/src/micropython.cmake USER_C_MODULE=/home/user/sources/PiggyOS/c_mpos/secp256k1-embedded_kdmukai/micropython.cmake USER_C_MODULE=/home/user/sources/PiggyOS/c_mpos/micropython.cmake CONFIG_FREERTOS_USE_TRACE_FACILITY=y CONFIG_FREERTOS_VTASKLIST_INCLUDE_COREID=y CONFIG_FREERTOS_GENERATE_RUN_TIME_STATS=y "$manifest"
37+
python3 make.py --ota --partition-size=4194304 --flash-size=16 esp32 BOARD=ESP32_GENERIC_S3 BOARD_VARIANT=SPIRAM_OCT DISPLAY=st7789 INDEV=cst816s USER_C_MODULE=/home/user/sources/micropython-camera-API/src/micropython.cmake USER_C_MODULE=/home/user/sources/MicroPythonOS/c_mpos/secp256k1-embedded_kdmukai/micropython.cmake USER_C_MODULE=/home/user/sources/MicroPythonOS/c_mpos/micropython.cmake CONFIG_FREERTOS_USE_TRACE_FACILITY=y CONFIG_FREERTOS_VTASKLIST_INCLUDE_COREID=y CONFIG_FREERTOS_GENERATE_RUN_TIME_STATS=y "$manifest"
3838
elif [ "$target" == "unix" -o "$target" == "macos" ]; then
3939
if [ "$buildtype" == "prod" ]; then
40-
manifest="FROZEN_MANIFEST=/home/user/sources/PiggyOS/manifest_unix.py"
40+
manifest="FROZEN_MANIFEST=/home/user/sources/MicroPythonOS/manifest_unix.py"
4141
fi
4242
# build for desktop
4343
python3 make.py "$target" DISPLAY=sdl_display INDEV=sdl_pointer INDEV=sdl_keyboard "$manifest"

scripts/flash_over_usb.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
fwfile="/home/user/sources/lvgl_micropython/build/lvgl_micropy_ESP32_GENERIC_S3-SPIRAM_OCT-16.bin"
22
ls -al $fwfile
33
echo "Add --erase-all if needed"
4+
sleep 5
45
~/.espressif/python_env/idf5.2_py3.9_env/bin/python -m esptool --chip esp32s3 --before default_reset --after hard_reset write_flash --flash_mode dio --flash_size 16MB --flash_freq 80m $1 0x0 $fwfile
56

scripts/freezefs_mount_builtin.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
pushd ~/sources/freezeFS
2-
python3 -m freezefs --target /builtin --on-import mount ~/sources/PiggyOS/internal_filesystem/builtin freezefs_mount_builtin.py
2+
python3 -m freezefs --target /builtin --on-import mount ~/sources/MicroPythonOS/internal_filesystem/builtin freezefs_mount_builtin.py
33
popd

scripts/install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ fi
4848
~/sources/lvgl_micropython/lib/micropython/tools/mpremote/mpremote.py fs cp -r builtin :/
4949
~/sources/lvgl_micropython/lib/micropython/tools/mpremote/mpremote.py fs cp -r lib :/
5050
~/sources/lvgl_micropython/lib/micropython/tools/mpremote/mpremote.py fs cp -r resources :/
51-
~/sources/lvgl_micropython/lib/micropython/tools/mpremote/mpremote.py fs cp -r data :/
51+
#~/sources/lvgl_micropython/lib/micropython/tools/mpremote/mpremote.py fs cp -r data :/
5252

5353
popd
5454

0 commit comments

Comments
 (0)