R58的編譯步驟f1選項v1.1版本
R58的編譯步驟f1選項v1.1版本
2017/3/16 16:38
請嚴重注意:
編譯全志R58的Android6.0.1的系統和其它系統有兩個不同:
1、在執行pack打包之前,必須執行verity_data_init,否則f1選項編譯的系統會打包失敗!
2、在執行pack打包之前,必須編譯uboot,否則系統起不來/沒有顯示。
3、octopus_perf-eng不是適配SC5806開發板的。
一、系統編譯:
[email protected]:/home/wwt/r58m_orig$ cat android_r58m_wyb_20170314split.tar.gza* > android.tar.gz
[email protected]:/home/wwt/r58m_orig$ tar zxvf lichee_r58m_wyb_20170308.tar.gz
[email protected]:/home/wwt/r58m_orig$ tar zxvf android.tar.gz
[email protected]:/home/wwt/r58m_orig$ cd lichee/
[email protected]:/home/wwt/r58m_orig/lichee$ ./build.sh config
Welcome to mkscript setup progress
All available chips:
0. sun50iw1p1
1. sun8iw10p1
2. sun8iw1p1
3. sun8iw3p1
4. sun8iw5p1
5. sun8iw6p1
6. sun8iw7p1
7. sun8iw8p1
8. sun8iw9p1
9. sun9iw1p1
Choice: 5
All available platforms:
0. android
1. dragonboard
2. linux
3. camdroid
4. secureandroid
Choice: 0
All available kernel:
0. linux-3.10
1. linux-3.4
Choice: 1
All available boards:
0. eagle-p83
1. f1
2. fpga
3. perf1_v1_0
4. perf2_v1_0
5. perf3_v1_0
6. qc
Choice: 1
[email protected]:/home/wwt/r58m_orig/lichee$
[email protected]:/home/wwt/r58m_orig/lichee$ ./build.sh
if [ -z /home/wwt/r58m_orig/lichee/linux-3.4/output/lib/modules/3.4.39 ]; then \
cp -u sgx544/android/kernel_mode/eurasia_km/eurasiacon/binary2_sunxi_android_release/target/pvrsrvkm.ko /kernel_mode/linux-3.4; \
fi
make:離開目錄“/home/wwt/r58m_orig/lichee/linux-3.4/modules/gpu”
regenerate rootfs cpio
11281 塊
12037 塊
build_ramfs
Copy boot.img to output directory ...
Copy modules to target ...
sun8iw6p1 compile Kernel successful
INFO: build kernel OK.
INFO: build rootfs ...
INFO: skip make rootfs for android
INFO: build rootfs OK.
INFO: ----------------------------------------
INFO: build lichee OK.
INFO: ----------------------------------------
[email protected]:/home/wwt/r58m_orig/lichee$
[email protected]:/home/wwt/r58m_orig/lichee$ cd ../android/
[email protected]:/home/wwt/r58m_orig/android$ source build/envsetup.sh
including device/asus/deb/vendorsetup.sh
including device/asus/flo/vendorsetup.sh
including device/asus/fugu/vendorsetup.sh
including device/generic/mini-emulator-arm64/vendorsetup.sh
including device/generic/mini-emulator-armv7-a-neon/vendorsetup.sh
including device/generic/mini-emulator-mips/vendorsetup.sh
including device/generic/mini-emulator-x86_64/vendorsetup.sh
including device/generic/mini-emulator-x86/vendorsetup.sh
including device/htc/flounder/vendorsetup.sh
including device/lge/hammerhead/vendorsetup.sh
including device/moto/shamu/vendorsetup.sh
including device/softwinner/astar-d7/vendorsetup.sh
including device/softwinner/astar-h7/vendorsetup.sh
including device/softwinner/common/vendorsetup.sh
including device/softwinner/octopus-f1/vendorsetup.sh
including device/softwinner/octopus-perf/vendorsetup.sh
including device/softwinner/tulip-p1/vendorsetup.sh
including device/softwinner/tulip-p2/vendorsetup.sh
including sdk/bash_completion/adb.bash
[email protected]:/home/wwt/r58m_orig/android$ lunch
You're building on Linux
Lunch menu... pick a combo:
1. aosp_arm-eng
2. aosp_arm64-eng
3. aosp_mips-eng
4. aosp_mips64-eng
5. aosp_x86-eng
6. aosp_x86_64-eng
7. aosp_deb-userdebug
8. aosp_flo-userdebug
9. full_fugu-userdebug
10. aosp_fugu-userdebug
11. mini_emulator_arm64-userdebug
12. m_e_arm-userdebug
13. mini_emulator_mips-userdebug
14. mini_emulator_x86_64-userdebug
15. mini_emulator_x86-userdebug
16. aosp_flounder-userdebug
17. aosp_hammerhead-userdebug
18. aosp_hammerhead_fp-userdebug
19. aosp_shamu-userdebug
20. astar_d7-eng
21. astar_d7-user
22. astar_h7-eng
23. astar_h7-user
24. octopus_f1-eng
25. octopus_f1-user
26. octopus_perf-eng
27. octopus_perf-user
28. tulip_p1-eng
29. tulip_p1-user
30. tulip_p2-eng
31. tulip_p2-user
Which would you like? [aosp_arm-eng] 24
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=6.0.1
TARGET_PRODUCT=octopus_f1
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=cortex-a7
TARGET_2ND_ARCH=
TARGET_2ND_ARCH_VARIANT=
TARGET_2ND_CPU_VARIANT=
HOST_ARCH=x86_64
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=MMB29M
OUT_DIR=out
============================================
[email protected]:/home/wwt/r58m_orig/android$
[email protected]:/home/wwt/r58m_orig/android$ extract-bsp
/home/wwt/r58m_orig/android/device/softwinner/octopus-f1/bImage copied!
/home/wwt/r58m_orig/android/device/softwinner/octopus-f1/modules copied!
[email protected]:/home/wwt/r58m_orig/android$ make -j12
[email protected]:/home/wwt/r58m_orig/android$ verity_data_init
請嚴重注意,這個時候打包沒有顯示的!^_^必須編譯uboot。(這個步驟可以跳過!)
[email protected]:/home/wwt/r58m_orig/android$ pack
[email protected]:/home/wwt/r58m_orig/android$ cd ../lichee/brandy/
[email protected]:/home/wwt/r58m_orig/lichee/brandy$
[email protected]:/home/wwt/r58m_orig/lichee/brandy$ ./build.sh -p sun8iw6p1
[email protected]:/home/wwt/r58m_orig/lichee/brandy$ cd -
/home/wwt/r58m_orig/android
[email protected]:/home/wwt/r58m_orig/android$ pack
二、核心的裁剪(可選):
[email protected]:/home/wwt/r58m_orig/lichee$ ./build.sh config
Welcome to mkscript setup progress
All available chips:
0. sun50iw1p1
1. sun8iw10p1
2. sun8iw1p1
3. sun8iw3p1
4. sun8iw5p1
5. sun8iw6p1
6. sun8iw7p1
7. sun8iw8p1
8. sun8iw9p1
9. sun9iw1p1
Choice: 5
All available platforms:
0. android
1. dragonboard
2. linux
3. camdroid
4. secureandroid
Choice: 0
All available kernel:
0. linux-3.10
1. linux-3.4
Choice: 1
All available boards:
0. eagle-p83
1. f1
2. fpga
3. perf1_v1_0
4. perf2_v1_0
5. perf3_v1_0
6. qc
Choice: 1
[email protected]:/home/wwt/r58m_orig/lichee$
1、列印等級調整
[email protected]stem-Product-Name:/home/wwt/r58m_orig/lichee/linux-3.4$ make ARCH=arm menuconfig
General setup --->
(16) Kernel log buffer size (16 => 64KB, 17 => 128KB)
修改為:
(18) Kernel log buffer size (16 => 64KB, 17 => 128KB)
2、關閉Realtek的WIFI/BT。只使用AP6212等。(正基的模組,博通的晶片)
Device Drivers --->
[*] Network device support --->
[*] Wireless LAN --->
<M> Broadcom FullMAC wireless cards support
(/system/vendor/modules/fw_bcmdhd.bin) Firmware path
(/system/vendor/modules/nvram.txt) NVRAM path
(/system/vendor/modules/config.txt) Config path
Enable Chip Interface (SDIO bus interface support) --->
Interrupt type (Out-of-Band Interrupt) --->
<M> Realtek 8723B SDIO or SPI WiFi
<M> Realtek 8723BS_VQ0 WiFi
修改為:
< > Realtek 8723B SDIO or SPI WiFi
< > Realtek 8723BS_VQ0 WiFi
3、關閉SELinux安全選項,方便除錯
Security options --->
[*] Security hooks for pathname based access control
(32768) Low address space for LSM to protect from user allocation
[*] NSA SELinux Support
[*] NSA SELinux boot parameter
(1) NSA SELinux boot parameter default value
[ ] NSA SELinux runtime disable
[*] NSA SELinux Development Support
[*] NSA SELinux AVC Statistics
(1) NSA SELinux checkreqprot default value
[ ] NSA SELinux maximum supported policy format version
修改為:
[ ] NSA SELinux Support
4、開啟USB攝像頭驅動/UVC
Device Drivers --->
<*> Multimedia support --->
[*] Video capture adapters --->
[*] V4L USB devices --->
--- V4L USB devices
< > USB Video Class (UVC)
修改為:
<M> USB Video Class (UVC)
[*] UVC input events device support