GrabDuck

SigmaDesignsSMPHelp_V3_11_0_B_图文17-第3页

:

Waituntilgetfollowfeedba;“Youhavenowaccesstomipsa;Pleasecheckhttp://mipsan;Pleaseaskquestionsinthef;Andthenyouareabletodownl;$mkdir/home/(user)/Vanta;CopyCPU_KEYS_SMP86xx_201;smp86


Wait until get follow feedback information,

“You have now access to mipsandroid.com and the Sigma Designs Android project.

Please check http://mipsandroid.com/projects/mips-android-sigma/documents to download, compile, and execute Android on Sigma Designs platform.

Please ask questions in the forum or send an email to android@sdesigns.com.”

And then you are able to download the Android source code for Sigma Designs chips. 3) HOW TO BUILD SMP865/7X V3.11.0 SDK

$mkdir /home/(user)/Vantage867X

Copy CPU_KEYS_SMP86xx_2010-02-12.tar.gz, cs_rootfs_1.2.19.tar.bz2,

smp86xx_ezboot_0xb6.tar.bz2, smp86xx_yamon_R2.13-37.tar.bz2,

smp86xx_yamon_R2.16-10.tar.bz2, smp86xx_kernel_source_R2.6.22-44.tar.bz2,

smp86xx_kernel_source_R2.6.29-22.tar.bz2, smp86xx_upgrader_0.4.5.tar.bz2,

mrua_SMP8654F_3_11_0_dev.mips.tgz, mrua_SMP8656F_3_11_0_dev.mips.tgz,

mruafw_SMP8654F_prod_3_11_0.tgz, mruafw_SMP8656F_prod_3_11_0.tgz,

dcchd_SMP865x_3_11_0_black.mips.tgz,realplugin_SMP8654F_3_11_0.mips.tgz,

realplugin_SMP8656F_3_11_0.mips.tgz to “/home/(user)/Vantage867X” directory.

Make sure your linux host PC can connect to internet.

A) Install and set ToolChain

Download toolchain file from follow link,

http://www.codesourcery.com/gnu_toolchains/mips/portal/package3546/public/mips-linux-gnu/mips-4.3-51-mips-linux-gnu-i686-pc-linux-gnu.tar.bz2

Copy mips-4.3-51-mips-linux-gnu-i686-pc-linux-gnu.tar.bz2 to /home/(user)/Vantage867X directory

$tar jxvf mips-4.3-51-mips-linux-gnu-i686-pc-linux-gnu.tar.bz2

The toochain will be installed to /home/(user)/Vantage867X/mips-4.3 directory.

$cd /home/(user)/Vantage867X

$export PATH=`pwd`/mips-4.3/bin:$PATH

Or

$export PATH=/home/(user)/Vantage867X/mips-4.3/bin:$PATH

If you open a new terminal window to build SDK, you must run the “export” command to reset toolchain for every time.

B) Set CPU Keys

$cd /home/(user)/Vantage867X

$tar zxvf CPU_KEYS_SMP86xx_2010-02-12.tar.gz

$cd CPU_KEYS_SM86xx_2010-02-12

$vi CPU_KEYS.env

Modify the CPU_KEYS.env file as SMP8652/54/56/70 Prod Board’s hardware

$source CPU_KEYS.env

If you open a new terminal window to build SDK, you must run the “source” command to reset CPU keys for every time.

C) Build Rootfs

$cd /home/(user)/Vantage867X

$tar jxvf cs_rootfs_1.2.19.tar.bz2

$export COMPILKIND="release codesourcery hardfloat"

$cd cs_rootfs_1.2.19

$make (If making errors, make clean it and make again)

or

$make menuconfig(modify the rootfs packages)

$make

$source rootfs-path.env

If you open a new terminal window to build SDK, you must run the “source” command to reset rootfs for every time.

D) Build ezboot and zxenv2(Open a new terminal window, export PATH to ToolChain, source

CPU_KEYS.env, source rootfs-path.env )

$cd /home/(user)/Vantage867X

$tar jxvf smp86xx_ezboot_0xb6.tar.bz2

$cd smp96xx_ezboot_0xb6

For SMP8670:

$export RMCFLAGS="-DEM86XX_CHIP=EM86XX_CHIPID_TANGO3 -DEM86XX_REVISION=3 -DXBOOT2_SMP865X=1 -DEM86XX_MODE=EM86XX_MODEID_STANDALONE

-DWITH_XLOADED_UCODE=1 -DWITHOUT_RMOUTPUT=1 -DXBOOT2_SMP8670=1"

For SMP8656:

$export RMCFLAGS="-DEM86XX_CHIP=EM86XX_CHIPID_TANGO3 -DEM86XX_REVISION=3 -DXBOOT2_SMP865X=1 -DEM86XX_MODE=EM86XX_MODEID_STANDALONE

-DWITH_XLOADED_UCODE=1 -DXBOOT2_SMP8652=1 -DXBOOT2_SMP8656=1"

For SMP8654, SMP8652:

$export RMCFLAGS="-DEM86XX_CHIP=EM86XX_CHIPID_TANGO3 -DEM86XX_REVISION=3 -DEM86XX_MODE=EM86XX_MODEID_STANDALONE"

$export COMPILKIND="codesourcery hardfloat gblic"

$make zboot

(release binary file is in xos/xboot2/xmasboot/nand_st2 directory)

E) Build Yamon

For SMP8652/54

$cd /home/(user)/Vantage867X

$tar jxvf smp86xx_yamon_R2.13-37.tar.bz2

$cd sm86xx_yamon_R2.13-37

$make yamon-2.13

(release binary file is in bin directory)

For SMP8656/70

$cd /home/(user)/Vantage867X

$tar jxvf smp86xx_yamon_R2.16-10.tar.bz2

$cd sm86xx_yamon_R2.16-10

$make yamon-2.16

(release binary file is in bin directory)

F) Build kernel

For SMP8652/54

$cd /home/(user)/Vantage867X

$tar jxvf smp86xx_kernel_source_R2.6.22-44.tar.bz2

$cd smp86xx_kernel_source_R2.6.22-44

$make kernel-source-2.6.22-19

$cd linux-2.6.22.19

$make menuconfig

$make all(If making errors, source rootfs-path.env again )

$make modules

$make modules_install

$cd ..

$export

UCLINUX_KERNEL=/home/(user)/Vantage867X/smp86xx_kernel_source_R2.6.22-44/linux-2.6.2

2.19/

$make proprietary

$cd proprietary

$make modules_install

$cd ..

$cd linux-2.6.22.19

$make all zbimage-linux-xload

(release file is in ./arch/mips/boot/ directory)

For SMP8656/70

$cd /home/(user)/Vantage867X

$tar jxvf smp86xx_kernel_source_R2.6.29-22.tar.bz2

$cd smp86xx_kernel_source_R2.6.29-22

$make kernel-source-2.6.29

$cd linux-2.6.29

$make menuconfig

$make all(If making errors, source rootfs-path.env again )

$make modules

$make modules_install

$cd ..

$export

UCLINUX_KERNEL=/home/(user)/Vantage867X/smp86xx_kernel_source_R2.6.29-22/linux-2.6.29/

$make proprietary

$cd proprietary

$make modules_install

$cd ..

$cd linux-2.6.29

$make all zbimage-linux-xload

(release file is in ./arch/mips/boot/ directory)

G) Build Mrua

For SMP8652/54

$cd /home/(user)/Vantage867X

$tar zxvf mrua_SMP8654F_3_11_0_dev.mips.tgz

$cd mrua_SMP8654F_3_11_0_dev.mips

$source build.env

$export

UCLINUX_KERNEL=/home/(user)/Vantage867X/smp86xx_kernel_source_R2.6.22-44/linux-2.6.22/

$make (If making errors, make clean it, source and make again)

For SMP8670

$export

UCLINUX_KERNEL=/home/(user)/Vantage867X/smp86xx_kernel_source_R2.6.29-22/linux-2.6.29/

$make (If making errors, make clean it, source and make again)

For SMP8656

$cd /home/(user)/Vantage867X

$tar zxvf mrua_SMP8656F_3_11_0_dev.mips.tgz

$cd mrua_SMP8656F_3_11_0_dev.mips

$source build.env

$export

UCLINUX_KERNEL=/home/(user)/Vantage867X/smp86xx_kernel_source_R2.6.29-22/linux-2.6.29/

$make (If making errors, make clean it, source and make again)

H) Set Mruafw

For SMP8652/54/70

$cd /home/(user)/Vantage867X

$tar zxvf mruafw_SMP8654F_prod_3_11_0.tgz

$ ln -s mruafw_SMP8654F_prod_3_11_0 mruafw

$fw_reload (Load microcode in target SMP8652/54/70 platform)

For SMP8656

$cd /home/(user)/Vantage867X

$tar zxvf mruafw_SMP8656F_prod_3_11_0.tgz

$ ln -s mruafw_SMP8656F_prod_3_11_0 mruafw

$fw_reload (Load microcode in target SMP8656 platform)

I) Yamon Setting

YAMON> setenv ipaddr 192.168.2.90

YAMON> setenv subnetmask 255.255.255.0

YAMON> setenv gateway 192.168.2.1

YAMON> setenv

(In building……)

4) HOW TO BUILD SIGMA ANDROID2.2 R2 SDK

$mkdir /home/(user)/Android2.2

$mkdir /home/(user)/Android_NFS

$mkdir /home/(user)/Android_SDK

Make sure there are id_rsa and id_rsa.pub file in the /home/(user)/.ssh directory, the id_rsa.pub file is the file that has been sent to drmla.

Copy android_mrua_dcchd_SMP8652F_3_11_0_rc_6_froyo_r2.mips.tgz,

android_mrua_dcchd_SMP8654F_3_11_0_rc_6_froyo_r2.mips.tgz,

android_mrua_dcchd_SMP8656F_3_11_0_rc_6_froyo_r2.mips.tgz,

android_mrua_dcchd_SMP8670F_3_11_0_rc_6_froyo_r2.mips.tgz,

smp86xx_android_kernel_source_R2.6.32-11.tar.bz2 to “/home/(user)/Android_SDK” directory. Make sure your linux host PC can connect to internet.

A) Get Android2.2 source code

$cd /home/(user)/Android2.2

$repo init -u sigma@public.mipsandroid.com:mipsandroid/platform/manifest.git -b sigma-froyo_r2Input the ssa key for ssh login and complete the init steps.

$repo sync

Waiting for about 3 or 4 hours to download android2.2 r2 source code.

$repo sync(Check all source code has been downloaded)

B) Build Android2.2

$cd /home/(user)/Android2.2

$export PATH=/home/(user)/Vantage867X/mips-4.3/bin:$PATH

$export ANDROID_JAVA_HOME=$JAVA_HOME

$export TARGET_PRODUCT=smp86xx

$export TARGET_ARCH_VERSION=mips32

$export TARGET_ARCH=mips

$export USE_CCACHE=1

$source build/envsetup.sh

$chip(select IPTV)

$make

C) Boot Android via NFS

$sudo su

#mkdir -p /home/(user)/Android_NFS/rootfs

#source build/envsetup.sh

#chip(select IPTV)

#./syncrootfs.bash /home/(user)/Android_NFS/rootfs

#vi /etc/exports

(add follow line message to the end of file)

/home/(user)/Android_NFS *(rw,sync,no_root_squash,anonuid=0,anongid=0,subtree_check) #exportfs �Cra

or reboot

$cp /home/(user)/Android2.2/vendor/sigma/mrua_prebuilt/kernel-iptv/vmlinux.bin

/home/(user)/NFS/TFTP

At the target YAMON prompt, do:

YAMON> net init

YAMON> load -b tftp://192.168.2.100/vmlinux.bin 0x84000000

YAMON> go . "root=/dev/nfs nfsroot=192.168.2.100:/home/(user)/Android_NFS/rootfs,tcp ip=:::::eth0:dhcp rdinit=/none init=/init console=ttyS0 mem=192M

androidboot.hardware=smp86xx"

D) Get Android2.2 linux kernel(2.6.32) (It is android common linux kernel, download it for a sample ,

so don’t build it for Sigma Android platform) Create a new file in Android2.2/.repo named local_manifest.xml containing:

<?xml version="1.0" encoding="UTF-8"?>

<manifest>

<project path=”kernel" name="platform/vendor/sigma/kernel" revision="android-2.6.32-5" /> </manifest>

$repo sync(get a kernel directory in Android2.2 directory)

E) Build Android2.2 linux kernel(Make sure ccache is installed)

$cd /home/(user)/Android_SDK

$tar jxvf smp86xx_android_kernel_source_R2.6.32-11.tar.bz2

$cd smp86xx_android_kernel_source_R2.6.32-11/

export PATH=/home/(user)/Vantage867X/mips-4.3/bin:$PATH

$make kernel-source-2.6.32

$cd /home/(user)/Vantage867X/CPU_KEYS_SMP86xx_2010-02-12

$source CPU_KEYS.env

$cd /home/(user)/Vantage867X/cs_rootfs_1.2.19

$source rootfs-path.env

$cd /home/(user)/Android_SDK/smp86xx_android_kernel_source_R2.6.32-11/linux-2.6.32 $make menuconfig

;IR support

"Device Drivers"--"Character devices"--"SMP8xxx IR remote support"(*)

--"SMP8xxx Universal IR remote support"( )

"Device Drivers"--"Input device support"--"Miscellaneous devices"--"User level driver support"(*) ;USB disk support

"Device Drivers"--"USB support"--"USB Mass Storage support"(*)

"File systems"--"Kernel automounter version 4 support(also support v3)"(*)

--"FUSE(Filesytem in Userspace) support"(*)

$make all(If making errors, source rootfs-path.env again )

$make modules

$make modules_install

$cd ..

$export

UCLINUX_KERNEL=/home/(user)/Android_SDK/smp86xx_android_kernel_source_R2.6.32-11/linux-2.6.32/

$make proprietary

$cd proprietary

$make modules_install

$cd ..

$cd linux-2.6.32

$make all zbimage-linux-xload

(release file is in ./arch/mips/boot/ directory)

F) Build Android2.2 mrua_dcchd

(in building……)

G) Boot Android via Nand flash

1.Check the version of Yamon

**********************************

* YAMON ROM Monitor

* Revision 02.13-SIGMADESIGNS-29-R2.13-29

**********************************

Memory: code: 0x86000000-0x86060000, 0x85200000-0x85204000

reserved data: 0x86200000-0x86300000, 0x86700000-0x87000000

PCI memory: 0x86300000-0x86700000

For SMP8652/54

Make sure it is updated to 2.13-37 version

**********************************

三亿文库3y.uu456.com包含各类专业文献、行业资料、专业论文、幼儿教育、小学教育、高等教育、中学教育、应用写作文书、SigmaDesignsSMPHelp_V3_11_0_B_图文17等内容。

1 2 3 4 5 6

 


 

  【Top