Hi Graham, On Sat, Mar 01, 2008 at 09:43:12PM +1030, Graham Gower wrote: > I'm using ptxdist-1.0.1 on a mipsel board. I use PTXCONF_IMAGE_TGZ=y > to create a filesystem tarball. Is there a way to have 'ipkg > list_installed' work for a system which has this freshly created > tarball extracted onto it? And am I correct in assuming that 'ipkg > update && ipkg upgrade' will only work correctly when 'ipkg > list_installed' returns values?
The problem is that scripts/make_image_tgz.sh is old and hasn't been rewritten using the ipkg method yet. If you want to make it work, please have a look at how scripts/make_image_root.sh works and rewrite it after that scheme. > PS: This diff lets me make mipsel ipk files instead of mips: > > Index: ptxdist-1.0.1/rules/rootfs.make > =================================================================== > --- ptxdist-1.0.1/rules/rootfs.make (revision 5221) > +++ ptxdist-1.0.1/rules/rootfs.make (revision 5229) > @@ -582,7 +582,7 @@ > @$(call install_replace, rootfs, /etc/ipkg.conf, @SRC@, \ > $(PTXCONF_ROOTFS_GENERIC_IPKG_CONF_URL)) > @$(call install_replace, rootfs, /etc/ipkg.conf, @ARCH@, \ > - $(PTXCONF_ARCH)) > + $(PTXCONF_IMAGE_IPKG_ARCH)) > endif > > # > ----------------------------------------------------------------------------- Applied on ptxdist-1.0-trunk. For ptxdist-trunk we probably have to re-check the ipkg-arch thing, because I've moved all platform related things into platformconfig. Can you provide a patch here as well? Robert -- Dipl.-Ing. Robert Schwebel | http://www.pengutronix.de Pengutronix - Linux Solutions for Science and Industry Handelsregister: Amtsgericht Hildesheim, HRA 2686 Hannoversche Str. 2, 31134 Hildesheim, Germany Phone: +49-5121-206917-0 | Fax: +49-5121-206917-9 -- ptxdist mailing list [email protected]
