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 systemandtarget 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!
Target systemyou can infer from the Target/Platform columns in theTable of Hardware:http://wiki.openwrt.org/toh/start
Target imagesdepend on the intended use of the build but in most common cases (ie. image to put on a router) you want eithersquashfsorjffs2. See the filesystems link below.If your router is not listed amongst the custom images you should probably use the generic image, eg:
openwrt-brcm47xx-squashfs.trxFrom http://wiki.openwrt.org/doc/techref/filesystems:
SquashFS
JFFS
Don’t be mislead about the read-only part tho
Source: https://forum.openwrt.org/viewtopic.php?pid=36636#p36636
If in doubt use
squashfsas per http://wiki.openwrt.org/doc/howto/obtain.firmware.download#filesystem