2722 views|4 replies

1903

Posts

0

Resources
The OP
 

Zedboard runs helloworld on Linux [Copy link]

After implementing Linux on Zedboard, we can use Zedboard like other embedded Linux development. SDK provides a standard visual linux-arm cross-compilation chain, and there is no need to build a cross-compilation environment. Start SDK, new->project->C project, Select the project type as "Xilinx ARM Linux Executable" and the tool chain as "Xilinx ARM GNU/LinuxToolchain" Click Next and select release Click Finish. After the project is established, create a new main.c file, Modify the content as follows: /* * main.c * * Created on: June 27, 2018* Author: star in tsinghua */ #include


int main() { printf("Hello World!\n"); printf("This is from Zedboard Linux!\n"); printf("2018-06-27 16:43:22 by \n"); return 0; } This is a simple output of helloworld information from the console. After compilation, the hello.elf executable file is generated and copied to the USB flash drive. Insert the USB flash drive into the USB OTG port of Zedboard, as shown in the figure below As can be seen from the figure, the Linux kernel has recognized the USB flash drive. Next, load the USB flash drive to the /mnt directory to operate the USB flash drive. Check that there is a hello.elf file under the /mnt directory and run it. The result is shown in the figure below. This content is originally created by EEWORLD forum user star_66666. If you want to reprint or use it for commercial purposes, you must obtain the author's consent and indicate the source

This post is from FPGA/CPLD

Latest reply

You can give me some.   Details Published on 2018-7-24 09:03
 

252

Posts

0

Resources
2
 
I also want to play with zedboard, but I can't afford the board.
This post is from FPGA/CPLD
 
 

1903

Posts

0

Resources
3
 
Then find a supplier to deliver
This post is from FPGA/CPLD

Comments

Please give me some.  Details Published on 2018-7-24 09:03
 
 
 

252

Posts

0

Resources
4
 
star_66666 posted on 2018-7-4 09:13 Then find a supplier to deliver it
You can give me some.
This post is from FPGA/CPLD
 
 
 

1903

Posts

0

Resources
5
 
I'm not a supplier.
This post is from FPGA/CPLD
 
 
 

Guess Your Favourite
Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list