As my own followup, it appears that the image builder does have directives for this:
define Image/Build/squashfs
$(call prepare_generic_squashfs,$(KDIR)/root.squashfs)
( \
dd if=$(KDIR)/uImage bs=4096k conv=sync; \
dd if=$(KDIR)/root.$(1) bs=128k conv=sync; \
) > $(BIN_DIR)/openwrt-$(BOARD)-$(1).img
endef
But mucking around with the make files I can't get this part of the "make image"
to get called. The squash file never ends up in bin, just the uImage and the
root.tgz
Kyle
Thus spake Kyle Anderson:
> I'm excited to use the new Kirkwood version of openwrt on my pogoplug!
>
> I can get the kernel on, but the other part is just a tarball of the other
> files. I can mkfs.ext3 and just untar onto it, but I'm concerned about
> wear-leveling on my mtd.
>
> Ideally I would like to use the standard squashfs + jffs2 combo for optimum
> space and the benefits of jffs2. The image builder for this target doesn't
> make
> anything besides a directory tree of files.
>
> Is this even possible? I've tried to mksquashfs and dd it onto my mtdblock2. I
> get this:
>
> SQUASHFS error: Major/Minor mismatch, older Squashfs 3.1 filesystems are
> unsupported
> List of all partitions:
> 1f00 1024 mtdblock0 (driver?)
> 1f01 4096 mtdblock1 (driver?)
> 1f02 519168 mtdblock2 (driver?)
> No filesystem could mount root, tried: ext3 ext2 squashfs
> Kernel panic - not syncing: VFS: Unable to mount root fs on
> unknown-block(31,2)
>
> So maybe my version of mksquashfs is wrong. But am I even on the right path?
> This procedure seems to be sort of "uncharted" territory at least from a
> google
> perspective.
>
> Kyle
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> openwrt-users mailing list
> [email protected]
> https://lists.openwrt.org/mailman/listinfo/openwrt-users
signature.asc
Description: OpenPGP digital signature
_______________________________________________ openwrt-users mailing list [email protected] https://lists.openwrt.org/mailman/listinfo/openwrt-users
