LCD-show icon indicating copy to clipboard operation
LCD-show copied to clipboard

where is the source code ?

Open flatmax opened this issue 6 years ago • 14 comments

I would like to look at the source code - where can I find it ??

flatmax avatar May 09 '18 05:05 flatmax

Here? Don't exactly know what you're looking for but it's all here I guess...

lavolp3 avatar May 26 '18 11:05 lavolp3

Just binaries here - right. Where is the source code ?

flatmax avatar May 28 '18 00:05 flatmax

As far as I understand this is a specialized solution for a system of Raspberry Pi + Screen. Since it is mostly only a "correction" of already existing files (config.txt, cmdline.txt) and no driver per se, there is no source code for these available.

Regarding the .dtb overlays and the evdev files: These have just been put here, but have been developed somewhere else. You will need to look for the source code somewhere else.

lavolp3 avatar May 28 '18 11:05 lavolp3

@lavolp3 Do you know where exactly?

surban avatar Jun 07 '18 07:06 surban

Except for the /usr/*.dtb files, all of the other files are readable scripts and configuration files except for 3 DEB files in the tree top:

  • xinput-calibrator_0.7.5-1_armhf.deb
  • xserver-xorg-input-evdev_1%3a2.10.3-1_armhf.deb
  • xserver-xorg-input-evdev_2.10.5-1_armhf.deb

I cannot figure out why this vendor would be including *.deb files since they are readily maintained in Raspbian and Debian.

The Device Tree Blob (DTB) files should be documented by this vendor. An explanation of device blobs can be found here: https://www.raspberrypi.org/documentation/configuration/device-tree.md. The source of these DTBs should be included in this github project.

texadactyl avatar Jul 11 '18 15:07 texadactyl

My DEBs have been updated by the normal apt dist-upgrade process and I see no ill effects.

texadactyl avatar Jul 11 '18 15:07 texadactyl

Device Tree Blobs are a bit different from normal binaries, meaning that the compilation process does not actually do much more than erasing earlier redefinition of parameters and putting all node definitions together.
As a result, you can easily decompile dtb files using the device tree decompiler, dtc like this:

dtc -O dts -I dtb YOUR_BLOB_FILE

You can install dtc through your repository tools, look for device-tree-compiler and dtc.

tl;dr: you can get decompile the blob easily, you're gonna get what's effectively but not technically the original source like that

tesseract241 avatar Nov 25 '18 09:11 tesseract241

Agreed.

I can also disassemble Java class files, Python pyc files, and compiled object files for forensic purposes. Viewing the original source shows documentation at a detailed level as well as intent - useful for self-education as well as auditing. I prefer the philosophy of "show your work".

texadactyl avatar Nov 25 '18 18:11 texadactyl

As I said before, dtb are not "compiled" in the sense object files are, and dts files are little more than a list of parameters with the right values.
But you're right, comments would be deleted by the compilation process, so I guess you would lose those, if they happened to exist.

tesseract241 avatar Nov 25 '18 18:11 tesseract241

I ran dtc on bcm2710-rpi-3-b.dtb on an RPi3. The first 5 messages are warnings about directories that do not exist (E.g. /memory and /soc):

: Warning (unit_address_vs_reg): Node /memory has a reg or ranges property, but no unit name : Warning (unit_address_vs_reg): Node /soc has a reg or ranges property, but no unit name : Warning (unit_address_vs_reg): Node /soc/vchiq has a reg or ranges property, but no unit name : Warning (unit_address_vs_reg): Node /soc/local_intc has a reg or ranges property, but no unit name : Warning (unit_address_vs_reg): Node /soc/gpiomem has a reg or ranges property, but no unit name

Maybe their corresponding dts files are out of date or erroneously coded. No comments so it is a challenge to guess their intent.

In any case, they should not be supplying hardware-related device definitions that are subject to update during an apt process. I could understand X-Windows configuration changes based on specific hardware.

texadactyl avatar Nov 25 '18 19:11 texadactyl

Seriously, where is the original dtb sources? I'm not even sure it's legal for you to distribute them without the source.

wwahammy avatar May 23 '19 22:05 wwahammy

So,where is the original dtb sources? -_-???

Tianxiaomo avatar Oct 07 '20 08:10 Tianxiaomo

for ARM devices(like Raspberry): https://github.com/torvalds/linux/tree/master/arch/arm/boot/dts

cschweers avatar Oct 07 '20 11:10 cschweers

Another vendor to avoid.

xversial avatar Sep 26 '22 08:09 xversial