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

coreboot-collector: Custom { kind: Other, error: MapFailed(Os { code: 1, kind: PermissionDenied, message: "Operation not permitted" }) } #4

Open
Kreyren opened this issue Aug 9, 2024 · 0 comments

Comments

@Kreyren
Copy link

Kreyren commented Aug 9, 2024

$ cargo build --release
    Finished release [optimized] target(s) in 0.04s

$ sudo target/release/coreboot-collector 
## PCI ##
PCI Device: 0000:00:00.0: Class 0x00060000, Vendor 0x8086, Device 0x4649, Revision 0x02
PCI Device: 0000:00:01.0: Class 0x00060400, Vendor 0x8086, Device 0x460D, Revision 0x02
PCI Device: 0000:00:02.0: Class 0x00030000, Vendor 0x8086, Device 0x46A3, Revision 0x0C
PCI Device: 0000:00:04.0: Class 0x00118000, Vendor 0x8086, Device 0x461D, Revision 0x02
PCI Device: 0000:00:06.0: Class 0x00060400, Vendor 0x8086, Device 0x464D, Revision 0x02
PCI Device: 0000:00:08.0: Class 0x00088000, Vendor 0x8086, Device 0x464F, Revision 0x02
PCI Device: 0000:00:0a.0: Class 0x00118000, Vendor 0x8086, Device 0x467D, Revision 0x01
PCI Device: 0000:00:0d.0: Class 0x000C0330, Vendor 0x8086, Device 0x461E, Revision 0x02
PCI Device: 0000:00:14.0: Class 0x000C0330, Vendor 0x8086, Device 0x51ED, Revision 0x01
PCI Device: 0000:00:14.2: Class 0x00050000, Vendor 0x8086, Device 0x51EF, Revision 0x01
PCI Device: 0000:00:14.3: Class 0x00028000, Vendor 0x8086, Device 0x51F0, Revision 0x01
PCI Device: 0000:00:15.0: Class 0x000C8000, Vendor 0x8086, Device 0x51E8, Revision 0x01
PCI Device: 0000:00:16.0: Class 0x00078000, Vendor 0x8086, Device 0x51E0, Revision 0x01
PCI Device: 0000:00:1c.0: Class 0x00060400, Vendor 0x8086, Device 0x51BC, Revision 0x01
PCI Device: 0000:00:1d.0: Class 0x00060400, Vendor 0x8086, Device 0x51B0, Revision 0x01
PCI Device: 0000:00:1d.2: Class 0x00060400, Vendor 0x8086, Device 0x51B2, Revision 0x01
PCI Device: 0000:00:1f.0: Class 0x00060100, Vendor 0x8086, Device 0x5182, Revision 0x01
PCI Device: 0000:00:1f.3: Class 0x00040380, Vendor 0x8086, Device 0x51C8, Revision 0x01
PCI Device: 0000:00:1f.4: Class 0x000C0500, Vendor 0x8086, Device 0x51A3, Revision 0x01
PCI Device: 0000:00:1f.5: Class 0x000C8000, Vendor 0x8086, Device 0x51A4, Revision 0x01
PCI Device: 0000:01:00.0: Class 0x00030000, Vendor 0x10DE, Device 0x28A0, Revision 0xA1
PCI Device: 0000:01:00.1: Class 0x00040300, Vendor 0x10DE, Device 0x22BE, Revision 0xA1
PCI Device: 0000:02:00.0: Class 0x00010802, Vendor 0x025E, Device 0xF1AB, Revision 0x03
PCI Device: 0000:03:00.0: Class 0x00010802, Vendor 0x1E0F, Device 0x000C, Revision 0x00
PCI Device: 0000:04:00.0: Class 0x00020000, Vendor 0x10EC, Device 0x8168, Revision 0x15
PCI Device: 0000:05:00.0: Class 0x00080501, Vendor 0x1217, Device 0x8621, Revision 0x01
## GPIO ##
600 Series PCH-LP
coreboot-collector: Custom { kind: Other, error: MapFailed(Os { code: 1, kind: PermissionDenied, message: "Operation not permitted" }) }

$ cargo --version
cargo 1.77.1

$ rustc --version
rustc 1.77.2 (25ef9e3d8 2024-04-09) (built from a source tarball)

Experienced on a NiXium's system https://github.com/NiXium-org/NiXium/tree/41a245009dc543c08ed7dd0b3be55958b6921167/src/nixos/machines/tupac using devshell https://github.com/Kreyren/firmware-open/blob/e469d5a7e1b17154dbceacc3b27ffbfd631e05c9/flake.nix

To get the same environment install nix and run nix --extra-experimental-features 'nix-command flakes' shell 'github:kreyren/firmware-open/1ba6a0f7d07363bf70ea4f8ebf7e96730b52176b#devShells.x86_64-linux.default'

It doesn't seem to be an issue on the system side as /dev/mem is readable from root.

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

1 participant