<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Topics tagged with ram]]></title><description><![CDATA[A list of topics that have been tagged with ram]]></description><link>http://community.onion.io/tags/ram</link><generator>RSS for Node</generator><lastBuildDate>Fri, 17 Apr 2026 03:03:04 GMT</lastBuildDate><atom:link href="http://community.onion.io/tags/ram.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 22 Jul 2022 16:18:12 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[FAQ: How do I detect if the hardware is an Omega2 or Omega2+ from Linux?]]></title><description><![CDATA[<h3>Question</h3>
<p dir="auto">Looking for a way to probe the hardware to reliably detect if it is a Omega2/2S (64MB MB RAM, 16 MB Flash) or an Omega2+/2S+ (128MB MB RAM, 32 MB Flash)</p>
<h3>Why is this useful?</h3>
<p dir="auto">If an Omega2+ is flashed with Omega2 firmware, the software (like <code>ubus call system board</code>) will identify it as an Omega2 regardless of the hardware differences.</p>
<p dir="auto">We need a way to identify the actual hardware on the device to determine if it is an Omega2 or Omega2+</p>
<h3>Solution that works from Linux Userspace</h3>
<p dir="auto">In the kernel messages (which can be viewed with the <code>dmesg</code> command), there is a line like:</p>
<pre><code>[    0.358842] m25p80 spi0.0: w25q128 (16384 Kbytes)
</code></pre>
<p dir="auto">or (in newer OpenWrt versions):</p>
<pre><code>[    0.639801] spi-nor spi0.0: w25q256 (32768 Kbytes)
</code></pre>
<p dir="auto">This is a message from the spi-nor kernel driver after detecting the actual flash chip. So it is <em>not</em> dependent on the flash size that is baked into the firmware image, but shows the real size of the flash chip. Both of the example lines above are from a firmware made for the Omega2. The first is run on an actual Omega2, the second shows 32M so it is a Omega2+.</p>
<p dir="auto">The only gotcha with this is that the <code>dmesg</code> buffer is not infinite and will loose older lines when too many new ones arrive. This means detecting the flash chip size needs to be done shortly after startup.</p>
<p dir="auto">So I put the following line into a startup script (e.g. <code>/etc/rc.local</code>) :</p>
<pre><code class="language-bash">dmesg | sed -n -r -e '/spi0.0: .*w25q/s/.*(w25q.*\))/\1/p' &gt; /tmp/flashchip
</code></pre>
<p dir="auto">With this, the chip name and size is captured and can be read any time later from <code>/tmp/flashchip</code> to detect an Omega2(S)+ vs Omega2(S)+.</p>
<hr />
<h3>Credit</h3>
<p dir="auto">Solution found and published by <a class="plugin-mentions-user plugin-mentions-a" href="http://community.onion.io/uid/1033">@luz</a>: <a href="https://community.onion.io/topic/4212/any-way-to-detect-an-omega2-when-running-with-omega2-fw" rel="nofollow">https://community.onion.io/topic/4212/any-way-to-detect-an-omega2-when-running-with-omega2-fw</a></p>
]]></description><link>http://community.onion.io/topic/4855/faq-how-do-i-detect-if-the-hardware-is-an-omega2-or-omega2-from-linux</link><guid isPermaLink="true">http://community.onion.io/topic/4855/faq-how-do-i-detect-if-the-hardware-is-an-omega2-or-omega2-from-linux</guid><dc:creator><![CDATA[Lazar Demin]]></dc:creator><pubDate>Fri, 22 Jul 2022 16:18:12 GMT</pubDate></item><item><title><![CDATA[FAQ: My Omega2&#x2F;2+&#x2F;2S&#x2F;2S+ won&#x27;t boot! The serial console shows a logo and says there&#x27;s 64 kB of DRAM]]></title><description><![CDATA[<h3>The Symptoms</h3>
<ul>
<li>When powered, the Omega2 device does not boot
<ul>
<li>The power LED doesn't light up</li>
</ul>
</li>
<li>The serial console outputs this and only this:<br />
<img src="/assets/uploads/files/1620313274141-40819335-e2dc-4c96-99b5-1b3a919fd78e-image.png" alt="40819335-e2dc-4c96-99b5-1b3a919fd78e-image.png" class="img-responsive img-markdown" /></li>
</ul>
<h3>The Root Cause</h3>
<p dir="auto">The 64 kB DRAM in the serial output is the key here. It indicates a <strong>hardware issue</strong>: the RAM is no longer connected to the MT76 SoC.<br />
The 64kB in the screenshot is a small cache of DRAM that's internal to the SoC.</p>
<h3>What can cause this issue</h3>
<p dir="auto">This issue can be caused by a few things:</p>
<ul>
<li>Factory defect - <em>possible but very unlikely since every module is extensively tested during manufacturing</em></li>
<li>Damaged in transport - <em>possible but not likely</em></li>
<li>Damaged during assembly - <em>most common for surface mount modules</em></li>
</ul>
<p dir="auto">Questions to ask to narrow down the issue:</p>
<ul>
<li>Did the module ever work before?
<ul>
<li>If not, then it's likely a factory defect</li>
<li>If it did, then it was somehow damaged</li>
</ul>
</li>
<li>For surface mount modules:
<ul>
<li>Was it hand-soldered to your circuit board or was a reflow oven used? If it was a reflow oven, was the reflow profile from the <a href="https://github.com/OnionIoT/Omega2/blob/master/Documents/Omega2S%20Datasheet.pdf" rel="nofollow">Omega2S datasheet</a> followed?
<ul>
<li>If a hotter reflow profile was used, then <strong>it's possible the higher heat desoldered some contacts on the SoC or RAM chip</strong></li>
</ul>
</li>
<li>Was the middle ground pad on the bottom of the module soldered?
<ul>
<li>We recommend against soldering the middle ground pad. See the <a href="https://github.com/OnionIoT/Omega2/blob/master/Documents/Omega2S%20Datasheet.pdf" rel="nofollow">Omega2S datasheet</a> for the recommended reflow profile.</li>
</ul>
</li>
</ul>
</li>
</ul>
<h3>Relevant Forum Posts</h3>
<p dir="auto"><a href="https://community.onion.io/topic/1135/omega2-not-starting-up" rel="nofollow">https://community.onion.io/topic/1135/omega2-not-starting-up</a><br />
<a href="https://community.onion.io/topic/3969/omega2-gone-non-responsive" rel="nofollow">https://community.onion.io/topic/3969/omega2-gone-non-responsive</a></p>
]]></description><link>http://community.onion.io/topic/4482/faq-my-omega2-2-2s-2s-won-t-boot-the-serial-console-shows-a-logo-and-says-there-s-64-kb-of-dram</link><guid isPermaLink="true">http://community.onion.io/topic/4482/faq-my-omega2-2-2s-2s-won-t-boot-the-serial-console-shows-a-logo-and-says-there-s-64-kb-of-dram</guid><dc:creator><![CDATA[Lazar Demin]]></dc:creator><pubDate>Thu, 06 May 2021 15:08:32 GMT</pubDate></item><item><title><![CDATA[Use &#x2F;tmp for application storage, proof of concept]]></title><description><![CDATA[<p dir="auto">It is no secret that the 16MB flash versions of the onion omega leave a lot to be desired when working with python or node.</p>
<p dir="auto">On my omega 1, after node is installed I'm left with 1.7MB of space remaining. This is a decent amount if you are building your entire code base. You must be very careful which external packages you choose to use, that 1.7MB can run out really quickly. I know this from experience.</p>
<p dir="auto">Now to start, I'm not sure if I'm lazy or just bored, one of the two is my excuse for doing this. I've been working on an existing project for the past couple of days and ran out of space on the Omega. Instead of using a USB stick and pivot overlay, I am using /tmp, which I believe is ram space.</p>
<p dir="auto">Obviously ram gets cleared during a reboot or power cycle, so it's kinda hard to run your code when it doesn't exist.</p>
<p dir="auto">Enter init.d....</p>
<p dir="auto">I have created an init.d script that does a git pull on a repo in to /tmp. After a successful pull, the script also launches the application. User specific settings are kept in /root to maintain some amount of persistence.</p>
<p dir="auto">While my <a href="https://github.com/JimJamUrCode/omega_garage" rel="nofollow">omega_garage</a> project is running, /tmp usage is at 22% and fairly steady.</p>
<p dir="auto">Depending on your projects requirements, this may be a viable solution for people that don't want to setup pivot overlay, people that don't have extra USB sticks lying around, or if you are like me and didn't want to pull the ladder out to climb up and insert a USB stick.</p>
<p dir="auto">I have been running this in my garage for 3 days, there does not seem to be any ill side effects.</p>
<p dir="auto">Please let me know what you think of this idea, or any potential downfalls to this approach.</p>
<p dir="auto">Happy coding!</p>
]]></description><link>http://community.onion.io/topic/2350/use-tmp-for-application-storage-proof-of-concept</link><guid isPermaLink="true">http://community.onion.io/topic/2350/use-tmp-for-application-storage-proof-of-concept</guid><dc:creator><![CDATA[James Harding]]></dc:creator><pubDate>Fri, 08 Sep 2017 23:05:51 GMT</pubDate></item><item><title><![CDATA[node red can i use sd instead usb for extra ram&#x2F;storage?]]></title><description><![CDATA[<p dir="auto">Hi</p>
<p dir="auto">about to go through the tutorial to increase ram and storage on USB flash drive so i can run node red on omega 2+<br />
i would like to keep the usb drive free, can i use an sd card instead<br />
if so is there any advantages/disavantages, is there a certain spec sd card i need to use<br />
there is an obvious advantage as i also brought a usb blue tooth dongle, which maybe my fault but i wanted a device to run node red so i brought this omega device to do that and i also wanted blue tooth, i didn't know at time of purchase that i need to create ram/storage on usb which i may of not purchased<br />
plus keeps the unit quite tidy if i was to use sd<br />
also if yes do i follow the same tutorial i assume so</p>
<p dir="auto">appreciate your help</p>
<p dir="auto">asking before i try as i came to soo may issues updating the omega and getting it connected to wifi, i would hate to hit an issue and come to the wrong conclusion that i can't use sd card</p>
<p dir="auto">thanks<strong>bolded text</strong></p>
]]></description><link>http://community.onion.io/topic/1357/node-red-can-i-use-sd-instead-usb-for-extra-ram-storage</link><guid isPermaLink="true">http://community.onion.io/topic/1357/node-red-can-i-use-sd-instead-usb-for-extra-ram-storage</guid><dc:creator><![CDATA[Shanan Clark]]></dc:creator><pubDate>Thu, 19 Jan 2017 05:42:15 GMT</pubDate></item></channel></rss>