freedreno-zz / xf86-video-freedreno

Other
10 stars 3 forks source link

No screens found #2

Closed Nikolay0054 closed 8 years ago

Nikolay0054 commented 8 years ago

Adreno 305, Debian chroot on android. With fbdev works, but i got segmentation fault Log: Xorg.0.txt

robclark commented 8 years ago

I guess missing the kgsl drm shim driver enabled in kernel?

Nikolay0054 commented 8 years ago

I dont know, but i have kernel source code

Nikolay0054 commented 8 years ago

I need compile it with this driver?

robclark commented 8 years ago

yes.. also just double check that the device file exists and it isn't just a permissions problem or something like that.. but one way or another it is unable to open /dev/dri/card0

Nikolay0054 commented 8 years ago

Yep. No such file or directory

Nikolay0054 commented 8 years ago

I'm got no such file or directory errors, but it exist:(

Nikolay0054 commented 8 years ago

I changed pc and toolchain and i think it compile with no errors

Nikolay0054 commented 8 years ago

at the end error log.txt

robclark commented 8 years ago

not really sure.. maybe phone vendor provided an incorrect kernel src code drop? :-(

Nikolay0054 commented 8 years ago

can you give me a link to the toolchain, which you use?

Nikolay0054 commented 8 years ago

nevermind. i downloaded other version with no error

Nikolay0054 commented 8 years ago

new errors log1.txt

robclark commented 8 years ago

as far as toolchain, I had mostly just used fedora's already-packaged arm cross compiler toolchain. (Mostly just because I didn't have android NDK installed.) Although it's been a long time since I've built 3.4 or older kernel (I only have one computer left with an old enough gcc to build even 3.10, let alone older).

Nikolay0054 commented 8 years ago

You dont know how solve errors? log

robclark commented 8 years ago

offhand, no.. I think the kgsl_drm code is unfortunately not built/tested much by qcom so possibly they changed some things and didn't fix up the kgsl_drm code

Nikolay0054 commented 8 years ago

Can you tell me smartphone with drm support?

robclark commented 8 years ago

I believe qcom uses kgsl_drm for their tizen work.. not sure if that is in any shipping phone. I did manage to get it working once upon a time (several years back) on msm-3.4 based kernel in the nexus4.

Nikolay0054 commented 8 years ago

I can use freedreno driver without drm or another driver for adreno?

robclark commented 8 years ago

you need drm, at least for dri2/x11.. maybe with a new backend in libdrm_freedreno it could be made to work in stand-alone (single process, no compositor/x11) mode using only kgsl. Not sure if that is easier.. vs fixing whatever is needed to make kgsl_drm work.. and it is certainly more limiting.

Nikolay0054 commented 8 years ago

Ok now i don't have problem with drm, but i have new problems with usb :( log.txt

Nikolay0054 commented 8 years ago

Maybe i have bad compiler?

Nikolay0054 commented 8 years ago

Nevermind. I'm disabled coresight and FINALLY it compiles!

Nikolay0054 commented 8 years ago

How to pack zImage in boot.img?

robclark commented 8 years ago

which kernel version? Older (3.4/pre-devicetree) kernels (and maybe 3.10 kernels if you don't have a dt aware bootloader): abootimg --create ifc6410-boot.img -k ../msm/arm/arch/arm/boot/zImage -f ./bootimg.cfg -r initramfs-3.4.0-g0f0fed7-00108-gf736ca1-dirty.img

(and you can use abootimg -x, iirc, to extract an existing ramdisk/bootimg.cfg..)

With dt aware bootloader, you need to use a different tool.. I'll have to dig up git tree / instructions..

Nikolay0054 commented 8 years ago

I'm got error about missing dtb. Trying compile it from dts.

Nikolay0054 commented 8 years ago

Found 0 unique DTB(s) :( How to compile dts files?

robclark commented 8 years ago

try the dtbs make target, ie. make ARCH=.... ... dtbs?

Nikolay0054 commented 8 years ago

The purpose of `arch/arm/boot/dtbs' does not require the execution of commands.(Google Translate) make ARCH=arm dtbs

Nikolay0054 commented 8 years ago

ITS ALIVE! MY FIRST CUSTOM KERNEL

Nikolay0054 commented 8 years ago

wifi not working, bluetooth working, charge not working, otg not working

Nikolay0054 commented 8 years ago

maybe i have wrong source code

Nikolay0054 commented 8 years ago

Can you help me compile freedreno on arch?

Nikolay0054 commented 8 years ago

i'm compiled xf86 freedreno and installed it but xorg says module doesnt exist

robclark commented 8 years ago

re: wifi (and possibly bluetooth?), on at least some of the devices (like, iirc, my nexus4) they used compat-wireless tree to build a newer wifi driver with older kernel.

re: xorg/freedreno, be sure to build libdrm with --enable-freedreno-kgsl. Double check the device files exist (it should look for /dev/fb0, /dev/dri/card0, and /dev/kgsl-3d0).. path to fb device might be different on android but there is a config file option, like:

Option "fb" "/dev/graphics/fb0"

double check the freedreno man page..

Nikolay0054 commented 8 years ago

I found a lot of dts files for my phone. Maybe i need to add all of them? files.txt