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.

Error in android file system building

Hello

I got the Android gingerbread source code from TI website and i done repo sync and got source tree. i have BUILD BOOTLOADER by excuting follwing comments 

  $ make CROSS_COMPILE=arm-eabi- distclean
  $ make ARCH=arm CROSS_COMPILE=arm-eabi- am335x_evm_config
  $ make ARCH=arm CROSS_COMPILE=arm-eabi-
Its succeed 
Then i build android linux kernel by excuting following comments for BEAGLEBONE
  $ make ARCH=arm CROSS_COMPILE=arm-eabi- distclean
  $ make ARCH=arm CROSS_COMPILE=arm-eabi- beaglebone_android_defconfig
  $ make ARCH=arm CROSS_COMPILE=arm-eabi- uImage
Its also get succeed 
Then i tried to BUILD ANDROID FILE SYSTEM with SGX by excuting follwing comments 

$ cd kernel
$make TARGET_PRODUCT=BeagleBone OMAPES=4.x -j4
Then i get the follwing errors 

drivers/mfd/twl-core.c:41:24: error: plat/board.h: No such file or directory
drivers/mfd/twl-core.c: In function ‘usb_gpio_settings’:
drivers/mfd/twl-core.c:1199: error: implicit declaration of function ‘get_omap3_evm_rev’
drivers/mfd/twl-core.c:1199: error: ‘OMAP3EVM_BOARD_GEN_2’ undeclared (first use in this function)
drivers/mfd/twl-core.c:1199: error: (Each undeclared identifier is reported only once
drivers/mfd/twl-core.c:1199: error: for each function it appears in.)
make[2]: *** [drivers/mfd/twl-core.o] Error 1
make[1]: *** [drivers/mfd] Error 2
make[1]: *** Waiting for unfinished jobs....

....

and 

LD drivers/message/fusion/built-in.o
LD drivers/message/built-in.o
make: *** [drivers] Error 2
make: *** Waiting for unfinished jobs....
CC net/ipv4/inet_fragment.o

......

Any one can help me to get out of this problem. ?

I wanna build the image file in SD card and wanna boot my beaglebone.

Thanks in advance

( i hope its right place to post this, if its not really, sorry for that )

  • Hi,

    I think you are running build command from wrong path. You need to run this command from  "Android source directory" not from kernel directory.

    EX: 
    $ cd <path to android source directory>
    $make TARGET_PRODUCT=BeagleBone OMAPES=4.x -j4

    SANGILI KUMAR said:
    Then i tried to BUILD ANDROID FILE SYSTEM with SGX by excuting follwing comments 
    
    
    $ cd kernel
    $make TARGET_PRODUCT=BeagleBone OMAPES=4.x -j4
    Then i get the follwing errors 

    drivers/mfd/twl-core.c:41:24: error: plat/board.h: No such file or directory
    drivers/mfd/twl-core.c: In function ‘usb_gpio_settings’:
    drivers/mfd/twl-core.c:1199: error: implicit declaration of function ‘get_omap3_evm_rev’
    drivers/mfd/twl-core.c:1199: error: ‘OMAP3EVM_BOARD_GEN_2’ undeclared (first use in this function)
    drivers/mfd/twl-core.c:1199: error: (Each undeclared identifier is reported only once
    drivers/mfd/twl-core.c:1199: error: for each function it appears in.)
    make[2]: *** [drivers/mfd/twl-core.o] Error 1

    Regards,

    Pankaj Bharadiya

  • Hello sir 

                Thanks for your reply, really its working..

    I guess the mistake which was i did ($ cd Kernel), that's why i mentioned path. anyhow once again thank you for your help.