Running "hello world" application on t1024rdb linux kernel

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

Running "hello world" application on t1024rdb linux kernel

1,543 Views
veerendranathj
Contributor III

Hi,

I have generated "Hello_world.elf" using powerpc linux cross-toolchain (powerpc-fsl-linux-gcc) now i want to transfer this ELF file to target board(t1024rdb) linux file system and run from there.

I could access target board through serial port console. Is there any command in linux to tranfer files via serial port(Ex:  "loadb" in u-boot) ?

Regards,

Veerendranath

Labels (1)
Tags (2)
0 Kudos
13 Replies

1,127 Views
mathiasparnaude
Contributor III

I'm not sure using the serial port is really convenient. Can't you use network (NFS, scp, ...) or mass storage (USB stick or SD card)?

If you build your fsl-image-full from sources, I think you should add your example in a recipe, in order to embed it in your filesystem.

0 Kudos

1,127 Views
veerendranathj
Contributor III

I tried to assign static IP address from fsl-image-full... (like in u-boot) to use "tftp" but it doesn't work. When I tried to ping server ip I am getting network unreachable error....

Regards,

Veeru

0 Kudos

1,127 Views
mathiasparnaude
Contributor III

How did you try?

I get the same error ("Network in unreachable") when I have no connection. How did you try to assign a static IP address. Here on the T1040RDB, I used:

ifconfig fm1-gb3 up 192.168.0.2

Then I transfer, for example, the file "uImage" that is in my tftp server directory. From Linux on the board:

tftp -l uImage -r uImage -g 192.168.0.1

And that works. I think you just have to correctly setup your network interface (it is fm1-gb3 for ETH0 on the T1040RDB, but I don't know for your board, look at the manuals).

0 Kudos

1,127 Views
Pavel
NXP Employee
NXP Employee

NXP SDK supports minicom serial terminal. Use this terminal for file transfers. This application is available if fsl-image-core or fsl-image-full is used.


Have a great day,
Pavel

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

1,127 Views
veerendranathj
Contributor III

to instantiate file receive mode in minicom terminal we should enter some command like "loadb"  in u-boot...what is the command to do that in linux...?

Regards,

Veeru

0 Kudos

1,127 Views
Pavel
NXP Employee
NXP Employee

Look at the following document about minicom using:

http://www.shop.ngxtechnologies.com/download/jtag/minicom_User_Guide.pdf


Have a great day,
Pavel

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

1,127 Views
veerendranathj
Contributor III

my target board doesn't have access to internet... How can i install minicom?

0 Kudos

1,127 Views
Pavel
NXP Employee
NXP Employee

This application is available if fsl-image-core or fsl-image-full is used.


Have a great day,
Pavel

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

1,127 Views
veerendranathj
Contributor III

I am using "fsl-image-full" but it doesn't have minicom command...

0 Kudos

1,127 Views
Pavel
NXP Employee
NXP Employee

Find minicom using the following path: /usr/bin


Have a great day,
Pavel

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

1,127 Views
veerendranathj
Contributor III

It has only microcom.. I couldn't find any file transfer options using that command.

Thanks and Regards,

Veerendranath

0 Kudos

1,127 Views
Pavel
NXP Employee
NXP Employee

Look at the following document about minicom using:

http://www.shop.ngxtechnologies.com/download/jtag/minicom_User_Guide.pdf

Have a great day,
Pavel

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

1,127 Views
veerendranathj
Contributor III

it is not minicom... it's microcom.... fsl-full-image doesn't have minicom...

0 Kudos