At target's /etc/opkg folder, edit opkg.conf to add the ipk download links:
src/gz all http://192.168.0.24/6410/all src/gz armv6 http://192.168.0.24/6410/armv6 src/gz mini6410 http://192.168.0.24/6410/mini6410
Remove all other .conf files, except arch.conf.
At the host server httpd conf /etc/apache2/sites-enabled/000-default, add these:
Alias /6410/ "/oe/build/ok6410-tmp/deploy/eglibc/ipk/"
<Directory "/oe/build/ok6410-tmp/deploy/eglibc/ipk/">
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
After done, test at target:
opkg update
Output:
# opkg update Downloading http://192.168.0.24/6410/all/Packages.gz. Inflating http://192.168.0.24/6410/all/Packages.gz. Updated list of available packages in /var/lib/opkg/all. Downloading http://192.168.0.24/6410/armv6/Packages.gz. Inflating http://192.168.0.24/6410/armv6/Packages.gz. Updated list of available packages in /var/lib/opkg/armv6. Downloading http://192.168.0.24/6410/mini6410/Packages.gz. Inflating http://192.168.0.24/6410/mini6410/Packages.gz. Updated list of available packages in /var/lib/opkg/mini6410.
For example, build the nano text editor:
cd /oe/build bitbake nano
Update the package index for opkg to pickup:
bitbake package-index
At the target:
opkg update opkg install nano