现在的位置: 首页 > 综合 > 正文

编译blob

2018年01月10日 ⁄ 综合 ⁄ 共 956字 ⁄ 字号 评论关闭
1.修改flash驱动
在configure.in中找到你所使用的板子,
修改为case "$network_name" in
     eth)
dnl
BLOB_NETWORK_DRIVER_OBJS="ether-smc91x.o"            //dnl 起注释作用
        BLOB_NETWORK_DRIVER_OBJS="ether-dm9000.o pxai2c_host.o pmic_max8660.o pxa_usim.o pxa_FDs.o"
;;
2.修改littleton.c
芯片特定的设置,主要是针对第一条在littleton_init_hardware()等做对应的修改,还有比如sdram。
3.修改pxa3xx_nand.c 
针对具体芯片,在nand_driver_init(void)中修改参数,也可以添加显示信息。
4.修改nandwrite.c
rel_table处理(注释掉),create_bbt 处理(扫描整个nandflash),延时处理,显示处理(运行过程,出错信息,ID等)。
5.修改linux.c
linux.c :support functions for booting a kernel
这里主要是对信息显示的考虑
6.修改initcalls.c
initcalls.c: init and exit calls for blob,添加或删减初始化
7.其他设备的修改
比如battery,lcd等
8.修改main.c
针对以上的修改而修改,另外加上版本等信息。
9.编译
./configure --prefix=/home/wang/project/blob/bootloader/bin --with-board=littleton --host=arm-linux --with-linux-prefix=/home/wang/william/linux-2.6.25  --enable-xlli --enable-xllp --with-cpu-product-id=MonahansLV
--with-commands=all --with-network=eth --with-nand-layout=comm_v75 --enable-xmodem  --enable-nand --enable-lcd
make
make install

抱歉!评论已关闭.