![]() |
|
||||||||||||||||||
| . 网站首页 . 新品 . 新闻 . 方案 . 文库 . TI应用 . TI资源 . FPGA应用 . FPGA资源 . 移动技术 . 爱科技 . 厂商 . 代码 . 下载 . 产品 . 商城 . 邮购须知 . | ||
|
||
|
|||||
| rowboat的编译页面 | |||||
作者:leino111… 文章来源:leino11121 点击数: 更新时间:2012-1-11 ![]() |
|||||
http://code.google.com/p/rowboat/wiki/ConfigureAndBuild#Build_kernelConfigureAndBuildConfigure and Build
Prepare your host environmentHardwareTo work with Beagleboard or OMAP3EVM you will need the following:
SoftwareAs Google we recommend to use Ubuntu 8.04+ , but also you can use CentOS 5.3 (32 bit).
Git 1.5.4 or newer and the GNU Privacy Guard. For Ubuntu 32-bit use such command: $ sudo apt-get install git-core gnupg sun-java5-jdk flex bison gperf libsdl-dev libesd0-dev libwxgtk2.6-dev build-essential zip curl libncurses5-dev zlib1g-dev minicom tftpd uboot-mkimage Ubuntu Intrepid (8.10) users may need a newer version of libreadline: $ sudo apt-get install lib32readline5-dev For DSP users: $ sudo apt-get install expect Configure your network
sudo ifconfig ethX 10.10.10.1 netmask 255.255.255.0 up ; Example dhcpd.conf /etc/xinet.d/tftpd: service tftp Checkout sources$ mkdir rowboat-android Where ManifestName is:
Build rowboatFor froyo and eclair version of rowboat you may build kernel, filesystem, dvsdk (in case of dsp version) and install sgx drivers using the command below. After this step you may skip "Build kernel", "Build rootfs", "Install the Android Graphics SGX SDK on Host Machine", "Install the drivers in Target filesystem" sections and go to "Populate the root filesystem". $ make TARGET_PRODUCT=(beagleboard|omap3evm|igepv2|am3517evm) [TARGET_BUILD_VARIANT=tests] [-j8] [OMAPES=(2.x|3.x|5.x)] Your must specify your board with TARGET_PRODUCT variable. To build tests TARGET_BUILD_VARIANT may be used (see "Build rootfs" section for more info). It is recommended to use more than one thread on multi core systems, specify -j number_of_threads for this. Set OMAPES variable to install proper version of SGX driver (Default is 3.x): For OMAP3530 ES 1or2 = 2.x Once make is finished, you can find kernel uImage in kernel/arch/arm/boot/ directory. Build kernelWhile building rowboat-eclair-dsp, this (Build kernel) and next (Build rootfs) steps are not needed. Please refer to the instructions in wiki DSP stack integration to build Eclair with DSP integrated. The next step is building Linux kernel for your board. (If dvsdk target is specified while building rootfs, kernel is already built.) In following listing the first step is settings up prebuilt toolchains, the third step is kernel configuring and here you need to use right config file for your board
The fourth step in listing is kernel build command, here we tell make utility what build is for ARM architecture using cross-toolchains for ARM, the build target is uImage and it’s multithread build (-j8): $ cd <sources top> Build rootfsThe next step is Android file system build. To build file system you need to specify for which board you want to build. Use variableTARGET_PRODUCT for this:
Also if you need some unit tests for further use TARGET_BUILD_VARIANT=tests. If you are using multicore CPU in your host it’s possible to use more than one core for building Android for this pass -j8 (or 16, it depends on cores/CPUs) parameter to make command. In following listing we build Android for OMAP3EVM board with unit test packages and use 8 threads to speed up build process: $ make TARGET_PRODUCT=omap3evm TARGET_BUILD_VARIANT=tests -j8 droid After build process finished you'll need rootfs for this do following: $ cd out/target/product/omap3evm NOTE: IF YOU WANT TO INSTALL THE OPENGL SGX (3D Hardware accelerator) DRIVERS INTO $ sudo ../../../../build/tools/mktarball.sh ../../../host/linux-x86/bin/fs_get_stats android_rootfs . rootfs rootfs.tar.bz2 Install the Android Graphics SGX SDK on Host MachineThe procedure to install Android graphics SDK sources are mentioned below, you should have downloaded the sources as directed in Get source code wiki Execute the installer#> ./ti_android_sgx_sdk/OMAP35x_Android_Graphics_SDK_setuplinux_3_01_00_03.bin
Will result in following instruction, press "Y" This will install TI OMAP35x/AM37x Android Graphics SDK on your computer. Accept the License AgreementKindly read the complete License agreement by pressing Space bar and agree when prompted by pressing "Y" OMAP3530 / OMAP3515 / AM3517 / AM3715 / DM3730 Keep Pressing Space Bar on Keyboard until see ======================== Select the source install locationWhere do you want to install TI OMAP35x/AM37x Android Graphics SDK? Should see following directory structure root@android-pc:~/OMAP35x_Android_Graphics_SDK_3_01_00_03# ls Edit Rules.make to configure the SGX source build1) #set home area HOME (relative location for all SDK operations) Example: HOME=/home/user Build the Kernel Module sourcesExecute the make command in the sources directory root@android-pc:~/OMAP35x_Android_Graphics_SDK_3_01_00_03# make Will display: copying the sgx kernel modules to appropriate folder... Install the drivers in Target filesystemInstall the SGX drivers in the root filesystem built Do a make to identify the processor option. root@android-pc:~/OMAP35x_Android_Graphics_SDK_3_01_00_03# make help_km Select the OMAP3 device you work with For OMAP3530 ES 1or2 = 2.x Execute the following to install the libraries and drivers into the target filesystem. Example for OMAP3530 ES 3.0: root@android-pc:~/OMAP35x_Android_Graphics_SDK_3_01_00_03# make install OMAPES=3.x Will display Installation complete! Edit init.rc to auto-start SGX service while android starts. $ vim out/target/product/omap3evm/android_rootfs/init.rc Just above the comment # adbd is controlled by the persist.service.adb.enable system property
Add below two lines # Start PowerVR SGX DDK Populate the root filesystemFollow the steps below to populate the Android File system. $ sudo ../../../../build/tools/mktarball.sh ../../../host/linux-x86/bin/fs_get_stats android_rootfs . rootfs rootfs.tar.bz2 The rootfs.tar.bz2 is the android filesystem, it can be put on a SD/MMC Card or used our NFS. Prepare SD cardTo boot Android from SD/MMC card you must have it partitioned like following: $ sudo fdisk /dev/<your sdcard,for example sdd> Format the partitions for use the commands: $ sudo mkfs.msdos /dev/sdd1 Use the kernel image (e.g. uImage) from the build process above and place in on the W95 FAT32 partition: $ sudo mkdir -p /mnt/fat32 Unpack the Android tarball above onto the EXT3 partition: $ sudo mkdir -p /mnt/ext3 And the final step: $ sync Configure target boardThere is one important requirement:
Beagleboard and IGEPv2Beagleboard# setenv bootcmd 'mmcinit; fatload mmc 0 84000000 uImage; bootm 84000000' OMAP3_EVMThis is example. Adjust to your network parameters if needed OMAP3_EVM# setenv bootcmd 'tftp; bootm' External DisplayIf you need external display you need to enable additional kernel parameters:
So full bootargs string with example values will be following: OMAP3_EVM# setenv bootargs "mem=128M console=tty0 console=ttyS0,115200n8 androidboot.console=ttyS0 root=/dev/mmcblk0p2 rw Remember what if you are using external display on-board display is off, but touch surface still functional. First startStart the target board and wait until Android installing all prebuilt applications (default and custom) and configuring default settings. There is no indication for this time so you just need to wait until Android fully launched. After this you need to reboot the board. |
|||||
| 欢迎点击进入:TI德州中文网 (国内唯一针对TI应用的中文技术网站) 文章录入:admin 责任编辑:admin | |||||
| 【发表评论】【加入收藏】【告诉好友】【打印此文】【关闭窗口】 | |||||
| 最新热点 | 最新推荐 | 相关文章 | ||
| 没有相关文章 |
| 网友评论:(只显示最新10条。评论内容只代表网友观点,与本站立场无关!) |
| | 设为首页 | 加入收藏 | 联系站长 | 友情链接 | 版权申明 | 网站公告 | 管理登录 | | |||
|
|