New here and I would like to use my VIM2 as USB flash disk for my Tesla,
current EMMC image is ubuntu server with kernel 4.9.29
I have built a kernel with USB gadget mass storage and was able to load using modprobe g_mass_storage file=/usb.bin stall=0 ro=1 remoable=y but nothing showed in my windows laptop.
as I’m already have kernel complied, I have edit the dtb file
Convert dtb to dts
cd /boot/dtb
sudo dtc -I dtb -O dts -o kvim2_linux.dts kvim2_linux.dtb
sudo vi kvim2_linux.dts (change controller to type 2)
recompile dts to dtb
sudo mv kvim2_linux.dtb kvim2_linux.dtb.bak
sudo dtc -O dtb -o kvim2_linux.dtb kvim2_linux.dts
sudo reboot
now sudo modproge g_mass_storage parameters is working...
BTW first time doing these stuff :slight_smile:
Thanks a lot