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

Install raw image disk [FR] #49

Open
1 task done
bignaux opened this issue Feb 21, 2022 · 3 comments
Open
1 task done

Install raw image disk [FR] #49

bignaux opened this issue Feb 21, 2022 · 3 comments
Assignees

Comments

@bignaux
Copy link
Member

bignaux commented Feb 21, 2022

Checks

  • I have checked existing feature requests for duplicates and found none

Describe the FR

Provide a way to install raw image as easy as game. Need refactoring code to separate ISO handling from APA partition creation.
I thought libblkid could to the job to get info about the block device going to be injected.

Describe the solution you'd like

hdl_dump inject <device> <disc_file> <options>
inject disc_file according to its proprieties (iso, ext2, swap, fat32, pfs ... )

Describe alternatives you've considered

No response

Additional context

Now i've device-mapping i could use host mkfs and mount it to populate, so i'm concentrate on mkpart-like.

@bignaux bignaux self-assigned this Feb 21, 2022
@bignaux bignaux mentioned this issue Feb 26, 2022
6 tasks
@bignaux
Copy link
Member Author

bignaux commented Mar 2, 2022

For reference : util-linux/util-linux#1614
Could interest @frno7

@frno7
Copy link

frno7 commented Mar 2, 2022

Indeed, with issue frno7/linux#39, thanks @bignaux!

@bignaux
Copy link
Member Author

bignaux commented Mar 3, 2022

Guideline for PS2 Linux

Use UUIDs for boot and swap partitions to share them between different linux. See https://systemd.io/DISCOVERABLE_PARTITIONS/ .If i understand, it has to be at APA level to mimic GPT UUID, so it's right place (linux installer hdl_dump) to speak about it.

  • boot : ?
  • Swap : 0657fd6d-a4ab-43c4-84e5-0933c84b4f4f
  • Home Partition 933ac7e1-2eb4-4f13-b844-0e14e2aef915

we could also use others.

need

  • add : uchar uuid[16] somewhere in APA header, like mbr field.
  • modify https://gitlab.com/ps2max/linux/linux/-/blob/ps2-v3.8/block/partitions/ps2.c to add the partition UUID to the partition info structure of the kernel and remove code relying on PS2_LINUX_ID. https://github.com/frno7/linux/blob/ps2-main/block/partitions/msdos.c#L99-L108 is a perfect example for that. Make it compatible with HDL partition scheme, to be able to put loader in PPAA and be able to be launchable in OSD/OPL and other stuff (that would be symetrical to my userland libblkid implementation). Note this driver doesn't need to be devel on PS2 so devel could start on latest and be cherry pick later by frno7.
  • adapt OPL-launcher to be able to launch kernel (with kernel parameters) from some system pfs as it did for OPL.

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

No branches or pull requests

2 participants