全志R8的SDK的编译步骤V1.0(android4.2.2)(分色排版)

来源:互联网 发布:鹿晗2018年工作 知乎 编辑:程序博客网 时间:2024/05/17 03:05

全志R8的SDK的编译步骤

 

2017/4/20 12:31

版本:V1.0

 

 

0、解压缩SDK:

rootroot@cm-System-Product-Name:/home/wwt/r8_20160613_ruoge$ tar zxvf lichee_r8_ruoge_20160613.tar.gz

rootroot@cm-System-Product-Name:/home/wwt/r8_20160613_ruoge$ tar zxvf android_r8_ruoge_20160613.tar.gz

rootroot@cm-System-Product-Name:/home/wwt/r8_20160613_ruoge$ 7za x r8_20160613_ruoge系统编译的初步设置20170421_1443设置为adb_shell_干掉启动的电阻片校准程序_不锁屏_休眠为30分钟_没有外层目录.7z -r -o./

(Y)es / (N)o / (A)lways / (S)kip all / A(u)to rename all / (Q)uit?a

 

 

 

 

1、编译uboot:

rootroot@cm-System-Product-Name:/home/wwt/r8_20160613_ruoge$ cd lichee/brandy/u-boot-2011.09/

rootroot@cm-System-Product-Name:/home/wwt/r8_20160613_ruoge/lichee/brandy/u-boot-2011.09$make sun5i_config

awk '(NF && $1 !~ /^#/) { print $1 ": " $1 "_config; $(MAKE)" }' boards.cfg > .boards.depend

Configuring for sun5i board...

rootroot@cm-System-Product-Name:/home/wwt/r8_20160613_ruoge/lichee/brandy/u-boot-2011.09$

rootroot@cm-System-Product-Name:/home/wwt/r8_20160613_ruoge/lichee/brandy/u-boot-2011.09$make -j12

 

 

ibsun5i.o board/sunxi/libsunxi.o --end-group /home/wwt/r8_20160613_ruoge/lichee/brandy/u-boot-2011.09/arch/arm/lib/eabi_compat.o  -L./openssl -lssl -lcrypto -L /home/wwt/r8_20160613_ruoge/lichee/brandy/gcc-linaro/bin/../lib/gcc/arm-linux-gnueabi/4.6.3 -lgcc -Map u-boot.map -o u-boot

/home/wwt/r8_20160613_ruoge/lichee/brandy/u-boot-2011.09/../gcc-linaro/bin/arm-linux-gnueabi-objcopy -O srec u-boot u-boot.srec

/home/wwt/r8_20160613_ruoge/lichee/brandy/u-boot-2011.09/../gcc-linaro/bin/arm-linux-gnueabi-objcopy --gap-fill=0xff -O binary u-boot u-boot.bin

 build_uboot

"u-boot-sun5i.bin" -> "/home/wwt/r8_20160613_ruoge/lichee/brandy/u-boot-2011.09/../../tools/pack/chips/sun5i/bin/u-boot-sun5i.bin"

rootroot@cm-System-Product-Name:/home/wwt/r8_20160613_ruoge/lichee/brandy/u-boot-2011.09$

 

 

 CC      sunxi_debug.c ...

 CC      sys_config.c ...

make[1]:正在离开目录 `/home/wwt/r8_20160613_ruoge/lichee/brandy/u-boot-2011.09/board/sunxi'

UNDEF_SYM=`/home/wwt/r8_20160613_ruoge/lichee/brandy/u-boot-2011.09/../gcc-linaro/bin/arm-linux-gnueabi-objdump -x board/sunxi/sun5i/libsun5i.o board/sunxi/libsunxi.o api/libapi.o arch/arm/cpu/armv7/libarmv7.o arch/arm/cpu/armv7/sun5i/libsun5i.o arch/arm/lib/libarm.o common/libcommon.o disk/libdisk.o drivers/audio/libaudio.o drivers/bios_emulator/libatibiosemu.o drivers/block/libblock.o drivers/dma/libdma.o drivers/efuse/libsunxi_efuse.o drivers/fpga/libfpga.o drivers/gpio/libgpio.o drivers/hwmon/libhwmon.o drivers/i2c/libi2c.o drivers/input/libinput.o drivers/misc/libmisc.o drivers/mmc/libmmc.o drivers/mtd/nand/libnand.o drivers/mtd/onenand/libonenand.o drivers/mtd/spi/libspi_flash.o drivers/mtd/ubi/libubi.o drivers/net/libnet.o drivers/net/phy/libphy.o drivers/p2wi/libp2wi.o drivers/pci/libpci.o drivers/pcmcia/libpcmcia.o drivers/power/libpower.o drivers/pwm/libsunxi_pwm.o drivers/rsb/librsb.o drivers/rtc/librtc.o drivers/serial/libserial.o drivers/smc/libsmc.o drivers/spi/libspi.o drivers/spinor/libspinor.o drivers/storage_type/libstorage_type.o drivers/twserial/libtws.o drivers/usb/eth/libusb_eth.o drivers/usb/gadget/libusb_gadget.o drivers/usb/host/libusb_host.o drivers/usb/musb/libusb_musb.o drivers/usb/phy/libusb_phy.o drivers/video_sun7i/libvideo_sunxi.o drivers/watchdog/libwatchdog.o fs/aw_fs/libawfat.o fs/cramfs/libcramfs.o fs/ext2/libext2fs.o fs/fat/libfat.o fs/fdos/libfdos.o fs/jffs2/libjffs2.o fs/reiserfs/libreiserfs.o fs/ubifs/libubifs.o fs/yaffs2/libyaffs2.o lib/libfdt/libfdt.o lib/libgeneric.o lib/lzma/liblzma.o lib/lzo/liblzo.o lib/zlib/libz.o memtest/libsunxi_memtest.o nand_sunxi/sun5i/libnand-sun5i nand_sunxi/sun5i/nand_interface/libnand_interface.o nand_sunxi/sun5i/osal/libnand_osal.o net/libnet.o post/libpost.o sprite/libsprite.o usb_sunxi/libsunxi_usb.o | sed  -n -e 's/.*\(__u_boot_cmd_.*\)/-u\1/p'|sort|uniq`; cd /home/wwt/r8_20160613_ruoge/lichee/brandy/u-boot-2011.09 && /home/wwt/r8_20160613_ruoge/lichee/brandy/u-boot-2011.09/../gcc-linaro/bin/arm-linux-gnueabi-ld  -pie -T u-boot.lds -Bstatic $UNDEF_SYM arch/arm/cpu/armv7/start.o --start-group api/libapi.o arch/arm/cpu/armv7/libarmv7.o arch/arm/cpu/armv7/sun5i/libsun5i.o arch/arm/lib/libarm.o common/libcommon.o disk/libdisk.o drivers/audio/libaudio.o drivers/bios_emulator/libatibiosemu.o drivers/block/libblock.o drivers/dma/libdma.o drivers/efuse/libsunxi_efuse.o drivers/fpga/libfpga.o drivers/gpio/libgpio.o drivers/hwmon/libhwmon.o drivers/i2c/libi2c.o drivers/input/libinput.o drivers/misc/libmisc.o drivers/mmc/libmmc.o drivers/mtd/nand/libnand.o drivers/mtd/onenand/libonenand.o drivers/mtd/spi/libspi_flash.o drivers/mtd/ubi/libubi.o drivers/net/libnet.o drivers/net/phy/libphy.o drivers/p2wi/libp2wi.o drivers/pci/libpci.o drivers/pcmcia/libpcmcia.o drivers/power/libpower.o drivers/pwm/libsunxi_pwm.o drivers/rsb/librsb.o drivers/rtc/librtc.o drivers/serial/libserial.o drivers/smc/libsmc.o drivers/spi/libspi.o drivers/spinor/libspinor.o drivers/storage_type/libstorage_type.o drivers/twserial/libtws.o drivers/usb/eth/libusb_eth.o drivers/usb/gadget/libusb_gadget.o drivers/usb/host/libusb_host.o drivers/usb/musb/libusb_musb.o drivers/usb/phy/libusb_phy.o drivers/video_sun7i/libvideo_sunxi.o drivers/watchdog/libwatchdog.o fs/aw_fs/libawfat.o fs/cramfs/libcramfs.o fs/ext2/libext2fs.o fs/fat/libfat.o fs/fdos/libfdos.o fs/jffs2/libjffs2.o fs/reiserfs/libreiserfs.o fs/ubifs/libubifs.o fs/yaffs2/libyaffs2.o lib/libfdt/libfdt.o lib/libgeneric.o lib/lzma/liblzma.o lib/lzo/liblzo.o lib/zlib/libz.o memtest/libsunxi_memtest.o nand_sunxi/sun5i/libnand-sun5i nand_sunxi/sun5i/nand_interface/libnand_interface.o nand_sunxi/sun5i/osal/libnand_osal.o net/libnet.o post/libpost.o sprite/libsprite.o usb_sunxi/libsunxi_usb.o board/sunxi/sun5i/libsun5i.o board/sunxi/libsunxi.o --end-group /home/wwt/r8_20160613_ruoge/lichee/brandy/u-boot-2011.09/arch/arm/lib/eabi_compat.o  -L./openssl -lssl -lcrypto -L /home/wwt/r8_20160613_ruoge/lichee/brandy/gcc-linaro/bin/../lib/gcc/arm-linux-gnueabi/4.6.3 -lgcc -Map u-boot.map -o u-boot

/home/wwt/r8_20160613_ruoge/lichee/brandy/u-boot-2011.09/../gcc-linaro/bin/arm-linux-gnueabi-objcopy -O srec u-boot u-boot.srec

/home/wwt/r8_20160613_ruoge/lichee/brandy/u-boot-2011.09/../gcc-linaro/bin/arm-linux-gnueabi-objcopy --gap-fill=0xff -O binary u-boot u-boot.bin

 build_uboot

"u-boot-sun5i.bin" -> "/home/wwt/r8_20160613_ruoge/lichee/brandy/u-boot-2011.09/../../tools/pack/chips/sun5i/bin/u-boot-sun5i.bin"

 

 

 

 

2、编译内核lichee:

rootroot@cm-System-Product-Name:/home/wwt/r8_20160613_ruoge/lichee/brandy/u-boot-2011.09$

rootroot@cm-System-Product-Name:/home/wwt/r8_20160613_ruoge/lichee/brandy/u-boot-2011.09$ cd ../..

rootroot@cm-System-Product-Name:/home/wwt/r8_20160613_ruoge/lichee$

rootroot@cm-System-Product-Name:/home/wwt/r8_20160613_ruoge/lichee$ ./build.sh config

 

Welcome to mkscript setup progress

All available chips:

   0. sun5i

Choice: 0

All available platforms:

   0. android

   1. dragonboard

   2. linux

   3. tina

Choice: 0

All available kernel:

   0. linux-3.4

Choice: 0

All available boards:

   0. r8-evb

   1. r8m-evb

Choice: 0

rootroot@cm-System-Product-Name:/home/wwt/r8_20160613_ruoge/lichee$

rootroot@cm-System-Product-Name:/home/wwt/r8_20160613_ruoge/lichee$ ./build.sh 

INFO: ----------------------------------------

INFO: build lichee ...

INFO: chip: sun5i

INFO: platform: android

INFO: kernel: linux-3.4

INFO: board: r8-evb

INFO: output: out/sun5i/android/r8-evb

INFO: ----------------------------------------

INFO: mklichee  ------------------------

INFO: build buildroot ...

installing external toolchain

please wait for a few minutes ...

INFO: build buildroot OK.

INFO: build kernel ...

INFO: prepare toolchain ...

Building kernel

 

Using default config ...

 

  HOSTCC  scripts/basic/fixdep

  HOSTCC  scripts/kconfig/conf.o

  SHIPPED scripts/kconfig/zconf.tab.c

  SHIPPED scripts/kconfig/zconf.lex.c

  SHIPPED scripts/kconfig/zconf.hash.c

  HOSTCC  scripts/kconfig/zconf.tab.o

  HOSTLD  scripts/kconfig/conf

scripts/kconfig/conf --silentoldconfig Kconfig

drivers/net/ethernet/sunxi/Kconfig:11:warning: multi-line strings not supported

drivers/net/wireless/bcmdhd/Kconfig:44:warning: defaults for choice values not supported

*

* Restart config...

*

*

* Misc devices

*

Analog Devices Digital Potentiometers (AD525X_DPOT) [N/m/y/?] n

Sunxi platform register debug driver (SUNXI_DBGREG) [M/n/y/?] m

Atmel AT32/AT91 PWM support (ATMEL_PWM) [N/m/y/?] n

Integrated Circuits ICS932S401 (ICS932S401) [N/m/y/?] n

Enclosure Services (ENCLOSURE_SERVICES) [N/m/y/?] n

Medfield Avago APDS9802 ALS Sensor module (APDS9802ALS) [N/m/y/?] n

Intersil ISL29003 ambient light sensor (ISL29003) [N/m/y/?] n

Intersil ISL29020 ambient light sensor (ISL29020) [N/m/y/?] n

Taos TSL2550 ambient light sensor (SENSORS_TSL2550) [N/m/y/?] n

ROHM BH1780GLI ambient light sensor (SENSORS_BH1780) [N/m/y/?] n

BH1770GLC / SFH7770 combined ALS - Proximity sensor (SENSORS_BH1770) [N/m/y/?] n

APDS990X combined als and proximity sensors (SENSORS_APDS990X) [N/m/y/?] n

Honeywell HMC6352 compass (HMC6352) [N/m/y/?] n

AK8975 compass support (SENSORS_AK8975) [N/m/y/?] n

Dallas DS1682 Total Elapsed Time Recorder with Alarm (DS1682) [N/m/y/?] n

Texas Instruments DAC7512 (TI_DAC7512) [N/m/y/?] n

UID based statistics tracking exported to /proc/uid_stat (UID_STAT) [Y/n] y

BMP085 digital pressure sensor (BMP085) [N/m/y/?] n

FSA9480 USB Switch (USB_SWITCH_FSA9480) [N/m/y/?] n

Intel Wireless MultiCom Top Driver (IWMC3200TOP) [N/m/y/?] n

STMicroeletronics LIS3LV02Dx three-axis digital accelerometer (SPI) (SENSORS_LIS3_SPI) [N/m/y/?] n

STMicroeletronics LIS3LV02Dx three-axis digital accelerometer (I2C) (SENSORS_LIS3_I2C) [N/m/y/?] n

*

* Altera FPGA firmware download module

*

Altera FPGA firmware download module (ALTERA_STAPL) [N/m/y/?] n

(选中可以打开WIFI:)

Allwinner rf module pm driver (AW_RF_PM) [N/y/?] (NEW) y

*

* Wireless LAN

*

Wireless LAN (WLAN) [Y/n/?] y

  Marvell 8xxx Libertas WLAN driver support with thin firmware (LIBERTAS_THINFIRM) [N/m/y/?] n

  Atmel at76c503/at76c505/at76c505a USB cards (AT76C50X_USB) [N/m/y/?] n

  USB ZD1201 based Wireless device support (USB_ZD1201) [N/m/y/?] n

  Wireless RNDIS USB support (USB_NET_RNDIS_WLAN) [N/m/y/?] n

  Realtek 8187 and 8187B USB support (RTL8187) [N/m/y/?] n

  Simulated radio testing tool for mac80211 (MAC80211_HWSIM) [N/m/y/?] n

  Enable WiFi control function abstraction (WIFI_CONTROL_FUNC) [N/y/?] n

  Broadcom 43xx wireless support (mac80211 stack) (B43) [N/m/y/?] n

  Broadcom 4330 wireless cards support (BCM4330) [N/m/y/?] n

  Broadcom 43xx-legacy wireless support (mac80211 stack) (B43LEGACY) [N/m/y/?] n

  Broadcom 4329/30 wireless cards support (BCMDHD) [N/m/y/?] n

  Broadcom IEEE802.11n embedded FullMAC WLAN driver (BRCMFMAC) [N/m/y/?] n

  IEEE 802.11 for Host AP (Prism2/2.5/3 and WEP/TKIP/CCMP) (HOSTAP) [N/m/y/?] n

  Intel Wireless Multicomm 3200 WiFi driver (IWM) [N/m/y/?] n

  Marvell 8xxx Libertas WLAN driver support (LIBERTAS) [N/m/y/?] n

  Softmac Prism54 support (P54_COMMON) [N/m/y/?] n

  Realtek RTL8192CU/RTL8188CU USB Wireless Network Adapter (RTL8192CU) [N/m/y/?] n

  ZyDAS ZD1211/ZD1211B USB-wireless support (ZD1211RW) [N/m/y/?] n

  Marvell WiFi-Ex Driver (MWIFIEX) [N/m/y/?] n

  Realtek 8192C USB WiFi (RTL8192CU_SW) [N/m/y/?] n

  Realtek 8188E USB WiFi (RTL8188EU) [M/n/y/?] m

  Realtek 8189E SDIO WiFi (RTL8189ES) [N/m/y/?] n

  Realtek 8723A SDIO WiFi (RTL8723AS) [N/m/y/?] n

  Realtek 8723A SDIO WiFi (RTL8723AS) [N/m/y/?] n

(这项不要选中:)

  Realtek 8723B SDIO WiFi (RTL8723BS) [N/m/y/?] (NEW) n

 

 

WARNING: could not find /home/wwt/r8_20160613_ruoge/lichee/linux-3.4/modules/cedarx/.libcedar.cmd for /home/wwt/r8_20160613_ruoge/lichee/linux-3.4/modules/cedarx/libcedar

  CC      /home/wwt/r8_20160613_ruoge/lichee/linux-3.4/modules/cedarx/cedarx.mod.o

  LD [M]  /home/wwt/r8_20160613_ruoge/lichee/linux-3.4/modules/cedarx/cedarx.ko

make[1]: Leaving directory `/home/wwt/r8_20160613_ruoge/lichee/linux-3.4'

cp cedarx.ko /home/wwt/r8_20160613_ruoge/lichee/linux-3.4/output/lib/modules/3.4.39/

make: Leaving directory `/home/wwt/r8_20160613_ruoge/lichee/linux-3.4/modules/cedarx'

regenerate rootfs cpio

19418 blocks

20146 blocks

build_ramfs

Copy boot.img to output directory ...

Copy modules to target ...

INFO: build kernel OK.

INFO: build rootfs ...

INFO: skip make rootfs for android

INFO: build rootfs OK.

INFO: ----------------------------------------

INFO: build lichee OK.

INFO: ----------------------------------------

rootroot@cm-System-Product-Name:/home/wwt/r8_20160613_ruoge/lichee$

rootroot@cm-System-Product-Name:/home/wwt/r8_20160613_ruoge/lichee$

 

 

 

 

3、配置内核lichee(可选):

(配置内核请注意备份,生成的.config文件下次可以直接使用的!)

rootroot@cm-System-Product-Name:/home/wwt/r8_20160613_ruoge/lichee$ cd linux-3.4/

rootroot@cm-System-Product-Name:/home/wwt/r8_20160613_ruoge/lichee/linux-3.4$

rootroot@cm-System-Product-Name:/home/wwt/r8_20160613_ruoge/lichee/linux-3.4$ ll *.config

ls: 无法访问*.config: 没有那个文件或目录

rootroot@cm-System-Product-Name:/home/wwt/r8_20160613_ruoge/lichee/linux-3.4$ ll .config

-rw-rw-r-- 1 rootroot rootroot 72092  4月 20 12:43 .config

(备份.config:)

rootroot@cm-System-Product-Name:/home/wwt/r8_20160613_ruoge/lichee/linux-3.4$ cp .config bak1_orig.config

rootroot@cm-System-Product-Name:/home/wwt/r8_20160613_ruoge/lichee/linux-3.4$ make ARCH=arm menuconfig

General setup  --->

[*] Support for paging of anonymous memory (swap)

修改为

[ ] Support for paging of anonymous memory (swap)

 

 

(再次备份.config:)

rootroot@cm-System-Product-Name:/home/wwt/r8_20160613_ruoge/lichee/linux-3.4$

rootroot@cm-System-Product-Name:/home/wwt/r8_20160613_ruoge/lichee/linux-3.4$ cp .config bak2_swap.config

rootroot@cm-System-Product-Name:/home/wwt/r8_20160613_ruoge/lichee/linux-3.4$ ll *.config

-rw-rw-r-- 1 rootroot rootroot 72027  4月 20 12:50 bak2_swap.config

 

 

 

 

4、编译android4.4.2并打包:

rootroot@cm-System-Product-Name:/home/wwt/r8_20160613_ruoge/lichee/linux-3.4$ cd ../../android/

rootroot@cm-System-Product-Name:/home/wwt/r8_20160613_ruoge/android$

rootroot@cm-System-Product-Name:/home/wwt/r8_20160613_ruoge/android$

rootroot@cm-System-Product-Name:/home/wwt/r8_20160613_ruoge/android$ source build/envsetup.sh 

including device/asus/grouper/vendorsetup.sh

including device/asus/tilapia/vendorsetup.sh

including device/generic/armv7-a-neon/vendorsetup.sh

including device/generic/armv7-a/vendorsetup.sh

including device/generic/mips/vendorsetup.sh

including device/generic/x86/vendorsetup.sh

including device/samsung/maguro/vendorsetup.sh

including device/samsung/manta/vendorsetup.sh

including device/samsung/toroplus/vendorsetup.sh

including device/samsung/toro/vendorsetup.sh

including device/softwinner/common/vendorsetup.sh

including device/softwinner/crane-evb/vendorsetup.sh

including device/softwinner/nuclear-256m/vendorsetup.sh

including device/softwinner/nuclear-evb/vendorsetup.sh

including device/softwinner/nuclear-r8m-evb/vendorsetup.sh

including device/ti/panda/vendorsetup.sh

including sdk/bash_completion/adb.bash

rootroot@cm-System-Product-Name:/home/wwt/r8_20160613_ruoge/android$ lunch

 

You're building on Linux

 

Lunch menu... pick a combo:

     1. full-eng

     2. full_x86-eng

     3. vbox_x86-eng

     4. full_mips-eng

     5. full_grouper-userdebug

     6. full_tilapia-userdebug

     7. mini_armv7a_neon-userdebug

     8. mini_armv7a-userdebug

     9. mini_mips-userdebug

     10. mini_x86-userdebug

     11. full_maguro-userdebug

     12. full_manta-userdebug

     13. full_toroplus-userdebug

     14. full_toro-userdebug

     15. crane_evb-eng

     16. nuclear_256m-user

     17. nuclear_256m-eng

     18. nuclear_evb-eng

     19. nuclear_r8m_evb-eng

     20. full_panda-userdebug

 

Which would you like? [full-eng] 18

 

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

PLATFORM_VERSION_CODENAME=REL

PLATFORM_VERSION=4.2.2

TARGET_PRODUCT=nuclear_evb

TARGET_BUILD_VARIANT=eng

TARGET_BUILD_TYPE=release

TARGET_BUILD_APPS=

TARGET_ARCH=arm

TARGET_ARCH_VARIANT=armv7-a-neon

HOST_ARCH=x86

HOST_OS=linux

HOST_OS_EXTRA=Linux-3.13.0-24-generic-x86_64-with-Ubuntu-14.04-trusty

HOST_BUILD_TYPE=release

BUILD_ID=JDQ39

OUT_DIR=out

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

 

rootroot@cm-System-Product-Name:/home/wwt/r8_20160613_ruoge/android$ extract-bsp 

/home/wwt/r8_20160613_ruoge/android/device/*/nuclear-evb/bImage copied!

/home/wwt/r8_20160613_ruoge/android/device/*/nuclear-evb/modules copied!

rootroot@cm-System-Product-Name:/home/wwt/r8_20160613_ruoge/android$ make -j12

 

 

r/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/home/cm/cm/R58/r58_new20161012/android/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/arm-linux-androideabi/bin:/home/cm/cm/R58/r58_new20161012/android/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/bin:/opt/jdk1.6.0_45/bin:/opt/jdk1.6.0_45/jre/bin

+ ENABLE_SPARSE_IMAGE=

+ '[' -s = -s ']'

+ ENABLE_SPARSE_IMAGE=-s

+ shift

+ '[' 5 -ne 4 -a 5 -ne 5 -a 5 -ne 6 ']'

+ SRC_DIR=out/target/product/nuclear-evb/system

+ '[' '!' -d out/target/product/nuclear-evb/system ']'

+ OUTPUT_FILE=out/target/product/nuclear-evb/obj/PACKAGING/systemimage_intermediates/system.img

+ EXT_VARIANT=ext4

+ MOUNT_POINT=system

+ SIZE=536870912

+ FC=

+ case $EXT_VARIANT in

+ '[' -z system ']'

+ '[' -z 536870912 ']'

+ '[' -n '' ']'

+ MAKE_EXT4FS_CMD='make_ext4fs -s  -l 536870912 -a system out/target/product/nuclear-evb/obj/PACKAGING/systemimage_intermediates/system.img out/target/product/nuclear-evb/system'

+ echo make_ext4fs -s -l 536870912 -a system out/target/product/nuclear-evb/obj/PACKAGING/systemimage_intermediates/system.img out/target/product/nuclear-evb/system

make_ext4fs -s -l 536870912 -a system out/target/product/nuclear-evb/obj/PACKAGING/systemimage_intermediates/system.img out/target/product/nuclear-evb/system

+ make_ext4fs -s -l 536870912 -a system out/target/product/nuclear-evb/obj/PACKAGING/systemimage_intermediates/system.img out/target/product/nuclear-evb/system

Creating filesystem with parameters:

    Size: 536870912

    Block size: 4096

    Blocks per group: 32768

    Inodes per group: 8192

    Inode size: 256

    Journal blocks: 2048

    Label:

    Blocks: 131072

    Block groups: 4

    Reserved block group size: 31

Created filesystem with 1266/32768 inodes and 93633/131072 blocks

+ '[' 0 -ne 0 ']'

Running:  simg2img out/target/product/nuclear-evb/obj/PACKAGING/systemimage_intermediates/system.img out/target/product/nuclear-evb/obj/PACKAGING/systemimage_intermediates/unsparse_system.img

Running:  e2fsck -f -n out/target/product/nuclear-evb/obj/PACKAGING/systemimage_intermediates/unsparse_system.img

e2fsck 1.41.14 (22-Dec-2010)

Pass 1: Checking inodes, blocks, and sizes

Pass 2: Checking directory structure

Pass 3: Checking directory connectivity

Pass 4: Checking reference counts

Pass 5: Checking group summary information

out/target/product/nuclear-evb/obj/PACKAGING/systemimage_intermediates/unsparse_system.img: 1266/32768 files (0.0% non-contiguous), 93633/131072 blocks

Install system fs image: out/target/product/nuclear-evb/system.img

out/target/product/nuclear-evb/system.img+out/target/product/nuclear-evb/obj/PACKAGING/recovery_patch_intermediates/recovery_from_boot.p maxsize=548110464 blocksize=4224 total=377481477 reserve=5537664

DroidDoc took 98 sec. to write docs to out/target/common/docs/doc-comment-check

rootroot@cm-System-Product-Name:/home/wwt/r8_20160613_ruoge/android$

rootroot@cm-System-Product-Name:/home/wwt/r8_20160613_ruoge/android$

rootroot@cm-System-Product-Name:/home/wwt/r8_20160613_ruoge/android$

rootroot@cm-System-Product-Name:/home/wwt/r8_20160613_ruoge/android$ pack -d

copying tools file

copying configs file

./out/aultls32.fex

./out/aultools.fex

./out/cardscript.fex

./out/cardtool.fex

./out/diskfs.fex

./out/env_burn.cfg

./out/env.cfg

./out/image.cfg

./out/image_linux.cfg

./out/split_xxxx.fex

./out/sys_config.fex

./out/sys_partition_dump.fex

./out/sys_partition.fex

./out/sys_partition_linux.fex

./out/sys_partition_nor.fex

./out/sys_partition_private.fex

./out/toc0.fex

./out/toc1.fex

./out/usbtool.fex

./out/usbtool_test.fex

copying boot resource

copying boot file

normal

input file : boot0_spinor.fex

file len=16384

input file : u-boot-spinor.fex

input file : sunxi_mbr.fex

file len=16384

input file : env.fex

this is not a partition key

sys parition end

/home/wwt/r8_20160613_ruoge/lichee/tools/pack/pctools/linux/eDragonEx/

/home/wwt/r8_20160613_ruoge/lichee/tools/pack/out

Begin Parse sys_partion.fex

Add partion boot-resource.fex BOOT-RESOURCE_FEX

Add partion very boot-resource.fex BOOT-RESOURCE_FEX

FilePath: boot-resource.fex

FileLength=456c00Add partion env.fex ENV_FEX000000000

Add partion very env.fex ENV_FEX000000000

FilePath: env.fex

FileLength=20000Add partion boot.fex BOOT_FEX00000000

Add partion very boot.fex BOOT_FEX00000000

FilePath: boot.fex

FileLength=9e9800Add partion system.fex SYSTEM_FEX000000

Add partion very system.fex SYSTEM_FEX000000

FilePath: system.fex

FileLength=16786928Add partion recovery.fex RECOVERY_FEX0000

Add partion very recovery.fex RECOVERY_FEX0000

FilePath: recovery.fex

FileLength=a67000Add partion diskfs.fex DISKFS_FEX000000

sys_config.fex Len: 0x978b

config.fex Len: 0x7158

split_xxxx.fex Len: 0x200

sys_partition.fex Len: 0xfea

boot0_nand.fex Len: 0x6000

boot0_sdcard.fex Len: 0x6000

u-boot.fex Len: 0xb0000

fes1.fex Len: 0x1920

full_img.fex Len: 0x6e0000

usbtool.fex Len: 0x23000

aultools.fex Len: 0x26ead

aultls32.fex Len: 0x238dd

cardtool.fex Len: 0x14000

cardscript.fex Len: 0x6ea

sunxi_mbr.fex Len: 0x10000

dlinfo.fex Len: 0x4000

boot-resource.fex Len: 0x456c00

Vboot-resource.fex Len: 0x4

env.fex Len: 0x20000

Venv.fex Len: 0x4

boot.fex Len: 0x9e9800

Vboot.fex Len: 0x4

system.fex Len: 0x16786928

Vsystem.fex Len: 0x4

recovery.fex Len: 0xa67000

Vrecovery.fex Len: 0x4

diskfs.fex Len: 0x200

BuildImg 0

Dragon execute image.cfg SUCCESS !

----------image is at----------

 

/home/wwt/r8_20160613_ruoge/lichee/tools/pack/sun5i_android_r8-evb_uart0.img

 

pack finish

/home/wwt/r8_20160613_ruoge/android

rootroot@cm-System-Product-Name:/home/wwt/r8_20160613_ruoge/android$

 

 

 

 

5、刷机之后必须执行su才会看见命令行:

[   33.366932] PCF8563_REG_AHRpcf8563_alarm_disable,line:580, ret:128

[   33.373594] pcf8563_alarm_disable,line:584, ret:128

su

root@android:/ # [   35.690061] init: starting 'ril-daemon'

[   35.710050] init: Created socket '/dev/socket/rild-debug' with mode '660', user '1001', group '1000'

[   35.730051] init: Created socket '/dev/socket/rild' with mode '660', user '0', group '1001'

[   35.770049] init: waitpid returned pid 406, status = 0000ff00

[   35.770049] init: process 'ril-daemon', pid 406 exited

[   35.800031] init: process 'ril-daemon' killing any children in process group

 

root@android:/ # [   40.810056] init: starting 'ril-daemon'

[   40.810056] init: Created socket '/dev/socket/rild-debug' with mode '660', user '1001', group '1000'

[   40.824257] init: Created socket '/dev/socket/rild' with mode '660', user '0', group '1001'

[   40.850073] init: waitpid returned pid 409, status = 0000ff00

[   40.850073] init: process 'ril-daemon', pid 409 exited

 

 

 

 

6、修改DEBUG口以及USB的配置(否则没有调试信息):

Z:\home\wwt\r8_20160613_ruoge\lichee\tools\pack\chips\sun5i\configs\r8-evb\sys_config.fex

修改为(DEBUG口修改为sd card/TF了):

[uart_para]

uart_debug_port          = 0

uart_debug_tx            = port:PF02<4><1><default><default>

uart_debug_rx            = port:PF04<4><1><default><default>

 

 

不用电阻屏:

[rtp_para]

rtp_used      = 0

rtp_screen_size = 5

rtp_regidity_level = 5

rtp_press_threshold_enable = 0

rtp_press_threshold = 0x1f40

rtp_sensitive_level = 0xf

rtp_exchange_x_y_flag = 0

 

使用电容屏:CTP

[ctp_para]

ctp_used                 = 1

ctp_name                 = "ft5x_ts"

ctp_twi_id               = 1

ctp_twi_addr             = 0x38

ctp_screen_max_x         = 800

ctp_screen_max_y         = 480

ctp_revert_x_flag        = 0

ctp_revert_y_flag        = 0

ctp_exchange_x_y_flag    = 0

 

ctp_int_port             = port:PG04<6><default><default><default>

ctp_wakeup               = port:PG03<1><default><default><1>

;ctp_io_port              = port:PH21<0><default>

 

 

开发板使用的是NAND FLASH,关闭这里:

[mmc0_para]

sdc_used                 = 0

 

 

;--------------------------------

;---       USB0控制标志

;--------------------------------

[usbc0]

usb_used                 = 1

(在android下,usb_port_type设置为2即为OTG模式,adb shell连接不上,Total Control也连接不上!)

usb_port_type            = 0

usb_detect_type          = 1

usb_id_gpio              = port:PG2<0><1><default><default>

usb_det_vbus_gpio        = port:PG1<0><0><default><default>

(根据原理图修改这里:)

usb_drv_vbus_gpio        = port:PB3<1><0><default><0>

usb_host_init_state      = 0

 

 

 

 

7、休眠&锁屏设置(可选):

Z:\home\wwt\r8_20160613_ruoge\android\frameworks\base\packages\SettingsProvider\res\values\defaults.xml

 

    <integer name="def_screen_off_timeout">60000</integer>

修改为(设置休眠时间为30分钟):

    <integer name="def_screen_off_timeout">1800000</integer>

 

    <bool name="def_lockscreen_disabled">false</bool>

修改为(禁止锁屏):

    <bool name="def_lockscreen_disabled">true</bool>

 

 

 

 

8、uboot启动到内核的等待时间配置:

Z:\home\wwt\r8_20160613_ruoge\lichee\tools\pack\chips\sun5i\configs\default\env.cfg

bootdelay=0

修改为:

bootdelay=3

 

 


0 0
原创粉丝点击