Forum Discussion
Hi,
In linux you need to write the socket programming to build the TCP/IP application over ethernet for server or client on board.
It is generic way of writing the linux TCP/IP app. For reference you can refer below link
https://www.geeksforgeeks.org/tcp-server-client-implementation-in-c/
For your reference, you can follow steps as hello world application.
Add yocto application and compile using meta-bake.py script
$cd meta-intel-fpga-refdes/
$mkdir recipe-example
$mkdir helloworld
$cd helloworld
Add the .c & .h files and create the helloworld.bb file in helloworld directory. Snapshot from the helloworld.bb file.
$nano helloworld.bb
SUMMARY = "Example hello world" DESCRIPTION = "helloworld in HPS"
AUTHOR = "Test_engineer"
LICENSE = "BSD-3-Clause"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/BSD-3-Clause;md5=550794465ba0ec5312d6919e203a55f9"
inherit systemd pkgconfig
SRC_URI = "file://helloworld.c"
S = "${WORKDIR}"
do_compile() {
${CC} ${CFLAGS} ${LDFLAGS} helloworld.c -o helloworld
}
do_install() {
install -d ${D}${bindir}
install -m 0755 helloworld ${D}${bindir}
}
Regards
Tiwari
Hello @Jeet14
Thanks for the information.
Is EDS needed to create the TCP/IP client application or the application to transfer data from HPS to FPGA memory?
Is it necessary to create a linux yocto with the custom applications/recipes?
Is there any detailed guide?