Apt-get missing
Home › Forums › MultiConnect OCG › Apt-get missing
- This topic has 15 replies, 5 voices, and was last updated 10 years, 11 months ago by Andrew Webb.
-
AuthorPosts
-
November 14, 2013 at 5:27 pm #4765Andrew WebbParticipant
How do I install apt-get on the Multitech OCG?
November 18, 2013 at 11:53 am #4768Andrew WebbParticipantI need to be able to install more software on to the device but without apt-get installed on the machine I’m stumped. The documentation included with the device seems to indicate that it should be there.
whereis apt-get does not locate it.
Internet searches on the subject draw a blank.
Any help would be welcome.
Thanks
Andrew
November 18, 2013 at 1:00 pm #4769Bryan TranModeratorHi Andrew,
1. What software packages that you would like to install on to the device ?
2. If you look into the corecdp-2.2.2/openembedded/recipes folder, you will find that, it included thousand of software packages that you can added to your device. To add these software packages on to your device, you can just take a look at this link:
http://www.multitech.net/developer/products/multiconnect-ocg/development/creating-a-custom-image/
Regards,
BT
November 19, 2013 at 8:45 am #4771Mike FioreBlockedAndrew,
The directories that Bryan referred to wouldn’t be found on the OCG, but on your local machine. Typically, the way we add software packages to the OCG’s firmware is by editing or creating new firmware images for the device. This is done on your local machine within the corecdp-2.2.2/ directory.If you haven’t downloaded and unpacked the corecdp-2.2.2 tarball on your local machine, that would be the first step. See for instructions on downloading and unpacking the corecdp-2.2.2 tarball.
I looked in the corecdp-2.2.2/openembedded/recipes/apt/ directory and there is a recipe for apt v0.7.20.2 available.
So, to include apt in a new image, for example, you would create a new image recipe named “corecdp-apt-image.bb” in the corecdp-2.2.2/multitech/recipes/images/ directory. The contents of that file would look like this:
require recipes/images/corecdp-base-image.bb IMAGE_INSTALL += "apt" export IMAGE_BASENAME = "apt-image"
From here you should be able to follow the examples on the developer site to build and flash the image onto your device.
I would advise you to look in the corecdp-2.2.2/openembedded/recipes/ directory for packages you wish to install before using apt-get on the OCG.
I hope this helps.
-Mike Fiore
Software Engineer
Multi Tech SystemsNovember 19, 2013 at 8:50 am #4772Mike FioreBlockedOops, looks like my link didn’t show up in there! Here is the link to the getting started page:
http://www.multitech.net/developer/products/multiconnect-ocg/getting-started/
-Mike Fiore
Software Engineer
Multi Tech SystemsNovember 19, 2013 at 4:05 pm #4774Andrew WebbParticipantThank you for your help so far. I am making progress but very slowly.
Build Configuration:
BB_VERSION = “1.12.0”
METADATA_BRANCH = “<unknown>”
METADATA_REVISION = “56a79a3”
TARGET_ARCH = “arm”
TARGET_OS = “linux-gnueabi”
MACHINE = “mtcdp”
DISTRO = “corecdp”
DISTRO_VERSION = “2.2.2”
TARGET_FPU = “soft”NOTE: Resolving any missing task queue dependencies
NOTE: Preparing runqueue
NOTE: Executing RunQueue Tasks
NOTE: Running task 1 of 2424 (ID: 955, /media/psf/Home/Documents/Temporary/corecdp-2.2.2/openembedded/recipes/quilt/quilt-native_0.48.bb, do_setscene)
NOTE: Running task 2 of 2424 (ID: 1821, virtual:native:/media/psf/Home/Documents/Temporary/corecdp-2.2.2/openembedded/recipes/unifdef/unifdef_2.6.bb, do_setscene)
NOTE: package quilt-native-0.48-r7.1: task do_setscene: Started
NOTE: package unifdef-native-2.6-0: task do_setscene: Started
NOTE: package quilt-native-0.48-r7.1: task do_setscene: Succeeded
NOTE: Running task 3 of 2424 (ID: 953, /media/psf/Home/Documents/Temporary/corecdp-2.2.2/openembedded/recipes/quilt/quilt-native_0.48.bb, do_fetch)
NOTE: package unifdef-native-2.6-0: task do_setscene: Succeeded
NOTE: Running task 4 of 2424 (ID: 1819, virtual:native:/media/psf/Home/Documents/Temporary/corecdp-2.2.2/openembedded/recipes/unifdef/unifdef_2.6.bb, do_fetch)
NOTE: package quilt-native-0.48-r7.1: task do_fetch: Started
NOTE: package quilt-native-0.48-r7.1: task do_fetch: Succeeded
NOTE: package unifdef-native-2.6-0: task do_fetch: Started
NOTE: package unifdef-native-2.6-0: task do_fetch: Succeeded
NOTE: Running task 5 of 2424 (ID: 945, /media/psf/Home/Documents/Temporary/corecdp-2.2.2/openembedded/recipes/quilt/quilt-native_0.48.bb, do_unpack)
NOTE: Running task 6 of 2424 (ID: 960, /media/psf/Home/Documents/Temporary/corecdp-2.2.2/openembedded/recipes/quilt/quilt-native_0.48.bb, do_distribute_sources)
NOTE: package quilt-native-0.48-r7.1: task do_unpack: Started
NOTE: package quilt-native-0.48-r7.1: task do_distribute_sources: Started
NOTE: package quilt-native-0.48-r7.1: task do_unpack: Succeeded
NOTE: Running task 7 of 2424 (ID: 946, /media/psf/Home/Documents/Temporary/corecdp-2.2.2/openembedded/recipes/quilt/quilt-native_0.48.bb, do_patch)
NOTE: package quilt-native-0.48-r7.1: task do_distribute_sources: Succeeded
NOTE: package quilt-native-0.48-r7.1: task do_patch: Started
NOTE: Running task 8 of 2424 (ID: 1811, virtual:native:/media/psf/Home/Documents/Temporary/corecdp-2.2.2/openembedded/recipes/unifdef/unifdef_2.6.bb, do_unpack)
NOTE: package quilt-native-0.48-r7.1: task do_patch: Succeeded
NOTE: Running task 9 of 2424 (ID: 956, /media/psf/Home/Documents/Temporary/corecdp-2.2.2/openembedded/recipes/quilt/quilt-native_0.48.bb, do_configure)
NOTE: package unifdef-native-2.6-0: task do_unpack: Started
NOTE: package quilt-native-0.48-r7.1: task do_configure: Started
ERROR: Logfile of failure stored in: /media/psf/Home/Documents/Temporary/corecdp-2.2.2/build/tmp/work/x86_64-linux/quilt-native-0.48-r7.1/temp/log.do_configure.3320
Log data follows:
| + do_configure
| + oe_runconf
| + ‘[‘ -x /media/psf/Home/Documents/Temporary/corecdp-2.2.2/build/tmp/work/x86_64-linux/quilt-native-0.48-r7.1/quilt-0.48/configure ‘]’
| + oefatal ‘no configure script found’
| + echo FATAL: ‘no configure script found’
| FATAL: no configure script found
| + exit 1
NOTE: package quilt-native-0.48-r7.1: task do_configure: Failed
ERROR: Function ‘do_configure’ failed (see /media/psf/Home/Documents/Temporary/corecdp-2.2.2/build/tmp/work/x86_64-linux/quilt-native-0.48-r7.1/temp/log.do_configure.3320 for further information)
ERROR: Task 956 (/media/psf/Home/Documents/Temporary/corecdp-2.2.2/openembedded/recipes/quilt/quilt-native_0.48.bb, do_configure) failed with exit code ‘1’
Waiting for 1 active tasks to finish:
0: unifdef-native-2.6-0 do_unpack (pid 3317)
NOTE: package unifdef-native-2.6-0: task do_unpack: Succeeded
ERROR: ‘/media/psf/Home/Documents/Temporary/corecdp-2.2.2/openembedded/recipes/quilt/quilt-native_0.48.bb’ failedThis is as far as it gets. Any ideas?
I have removed the build/tmp folder and tried again. I’ve rebooted.
/media/psf/Home/Documents/Temporary/corecdp-2.2.2/openembedded/recipes/quilt/quilt-native_0.48.bb
The quilt-native_0.48.bb file is there.
Thanks
Andrew
November 19, 2013 at 4:14 pm #4775Jesse GillesBlockedNot exactly sure what would cause that…did you install all the needed ubuntu packages?
If not, from the top of your corecdp directory, you can run the following:
sudo ./multitech/contrib/install-deps/install-debian-ubuntu-deps.sh
Then rm -rf build/tmp and try again.
Jesse
November 20, 2013 at 2:26 pm #4782Andrew WebbParticipantAaaaarrrrrrrrrrrrrrggggggggggggggggghhhhhhhhhhhhhhhhh!!!!
I’ve installed Ubuntu 10.04.
I created a brand new virtual machine in Parallels
I redownloaded the corecdp-2.2.2 image
I expanded the tar file (on the Mac as Linux refused to see the file)
cd corecdp-2.2.2
sudo ./multitech/contrib/install-deps/install-debian-ubuntu-deps.sh
sudo apt-get install python-psyco
sudo dpkg-reconfigure dash
source env-oe.sh
bitbake corecdp-base-imageIts the same problem as last night:
NOTE: package quilt-native-0.48-r7.1: task do_configure: Failed
ERROR: Function ‘do_configure’ failed (see /media/psf/Home/Documents/Temporary/corecdp-2.2.2/build/tmp/work/x86_64-linux/quilt-native-0.48-r7.1/temp/log.do_configure.3320 for further information)
ERROR: Task 956 (/media/psf/Home/Documents/Temporary/corecdp-2.2.2/openembedded/recipes/quilt/quilt-native_0.48.bb, do_configure) failed with exit code ’1′
Waiting for 1 active tasks to finish:
0: unifdef-native-2.6-0 do_unpack (pid 3317)
NOTE: package unifdef-native-2.6-0: task do_unpack: Succeeded
ERROR: ‘/media/psf/Home/Documents/Temporary/corecdp-2.2.2/openembedded/recipes/quilt/quilt-native_0.48.bb’ failedAre you trying to break me? 🙂
Thanks
Andrew
November 20, 2013 at 2:50 pm #4783Jesse GillesBlockedYou’re certainly running into more trouble than average. 🙂 It looks like you are doing everything right to me.
I have no idea why, but perhaps Parallels is causing some issues? Or extracting the tar on the Mac filesystem instead of in Linux.
We tested the build system on Ubuntu 10.04 on actual hardware and we’ve also tested it using Virtualbox on Windows and Linux host machines.
I guess I would suggest trying Virtualbox and downloading/extracting the tar inside the VM. Extract it to something with a shorter path like $HOME/corecdp-2.2.2.
Jesse
November 20, 2013 at 3:01 pm #4784Darrik SpaudeKeymasterIf the tarball is extracted in a Linux VM, then the file system should be case sensitive unless some other file system format is used–I would assume Linux always enforces case sensitivity. However, extracting the tarball on the Mac OS X side (not inside the VM) could lead to trouble since by default the drive is formatted as HFS+, journaled (not case sensitive).
November 20, 2013 at 3:04 pm #4785Jesse GillesBlockedYeah, I think extracting it in a case insensitive file system could definitely cause problems. Perhaps sticking with 10.04 on Parallels and extracting the tarball inside Linux is your next best step.
Jesse
November 21, 2013 at 3:27 pm #4788Andrew WebbParticipantJesse,
Extracting the tar ball in linux fixed the problem.
Thanks for all your help.
Andrew
November 22, 2013 at 1:46 am #4789Andrew WebbParticipantIf I follow the apt-get example above and name my file corecdp-apt-image.bb then it complains that nothing provides ‘apt-image’.
If I follow the naming convention shown for the asterisk install on the creating a custom image page and name the file ‘apt-image.bb’ I get further.
There is a discrepancy between the folder you mentioned and the one named on the
It goes through a whole load of scripts but at the end it says in the custom image page. I have tried both.It goes through several pages of the install script but then gets to this point:
Error: ‘/home/andrew/corecdp-2.2.2/openembedded/recipes/dpkg/dpkg_1.14.29.bb’ failed
Any thoughts. I’d be interested to understand why you recommend against apt-get?
I’m ultimately trying to install the netatalk image but that doesn’t work either for easier access from my Mac. My feeling is that apt-get would be an easier way of installing this.
Thanks
Andrew
November 22, 2013 at 11:13 am #4792Mike FioreBlockedIf I follow the apt-get example above and name my file corecdp-apt-image.bb then it complains that nothing provides ‘apt-image’.
If I follow the naming convention shown for the asterisk install on the creating a custom image page and name the file ‘apt-image.bb’ I get further.If your recipe is named “corecdp-apt-image.bb” then you’d build it with the command
bitbake corecdp-apt-image
. Likewise, if your recipe is named “apt-image.bb” you’d build it with the commandbitbake apt-image
.It goes through several pages of the install script but then gets to this point:
Error: ‘/home/andrew/corecdp-2.2.2/openembedded/recipes/dpkg/dpkg_1.14.29.bb’ failedI tried running the example I gave earlier to build an image with apt. I also ran into an error in the same place you did. It looks like the version of dpkg it is looking for is no longer on any of the default source mirrors.
Any thoughts. I’d be interested to understand why you recommend against apt-get?
Multi-Tech doesn’t maintain a repository of packages to be fetched by apt-get for our devices. It is possible to install apt-get on your OCG, but there are not any repositories out in the wild providing packages that will be compatible with CoreCDP. The only supported way to add software packages to the OCG is by building them with openembedded and bitbake.
I’m ultimately trying to install the netatalk image but that doesn’t work either for easier access from my Mac. My feeling is that apt-get would be an easier way of installing this.
There is a recipe for netatalk in corecdp-2.2.2/openembedde/recipes. I tried building it and corecdp failed to find the source on any of the default source mirrors. I found the source on sourceforge:
http://sourceforge.net/projects/netatalk/files/netatalk/2.0.5/
I wrote up a .bbappend file using that repository instead of the one in the recipe by default and was able to build an image with netatalk included.Create “netatalk_2.0.5.bbappend” with the following contents:
SRC_URI = "http://sourceforge.net/projects/netatalk/files/netatalk/${PV}/netatalk-${PV}.tar.gz;name=src \ file://netatalk-dbd.patch \ file://netatalk.conf \ file://init"
This file needs to be in the directory “corecdp-2.2.2/multitech/recipes/netatalk/” which you will need to create.
You can then include netatalk in an image recipe by adding it to an existing recipe or creating a new recipe (similar to the example I gave earlier).
November 27, 2013 at 4:30 pm #4800Andrew WebbParticipantI managed to transfer the get the bitbake netatalk to work and flashed it to the unit but it seemed to clear the unit and netatalk was not installed. It also seemed to remove python so I tried to setup a bitbake recipe to reinstall it
require recipes/images/corecdp-base-image.bb
IMAGE_INSTALL += “python”
export IMAGE_BASENAME = “python-image”bitbake python seemed to work.
I reflashed this using:
mkdir /var/volatile/flash-upgrade
cd ${OETREE}/build/tmp/deploy/eglibc/images/mtcdp
scp uImage-mtcdp.bin root@192.168.2.1:/var/volatile/flash-upgrade/uImage.bin
scp corecdp-base-image-mtcdp.jffs2 root@192.168.2.1:/var/volatile/flash-upgrade/rootfs.jffs2It seemed to work but still no python.
Any ideas?
Andrew
December 1, 2013 at 4:40 pm #4803Andrew WebbParticipantOK I found it, you had to scp the python-image not corecdp-base-image.
Thanks
Andrew
-
AuthorPosts
- You must be logged in to reply to this topic.