yashsingh1/xdaforums huggingface dataset:
[Android Software Development] limited_imagination:
Hi all, I have an Acer B1-750, and I'm trying to compile a module to run an FTDI serial USB cable on it. So I have been covering a lot of the same ground as playitlouder.

I got far enough along to run menuconfig, but I'm now stumped because the menu that comes up fails to give me the "USB Serial Converter Support" option in the menu.

The serial drivers are all there in the source code, in the /kernel/linux-vespa2/kernel/drivers/usb/serial/ folder. But yet none of them comes up in menuconfig.

Hopefully someone can give me some advice as to how to enable this part of the menu.

I am working with the same vespa2 source code as playitlouder, and like him I am running Linux through a 64-bit virtual machine on my PC.

I managed to get a .config file generated by the command:

make ARCH=x86_64 CROSS_COMPILE=Linux-x86_64- x86_64_defconfig

Then I started menuconfig this way:

make menuconfig ARCH=x86_64 CROSS_COMPILE=linux-x86_64-

From the first menu that comes up, I select "Device Drivers", and then "USB Support".

Under the heading "*** USB port drivers ***" there is nothing at all, whereas I should be seeing the option "USB Serial Converter Support" right under there.

I must be missing something in some Kconfig or makefile file in the source code, right?

Can anyone help me get menuconfig to enable the missing "USB Serial Converter Support" option in the menu?
[Android Software Development] yarpiin:
i think best way to star is open makefile from folder containing your source code and look if it is there line containing your USB converter of yes copy part of line containing CONFIG XXXX paste it to your kernel config file at the bottom so it looks like CONFIG XXX =y to have it built in in kernel or instead y put m for module
[Android Software Development] yarpiin:
if you have setted up config file correctly no need to run menuconfig.

can you post link to your source if you have it on github ?

i think you havent followed correctly make sure that files listed in konfig have xxx.c file in folder second as i said before open makefile in serial folder and check if this line is there obj-$(CONFIG_USB_SERIAL_FTDI_SIO)	+= ftdi_zio.o

and your deconfig line should look like this

CONFIG_USB_SERIAL_FTDI_ZIO=m

i cant find source code for your device , can you post link and what deconfig file you use as acer 710 have 20 devices in config folder :)
[Android Software Development] limited_imagination:
Hi there, I am using the kernel source code that is posted on the Acer website for the B1-750 tablet. It shows up under the "Documents" tab of the support page for that device.

Here is a direct link to the source code that should work for you: http://global-download.acer.com/GDF...E 7&Step3=B1-750&OS=ALL&LC=en&BC=ACER&SC=PA_6

If you have a chance to look at it, that would be awesome.

I have attached a zipped version of my .config file to this post, in case that's useful. You'll see that with my new edits, the file does now contain CONFIG_USB_SERIAL_FTDI_SIO=m, along with an "m" for just about every other USB serial device on the list, just for testing. But none of them show up in menuconfig yet.

I am using menuconfig to build the module because that's what's recommended in the FTDI manual for installing the driver on Android: http://www.ftdichip.com/Support/Doc...TDI_Devices_VCP_Driver_Support_to_Android.pdf

Regarding your first comment about the Kconfig file, I'm not sure which Kconfig file you mean, since there's one in every folder. In the folder linux-vespa2/kernel/drivers/usb/serial, there are the files "ftdi_sio.c" and "ftdi_sio.h", but there doesn't seem to be any Kconfig file that refers to them by those specific names.

Regarding your second comment, as you'll see if you look at the source code, in the makefile of the serial folder, there are entries for all the USB serial drivers, including the entry:

obj-$(CONFIG_USB_SERIAL_FTDI_SIO)	+= ftdi_sio.o
[Android Software Development] yarpiin:
ok it is configured in your config as module try to edit cofig file and change it to built in so change it from =m to =y also try compile to without menu config
[Android Software Development] yarpiin:
it is missing a file so find out what is it and if your source is complete if it is seem like you its not supported so exclute it from your config
[Android Software Development] yarpiin:
sorry i meant deconfig , it happens as you see there is file missing
[Android Software Development] Hacker432:
Hi guys

I decided to make a custom kernel for my device and I succeed to add features and to make it compile.

Now I'm facing bugs and I would like to correct them ^^

I have a big problem with governors

Only lionfish and darkness work

Others make the CPU stay all the time at max frequency

Any idea?

My sources are here:

https://github.com/Hacker432-Y550/android_kernel_huawei_msm8916

[MENTION=5991747]neonkat[/MENTION]

Inviato dal mio Y550-L01 utilizzando Tapatalk
[Android Software Development] neonkat:
you will have to modify the governer parameters.darkness,despair,zzmove and others do not need any modif. because they do not have cpu freq. defined in them.
[Android Software Development] Hacker432:
Modified in sources or in kernel auditor?

ZZMove works only if its inbuilt hotplug is deactivated

Inviato dal mio Y550-L01 utilizzando Tapatalk
[Android Software Development] neonkat:
you can modify with ka or in source or with scripts(runs on boot).
[Android Software Development] somadsul:
Hey neonkat I am trying to build cm13 rom with new kernel sources all is set but while packing system img its giving me error boot img path is wrong, but I am not changed anything without toolchain directory in makefile of kernel.

Since its giving me error for boot image path is wrong [emoji20]

Do you know that other changes also need means in device repo or vendor repo also?

sent from my Tencent OS G900H
[Android Software Development] neonkat:
can you link your sources?old and new ones?
[Android Software Development] limited_imagination:
Excellent, thank you for explaining that.

I removed the lines that caused fatal errors in the defconfig file, and then I let it get re-written as a .config file.

Then I compiled it, and it worked.

I got the happy message, "Kernel: arch/x86/boot/bzImage is ready (#8)", and then it went on to build the modules, including the whole object of the exercise for me, the "ftdi_sio.ko" driver, which I copied to the B1-750.

So I opened a terminal in the B1-750, and tried the command, "insmod ftdi_sio.ko".

But I get this error:

insmod: init_module 'ftdi_sio.ko' failed (Required key not available)

Did I fail to set up the defconfig file to generate the "Required key"?

Thanks again for all your help.
[Android Software Development] xDARKMATT3Rx:
CPU Governors, Hotplugs, Etc.

Hi [MENTION=5991747]neonkat[/MENTION],

I have a quick question if you have a minute. Where can I find the most updated cpu governors and hotplugs, etc.? I already added these to my kernel by cherry-picking or downloading the files from other kernels and making all the necessary changes, however, I am trying to find the most recent version of say the intelliactive governor for example that has the latest changes by faux123 as I believe I might have an older version of it since I got it from an older kernel.
[Android Software Development] neonkat:
faux123 seems busy with life,haven't really seen some work of work going on in his git.

for governers and other stuffs,you can look into the git of the original devs,like alucard24,franco, etc etc and notice and implement changes accordingly.

[MENTION=2436412]xDARKMATT3Rx[/MENTION]

https://github.com/dorimanx/DORIMANX_LG_STOCK_LP_KERNEL--this place is gold,you will get all latest stuffs here.and its for 3.4 based kernels,may or may not work for 3.10.
[Android Software Development] ABSathe:
Any fix for this ??

I'm using 32 bit Ubuntu 12.04.5 as stated

CHK include/linux/version.h

CHK include/generated/utsrelease.h

CC scripts/mod/empty.o

make[1]: `include/generated/mach-types.h' is up to date.

CC kernel/bounds.s

/home/ashutosh/android/kernel/arm-eabi-7.0/bin/arm-eabi-gcc -Wp,-MD,scripts/mod/.empty.o.d -nostdinc -isystem /home/ashutosh/android/kernel/arm-eabi-7.0/bin/arm-eabi-gcc -print-file-name=include [Errno 8] Exec format error -I/home/ashutosh/android/arch/arm/include -Iarch/arm/include/generated -Iinclude -include /home/ashutosh/android/include/linux/kconfig.h -D__KERNEL__ -mlittle-endian -Iarch/arm/mach-msm/include -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -Wno-sizeof-pointer-memaccess -fno-delete-null-pointer-checks -fgnu89-inline -O2 -mabi=aapcs-linux -mno-thumb-interwork -funwind-tables -D__LINUX_ARM_ARCH__=7 -march=armv7-a -msoft-float -Uarm -fomit-frame-pointer -g -DKBUILD_STR(s)=#s -DKBUILD_BASENAME=KBUILD_STR(empty) -DKBUILD_MODNAME=KBUILD_STR(empty) -c -o scripts/mod/.tmp_empty.o scripts/mod/empty.c [Errno 8] Exec format error

make[2]: *** [scripts/mod/empty.o] Error 8

make[1]: *** [scripts/mod] Error 2

make: *** [scripts] Error 2

make: *** Waiting for unfinished jobs....

/home/ashutosh/android/kernel/arm-eabi-7.0/bin/arm-eabi-gcc -Wp,-MD,kernel/.bounds.s.d -nostdinc -isystem /home/ashutosh/android/kernel/arm-eabi-7.0/bin/arm-eabi-gcc -print-file-name=include [Errno 8] Exec format error -I/home/ashutosh/android/arch/arm/include -Iarch/arm/include/generated -Iinclude -include /home/ashutosh/android/include/linux/kconfig.h -D__KERNEL__ -mlittle-endian -Iarch/arm/mach-msm/include -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -Wno-sizeof-pointer-memaccess -fno-delete-null-pointer-checks -fgnu89-inline -O2 -mabi=aapcs-linux -mno-thumb-interwork -funwind-tables -D__LINUX_ARM_ARCH__=7 -march=armv7-a -msoft-float -Uarm -fomit-frame-pointer -g -DKBUILD_STR(s)=#s -DKBUILD_BASENAME=KBUILD_STR(bounds) -DKBUILD_MODNAME=KBUILD_STR(bounds) -fverbose-asm -S -o kernel/bounds.s kernel/bounds.c [Errno 8] Exec format error

make[1]: *** [kernel/bounds.s] Error 8

make: *** [prepare0] Error 2

Thanks
[Android Software Development] xDARKMATT3Rx:
Hey [MENTION=5991747]neonkat[/MENTION],

Thank you for the link to the repository for updated cpu governors, etc. I tried taking a couple cpu governors from the repository and updated my kernel. I am getting an error with the ondemand cpu governor, do you know how I can fix this?:

drivers/cpufreq/cpufreq_ondemand.c: In function 'dbs_check_cpu':

drivers/cpufreq/cpufreq_ondemand.c:492:3: error: implicit declaration of function 'get_cpu_idle_time' [-Werror=implicit-function-declaration]

cur_idle_time = get_cpu_idle_time(j, &cur_wall_time, 0);

^

drivers/cpufreq/cpufreq_ondemand.c: In function 'dbs_timer_init':

drivers/cpufreq/cpufreq_ondemand.c:708:2: error: implicit declaration of function 'INIT_DEFERRABLE_WORK' [-Werror=implicit-function-declaration]

INIT_DEFERRABLE_WORK(&dbs_info->work, do_dbs_timer);

^

cc1: some warnings being treated as errors

make[2]: *** [drivers/cpufreq/cpufreq_ondemand.o] Error 1

make[1]: *** [drivers/cpufreq] Error 2

make: *** [drivers] Error 2

make: *** Waiting for unfinished jobs....

Thank you very much in advance for your time!!
[Android Software Development] limjh16:
AFAIK only 64 bit works.
[Android Software Development] ABSathe:
But guide says we're using 32 bit Linux system

Can you tell me a way by which I can do it on 32 bit systems ?
[Android Software Development] neonkat:
this and this should fix it.
[Android Software Development] solis_f:
Any good toolchain for 64bit qualcomm cpus? i think the one in the op post is only for 32bit
[Android Software Development] yarpiin:
just google uber bitbucket it has all uber toolchains i use 4.9 to compile mine snapdragon 810 kernel
[Android Software Development] apknl:
Hi [MENTION=7639851]friozi[/MENTION],

Did you manage to fix this error and if so can you please guide me to the right solution fix? Thanks in advance.

http://xdaforums.com/android/software/ultimate-guide-compile-android-kernel-t2871276/page40

/home/androida/toolchain/bin/arm-linux-androideabi-ld: warning: unwinding may not work because EXIDX input section 6 of sound/built-in.o is not in EXIDX output section
[Android Software Development] CodeElixir:
Thanks

Very descriptive tutorial. Thanks for this.
[Android Software Development] made_in_androland:
how to convert elf to zip flashable??
[Android Software Development] SGH-i200:
init_module key?

Do found the answer elsewhere? I'm interested!
[Android Software Development] salman_dude:
choice value used outside its choice group i got this while compiling kernel,i hav ubuntu 32 bit & compiling kernel of A800f mm 6.0.1

& in source file say's use toolchain arm-eabi 4.8,does arm cortex a15 linaro 4.8 toolchain work? or i hav to use arm-eabi 4.4.3 from Doomlord?

any help please...
[Android Software Development] Eliminator79:
I received some PMs complaining about the discontinuity of youtube videos about the guide. The reasion i stopped uploading videos of the guide is that no body is supporting it and no body is viewing it too.

Thanks
[Android Software Development] RJinxed:
Any fix for this?

ubuntu@ubuntu:~/android$ make -j4
make: /home/ubuntu/android/kernel/arm-eabi-4.4.3/bin/arm-eabi-gcc: Command not found
CHK include/linux/version.h
CHK include/generated/utsrelease.h
HOSTCC scripts/kallsyms
CC scripts/mod/empty.o
/bin/sh: 1: /home/ubuntu/android/kernel/arm-eabi-4.4.3/bin/arm-eabi-gcc: not found
scripts/Makefile.build:305: recipe for target 'scripts/mod/empty.o' failed
make[2]: *** [scripts/mod/empty.o] Error 127
scripts/Makefile.build:441: recipe for target 'scripts/mod' failed
make[1]: *** [scripts/mod] Error 2
make[1]: *** Waiting for unfinished jobs....
HOSTCC scripts/conmakehash
make[1]: 'include/generated/mach-types.h' is up to date.
CC kernel/bounds.s
/bin/sh: 1: /home/ubuntu/android/kernel/arm-eabi-4.4.3/bin/arm-eabi-gcc: not found
/home/ubuntu/android/./Kbuild:35: recipe for target 'kernel/bounds.s' failed
make[1]: *** [kernel/bounds.s] Error 127
Makefile:1002: recipe for target 'prepare0' failed
make: *** [prepare0] Error 2
make: *** Waiting for unfinished jobs....
Makefile:521: recipe for target 'scripts' failed
make: *** [scripts] Error 2
[Android Software Development] DJKristy:
Link of the videos. Pls
[Android Software Development] Eliminator79:
I uploaded one video.

It's link is in the original thread
[Android Software Development] flashallthetime:
I'm having a bit of issue finding arch/arm/config/deconfig file for moto Z play (addison) all I see is msm 8907, 8973, nothing with user_deconfig.
[Android Software Development] musamaashraf:
Can you please compile a kernel for my device i am new to developing and i am trying to create lineageOS 14.1 for my device but unfortunately m stuck at creating the kernel. "make -j82" gives me error like this :

usama@usama-VirtualBox:~/android/kernel$ make -j82

make[1]: Nothing to be done for 'all'.

CHK include/generated/uapi/linux/version.h

CHK include/generated/utsrelease.h

CC scripts/mod/empty.o

CC scripts/mod/devicetable-offsets.s

scripts/mod/empty.c:1:0: error: code model kernel does not support PIC mode

/* empty file to figure out endianness / word size */

scripts/Makefile.build:308: recipe for target 'scripts/mod/empty.o' failed

make[2]: *** [scripts/mod/empty.o] Error 1

make[2]: *** Waiting for unfinished jobs....

scripts/mod/devicetable-offsets.c:1:0: error: code model kernel does not support PIC mode

#include <linux/kbuild.h>

/home/usama/android/kernel/scripts/mod/Makefile:34: recipe for target 'scripts/mod/devicetable-offsets.s' failed

make[2]: *** [scripts/mod/devicetable-offsets.s] Error 1

scripts/Makefile.build:455: recipe for target 'scripts/mod' failed

make[1]: *** [scripts/mod] Error 2

Makefile:527: recipe for target 'scripts' failed

make: *** [scripts] Error 2

please tell me the fix or do me a favour by just compiling the kernel. Here are all the details and source code:

https://xdaforums.com/honor-7/help/request-huawei-shotx-aka-honor-7i-t3566653

hope for your help.
[Android Software Development] ridersam:
thanx dev, you're really helping us.. btw, can I use someone's else source which is already modified, I can't find my source for nougat, only lollipop's source is available..

help appreciated.
[Android Software Development] Junnie:
what is mean in your tutorial fine defconfigs like

It's written in this way something_DeviceCodename_user_defconfig

??

my device is asus Zenfone GO ZB500KL device code X00AD

---------- Post added at 07:19 AM ---------- Previous post was at 07:17 AM ----------

try sudo apt-get update ?

try to change your local repo that include the lib , google it
[Android Software Development] Charles IV:
great tutorial, thanks. Is an explanation for the overclocking coming?

Can you include undervolting?
[Android Software Development] AxelBlaz3:
Problem with adding I/O schedulers :(

Well, this is the most efficient guide on the web according to me :laugh:. But i don't know why this is happening to me. I'm trying to add ROW I/O scheduler to my kernel. I've added the .c file in block folder and done all the configurations you've guided me here. But when i open kernel auditor for choosing I/O schedulers i don't find ROW there for choosing :confused:

Hope you'll help me with my problem.

Thanks :cowboy::angel:

Awaiting your reply.
[Android Software Development] kevintm78:
Try adding to the io schedulers to your defconfig like in this commit. That's what I had to do.
[Android Software Development] AxelBlaz3:
Thanks :laugh:, It worked!
[Android Software Development] AxelBlaz3:
Have a problem again :(

My device's default I/O Scheduler is cfq. So when i choose ROW in kernel auditor, it changes to row. But when I restart the app it shows cfq again instead of showing row.:confused:
[Android Software Development] :
Guys i need help...I'm Building kernel for idol3 (arm64 device-Android 7.1.2)

This is what error i get ( i think that i have issues with toolchain)

Screenshoot:

Source:

https://github.com/IDOL-3/android_kernel_alcatel_msm8916
[Android Software Development] 3lambda:
Exact correct your path :)
[Android Software Development] :
Fixed :)
[Android Software Development] xBane_:
In the nextbit robin 7.1.1 kernel source there is no file with the _user_ tag in either arm or arm64. Also, do i navigate to the arch/arm/configs via the cd command to issue the "ARCH=arm CROSS_COMPILE=~/arm-eabi-4.4.3/bin/arm-eabi- make Device Name" and "make ARCH=arm CROSS_COMPILE=~/arm-eabi-4.4.3/bin/arm-eabi- menuconfig"?

I tried using the device's codename (Ether), it's model name (Robin), it's chipset (MSM8992), and the only reference i could find to nextbit (In the arm64/configs folder) NBQ (NBQ is what all robin serial numbers start with). None of them worked
[Android Software Development] The~Skater~187:
very helpful guide. Thank you for this.
[Android Software Development] mrpascal:
What should i do to get my kernel in "boot.img" file . . . .

Actually i am making kernel for S3

Is there any guide ??:confused:

I want your help mr [MENTION=5373435]Eliminator79[/MENTION] :highfive:
[Android Software Development] neonkat:
compiling the kernel will give you a zimage or zimage-dtb.

either use android image kitchen(by osmosis,do a google search to get xda links),extract your current rom' boot.img and replace with your zimage and flash or use anykernel script or varunchitre' script to flash kernel.
[Android Software Development] blry:
Compile a part of android from source

Hi, Guys! I have Nexus 6, with Pure Nexus (7.1.1-20170106-OFFICIAL). I'd like to intercept all the text (or just passwords) I enter through default keyboard.

I see only one way to do it: Customize default Android keyboard by handling keyboard events (on enter press button event - KEYCODE_ENTER) through source code editing.

So I need to customize the default keyboard and compile it. I will definitely figure out how to customize the source code.

But where can I find some guide how to compile customized keyboard and install it to my device?

Thanks,

Alexander.
[Android Software Development] jordandroid64:
Hey, this Tutorial still available in 2017 ? It will Works for a nubia device ?
[Android Software Development] somadsul:
Yes 90% processes are same given guide but depends on version which you building & for all devices build process is same
[Android Software Development] Ali Haide 001:
Hey, everyone:o

I am here to ask something regarding kernel development i want to add maple I/O in my kernel.

My device is xperia e3.

Running 7.1.2 (Unofficial Lineage 14.1)

3.4.0 Kernel Version.

I want to know do i need to get a specific maple for my device or i can choose from any kernel for amy device.

Actually, i am developing for this phn with one of my friend he knows a lot bout Custom ROM development but he don't know bout kernels this much so i wanted to learn development so i asked him he said you can learn kernel development so that one of us can do kernels and the other roms.

So,in short i am a newb but i have learnt few things like we added intelli_plug and zen i/o in our kernel but i am confused bout this i/o cause my frnd is saying we need a specific maple io for our kernel.

Please help me if anyone can.

I will be very grateful to you:angel:

Thanks in advance:fingers-crossed:
[Android Software Development] yarpiin:
see this should help .

https://github.com/frap129/angler/commits/dev/or/block/maple-iosched.c
[Android Software Development] Ali Haide 001:
Thank you, Buddy:o

I will tell you if it works;)
[Android Software Development] StaticBlaze:
Hello there, thanks for the guide.

Can someone please help on what TOOL CHAIN I should use (and how)?

I need to build a Kernel for my Marshmallow ARM-64 device.

I've followed all the steps, but I'm stuck with the TOOLCHAIN step.

(As I read somewhere the doomlord toolchain doesn't work for me)

I'm a complete noob in building kernels.

Help appreciated. Thanks!
[Android Software Development] yarpiin:
go to this thread and clone one of aarch64 kernel toolchains from bitbucket link provided in OP

https://xdaforums.com/android/software/toolchain-uber-toolchains-t3527997/page7

edit

direct link

https://bitbucket.org/matthewdalex/
[Android Software Development] StaticBlaze:
Thanks very much! :o:svetius:
[Android Software Development] Raj.S:
hi bro.... i'm having problem in the compiling step.... It shows me error in make -j8
[Android Software Development] :
Do you have a 7 core processor?

In the -j# command # means number of cores +1 so I'm guessing for your octa-core processor it should be -j9.
[Android Software Development] Raj.S:
My device has an octa core processor..... I will try tomorrow and see what happens.
[Android Software Development] Pierre2324:
Overclocking guide?
[Android Software Development] Pierre2324:
help needed when I write:

make -j3

it shows me:

CHK include/generated/uapi/linux/version.h

/bin/sh: 1: Syntax error: Unterminated quoted string

Makefile:902: recipe for target 'include/generated/utsrelease.h' failed

make: *** [include/generated/utsrelease.h] Error 2