金宇彬演的特工电影:uboot移植相关

来源:百度文库 编辑:偶看新闻 时间:2024/05/09 14:07:58
(2010-09-29 17:48)
分类:u-boot
1 工具链安装:
2 a:下载最新版的codesourcery 工具链:
3http://blog.chinaunix.net/link.php?url=http://www.codesourcery.com%2Fpublic%2Fgnu_toolchain%2Farm-none-linux-gnueabi%2Farm-2010q1-202-arm-none-linux-gnueabi.bin
4
5 The installer has detected that your system uses the dash shell
6 as /bin/sh.  This shell is not supported by the installer.
7 You can work around this problem by changing /bin/sh to be a
8 symbolic link to a supported shell such as bash.
9 For example, on Ubuntu systems, execute this shell command:
10    % sudo dpkg-reconfigure -plow dash
11    Install as /bin/sh? No
12 Please refer to the Getting Started guide for more information,
13 or contact CodeSourcery Support for assistance.
14 ist@ist-desktop:u-boot$ sudo dpkg-reconfigure -plow dash
15
16 增加安装路径到PATH环境变量中。
17 ######################################
18
19 ist@ist-desktop:u-boot$ export topdir=/home/ist/workdir/u-boot
20 ist@ist-desktop:u-boot$ git branch
21 * master
22 ist@ist-desktop:u-boot$ git branch dm355-ipnc
23 ist@ist-desktop:u-boot$ git checkout dm355-ipnc
24 Switched to branch 'dm355-ipnc'
25 ist@ist-desktop:u-boot$ cd board/
26 ist@ist-desktop:board$ cp -ar davinci/dm355evm/ davinci/dm355ipnc
27 ist@ist-desktop:board$ mv davinci/dm355evm/dm355evm.c davinci/dm355ipnc/dm355ipnc.c
28 ist@ist-desktop:u-boot$ cd $(topdir)
29 ist@ist-desktop:u-boot$ cd include/configs/
30 ist@ist-desktop:configs$ cp davinci_dm355evm.h davinci_dm355ipnc.h
31 最终作出了以下修改:
32
33 diff --git a/MAKEALL b/MAKEALL
34 index 1aa0dc7..408b1d4 100755
35 --- a/MAKEALL
36 +++ b/MAKEALL
37 @@ -616,6 +616,7 @@ LIST_ARM9="         \
38     davinci_sffsdr      \
39     davinci_sonata      \
40     davinci_dm355evm    \
41 +   davinci_dm355ipnc   \
42     davinci_dm355leopard    \
43     davinci_dm365evm    \
44     davinci_dm6467evm   \
45 diff --git a/boards.cfg b/boards.cfg
46 index 0bf9c93..4ecc469 100644
47 --- a/boards.cfg
48 +++ b/boards.cfg
49 @@ -367,6 +367,7 @@ gr_cpci_ax2000  sparc   leon3       -       gaisler
50  gr_ep2s60  sparc   leon3       -       gaisler
51  gr_xc3s_1500   sparc   leon3       -       gaisler
52  davinci_dm355evm arm   arm926ejs   dm355evm    davinci     davinci
53 +davinci_dm355ipnc arm  arm926ejs   dm355ipnc   davinci     davinci
54  davinci_dm365evm arm   arm926ejs   dm365evm    davinci     davinci
55  davinci_dm6467evm arm  arm926ejs   dm6467evm   davinci     davinci
56  davinci_schmoogie arm  arm926ejs   schmoogie   davinci     davinci
57
58  即加入了make davinci_dm355ipnc 这个选项配置
59  $ make davinci_dm355ipnc
60  $ make CROSS_COMPILE=arm-none-linux-gnueabi-     即可编译自定义板
61  可以
62  $ export CROSS_COMPILE=arm-none-linux-gnueabi-
63