dev.nlited.com

>>

Yocto Tweaking

<<<< prev
next >>>>

2015-12-29 02:05:13 chip Page 1498 📢 PUBLIC

Dec 28 2015

The default gumstix-core-console image has been built and works, now I need to add some stuff. This first thing I want is the opkg package manager so I can install stuff directly onto the gumstix.

Mistake icon
Hob requires Gtk, which requires a graphical display. Vekolako is a text-only server. Hob won't run on Vekolako.

The first time I tried to run hob on vekolako:
FATAL: Hob requires Gtk+ 2.20.0 or higher, PyGtk 2.21.0 or higher (No module named gobject).

I installed PyGtk using
sudo apt-get install "PyGtk*" Note, selecting 'python-zbarpygtk' for regex 'PyGtk*' The following extra packages will be installed: fontconfig hicolor-icon-theme libatk1.0-0 libatk1.0-data libcairo2 libcups2 libdatrie1 libgdk-pixbuf2.0-0 libgdk-pixbuf2.0-common libgraphite2-3 libgtk2.0-0 libgtk2.0-bin libgtk2.0-common libharfbuzz0b libjasper1 libjbig0 libjpeg-turbo8 libjpeg8 libpango-1.0-0 libpangocairo-1.0-0 libpangoft2-1.0-0 libpixman-1-0 libthai-data libthai0 libtiff5 libv4l-0 libv4lconvert0 libxcb-shm0 libxcursor1 libzbar0 libzbargtk0 python-cairo python-gobject-2 python-gtk2 Suggested packages: cups-common librsvg2-common gvfs libjasper-runtime ttf-baekmuk ttf-arphic-gbsn00lp ttf-arphic-bsmi00lp ttf-arphic-gkai00mp ttf-arphic-bkai00mp python-gobject-2-dbg python-gtk2-doc The following NEW packages will be installed: fontconfig hicolor-icon-theme libatk1.0-0 libatk1.0-data libcairo2 libcups2 libdatrie1 libgdk-pixbuf2.0-0 libgdk-pixbuf2.0-common libgraphite2-3 libgtk2.0-0 libgtk2.0-bin libgtk2.0-common libharfbuzz0b libjasper1 libjbig0 libjpeg-turbo8 libjpeg8 libpango-1.0-0 libpangocairo-1.0-0 libpangoft2-1.0-0 libpixman-1-0 libthai-data libthai0 libtiff5 libv4l-0 libv4lconvert0 libxcb-shm0 libxcursor1 libzbar0 libzbargtk0 python-cairo python-gobject-2 python-gtk2 python-zbarpygtk 0 upgraded, 35 newly installed, 0 to remove and 131 not upgraded. Need to get 5,248 kB of archives. After this operation, 22.9 MB of additional disk space will be used. 02:14:51 build> hob Please set DISPLAY variable before running Hob. Well... I guess this makes sense, Hob uses Gtk. Gtk requires a graphical display. Vekolako is a text-only server.


opkg

One of the first things I want on the overo is the opkg installer.

I found a nice youtube tutorial.

Edit build/conf/local.conf

build/conf/local.conf: 16 #CHIP 17 EXTRA_IMAGE_FEATURES = "package-management" 18 PACKAGE_CLASSES = "package_ipk" 19 IMAGE_INSTALL_append = " opkg"

build> bitbake package-index build> bitbake gumstix-console-image
Putting the extra features into local.conf works, but I need to figure out where they belong in the poky structure.

This was a bigger task than I expected. It is creating ipk packages for everything. I'm not sure if these will be part of the rootfs image or if they will stay on the server? The build completed in 9 minutes. There is now a build/tmp/deploy/ipk directory.

I download the bootdisk files and burn them onto a microSD card, boot the gumstix, and
root@overo:~# opkg update Downloading https://packages.gumstix.com/fido/ipk/Packages.gz. Downloading https://packages.gumstix.com/fido/ipk/all/Packages.gz. Downloading https://packages.gumstix.com/fido/ipk/cortexa8hf-vfp-neon/Packages.gz. Downloading https://packages.gumstix.com/fido/ipk/overo/Packages.gz. Collected errors: * opkg_download: Failed to download https://packages.gumstix.com/fido/ipk/Packages.gz, wget returned 4. * opkg_download: Failed to download https://packages.gumstix.com/fido/ipk/all/Packages.gz, wget returned 4. * opkg_download: Failed to download https://packages.gumstix.com/fido/ipk/cortexa8hf-vfp-neon/Packages.gz, wget returned 4. * opkg_download: Failed to download https://packages.gumstix.com/fido/ipk/overo/Packages.gz, wget returned 4. Almost! I have added opkg to the boot disk, but the network isn't working because my WiFi configuration was on the previous boot disk.

I was unable to get WiFi working again, so I set that problem aside and used the ethernet.

The opkg feeds are all wrong. The feeds are now located on downloads.gumstix.com/feeds/angstrom/ipk:

/etc/opkg/base-feeds.conf: src/gz gumstix http://downloads.gumstix.com/feeds/angstrom/ipk/eglibc/all src/gz overo http://downloads.gumstix.com/feeds/angstrom/ipk/eglibc/armv7a/machine/overo

I also lost all my vi configuration! (See Configuring Linux) I need to figure out how to bitbake my local configuration files into the rootfs image.



WebV7 (C)2018 nlited | Rendered by tikope in 33.205ms | 3.144.100.138