bdi
GDB
for BDI3000 (QorIQ P3/P4/P5)
User Manual
12
© Copyright 1997-2012 by ABATRON AG Switzerland
V 1.03
2.5.1 Configuration with a Linux / Unix host
The firmware update and the initial configuration of the BDI3000 is done with a command line utility.
In the ZIP Archive bdisetup.zip are all sources to build this utility. More information about this utility
can be found at the top in the bdisetup.c source file. There is also a make file included.
Starting the tool without any parameter displays information about the syntax and parameters.
To avoid data line conflicts, the BDI3000 must be disconnected from the target system while
programming the firmware for an other target CPU family.
Following the steps to bring-up a new BDI3000:
1. Build the setup tool:
The setup tool is delivered only as source files. This allows to build the tool on any Linux / Unix host.
To build the tool, simply start the make utility.
[root@LINUX_1 bdisetup]# make
cc -O2 -c -o bdisetup.o bdisetup.c
cc -O2 -c -o bdicnf.o bdicnf.c
cc -O2 -c -o bdidll.o bdidll.c
cc -s bdisetup.o bdicnf.o bdidll.o -o bdisetup
2. Check the serial connection to the BDI:
With "bdisetup -v" you may check the serial connection to the BDI. The BDI will respond with infor-
mation about the current loaded firmware and network configuration.
Note
: Login as root, otherwise you probably have no access to the serial port.
$ ./bdisetup -v -p/dev/ttyS0 -b115
BDI Type : BDI3000 (SN: 30000154)
Loader : V1.00
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 : ÿÿÿÿÿÿÿ........
3. Load/Update the BDI firmware:
With "bdisetup -u" the firmware is programmed into the BDI3000 flash memory. This configures the
BDI for the target you are using. Based on the parameters -a and -t, the tool selects the correct firm-
ware file. If the firmware file is in the same directory as the setup tool, there is no need to enter a -d
parameter.
$ ./bdisetup -u -p/dev/ttyS0 -b115 -aGDB -tP4080
Connecting to BDI loader
Programming firmware with ./b30qp4gd.100
Erasing firmware flash ....
Erasing firmware flash passed
Programming firmware flash ....
Programming firmware flash passed
!