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: Auto grow the actual /home partition. #86

Merged
merged 3 commits into from
Apr 2, 2024

Conversation

drewmoseley
Copy link
Contributor

With the current service, only the extended partition is expanded to fill the space. This also extends partition 6 which is the current /home and the last partition on the disk.

With the current service, only the extended partition is expanded to fill
the space. This also extends partition 6 which is the current /home
and the last partition on the disk.

Signed-off-by: Drew Moseley <drew@moseleynet.net>
Copy link
Collaborator

@leon-anavi leon-anavi left a comment

Choose a reason for hiding this comment

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

Looks good to me. Thank you for the contribution.

Signed-off-by: Drew Moseley <drew@moseleynet.net>
@drewmoseley
Copy link
Contributor Author

I added a commit to add "scarthgap" to LAYERSERIES_COMPAT. This works for expanding the filesystem but the actual rauc service fails with:

root@raspberrypi4-64:~# systemctl status rauc --no-pager -l
x rauc.service - RAUC Update Service
     Loaded: loaded (/usr/lib/systemd/system/rauc.service; static)
     Active: failed (Result: exit-code) since Tue 2024-02-27 17:26:10 UTC; 3 weeks 0 days ago
       Docs: https://rauc.readthedocs.io
    Process: 465 ExecStart=/usr/bin/rauc --mount=/run/rauc service (code=exited, status=1/FAILURE)
   Main PID: 465 (code=exited, status=1/FAILURE)
        CPU: 32ms

Feb 27 17:26:10 raspberrypi4-64 systemd[1]: Starting RAUC Update Service...
Feb 27 17:26:10 raspberrypi4-64 rauc[465]: Failed to initialize context: Failed to load system config (/etc/rauc/system.conf): Key file does not have group ?system?
Feb 27 17:26:10 raspberrypi4-64 systemd[1]: rauc.service: Main process exited, code=exited, status=1/FAILURE
Feb 27 17:26:10 raspberrypi4-64 systemd[1]: rauc.service: Failed with result 'exit-code'.
Feb 27 17:26:10 raspberrypi4-64 systemd[1]: Failed to start RAUC Update Service.

@moto-timo
Copy link
Contributor

I have been working on scarthgap, so I will give this a try and see if I can replicate the issue.

@leon-anavi
Copy link
Collaborator

@drewmoseley is system.conf part of your image?

I see an error related to it in the shared by you log:

Failed to load system config (/etc/rauc/system.conf): Key file does not have group ?system?

@drewmoseley
Copy link
Contributor Author

Yes, the file exists. I don't have a group named "system" though.

@jluebbe
Copy link
Member

jluebbe commented Mar 21, 2024

Yes, the file exists. I don't have a group named "system" though.

The system.conf in the layer looks good. Do you have local changes that could explain the missing [system] section?

@drewmoseley
Copy link
Contributor Author

It seems that meta-rauc now puts system.conf in the rauc-conf package but meta-rauc-community has not been updated to match. I'll test a fix for rpi and push it to this PR.

Signed-off-by: Drew Moseley <drew@moseleynet.net>
@drewmoseley
Copy link
Contributor Author

OK. The system.conf file is now properly packaged in rauc-conf. It all seems to be working on my end now. A similar change likely needs to be med in meta-rauc-community for all the other supported machines.

@leon-anavi
Copy link
Collaborator

@drewmoseley thank you for figuring that out and sharing it with the community. The patches look good me. We should sort this out for other boards. If there are no objections by tomorrow I will merge the GitHub pull request.

@leon-anavi leon-anavi merged commit e412887 into rauc:master Apr 2, 2024
2 checks passed
@leon-anavi
Copy link
Collaborator

@drewmoseley thank you. I confirm this issues fixes the described RAUC issues.

While testing this GitHub pull request I experienced issues with U-Boot on Raspberry Pi 4 (both 32-bit and 64-bit) due to the following error:

U-Boot 2023.10 (Oct 02 2023 - 14:39:59 +0000)

DRAM:  948 MiB (effective 3.9 GiB)
RPI 4 Model B (0xc03111)
Core:  212 devices, 16 uclasses, devicetree: board
MMC:   mmcnr@7e300000: 1, mmc@7e340000: 0
Loading Environment from FAT... Unable to read "uboot.env" from mmc0:1...
In:    serial,usbkbd
Out:   serial,vidconsole
Err:   serial,vidconsole
Net:   eth0: ethernet@7d580000
PCIe BRCM: link up, 5.0 Gbps x1 (SSC)
starting USB...
Bus xhci_pci: Register 5000420 NbrPorts 5
Starting the controller
USB XHCI 1.00
scanning bus xhci_pci for devices... 2 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found
Hit any key to stop autoboot:  0
Card did not respond to voltage select! : -110
ethernet@7d580000 Waiting for PHY auto negotiation to complete. done
BOOTP broadcast 1
BOOTP broadcast 2

This is a U-Boot problem that appears without RAUC too. As far as I see there was a fix u-boot/u-boot@7a790f0 but it was later on reverted because of other issues u-boot/u-boot@abd1e94 Temporary, to test RAUC locally I set U-Boot version to SRCREV:rpi = "7a790f018a812b5897fc144c46291de8df633429". I am sharing these technical details as they might be useful to someone else working with meta-raspberrypi and U-Boot on Raspberry Pi.

Best regards, Leon

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants