Closed Nikolay0054 closed 8 years ago
I guess missing the kgsl drm shim driver enabled in kernel?
I dont know, but i have kernel source code
I need compile it with this driver?
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
Yep. No such file or directory
I'm got no such file or directory errors, but it exist:(
I changed pc and toolchain and i think it compile with no errors
at the end error log.txt
not really sure.. maybe phone vendor provided an incorrect kernel src code drop? :-(
can you give me a link to the toolchain, which you use?
nevermind. i downloaded other version with no error
new errors log1.txt
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).
You dont know how solve errors? log
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
Can you tell me smartphone with drm support?
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.
I can use freedreno driver without drm or another driver for adreno?
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.
Ok now i don't have problem with drm, but i have new problems with usb :( log.txt
Maybe i have bad compiler?
Nevermind. I'm disabled coresight and FINALLY it compiles!
How to pack zImage in boot.img?
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..
I'm got error about missing dtb. Trying compile it from dts.
Found 0 unique DTB(s) :( How to compile dts files?
try the dtbs
make target, ie. make ARCH=.... ... dtbs
?
The purpose of `arch/arm/boot/dtbs' does not require the execution of commands.(Google Translate) make ARCH=arm dtbs
ITS ALIVE! MY FIRST CUSTOM KERNEL
wifi not working, bluetooth working, charge not working, otg not working
maybe i have wrong source code
Can you help me compile freedreno on arch?
i'm compiled xf86 freedreno and installed it but xorg says module doesnt exist
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..
I found a lot of dts files for my phone. Maybe i need to add all of them? files.txt
Adreno 305, Debian chroot on android. With fbdev works, but i got segmentation fault Log: Xorg.0.txt