aarch64-laptops / build

Build an Linux OS based image
221 stars 47 forks source link

Documentation on how to extract Device Tree data from Windows #79

Open TheOneWithTheBraid opened 2 years ago

TheOneWithTheBraid commented 2 years ago

I am looking for information on how to find proper information for creating device trees based on information found in the original Windows on ARM.

As expected, my Windows ARM device cannot boot without the proper device tree available. I'm just curious whether you figured out ways to easily find the required device information from the pre-installed Windows or even made utilities helping in automating device tree creation.

In case it helps, I'm working on a Samsung Galaxy Book S with a Snapdragon 8cx gen 1.

bm16ton commented 2 years ago

I would like to second that question. Dumping the tables wasnt a super help to me because i know nothing of acpi, in the hope I could redneck it easier I looked at device manager (was greatful to find you get to it same way as win98 my last windows pc) but say for fingerprint reader didnt seem to say basic things like spi bus number or irq gpio pin number etc. The windows program installer didnt have any apps for that either. In the end I accidentally stumbled across the schematic (posted justr a few issues ago) and that tells me most of everything i personally needed at the moment. Unfortunately I believe certain regulators are turned off that would let tools like i2cdetect (for our i2c hosts we would use "i2cdetect -r -y busnum") to show. Ie LSM6DSM i think needs s2a-1p8 enabled. I know sum kernel patches to bring gpio numbering the same as acpi but not sure if it covered all gpio or if i2c/spi bus numbers match up. Also not a clue currently how to translate bank/gpio number to linux gpio number. More questions then answers i know, i had hoped someone more knowledgable would have responded, but well get it eventually