October 22, 2019, 09:49:06 am

News:

Have you visited the Allwinner Chipset wiki? - http://linux-sunxi.org/


How to change android kernel configuration? (turn on 1-wire)

Started by neyron, April 22, 2014, 08:21:50 am

Previous topic - Next topic

neyron

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


neyron

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

actkk2000

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...

neyron

These instructions not working for me (for SDK with kernel 3.4) :(
SDK with kernel 3.3 works great.

actkk2000

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...

neyron

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

actkk2000

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...


neyron

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

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.

neyron

So there is no tutorial to integrate new stable kernel into Android build process?

neyron

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.