Anyone using ipkg? I have enabled it in the mini2440 BSP and only installed the ipkg.conf option, but running <ipkg list_installed> only returns a message "Successfully terminated". No list of all the programs I know are working on the the target :( Both gmane sites have been down all day so have not been able to search them for the answer. Thanks, Dave
ipkg Pengutronix
Did you try to run the 'ipkg' command from inside an NFS root filesystem? If yes, it cannot work. 'ipkg' only works on images (like the one for the NAND memory or the one to be copied onto an SD card) generated by PTXdist. Because in this case the 'ipkg' tool is used to install all relevant files into the image file(s). For NFS a different mechanism is used. Just run "ptxdist images", use the root.tgz from the "platform-mini2440/images/" directory, deploy an SD card with this archive content and boot your Mini2440 with this SD card (so the root filesystem is on this SD card, when the kernel comes up). Then "ipkg list_installed" will work as expected.
Not using NFS in this case . . . fortunately! I am using an SD card but with root files in a ext3 partition. So, the procedure is to use a root.tgz image ONLY. Thank you.
The background is, when PTXdist runs the "go" command, the results of all packages are: - used to create and fill one IPKG per package - copied into the root/ directory to support NFS root filesystem When the "images" command runs, all the generated IPKGs are used to *generate* the content of the "root.jffs2" or "root.tgz" images. And in this case, the ipkg tool generates its database and also stores it into these images. When you use a root filesystem based on the "root.jffs2" or "root.tgz" content then the ipkg tool can also work at runtime on your target machine. Due to the fact the root/ directory content intended for the NFS root filesystem is just "copied" (due to permission restrictions), there is no ipkg database available. That is why ipkg cannot work in NFS root filesystem based on the PTXdist generated root/ directory.
OK . . . if I had chosen to run the rootfs on NAND I would have got the ipkg information as well. It worked properly, so now I have a complete list of all the applications that can run on the target. Cheers, davef