How to choose a target and other functions in OpenWRT buildroot?

I successfully cloned the buildroot OpenWRT from the subversion repository, and I used it to create the images that I run on Qemu. I can run images normally in Qemu.

Now I tried to create an image for the router - Linksys WRT54GL - but I could not find in the documentation how I should choose the target.

I think these are the correct options:

  • I chose Broadcom BCM947xx / 953xx

  • In "Target images" I selected jffs2 and squashfs

Then after compilation, I went to the 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 to find out what to choose in target system and target images ?

  • From all the images formed, how do I know which one should I use (for example, WRT54GL is not listed above, how do I determine whether to use " openwrt-wrt54g-jffs2.bin " openwrt-wrt54g-jffs2.bin ?

  • What criteria can I use to decide if I will use jffs or squashfs image?

Thanks!

+7
source share
1 answer

How to find out what to choose in the target system and target images?

Target system you can infer from the columns of the Target / Platform in the Table of Hardware :

http://wiki.openwrt.org/toh/start

Target images depend on the intended use of the assembly, but in most common cases (for example, to host on a router) you want either squashfs or jffs2 . See Link to file systems below.


Of all the created images, how do I know which one I should use (for example, WRT54GL is not listed above, how do I say whether to use "openwrt-wrt54g-jffs2.bin" correctly?

If your router is not listed among user images, you should probably use a generic image, for example: openwrt-brcm47xx-squashfs.trx


What criteria can I use to decide if I will use jffs or squashfs image?

From http://wiki.openwrt.org/doc/techref/filesystems :

SquashFS

+ takes up as little space as possible

+ , which allows you to implement the fix of the FailSafe idiot for recovery, since it cannot be written

- read only

- , since every time the file contained on it changes, in fact a copy of it is copied to the second section (JFFS2)

Jffs

+ recordable, has journaling and wear leveling

+ cool

- is compressed, so the program (in particular, opkg) cannot know in advance how much space the package takes,

Do not be fooled about the read-only part.

All OpenWrt firmware includes a completely rewritable root file system that will remain intact during a power outage. The confusion is that squashfs is a readonly file system; all OpenWrt firmware also includes a jffs2 section - the squashfs part of the file name applies only to the file system included in the firmware image; additional files or changes are saved on jffs2.

  • The squashfs section will always contain all the files in the same way as when using the firmware; You cannot change them without reflashing. (see # 6)
  • The jffs2 section contains only your changes to the file system; since squashfs still contains the original version, you can easily return the files back to their original state.

You can delete the squashfs section by installing the jffs2 firmware version, but this is not recommended - it uses more space and does not have the above fail-safe features.

Source: https://forum.openwrt.org/viewtopic.php?pid=36636#p36636

If in doubt, use squashfs per http://wiki.openwrt.org/doc/howto/obtain.firmware.download#filesystem

+10
source

All Articles