Other Parts Discussed in Thread: AM3352, TPS65217
Tool/software: Linux
Dear community,
I'm struggling with getting USB gadget to work. I'm using Buildroot to build Linux (official kernel 4.9 provided by TI) and all other stuff. I figured out the TI SDK uses Busybox to provide udhcpd so I also added this program to my Busybox. Only to clarification I added RNDIS as the kernel module. I'm able to modprobe g_ether and ever manually start udhcpd. I'm just looking for way to make the USB ethernet connection to PC automatically at startup.
After more investigation of prepared TI rootfs (tisdk-rootfs-image-am335x-evm.tar.xz) I found sh script which is used to start dhcp server in /etc/init.d/busybox-udhcp. I also found service for usb gadget /lib/systemd/system/gadget-init.service which wants busybox-udhcp.service but I cannot find where the busybox-udhcp.service is created.
I have several questions about this issue. I know TI uses Yocto to build SDK, fs and all other. I chose Buildroot because it looked more strait forward.
Could anybody help me with this?
Does the busybox-udhcp.service has something to do with okpg manager?
Is there automated way to start and use the Busybox programs instead manually creating all configuration and sh scripts?
As you could notice I'm pretty new in Linux world so I will be grateful if you can provide any materials I should study.