トラッキング コード

Showing posts with label BeagleBoneBlack. Show all posts
Showing posts with label BeagleBoneBlack. Show all posts

12/06/2013

Add OpenGL with hardware rendering on JellybeanOnBeaglebone_WithSGX for Beagle Bone Black

If you would like to use OpenGL ES 2.0 with hardware rendering, you should add modification.


Mod egl.cfg
\device\ti\beagleboard\egl.cfg

0 0 android
0 1 POWERVR_SGX530_125 <- add line !!

Mod build.prop
\device\ti\beagleboard\beagleboard.mk

PRODUCT_PROPERTY_OVERRIDES := \
net.dns1=8.8.8.8 \
net.dns2=8.8.4.4 \
ro.opengles.version=131072 <- add line !!

Building JellybeanOnBeaglebone_WithSGX for Beagle Bone Black

Get the Files
  $ repo init -u git://gitorious.org/rowboat/manifest.git -m rowboat-jb-am335x.xml
  $ repo sync $

Toolchain Setup
Setup the tool-chain path to point to arm-eabi- tools in prebuilts/gcc/linux-x86/arm/arm-eabi-4.6/bin/
  $ export PATH=/prebuilts/gcc/linux-x86/arm/arm-eabi-4.6/bin:$PATH
Build Boot Loader (MLO/u-boot)
Change directory to u-boot
  $ cd u-boot
Execute following commands
  $ make CROSS_COMPILE=arm-eabi- distclean
  $ make CROSS_COMPILE=arm-eabi- am335x_evm_config
  $ make CROSS_COMPILE=arm-eabi- 
Build Android, Kernel and SGX
  $ make TARGET_PRODUCT=beagleboneblack OMAPES=4.x
Create Root Filesystem Tarball
Prepare the root filesystem as follows:
  $ cd 
  $ make TARGET_PRODUCT=beagleboneblack fs_tarball
Flash SD Card
Copy compiled Images to image folder and create a bootable SD card as follows.
  $ mkdir image_folder
  $ cd image_folder
  $ cp ../kernel/arch/arm/boot/uImage .
  $ cp ../u-boot/MLO .
  $ cp ../u-boot/u-boot.img .
  $ cp ../external/ti_android_utilities/am335x/u-boot-env/uEnv_beagleboneblack.txt .
  $ cp ../out/target/product/beagleboneblack/rootfs.tar.bz2 .
  $ cp ../external/ti_android_utilities/am335x/mk-mmc/mkmmc-android.sh .
  $ sudo ./mkmmc-android.sh YOUR_SD_CARD MLO u-boot.img uImage uEnv_beagleboneblack.txt rootfs.tar.bz2

12/05/2013

TI official image of Android On Beagle Bone Black

You can get 'release information' of Beagle Bone Black's Android.
http://downloads.ti.com/sitara_android/esd/TI_Android_DevKit/TI_Android_JB_4_2_2_DevKit_4_1_1/index_FDS.html

I got offical TI image Of Android 4.2.2, and install to beagle bone black.


$ wget http://downloads.ti.com/sitara_android/esd/TI_Android_DevKit/TI_Android_JB_4_2_2_DevKit_4_1_1/exports/TI_Android_JB_4.2.2_DevKit_4.1.1_beagleboneblack.tar.gz
$ tar xzvf TI_Android_JB_4.2.2_DevKit_4.1.1_beagleboneblack.tar.gz
$ cd beagleboneblack
$ sudo ./mkmmc-android.sh /dev/


copyed to log.
Assuming Default Locations for Prebuilt Images
All data on /dev/sdb now will be destroyed! Continue? [y/n]
y
[Unmounting all existing partitions on the device ]
umount: /dev/sdb: not mounted
umount: /dev/sdb2: not mounted
[Partitioning /dev/sdb...]
Disk /dev/sdb doesn't contain a valid partition table
DISK SIZE - 7851737088 bytes
CYLINDERS - 954
[Making filesystems...]
[Copying files...]
[Copying START_HERE folder to boot partition]
umount: /mnt: device is busy.
        (In some cases useful info about processes that use
         the device is found by lsof(8) or fuser(1))
[Copying all clips to data partition]
[Done]


Takes a long time to start Android...Please wait 10 minutes.