There is a bootloader with tftp support which can be useful for many developers. This binary is taken from the unknown VoIP device based on the ADM5120. I've decided to publish it after some patching.
I tested it on the Edimax BR6104K it works for me.
Warning: do not use this bootloader with standard firmwares, because this bootloader has size over 32K. Standard firmwares will damage some parts of bootloader for own system variables.
For upgrading bootloader you should make following steps:
midge# cd /bootloader/ midge# ./update-bootloader bootloader-tftp-20050912.bin WARNING: THIS OPERATION IS VERY DANGEROUS, DON'T TRY UNLESS YOU KNOW WHAT YOU ARE DOING press enter to continue or Ctrl-C to quit Do you want to backup current bootloader to /dev/mtdblock4 ? current firmware will be corrupted: (y/any key): y backuping first 0x10000 bytes to /dev/mtdblock4 (started at 0x100000)... 1+0 records in 1+0 records out Do you want continue? (y/any key): y flashing bootloader-tftp-20050912.bin to /dev/mtdblock0 103+1 records in 103+1 records out
ADM5120 Boot: Evolution version.Only for testing CPU: ADM5120-175MHz SDRAM: 2x16MB Flash: NOR-2MB Boot System: ADM5120-Linux Loader Version: 1.00.05 Creation Date: 2004.12.20 Press <space> key tree times to enter boot menu.. 3
Loader Menu ============0.04===============  Xmodem Download to SDRAM (4M)  TFTP Client Download to SDRAM (4M)  Print Boot Params  Set Boot Params  Update bootloader to FLASH (Xmodem)  Start from SDRAM  Write SDRAM to flash (2M) Please enter your number:
This operation is VERY DANGEROUS!
DON'T TRY UNLESS YOU KNOW WHAT YOU ARE DOING!
USE ON YOUR OWN RISK! DISTRIBUTED WITHOUT ANY WARRANTY </note>
<note warning> Do not use this bootloader with standard firmwares. </note>
You can setup mac and ip:
Please enter your number:4 Set Boot Parameters. ========================== Enter new serial number: Serial Number unchanged. Enter new hardware version: Hardware version unchanged. Current mac addres: 00-00-01-02-03-04 Number of mac address: 8 Enter new mac address (AA-AA-AA-AA-AA-AA): 00-00-01-02-03-04 Enter new number of mac address (between 1-8): 8 Mac address updated successfully. Enter new IP address for this board: 10.1.120.86 IP updated successfully.
After pressing '2' you can see:
Please enter your number:2 TFTP Client Menu =============================== [D]: start download [S]: set parameters [X]: exit Enter your option:
Setup tftp parameters:
Enter your option:s Please Enter TFTP Server IP : 10.1.120.85 Enter Remote File Name : midge.bin Server IP: 10.1.120.85 Remote File: midge.bin
TFTP Client Menu =============================== [D]: start download [S]: set parameters [X]: exit Enter your option:d Starting the TFTP download(ESC to stop).................................PASS Image Total Length: 001F0000 Starting Address: A0820000
<note tip> I have some troubles with standart tftp server. When i switch to atftpd all works fine. </note> Start linux:
Loader Menu ============0.04===============  Xmodem Download to SDRAM (4M)  TFTP Client Download to SDRAM (4M)  Print Boot Params  Set Boot Params  Update bootloader to FLASH (Xmodem)  Start from SDRAM  Write SDRAM to flash (2M) Please enter your number:6 Booting Linux... Kernel decompress ... PASS LINUX started...