I used QorIO-SDK-V2.0-201605027-yocto install to build fsl-image-full-t4240rdb.tar.gz.
I loaded that onto the SD card and modified the following U-boot environment variables -
setenv bootfile uImage
setenv fdtfile uImage-t4240rdb.dtb
setenv fdtaddr e00000
setenv bootcmd 'setenv bootargs root=/dev/mmcblk0p2 rw rootdelay=5 console=$consoledev,$baudrate;mmcinfo;ext2load mmc 0:2 $loadaddr /boot/$bootfile;ext2load mmc 0:2 $fdtaddr /boot/$fdtfile;bootm $loadaddr - $fdtaddr'
I am able to successfully get to a Linux command prompt and build my test application. However when I run my test executable, I am getting -
my_test.exe: -net tap,ifname=tap1,vlan=0: could not open /dev/net/tun: No such file or directory
my_test.exe: -net tap,ifname=tap1,vlan=0: Device 'tap' could not be initialized
This is a full fsl-image, why is /dev/net/tun not available? How can I get around this?
Also I need to install openVPN and the only package manager I have available on my prompt is rpm -
root@t4240rdb:=>which rpm
/usr/bin/rpm
root@t4240rdb:=> uname -a
Linux t4240rdb 4.1.8-rt8+gbd51baf #1 SMP Fri Nov 9 21:54:57 UTC 2018 ppc64 GNU/Linux
Sorry for delayed response.
It looks like you do not have this /dev/net/tun device, please create it by using mknod command
https://www.kernel.org/doc/Documentation/networking/tuntap.txt
Regarding package manager - you are using yocto-based SDK, so you have to use yocto to add openvpn.
Have a great day,
Alexander
TIC
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------