# Initial setup, part 1: build fastboot
source build/envsetup.sh
lunch full_panda-eng
make fastboot
/*nick add */
2124 ls
2125 lsusb
如果没有
Bus 001 Device 056: ID 0451:d022 Texas Instruments, Inc.
2126 sudo vim /etc/udev/rules.d/99-android.rules
SUBSYSTEMS=="usb", ATTRS{idVendor}=="0451", ATTRS{idProduct}=="d00f", MODE="0666", OWNER="keyd"
2127 ls
2128 sudo vim /etc/udev/rules.d/99-android.rules
2129 sudo /etc/init.d/udev restart
# Initial setup, part 2:
# With no SD card inserted, plug USB first, then the power cord,
# and load fastboot over USB:
device/ti/panda/usbboot device/ti/panda/bootloader.bin
# Initial setup, part 3:
# Once in fastboot, insert and initialize an SD card (4GB or greater):
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
nick@nick-smart:~/work/Pandroid$ cat build_env.sh
export YOUR_PATH=`pwd`
export PATH=$PATH:${YOUR_PATH}/build_tools/arm-2010q1/bin
export MYDROID=${YOUR_PATH}/27.IS.1/mydroid
export CROSS_COMPILE=arm-none-linux-gnueabi-
export PATH=${YOUR_PATH}/u-boot/tools:${PATH}
Android4.0编译
# Build and flash, part 1: Do a build
下载 http://code.google.com/android/nexus/drivers.html#panda
解压到根目录,运行./extract-imgtec-panda.sh
source build/envsetup.sh
lunch full_panda-eng
make
# Build and flash, part 2: Flash
# Reboot into the SD card's fastboot (hold GPIO_121 and press PWRON_RESET)
# and flash the system:
烧录;建议与boot一起烧录,有时候找不到分区表,导致需要重新格式化,烧录整个flash(bootloader分区与 Android分区)
cd out/target/product/panda
sudo ./../../../host/linux-x86/bin/fastboot flash boot boot.img
sudo ./../../../host/linux-x86/bin/fastboot flash system system.img
sudo ./../../../host/linux-x86/bin/fastboot flash cache cache.img /* 没有 */
sudo ./../../../host/linux-x86/bin/fastboot flash userdata userdata.img
=====================下面的命令可以用usb或这串口=====================
# Post-boot setup, part 1: Set the date on the board:
adb shell date $(date +%s)
# Post-boot setup, part 2: Configure Ethernet
./out/host/linux-x86/bin/adb shell dhcpcd eth0