Jesse Gilles
Forum Replies Created
-
AuthorPosts
-
Jesse Gilles
BlockedYeah, using shell variables inside minicom won’t work, so you do have to give the full path to the file you want to run. I would make sure you use the full path and try again. Also, if the path is too long, run minicom from the same directory as where the script is and then just give the filename with no path.
Jesse Gilles
BlockedUnfortunately, this is likely not a trivial task. Most of the support for building OpenJDK (from Jalimo) was merged into the OE repo after CoreCDP 1.1.1 was branched off it. Building OpenJDK has a lot of dependencies (many recipes) so I don’t think it would be a simple matter of bringing over one directory of recipes and building it.
Jesse Gilles
BlockedJamVM is the only Java VM that Multi-Tech has tried and tested. It might be possible to use the Cacao VM.
More information is here (some of it old):
Jesse Gilles
BlockedAs the error indicates, you also need to install libesmtp and libyaml since sms-utils depends on them.
If you’re building sms-utils into your image and then re-flashing the unit, then this is taken care of automatically.
If you are manually installing the package by copying the ipk file to the unit and running opkg, then you need to also provide all need dependencies.
The third option is to set up a package feed on your development machine so that you can run ‘opkg install sms-utils’ on the CDP and have it download and install everything that is needed.
See the documentation on multitech.net for more information.
Thanks,
Jesse
Jesse Gilles
BlockedThere is a short overview page here:
http://www.multitech.net/developer/products/cellular-development-platform/applications/sms-utils/
And the full source is available here:
Jesse Gilles
BlockedYou should be using the CoreCDP local.conf file located at corecdp-1.1.1/openembedded/contrib/multitech/local.conf and you shouldn’t need to change any of the variables.
Please see the Getting started page for more info:
http://www.multitech.net/developer/products/cellular-development-platform/getting-started/
You should verify that you can build corecdp-base-image before you try building any other packages that you might want.
Also, in the future, please start a new topic for new questions.
Thanks,
Jesse
Jesse Gilles
BlockedJust to be sure, are you only using a particular tty port for one thing at a time? In other words, if you have a PPP link up on /dev/ttyUSB3, you can’t use /dev/ttyUSB3 for anything else while that is active.
Jesse Gilles
BlockedThe usage for mts-io-sysfs doesn’t make it very clear, but you have to quote the arguments to reset-monitor (it only takes one string as an argument).
So try this:
mts-io-sysfs store reset-monitor '1948 1 2'
Jesse
Jesse Gilles
BlockedYes, upgrading the default python (/usr/bin/python) in CentOS/RHEL is bad and will cause problems I believe. But installing python 2.6 from EPEL doesn’t touch the default python and installs it separately as python26 so it doesn’t break anything with existing python scripts.
Glad you were able to build the base image. jamvm is the Java VM that runs on the CDP, if you don’t need it, then you don’t need to run Java, then I wouldn’t bother building it, it will only make your image larger and take longer to build.
If you do need it, it looks like you are missing the libffi library on your CentOS system, which is needed to build the native (runs on your workstation) version of jamvm. Hopefully you can find a package with yum that provides libffi and try again.
Jesse Gilles
BlockedI was able to build the corecdp-base-image using CentOS 5.6 and the EPEL repository with python 2.6.
See http://www.multitech.net/developer/forums/topic.php?id=87#post-269 for more information.
Jesse Gilles
BlockedI was able to successfully build corecdp-base-image on CentOS 5.6 using the EPEL repository and python26.
Jesse Gilles
BlockedWe don’t officially support using RHEL 5 since the python version is too old to run bitbake.
However, there are extra packages available for RHEL that include python 2.6 that makes running bitbake possible.
Then you could try building the CDP image (including toolchain) on your RHEL system.
Look at the information available:
https://fedoraproject.org/wiki/EPEL
You’ll need to install the python26 and git packages. Then when you run bitbake, you’ll need to use python26 to run it. Assuming you are at the top of the corecdp dir, you can run:
python26 bitbake/bin/bitbake
I have verified that I can actually run bitbake in this manner, but I haven’t finished building the toolchain or image yet to know if it will all work though it looks promising.
Jesse
Jesse Gilles
BlockedTry it again and specify a name for the file in your SRC_URI and the corresponding checksum, following the example I gave before. The newer version of OE/bitbake does allow the syntax you gave (no name needed for the checksum if there is just one source tarball in SRC_URI), but the version in CoreCDP does not. So, add “;name=some_value” to your SRC_URI and then use the same name in specifying your checksum as below:
SRC_URI = "http:/something.com/something.tar.gz;name=some_value"
SRC_URI[some_value.md5sum] = "123abc"Jesse Gilles
BlockedYou should be able to do this with the current release of CoreCDP without changing your bitbake version. checksums.ini is there in the current release, but you can also specify the checksum in the recipe and it will work even if it isn’t in checksums.ini. The main difference between the current OE tree in CoreCDP and newer versions is that you have to give each source file a name in order to specify the checksum.
Example from the linux_2.6.32.bb recipe:
SRC_URI = "${KERNELORG_MIRROR}/pub/linux/kernel/v2.6/linux-${PV}.tar.bz2;name=kernel
${KERNELORG_MIRROR}/pub/linux/kernel/v2.6/patch-${PV}.2.bz2;patch=1
file://defconfig"
SRC_URI[kernel.md5sum] = "260551284ac224c3a43c4adac7df4879"
SRC_URI[kernel.sha256sum] = "5099786d80b8407d98a619df00209c2353517f22d804fdd9533b362adcb4504e"Jesse Gilles
BlockedThis is confirmed — building on Ubuntu 10.10 and 11.04 is not currently supported but will hopefully work in the next CoreCDP release. Please use Ubuntu 10.04 LTS for now.
Jesse
Jesse Gilles
BlockedAre you seeing this issue with an unmodified version of sms-utils?
Jesse Gilles
BlockedYou should be able to add modules in that manner (modifying defconfig).
After you modify defconfig, you either need to edit the bitbake recipe and increase the PR variable (indicates a new package revision and forces a new build) or clean the package (bitbake linux -c clean) and then rebuild your image.
Jesse
Jesse Gilles
BlockedMarcus
1. Yes, the unit comes pre-flashed with a working Linux system. It should boot up and have an IP address of 192.128.2.1, which you can ssh to. See http://www.multitech.net for more information.
Regarding the serial debug cable, your settings are correct (115200, 8N1). If you power off the CDP, attach the serial debug cable (with your terminal software running) and then power on the CDP, you don’t see any U-boot messages?
Can you verify that your serial port on your PC is working by using it with a different device?
2. Booting the kernel from the SD card is not currently supported (would require a bootloader change). It is technically possible to have the root file system on the SD card, but we don’t currently have any documentation on how to do this so it would be up to you. There should be enough information online from other sources though.
Jesse Gilles
BlockedWhen I have my SD inserted in my CDP on boot, the /media/card mount shows up in /proc/mounts. If I remove the card, it disappears from /proc/mounts pretty quickly.
Yours doesn’t do this?
Jesse Gilles
BlockedThe CDP has java support using jamvm (which provides the java virtual machine). In general, one should be able to compile the apps into a jar file, copy it to the CDP and execute it.
Jesse Gilles
BlockedIt doesn’t cause any errors when you write to /media/card because it is just a regular directory until a device is mounted at that location (which happens automatically when you insert the SD card).
You can see this behavior just by unmounting the filesystem (umount /media/card) and then inspecting the /media/card directory. If you create files in that directory when the SD card isn’t mounted, they will stay there and be visible whenever the card isn’t mounted.
You could read the file /proc/mounts which shows the currently mounted filesystems.
Jesse Gilles
BlockedThe linker options to gcc need to be at the end. Try moving “-lyaml -lesmtp” to the end of the list.
Jesse Gilles
BlockedPython 2.5 or greater is required due to the newer version of bitbake being used (which is much faster than the older version). If you can upgrade to python 2.5, it may very well work, but we haven’t tested building CoreCDP with CentOS 5.
Unfortunately, the OpenEmbedded wiki page is rather out of date.
Jesse Gilles
BlockedWhich tty port are you running the commands on? Only /dev/ttyUSB3 supports the full AT command set. If you need access to the full AT command set, it is recommended that you initiate your PPP link on /dev/ttyUSB4 which leaves USB3 open for other use.
This is mentioned as a note on the “Accessing Hardware Interfaces” page: http://www.multitech.net/developer/products/cellular-development-platform/hardware/accessing-hardware-interfaces/
Jesse Gilles
BlockedDepending on the CDP model you have, sending AT commands while PPP is running may not be possible. The MTCDP-E1, MTCDP-G2 and MTCDP-EV2 only provide one serial port device that takes AT commands, so if PPP is running, the port is in use.
The MTCDP-H4 (HSPA) does provide numerous serial device ports, which allows you to use one for PPP and use others for AT commands while simultaneously.
As far as reading/writing to the serial port from Java, I can’t give specific advice, but I assume it will be similar to other languages running in Linux. The serial device port is treated as a regular file and you can do read/write IO operations on it to send commands and read back the response.
Jesse Gilles
BlockedYeah, running ‘kill -9’ is certainly not graceful, but that sends SIGKILL which will forcefully terminate the process immediately.
If you run just ‘kill’ or ‘killall’ with no specific signal, then they send SIGTERM by default, and pppd will actually hang up and shut down gracefully. So it only feels not graceful 🙂
Jesse Gilles
BlockedTry “killall pppd”
Jesse Gilles
BlockedYou should be able to use microcom, but the AT commands have to end with a CR. You will probably also want to tell microcom to exit if stdin and the output are idle for a while (-t option, specified in ms).
Example:
echo -e “atir” | microcom -t 100 /dev/ttyS1
Hope that helps.
Jesse Gilles
BlockedI don’t believe this is possible, however, when you schedule a fax, you get a fax entry key back that uniquely identifies the fax. You can then use this key to query information about the fax and to find out when it completed. Look for the <fax_entry_url> element in the schedule response.
Please refer to the documentation on the FaxFinder Web Services API page. You can find an example of how to query information about a fax using the fax entry key under the “Retrieving Fax Entries” section.
Jesse Gilles
BlockedI’m not sure why this would be. The CDP does not block ping requests by default. If you are able to SSH to the CDP then you don’t have a network connectivity problem. Is there a specific reason you need to ping the device? Do you have a dedicated network adapter in your PC with the IP address of 192.168.2.2? Or are you changing the IP address on your adapter when you connect to the CDP? Is it possible that your firewall settings on your PC are changing when you reconfigure the network adapter? Just thinking of possibilities…
Another thing to try to make sure it isn’t related to your PC (though I know you said you can ping other devices from your PC), would be to put your CDP on your LAN and try to ping to/from other devices/PCs on your LAN.
-
AuthorPosts