Click here to load reader
View
280
Download
7
Embed Size (px)
DESCRIPTION
rtertertertert
Citation preview
Conf
identi
al
A20 LinuxBSP - 1 -Copyright 2013Allwinner Technology. All Rights Reserved.
A20A20A20A20 LinuxBSPLinuxBSPLinuxBSPLinuxBSPV1.0V1.0V1.0V1.0
2012012012013333----03030303----15151515
Conf
identi
al
A20 LinuxBSP - 2 -Copyright 2013Allwinner Technology. All Rights Reserved.
RevisionRevisionRevisionRevision HistoryHistoryHistoryHistory
VersionVersionVersionVersion DateDateDateDate ChangesChangesChangesChanges comparedcomparedcomparedcompared totototo previouspreviouspreviousprevious issueissueissueissuev1.0 2013-03-15
Conf
identi
al
A20 LinuxBSP - 3 -Copyright 2013Allwinner Technology. All Rights Reserved.
1. --------------------------------------------------------------------------------------------- 42. --------------------------------------------------------------------------------- 5
2.1. -------------------------------------------------------------------------------52.2. -------------------------------------------------------------------------------5
3. --------------------------------------------------------------------------------- 63.1. buildroot-------------------------------------------------------------------------------- 63.2. linux-3.3-------------------------------------------------------------------------------- 73.3. U-boot----------------------------------------------------------------------------------- 83.4. tools--------------------------------------------------------------------------------------93.5. boot-------------------------------------------------------------------------------------- 9
4. ------------------------------------------------------------------------------- 105. ------------------------------------------------------------------------------------- 116. ------------------------------------------------------------------------------------- 12
6.1. ----------------------------------------------------------------------------- 126.2. Nand--------------------------------------------------------------------- 126.3. ----------------------------------------------------------------------------- 16
7. ---------------------------------------------------------------------------- 177.1. Nand Flash rootfs--------------------------------------------------------- 17
8. ---------------------------------------------------------------------------------- 188.1. ----------------------------------------------------------------------------- 188.2. ----------------------------------------------------------------------------- 208.3. -------------------------------------------------------------------------- 20
9. ------------------------------------------------------------------------------------------- 219.1. sysconfig1.fex----------------------------------------------------------219.2. ----------------------------------------------------------------------- 219.3. ----------------------------------------------------------------------- 21
10. Declaration-----------------------------------------------------------------------------------22
Conf
identi
al
A20 LinuxBSP - 4 -Copyright 2013Allwinner Technology. All Rights Reserved.
1.1.1.1. A20 wing Linux BSP(Lichee wing BSP)
BSPwing BSP ftp
Conf
identi
al
A20 LinuxBSP - 5 -Copyright 2013Allwinner Technology. All Rights Reserved.
2.2.2.2.
2.1.2.1.2.1.2.1.
A20 EVB LINUX , 12V USB
2.2.2.2.2.2.2.2.
Red Hat Enterprise Linux Server release 6.0 (64 bit)Ubuntu 10.04/12.04(64 bit) gcc, ncurse, bison, autoconf, wget,patch, texinfo, zlib, dos2unix
arm-linux-gnueabi-gcc-4.6.3
Conf
identi
al
A20 LinuxBSP - 6 -Copyright 2013Allwinner Technology. All Rights Reserved.
3.3.3.3.wing BSP Buildroot( 2011.02), Linux kernel( 3.3) Buildroot ARMU-BootLinuxLinux Kernel wing BSP
3.1.3.1.3.1.3.1. buildrootbuildrootbuildrootbuildroot
ARM U-Boot strace, directfb, oprofile
board boot build.sh CHANGES Config.in configs COPYING dl docs external-packages fs linux Makefile output package README scripts target toolchainboot Bootconfig sun7i_defconfigdlscripts
buildroottarget package 3000
Conf
identi
al
A20 LinuxBSP - 7 -Copyright 2013Allwinner Technology. All Rights Reserved.
buildroot buildroot http://buildroot.uclibc.org/
3.2.3.2.3.2.3.2. linux-3.3linux-3.3linux-3.3linux-3.3
. arch
bImage block build.sh crypto Documentation drivers firmware fs include init ipc Kbuild Kconfig kernel lib Makefile mm modules net output rootfs samples scripts security sound tools usr version virt vmlinux Linux modules
modulesmenuconfig example,nandeurasia_kmtest wifi 5 exampleeurasia_km GPUtest
Conf
identi
al
A20 LinuxBSP - 8 -Copyright 2013Allwinner Technology. All Rights Reserved.
nand
eurasia_km example nand test wifi
3.3.3.3.3.3.3.3. U-bootU-bootU-bootU-boot
. api arch board boards.cfg build.sh common config.mk COPYING CREDITS disk doc drivers examples fs include lib MAINTAINERS MAKEALL Makefile mkconfig mmc_spl nand_spl nand_sunxi net onenand_ipl post README rules.mk snapshot.commit spl
Conf
identi
al
A20 LinuxBSP - 9 -Copyright 2013Allwinner Technology. All Rights Reserved.
System.map tools u-boot u-boot.bin u-boot.lds u-boot.map u-boot.srec sunxi u-boot u-boot
3.4.3.4.3.4.3.4. toolstoolstoolstools
tree -L 1. daily_build doc pack toolschain tools_win
3.5.3.5.3.5.3.5. bootbootbootboot
tree -L 1. boot0 boot1 config Makefile pack workspace Bootloader
Conf
identi
al
A20 LinuxBSP - 10 -Copyright 2013Allwinner Technology. All Rights Reserved.
4.4.4.4. sun7i
lichee/build.sh -p sun7i
buildroot/build.sh
make xxx_defconfig
make
toolchainPATH
linux-3.3/scripts/build_sun7i.shconfig
build kernel
build
rootfs
Linux-3.3/modules/
u-boot
linux
3.1 build.sh
build.sh
build.sh
build.sh./build.sh
./build.sh
./build.sh
./build.sh -h
-h
-h
-h
Conf
identi
al
A20 LinuxBSP - 11 -Copyright 2013Allwinner Technology. All Rights Reserved.
5.5.5.5. lichee$ ./build.sh -hUSAGE: buildroot/scripts/mkcommon.sh [flags] argsflags:-p,--platform: platform to build, e.g. sun7i (default: 'sun7i')-b,--board: board to build, e.g. evb (default: '')-m,--module: module to build, e.g. buildroot, kernel, uboot, clean
(default: '')-i,--[no]independent: output build to independent directory (default: false)-h,--[no]help: show this help (default: false)
Examples:./build.sh -p sun7i./build.sh pack-h -p sun7i linuxsun7i_android android-m kernelbuildrootuboot 3-i
lichee()
$ . buildroot/scripts/mksetup.sh #$ mklichee
Conf
identi
al
A20 LinuxBSP - 12 -Copyright 2013Allwinner Technology. All Rights Reserved.
6.6.6.6. bootloader nand flashsd
6.1.6.1.6.1.6.1.
android android Lichee
$ ./build.sh pack 3$ ./build.sh packgenerate rootfs now, it will takes several minutes and log in out/
generate rootfs has finished!
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
sun7i linux evb
!!!Packing for linux!!!
image lichee\tools\pack
lichee\tools\packsun7i_linux_evb.img
6.2.6.2.6.2.6.2. NandNandNandNand
(1) ( nandflash sdcard) 01
Conf
identi
al
A20 LinuxBSP - 13 -Copyright 2013Allwinner Technology. All Rights Reserved.
PC X
A B C H
6.1 X A-H 8 A H
6.1
A B C G
6.2 BC
H lichee\tools\pack\chips\sun7i\configs\android\wing-xxx
sys_partition.fex sys_partition.fex[partition_start]
[partition]name = bootloadersize = 32768downloadfile = "bootloader.fex"keydata = 0encrypt = 0ro = 0verify = 1user_type = 1
1. partition: 2. name 163. size 04. downloadfile
5. keydata 1 0 06. encrypt 1 0
07. ro 0
Conf
identi
al
A20 LinuxBSP - 14 -Copyright 2013Allwinner Technology. All Rights Reserved.
8. verify 1 0 19. user_type: patition 4 patition4 parttition[partition_start][partition]
name = bootloadersize = 32768downloadfile = "bootloader.fex"
[partition]name = envsize = 16384
[partition]name = bootsize = 16384
[partition]name = rootfssize = 5242882
PC
PC PC
1)
2)
128M 1024k
lichee\tools\pack\chips\sun7i\wboot\bootfs.ini
[system]ver=100date=2009-7-03
Conf
identi
al
A20 LinuxBSP - 15 -Copyright 2013Allwinner Technology. All Rights Reserved.
ID=937ae0d0-50e3-43c2-9b84-bfef0cd21a41[fsinfo]disccnt=1disc0=cdisc=cfsname=.\bootfs.fexformat=fat16size=131072attr=0rootcnt=1root0=.\bootfs;fsname=.\bootfs.fex
size(k); size(k)size=131072 k
131072kbytes 128Mbytes 128M
;root location and counter definerootcnt=1root0=.\bootfs root0=.\bootfs bootfs()3) PC::==================================================:: build bootfs::==================================================..\pctools\fsbuild200\fsbuild.exe .\bootfs.ini ..\efex\split_c43a2a92-a8ed-4f92-abdb-ca0d5d29666d.bin > bootfs.txt
PC bootfs.txt
128M 32M 128M 32M
Conf
identi
al
A20 LinuxBSP - 16 -Copyright 2013Allwinner Technology. All Rights Reserved.
PC 32M 32M128MPC 32M 0 128M 0 PC 0 32M
PCPC.\bootfs.ini ..\efex\split_c43a2a92-a8ed-4f92-abdb-ca0d5d29666d.bin bin 0
0.\bootfs.ini
128M 32M 0
6.3.6.3.6.3.6.3.
PhoenixSuit.pdf
Conf
identi
al
A20 LinuxBSP - 17 -Copyright 2013Allwinner Technology. All Rights Reserved.
7.7.7.7.
7.1.7.1.7.1.7.1. NandNandNandNand FlashFlashFlashFlash rootfsrootfsrootfsrootfs
(1) $cd lichee/buildroot$cp configs/sun7i_defconfig .config(2) buildroot$make ARCHarm menuconfig
7.1 linux make menuconfig lichee build.sh buildroot buildroot/dl
Conf
identi
al
A20 LinuxBSP - 18 -Copyright 2013Allwinner Technology. All Rights Reserved.
8.8.8.8.
8.1.8.1.8.1.8.1.
buildroot buildroot/packages 1 buildroot http://buildroot.uclibc.org/docs.html
buildroot buildroot/package config.in xxxx.mkxxxx 2buildroot/package 2 config.in.mk fsck-msdos.mk
argus.mk buildroot/package config.insource "package/panlong/Config.in"
panlong
panlong
panlong
panlong
make
make
make
make menuconfig
menuconfig
menuconfig
menuconfig
menu "Package Selection for the target"
source "package/busybox/Config.in"source "package/customize/Config.in"
#source "package/lcd-test/Config.in"#source "package/tp-test/Config.in"#source "package/kernel-header/Config.in"#source "package/sw-tools/Config.in"#source "package/ext4-utils/Config.in"#source "package/tiobench/Config.in"#source "package/fsck_msdos/Config.in"#source "package/mali-3d/Config.in"#source "package/cedar/Config.in"sourcesourcesourcesource "package/panlong/Config.in""package/panlong/Config.in""package/panlong/Config.in""package/panlong/Config.in"# Audio and video applicationssource "package/multimedia/Config.in"
# make menuconfig source"package/panlong/Config.in" menu "Package Selection for the target"
Conf
identi
al
A20 LinuxBSP - 19 -Copyright 2013Allwinner Technology. All Rights Reserved.
make menuconfig
7.2 Buildroot make menuconfig enter
7.3 package selection for the target
linux-3.3/driverskernel menuconfig linux-3.3/modules
Conf
identi
al
A20 LinuxBSP - 20 -Copyright 2013Allwinner Technology. All Rights Reserved.
menuconfig kconfig menuconfig modules mali modules mali makefile 4LICHEE_KDIR buildroot linux-3.3LICHEE_MOD_DIR==${LICHEE_KDIR}/output/lib/modules/${KERNEL_VERSION}KERNEL_VERSION= 3.3CROSS_COMPILE= arm-linux-gnueabi-ARCH=arm
linux-3.3/scripts/build_XX.shxx-p sun7i
makefilelinux-3.3/scripts/build_XX.sh build_modules() nandwifieurasia_km gpu clean_modules() nand
.config defconfig sun7i buildroot .config sun7i_defconfig buildroot\configs
8.2.8.2.8.2.8.2.
buildroot/packages/mali-3d
8.3.8.3.8.3.8.3.
ls cd lichee\out\linux\common\buildroot\output\target binsbin usr binsbin
Conf
identi
al
A20 LinuxBSP - 21 -Copyright 2013Allwinner Technology. All Rights Reserved.
9.9.9.9.
9.1.9.1.9.1.9.1. sysconfig1.fexsysconfig1.fexsysconfig1.fexsysconfig1.fex
A20_wing_fex_guide(CH).pdf
9.2.9.2.9.2.9.2.
A20 CTP.docA20 Linux IIC.docA20 Linux SPI.docA20 gsensor-OK.doc
9.3.9.3.9.3.9.3.
makefilehttp://www.gnu.org/software/make/manual/make.htmlbuildroothttp://buildroot.uclibc.org/downloads/buildroot.html
Conf
identi
al
A20 LinuxBSP - 22 -Copyright 2013Allwinner Technology. All Rights Reserved.
10.10.10.10. DeclarationDeclarationDeclarationDeclarationThis(A20 LinuxBSP ) is the original work and copyrighted property of AllwinnerTechnology (Allwinner). Reproduction in whole or in part must obtain the written approvalof Allwinner and give clear acknowledgement to the copyright owner.
The information furnished by Allwinner is believed to be accurate and reliable. Allwinnerreserves the right to make changes in circuit design and/or specifications at any time withoutnotice. Allwinner does not assume any responsibility and liability for its use. Nor for anyinfringements of patents or other rights of the third parties which may result from its use. Nolicense is granted by implication or otherwise under any patent or patent rights of Allwinner.This datasheet neither states nor implies warranty of any kind, including fitness for anyparticular application.
buildrootlinux-3.3U-boottoolsboot
Nand
NandFlashrootfs
sysconfig1.fex
Declaration