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

get_largest_cros_blockdev fails in pre-frecon shims #144

Open
ZeglolTheThirtySixth opened this issue Aug 8, 2024 · 18 comments
Open

get_largest_cros_blockdev fails in pre-frecon shims #144

ZeglolTheThirtySixth opened this issue Aug 8, 2024 · 18 comments

Comments

@ZeglolTheThirtySixth
Copy link

On all devices i've tested that are pre-frecon, get_largest_cros_blockdev completely fails, and every action that uses it (cryptosmite, disabling rootfs verification, touching .developer_mode, etc) exits complaining about the internal storage not having a ChromeOS install.

This has mostly been tested on Kefka, and I have not encountered this error when running a frecon shim (e.g. octopus, legacy sh1mmer doesn't change anything), and I'm not entirely sure what the cause is as I haven't done much testing, though if I had to guess it's likely an outdated or missing binary for sfdisk.

@BinBashBanana
Copy link
Member

Can you send the output of sfdisk -l -o name /dev/mmcblk0

@ZeglolTheThirtySixth
Copy link
Author

I was right, running sfdisk with those arguments shows "invalid option -- 'o'" and the rest of the sfdisk help menu. This was tested on the shim and in a chroot for the screenshot.
Screenshot 2024-08-13 at 3 51 07 PM

@DJ-Laser
Copy link

DJ-Laser commented Sep 9, 2024

This seems to work in the coral shim, sfdisk lists the -o option in the help menu, but I haven't tested any of the payloads. I'll try to cryptosmite a hana Chromebook soon, I'll comment the results here.

@BinBashBanana
Copy link
Member

should be resolved now :D

@ZeglolTheThirtySixth
Copy link
Author

@BinBashBanana Tested on latest commit, the issue still persists with all usages of get_largest_cros_blockdev continuining to return "No CrOS SSD found on device!"

@BinBashBanana
Copy link
Member

Is ChromeOS installed on the internal drive? It won't find it without. If it is, can you send the output of sfdisk -d /dev/mmcblk0

@ZeglolTheThirtySixth
Copy link
Author

ZeglolTheThirtySixth commented Nov 30, 2024

localhost / # sfdisk -d /dev/mmcblk0
# partition table of /dev/mmcblk0
unit: sectors

/dev/mmcblk0p1 : start=          1, size= 61071359, Id=ee
/dev/mmcblk0p2 : start=          0, size=               0, Id= 0
/dev/mmcblk0p3 : start=          0, size=               0, Id= 0
/dev/mmcblk0p4 : start=          0, size=               0, Id= 0

@BinBashBanana
A full stock ChromeOS is installed on the internal drive

@BinBashBanana
Copy link
Member

Uh oh... looks like sfdisk didn't used to support GPT. I'll have to use cgpt instead.

@BinBashBanana BinBashBanana reopened this Nov 30, 2024
@yalelhoel
Copy link

confirmed on octopus, attempted to use a legacy shim all i was greeted with when trying to use pretty much every option was, something complaining about no chromeos install

@ZeglolTheThirtySixth
Copy link
Author

I don't think octopus is affected by this issue as its shim was made at R72, the main device i've done my testing on is kefka, which was made for R48, the function relies on the presence of a ChromeOS install on the disk so if you didn't have one it won't work either way.

@yalelhoel
Copy link

i do have a chromeos install, it may just be that i frankensteined this shim together but from what i see, i have all dependencies

@yalelhoel
Copy link

yeah no, it just doesn't work, and for seemingly no reason

@BinBashBanana
Copy link
Member

You need ChromeOS installed on the disk for it to work.

@BinBashBanana
Copy link
Member

Misread, can you send the output of sfdisk -l /dev/mmcblk0

@BinBashBanana
Copy link
Member

@ZeglolTheThirtySixth static sfdisk will be bundled instead, as there are other functions that rely on sfdisk as well.

@yalelhoel
Copy link

as i said, chromeos is installed

@yalelhoel
Copy link

dont have access to the computer rn

@yalelhoel
Copy link

got the computer, it does indeed have chromeos installed on the mmc card in the chromebook it is in fact booted into chromeos currently

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

4 participants