diff --git a/Containerfile b/Containerfile new file mode 100644 index 0000000..22bc2e7 --- /dev/null +++ b/Containerfile @@ -0,0 +1,19 @@ +FROM node:26-trixie + +VOLUME /src + +#RUN apt-get update \ +# && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends curl ca-certificates \ +# && rm -rf /var/cache/apt/archives /var/lib/apt/lists/* + +RUN curl -fsSL https://pi.dev/install.sh | sh \ + && pi update \ + && pi update --extensions + +RUN curl -fsSL https://nixos.org/nix/install | sh -s -- --daemon \ + && echo "max-jobs = auto" >> /etc/nix/nix.conf \ + && echo "experimental-features = nix-command flakes" >> /etc/nix/nix.conf + +WORKDIR /src + +CMD ["pi"] diff --git a/README.md b/README.md index 2e165b7..ce695f2 100644 --- a/README.md +++ b/README.md @@ -7,11 +7,6 @@ - [Waveshare ESP32-S3](https://www.waveshare.com/esp32-s3-lcd-1.3.htm?sku=30558) ([docs](https://www.waveshare.com/wiki/ESP32-S3-LCD-1.3)) - [W5500 Ethernet Module](https://www.az-delivery.de/en/products/w5500-ethernet-netzwerk-internet-modul-fuer-arduino) -### Integrated ethernet but w/o display - -- [Olimex ESP32-POE](https://www.olimex.com/Products/IoT/ESP32/ESP32-POE/open-source-hardware) -- [Olimex ESP32-POE-ISO](https://www.olimex.com/Products/IoT/ESP32/ESP32-POE-ISO/open-source-hardware) - ## Test procedure 1. Check physical link @@ -70,3 +65,4 @@ Temperature: 42°C 2. Configure? 3. Compile 4. Flash + diff --git a/cad/inet_mon.FCStd b/cad/inet_mon.FCStd index 4e9c57f..2caf94b 100644 Binary files a/cad/inet_mon.FCStd and b/cad/inet_mon.FCStd differ diff --git a/datasheets/AZ252_C14-10_EN_B07CYVRMPL.pdf b/datasheets/AZ252_C14-10_EN_B07CYVRMPL.pdf new file mode 100644 index 0000000..ea5efbc Binary files /dev/null and b/datasheets/AZ252_C14-10_EN_B07CYVRMPL.pdf differ diff --git a/datasheets/LAN8720-ETH-Board-Schematic.pdf b/datasheets/LAN8720-ETH-Board-Schematic.pdf deleted file mode 100644 index 101e372..0000000 Binary files a/datasheets/LAN8720-ETH-Board-Schematic.pdf and /dev/null differ diff --git a/datasheets/LAN8720A.pdf b/datasheets/LAN8720A.pdf deleted file mode 100644 index 7cb33d3..0000000 Binary files a/datasheets/LAN8720A.pdf and /dev/null differ diff --git a/datasheets/W5500_ds_v110e.pdf b/datasheets/W5500_ds_v110e.pdf new file mode 100644 index 0000000..a497ef6 Binary files /dev/null and b/datasheets/W5500_ds_v110e.pdf differ diff --git a/firmware/README.md b/firmware/README.md index 98a7cb9..5734558 100644 --- a/firmware/README.md +++ b/firmware/README.md @@ -1,12 +1,13 @@ # GPIOs | ESP32-S3 | W5500 | -| ------- |-------| -| GPIO12 | SCLK | -| GPIO11 | MOSI | -| GPIO13 | MISO | -| GPIO10 | SCS | -| GPIO09 | RST | -| GPIO14 | INT | -| 3V3 | 3V3 | -| GND | GND | +| -------- | ----- | +| GPIO12 | SCLK | +| GPIO11 | MOSI | +| GPIO13 | MISO | +| GPIO10 | SCS | +| GPIO09 | RST | +| GPIO14 | INT | +| 3V3 | 3V3 | +| GND | GND | + diff --git a/flake.nix b/flake.nix index a36559e..7dabf8a 100644 --- a/flake.nix +++ b/flake.nix @@ -59,6 +59,18 @@ in { apps = { + run-agent = { + type = "app"; + program = "${pkgs.writeShellScript "run-agent" '' + podman run -it --rm -v ./:/src -v ./models.json:/root/.pi/agent/models.json --device=/dev/ttyACM0 pidev:latest + ''}"; + }; + build-agent = { + type = "app"; + program = "${pkgs.writeShellScript "build-agent" '' + podman build -t pidev:latest -f Containerfile . + ''}"; + }; menuconfig = { type = "app"; meta.description = "⚙️ Open ESP-IDF configuration menu (sdkconfig)";