Hi Albert, > Il giorno 1 mag 2022, alle ore 13:24, Albert Jose Silva Tovar ha scritto: > >  > Hi Giulio, > > I tell you that the version I'm using is the following: Linux buildroot 3.10.0 #1 Tue Mar 12 15:28:07 CET 2019 armv7l GNU/Linux. Oh it’s a very old kernel, I don’t know how smoothly the patches would apply. They need backport almost for sure with some tweak. > > We are currently using a FocalTech-driver which is giving us problems with the touch screen although it recognizes the screen it does not work very well. It depends on the application in my experience, overall Hycon for me works really better than ft53/54 with glass/pet. > > The Linux buildroot version we are using is 2014 I will try to add the parks to the buildroot repository to download when compiling and let you know how it works. Oh, Buildroot version is very old too. > > I am new to this, it is still difficult to make changes but I will try. > > Thank you very much for the information. No problem Best regards —- Giulio Benetti Benetti Engineering sas > > Saludos Cordiales. > Ing. Albert Silva. > > > De: Giulio Benetti > Enviado: sábado, 30 de abril de 2022 5:42 p. m. > Para: Albert Jose Silva Tovar > Cc: buildroot > Asunto: Re: Pantalla tactil - hycon-hy46xx.c > > Hi Albert, > > I add Buildroot ML in Cc since it's in a good part Buildroot related and > other people can help too, > > On 29/04/22 14:28, Albert Jose Silva Tovar wrote: > > Good afternoon Julio, > > > > I am writing to you because of a contribution you made on this website: > > https://github.com/torvalds/linux/blob/master/drivers/input/touchscreen/hycon-hy46xx.c > > > > > > I would like to ask you a question! I have a builroot OS and I would > > like to integrate this drivers to it, the sources that you use, in > > principle where would I have to put them or what would be the process of > > adapting the driver? > > I think you're using a Linux version without the hycon driver, so what > you can do is to patch the kernel you're using by adding the patch to > Buildroot for Linux. > > So you have to: > 1. clone kernel git and checkout the version you're using or directly > use your own kernel repository if any > 2. clone mainline kernel > 3. extract my patches from the cloned mainline kernel with: > "git format-patch" command > 4. copy the patches to your buildroot/board/company/linux like this: > > https://github.com/buildroot/buildroot/tree/master/board/seeed/stm32mp157c-odyssey/patches > 5. use the BR2_GLOBAL_PATCH_DIR variable in your Buildroot defconfig, > like this: > > https://github.com/buildroot/buildroot/blob/master/configs/stm32mp157c_odyssey_defconfig#L3 > 6. rebuild Buildroot > > That is the way I would do it. > > Which Linux version are you using? > > Feel free to ask me more help also regarding the driver itself if you > encounter problems with back-porting my patches. > > Best regards > -- > Giulio Benetti > Benetti Engineering sas