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

add CMD_MKPART #51

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft

add CMD_MKPART #51

wants to merge 1 commit into from

Conversation

bignaux
Copy link
Member

@bignaux bignaux commented Feb 26, 2022

Pull Request checklist

Note: these are not necessarily requirements

  • I reformatted the code with clang-format
  • I checked to make sure my submission worked
  • I am the author of submission or have permission from the original author
  • Requires update of the PS2SDK
  • Requires update of the gsKit
  • Others (please specify below)

Pull Request description

I try to find a way to make ps2 linux from maximus32 easy and error prone install thanks to hdl_dump #49

few lines on the current process, next we need inject_raw cmd. But we have to find solution to avoid editing fstab and loader configuration.

https://www.psx-place.com/threads/ps2linux-version-3-8-a-new-update-from-maximus32.11382/
sudo kpartx -a ps2linux3.8_v0.1.img

vmlinux-v3.8.gz seems to wait for GPT table, enumerate /dev/sda , i can't boot from it.
vmlinux-v2.6.35.gz 2 enumerate from APA part name, so no need to edit file in fs and can be used with hdl_dump.
Only PS2_LINUX_ID "__linux." prefixed partition are visible from Linux , no content check, but seems to show PP one. Perhaps it would be better to check the partition type instead of name, to allow usage of PP partition, starting by "PP." ie "PP.Blackrhino" (so rely on other element, like in partition superblock, UUID, LABEL ...).

hdl_dump mkpart /dev/sdb __linux.1 ext2 1920M
hdl_dump mkpart /dev/sdb __linux.2 swap 124M
hdl_dump toc /dev/sdb --dm | sudo dmsetup create --concise
mkfs.ext2 -I 128 /dev/disk/by-id/dm-name-sdb-__linux.1
mkswap  /dev/disk/by-id/dm-name-sdb-__linux.2
losetup -f  __linux.1
mkdir -p orig dest
sudo mount /dev/loop1 orig
sudo mount /dev/disk/by-id/dm-name-sdb-__linux.1 dest
sudo rsync -aAXv orig/ dest/
sudo vim dest/etc/fstab
sudo umount orig/ dest/
losetup -d /dev/loop1
dmsetup remove_all

@bignaux
Copy link
Member Author

bignaux commented Feb 26, 2022

poke @rickgaiser

@bignaux
Copy link
Member Author

bignaux commented Jun 15, 2022

Thanks @rickgaiser for your help.
All my work is systematically thrown away.

@rickgaiser
Copy link
Member

I've never used hdl-dump, and I don't understand what you're asking of me.
What's the question?
Why are you specifically asking it to me?

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.

2 participants