Hello Team,
Can we configure Raspberry Pi Model 4 as USB Storage Device ?
I have followed steps mentioned below for the same:However its not working. For testing purpose, I have connected USB A to the Raspberry Pi and USB to my MAC. I might be wrong in this.
How shall I connect RPi to Mac for this testing ?
When connected that way, I am getting below errors on the RPi:Please guide on this.
Thank you.
Can we configure Raspberry Pi Model 4 as USB Storage Device ?
I have followed steps mentioned below for the same:
Code:
sudo apt updatesudo apt upgradesudo nano /boot/config.txtdtoverlay=dwc2Save and Exitsudo nano /etc/modules-load.d/g_mass_storage.confdwc2Save and Exitsudo dd if=/dev/zero of=/pi_usb.img bs=1M count=512sudo mkfs.vfat /pi_usb.imgsudo nano /boot/cmdline.txtmodules-load=dwc2,g_mass_storage file=/pi_usb.img stall=0Save and Exitsudo reboot
How shall I connect RPi to Mac for this testing ?
When connected that way, I am getting below errors on the RPi:
Code:
Unknown kernel command line parameters "modules-load=dwc2,g_mass_storage file=/pi_usb.img stall=0", will be passed to user space.
Thank you.
Statistics: Posted by Linux_01 — Tue Jan 30, 2024 6:43 am — Replies 0 — Views 71