Well I went ahead and bit the bullet and just compiled it all from source so I could have my own initrd image to boot directly from it.
But now I want it to boot and mount the big mtd partition as jffs and overlay properly. Here is what linux detects as my MTDs: Creating 3 MTD partitions on "NAND 512MiB 3,3V 8-bit": 0x000000000000-0x000000100000 : "u-boot" 0x000000100000-0x000000500000 : "uImage" 0x000000500000-0x000020000000 : "rootfs" But it looks like firstboot is hard coded to look for "rootfs_data", and doesn't do anything with my mtd partition. I've tried to pass mtdparts parameters to make it rename that last partition, but no avail. What is the proper way to go about making openwrt use this mtd partition for jffs? Kyle Thus spake Kyle Anderson: > 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 > > > > ------------------------------------------------------------------------ > > _______________________________________________ > 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
