Building Android kernel with Touchscreen driver..

Moderators: meveric, mdrjr, odroid

Building Android kernel with Touchscreen driver..

Unread postby Lobo » Wed Jul 01, 2015 10:10 pm

Hello everyone I'm new to the forum ! I'm not a programmer and I'm spending hours and hours on the internet reading guides ...i have buyed an odroid C1 and i followed this tutorial (http://odroid.com/dokuwiki/doku.php?id=en:c1_building_kernel) on how to add drivers to the android kernel.(the version of Android is to ODROID C1 downloaded from the site ). But when I try to compile <-j4 modules> i'm getting an error and I am not able to find the zimage and other files .. these are the drivers of the touchscreen from the official site: http://www.cjtouch.com/down.asp?bid=93... can anyone help me? and sorry for my bad english guys! Many thanks in advance..
Lobo
 
Posts: 8
Joined: Wed Jul 01, 2015 8:57 pm
languages_spoken: english
ODROIDs: C1

Re: Building Android kernel with Touchscreen driver..

Unread postby tobetter » Thu Jul 02, 2015 12:13 am

Lobo wrote:Hello everyone I'm new to the forum ! I'm not a programmer and I'm spending hours and hours on the internet reading guides ...i have buyed an odroid C1 and i followed this tutorial (http://odroid.com/dokuwiki/doku.php?id=en:c1_building_kernel) on how to add drivers to the android kernel.(the version of Android is to ODROID C1 downloaded from the site ). But when I try to compile <-j4 modules> i'm getting an error and I am not able to find the zimage and other files .. these are the drivers of the touchscreen from the official site: http://www.cjtouch.com/down.asp?bid=93... can anyone help me? and sorry for my bad english guys! Many thanks in advance..

It would be good to have the error log to help you.
User avatar
tobetter
 
Posts: 2460
Joined: Mon Feb 25, 2013 10:55 am
Location: Paju, South Korea
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1

Re: Building Android kernel with Touchscreen driver..

Unread postby Lobo » Thu Jul 02, 2015 4:01 am

Image
Image
Image


This is the error of the command <make -j4> <make -j4 modules> <make uimage>...
i don't know why it happen..
ty and any suggestion will be appreciate.
Lobo
 
Posts: 8
Joined: Wed Jul 01, 2015 8:57 pm
languages_spoken: english
ODROIDs: C1

Re: Building Android kernel with Touchscreen driver..

Unread postby tobetter » Thu Jul 02, 2015 7:59 am

My quick review with your log is you have typo error on 'make uimage'. It must be 'make uImage'. And another thing is that you should try to add 'ARCH=arm' on each make command, I think it's already exported so make compiles arm tree.
User avatar
tobetter
 
Posts: 2460
Joined: Mon Feb 25, 2013 10:55 am
Location: Paju, South Korea
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1

Re: Building Android kernel with Touchscreen driver..

Unread postby Lobo » Thu Jul 02, 2015 12:36 pm

OK thank you i try when i'm at home..thank you so much for your answer..
Lobo
 
Posts: 8
Joined: Wed Jul 01, 2015 8:57 pm
languages_spoken: english
ODROIDs: C1

Re: Building Android kernel with Touchscreen driver..

Unread postby Lobo » Thu Jul 02, 2015 3:31 pm

Hi,

the command <make uImage> is correct, i've typed it 2 times :D, for <ARCH=arm> i hav modified the file ".bashrc" in home directory so when i add ARCH=arm it happens the same error

thank you in advance for reply.
Lobo
 
Posts: 8
Joined: Wed Jul 01, 2015 8:57 pm
languages_spoken: english
ODROIDs: C1

Re: Building Android kernel with Touchscreen driver..

Unread postby tobetter » Thu Jul 02, 2015 3:46 pm

Lobo wrote:Hi,

the command <make uImage> is correct, i've typed it 2 times :D, for <ARCH=arm> i hav modified the file ".bashrc" in home directory so when i add ARCH=arm it happens the same error

thank you in advance for reply.

Oh...yes...sorry, I didn't catch it up. :)
Would you check if your source tree is downloaded completely or the branch is correct?
User avatar
tobetter
 
Posts: 2460
Joined: Mon Feb 25, 2013 10:55 am
Location: Paju, South Korea
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1

Re: Building Android kernel with Touchscreen driver..

Unread postby Lobo » Thu Jul 02, 2015 5:00 pm

the tree is differnt only for the driver file,
Image

i don't know why.

please can you try to build it? i can't figure it out. Maybe i make some error in the process.

Thank you in advance
Lobo
 
Posts: 8
Joined: Wed Jul 01, 2015 8:57 pm
languages_spoken: english
ODROIDs: C1

Re: Building Android kernel with Touchscreen driver..

Unread postby tobetter » Thu Jul 02, 2015 5:17 pm

Lobo wrote:the tree is differnt only for the driver file,
Image

i don't know why.

please can you try to build it? i can't figure it out. Maybe i make some error in the process.

Thank you in advance

I have no issue to build the kernel tree at all. I think you should check if your source tree can be built without your changes first. If ok, try your change to port touch driver.
User avatar
tobetter
 
Posts: 2460
Joined: Mon Feb 25, 2013 10:55 am
Location: Paju, South Korea
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1

Re: Building Android kernel with Touchscreen driver..

Unread postby Lobo » Thu Jul 02, 2015 6:19 pm

same error with original files.. i dont know why.. XS
Lobo
 
Posts: 8
Joined: Wed Jul 01, 2015 8:57 pm
languages_spoken: english
ODROIDs: C1

Re: Building Android kernel with Touchscreen driver..

Unread postby tobetter » Thu Jul 02, 2015 6:30 pm

Lobo wrote:same error with original files.. i dont know why.. XS

Could you let me know full commands list what you tried from downloading the source tree?
User avatar
tobetter
 
Posts: 2460
Joined: Mon Feb 25, 2013 10:55 am
Location: Paju, South Korea
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1

Re: Building Android kernel with Touchscreen driver..

Unread postby Lobo » Thu Jul 02, 2015 7:29 pm

same command in the official guide for custom kernel: http://odroid.com/dokuwiki/doku.php?id= ... ing_kernel

$ sudo apt-get update
$ sudo apt-get install git
$ sudo apt-get install lib32stdc++6 lib32z1 lzop u-boot-tools
$ sudo apt-get install build-essential gcc
$ sudo apt-get install libncurses5-dev
$ sudo mkdir -p /opt/toolchains
$ sudo tar xvf gcc-linaro-arm-linux-gnueabihf-4.9-2014.09_linux.tar.xz -C /opt/toolchains/

( modified .bashrc woth parameters)
export ARCH=arm
export CROSS_COMPILE=arm-linux-gnueabihf-
export PATH=/opt/toolchains/gcc-linaro-arm-linux-gnueabihf-4.9-2014.09_linux/bin/:$PATH

(check install)

arm-linux-gnueabihf-gcc -v

$ git clone --depth 1 https://github.com/hardkernel/linux.git -b odroidc-3.10.y-android
$ cd linux


$ make menuconfig

$ make <-j4> *error
$ make <-j4> modules *error

thank you.
Lobo
 
Posts: 8
Joined: Wed Jul 01, 2015 8:57 pm
languages_spoken: english
ODROIDs: C1

Re: Building Android kernel with Touchscreen driver..

Unread postby tobetter » Thu Jul 02, 2015 7:50 pm

Lobo wrote:$ make menuconfig

Why make menuconfig here?
Please do make odroidc_defconfig and make uImage.
User avatar
tobetter
 
Posts: 2460
Joined: Mon Feb 25, 2013 10:55 am
Location: Paju, South Korea
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1

Re: Building Android kernel with Touchscreen driver..

Unread postby Lobo » Thu Jul 02, 2015 8:18 pm

same error as before... :( :(

Image

Image
Lobo
 
Posts: 8
Joined: Wed Jul 01, 2015 8:57 pm
languages_spoken: english
ODROIDs: C1


Return to Android

Who is online

Users browsing this forum: No registered users and 1 guest