TravMurav / slbounce

Secure-Launch implementation for Qualcomm devices
BSD 3-Clause "New" or "Revised" License
48 stars 0 forks source link

After active EL2, PCIe devices load failed #2

Closed CoiaPrant233 closed 7 months ago

CoiaPrant233 commented 7 months ago

After active EL2, PCIe devices load failed Known include WIFI, NVMe, GPU.

Directly boot from NVMe is impossible, so please use USB Disk.

dmesg lspci -vv

TravMurav commented 7 months ago

Hi, Linux is generally out of scope for this repo, as mentioned in the readme.

One needs to fix Linux to be able to use pcie on sc8280xp; you can check @jglathe 's work though: https://github.com/jglathe/linux_ms_dev_kit/tree/jg/el2-hackery

CoiaPrant233 commented 7 months ago

Thanks

jglathe commented 7 months ago

@CoiaPrant233 Current state of work is jg/el2-iommu-v6.8. It has PCIe and gpu - and /dev/kvm. The config to use for building is devkit_defconfig.

CoiaPrant233 commented 7 months ago

@CoiaPrant233 Current state of work is jg/el2-iommu-v6.8. It has PCIe and gpu - and /dev/kvm. The config to use for building is devkit_defconfig.

I use armbian config to build, PCIe not working. Let me try devkit_defconfig

CoiaPrant233 commented 7 months ago

Hi, Linux is generally out of scope for this repo, as mentioned in the readme.

One needs to fix Linux to be able to use pcie on sc8280xp; you can check @jglathe 's work though: https://github.com/jglathe/linux_ms_dev_kit/tree/jg/el2-hackery

It seems that the dtbhack just temporarily loads the dtb into the table, is there any permanent way to do it?

TravMurav commented 7 months ago

It seems that the dtbhack just temporarily loads the dtb into the table, is there any permanent way to do it?

Have better firmware :) I.e. Lenovo provides "Linux mode" on x13s that loads the dtb on boot.

dtbhack is, as the name suggests, a hack. Long term it shouldn't exist and will probably be gone.

(...) not like you need it anyway given you can use grub or efistub options to load your dtb, just need to pre-patch it for now, until linux is fixed

CoiaPrant233 commented 7 months ago

@CoiaPrant233 Current state of work is jg/el2-iommu-v6.8. It has PCIe and gpu - and /dev/kvm. The config to use for building is devkit_defconfig.

I think its not working

here is dmesg

dmesg output

jglathe commented 7 months ago

I think its not working

here is dmesg

The dmesg says you're booting 6.7.0-rc6 on a WDK2023. Need to boot the 6.8 kernel, though. The dtb for the devkit arch/arm64/boot/dts/qcom/sc8280xp-microsoft-blackrock.dtb is necessary. For further discussion, please open an issue or discussion on my repo.

CoiaPrant233 commented 7 months ago

I think its not working here is dmesg

The dmesg says you're booting 6.7.0-rc6 on a WDK2023. Need to boot the 6.8 kernel, though. The dtb for the devkit arch/arm64/boot/dts/qcom/sc8280xp-microsoft-blackrock.dtb is necessary. For further discussion, please open an issue or discussion on my repo.

Thanks, Its working, but a problem is no video output. SSH is ok.

jglathe commented 7 months ago

The jg/el2-iommu-v6.8 branch has video, too. Typing on this box rn.