本文以硬件平台imx515为例说明bdi3000固件程序的烧写过程和步骤,imx515基于cotexA8核,新买的BDI3000里面没有固件程序,所以只有烧写固件程序后才能正常使用。
1.烧写工具编译
bdisetup是linux环境下bdi3000固件烧写和参数配置的工具,在源码下直接make即可生成。
cd gdba1130/bdisetup
make
2.串口通讯检测
用串口线连接PC和bdi3000,dbi3000上电,通过一下命令检测串口通讯是否正常
www.linuxidc.com@linuxidc:~/bdi3000/ARM11_Cortex/gdba1130/bdisetup$ ./bdisetup -v -p/dev/ttyS0 -b115
BDI Type : BDI3000 (SN: 33402411)
Loader : V1.02
Firmware : unknown
MAC : ff-ff-ff-ff-ff-ff
IP Addr : 255.255.255.255
Subnet : 255.255.255.255
Gateway : 255.255.255.255
Host IP : 255.255.255.255
Config : �������������������������������������������������������������������������������
由此说明bdi3000串口通讯正常,只是没有固件程序。
3.加载/更新bdi3000固件程序
将固件程序b30a11gd.115拷贝到当前目录,按照如下命令更新固件程序:
www.linuxidc.com@linuxidc:~/bdi3000/ARM11_Cortex/gdba1130/bdisetup$ ./bdisetup -u -p/dev/ttyS0 -b115
Connecting to BDI loader
No valid firmware file found in .
www.linuxidc.com@linuxidc:~/bdi3000/ARM11_Cortex/gdba1130/bdisetup$ ./bdisetup -u -p/dev/ttyS0 -b115 -aGDB -tARM11
Connecting to BDI loader
Programming firmware with ./b30a11gd.115
Erasing firmware flash ….
Erasing firmware flash passed
Programming firmware flash ….
………………………………………………………………………………………………………………………………………………………………………………………………………………………………………..
Programming firmware flash passed
Programming passed
4.配置bdi3000默认参数
imx51.cfg为配置文件,位于tftp服务器目录下
www.linuxidc.com@linuxidc:~/bdi3000/ARM11_Cortex/gdba1130/bdisetup$ ./bdisetup -c -p/dev/ttyS0 -b115 -i10.10.66.94 -h10.10.66.226 -m255.255.255.0 -g10.10.66.254 -f imx51.cfg
Connecting to BDI loader
Writing network configuration
Configuration passed
5.检测配置参数,退出加载模式
www.linuxidc.com@linuxidc:~/bdi3000/ARM11_Cortex/gdba1130/bdisetup$ ./bdisetup -v -p/dev/ttyS0 -b115 -s
BDI Type : BDI3000 (SN: 33402411)
Loader : V1.02
Firmware : V1.15 bdiGDB for ARM11
MAC : 00-0c-01-33-40-24
IP Addr : 10.10.66.94
Subnet : 255.255.255.0
Gateway : 10.10.66.254
Host IP : 10.10.66.226
Config : imx51.cfg