ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Is it the right one? The page says they have an SDK. You could cross compile wput with it and copy the resulting binary to the device, but it's probably easier to look at the example or ask in their forum.
And you never said how you got wput on the device in the first place. You can't just copy it from Ubuntu to the device.
Is it the right one? The page says they have an SDK. You could cross compile wput with it and copy the resulting binary to the device, but it's probably easier to look at the example or ask in their forum.
And you never said how you got wput on the device in the first place. You can't just copy it from Ubuntu to the device.
I installed the wput in the Bluegiga. I downloaded the libraries from the Debian's oficial website for repositories.
As for cross compiling, how could I do this?what steps? is it explained anywhere?
I know cross compiling is compiling in a platform that is not the target platform.
Why I am getting this error when I try to use wget?
wget: bad response to RETR: 501 Syntax error
I thought another solution might be using vsftpd-2.3.3.tar.gz and I was trying to store it in the device, extract it and compile it afterwards.
Thanks
Last edited by thosecars82; 02-15-2011 at 08:56 AM.
The link I posted mentions an SDK with a cross compiler. You need that SDK.
Quote:
Bluegiga Access Server SDK
Bluegiga Access Server Software Development Kit (SDK) enables application development into Bluegiga's Access Server platform. SDK offers simple and lightweight Linux based development and compiler environment with example applications and documentation.
You need to compile stuff on a computer, and then copy the resulting binary to the device. Small devices like that don't have the memory to compile anything. And I repeat: you cannot simply copy binary programs from whatever distro to the device.
Small devices are often equipped with the busybox utility, rather than a large collection of single-purpose tools. Busybox is a single application that provides the functionality of a shell and a collection of many other standard Unix/Linux tools, all bundled into a single small-footprint package. Evidently, the version you are using did not get built with the file utility.
If your Bluegiga boxes have ssh, then they most likely also have scp (secure copy). If so, you should be able to use it to transfer files in either direction between your boxes and other Linux hosts.
Is there an aptsources.list file on your boxes? If so, it probably contains valid pointers to the Debian Arm repositories. The fact that you are getting a legible error message from the application suggests that it is working. What isn't working is the networking part. It seems to be reporting that the server has returned a 501 response code, which means that it was able to talk to a server, but the server isn't able to understand the HTTP request. Look in the error &/or access logs of the HTTP server for more details.
Is there an aptsources.list file on your boxes? If so, it probably contains valid pointers to the Debian Arm repositories.
Just a quick comment here - based on the information given, there's absolutely NO evidence that the system in question is using debian. What's worse is if the OP decides that adding debian arm apt repository + the apt utility would be a good idea, there could likely be irreparable damage done the box, including bricking it.
Based on the OPs severe lack of knowledge in this area, I still stand by my recommendation that the first thing to do is not try to break box, but instead acquire as much knowledge as possible on the subject of embedded development (specifically targeted to embedded linux) as possible.
The link I posted mentions an SDK with a cross compiler. You need that SDK.
You need to compile stuff on a computer, and then copy the resulting binary to the device. Small devices like that don't have the memory to compile anything. And I repeat: you cannot simply copy binary programs from whatever distro to the device.
However this device was not bought directly to bluegiga but to one of its distributors.
That is why one of my concerns is whether the distributor might have changed any of the internal software which this device has. And therefore, in the end, I am not sure whether http://www.bluegiga.com/Bluetooth_Access_Servers
gives the correct information about the software of my device or not even though the picture in the link looks like my device.
Small devices are often equipped with the busybox utility, rather than a large collection of single-purpose tools. Busybox is a single application that provides the functionality of a shell and a collection of many other standard Unix/Linux tools, all bundled into a single small-footprint package. Evidently, the version you are using did not get built with the file utility.
If your Bluegiga boxes have ssh, then they most likely also have scp (secure copy). If so, you should be able to use it to transfer files in either direction between your boxes and other Linux hosts.
Is there an aptsources.list file on your boxes? If so, it probably contains valid pointers to the Debian Arm repositories. The fact that you are getting a legible error message from the application suggests that it is working. What isn't working is the networking part. It seems to be reporting that the server has returned a 501 response code, which means that it was able to talk to a server, but the server isn't able to understand the HTTP request. Look in the error &/or access logs of the HTTP server for more details.
--- rod.
There is no sources.list file.
Actually I searched for it with
find / -name 'sources.list'
but did not get any results so far.
As for the scp, this device does allow using scp like you said, thanks.
I have a doubt now.
The only thing I can think of is using something like ftp://vsftpd.beasts.org/users/cevans/
But I would need to compile it firstly. The problem is that according to what someone told me there might not be enough RAM memory in the device to compile it in the device itself. So, how can I compile it then? Should I compile it in a Linux PC? In that case, what Linux version should I have to compile it with in order to make it portable into the device?
Well
The other choice would be using the embedded ftp that this device might bring according to http://www.bluegiga.com/Bluetooth_Access_Servers.
However I do not know how to use, what command I should use in order to invoke this ftp program.
Moreover, I do not know for sure whether this device brings this ftp because it was not bought to bluegiga but to a distributor. And even it might not have happened, there's still a chance that the distributor has changed the software of this device.
Thanks
Last edited by thosecars82; 02-16-2011 at 05:59 AM.
I have a doubt now.
The only thing I can think of is using something like ftp://vsftpd.beasts.org/users/cevans/
But I would need to compile it firstly. The problem is that according to what someone told me there might not be enough RAM memory in the device to compile it in the device itself. So, how can I compile it then? Should I compile it in a Linux PC? In that case, what Linux version should I have to compile it with in order to make it portable into the device?
You can cross-compile applications on a build host. It will require first installing a cross toolchain appropriate to the target host. The aforementioned SDK probably includes this.
Not all applications, even though source files are included, build readily in a cross-development environment. Very often, tools like the autotools collection is used to create configure & Makefiles, and these get created based on the environment found on the build host, rather than the target host. The upshot of this is that it may take quite some effort to cross-build your applications, especially if you have no experience in software development.
An alternative may be to run the native compiler on the target host. If RAM is limited, this may not work. If you can find a machine emulation for your box to run under qemu, you may be able to use native tools to build in an emulated environment.
And finally, since you stated initially that you just need to be able to transfer files, and scp seems to be able to do this, what problem is left to solve?
And finally, since you stated initially that you just need to be able to transfer files, and scp seems to be able to do this, what problem is left to solve?
--- rod.
You are right.
My question now is how I could handle this.
To begin with, I do not know whether the scp installed in the device is a client or a server application. I guess it'll be a client. Moreover, if that is the case, I guess I should install a scp server in the PC's to which the files are gonna be sent from the device.
Is there any freeware scp server that I could install in these PC's either for Windows or Linux?
Can be ssh servers as mobassh be used as scp servers? If that is the case, do you know any reliable freeware ssh server that I could use to manage the scp transfers?
Openssh comes as a default part of any Linux distro I've used in the last 10 years. I have no idea about what might be available for Windows. Maybe openssh in Cygwin?
--- rod.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.