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

EFI backend partitions by UUID #2

Closed
ejoerns opened this issue Mar 23, 2018 · 5 comments
Closed

EFI backend partitions by UUID #2

ejoerns opened this issue Mar 23, 2018 · 5 comments

Comments

@ejoerns
Copy link

ejoerns commented Mar 23, 2018

Saw your question on #barebox about using EFI with barebox state.

A working example for using a fixed partition as storage backend for state I have is:

state: state {
        magic = <0x3f2ba231>;
        backend-type = "raw";
        backend = <&state_part>;
        backend-stridesize = <4096>;
        #address-cells = <1>;
        #size-cells = <1>;

        [...]
 }

partitions {
        compatible = "fixed-partitions";
        #address-cells = <1>;
        #size-cells = <1>;

        state_part: state {
                partuuid = "14367da7-c518-499f-9aad-e1f366692363";
        };
};

The partition in my case is crated with a script calling sfdisk:

sfdisk -X gpt /dev/sdX << EOF
start=2048,size=18432,type=C12A7328-F81F-11D2-BA4B-00A0C93EC93B,bootable
start=20480,size=2048,uuid=14367da7-c518-499f-9aad-e1f366692363
[...]
EOF
@pvizeli
Copy link
Member

pvizeli commented Mar 25, 2018

Thanks a lot. I have no a working base :)
I used sgdisk.

@pvizeli pvizeli closed this as completed Mar 25, 2018
@pvizeli pvizeli reopened this May 8, 2018
@pvizeli
Copy link
Member

pvizeli commented May 8, 2018

Do you know, how I can pass the devicetree to linux kernel on EFI?

I work on:
https://github.com/home-assistant/hassio-os/tree/fix-rauc

@ejoerns
Copy link
Author

ejoerns commented May 9, 2018

This is not really supported yet, mainline. But it might be a generic use case so we should think about mainline support, too.

Our current approach is to place the dtb in the EFI partition and point the barebox-state tool to this location.

ATM, this requires a RAUC patch similar to this: https://gist.github.com/ejoerns/13f9d8b594f6816fdca0b8a4d531fc7d

@pvizeli
Copy link
Member

pvizeli commented May 9, 2018

Thanks. I will do it like:

On amd64 I patch the barebox host utility to use the /mnt/boot/efi/barebox/state.dtb (the hassio path). So it runs like other architecture and I can use the same rootfs.

@pvizeli pvizeli closed this as completed May 10, 2018
adeepn added a commit to adeepn/home-assistant-operating-system that referenced this issue Feb 5, 2021
agners added a commit to s-ol/operating-system that referenced this issue May 16, 2022
* buildroot ee56159464...666868435d (1):
  > Merge pull request home-assistant#2 from s-ol/fix-usb_modeswitch-systemd
agners added a commit that referenced this issue May 16, 2022
* Add rtl8821cu driver

* buildroot ee56159464...666868435d (1):
  > Merge pull request #2 from s-ol/fix-usb_modeswitch-systemd

* Add rtl8821cu support to all boards

Signed-off-by: s-ol <[email protected]>
Co-authored-by: Stefan Agner <[email protected]>
agners added a commit that referenced this issue May 19, 2022
* Add rtl8821cu driver

* buildroot ee56159464...666868435d (1):
  > Merge pull request #2 from s-ol/fix-usb_modeswitch-systemd

* Add rtl8821cu support to all boards

Signed-off-by: s-ol <[email protected]>
Co-authored-by: Stefan Agner <[email protected]>
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

No branches or pull requests

2 participants