<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="https://wiki.radxa.com/mw/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://wiki.radxa.com/mw/index.php?action=history&amp;feed=atom&amp;title=Rock3%2Fdev%2FEnable_USB_Mass_Storage_gadget_in_Linux</id>
		<title>Rock3/dev/Enable USB Mass Storage gadget in Linux - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.radxa.com/mw/index.php?action=history&amp;feed=atom&amp;title=Rock3%2Fdev%2FEnable_USB_Mass_Storage_gadget_in_Linux"/>
		<link rel="alternate" type="text/html" href="https://wiki.radxa.com/mw/index.php?title=Rock3/dev/Enable_USB_Mass_Storage_gadget_in_Linux&amp;action=history"/>
		<updated>2026-06-06T18:20:42Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.23.3</generator>

	<entry>
		<id>https://wiki.radxa.com/mw/index.php?title=Rock3/dev/Enable_USB_Mass_Storage_gadget_in_Linux&amp;diff=8950&amp;oldid=prev</id>
		<title>Alvin at 09:13, 7 November 2022</title>
		<link rel="alternate" type="text/html" href="https://wiki.radxa.com/mw/index.php?title=Rock3/dev/Enable_USB_Mass_Storage_gadget_in_Linux&amp;diff=8950&amp;oldid=prev"/>
				<updated>2022-11-07T09:13:57Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 09:13, 7 November 2022&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 12:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 12:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Radxa E25&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Radxa E25&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Host PC with Ubuntu or Windows&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Host PC with Ubuntu or Windows&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* USB Male A to C or USB C to C cable&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* USB &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;3.0 &lt;/ins&gt;Male A to C or USB C to C cable&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;** The USB cable is used for powering the Radxa E25 as well as data transmission from your host PC to the Zero. Depends on the USB port on host PC, you may need USB A to C(host PC is USB A) or USB C to C(host PC is USB C) cable.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;** The USB cable is used for powering the Radxa E25 as well as data transmission from your host PC to the Zero. Depends on the USB port on host PC, you may need USB A to C(host PC is USB A) or USB C to C(host PC is USB C) cable.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Mouse, monitor and HDMI Cable&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Mouse, monitor and HDMI Cable&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Alvin</name></author>	</entry>

	<entry>
		<id>https://wiki.radxa.com/mw/index.php?title=Rock3/dev/Enable_USB_Mass_Storage_gadget_in_Linux&amp;diff=8637&amp;oldid=prev</id>
		<title>Alvin: Created page with &quot;{{rock3_header}}  {{Languages|rock3/dev/Debian}}   ROCK 3 &gt;  Development &gt;  USB Mass Storage   === Description ==...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.radxa.com/mw/index.php?title=Rock3/dev/Enable_USB_Mass_Storage_gadget_in_Linux&amp;diff=8637&amp;oldid=prev"/>
				<updated>2022-09-19T07:26:07Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{rock3_header}}  {{Languages|rock3/dev/Debian}}  &lt;a href=&quot;/Rock3&quot; title=&quot;Rock3&quot;&gt; ROCK 3&lt;/a&gt; &amp;gt; &lt;a href=&quot;/Rock3/dev&quot; title=&quot;Rock3/dev&quot;&gt; Development&lt;/a&gt; &amp;gt; &lt;a href=&quot;/Rock3/dev/ap-mode-on-radxa-e25&quot; title=&quot;Rock3/dev/ap-mode-on-radxa-e25&quot;&gt; USB Mass Storage&lt;/a&gt;   === Description ==...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{rock3_header}}&lt;br /&gt;
&lt;br /&gt;
{{Languages|rock3/dev/Debian}}&lt;br /&gt;
&lt;br /&gt;
[[rock3 | ROCK 3]] &amp;gt; [[rock3/dev | Development]] &amp;gt; [[rock3/dev/ap-mode-on-radxa-e25 | USB Mass Storage]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Description ===&lt;br /&gt;
This guide describes how to setup USB Mass Storage on Radxa E25.&lt;br /&gt;
&lt;br /&gt;
=== Requirement ===&lt;br /&gt;
* Radxa E25&lt;br /&gt;
* Host PC with Ubuntu or Windows&lt;br /&gt;
* USB Male A to C or USB C to C cable&lt;br /&gt;
** The USB cable is used for powering the Radxa E25 as well as data transmission from your host PC to the Zero. Depends on the USB port on host PC, you may need USB A to C(host PC is USB A) or USB C to C(host PC is USB C) cable.&lt;br /&gt;
* Mouse, monitor and HDMI Cable&lt;br /&gt;
** To access Radxa E25&lt;br /&gt;
* USB to TTL serial cable&lt;br /&gt;
** To access Radxa E25&lt;br /&gt;
&lt;br /&gt;
=== Enable USB mass storage on Radxa E25 ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Step 1: Disable amlogic-adbd service. It will interfere with USB mass storage mode:&lt;br /&gt;
&lt;br /&gt;
 rock@radxa-e25:~$ sudo systemctl disable rockchip-adbd&lt;br /&gt;
&lt;br /&gt;
Step 2: Reboot the device:&lt;br /&gt;
&lt;br /&gt;
 rock@radxa-e25:~$ sudo reboot&lt;br /&gt;
&lt;br /&gt;
Step 3: Create a file backing for mass storage, and format it in FAT32:&lt;br /&gt;
&lt;br /&gt;
 rock@radxa-e25:~$ sudo dd if=/dev/zero of=/home/rock/share bs=1M count=512 status=progress # Create a 512M file as /home/rock/share&lt;br /&gt;
 rock@radxa-e25:~$ sudo apt-get install dosfstools # dosfstools contains mkfs.fat&lt;br /&gt;
 rock@radxa-e25:~$ sudo mkfs.fat /home/rock/share -F 32 -I&lt;br /&gt;
&lt;br /&gt;
Step 4: Enable USB mass storage on our backing file and create test.txt file:&lt;br /&gt;
&lt;br /&gt;
 rock@radxa-e25:~$ sudo modprobe g_mass_storage file=/home/rock/share stall=0 removable=1&lt;br /&gt;
 rock@radxa-e25:~$ sudo mount /home/rock/share /mnt/&lt;br /&gt;
 rock@radxa-e25:~$ sudo touch  /mnt/test.txt&lt;br /&gt;
 rock@radxa-e25:~$ echo &amp;quot;hello radxa&amp;quot; | sudo tee /mnt/test.txt&lt;br /&gt;
 hello radxa&lt;br /&gt;
 rock@radxa-e25:~$ cat /mnt/test.txt&lt;br /&gt;
 hello radxa&lt;br /&gt;
&lt;br /&gt;
=== Accessing storage device from  PC ===&lt;br /&gt;
&lt;br /&gt;
After executing command &amp;lt;code&amp;gt;sudo modprobe g_mass_storage file=/home/rock/share stall=0 removable=1&amp;lt;/code&amp;gt; on Radxa E25, a new USB storage device will be detected on your host computer:&lt;/div&gt;</summary>
		<author><name>Alvin</name></author>	</entry>

	</feed>