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

Bump orangepi versions to 24.04 #16

Merged
merged 21 commits into from
Jul 4, 2024

Conversation

Juniormunk
Copy link
Contributor

@Juniormunk Juniormunk requested a review from crschardt June 13, 2024 01:40
@crschardt
Copy link
Contributor

It looks like the build ran out of disk space: https://github.com/PhotonVision/photon-image-modifier/actions/runs/9491356049/job/26558351809#step:4:1138

I tried the image anyway and it won't boot on my OrangePi5. I'll look into what we need to do to get this working.

@crschardt
Copy link
Contributor

A little update. I found out that there was a problem with the way that the arm-runner-action creates images from the v2.x releases from Joshua Riek. I forked the runner repo and submitted a PR (pguyot/arm-runner-action#117) that fixes the problem. I'm doing some more testing of the build process and then will update this PR.

@crschardt crschardt self-assigned this Jul 1, 2024
@crschardt
Copy link
Contributor

I commented out the line in install_opi5.sh that removes gcc because it was causing errors in arm-runner-action such as what I've pasted below. In addition, the compressed image with it commented out is smaller than the one that uninstalled these libraries.

commit bc63f4a: 1049.5 MiB
commit b888d74: 1028.7 MiB

I'd like to leave this disabled for this PR and work on figuring out how to remove unneeded stuff and compress the image in a separate PR, if it's even worth doing.

Preparing to unpack .../linux-modules-6.1.0-1019-rockchip_6.1.0-1019.19_arm64.deb ...
Unpacking linux-modules-6.1.0-1019-rockchip (6.1.0-1019.19) ...
dpkg: error processing archive /var/cache/apt/archives/linux-modules-6.1.0-1019-rockchip_6.1.0-1019.19_arm64.deb (--unpack):
 cannot copy extracted data for './boot/System.map-6.1.0-1019-rockchip' to '/boot/System.map-6.1.0-1019-rockchip.dpkg-new': failed to write (No space left on device)
No apport report written because the error message indicates a disk full error
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Selecting previously unselected package linux-image-6.1.0-1019-rockchip.
Preparing to unpack .../linux-image-6.1.0-1019-rockchip_6.1.0-1019.19_arm64.deb ...
Unpacking linux-image-6.1.0-1019-rockchip (6.1.0-1019.19) ...
dpkg: error processing archive /var/cache/apt/archives/linux-image-6.1.0-1019-rockchip_6.1.0-1019.19_arm64.deb (--unpack):
 cannot copy extracted data for './boot/vmlinuz-6.1.0-1019-rockchip' to '/boot/vmlinuz-6.1.0-1019-rockchip.dpkg-new': failed to write (No space left on device)
No apport report written because the error message indicates a disk full error
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
W: Last kernel image has been removed, so removing the default symlinks
/etc/kernel/postrm.d/zz-u-boot-menu:
P: Checking for EXTLINUX directory... not found.
P: Creating EXTLINUX directory... done: /boot/extlinux
P: Updating /boot/extlinux/extlinux.conf...
Selecting previously unselected package linux-modules-extra-6.1.0-1019-rockchip.
Preparing to unpack .../linux-modules-extra-6.1.0-1019-rockchip_6.1.0-1019.19_arm64.deb ...
Unpacking linux-modules-extra-6.1.0-1019-rockchip (6.1.0-1019.19) ...
Preparing to unpack .../linux-image-rockchip_6.1.0.1019.19_arm64.deb ...
Unpacking linux-image-rockchip (6.1.0.1019.19) over (6.1.0.1016.16) ...
Errors were encountered while processing:
 /var/cache/apt/archives/linux-modules-6.1.0-1019-rockchip_6.1.0-1019.19_arm64.deb
 /var/cache/apt/archives/linux-image-6.1.0-1019-rockchip_6.1.0-1019.19_arm64.deb
needrestart is being skipped since dpkg has failed
E: Sub-process /usr/bin/dpkg returned an error code (1)
Reading package lists...
Building dependency tree...
Reading state information...
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 linux-image-rockchip : Depends: linux-image-6.1.0-1019-rockchip but it is not going to be installed
                        Recommends: thermald but it is not installable
 linux-modules-extra-6.1.0-1019-rockchip : Depends: linux-image-6.1.0-1019-rockchip but it is not going to be installed or
                                                    linux-image-unsigned-6.1.0-1019-rockchip but it is not installable
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
Reading package lists...
Building dependency tree...
Reading state information...
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 linux-image-rockchip : Depends: linux-image-6.1.0-1019-rockchip but it is not installed
                        Recommends: thermald but it is not installable
 linux-modules-extra-6.1.0-1019-rockchip : Depends: linux-image-6.1.0-1019-rockchip but it is not installed or
                                                    linux-image-unsigned-6.1.0-1019-rockchip but it is not installable
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

@crschardt crschardt added the enhancement New feature or request label Jul 4, 2024
@crschardt crschardt linked an issue Jul 4, 2024 that may be closed by this pull request
Copy link
Contributor

@crschardt crschardt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This generates a working image based on Ubuntu 24.04.

@crschardt crschardt merged commit e76c6d8 into PhotonVision:master Jul 4, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
2 participants