OpenWrt Forum Archive

Topic: How to choose target and other features in OpenWRT buildroot?

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

Hi

I have successfully cloned the OpenWRT buildroot from the subversion repository and I've been using it to build images that I run on Qemu. I can run the images in Qemu just fine.

Now I have tried to build an image for a router -- a Linksys WRT54GL -- but I couldn't find in the documentation how I should choose the target.

I guess that these are the correct options:

    - I have chosen Broadcom BCM947xx/953xx

    - In "Target images", I have chosen jffs2 and squashfs

Then, after compiling, I went to the directory bin/brcm47xx, and found a large number of images:

openwrt-brcm47xx-jffs2-128k.trx
openwrt-brcm47xx-jffs2-64k.trx
openwrt-brcm47xx-squashfs.trx
.
.
.
openwrt-wrt54g3g-em-jffs2.bin
openwrt-wrt54g3g-em-squashfs.bin
openwrt-wrt54g3g-jffs2.bin
openwrt-wrt54g3g-squashfs.bin
openwrt-wrt54g3gv2-vf-jffs2.bin
openwrt-wrt54g3gv2-vf-jffs2.noheader.bin
openwrt-wrt54g3gv2-vf-squashfs.bin
openwrt-wrt54g3gv2-vf-squashfs.noheader.bin
openwrt-wrt54g-jffs2.bin
openwrt-wrt54gs-jffs2.bin
openwrt-wrt54g-squashfs.bin
openwrt-wrt54gs-squashfs.bin
openwrt-wrt54gs_v4-jffs2.bin
openwrt-wrt54gs_v4-squashfs.bin
openwrt-wrt610n_v1-jffs2.bin
openwrt-wrt610n_v1-squashfs.bin
openwrt-wrtsl54gs-jffs2.bin
openwrt-wrtsl54gs-squashfs.bin

So my question is:

    - How do I tell what to choose in target system and target images?

    - From all the images generated, how do I know which one I should use (for example, the WRT54GL is not in the list above; how to tell if it's OK to use "openwrt-wrt54g-jffs2.bin"?

    - What criteria can I use to decide if I'll use a jffs or a squashfs image?

Thank you!

You should use the image for your platform. If your device is not presented in bin/brcm47xx directory, then either it is not supported (look it up at Table of Hardware), or the image is not built (usually it happens when you exceed flash size selecting many packages; try to remove .config file, choose target platform in menuconfig, deselect LuCI and build it again).

As for jffs2 vs squashfs, you generally need squashfs one. Short explanation: it is more optimized for size and safer (because of fail-safe mode).

(Last edited by desu on 23 Oct 2014, 10:47)

desu wrote:

You should use the image for your platform. If your device is not presented in bin/brcm47xx directory, then either it is not supported (look it up at Table of Hardware), or the image is not built (usually it happens when you exceed flash size selecting many packages; try to remove .config file, choose target platform in menuconfig, deselect LuCI and build it again).

As for jffs2 vs squashfs, you generally need squashfs one. Short explanation: it is more optimized for size and safer (because of fail-safe mode).


I think if you develope or study openwert, you can use jffs2 vs squashfs and jffs2 only all ok

The discussion might have continued from here.