2010年6月29日 星期二

Mobilygen SDK 整合步驟

0. pre-make
. cd /mobilygen/
. link sdkrc to SDK_RC
. cd /opt/mobilygen/merlinsw_codec/
. link qmm-merlinrc to qmm-merlin-SDKr
. cd /opt/mobilygen/tools/
. link arm-merlin-linux-uclibc to arm-merlin-linux-uclibc-SDKr
. cd to your working source tree
. copy old env file to "env.sdkrc"
. modify "env.sdkrc"
SDK_VERSION=rc
. source ./env.sdkrc

1. mboot
. mkdir utils-sdkrc
. copy mboot src from SDK_RC/project/dist/mboot/ng3500 to 1.0-sdkrc
. mkdir utils-sdkrc
. copy cfg2env from SDK_RC/project/dist/cfg2env to utils-sdkrc
. copy config.evp-nand from SDK_RC// to utils-sdkrc
. copy mbootconfig-orig.sh from SDK_RC/project/dist/configs/distributions/merlin/config/mbootconfig.sh to utils-sdkrc
. modify "MTD_PARTS" to our MTD partition in mbootconfig-orig.sh
. copy mg3500-2ddr2_264MHz_128MB-soc.reg from SDK_RC// to utils-sdkrc
. copy .config to from SDK_RC/project/dist/mboot/build.chip_nand utils-sdkrc
. modify "SRC_ROOT" to "../1.0-sdkrc"
# 1
. link cfg2env / config.evp-nand / mbootconfig-orig.sh / mg3500-2ddr2_264MHz_128MB-soc.reg to utils-sdkrc/*
. cd 1.0/
. link .config to ../utils-sdkrc/.config
. link Makefile to ../utils-sdkrc/Makefile
# 2
. modify ch_mboot.ch
. ./ch_mboot.ch sdkrc

2. qhal
. cd kernel
. mkdir "qhal-sdkrc"
. copy qhal src from SDK_RC/project/merlinsw/host/lib/qhal/ to "qhal-sdkrc"
. modify "Makefile", add following to end of file.
TARGET_KERNEL_SOURCES=${MYPATH}/kernel/linux

linuxdrv-install:
echo "/home/jack/mobilygen/kernel/qhal/rootfs"
. link qhal to "qhal-sdkrc"

3. kernel
. cd kernel
. mkdir "linux-x.x.xx_sdkrc"
. copy linux kernel src from "SDK_RC/project/dist/linux/src/linux" to "linux-x.x.xx_sdkrc"
. copy linux .config file from "SDK_RC/project/dist/linux/build.mg3500" to "linux-x.x.xx_sdkrc"
. modify Makefile.
ARCH ?= arm
CROSS_CONPILE ?= arm-merlin-linux-uclibc-
. make menuconfig
remove "Support Thumb user binaries"
build-in network "Packet socket" and check setting in "Network support"
build-in wireless in "Network support"
MTD, SCSI, PPP, Character device->Maxim->qcc, USB, File system

4. make & install library
. cd admin_lib
. su
. make linkbuild
. make
. make install
. exit

沒有留言: