Author Topic: How to change android kernel configuration? (turn on 1-wire)  (Read 8665 times)

Offline neyron

  • Newbie
  • *
  • Posts: 12
  • Karma: +0/-0
    • View Profile
How to change android kernel configuration? (turn on 1-wire)
« on: April 22, 2014, 08:21:50 am »
Hi,

I want to add 1-wire support for my cubieboard2 android kernel config to connect DS18B20. In lechee/linux-3.3 I 'make menuconfig' then I load config which I want to edit. I check 1-wire support and save config. But when I open that new config by gedit I see it's completely different than old config. Why?

Thanks,
NeyroN

Offline actkk2000

  • Hero Member
  • *****
  • Posts: 572
  • Karma: +2/-11
    • View Profile
Re: How to change android kernel configuration? (turn on 1-wire)
« Reply #1 on: April 22, 2014, 02:12:24 pm »
For Android we were using this SDK with kernel version 3.4.39 from cubieboard.org on CB2/CT:
http://dl.cubieboard.org/software/a20-cubieboard/android/android-SDK.zip

See if this post helps on anything:
http://www.cubieforums.com/index.php?topic=2369.msg15239#msg15239


Offline neyron

  • Newbie
  • *
  • Posts: 12
  • Karma: +0/-0
    • View Profile
Re: How to change android kernel configuration? (turn on 1-wire)
« Reply #2 on: April 23, 2014, 02:30:20 pm »
Thanks for your reply.

I've used android sdk with kernel 3.3 from http://dl.cubieboard.org/software/a20-cubieboard/android/A20-android-4.2.tar.xz for my cubieboard2 and its work correctly. I want to add 1-wire support so I 'make ARCH=arm menuconfig' in lichee/linux-3.3 folder but I can't find there all needed options.

From:
Device Drivers  --->
   
  • GPIO Support  --->

        <*>   GPIO Support for sunxi platform
    <*> Dallas's 1-wire support  --->
        <*> 1-wire sunxi support
        1-wire Bus Masters  --->
            <*> GPIO 1-wire busmaster
        1-wire Slaves  --->
            <*> Thermal family implementation

I can find only:
Device Drivers  --->
    <*> Dallas's 1-wire support  --->
        1-wire Bus Masters  --->
            <*> GPIO 1-wire busmaster
        1-wire Slaves  --->
            <*> Thermal family implementation

There is no GPIO Support for sunxi platform and 1-wire sunxi support options :(

I try using SDK from your link but when I update builded fimware to cubieboard2 then system doesn't start. I copy linux-3.4/arch/arm/configs/cubieboard2_defconfig to linux-3.4/.config  and  linux-3.4/arch/arm/configs/cubieboard2_defconfig to linux-3.4/arch/arm/configs/sun7ismp_android_defconfig .
Should I do something more to build correctly image for cubieboard2 by that SDK?


Thanks
NeyroN

Offline actkk2000

  • Hero Member
  • *****
  • Posts: 572
  • Karma: +2/-11
    • View Profile
Re: How to change android kernel configuration? (turn on 1-wire)
« Reply #3 on: April 23, 2014, 02:41:24 pm »
I guess you should follow these instructions, only that using the newer SDK:
http://docs.cubieboard.org/tutorials/cb2/development/building_your_own_android_image

Unfortunately I have a Cubietruck but SDK should be the same for both boards...

Offline neyron

  • Newbie
  • *
  • Posts: 12
  • Karma: +0/-0
    • View Profile
Re: How to change android kernel configuration? (turn on 1-wire)
« Reply #4 on: April 23, 2014, 03:44:06 pm »
These instructions not working for me (for SDK with kernel 3.4) :(
SDK with kernel 3.3 works great.

Offline actkk2000

  • Hero Member
  • *****
  • Posts: 572
  • Karma: +2/-11
    • View Profile
Re: How to change android kernel configuration? (turn on 1-wire)
« Reply #5 on: April 23, 2014, 05:04:31 pm »
Sry to hear that  :'(
Perhaps there is something missing, different for CB2...

I found this image that may have been compiled on kernel 3.4:
http://dl.cubieboard.org/software/a20-cubieboard/android/cb2-nand-v1.07_8188eu_1080P.img.tar.gz

If that's the case then it should be possible to do it with SDK 3.4...

Offline neyron

  • Newbie
  • *
  • Posts: 12
  • Karma: +0/-0
    • View Profile
Re: How to change android kernel configuration? (turn on 1-wire)
« Reply #6 on: April 24, 2014, 05:06:36 am »
ok. I must something turn on to enable that options in kerner 3.3? (in kernel 3.4 I can't see that options too)

Device Drivers  --->
GPIO Support  --->
        <*>   GPIO Support for sunxi platform
 <*> Dallas's 1-wire support  --->
        <*> 1-wire sunxi support

Offline actkk2000

  • Hero Member
  • *****
  • Posts: 572
  • Karma: +2/-11
    • View Profile
Re: How to change android kernel configuration? (turn on 1-wire)
« Reply #7 on: April 24, 2014, 09:06:05 am »
Yes, put Y or M to select the options you need, the first is to do it automatically, and the second is modularly (manually).
I allways prefer M to get asked to compile the drivers...


Offline neyron

  • Newbie
  • *
  • Posts: 12
  • Karma: +0/-0
    • View Profile
Re: How to change android kernel configuration? (turn on 1-wire)
« Reply #8 on: April 24, 2014, 10:41:42 am »
Oh, you dont understood me ;)  I mean I dont see all options that I need turn on in kernel 3.3 menuconfig to enable 1 wire.

Tutorial ( http://docs.cubieboard.org/tutorials/cb1/customization/ds18b20_via_1-wire ) says I need to select:

Device Drivers  --->
   
  • GPIO Support  --->

        <*>   GPIO Support for sunxi platform
    <*> Dallas's 1-wire support  --->
        <*> 1-wire sunxi support
        1-wire Bus Masters  --->
            <*> GPIO 1-wire busmaster
        1-wire Slaves  --->
            <*> Thermal family implementation

But in my kernel I can see only:

Device Drivers  --->
    <*> Dallas's 1-wire support  --->
        1-wire Bus Masters  --->
            <*> GPIO 1-wire busmaster
        1-wire Slaves  --->
            <*> Thermal family implementation

Where I can find others options? When I compile only with that options I don't see 1-wire folder in /sys/bus folder...

Thanks
NeyroN

hthomson

  • Guest
Re: How to change android kernel configuration? (turn on 1-wire)
« Reply #9 on: April 24, 2014, 12:26:13 pm »
I am having the same issue.

I was however able to find the right options when I downloaded linux-sunxi-sunxi-3.4.61.tar.gz from the tutorial posted here:

http://docs.cubieboard.org/tutorials/dvk521/documentations/a20/kernel_porting_and_configuration

However then there is the issue of integrating this kernel into the Android build process, I'm not quite sure where to start on that.

Offline neyron

  • Newbie
  • *
  • Posts: 12
  • Karma: +0/-0
    • View Profile
Re: How to change android kernel configuration? (turn on 1-wire)
« Reply #10 on: April 25, 2014, 02:16:02 pm »
So there is no tutorial to integrate new stable kernel into Android build process?

Offline neyron

  • Newbie
  • *
  • Posts: 12
  • Karma: +0/-0
    • View Profile
Re: How to change android kernel configuration? (turn on 1-wire)
« Reply #11 on: September 14, 2014, 05:43:06 am »
Hello again,

Is there someone who enable 1wire on android cubieboard2 ?

I used lastest android sdk but it isn't still support for 1wire sunxi driver.