I have a zedboard and i want to make and learn some applications with petalinux. I am using vivado 2018.1 and petalinux 2018.1 also. I want to change some busybox command outputs forexample ping command. Here is my standard ping output below.
root@avnet-digilent-zedboard-2018_1:~# ping 127.0.0.1
PING 127.0.0.1 (127.0.0.1): 56 data bytes
64 bytes from 127.0.0.1: seq=0 ttl=64 time=0.295 ms
64 bytes from 127.0.0.1: seq=1 ttl=64 time=0.104 ms
64 bytes from 127.0.0.1: seq=2 ttl=64 time=0.086 ms
64 bytes from 127.0.0.1: seq=3 ttl=64 time=0.089 ms
--- 127.0.0.1 ping statistics ---
4 packets transmitted, 4 packets received, 0% packet loss
round-trip min/avg/max = 0.086/0.143/0.295 ms
But i want to change the output like below:
printf("\n--- %s ping OEEE statistics ---\n"
"%lu packets kursatgol transmitted, "
"%lu packets KURSATGOL received, ",
hostname, G.ntransmitted, nrecv
I found the the particular ping.c file from /home/kursatgol/Xilinx/projelerim/oeee_petalinux/components/yocto/downloads/busybox-1.24.1/networking/ping.c file and change the printf content like above than compile busybox via 'make' command. After this compiling i took the compiled final busybox executable file and applied referred http://www.wiki.xilinx.com/Build+and+Modify+a+Rootfs configurations. Extract initrd image like rootfs.ext4.gz and put in the busybox file and compress the rootfs.ext4 and save this compressed file to sdcard. But nothing change again.
Could you please help and advice on this issue?
Thank you very much and regards.