关于移植的基本方法可以先阅读u-boot的README文档
If the system board that you have is not listed, then you will need
to port U-Boot to your hardware platform. To do this, follow these
steps:
1. Add a new configuration option for your board to the toplevel
'Makefile' and to the 'MAKEALL' script, using the existing
entries as examples. Note that here and at many other places
boards and other names are listed in alphabetical sort order. Please
keep this order.
参考已有记录,在顶层目录的Makefile和MAKEALL脚本添加新的配置项。注意这里和其它很多地方,
开发板和其它的名字都是按照字母表顺序排列。请保持此顺序。(个人注:新版本中大部分配置项已移至
一个单独的文件——boards.cfg)
2. Create a new directory to hold your board specific code. Add any
files you need. In your board directory, you will need at least
the 'Makefile', a ' 创建新的目录,存放开发板相关代码。添加必要的文件在开发板目录,至少包括 'Makefile'、' 3. Create a new configuration file 'include/configs/ 为目标板创建新的配置文件'include/configs/ 3. If you're porting U-Boot to a new CPU, then also create a new directory to hold your CPU specific code. Add any files you need. 如果是为一个新的CPU移植,需要创建一个新的目录存放CPU相关代码。添加需要的文件。 4. Run 'make 执行'make 5. Type 'make', and you should get a working 'u-boot.srec' file to be installed on your target system. 6. Debug and solve any problems that might arise. [Of course, this last step is much harder than it sounds.] Debug并解决出现的问题。[当然,最后一步比听起来难得多。] 下面一段挺有意思: U-Boot Porting Guide: ---------------------- [Based on messages by Jerry Van Baren in the U-Boot-Users mailing list, October 2002] int main(int argc, char *argv[]) { sighandler_t no_more_time; signal(SIGALRM, no_more_time); alarm(PROJECT_DEADLINE - toSec (3 * WEEK)); if (available_money > available_manpower) { Pay consultant to port U-Boot; return 0; } Download latest U-Boot source; Subscribe to u-boot mailing list; if (clueless) email('Hi, I am new to U-Boot, how do I get started?'); while (learning) { Read the README file in the top level directory; Read http://www.denx.de/twiki/bin/view/DULG/Manual; Read applicable doc/*.README; Read the source, Luke; /* find . -name '*.[chS]' | xargs grep -i } if (available_money > toLocalCurrency ($2500)) Buy a BDI3000; else Add a lot of aggravation and time; if (a similar board exists) { /* hopefully... */ cp -a board/ cp include/configs/ } else { Create your own board support subdirectory; Create your own board include/configs/ } Edit new board/ Edit new include/configs/ while (!accepted) { while (!running) { do { Add / modify source code; } until (compiles); Debug; if (clueless) email('Hi, I am having problems...'); } Send patch file to the U-Boot email list; if (reasonable critiques) Incorporate improvements from email list code review; else Defend code as written; } return 0; } void no_more_time (int sig) { hire_a_guru(); }
上一篇:s3c2440的网卡接口扩展DM9000
下一篇:uboot在s3c2440上的移植(3)
推荐阅读最新更新时间:2024-11-12 06:58
设计资源 培训 开发板 精华推荐
- 16 位 ADC 简化了电流测量设计电路
- AM2G-0518DZ ±18V 2 瓦 DC-DC 转换器的典型应用
- ADR444A 4.096 Vout 超低噪声、LDO XFET 电压基准的典型应用,具有电流吸收器和电流源
- stc15w104超声波悬浮
- dianzizhong
- LTC6252 的典型应用 - 720MHz、3.5mA 高功率高效轨至轨 I/O 运算放大器
- LT1307CS8 升压/降压转换器的典型应用电路
- esp8266_EPD
- EVAL-AD7790EB,使用 AD7790 的评估板,16 位,120 sps 低功耗 Sigma Delta 模数转换器
- LTC1775IS 5V/20A 固定输出降压型稳压器的典型应用电路