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.

BeagleboneBlack android filesystem compile issue

Hi all,

I am facing compiling error with jellybean filesystem for beaglebone black.

The source code is downloaded from rowboat following this manual- http://processors.wiki.ti.com/index.php/TI-Android-JB-4.2.2-DevKit-4.1.1_DeveloperGuide

Java version used- jdk1.6.0_45,  and host machine is ubuntu12.04 (64-bit) on virtual box.

Could anyone please help me solve this.

Command -make TARGET_PRODUCT=beagleboneblack OMAPES=4.x -j4

Error message while compiling-

host Executable: bcinfo (out/host/linux-x86/obj/EXECUTABLES/bcinfo_intermediates/bcinfo)
host SharedLib: libdvm (out/host/linux-x86/obj/lib/libdvm.so)
Install: out/target/product/beagleboneblack/system/lib/libssl.so
Install: out/host/linux-x86/bin/dasm
host Executable: dexopt (out/host/linux-x86/obj/EXECUTABLES/dexopt_intermediates/dexopt)
host Executable: dictTest (out/host/linux-x86/obj/EXECUTABLES/dictTest_intermediates/dictTest)
host Executable: grxmlcompile (out/host/linux-x86/obj/EXECUTABLES/grxmlcompile_intermediates/grxmlcompile)
Install: out/host/linux-x86/bin/llvm-dis
Install: out/host/linux-x86/bin/llvm-ndk-link
Install: out/host/linux-x86/bin/llvm-rs-link
Install: out/host/linux-x86/bin/mksnapshot.arm
host Java: smali (out/host/common/obj/JAVA_LIBRARIES/smali_intermediates/classes)
collect2: ld terminated with signal 9 [Killed]
make: *** [out/host/linux-x86/obj/EXECUTABLES/clang_intermediates/clang] Error 1
make: *** Waiting for unfinished jobs....
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.

Regards,

Ebin

  • Hi Ebin,

    Can you run the build command with -j1 and get the exact error?

    Can you also check the available disk space?

    Regards,

    Arun

  • Hi Arun,

    Thanks for the reply,

    Filesystem compiled successfully with the build command- make TARGET_PRODUCT=beagleboneblack OMAPES=4.x -j1

    I found a difference in the boot up message when compared with precompiled image boot messages-

     For precompiled image [    0.000091] Calibrating delay loop... 996.14 BogoMIPS (lpj=4980736)

    and for the image i compiled its [    0.000183] Calibrating delay loop... 548.86 BogoMIPS (lpj=2744320) .

    Will this affect any functions of the board?

    Regards,

    Ebin

  • Hi Ebin,

    The MPU frequency 1GHz is enabled on A5A, A5B and A5C. Which is the version of the BeagleBone Black you are trying?

    Can you check if the compiled MLO/u-boot and uImage commit ids are latest from the rowboat? Also can you copy the complete dmesg till this print?

    Regards,

    Arun 

  • Hi Arun,

    I am using beaglebone black version A5C.

    Console messages at bootup-

    U-Boot SPL 2013.04-dirty (May 20 2013 - 14:30:06)
    musb-hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, HB-ISO Rx, HB-ISO Tx, SoftConn)
    musb-hdrc: MHDRC RTL version 2.0
    musb-hdrc: setup fifo_mode 4
    musb-hdrc: 28/31 max ep, 16384/16384 memory
    USB Peripheral mode controller at 47401000 using PIO, IRQ 0
    musb-hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, HB-ISO Rx, HB-ISO Tx, SoftConn)
    musb-hdrc: MHDRC RTL version 2.0
    musb-hdrc: setup fifo_mode 4
    musb-hdrc: 28/31 max ep, 16384/16384 memory
    USB Host mode controller at 47401800 using PIO, IRQ 0
    OMAP SD/MMC: 0
    mmc_send_cmd : timeout: No status update
    reading u-boot.img
    reading u-boot.img


    U-Boot 2013.04-dirty (May 20 2013 - 14:30:06)

    I2C:   ready
    DRAM:  512 MiB
    WARNING: Caches not enabled
    NAND:  No NAND device found!!!
    0 MiB
    MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1
    *** Warning - readenv() failed, using default environment

    musb-hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, HB-ISO Rx, HB-ISO Tx, SoftConn)
    musb-hdrc: MHDRC RTL version 2.0
    musb-hdrc: setup fifo_mode 4
    musb-hdrc: 28/31 max ep, 16384/16384 memory
    USB Peripheral mode controller at 47401000 using PIO, IRQ 0
    musb-hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, HB-ISO Rx, HB-ISO Tx, SoftConn)
    musb-hdrc: MHDRC RTL version 2.0
    musb-hdrc: setup fifo_mode 4
    musb-hdrc: 28/31 max ep, 16384/16384 memory
    USB Host mode controller at 47401800 using PIO, IRQ 0
    Net:   <ethaddr> not set. Validating first E-fuse MAC
    cpsw, usb_ether
    Hit any key to stop autoboot:  0
    gpio: pin 53 (gpio 53) value is 1
    mmc0 is current device
    micro SD card found
    mmc0 is current device
    gpio: pin 54 (gpio 54) value is 1
    SD/MMC found on device 0
    reading uEnv.txt
    214 bytes read in 4 ms (51.8 KiB/s)
    Loaded environment from uEnv.txt
    Importing environment from mmc ...
    Running uenvcmd ...
    reading uImage
    4178800 bytes read in 505 ms (7.9 MiB/s)
    ## Booting kernel from Legacy Image at 81000000 ...
       Image Name:   Linux-3.2.0-00244-gcf99001
       Image Type:   ARM Linux Kernel Image (uncompressed)
       Data Size:    4178736 Bytes = 4 MiB
       Load Address: 80008000
       Entry Point:  80008000
       Verifying Checksum ... OK
       Loading Kernel Image ... OK
    OK

    Starting kernel ...

    Uncompressing Linux... done, booting the kernel.
    [    0.000000] Linux version 3.2.0-00244-gcf99001 (root@ebin-VirtualBox) (gcc version 4.6.x-google 20120106 (prerelease) (GCC) ) #1 Sat Aug 3 01:24:27 IST 2013
    [    0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c53c7d
    [    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
    [    0.000000] Machine: am335xevm
    [    0.000000] Memory policy: ECC disabled, Data cache writeback
    [    0.000000] AM335X ES2.0 (sgx neon )
    [    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 130048
    [    0.000000] Kernel command line: console=ttyO0,115200n8 androidboot.console=ttyO0 mem=512M root=/dev/mmcblk0p2 rw rootfstype=ext4 rootwait init=/init ip=off
    [    0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
    [    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
    [    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
    [    0.000000] Memory: 512MB = 512MB total
    [    0.000000] Memory: 509880k/509880k available, 14408k reserved, 0K highmem
    [    0.000000] Virtual kernel memory layout:
    [    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    [    0.000000]     fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
    [    0.000000]     vmalloc : 0xe0800000 - 0xff000000   ( 488 MB)
    [    0.000000]     lowmem  : 0xc0000000 - 0xe0000000   ( 512 MB)
    [    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
    [    0.000000]       .text : 0xc0008000 - 0xc078a000   (7688 kB)
    [    0.000000]       .init : 0xc078a000 - 0xc07e0000   ( 344 kB)
    [    0.000000]       .data : 0xc07e0000 - 0xc084ba70   ( 431 kB)
    [    0.000000]        .bss : 0xc084ba94 - 0xc09a3890   (1376 kB)
    [    0.000000] NR_IRQS:396
    [    0.000000] IRQ: Found an INTC at 0xfa200000 (revision 5.0) with 128 interrupts
    [    0.000000] Total of 128 interrupts on 1 active controller
    [    0.000000] OMAP clockevent source: GPTIMER2 at 24000000 Hz
    [    0.000000] OMAP clocksource: GPTIMER1 at 32768 Hz
    [    0.000000] sched_clock: 32 bits at 32kHz, resolution 30517ns, wraps every 13                                                                     1071999ms
    [    0.000000] Console: colour dummy device 80x30
    [    0.000152] Calibrating delay loop... 548.86 BogoMIPS (lpj=2744320)
    [    0.048706] pid_max: default: 32768 minimum: 301

    Regards,

    Ebin

  • Hi Ebin,

    The MLO and u-boot time stamps looks so old - May 20.

    Can you check two things

    1) Are you holding the switch near uSD card to load boatloader from uSD?

    2) Try with the latest MLO and u-boot.img

    Regards,

    Arun

  • Hi Arun,

    Thanks for reply.. it worked with holding the switch s2 and booting.

    Regards,

    Ebin

  • hi Arjun,

    I tried the command with -j1 on ubuntu 12.04 and got the same error.

    Can you please help me.

    Regards,

    Shyam