This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Android Boot Problem



Hi,

 

I successfully booted my beagleboard-xm with android pre-compiled image from TI web site.

But when I tried to boot from own compiler kernel

It gives;

 

disagrees about version of symbol module_layout

error continuously..

 

I am using arm-eabi as compiler

and configured bootargs as latest described on web site.

 

Can you help please

  • Hi,

    Kindly rebuild SGX against your compiled kernel.

    It will remove this error

    BR,

    satish

  • Hi,

    thanks for reply.

    SGX is graphics driver?

     

    What do you mean with SGX

  • Hi,

    yes it is graphics driver, which use h/w accelerated graphics for android os

    -

    satish

     

  • Where is it located?and how to compile it

    (sorry maybe that question are nooby)

  • Hi Batuhan,

    which release r u using ?

    1. if you are using http://processors.wiki.ti.com/index.php/TI-Android-GingerBread-2.3.4-DevKit-2.1_ReleaseNotes then follow instruction given at

    http://processors.wiki.ti.com/index.php/TI-Android-GingerBread-2.3.4-DevKit-2.1_DeveloperGuide#Filesystem_with_SGX

    2. if you are using any other release, kindly follow developer guide to build android with SGX

    3. General instruction are given at

    http://code.google.com/p/rowboat/wiki/ConfigureAndBuild#Install_the_Android_Graphics_SGX_SDK_on_Host_Machine

    Refer respected source for your build

    BR,

    satish

  • I am using 2.3.4 that you wrote on your links.I got some errors;

     

    Here is details

     

    root@batuhan-desktop:~/android-source/TI_Android_GingerBread_2_3_4Sources# make TARGET_PRODUCT=beagleboard OMAPES=5.x -j2
    ============================================
    PLATFORM_VERSION_CODENAME=REL
    PLATFORM_VERSION=2.3.4
    TARGET_PRODUCT=beagleboard
    TARGET_BUILD_VARIANT=eng
    TARGET_SIMULATOR=
    TARGET_BUILD_TYPE=release
    TARGET_BUILD_APPS=
    TARGET_ARCH=arm
    HOST_ARCH=x86
    HOST_OS=linux
    HOST_BUILD_TYPE=release
    BUILD_ID=GRJ22
    ============================================
    /bin/bash: bison: komut yok
    Checking build tools versions...
    build/core/main.mk:76: ************************************************************
    build/core/main.mk:77: You are attempting to build on a 32-bit system.
    build/core/main.mk:78: Only 64-bit build environments are supported beyond froyo/2.2.
    build/core/main.mk:79: ************************************************************
    find: “frameworks/base/frameworks/base/docs/html”: No such file or directory
    find: “out/target/common/docs/gen”: No such file or directory
    find: “frameworks/base/frameworks/base/docs/html”: No such file or directory
    find: “out/target/common/docs/gen”: No such file or directory
    find: “frameworks/base/frameworks/base/docs/html”: No such file or directory
    find: “out/target/common/docs/gen”: No such file or directory
    find: “frameworks/base/frameworks/base/docs/html”: No such file or directory
    find: “out/target/common/docs/gen”: No such file or directory
    find: “frameworks/base/frameworks/base/docs/html”: No such file or directory
    find: “out/target/common/docs/gen”: No such file or directory
    diff: out/target/product/beagleboard/obj/PACKAGING/updater_extensions_intermediates/register.inc.list: No such file or directory
    host Java: apicheck (out/host/common/obj/JAVA_LIBRARIES/apicheck_intermediates/classes)
    Header: out/host/linux-x86/obj/include/libexpat/expat.h
    Header: out/host/linux-x86/obj/include/libexpat/expat_external.h
    Header: out/target/product/beagleboard/obj/include/libexpat/expat.h
    Header: out/target/product/beagleboard/obj/include/libexpat/expat_external.h
    Header: out/host/linux-x86/obj/include/libpng/png.h
    Header: out/host/linux-x86/obj/include/libpng/pngconf.h
    Header: out/host/linux-x86/obj/include/libpng/pngusr.h
    Header: out/target/product/beagleboard/obj/include/libpng/png.h
    Header: out/target/product/beagleboard/obj/include/libpng/pngconf.h
    Header: out/target/product/beagleboard/obj/include/libpng/pngusr.h
    Header: out/target/product/beagleboard/obj/include/libwpa_client/wpa_ctrl.h
    Header: out/target/product/beagleboard/obj/include/libsonivox/eas.h
    Header: out/target/product/beagleboard/obj/include/libsonivox/eas_types.h
    Header: out/target/product/beagleboard/obj/include/libsonivox/eas_reverb.h
    Header: out/target/product/beagleboard/obj/include/libsonivox/jet.h
    Header: out/target/product/beagleboard/obj/include/libsonivox/ARM_synth_constants_gnu.inc
    host Java: clearsilver (out/host/common/obj/JAVA_LIBRARIES/clearsilver_intermediates/classes)
    target Java: core (out/target/common/obj/JAVA_LIBRARIES/core_intermediates/classes)
    host Java: dx (out/host/common/obj/JAVA_LIBRARIES/dx_intermediates/classes)
    Note: Some input files use unchecked or unsafe operations.
    Note: Recompile with -Xlint:unchecked for details.
    Notice file: frameworks/base/libs/utils/NOTICE -- out/host/linux-x86/obj/NOTICE_FILES/src//lib/libutils.a.txt
    Notice file: system/core/liblog/NOTICE -- out/host/linux-x86/obj/NOTICE_FILES/src//lib/liblog.a.txt
    Notice file: system/core/libcutils/NOTICE -- out/host/linux-x86/obj/NOTICE_FILES/src//lib/libcutils.a.txt
    Notice file: external/expat/NOTICE -- out/host/linux-x86/obj/NOTICE_FILES/src//lib/libexpat.a.txt
    Notice file: external/libpng/NOTICE -- out/host/linux-x86/obj/NOTICE_FILES/src//lib/libpng.a.txt
    Yacc: aidl <= frameworks/base/tools/aidl/aidl_language_y.y
    bison -d  -o out/host/linux-x86/obj/EXECUTABLES/aidl_intermediates/aidl_language_y.cpp frameworks/base/tools/aidl/aidl_language_y.y
    /bin/bash: bison: komut yok
    make: *** [out/host/linux-x86/obj/EXECUTABLES/aidl_intermediates/aidl_language_y.cpp] Hata 127
    make: *** Bitmemiş işler için bekliyor....
    Note: Some input files use or override a deprecated API.
    Note: Recompile with -Xlint:deprecation for details.
    Note: Some input files use unchecked or unsafe operations.
    Note: Recompile with -Xlint:unchecked for details.

  • Sorry i still got errors

     

    WARNING: modpost: Found 9 section mismatch(es).
    To see full details build your kernel with:
    'make CONFIG_DEBUG_SECTION_MISMATCH=y'
      GEN     .version
      CHK     include/generated/compile.h
      UPD     include/generated/compile.h
      CC      init/version.o
      LD      init/built-in.o
      LD      .tmp_vmlinux1
    drivers/built-in.o: In function `tty_ioctl':
    lowmemorykiller.c:(.text+0x1d950): undefined reference to `twl_i2c_write_u8'
    drivers/built-in.o: In function `tty_init':
    lowmemorykiller.c:(.init.text+0x1270): undefined reference to `twl_i2c_read_u8'
    lowmemorykiller.c:(.init.text+0x1288): undefined reference to `twl_i2c_read_u8'
    lowmemorykiller.c:(.init.text+0x12ac): undefined reference to `twl_i2c_write_u8'
    lowmemorykiller.c:(.init.text+0x12c4): undefined reference to `twl_i2c_read_u8'
    lowmemorykiller.c:(.init.text+0x12e8): undefined reference to `twl_i2c_write_u8'
    lowmemorykiller.c:(.init.text+0x1324): undefined reference to `twl_i2c_write_u8'
    lowmemorykiller.c:(.init.text+0x1360): undefined reference to `twl_i2c_write_u8'
    make[1]: *** [.tmp_vmlinux1] Hata 1
    make[1]: `/home/batuhan/android-source/TI_Android_GingerBread_2_3_4Sources/kernel' dizininden çıkılıyor
    make: *** [build_kernel] Hata 2

  • What does these errors mean?

  • Hi,

    1. Which kernel source r u referring to ?

    2. Because with the latest 2.6.37 this is UNDEFINED

     │ Symbol: DEBUG_SECTION_MISMATCH [=n]                                                                                                                                                          │
      │ Type  : boolean                                                                                                                                                                              │
      │ Prompt: Enable full Section mismatch analysis                                                                                                                                                │
      │   Defined at lib/Kconfig.debug:103                                                                                                                                                           │
      │   Depends on: UNDEFINED || BLACKFIN                                                                                                                                                          │
      │   Location:                                                                                                                                                                                  │
      │     -> Kernel hacking                                                                                                                                                                        │
      │                      

     

    3. I have also compiled kernel , by giving this argument at command line, but go no such errors.

    BR,

    satish

  • I am using kernel source that in TI folder(android 2.3.3 sources)

  • Hi,

    Could you give me a link from where you have downloaded sources? I will try with that

    Also which version of kernel are you referring 2.6.32 or 2.6.37 ?

    BR,

    satish

  • Here is the link

     

    http://software-dl.ti.com/dsps/dsps_public_sw/sdo_tii/TI_Android_DevKit/TI_Android_GingerBread_2_3_DevKit_1_0/exports/TI_Android_GingerBread_2_3_Sources.tar.gz

     

    By the way are you asking my host machine kernel?

  • Hi,

    1. I have tried with link you have mentioned here...

    $cd <android-src>/kernel

    $ make ARCH=arm CROSS_COMPILE=arm-eabi- distclean

    $ make ARCH=arm CROSS_COMPILE=arm-eabi- omap3_beagle_android_defconfig

    $ make ARCH=arm CROSS_COMPILE=arm-eabi- menuconfig

    Still it is undefined

     Symbol: DEBUG_SECTION_MISMATCH [=n]                                                                                                                                                          │
      │ Prompt: Enable full Section mismatch analysis                                                                                                                                                │
      │   Defined at lib/Kconfig.debug:104                                                                                                                                                           │
      │   Depends on: UNDEFINED [=UNDEFINED]                                                                                                                                                         │
      │   Location:                                                                                                                                                                                  │
      │     -> Kernel hacking                                                                                                                                                                        │
      │                         

    Do  not know how to enable ? No option is coming to enable the same as it is UNDEFINED

    $ make ARCH=arm CROSS_COMPILE=arm-eabi- uImage

    no error.. build went smoothly...

     

    2. I was asking the android kernel not your system kernel

    3. R u referring to correct def config ?

    4. Let me know your step so that we can reproduce scenario over here.

    -

    satish

     

     

  • I just see that I am using 2.3.4 sources from TI web site.

    I am using beagle_android_defconfig..

    In readme it says Linux kernel release 2.6.xx

    ı can compile succesfullywith ake ARCH=arm CROSS_COMPILE=arm-eabi- omap3_beagle_android_defconfig

    but after problems you said I must compile with SGX.Problems occured after that.


    my scenario:

     

    I succesfully got Uimage with

    $cd <android-src>/kernel

    $ make ARCH=arm CROSS_COMPILE=arm-eabi- distclean

    $ make ARCH=arm CROSS_COMPILE=arm-eabi- omap3_beagle_android_defconfig

     

    commands.Than I used that UImage with my beagleboard-xm(that succesfully booted with precompiled images).But It gives errors that I mentioned on first post.

    Than I downloaded the necessary packges that you said.

    After that I made

    make TARGET_PRODUCT=beagleboard OMAPES=5.x -j2

     

    command.than it gives that errors.

    drivers/built-in.o: In function `tty_ioctl':
    lowmemorykiller.c:(.text+0x1d950): undefined reference to `twl_i2c_write_u8'
    drivers/built-in.o: In function `tty_init':
    lowmemorykiller.c:(.init.text+0x1270): undefined reference to `twl_i2c_read_u8'
    lowmemorykiller.c:(.init.text+0x1288): undefined reference to `twl_i2c_read_u8'
    lowmemorykiller.c:(.init.text+0x12ac): undefined reference to `twl_i2c_write_u8'
    lowmemorykiller.c:(.init.text+0x12c4): undefined reference to `twl_i2c_read_u8'
    lowmemorykiller.c:(.init.text+0x12e8): undefined reference to `twl_i2c_write_u8'
    lowmemorykiller.c:(.init.text+0x1324): undefined reference to `twl_i2c_write_u8'
    lowmemorykiller.c:(.init.text+0x1360): undefined reference to `twl_i2c_write_u8'
    make[1]: *** [.tmp_vmlinux1] Hata 1


     

    Maybe Problem is

     

    build/core/main.mk:76: ************************************************************
    build/core/main.mk:77: You are attempting to build on a 32-bit system.
    build/core/main.mk:78: Only 64-bit build environments are supported beyond froyo/2.2.
    build/core/main.mk:79: ************************************************************

     

  • Hi,

    I think there is some confusion over here....

    Let me start again....

    The original post/issue by you is:

    =====================================================================================

    I successfully booted my beagleboard-xm with android pre-compiled image from TI web site.

    But when I tried to boot from own compiler kernel

    It gives;

     disagrees about version of symbol module_layout

    =======================================================================================

    Solution to above problem, is just to rebuilt sgx against your own compiled kernel.

    Simple step for the same.

    1. modify omap3_beagle_android_defconfig as per your need

    2. And then rerun following from android source directory ( if you are using beaglexm rev a/b/c)

    $make TARGET_PRODUCT= beagleboard OMAPES=5.x

     and if you are using beaglboard rev c then

     $make TARGET_PRODUCT= beagleboard OMAPES=3.x

    3. Now use generated filesystem and kernel for your validation.

     

    I think this would simplify your validation and development time.

    BR,

    satish

  • I am still stuck at 2nd step.

     

    Install system fs image: out/target/product/beagleboard/system.img
    in kernel rule
    make -C kernel ARCH=arm CROSS_COMPILE=../prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi- uImage
    make[1]:`/home/batuhan/android-source/TI_Android_GingerBread_2_3_4Sources/kernel' dizinine giriliyor
      CHK     include/linux/version.h
      CHK     include/generated/utsrelease.h
    make[2]: `include/generated/mach-types.h' güncel
      CALL    scripts/checksyscalls.sh
      CHK     include/generated/compile.h
      GEN     .version
      CHK     include/generated/compile.h
      UPD     include/generated/compile.h
      CC      init/version.o
      LD      init/built-in.o
      LD      .tmp_vmlinux1
    drivers/built-in.o: In function `tty_ioctl':
    lowmemorykiller.c:(.text+0x1d950): undefined reference to `twl_i2c_write_u8'
    drivers/built-in.o: In function `tty_init':
    lowmemorykiller.c:(.init.text+0x1270): undefined reference to `twl_i2c_read_u8'
    lowmemorykiller.c:(.init.text+0x1288): undefined reference to `twl_i2c_read_u8'
    lowmemorykiller.c:(.init.text+0x12ac): undefined reference to `twl_i2c_write_u8'
    lowmemorykiller.c:(.init.text+0x12c4): undefined reference to `twl_i2c_read_u8'
    lowmemorykiller.c:(.init.text+0x12e8): undefined reference to `twl_i2c_write_u8'
    lowmemorykiller.c:(.init.text+0x1324): undefined reference to `twl_i2c_write_u8'
    lowmemorykiller.c:(.init.text+0x1360): undefined reference to `twl_i2c_write_u8'
    make[1]: *** [.tmp_vmlinux1] Hata 1
    make[1]: `/home/batuhan/android-source/TI_Android_GingerBread_2_3_4Sources/kernel' dizininden çıkılıyor
    make: *** [build_kernel] Hata 2

    Before that it succesfully compiled apk files..

    I think,It stuck at kernel compile.and why its sing arm eabi 4.4.3?

     

    after that I changed Makefile and set compiler to armeabi 4.3.1

    Process lasts longer but at last error is same;

    WARNING: modpost: Found 8 section mismatch(es).
    To see full details build your kernel with:
    'make CONFIG_DEBUG_SECTION_MISMATCH=y'
      GEN     .version
      CHK     include/generated/compile.h
      UPD     include/generated/compile.h
      CC      init/version.o
      LD      init/built-in.o
      LD      .tmp_vmlinux1
    drivers/built-in.o: In function `tty_ioctl':
    lowmemorykiller.c:(.text+0x1dd40): undefined reference to `twl_i2c_write_u8'
    drivers/built-in.o: In function `tty_init':
    lowmemorykiller.c:(.init.text+0x12ac): undefined reference to `twl_i2c_read_u8'
    lowmemorykiller.c:(.init.text+0x12c4): undefined reference to `twl_i2c_read_u8'
    lowmemorykiller.c:(.init.text+0x12e8): undefined reference to `twl_i2c_write_u8'
    lowmemorykiller.c:(.init.text+0x1300): undefined reference to `twl_i2c_read_u8'
    lowmemorykiller.c:(.init.text+0x1324): undefined reference to `twl_i2c_write_u8'
    lowmemorykiller.c:(.init.text+0x1360): undefined reference to `twl_i2c_write_u8'
    lowmemorykiller.c:(.init.text+0x139c): undefined reference to `twl_i2c_write_u8'
    make[1]: *** [.tmp_vmlinux1] Hata 1
    make[1]: `/home/batuhan/android-source/TI_Android_GingerBread_2_3_4Sources/kernel' dizininden çıkılıyor
    make: *** [build_kernel] Hata 2

     

  • Hi Batuhan,

    As per your instruction I have build kernel with following command

    $make ARCH=arm CROSS_COMPILE=arm-eabi- CONFIG_DEBUG_SECTION_MISMATCH=y

    and build went fine.Kindly find attached log for build

    2. We have moved to toolchain version 4.4.3

    -

    satish

  • ok,I succesfully completed and there is no error.

     

    I must make distclean first than make TARGET_PRODUCT=beagleboard OMAPES=5.x

    and finally it says

    Installation complete.

    Uımage is ready but i couldnt make the filesystem(rootfs)

     

  • I succesfully compiled filesystem and kernel than make sd card.But now when I try to boot beagleboard says

    first it says reşease 1291:1291 transaction 2629 out,still active

     

    ....

     

    than

    untracked pid xx exited continuously..

  • Hi Batuhan,

    Finally its good sign.!!!

    1. ignore the log - "reşease 1291:1291 transaction 2629 out,still active "

    2. For untracked pid exited, -

    kindly submit full logs from logcat and dmesg.

    $logcat

    $dmesg

    -

    satish

  • Hi Satish,

     

    First of all thanks for your all help.My board finally boot.I dont know why but background color is red.No other problems at the moment

  • Make sure that you have option "CONFIG_TWL4030_CORE" enabled in your default config.

     

    Thanks,

    Vaibhav

  • Thanks for reply.It seems its hardware problem.

     

    By the way I did compile with SGX succesfully.

     

    Now I changed config and tried to do it again but got several errors/warnings.

    I am doing something wrong but I did exact same things.

  • Hi,

    What are the changes you are performing ?

    -

    satish

  • Enabled tsc 2007 in defconfig