13 Firmware Updates
Linux Software Developers Kit (SDK) User Guide
70
For XPort Pro
makeimage2.py images/image.bin:kernel:0x80000:ROMFS: /tmp/uclinux-
kernel-and-romfs.bin
3. Installing an uncompressed linux kernel and using a JFFS2 root partition:
For MatchPort AR
makeimage2.py images/linux.bin:kernel:0x40000:bin:
images/rootfs.img:jffs2:0x400000:bin: /tmp/uclinux-kernel-and-
jffs2.bin
For XPort Pro
makeimage2.py images/linux.bin:kernel:0x80000:bin:
images/rootfs.img:jffs2:0x400000:bin: /tmp/uclinux-kernel-and-
jffs2.bin
Updating via a TFTP Client
To update the target via TFTP with an image file generated by makeimage2.py (see the previous
section), perform the following steps:
1. From your host system, launch a TFTP session to the target. Note that this can be done
when the target is in dBUG with the TFTP server enabled, or when the target is running Linux
provided that the root file system is ROMFS, and a JFFS2 partition is not mounted.
$ tftp <target-ip>
2. From within the TFTP client program, set the file transfer mode to ‘octet’.
tftp> mode octet
3. Now set the timeout value to a high value. The TFTP upgrade may take some time due to
flash writes, so the timeout should be set to a suitably high value.
tftp> timeout 999999
4. Push the firmware update file to the target. Note that firmware updates must be pushed to the
/var/firmware.img.
tftp> put uclinux-kernel-and-romfs-and-erase-jffs2-area.bin
/var/firmware.img
5. Reset the target once the TFTP upgrade is complete. The target will now boot with the
updated file system(s).
Updating via a FTP Client
To update the target via FTP with an image file generated by makeimage2.py (see the previous
section), perform the following steps:
1. From your host system, launch a FTP session to the target. Note that this can be done when
the target is running Linux provided that the root file system is ROMFS, and a JFFS2 partition
is not mounted.
$ ftp <target-ip>
2. Log in to prompt (default username and password is root:root).
3. Change to binary mode.
ftp> binary
200 Type set to I.