`
dengzhangtao
  • 浏览: 667466 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论

编译TI-Android-JB-4.1.2-DevKit-4.0.1forAM335x

 
阅读更多

开发环境 

ubuntu10.04-desktop-amd64 

eclipse 

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

提示: 参考Ti官网:

http://processors.wiki.ti.com/index.php/TI-Android-JB-4.1.2-DevKit-4.0.1_DeveloperGuide#About_this_manual

因为上面有些错误,才做下记录。目前发先在配置jdk的时候,少了两句。

 

源码下载,有两种方式:repo和bin文件

我用的是TI-Android-JB-4.1.2_AM335x_4.0.1.bin

需要的包:

For 64-bit Ubuntu 10.04

The following command installs the required packages for setting up the android build host:

  $ sudo apt-get install git-core gnupg flex bison gperf build-essential \
  zip curl zlib1g-dev libc6-dev lib32ncurses5-dev ia32-libs \
  x11proto-core-dev libx11-dev lib32readline5-dev lib32z-dev \
  libgl1-mesa-dev g++-multilib mingw32 tofrodos python-markdown \
  libxml2-utils xsltproc minicom tftpd uboot-mkimage expect

 

Install Oracle JDK 6

  1. Download the latest JDK 6 installer from Oracle http://www.oracle.com/technetwork/java/javase/downloads/index.html.
    Accept the license agreement and click on the Linux x64 bin installer. The downloaded file will be named jdk-6uXX-linux-x64.bin where XX is the JDK 6 update version.
  2. Follow the following steps to install JDK 6
$ chmod a+x jdk-6uXX-linux-x64.bin
  $ ./jdk-6uXX-linux-x64.bin
  $ sudo mkdir -p /usr/lib/jvm
  $ sudo mv jdk1.6.0_XX /usr/lib/jvm/
  $ sudo update-alternatives --install "/usr/bin/java" "java" "/usr/lib/jvm/jdk1.6.0_XX/bin/java" 1
  $ sudo update-alternatives --install "/usr/bin/javac" "javac" "/usr/lib/jvm/jdk1.6.0_XX/bin/javac" 1
  $ sudo update-alternatives --install "/usr/bin/jar" "jar" "/usr/lib/jvm/jdk1.6.0_45/bin/jar" 1 
(擦,这句命令在TI官方没有,但是在编译filesystem时,报jar命令找不到的错误。)
 $ sudo update-alternatives --install "/usr/bin/javadoc" "javadoc" "/usr/lib/jvm/jdk1.6.0_45/bin/javadoc" 1    (官网这条命令也漏了)
$ sudo update-alternatives --config javadoc $ sudo update-alternatives --config java $ sudo update-alternatives --config javac $ sudo update-alternatives --config jar

 

解压源码文件:

 

 $ cd $HOME
  $ chmod a+x TI-Android-JB-4.1.2_AM335x_4.0.1.bin
  $ ./TI-Android-JB-4.1.2_AM335x_4.0.1.bin
  • Accept the Licence when the installer prompts
  • This will generate following sources
    • Android File system : $HOME/TI-Android-JB-4.1.2_AM335x_4.0.1/
    • Android Linux Kernel: $HOME/TI-Android-JB-4.1.2_AM335x_4.0.1/kernel
    • Bootloader  : $HOME/TI-Android-JB-4.1.2_AM335x_4.0.1/u-boot
    • Toolchain location will be at $HOME/TI-Android-JB-4.1.2_AM335x_4.0.1/prebuilts/gcc/linux-x86/arm/arm-eabi-4.6/bin

Toolchain setup指定工具链

  • Setup the toolchain path to point to arm-eabi- tools in prebuilts/gcc/linux-x86/arm/arm-eabi-4.6/bin
  • TI-source是你的源码目录
  $ export PATH=$HOME/TI-source/prebuilts/gcc/linux-x86/arm/arm-eabi-4.6/bin:$PATH

我的说export PATH=/home/dzt/android/TI-Android/prebuilts/
gcc/linux-x86/arm/arm-eabi-4.6/bin:$PATH

 

环境基本完成.

开始编译:

 

Build Procedure

To Build Bootloader

  • Change directory to u-boot
  $ cd <android source path>/u-boot
  • Execute following commands:
  $ make CROSS_COMPILE=arm-eabi- distclean     ----清理config
  $ make CROSS_COMPILE=arm-eabi- am335x_evm_config    ---设置config
  $ make CROSS_COMPILE=arm-eabi- 
  • This command will generate MLO and the u-boot Image u-boot.img

NOTE: The above command will work for AM335x EVM, AM335x Starter Kit and BeagleBone

To Build Android Linux Kernel

  • Change directory to kernel
  $ cd <android source path>/kernel
  • Execute following commands
  $ make ARCH=arm CROSS_COMPILE=arm-eabi- distclean
  $ make ARCH=arm CROSS_COMPILE=arm-eabi- am335x_evm_android_defconfig
  $ make ARCH=arm CROSS_COMPILE=arm-eabi- uImage

This will generate uImage(kernel image) in kernel/arch/arm/boot folder

NOTE: Generated uImage can be run on AM335xevm, AM335x Starter Kit and BeagleBone.

To Build Android Filesystem

Filesystem with SGX(回到源码目录,暂时不知道SGX是什么)

    cd ..

  • To Build the root filesystem for AM335x EVM, AM335x Starter Kit and BeagleBone
  $ make TARGET_PRODUCT=<product-name> OMAPES=4.x -j<N>
Where <product-name> is:
  • am335xevm for AM335x EVM
  • am335xevm_sk for AM335x Starter Kit
  • beaglebone for BeagleBone


e.g: To build the full filesystem for AM335x EVM:

  $ make TARGET_PRODUCT=am335xevm OMAPES=4.x -j4

NOTE:

  • <N> should be twice the number of processors on your host machine. For example, a dual core machine would use -j4
  • The above command will build Android filesystem, kernel, <product_name> related modules,
  • Drivers and modules for SGX and WLAN will be built and installed in android rootfs for AM335x EVM and AM335x Starter Kit
  • Android rootfs components (root and system directories) will be located in out/target/product/<product-name>.

 

本次编译出错:

jar: command not found

解决:原来是jdk的jar命令没有配置好,见上面install jdk.

还在摸索中。。。

 

 

 

 

1
3
分享到:
评论

相关推荐

    opencv-4.1.2-android-sdk - Copy.rar

    opencv 4.1.2,安卓平台sdk. 文件较大,里面有案例。是从官网下载的。 实测可用,在Android Studio中需要通过一些列的步骤导入项目。

    android-studio-ide-4.1.2-mac.dmg

    主要是官网上现在好像没提供历史版本下载了,还是我没找到。。。最新的4.2只能用jdk11,所以以前的工程无法跑了。。。

    poi-ooxml-4.1.2-API文档-中文版.zip

    赠送原API文档:poi-ooxml-4.1.2-javadoc.jar; 赠送源代码:poi-ooxml-4.1.2-sources.jar; 赠送Maven依赖信息文件:poi-ooxml-4.1.2.pom; 包含翻译后的API文档:poi-ooxml-4.1.2-javadoc-API文档-中文(简体)版....

    poi-4.1.2完整jar包

    poi-4.1.2完整jar包。 poi-4.1.2.jar poi-examples-4.1.2.jar poi-excelant-4.1.2.jar poi-ooxml-4.1.2.jar poi-ooxml-schemas-4.1.2.jar poi-scratchpad-4.1.2.jar

    poi-bin-4.1.2-20200217相关jar包

    当前B/S模式已成为应用开发的主流,而在企业办公系统中,常常有客户这样子要求:你要把我们的报表直接用Excel打开(电信系统、银行系统)。或者是:我们已经习惯用...本poi-4.1.2.jar、poi-ooxml-schemas-4.1.2.jar、等

    ti-ccs4.1.2开发环境入门指导书

    ti-ccs4.1.2开发环境入门指导书,入门必备

    poi4.1.2以及所有依赖,源码,文档.zip

    org.apache.poi:poi:4.1.2 org.apache.poi:poi-ooxml:4.1.2 org.apache.poi:poi-ooxml-schemas:4.1.2 org.apache.xmlbeans:xmlbeans:3.1.0 com.github.virtuald:curvesapi:1.06 com.zaxxer:SparseBitSet:1.2 commons...

    poi-4.1.2-API文档-中英对照版.zip

    赠送原API文档:poi-4.1.2-javadoc.jar; 赠送源代码:poi-4.1.2-sources.jar; 赠送Maven依赖信息文件:poi-4.1.2.pom; 包含翻译后的API文档:poi-4.1.2-javadoc-API文档-中文(简体)-英语-对照版.zip; Maven坐标...

    poi-scratchpad-4.1.2-API文档-中英对照版.zip

    赠送原API文档:poi-scratchpad-4.1.2-javadoc.jar; 赠送源代码:poi-scratchpad-4.1.2-sources.jar; 赠送Maven依赖信息文件:poi-scratchpad-4.1.2.pom; 包含翻译后的API文档:poi-scratchpad-4.1.2-javadoc-API...

    poi-4.0.1.jar中文文档.zip

    注:下文中的 *** 代表文件名中的版本号。 # 【poi-***.jar中文文档.zip】 中包含: 中文文档:【poi-***-javadoc-API文档-中文(简体)版.zip】 jar包下载地址:【poi-***.jar下载地址(官方地址+国内镜像地址).txt...

    Android-Openfire-Smack4.1.2 (Android Studio)

    Android-Openfire-Smack4.1.2 使用入门

    最新安卓4.1.2 system-images android-16(一)

    此压缩包分两个部分,文件名分别为: android-16-images.part1.rar android-16-images.part2.rar ...解压后,把其中的android-16文件夹放到android-sdk\system-images\android-16中即可,匹配Platform.Version=4.1.2

    gcc-4.1.2-46安装包rpm(x86-64)含依赖

    rpm -ivh libgcc-4.1.2-46.el5.i386.rpm --force --nodeps rpm -ivh glibc-2.5-42.i686.rpm --force --nodeps rpm -ivh cpp-4.1.2-46.el5.i386.rpm --force --nodeps rpm -ivh libgomp-4.4.0-6.el5.i386.rpm --force...

    opencv-4.1.2-android-sdk20191212.zip

    官网下载:https://opencv.org/ 给那些下载慢的人另一种选择,最新版2019年12月12日

    poi-ooxml-4.1.2-API文档-中英对照版.zip

    赠送原API文档:poi-ooxml-4.1.2-javadoc.jar; 赠送源代码:poi-ooxml-4.1.2-sources.jar; 赠送Maven依赖信息文件:poi-ooxml-4.1.2.pom; 包含翻译后的API文档:poi-ooxml-4.1.2-javadoc-API文档-中文(简体)-英语...

    poi-scratchpad-4.1.2-API文档-中文版.zip

    赠送原API文档:poi-scratchpad-4.1.2-javadoc.jar; 赠送源代码:poi-scratchpad-4.1.2-sources.jar; 赠送Maven依赖信息文件:poi-scratchpad-4.1.2.pom; 包含翻译后的API文档:poi-scratchpad-4.1.2-javadoc-API...

    Plexim-Plecs-Standalone-4.1.2-x64_ShareAppsCrack.com.zip

    在CSDN下载的解压都出错,这款没有那个问题

    opencv-4.1.2-android-sdk.zip

    openCV一个基于BSD许可(开源)发行的跨平台计算机视觉库,轻量级而且高效,当前资源为安卓端sdk,包含测试demo

    android 4.1.2launcher Eclipse编译

    android launcher Eclipse编译,运行中需要添加相关系统的jar包,添加方法在运行必看.doc有介绍

    jbosstools-4.0.1.Final

    jbosstools-4.0.1.Final JBoss Tools 原名为JBoss IDE,现在统一改名为 JBossTools,JBoss Tools包含了JSF,Hibernate,JBossSeam,jBPM等一系列的开发工具。

Global site tag (gtag.js) - Google Analytics