Newbie question : copy of espressif8266, but error I don't understand

I would like to create an up to date version of an esp8266 build environment (with the latest SDK which is “a couple of years old”, but that’d be better than the current platformio version).

I just have a couple of files (see https://sourceforge.net/p/platformio-esp8266-sdk/code/HEAD/tree/trunk/) but I don’t seem to find what causes this error :

victus: {221} pio run
Processing esp8266-d1mini (platform: esp8266rtos; framework: esp8266rtos; board: d1mini)

Tool Manager: Installing platformio/esp8266rtos
UnknownPackageError: Could not find the package with ‘platformio/esp8266rtos’ requirements for your system ‘linux_x86_64’
victus: {222}



I said I was a newbie. I tried renaming my objects so a platform was called “esp8266rtospl” and a package “esp8266rtospa” etc but that didn’t help.

I’d be grateful for any help to get out of this.

Danny

When you’re saying

  "packages": {
    "toolchain-xtensa": {
      "type": "toolchain",
      "owner": "platformio",
      "version": "~2.100300.220621",
      "optionalVersions": ["~1.40802.0"]
    },
    "esp8266rtos": {
      "type": "framework",
      "optional": true,
      "owner": "platformio"
    },

in your platform.json, it means to PlatformIO: “Find a package called esp8266rtos from the owner platformio in the PlatformIO registry”.

That package obviously does not exist (https://registry.platformio.org/search?q=esp8266rtos&t=tool).

If you want PlatformIO to use an external esp8266rtos package (or better naming: framework-esp8266-rtos-sdk or framework-arduinoespressifRTOS8266 or whatever), then you can simply specify the version of that package to be some Git repository or a HTTP download link or whatever, e.g.,

    "framework-arduinoespressifRTOS8266": {
      "type": "framework",
      "optional": true,
      "owner": "platformio",
      "version": "https://github.com/alexCajas/esp8266RTOSArduCore.git"
    },

The downloaded artefact is then expected to have at least a package.json in it with the right name as expected.

Hint: That rename also necessitates that you adapt the package in

  "frameworks": {
    "esp8266rtos": {
      "package": "esp8266rtos",

accordingly.

You can see e.g. for reference other dev platforms:

Thanks, that helps.

Danny