PDA

View Full Version : third party firmware upgrade and mkfwimage


petecarlson
02-18-2008, 03:54 PM
When using mkfwimage to create an image for the LS2, there is no linux filr to re-write when doing an upgrade.

root@OpenWrt:/tmp# cat /proc/mtd
dev: size erasesize name
mtd0: 00030000 00010000 "RedBoot"
mtd1: 000b0000 00010000 "kernel"
mtd2: 002e0000 00010000 "rootfs"
mtd3: 00020000 00010000 "cfg"
mtd4: 0000f000 00010000 "FIS directory"
mtd5: 00001000 00010000 "RedBoot config"

How would one go about a reflash without having to tftp the default LS2 firmware and then use the web page on the LS2 to upgrade to the new 3rd party firmware. Obviously it is possible as the LS2 default firmware has the capabilities to do so. Which files should I re-flash? Does fwsplit split the bin into the correct files? If so does anyone have an example of usage? The docs are a little light.

It would seem that kernel is openwrt-atheros-vmlinux.lzma
and rootfs is openwrt-atheros-root.jffs2-64k

petecarlson
02-19-2008, 08:02 AM
It would seem that kernel is openwrt-atheros-vmlinux.lzma
and rootfs is openwrt-atheros-root.jffs2-64k

For anyone keeping track, flashing the two files seemed to do the trick. Anything I am missing here?

Does fwsplit re-create these two files from a bin file?

UBNT-kesha
02-19-2008, 10:05 AM
for OpenWRT - yes, it's sufficient reflashing openwrt-atheros-vmlinux.lzma as "kernel" and openwrt-atheros-root.jffs2-64k as "rootfs".

fwsplit extracts the binary data from firmware image, also providing the firmware image descriptor file, so that everything can be packed back using mkfwimage.

as for the ubnt firmware file flashing utility to be used on OpenWRT or any other 3rd party firmware - this has to be handled by the provider of the 3rd party firmware authors - we consider the documentation pretty obvious for writing such a utility, sure, that requires some skills and general understanding. However, most of the 3rd party firmwares use their own firmware file formats for later upgrades, so not all of them care about supporting ubnt firmware files - which is quite natural.

xavier_martinez
03-17-2008, 09:52 AM
I don't know if I've understood your question but, if you create another firmware using the mkfwimage utility and rename it to flash_update, then you can upgrade the installed firm with the recovery procedure:

Power off->Power onn
Hold reset button for more than 10 sec
>tftp 192.168.1.20
tftp>bin
tftp>put flash_update

lobo2714
04-11-2009, 11:56 PM
I am new to the forum. I currently have a Litestation2 and I wanted to try OpenWRT-Kamikaze 7.09 firmware. I loaded the firmware using the default GUI. Once OpenWRT installed, I wanted to upgrade to the latest revision of OpenWRT.

I was only able to find out that there are 2 files I should be looking for:

1. openwrt-atheros-vmlinux.lzma as " kernel"
2. openwrt-atheros-root.jffs2-64k as " rootfs"

and they can be foud here http://downloads.openwrt.org/kamikaze/8.09/atheros/

but, once I SCP the files in the LiteStation2, what else should I do? what commands do I need to unwrap these files to be able to upgrade this firmware. Can anybody fill the gap for me? or perhaps direct me where I can find the answers.

Thank you in advance

CzechEnglishFrenchGermanItalianPolishPortugueseRussianSpanish
Translated to other languages supported by vB Enterprise Translator 3.5.4