Newbie to imx28: Need help

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Newbie to imx28: Need help

1,134 Views
drb
Contributor II

Hello,

I am new to Imx28. My major success as of today is downloading Linux image via the Manufacturing tool I.MX28_MFG_TOOL_LINUX.. After hours of researching, I have a couple of questions.

1. How do I download the latest linux demo images to my SD card?

2. Is there some package installation like apt-get or synaptics?

3. I saw from the demo SD card included that there is an included Python interpreter. When I uploaded a linux image via the manufacturing tool to my SD card, Python is not present. I downloaded the tar file using wget, extracted it, but when I will install from the source via ./configure and make, I wasn't able to do so. I believe that make is not currently installed.

4. On the demo linux image, I can't see any GUI as opposed to what I see from video demonstrations from youtube.

Thank you so much.

6 Replies

811 Views
drb
Contributor II

hello,

thank you for pointing me to the right direction. I was able to see the GUI by selecting the correct profile. Now, I have another sets of questions:

1. I can't make USB keyboard/mouse work. Do I need to set the USB host capability somewhere else?

2. I would like to write code in python. I would like to access the hardwares especially the I2C and ADC and GPIOs, CAN. How can I do that? For the serial, it is already working using pyserial.

Thanks


0 Kudos

811 Views
drb
Contributor II

bumping...

maybe I dont need the USB keyboard and mouse.

On the second question, is it a good idea to write code in python? I researched that I can use ctypes module so that I will be able to interface with C codes as I saw that all the sample codes for this is written in C.

0 Kudos

811 Views
LeonardoSandova
Specialist I

what are you trying to do with Python? C is the 'lingua franca' in embedded systems but in case you want to do some scripting, other higher language, like Python, can be used. BTW, for small scripts, I prefer shell scripting.

0 Kudos

811 Views
drb
Contributor II

hello,

thanks for the reply. basically, I would like to do RS485 card reader transactions. I would like to use SQLite3 as well for recording the user database. I will be using a web server as well. I had been writing in C for embedded quite a long time and porting to another platform really takes a lot of development time compared to a code written in python (using libraries). Which means portability is one of my concerns.

I already created a python script running on Windows, Ubuntu, and Raspberry Pi. I would like to use it here as well and I don't want to rewrite everything in C. Reason I like using python is the high chance of portability to another system w/ very minimal/no code changes. :smileyhappy:

Thanks

0 Kudos

811 Views
Yuri
NXP Employee
NXP Employee

> 4. On the demo linux image, I can't see any GUI

Please select LTIB configuration FSL_gnome (minimal profile is default).

811 Views
LeonardoSandova
Specialist I

1. How do I download the latest linux demo images to my SD card?

All the latest are in the freescale.com page.

http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=i.MX280&nodeId=018rH3ZrDRA24A&fpsp=1&...

And then Operating System Software-Board Support Package

2. Is there some package installation like apt-get or synaptics?

I have not install that particular tool, but all this info is on the user guide, I believe.

3. I saw from the demo SD card included that there is an included Python interpreter. When I uploaded a linux image via the manufacturing tool to my SD card, Python is not present. I downloaded the tar file using wget, extracted it, but when I will install from the source via ./configure and make, I wasn't able to do so. I believe that make is not currently installed.

python is not present on /usr/bin? have you tried 'which python' cmd? To avoid problems, all compilation should be done using LTIB, so you do not have to deal with toolchain and other paths. have you done it this way? I remember that Python has compilation issues on this particular platform but there are patches which avoid these.

4. On the demo linux image, I can't see any GUI as opposed to what I see from video demonstrations from youtube.

I am not sure how this image was built but it may be the case that the profile used was the minimal (on LTIB, you can choose several profiles, the minimal is the most basic).