Apt-get missing

Home Forums MultiConnect OCG Apt-get missing

Viewing 16 posts - 1 through 16 (of 16 total)
  • Author
    Posts
  • #4765
    Andrew Webb
    Participant

    How do I install apt-get on the Multitech OCG?

    #4768
    Andrew Webb
    Participant

    I 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

    #4769
    Bryan Tran
    Moderator

    Hi 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

    #4771
    Mike Fiore
    Blocked

    Andrew,
    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 Systems

    #4772
    Mike Fiore
    Blocked

    Oops, 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 Systems

    #4774
    Andrew Webb
    Participant

    Thank 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’ failed

    This 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

    #4775
    Jesse Gilles
    Blocked

    Not 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

    #4782
    Andrew Webb
    Participant

    Aaaaarrrrrrrrrrrrrrggggggggggggggggghhhhhhhhhhhhhhhhh!!!!

    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-image

    Its 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’ failed

    Are you trying to break me? 🙂

    Thanks

    Andrew

    #4783
    Jesse Gilles
    Blocked

    You’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

    #4784
    Darrik Spaude
    Keymaster

    If 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).

    #4785
    Jesse Gilles
    Blocked

    Yeah, 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

    #4788
    Andrew Webb
    Participant

    Jesse,

    Extracting the tar ball in linux fixed the problem.

    Thanks for all your help.

    Andrew

    #4789
    Andrew Webb
    Participant

    If 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

    #4792
    Mike Fiore
    Blocked

    If 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 command bitbake 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’ failed

    I 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).

    #4800
    Andrew Webb
    Participant

    I 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.jffs2

    It seemed to work but still no python.

    Any ideas?

    Andrew

    #4803
    Andrew Webb
    Participant

    OK I found it, you had to scp the python-image not corecdp-base-image.

    Thanks

    Andrew

Viewing 16 posts - 1 through 16 (of 16 total)
  • You must be logged in to reply to this topic.