Hi all,
I notice that in the rootfs images built from an OE tree, the
directory /etc/ipkg points to the central Angstrom feeds.
To fix this, and use your local OE tree as your ippkg feed, here are the
changes (which work for ARM-based iPaq h4000):
1. Configure your local webserver so it serves the directory:
/path/to/OE/angstrom-tmp/deploy/glibc/ipk
I have my apache serving up on the virtual host 'ipkg' (which will
likely require an /etc/hosts entry for 'ipkg' on your workstation,
and definitely an entry in /etc/hosts on your device).
2. On the device:
- Clear out /var/ipkg/ directory
- Clear out /etc/ipkg/ directory except for arch.conf
- Add to /etc/ipkg the following files:
- /etc/ipkg/all-feed.conf, contains the line:
src/gz all http://ipkg/all
- /etc/ipkg/armv5te-feed.conf, contains:
src/gz armv5te http://ipkg/armv5te
- /etc/ipkg/h4000-feed.conf, contains:
src/gz h4000 http://ipkg/h4000
On your workstation, look at the directory
OE/angstrom-tmp/deploy/glibc/ipk and ensure that it's just these
three directories which contain Packages.gz files. If not, or if
you're using a device other than ipaq, you'll need to change the
above.
3. bitbake's 'package-index' target doesn't always update the
Packages[.gz] files correctly. Here's my script which does. Note
that this script requires that your PATH includes the directory
/path/to/OE/angstrom-tmp/staging/i686-linux/bin, as it would if
you're using the cross toolchain. I have this script in my path
under the name 'ipkg-update-packages'.
#!/bin/bash
cd /path/to/OE/angstrom-tmp/deploy/glibc/ipk
echo "Updating packages at root ..."
ipkg-make-index . > Packages
gzip < Packages > Packages.gz
echo "Updating packages in all ..."
cd all
ipkg-make-index . > Packages
gzip < Packages > Packages.gz
echo "Updating packages in armv5te ..."
cd ../armv5te
ipkg-make-index . > Packages
gzip < Packages > Packages.gz
echo "Updating packages in h4000 ..."
cd ../h4000
ipkg-make-index . > Packages
gzip < Packages > Packages.gz
4. Run this 'ipkg-update-packages' script to get all your
Package.gz files up to date
5. Point your browser at http://ipkg (or whatever domain/vhost you
have set for your ipkg feed)
6. Double-check that your device can connect up to your workstation,
and that from your device you can 'ping ipkg' (or whatever domain
you are using).
7. On the device, as root, run 'ipkg update'
8. You should now be able to install ipkg packages from your OE tree.
Cheers
Dave
_______________________________________________
Angstrom-distro-users mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/angstrom-distro-users