phoenixa20教程
DESCRIPTION
PhoenixA20教程TRANSCRIPT
-
PhoenixA20
-
Phoenix ....................................................................................................1
1 ...................................................................................................................1 2 ...................................................................................................................3
Phoenix..........................................................................................7 1. ...................................................................................................................7 2. Phoenix..............................................................................................................8 3. ...........................................................................................................................8 4. .........................................................................................................................10
Phoenix....................................................................................................................15 1. .........................................................................................................................15 2. USB .........................................................................................................................18 3. JTAG .......................................................................................................................18
Phoenix....................................................................................................19 1. .........................................................................................................19 2. SATA .......................................................................................................................20 3. .............................................................................................................................21 4. WIFIBT.......................................................................................................................21 5. VGACVBS..................................................................................................................25 6. USB .........................................................................................................................26 7. .........................................................................................................................26 8. IIC ...........................................................................................................................28 9. .........................................................................................................................28
-
Phoe
nixA2
0
ANICHIPS TECHNOLOGY
Phoenix
1 Phoenix Phoenix
1.1 Phoenix
1) 64 ubantu 4G
100G android linux android I5+8G DDR+500G
2) VGA HDMI
1
-
Phoe
nixA2
0
ANICHIPS TECHNOLOGY
3) HDMI VGA
4) USB USB
5) Phoenix
Phoenix Phoenix android linux
1.2 Phoenix Phoenix
Phoenix 1) 2.5 Phoenix 2.5
2
-
Phoe
nixA2
0
ANICHIPS TECHNOLOGY
2)
3) TF U 4) Phoenix Phoenix
2
2.1 Ubuntu Google windows
windows A20 linux Ubuntu windows UbuntuUbuntu 12.04 64 android Ubuntu12.04
Ubuntu http://www.ubuntu.org.cn/download/desktop
3
-
Phoe
nixA2
0
ANICHIPS TECHNOLOGY
2.2 Linux 1) JDK
Terminal $ sudo add-apt-repository ppa:webupd8team/java $ sudo apt-get update $ sudo apt-get install oracle-java6-installer Tips
Ubuntu Terminal Ctrl+Alt+T 2) $ sudo apt-get install libgl1-mesa-dri:i386 $ sudo apt-get install git gnupg flex bison gperf build-essential \ zip curl libc6-dev libncurses5-dev:i386 x11proto-core-dev \ libx11-dev:i386 libreadline6-dev:i386 libgl1-mesa-glx:i386 \ libgl1-mesa-dev g++-multilib mingw32 tofrodos \ python-markdown libxml2-utils xsltproc zlib1g-dev:i386 $ sudo ln -s /usr/lib/i386-linux-gnu/mesa/libGL.so.1 /usr/lib/i386-linux-gnu/libGL.so 3) $ sudo apt-get install uboot-mkimage $ sudo apt-get install lib32z1-dev $ sudo apt-get install texinfo $ sudo apt-get install gettext
4) repo $ mkdir ~/bin $ PATH=~/bin:$PATH $ curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > ~/bin/repo $ chmod a+x ~/bin/repo
2.3 windows Windows phoenixsuit
4
-
Phoe
nixA2
0
ANICHIPS TECHNOLOGY
putty
dragonface Dragonface
5
-
Phoe
nixA2
0
ANICHIPS TECHNOLOGY
6
-
Phoe
nixA2
0
ANICHIPS TECHNOLOGY
Phoenix
1. Phoenix android lichee android
android lichee linux android lichee phoenix android lichee lichee android
1.1 lichee
1.2 android
7
-
Phoe
nixA2
0
ANICHIPS TECHNOLOGY
2. Phoenix Phoenix github
android4.2 linux linux android
2.1 linux
repo PhoenixA20 lichee linux lichee $ mkdir lichee $ cd lichee $ repo init -u https://github.com/qubir/phoenixA20_linux_repo.git $ repo sync
$ mv buildroot/build_linux.sh build.sh
2.2 android android repo android $ mkdir android $ cd android $ repo init -u https://github.com/qubir/PhoenixA20_android_manifest_repo.git $ repo sync
PhoenixA20 A20 linux-sunxi
3.
3.1 android android linux android
1) lichee
lichee $ cd lichee $ ./build.sh -p sun7i_android
8
-
Phoe
nixA2
0
ANICHIPS TECHNOLOGY
$ . buildroot/scripts/mksetup.sh # $ mklichee
lichee 10 INFO:build u-boot OK. ... INFO:build rootfs OK. INFO:build lichee OK. 2) android
lichee android $ cd android $ . build/envsetup.sh # $ lunch #PhoenixA20 suger - $ extract-bsp # android $ make j4 #-j cpu
out/target/product/wing-xxx: boot.img , recovery.img , system.img 3
3)
android $ pack
lichee/tools/pack sun7i_android_xxx.img android Phoenix
3.2 linux linux
$ cd lichee $ ./build.sh -p sun7i
Enable sw_powernow feature (SW_POWERNOW) [Y/n/?] (NEW) y Realtek 8723A USB WiFi (RTL8723AU) [N/m/y/?] (NEW) m zet622x touchscreen driver (TOUCHSCREEN_ZET622X) [M/n/y/?] (NEW) n gt9xxtouchscreen driver (TOUCHSCREEN_GT9XX) [M/n/y/?] (NEW) n gt811 touchscreen driver (TOUCHSCREEN_GT811) [M/n/y/?] (NEW) n Winner serial ports (SERIAL_SW) [N/m/y/?] (NEW) y Console on Winner serial port (SERIAL_SW_CONSOLE) [N/y/?] (NEW) y SUNXI GPIO USER INTERFACE (GPIO_SUNXI) [N/m/y/?] (NEW) y SoC pcm interface for the ReuuiMlla SUN7I chips (SND_SUN7I_SOC_PCM_INTERFACE) [N/m/y/?] (NEW) y
9
-
Phoe
nixA2
0
ANICHIPS TECHNOLOGY
User-space I/O driver support for HID subsystem (UHID) [N/m/y/?] (NEW) y
$ ./build.sh -m clean $ ./build.sh -p sun7i
$ ./build.sh pack
Start packing for Lichee system All valid chips: 0. sun7i Please select a chip:0 All valid platforms: 0. android 1. dragonboard 2. linux Please select a platform:2 All valid boards: 0. evb-v10 1. k70 Please select a board:0
lichee/tools/pack/sun7i_linux_evb-v10.img
3.3 boot.img
linux kernel ramdisk android, boot.img $ . build/envsetup.sh $ lunch # wing-xxx $ extract-bsp $ make bootimage
boot.img system.img $ . build/envsetup.sh $ lunch # wing-xxx $ make systemimage-nodeps
wing-xxx android/out/target/product/wing-xxxwing-xxx/
4. Phoenix
10
-
Phoe
nixA2
0
ANICHIPS TECHNOLOGY
4.1 phoenixsuit phoenixsuit
1) phoenixsuit
2) USB 3) Phoenix 4) PhoenixUBOOTUSBPhoenixUSB
UBOOT
5)
11
-
Phoe
nixA2
0
ANICHIPS TECHNOLOGY
6) 2
12
-
Phoe
nixA2
0
ANICHIPS TECHNOLOGY
7) USB 5V
4.2 fastboot PhoenixSuit img
fastboot
fastboot USB A20 fastboot
u-boot
fastboot lichee\tools\pack\chips\sun7i\configs\android\default\env.cfg
bootdelay=0 bootdelay=2 google-usb_driver
fastboot fastboot
13
-
Phoe
nixA2
0
ANICHIPS TECHNOLOGY
pc fastboot fastboot windows
android sdk c
windows cmd c:\fastboot
fastboot
fastboot
fastboot erase boot # boot fastboot erase system # system fastboot erase data # data fastboot flash boot boot.img # boot.img boot fastboot flash system system.img # system.img system fastboot flash data userdata.img # userdata.img data
fastboot ctl+c Fastboot
14
-
Phoe
nixA2
0
ANICHIPS TECHNOLOGY
Phoenix
1.
1.1 Phoenix
1) USB
USB
RX TX
2)
windows linux windows secureCRTputty linux mini COM secureCRT putty putty
1.2 window
15
-
Phoe
nixA2
0
ANICHIPS TECHNOLOGY
usb 1) ->
2)
COM4.
3) putty connection type serialserial line COM4
speed 115200
16
-
Phoe
nixA2
0
ANICHIPS TECHNOLOGY
4) openPhoenix
5) logcat android
17
-
Phoe
nixA2
0
ANICHIPS TECHNOLOGY
6) shell shell
2. USB USB android adb
3. JTAG Phoenix JTAG JTAG
JTAG
18
-
Phoe
nixA2
0
ANICHIPS TECHNOLOGY
Phoenix
Phoenix android Phoenix
Phoenix /lichee/tools/pack/chips/sun7i/configs/android/sugar-standard/ sys_config.fex sys_partions.fex
Sys_config.fex Phoenix Phoenix
1.
Android
Phoenix GPIO
Sys_config.fex ;------------------------------------------------------------------------------- ;Ethernet MAC configuration ;------------------------------------------------------------------------------- [emac_para] emac_used = 1 emac_rxd3 = port:PA00 emac_rxd2 = port:PA01 emac_rxd1 = port:PA02 emac_rxd0 = port:PA03
19
-
Phoe
nixA2
0
ANICHIPS TECHNOLOGY
emac_txd3 = port:PA04 emac_txd2 = port:PA05 emac_txd1 = port:PA06 emac_txd0 = port:PA07 emac_rxclk = port:PA08 emac_rxerr = port:PA09 emac_rxdV = port:PA10 emac_mdc = port:PA11 emac_mdio = port:PA12 emac_txen = port:PA13 emac_txclk = port:PA14 emac_crs = port:PA15 emac_col = port:PA16 emac_reset = port:PA17 emac_power = port:PH24
emac_use 1 emac_power PH24Phoenix emac_power PH24
2. SATA Phoenix sata Linux sata
menucofig Phoenix GIPO SATA
Sys_config.fex sata
;------------------------------------------------------------------------------- ;sata configuration ;
20
-
Phoe
nixA2
0
ANICHIPS TECHNOLOGY
;------------------------------------------------------------------------------- [sata_para] sata_used = 1 sata_power_en =
sata_power_en sata_power_en = port:PH17
sata
3. Phoenix 32GB tf
[mmc0_para] sdc_used = 1 sdc_detmode = 1 sdc_buswidth = 4 sdc_clk = port:PF02 sdc_cmd = port:PF03 sdc_d0 = port:PF01 sdc_d1 = port:PF00 sdc_d2 = port:PF05 sdc_d3 = port:PF04 sdc_det = port:PD04 sdc_use_wp = 0 sdc_wp = sdc_isio = 0 sdc_regulator = "none"
sdc_used 1 sdc_det Phoenix mmc0 mmc0 PD04 sdc_det sdc_det = port:PD04
4. WIFI BT
4.1 Phoenix wifi AP6210,
wifi AP6210 4.0
21
-
Phoe
nixA2
0
ANICHIPS TECHNOLOGY
A20 SDIO AP6120 wifi
22
-
Phoe
nixA2
0
ANICHIPS TECHNOLOGY
GPIO
23
-
Phoe
nixA2
0
ANICHIPS TECHNOLOGY
A20 BT-RST PB05 BT-WAKE PI20 WL-PMU-EN PH09 WL-WAKE-HOST PH10 BT_WAKE-HOST PI21
4.2 wifi sysconfig.fex
WIFI ;-------------------------------------------------------------------------------- ;wifi configuration ;wifi_sdc_id --- 0- SDC0, 1- SDC1, 2- SDC2, 3- SDC3 ;wifi_usbc_id --- 0- USB0, 1- USB1, 2- USB2 ;wifi_usbc_type -- 1- EHCI(speed 2.0), 2- OHCI(speed 1.0) ;wifi_mod_sel --- 0- none, 1- bcm40181, 2- bcm40183(wifi+bt), ; 3 - rtl8723as(wifi+bt), 4- rtl8189es(SM89E00), ; 5 - rtl8192cu, 6 - rtl8188eu, 7 - ap6210 ;-------------------------------------------------------------------------------- [wifi_para] wifi_used = 1 wifi_sdc_id = 3 wifi_usbc_id = 2 wifi_usbc_type = 1 wifi_mod_sel = 7 wifi_power = "" ap6xxx_wl_regon = port:PH09 ap6xxx_wl_host_wake = port:PH10 ap6xxx_bt_regon = port:PH23 ap6xxx_bt_wake = port:PI20 ap6xxx_bt_host_wake = port:PI21
;------------------------------------------------------------------------------- ;blue tooth ;bt_used ---- blue tooth used (0- no used, 1- used) ;bt_uard_id ---- uart index ;------------------------------------------------------------------------------- [bt_para] bt_used = 1 bt_uart_id = 2 bt_wakeup = port:PI20
24
-
Phoe
nixA2
0
ANICHIPS TECHNOLOGY
bt_gpio = port:PI21 bt_rst = port:PB05
5. VGA CVBS Phoenix VGA VGA VGA
;------------------------------------------------------------------------------- ;tv out dac configuration ;dacx_src: 0:composite; 1:luma; 2:chroma; 4:Y; 5:Pb; 6: Pr; 7:none ;------------------------------------------------------------------------------- [tv_out_dac_para] dac_used = 1 dac0_src = 0 dac1_src = 0 dac2_src = 0 dac3_src = 0
VGA tvout0-2 RGB VGA dac0_src = 4 dac1_src = 5 dac2_src = 6
Phoenix buffer VGA buffer
GPIO
25
-
Phoe
nixA2
0
ANICHIPS TECHNOLOGY
Phoenix CVBS CVBS tvout3, cvbs dac3_src = 0
6. USB
7. Phoenix 4 0 debug
;------------------------------------------------------------------------------- ;uart configuration ;uart_type --- 2 (2 wire), 4 (4 wire), 8 (8 wire, full function) ;------------------------------------------------------------------------------- [uart_para0] uart_used = 1 uart_port = 0 uart_type = 2 uart_tx = port:PB22 uart_rx = port:PB23 [uart_para1] uart_used = 0 uart_port = 1 uart_type = 8 uart_tx = port:PA10 uart_rx = port:PA11 uart_rts = port:PA12 uart_cts = port:PA13 uart_dtr = port:PA14 uart_dsr = port:PA15 uart_dcd = port:PA16 uart_ring = port:PA17 [uart_para2] uart_used = 1 uart_port = 2 uart_type = 4 uart_tx = port:PI18 uart_rx = port:PI19
26
-
Phoe
nixA2
0
ANICHIPS TECHNOLOGY
uart_rts = port:PI16 uart_cts = port:PI17 [uart_para3] uart_used = 0 uart_port = 3 uart_type = 4 uart_tx = port:PH00 uart_rx = port:PH01 uart_rts = port:PH02 uart_cts = port:PH03 [uart_para4] uart_used = 0 uart_port = 4 uart_type = 2 uart_tx = port:PH04 uart_rx = port:PH05 [uart_para5] uart_used = 0 uart_port = 5 uart_type = 2 uart_tx = port:PH06 uart_rx = port:PH07 [uart_para6] uart_used = 0 uart_port = 6 uart_type = 2 uart_tx = port:PA12 uart_rx = port:PA13 [uart_para7] uart_used = 0 uart_port = 7 uart_type = 2 uart_tx = port:PA14 uart_rx = port:PA15
uart_type phoenix 2 uart_type = 2
27
-
Phoe
nixA2
0
ANICHIPS TECHNOLOGY
8. IIC Phoenix IIC IIC
IIC IIC ;------------------------------------------------------------------------------- ;i2c configuration ;------------------------------------------------------------------------------- [twi0_para] twi0_used = 1 twi0_scl = port:PB0 twi0_sda = port:PB1 [twi1_para] twi1_used = 1 twi1_scl = port:PB18 twi1_sda = port:PB19 [twi2_para] twi2_used = 1 twi2_scl = port:PB20 twi2_sda = port:PB21 [twi3_para] twi3_used = 1 twi3_scl = port:PI0 twi3_sda = port:PI1 [twi4_para] twi4_used = 1 twi4_scl = port:PI2 twi4_sda = port:PI3
IIC GPIO IIC IIC
9. Phoenix
Sys_config.fex ;------------------------------------------------------------------------------- ;ir --- infra remote configuration ;------------------------------------------------------------------------------- [ir_para] ir_used = 1
28
-
Phoe
nixA2
0
ANICHIPS TECHNOLOGY
29
ir_rx = port:PB04
ir_used 1 ir_rx Phoenix PH4, ir_rx = port:PB04
Phoenix Phoenix Phoenix Phoenix