<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Blog &#8211; Landshark Labs</title>
	<atom:link href="https://landsharklabs.com/blog/feed/" rel="self" type="application/rss+xml" />
	<link>https://landsharklabs.com</link>
	<description>The fusion of tech, preparedness and other odds and ends.</description>
	<lastBuildDate>Sun, 03 Mar 2024 16:26:22 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://i0.wp.com/landsharklabs.com/wp-content/uploads/2024/12/cropped-Landshark-Labs-Logo-TP-01.png?fit=32%2C32&#038;ssl=1</url>
	<title>Blog &#8211; Landshark Labs</title>
	<link>https://landsharklabs.com</link>
	<width>32</width>
	<height>32</height>
</image> 
<site xmlns="com-wordpress:feed-additions:1">85516203</site>	<item>
		<title>BIGTREETECH Pad 7 Setup Using a Raspberry Pi CM4 with eMMC</title>
		<link>https://landsharklabs.com/bigtreetech-pad-7-setup-using-a-raspberry-pi-cm4-with-emmc/</link>
					<comments>https://landsharklabs.com/bigtreetech-pad-7-setup-using-a-raspberry-pi-cm4-with-emmc/#comments</comments>
		
		<dc:creator><![CDATA[Landshark Labs]]></dc:creator>
		<pubDate>Sun, 03 Mar 2024 16:12:25 +0000</pubDate>
				<category><![CDATA[Electronics]]></category>
		<category><![CDATA[Raspberry Pi]]></category>
		<guid isPermaLink="false">https://landsharklabs.com/?p=113</guid>

					<description><![CDATA[Introduction: I recently acquired a BIGTREETECH Pad 7, though my use case for it is not for 3D printing but for...]]></description>
										<content:encoded><![CDATA[
<h2 class="wp-block-heading"><strong>Introduction</strong>:</h2>



<p>I recently acquired a BIGTREETECH Pad 7, though my use case for it is not for 3D printing but for another project I plan to document here. Intrigued by its form factor, price and the ability to swap the stock CB1 for a Raspberry Pi CM4, I purchased the Pad 7 alongside a CM4 featuring 8GB of RAM and 32GB of eMMC storage.</p>



<p>Unbeknownst to me at the time, installing a standard Raspbian OS on the CM4 wouldn’t be as straightforward as I had anticipated. Despite my extensive experience with Raspberry Pis, this was my first encounter with a Compute Module. I discovered that installing an OS on the onboard eMMC storage is not as straight forward as I had thought. However, <a href="https://www.jeffgeerling.com/blog/2020/how-flash-raspberry-pi-os-compute-module-4-emmc-usbboot" target="_blank" rel="noreferrer noopener">Jeff Geerling provides a detailed guide on how to accomplish this</a>. The problem I ran into was adapting his method for the Pad 7.<br><br>Unfortunately, in my search for tutorials on how to accomplish this, I found that most people using the CM4 were opting for the lite version without onboard storage. Here’s how I managed it.</p>



<h2 class="wp-block-heading">The Problem:</h2>



<p>I started with installing the <a href="https://github.com/raspberrypi/usbboot" target="_blank" rel="noreferrer noopener">Raspberry Pi USB Boot code</a>. Which can be found in the GitHub repository. I&#8217;m working off Windows for this so I was able to get the .exe file from the <a href="https://github.com/raspberrypi/usbboot/tree/master/win32" target="_blank" rel="noreferrer noopener">Win32 directory</a>. This basically allows you to connect to the CM4 and view the eMMC storage as any other USB drive. </p>



<p>This is where I ran into the problem. After installing and connecting the Pad 7 via the USB C port, the device was not being recognized. I double checked the two switches as described in the instructions both were to the right as described for a CM4. </p>


<div class="wp-block-image">
<figure class="aligncenter size-full"><img data-recalc-dims="1" fetchpriority="high" decoding="async" width="749" height="113" src="https://i0.wp.com/landsharklabs.com/wp-content/uploads/2024/03/switch-position.png?resize=749%2C113&#038;ssl=1" alt="" class="wp-image-128" srcset="https://i0.wp.com/landsharklabs.com/wp-content/uploads/2024/03/switch-position.png?w=749&amp;ssl=1 749w, https://i0.wp.com/landsharklabs.com/wp-content/uploads/2024/03/switch-position.png?resize=300%2C45&amp;ssl=1 300w" sizes="(max-width: 749px) 100vw, 749px" /></figure>
</div>

<div class="wp-block-image">
<figure class="aligncenter size-large"><img data-recalc-dims="1" decoding="async" width="1024" height="365" src="https://i0.wp.com/landsharklabs.com/wp-content/uploads/2024/03/Switch2.jpeg?resize=1024%2C365&#038;ssl=1" alt="" class="wp-image-129" srcset="https://i0.wp.com/landsharklabs.com/wp-content/uploads/2024/03/Switch2-scaled.jpeg?resize=1024%2C365&amp;ssl=1 1024w, https://i0.wp.com/landsharklabs.com/wp-content/uploads/2024/03/Switch2-scaled.jpeg?resize=300%2C107&amp;ssl=1 300w, https://i0.wp.com/landsharklabs.com/wp-content/uploads/2024/03/Switch2-scaled.jpeg?resize=768%2C274&amp;ssl=1 768w, https://i0.wp.com/landsharklabs.com/wp-content/uploads/2024/03/Switch2-scaled.jpeg?resize=1536%2C548&amp;ssl=1 1536w, https://i0.wp.com/landsharklabs.com/wp-content/uploads/2024/03/Switch2-scaled.jpeg?resize=2048%2C730&amp;ssl=1 2048w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>
</div>


<h2 class="wp-block-heading">The Discovery:</h2>



<p>Looking at Jeff&#8217;s tutorial, and others, It was obvious that in order to flash the CM4 it was required to move a jumper. Unfortunately I didn&#8217;t see any and before taking the whole Pad 7 apart, I found this video on YouTube. </p>



<figure class="wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio"><div class="wp-block-embed__wrapper">
<iframe title="BTT - Manta M4P CM4 eMMC install of Fluidd Pi" width="720" height="405" src="https://www.youtube.com/embed/SoIPRcXY4u4?feature=oembed" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe>
</div></figure>



<p>It was another BTT device, the Manta M4P also CM4 compatible and it was discussing how to install the OS on eMMC storage. On this device it was required to flip a couple DIP switches. </p>



<p>Having noticed the DIP switch block between the USB and CS switches it occurred to me this might be the part of the puzzle I was missing. I also noticed the &#8220;Mode&#8221; text between the two switch diagrams presumably identifying the DIP switch functions. But I wanted to know what the switches were called on the Manta M4P. This is what I found in the <a href="https://github.com/bigtreetech/Manta-M4P/blob/master/BIGTREETECH_MANTA_M4P_User_Manual.pdf" target="_blank" rel="noreferrer noopener">Manta M4P manual</a> on page 21: </p>


<div class="wp-block-image">
<figure class="aligncenter size-full"><img data-recalc-dims="1" loading="lazy" decoding="async" width="838" height="495" src="https://i0.wp.com/landsharklabs.com/wp-content/uploads/2024/03/MantaM4P-DIP-Switches.png?resize=838%2C495&#038;ssl=1" alt="" class="wp-image-130" srcset="https://i0.wp.com/landsharklabs.com/wp-content/uploads/2024/03/MantaM4P-DIP-Switches.png?w=838&amp;ssl=1 838w, https://i0.wp.com/landsharklabs.com/wp-content/uploads/2024/03/MantaM4P-DIP-Switches.png?resize=300%2C177&amp;ssl=1 300w, https://i0.wp.com/landsharklabs.com/wp-content/uploads/2024/03/MantaM4P-DIP-Switches.png?resize=768%2C454&amp;ssl=1 768w" sizes="auto, (max-width: 838px) 100vw, 838px" /></figure>
</div>


<h2 class="wp-block-heading">The Solution:</h2>



<p>So, USB &#8220;OTG&#8221; and &#8220;BOOT&#8221;. Looking at the Pad 7 Mode diagram, 3 and 4 are labeled &#8220;SOC-BOOT&#8221; and &#8220;USB-OTG.&#8221; </p>


<div class="wp-block-image">
<figure class="aligncenter size-full"><img data-recalc-dims="1" loading="lazy" decoding="async" width="749" height="113" src="https://i0.wp.com/landsharklabs.com/wp-content/uploads/2024/03/switch-position.png?resize=749%2C113" alt="" class="wp-image-128" srcset="https://i0.wp.com/landsharklabs.com/wp-content/uploads/2024/03/switch-position.png?w=749&amp;ssl=1 749w, https://i0.wp.com/landsharklabs.com/wp-content/uploads/2024/03/switch-position.png?resize=300%2C45&amp;ssl=1 300w" sizes="auto, (max-width: 749px) 100vw, 749px" /></figure>
</div>


<p>So I flipped them both to the right &#8220;ON&#8221; position. </p>


<div class="wp-block-image">
<figure class="aligncenter size-large"><img data-recalc-dims="1" loading="lazy" decoding="async" width="1024" height="577" src="https://i0.wp.com/landsharklabs.com/wp-content/uploads/2024/03/Dip2.jpeg?resize=1024%2C577&#038;ssl=1" alt="" class="wp-image-135" srcset="https://i0.wp.com/landsharklabs.com/wp-content/uploads/2024/03/Dip2.jpeg?resize=1024%2C577&amp;ssl=1 1024w, https://i0.wp.com/landsharklabs.com/wp-content/uploads/2024/03/Dip2.jpeg?resize=300%2C169&amp;ssl=1 300w, https://i0.wp.com/landsharklabs.com/wp-content/uploads/2024/03/Dip2.jpeg?resize=768%2C432&amp;ssl=1 768w, https://i0.wp.com/landsharklabs.com/wp-content/uploads/2024/03/Dip2.jpeg?resize=1536%2C865&amp;ssl=1 1536w, https://i0.wp.com/landsharklabs.com/wp-content/uploads/2024/03/Dip2.jpeg?resize=2048%2C1153&amp;ssl=1 2048w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>
</div>


<p>I connected the USB cable to my computer, the Pad 7 USB C port, Launched the USB Boot app and pushed the power button on the Pad 7 and: </p>



<figure class="wp-block-video aligncenter"><video height="1080" style="aspect-ratio: 1920 / 1080;" width="1920" controls src="https://landsharklabs.com/wp-content/uploads/2024/03/cm4connect.mp4"></video></figure>



<p></p>



<p>and the CM4 showed up as a storage device in file explorer. We have connection!</p>



<p>Next step was to launch the Raspberry Pi Imager. I selected the Device, and OS:</p>


<div class="wp-block-image">
<figure class="aligncenter size-full"><img data-recalc-dims="1" loading="lazy" decoding="async" width="689" height="490" src="https://i0.wp.com/landsharklabs.com/wp-content/uploads/2024/03/Screenshot-2024-03-03-103057.png?resize=689%2C490&#038;ssl=1" alt="" class="wp-image-132" srcset="https://i0.wp.com/landsharklabs.com/wp-content/uploads/2024/03/Screenshot-2024-03-03-103057.png?w=689&amp;ssl=1 689w, https://i0.wp.com/landsharklabs.com/wp-content/uploads/2024/03/Screenshot-2024-03-03-103057.png?resize=300%2C213&amp;ssl=1 300w" sizes="auto, (max-width: 689px) 100vw, 689px" /></figure>
</div>


<p>Then the moment of truth, clicked &#8220;Choose Storage&#8221; and:</p>


<div class="wp-block-image">
<figure class="aligncenter size-full"><img data-recalc-dims="1" loading="lazy" decoding="async" width="688" height="487" src="https://i0.wp.com/landsharklabs.com/wp-content/uploads/2024/03/Screenshot-2024-03-03-090804.png?resize=688%2C487&#038;ssl=1" alt="" class="wp-image-133" srcset="https://i0.wp.com/landsharklabs.com/wp-content/uploads/2024/03/Screenshot-2024-03-03-090804.png?w=688&amp;ssl=1 688w, https://i0.wp.com/landsharklabs.com/wp-content/uploads/2024/03/Screenshot-2024-03-03-090804.png?resize=300%2C212&amp;ssl=1 300w" sizes="auto, (max-width: 688px) 100vw, 688px" /></figure>
</div>

<div class="wp-block-image">
<figure class="aligncenter size-full"><img data-recalc-dims="1" loading="lazy" decoding="async" width="687" height="488" src="https://i0.wp.com/landsharklabs.com/wp-content/uploads/2024/03/Screenshot-2024-03-03-090923.png?resize=687%2C488&#038;ssl=1" alt="" class="wp-image-134" srcset="https://i0.wp.com/landsharklabs.com/wp-content/uploads/2024/03/Screenshot-2024-03-03-090923.png?w=687&amp;ssl=1 687w, https://i0.wp.com/landsharklabs.com/wp-content/uploads/2024/03/Screenshot-2024-03-03-090923.png?resize=300%2C213&amp;ssl=1 300w" sizes="auto, (max-width: 687px) 100vw, 687px" /></figure>
</div>


<p>Success! I proceeded to flash the image to the eMMC storage. This took a while. </p>



<p>Once it was done the storage directory was opened and I had access to the Config files that needed to be modified for the Pad 7. <br><br>I removed this line from the <em>cmdline.txt</em> file</p>



<pre class="wp-block-code"><code>console=serial0,115200</code></pre>



<p>I then added the following to the <em>config.txt</em> file</p>



<pre class="wp-block-code"><code>#Pad 7 mods
dtoverlay=gpio-led
dtparam=gpio=14,label=Pad7-lcd,active_low=1
hdmi_group=2
hdmi_mode=87
hdmi_cvt 1024 600 60 6 0 0 0
hdmi_drive=1
dtoverlay=dwc2,dr_mode=host</code></pre>



<p>I then powered off the Pad 7, switched the DIP switches back to &#8220;OFF&#8221; </p>


<div class="wp-block-image">
<figure class="aligncenter size-large"><img data-recalc-dims="1" loading="lazy" decoding="async" width="1024" height="404" src="https://i0.wp.com/landsharklabs.com/wp-content/uploads/2024/03/switch-done.jpeg?resize=1024%2C404&#038;ssl=1" alt="" class="wp-image-136" srcset="https://i0.wp.com/landsharklabs.com/wp-content/uploads/2024/03/switch-done-scaled.jpeg?resize=1024%2C404&amp;ssl=1 1024w, https://i0.wp.com/landsharklabs.com/wp-content/uploads/2024/03/switch-done-scaled.jpeg?resize=300%2C118&amp;ssl=1 300w, https://i0.wp.com/landsharklabs.com/wp-content/uploads/2024/03/switch-done-scaled.jpeg?resize=768%2C303&amp;ssl=1 768w, https://i0.wp.com/landsharklabs.com/wp-content/uploads/2024/03/switch-done-scaled.jpeg?resize=1536%2C606&amp;ssl=1 1536w, https://i0.wp.com/landsharklabs.com/wp-content/uploads/2024/03/switch-done-scaled.jpeg?resize=2048%2C808&amp;ssl=1 2048w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>
</div>


<p>and booted up. </p>



<h2 class="wp-block-heading">The Outcome:</h2>


<div class="wp-block-image">
<figure class="aligncenter size-large"><img data-recalc-dims="1" loading="lazy" decoding="async" width="1024" height="576" src="https://i0.wp.com/landsharklabs.com/wp-content/uploads/2024/03/session-attachment-2024-03-02-214317-1024x576.jpeg?resize=1024%2C576" alt="" class="wp-image-114" srcset="https://i0.wp.com/landsharklabs.com/wp-content/uploads/2024/03/session-attachment-2024-03-02-214317-scaled.jpeg?resize=1024%2C576&amp;ssl=1 1024w, https://i0.wp.com/landsharklabs.com/wp-content/uploads/2024/03/session-attachment-2024-03-02-214317-scaled.jpeg?resize=300%2C169&amp;ssl=1 300w, https://i0.wp.com/landsharklabs.com/wp-content/uploads/2024/03/session-attachment-2024-03-02-214317-scaled.jpeg?resize=768%2C432&amp;ssl=1 768w, https://i0.wp.com/landsharklabs.com/wp-content/uploads/2024/03/session-attachment-2024-03-02-214317-scaled.jpeg?resize=1536%2C864&amp;ssl=1 1536w, https://i0.wp.com/landsharklabs.com/wp-content/uploads/2024/03/session-attachment-2024-03-02-214317-scaled.jpeg?resize=2048%2C1152&amp;ssl=1 2048w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>
</div>


<p>SSH in to check the directory and: </p>


<div class="wp-block-image">
<figure class="alignright size-full"><img data-recalc-dims="1" loading="lazy" decoding="async" width="787" height="538" src="https://i0.wp.com/landsharklabs.com/wp-content/uploads/2024/03/Screenshot-2024-03-03-092711.png?resize=787%2C538&#038;ssl=1" alt="" class="wp-image-137" srcset="https://i0.wp.com/landsharklabs.com/wp-content/uploads/2024/03/Screenshot-2024-03-03-092711.png?w=787&amp;ssl=1 787w, https://i0.wp.com/landsharklabs.com/wp-content/uploads/2024/03/Screenshot-2024-03-03-092711.png?resize=300%2C205&amp;ssl=1 300w, https://i0.wp.com/landsharklabs.com/wp-content/uploads/2024/03/Screenshot-2024-03-03-092711.png?resize=768%2C525&amp;ssl=1 768w" sizes="auto, (max-width: 787px) 100vw, 787px" /></figure>
</div>


<p></p>



<p>That is it, I am up and running. Hope this can help some others running into the same issue. </p>



<p>I will most likely be removing the full version of Raspbian and installing the lite version as I&#8217;ll be building a custom interface for my project, more to come on that in a future article. Stay tuned. </p>



<h2 class="wp-block-heading">Side Notes:</h2>



<p><strong>Note 1:</strong> as mentioned I am not using the Pad 7 for 3D printing so I skipped the other suggested changes. If you are then follow the manual. </p>



<p><strong>Note 2:</strong> I had a typo in my config file settings apparently I had clipped the end of one of them when copying and pasting. So when booting the Pad 7 the screen would flash, I&#8217;d see the rainbow square and then it would go black. I did have SSH access, so I was able to SSH into the Pad 7 and edit the config.txt file. It was located in <em>/boot/firmware/config.txt</em>, I edited it using: </p>



<pre class="wp-block-code"><code>sudo nano /boot/firmware/config.txt</code></pre>
]]></content:encoded>
					
					<wfw:commentRss>https://landsharklabs.com/bigtreetech-pad-7-setup-using-a-raspberry-pi-cm4-with-emmc/feed/</wfw:commentRss>
			<slash:comments>4</slash:comments>
		
		<enclosure url="https://landsharklabs.com/wp-content/uploads/2024/03/cm4connect.mp4" length="600285" type="video/mp4" />

		<post-id xmlns="com-wordpress:feed-additions:1">113</post-id>	</item>
	</channel>
</rss>
