03_toolchain,下載&nbs ... MY-IMX6-A9 Linux-3.0.35 編譯參考手冊 v3.0(1) " />

国产毛片a精品毛-国产毛片黄片-国产毛片久久国产-国产毛片久久精品-青娱乐极品在线-青娱乐精品

查看: 1909|回復: 0
打印 上一主題 下一主題

MY-IMX6-A9 Linux-3.0.35 編譯參考手冊 v3.0(1)

[復制鏈接]
跳轉到指定樓層
樓主
發表于 2019-5-9 16:14:14 | 只看該作者 回帖獎勵 |倒序瀏覽 |閱讀模式
明遠智睿MY-IMX6-A9 Linux-3.0.35 編譯參考手冊 v3.0

1  下載相關文件
1.1  交叉編譯工具鏈
A9系列:打開網盤到 2.1_OS_Linux-3.0.35 -> 03_toolchain,下載 MY-IMX-A9 目錄。

1.2  源碼
u-boot:打開網盤到 2.1_OS_Linux-3.0.35 -> 02_source,下載 u-boot-2016.03-*.tar.bz2 (源碼包版本號需svn315及以上)。
Kernel:打開網盤到 2.1_OS_Linux-3.0.35 -> 02_source,下載 linux-3.0.35-*.tar.bz2 (源碼包版本號需svn31及以上)。

2  安裝交叉編譯工具鏈

解壓交叉編譯工具鏈
=====> Input:
tar xf gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12.tar.bz2 -C /home/myzr/my-work/03_toolchain
復制工具鏈配置文件
=====> Input:
cp environment-setup-gcc-4.6-arm.sh /home/myzr/my-work/03_toolchaingcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/
source 工具鏈配置文件
=====> Input:
source /home/myzr/my-work/03_toolchain/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/environment-setup-gcc-4.6-arm.sh
檢驗交叉編譯工具安裝
=====> Input:
${CROSS_COMPILE}gcc -v

=====> Output:
Using built-in specs.
COLLECT_GCC=arm-fsl-linux-gnueabi-gcc
COLLECT_LTO_WRAPPER=/home/myzr/my-work/03_toolchain/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/fsl-linaro-toolchain/bin/../libexec/gcc/arm-fsl-linux-gnueabi/4.6.2/lto-wrapper
Target: arm-fsl-linux-gnueabi
Configured with: /work/build/.build/src/gcc-linaro-4.6-2011.06-0/configure --build=i686-build_pc-linux-gnu --host=i686-build_pc-linux-gnu --target=arm-fsl-linux-gnueabi --prefix=/work/fsl-linaro-toolchain-2.13 --with-sysroot=/work/fsl-linaro-toolchain-2.13/arm-fsl-linux-gnueabi/multi-libs --enable-languages=c,c++ --with-pkgversion='Freescale MAD -- Linaro 2011.07 -- Built at 2011/08/10 09:20' --enable-__cxa_atexit --disable-libmudflap --disable-libgomp --disable-libssp --with-gmp=/work/build/.build/arm-fsl-linux-gnueabi/build/static --with-mpfr=/work/build/.build/arm-fsl-linux-gnueabi/build/static --with-mpc=/work/build/.build/arm-fsl-linux-gnueabi/build/static --with-ppl=/work/build/.build/arm-fsl-linux-gnueabi/build/static --with-cloog=/work/build/.build/arm-fsl-linux-gnueabi/build/static --with-libelf=/work/build/.build/arm-fsl-linux-gnueabi/build/static --with-host-libstdcxx='-static-libgcc -Wl,-Bstatic,-lstdc++,-Bdynamic -lm -L/work/build/.build/arm-fsl-linux-gnueabi/build/static/lib -lpwl' --enable-threads=posix --enable-target-optspace --enable-plugin --enable-multilib --with-local-prefix=/work/fsl-linaro-toolchain-2.13/arm-fsl-linux-gnueabi/multi-libs --disable-nls --enable-c99 --enable-long-long --with-system-zlib
Thread model: posix
gcc version 4.6.2 20110630 (prerelease) (Freescale MAD -- Linaro 2011.07 -- Built at 2011/08/10 09:20)

3  u-boot編譯
3.1  編譯前的準備
創建編譯工作目錄
=====> Input:
mkdir ~/my-work/02_source/ -p
解壓源碼包到工作目錄
=====> Input:
tar xf u-boot-2016.03-svn*.tar.bz2 -C ~/my-work/02_source/

3.2  編譯u-boot目標文件
進入源碼目錄
=====> Input:
cd ~/my-work/02_source/u-boot-2016.03
生成目標開發板的 .config 文件
=====> Input:
make myimx6ek200-6q-1g_defconfig

=====> Output:
  HOSTCC  scripts/basic/fixdep
  HOSTCC  scripts/kconfig/conf.o
  SHIPPED scripts/kconfig/zconf.tab.c
  SHIPPED scripts/kconfig/zconf.lex.c
  SHIPPED scripts/kconfig/zconf.hash.c
  HOSTCC  scripts/kconfig/zconf.tab.o
  HOSTLD  scripts/kconfig/conf
#
# configuration written to .config
#
【注意】:上面 make 后面的 myimx6ek200-6q-1g_defconfig 改為與開發板型號對應的配置文件。

********** MY-IMX6-EK200 **********
myimx6ek200-6q-1g_defconfig     myimx6ek200-6q-2g_defconfig     myimx6ek200-6q-512m_defconfig  
myimx6ek200-6u-1g_defconfig     myimx6ek200-6u-2g_defconfig     myimx6ek200-6u-512m_defconfig  
myimx6ek200-6s-512m_defconfig   myimx6ek200-6s-1g_defconfig     myimx6ek200-6s-128m_defconfig  
myimx6ek200-6qp-1g_defconfig    myimx6ek200-6qp-2g_defconfig    myimx6ek200-6qp-512m_defconfig  

********** MY-IMX6-EK314 **********
myimx6ek314-6q-1g_defconfig     myimx6ek314-6q-2g_defconfig     myimx6ek314-6q-512m_defconfig  
myimx6ek314-6u-1g_defconfig     myimx6ek314-6u-2g_defconfig     myimx6ek314-6u-512m_defconfig  
myimx6ek314-6s-512m_defconfig   myimx6ek314-6s-1g_defconfig     myimx6ek314-6s-128m_defconfig  
myimx6ek314-6qp-1g_defconfig    myimx6ek314-6qp-2g_defconfig    myimx6ek314-6qp-512m_defconfig  
執行編譯
=====> Input:
make

=====> Output:
scripts/kconfig/conf  --silentoldconfig Kconfig
  CHK     include/config.h
  UPD     include/config.h
  GEN     include/autoconf.mk
  GEN     include/autoconf.mk.dep
  CHK     include/config/uboot.release
  CHK     include/generated/timestamp_autogenerated.h
  CFG     u-boot.cfg
  ......
  LD      u-boot
  OBJCOPY u-boot-nodtb.bin
  OBJCOPY u-boot.srec
  SYM     u-boot.sym
  COPY    u-boot.bin
  CFGS    board/myzr/myimx6/myimx6a9-6q-ddr3.cfg.cfgtmp
  MKIMAGE u-boot.imx
Note: 如果有提示 “cc1: error”,通常是交叉編譯工具的配置沒生效,可以按前面 “交叉編譯工具鏈安裝” 中的 “source 工具鏈配置文件” 操作一次后再執行此步驟。

u-boot 目標文件
u-boot.imx 即目標文件。

3.3  編譯u-boot環境變量腳本

=====> Input:
mkimage -A arm -O linux -T script -C none -a 0 -e 0 -n "myzr bootscripts" -d board/myzr/bootscripts/myimx6a9_l3035_script.cmd my_environment.scr

=====> Output:
Image Name:   myzr bootscripts
Created:      Wed Jan  2 09:39:38 2019
Image Type:   ARM Linux Script (uncompressed)
Data Size:    2090 Bytes = 2.04 kB = 0.00 MB
Load Address: 00000000
Entry Point:  00000000
Contents:
Image 0: 2082 Bytes = 2.03 kB = 0.00 MB

3.4  目標文件
u-boot.imx 和 my_environment.scr 即編譯得到的目標文件,保存這兩個文件

【下章節為MY-IMX6-A9 Linux-3.0.35 編譯參考手冊 v3.0(2)】
您需要登錄后才可以回帖 登錄 | 立即注冊

本版積分規則

關于我們  -  服務條款  -  使用指南  -  站點地圖  -  友情鏈接  -  聯系我們
電子工程網 © 版權所有   京ICP備16069177號 | 京公網安備11010502021702
快速回復 返回頂部 返回列表
主站蜘蛛池模板: 亚洲男人的天堂在线 | 日日操夜夜操狠狠操 | 韩国一级成a人片在线观看 韩国一级a毛片 | 日韩国产欧美一区二区三区在线 | 亚洲成人18 | 久久综合九九 | 一级黄色片a | 网站四虎1515hhcom | 91精品一区二区 | 色猫咪网站 | 女人一级毛片免费观看 | 亚洲国产欧美91 | 欧美视频一区在线观看 | 欧美成人手机在线 | 免费av动漫片 | 久久不雅视频 | 免费老色鬼永久视频网站 | 亚洲天堂视频在线免费观看 | 亚洲国产综合精品中文第一区 | 日韩72页| 黄色小说app下载 | 成年大片免费视频播放二级 | 最新一本大道香蕉综合 | 午夜不卡视频 | 天天操天天插 | 日本中文视频 | 欧美激情综合 | 在线视频啪 | 欧美日韩色视频 | 很黄很色又爽很黄很色又爽 | 国产区精品视频 | 成人亚洲欧美日韩中文字幕 | 亚洲区欧美中文字幕久久 | 成人国产精品一级毛片天堂 | 国产精品hd| 亚洲欧美视频在线播放 | 99久久www免费| 侠盗高飞免费完整版国语在线播放 | 97国产免费全部免费观看 | 色男人的天堂 | 91色视|