I just downloaded AOSP yesterday and built for panda and it worked but
there are couple caveats
regarding instructions provided in device/ti/panda/README. In my case
I had to add 'sudo' for
all the fastboot commands and for the last two I had to use '-p
panda', otherwise I would get error
about some environment environment variable not being set. Even if I
set the variable it was still
ignored.
So below is summary of exactly what I did (with my mods) derived from
instructions originally provided by:
http://source.android.com/source/downloading.html
http://source.android.com/source/building-devices.html
and device/ti/panda/README in the source tree
# download AOSP source and build on ubuntu host
% curl
https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/
repo
% chmod a+x ~/bin/repo
% mkdir -p ~/panda/aosp
% cd ~/panda/aosp
% repo init -u
https://android.googlesource.com/platform/manifest
% repo sync
% source build/envsetup.sh
# target = full build running on panda + development configuration
with additional debugging tools
% lunch full_panda-eng
% time make -j8
# download/install proprietary (binary only) driver for panda GPU
# Note: The file extract-imgtec-panda.sh is actually an executable
# not a shell script. It will ask you to confirm license
agreement
# before unpacking files.
% cd ~/panda/aosp
# see
http://code.google.com/android/nexus/drivers.html#panda
% wget
https://dl.google.com/dl/android/aosp/imgtec-panda-iml74k-cfb7bdad.tgz
% tar xvfz imgtec-panda-iml74k-cfb7bdad.tgz
% chmod 777 extract-imgtec-panda.sh
% ./extract-imgtec-panda.sh
# make sure fastboot has been built
% source build/envsetup.sh
% lunch full_panda-eng
% make fastboot
# setup your panda board as follows:
# remove SD card
# connect panda serial port to ubuntu host (i.e. minicom)
# conncet panda mini-usb port to ubuntu host via usb
# connect panda power cable
# (optional) connect HDMI cable to display monitor
# (optional) connect ethernet
# (optional) connect USB mouse
# download bootloader (that supports fastboot protocol) into panda's
RAM using USB
% sudo device/ti/panda/usbboot device/ti/panda/bootloader.bin
# should see entering fastboot message in minicom
# now insert SD card into panda
# run fastboot on host to remotely update panda's SD card
# Note: I had to add 'sudo' or fastboot commands would not work
% cd ~/panda/aosp
% sudo ./out/host/linux-x86/bin/fastboot oem format
% sudo ./out/host/linux-x86/bin/fastboot flash xloader device/ti/panda/
xloader.bin
% sudo ./out/host/linux-x86/bin/fastboot flash bootloader device/ti/
panda/bootloader.bin
# run make again to update SD images with drivers you downloaded
% source build/envsetup.sh
% lunch full_panda-eng
% make
# write contents to panda's SD card
# Note: If you don't use -p option commands fail the env variable is
ignore
% sudo ./out/host/linux-x86/bin/fastboot erase cache
% sudo ./out/host/linux-x86/bin/fastboot -p panda flash userdata
% sudo ./out/host/linux-x86/bin/fastboot -p panda flashall
# configure time/date and dhcp on panda
% sudo ./out/host/linux-x86/bin/adb shell date $(date +%s)
% sudo ./out/host/linux-x86/bin/adb shell dhcpcd eth0
# should see ICS running on monitor (move mouse around to active
screen)
This was for pandaboard. I haven't tried pandaboard-es yet.
-earlm