Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rpi-image-json: handle rpi5 device and aarch64 arch #13

Merged
merged 2 commits into from
Nov 9, 2023

Conversation

antonlacon
Copy link
Contributor

Adds handling for aarch64 images and rpi5 devices. Draft until release images exist to test change.

Signed-off-by: Ian Leonard <antonlacon@gmail.com>
Signed-off-by: Ian Leonard <antonlacon@gmail.com>
@antonlacon
Copy link
Contributor Author

Updated with the requested device compatibility tags and tested with renamed nightly images.

Resulting json file for what would be LE12:

{
    "os_list": [
        {
            "url": "https://releases.libreelec.tv/LibreELEC-RPi5.aarch64-12.0.0.img.gz",
            "extract_size": 575668224,
            "extract_sha256": "ffb1e6c86c96445d6b67491c912a236e6493d1a504a4e9ae7e390737cad06070",
            "image_download_size": 142336732,
            "description": "A fast and user-friendly Kodi mediacenter distro for RPi5",
            "icon": "https://releases.libreelec.tv/noobs/LibreELEC_RPi/LibreELEC_RPi.png",
            "name": "LibreELEC (RPi5)",
            "release_date": "2023-11-07",
            "devices": ["pi5-64bit"],
            "website": "https://libreelec.tv"
        },
        {
            "url": "https://releases.libreelec.tv/LibreELEC-RPi4.aarch64-12.0.0.img.gz",
            "extract_size": 575668224,
            "extract_sha256": "3026b88017c09fc92555d1822ee26b84ff37b9fc9c0327471f69a7b5e102f27f",
            "image_download_size": 145502367,
            "description": "A fast and user-friendly Kodi mediacenter distro for RPi4",
            "icon": "https://releases.libreelec.tv/noobs/LibreELEC_RPi/LibreELEC_RPi.png",
            "name": "LibreELEC (RPi4)",
            "release_date": "2023-11-07",
            "devices": ["pi4-64bit"],
            "website": "https://libreelec.tv"
        },
        {
            "url": "https://releases.libreelec.tv/LibreELEC-RPi2.arm-12.0.0.img.gz",
            "extract_size": 575668224,
            "extract_sha256": "8cb30d8cdb7bc808dde67750086c74454582c2b0d9a31bace2925c9df2d1fcf8",
            "image_download_size": 136523204,
            "description": "A fast and user-friendly Kodi mediacenter distro for RPi2/RPi3",
            "icon": "https://releases.libreelec.tv/noobs/LibreELEC_RPi/LibreELEC_RPi.png",
            "name": "LibreELEC (RPi2/RPi3)",
            "release_date": "2023-11-06",
            "devices": ["pi2-32bit", "pi3-32bit"],
            "website": "https://libreelec.tv"
        }
    ]
}

And LE11:

{
    "os_list": [
        {
            "url": "https://releases.libreelec.tv/LibreELEC-RPi5.arm-11.0.3.img.gz",
            "extract_size": 575668224,
            "extract_sha256": "c1a9d55a68abadb1408251dac7587e63204b10280507295265ad36e2fe128687",
            "image_download_size": 131567103,
            "description": "A fast and user-friendly Kodi mediacenter distro for RPi5",
            "icon": "https://releases.libreelec.tv/noobs/LibreELEC_RPi/LibreELEC_RPi.png",
            "name": "LibreELEC (RPi5)",
            "release_date": "2023-11-04",
            "devices": ["pi5-32bit"],
            "website": "https://libreelec.tv"
        },
        {
            "url": "https://releases.libreelec.tv/LibreELEC-RPi4.arm-11.0.3.img.gz",
            "extract_size": 575668224,
            "extract_sha256": "e563541181b92de02475d368caad4f04a80bbb195785845a615a700ef4cba0fa",
            "image_download_size": 134427603,
            "description": "A fast and user-friendly Kodi mediacenter distro for RPi4",
            "icon": "https://releases.libreelec.tv/noobs/LibreELEC_RPi/LibreELEC_RPi.png",
            "name": "LibreELEC (RPi4)",
            "release_date": "2023-07-15",
            "devices": ["pi4-32bit"],
            "website": "https://libreelec.tv"
        },
        {
            "url": "https://releases.libreelec.tv/LibreELEC-RPi2.arm-11.0.3.img.gz",
            "extract_size": 575668224,
            "extract_sha256": "8a704e79be0b2af0e1166ff5ffe06897a4a46ddf86b1ea4e6aaef05d573e6401",
            "image_download_size": 132744789,
            "description": "A fast and user-friendly Kodi mediacenter distro for RPi2/RPi3",
            "icon": "https://releases.libreelec.tv/noobs/LibreELEC_RPi/LibreELEC_RPi.png",
            "name": "LibreELEC (RPi2/RPi3)",
            "release_date": "2023-07-15",
            "devices": ["pi2-32bit", "pi3-32bit"],
            "website": "https://libreelec.tv"
        }
    ]
}

For comparison against RPi Foundation's json file: https://downloads.raspberrypi.org/os_list_imagingutility_v3.json

@antonlacon antonlacon marked this pull request as ready for review November 8, 2023 01:14
@chewitt
Copy link
Member

chewitt commented Nov 8, 2023

@antonlacon I've asked RPi devs to cast an eye on the devices change (LGTM, but it's their request). Will look to get it merged when I get an all-clear from them.

@tdewey-rpi
Copy link

@chewitt Thanks for the notification

@antonlacon Awesome stuff, thanks for getting this sorted.

@chewitt chewitt merged commit db6ff69 into LibreELEC:master Nov 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants