OpenWrt Forum Archive

Topic: file name?

The content of this topic has been archived on 30 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

When uploading the OpenWRT firmware via tftp, is it necessary to rename the image to
something special or how does the bootloader know where to find it? Does it just try to
boot the first file it finds?

If I'm not mistaken, the name doesn't matter at all.

The TFTP server that accepts your firmware image REPLACES the contents of the current firmware. Since it's in charge of processing the downloaded file, it puts it in the proper spot to boot from it from then on.

Details on boot_wait and TFTP: http://openwrt.org/MiniHowtos?highlight … 9e1f9c8646

The firmware image is a self-contained filesystem compressed using squashfs. I'm hazy on the exact details, but discussions on mounting/reading/modifying the original linksys firmware can provide some insight.

And there's also here: http://openwrt.org/OpenWrtDocs/Jffs2Root

There are numerous details scattered everywhere through the wiki. ALL of them are helpful, so you may just want to read all of them..

Start here: http://openwrt.org/OpenWrtDocs

Hope I didn't give you too much homework. wink

The discussion might have continued from here.