msm8916-mainline / qhypstub Goto Github PK
View Code? Open in Web Editor NEW"hyp" firmware stub for Qualcomm MSM8916/MSM8939 that allows using EL2/KVM
License: GNU General Public License v2.0
"hyp" firmware stub for Qualcomm MSM8916/MSM8939 that allows using EL2/KVM
License: GNU General Public License v2.0
Found some MSM8916 devices shipped with trustzone firmware running entirely in AArch32 mode (both EL3 and Secure EL1)
$readelf -a tz.elf
ELF Header:
Magic: 7f 45 4c 46 01 01 01 00 00 00 00 00 00 00 00 00
Class: ELF32
Data: 2's complement, little endian
Version: 1 (current)
OS/ABI: UNIX - System V
ABI Version: 0
Type: EXEC (Executable file)
Machine: ARM
Version: 0x1
Entry point address: 0x86500000
Start of program headers: 52 (bytes into file)
Start of section headers: 0 (bytes into file)
Flags: 0x5000002, Version5 EABI,
Size of this header: 52 (bytes)
Size of program headers: 32 (bytes)
Number of program headers: 10
Size of section headers: 40 (bytes)
Number of section headers: 0
Section header string table index: 0
There are two possible reasons for this. One is that QC switched to pure-AA32 TZBSP on LA at some point.
Another is devices under Tested devices
are actually using WP firmware, which has AA64 TZ(EL3-only) and HYP.
According to ARMv8-A spec, if EL3 runs in AArch32, then all lower ELs have to run under AA32 as well.
Therefore, devices with these TZ firmwares, when flashed with qhypstub, won't boot anymore.
Possible solutions:
https://extrowerk.com/2022/07/31/OpenStick/
I'm tempted to go dig mine out, see if it's a SD410 and see if this works...
Hi stephan, sorry to bother again. I've bought a Redmi2 to install PostmarketOS, but found out that the msm8916 SoC didn't support GICv3. I'm wondering if the msm8939 support for GICv3. All I want is to run GICv3 VMs on those old Android phones.
Thanks a lot.
Msm 8937 && sdm 865 ..
My bad.. i already enabled KVM but not get success 😞
Please help
I have a msm8953 device and I want to enable KVM on it.I have a kernel with KVM module builded.But I have not finished lk1st build,the drive have some bug.
Hi, I'm interested in trying to port qhypstub
to msm8953 for my old phone Xiaomi Redmi 6 Pro. But I don't know how the find the two addresses mentioned in README . Would someone be so kind to tell me that if there are any documents available?
Thanks a lot!
Hello.
Found this project and it looks very interesting. Is there any plan to look into PSCI/HVC for the purposes of
Understood lk2nd already does spin-table SMP boot. A project I am involved with is interested in PSCI for 8916/8936/8939.
If you have plans to do it or some way for us to collaborate on it ?
Anyone see my pull requests?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.