I'm stepping through the steps and here are a few issues that I have found: Please note I'm working with Ubuntu:
7.3.5 - Configure tftp server
I do not have "/etc/inetd.conf" or "/etc.default/atftpd". I also do not have "/etc/exports" is this a new file?
Do I need this to compile code for the imx53?
I skipped this and continued on and then ran into:
"user@ubuntu:~/imx53/11.09.01/L2.6.35_11.09.01_ER_source$ ls
EULA install ltib.tar.gz package_manifest.txt pkgs redboot_201003.zip tftp.zip"
"~/imx53/11.09.01/L2.6.35_11.09.01_ER_source$" directory of file does not exist, if I take the $ off it says this is a directory. What is this looking for? This is a directory but I'm not sure what it is looking for.
已解决! 转到解答。
Please use the next topic how to prepare virtual machine for LTIB.
https://community.freescale.com/message/294343#294343
Please pay attention on files "Create-Ubuntu11-10-ltib11-09-01.docx" and "ubuntu-ltib-patch.tgz", linked there.
I tried the described approach on Ubuntu 12.04 - it works.
Please use the next topic how to prepare virtual machine for LTIB.
https://community.freescale.com/message/294343#294343
Please pay attention on files "Create-Ubuntu11-10-ltib11-09-01.docx" and "ubuntu-ltib-patch.tgz", linked there.
I tried the described approach on Ubuntu 12.04 - it works.
Yuri
It built successfully! very hapy about that. I was curious about other
develpers. How do they build and move to the imx53 board? Do they use
Putty? What language do they use, I was planning on using C. is there
a way to connect to a mysql database, like in windows you wold use odbc?
I tried calling on your skype, if you could i would like to talk to you
for a few minutes.
thanks
Leonard
Leonard, good day !
> ... It built successfully! ...
Great !
As for applications development, as has been mentioned in SR :
The following may be helpful.
AN3870 : Developing an Application for the i.MX Devices on Linux Platform
http://cache.freescale.com/files/dsp/doc/app_note/AN3870.pdf
The next app note may be useful in debugging :
"AN4553 Using Open Source Debugging Tools for Linux on i.MX Processors."
http://cache.freescale.com/files/32bit/doc/app_note/AN4553.pdf
Regarding how to transfer an application (.elf, .bin) to i.MX53 board - at first
it may be recommended to use NFS for debugging.
Also a SD card, USB sticker may serve in the same manner as for desktop PC.
We can use SCP to load and run codes to target Linux.
As for SQL - I am not a guru here - have not not tried it yet.
----
I am on-line.
Yuri
For the heck of it I tried:
/opt/freescale/usr/local/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linux-gnueabi/bin/../lib/gcc/arm-fsl-linux-gnueabi/4.4.4/../../../../arm-fsl-linux-gnueabi/bin/gcc
-o HelloWorld.out HelloWorld.c
I recieved:
gcc: error trying to exec 'cc1': execvp: No such file or directory
Thanks again for you help
Leonard
Please use the next path :
/opt/freescale/usr/local/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linux-gnueabi/bin/
and prefix : arm-fsl-linux-gnueabi-
So :
/opt/freescale/usr/local/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linux-gnueabi/bin/arm-fsl-linux-gnueabi-gcc
-o HelloWorld.out HelloWorld.c
Here's my program:
#include <stdio.h>
int main()
{
printf("Hello World");
return 0;
}
execute
/opt/freescale/usr/local/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linux-gnueabi/bin/arm-fsl-linux-gnueabi-gcc
-o HelloWorld.out HelloWorld.c
I get:
HelloWorld.c: In function 'main':
HelloWorld.c:6: error: stray '\302' in progress
HelloWorld.c:6: error: stray '\250' in progress
HelloWorld.c:6: error: 'hello' undeclared (first use in this function)
HelloWorld.c:6: error: (Each undeclared idnetifier is reported only
once)
HelloWorld.c:6: error: for each function it appears in.)
HelloWorld.c:6: error: expected ')' before 'World'
HelloWorld.c:6: error: stray '\302' in progress
HelloWorld.c:6: error: stray '\250' in progress
This should be pretty easy. What am I missing . I think I would be
better off uding Eclipse. I'll keep working on that.
Leonard
Looks like some symbols are not in ASCII, say, text was prepared using Windows editor.
(Use Notepad++ in Windows). Also sequence "\n\r" in end of line (instead of '\n' for "true"
Linux ) may provide issues.
Yuri
I posted the question on the community web site. Not sure what
happened, you were supposed to have a sample program for me and I don't
hear from you. I'm on a time crunch, I know it doesn't effect you but
it's huge for me. I've been at this for days and I can't compile a 4
line piece of code with the tools suggested by freescale. It shouldn't
be that difficult.
The example (enclosed) was sent in SR# 1-1043955938.
The simplest way to compile an application (say, "Hello World" example) is to use LTIB shell. To enter the shell the next command may be applied :
<LTIB_DIR>/ltib -m shell
LTIB>
After that proper environment for development is provided and code may be built as following :
LTIB> gcc -o hello.out hello.c
2.
Also please use the enclosed example (Makefile approach) how to configure environment in order to build an application under host Linux.
Yuri
I complied it and copied it over to the imx53 board. I tried just using
the terminal and typing "hello" and it came back with "command not
found" I set the permission to the file and recieved the same results.
I tried to have it open with "Autorun Prompt" and the same results.
Leonard
"command not found" means, that executable file hello was not found neither in (recent) default directory nor in directories,
mentioned in PATH environment. Please check if "hello" application is located in current directory.
Another option - please apply "chmod 777 ./hello" command in the directory, where "hello" is located.
(hello should has executable attribute)
Hi Yuri
Thanks, I was able to run HelloWorld! I'm installing QT and I'm at step
6, the only "qmake.conf" is under
"qtbase/mkspecs/devices/linux_imx6=g++/". Do I need to have a
"linux_imx5-g++" or go with the "6"? When it talks about copying and
pasting to a text file are they taling about a make file? I think I
better get this step correct or I'll be hating life on the next steps!
BTW: I'm changing my email address to "prismsoft@yahoo.com", I'll
change it on my account tonight.
Thanks
Leonard
Leonard, good day !
Please look at my comments below.
1.
> ... "qmake.conf" is under "qtbase/mkspecs/devices/linux_imx6=g++/".
> Do I need to have a "linux_imx5-g++" or go with the "6"?
"linux_imx5-g++
2.
> When it talks about copying and pasting to a text file are they taling about a make file?
Yes.