Go Down

Topic: How to expand the storage memory on the Yún (Read 35766 times) previous topic - next topic

ShapeShifter

I don't know, I don't think it's that far of topic, at least not for a quick answer:

What exactly is moved on to the new root partition that you create?
The entire Linux file system is moved over.

Quote
what would I need to do if I lose the SD card or need to use a larger one?
Repeat the whole process - but first do a quick edit to the fstab of the on-board file system to undo the expansion. (See the "if you encounter any error" section of THIS POST.)

iamadog3333

:'(
When I do the expand storage tutorial, opkg update procee  failed.

When I run the cmd "opkg update", connection to the server seems failed.
---
root@Arduinoyunzhang:~# opkg update
Downloading http://downloads.arduino.cc/openwrtyun/1/packages/Packages.gz.
Downloading http://downloads.arduino.cc/openwrtyun/1/packages/Packages.sig.
Signature check failed.
Remove wrong Signature file.
Collected errors:
* opkg_download: Failed to download http://downloads.arduino.cc/openwrtyun/1/packages/Packages.gz, wget returned 8.
* opkg_download: Failed to download http://downloads.arduino.cc/openwrtyun/1/packages/Packages.sig, wget returned 8.

---
For Chinese guys, if Internet blocked, use the Files: 百度云盘
http://yun.baidu.com/share/link?shareid=840462841&uk=1950281063

Thanks to Angelo9999.


I also can not acess the URL from my Chrome Browser. I am at Beijing, China.
Any surgestions? Thank you.

iamadog3333

:'(
When I do the expand storage tutorial, opkg update procee  failed.

When I run the cmd "opkg update", connection to the server seems failed.
---
root@Arduinoyunzhang:~# opkg update
Downloading http://downloads.arduino.cc/openwrtyun/1/packages/Packages.gz.
Downloading http://downloads.arduino.cc/openwrtyun/1/packages/Packages.sig.
Signature check failed.
Remove wrong Signature file.
Collected errors:
* opkg_download: Failed to download http://downloads.arduino.cc/openwrtyun/1/packages/Packages.gz, wget returned 8.
* opkg_download: Failed to download http://downloads.arduino.cc/openwrtyun/1/packages/Packages.sig, wget returned 8.
---



I also can not acess the URL from my Chrome Browser. I am at Beijing, China.
Any surgestions? Thank you.
For Chinese guys, if Internet blocked, use the Files: 百度云盘
http://yun.baidu.com/share/link?shareid=840462841&uk=1950281063

Thanks to Angelo9999.

And use this method:
nano /etc/opkg.conf
#src/gz attitude_adjustment http://downloads.arduino.cc/openwrtyun/1/packages
src/gz local file:////mnt/sda1/openwrtyun
opkg update

Thanks to sonnyyu.
http://forum.arduino.cc/index.php?topic=237178.msg2054049#msg2054049
-----------------
http://forum.arduino.cc/index.php?topic=292286.0

sharkstooth26

Hi. I have tried your tutorial and it works. It partitioned my SD card, but, how come when I compile my sketch the size of it still the same? Does the SD really expand the memory?

ShapeShifter

#64
Mar 03, 2015, 01:40 pm Last Edit: Mar 03, 2015, 01:42 pm by ShapeShifter
It expands the amount of space available on the Linux system drive so that you can install more files into the Linux system. The "memory" it is referencing is the on-board flash memory that is used by Linux as a boot drive.

It has nothing to do with the amount of RAM in the Linux processor, nor does it have anything to do with the amount of RAM, PROGMEM, or EEPROM in the Arduino processor. There is nothing that can be done to increase the amount of these other types of memory.

Carefully re-read the first paragraph of the first post in this thread, it explains the limited scope of this upgrade. It's a very hand thing to do, but it does not affect sketch programming in any way.

dave_98063

I got gcc to work three weeks ago, on three different Arduinos, but now I can't get the SD cards to work correctly.  Very annoying.

Once you get the SD cards initialized, and change the /overlay file system as needed (which is done by the memory expansion sketch), then you get to install the gcc environment using opkg.

The main things (from memory):
gcc is named (I think) yun-gcc, so you need to do this:  opkg install yun-gcc
That will not work, so it will then tell you to do a wget, followed by local image install.
You also need libc.  This should be loaded auto-magically.
Finally, you need to install bintools, if you actually want to run the program.
Oh, yeah, make would be good to have, too.





jessemonroy650

I got gcc to work three weeks ago, on three different Arduinos, but now I can't get the SD cards to work correctly.  Very annoying.
::::SNIP::::

@dave_98063,
this is appears to be off topic. Please start a new thread. It appears you have a gcc install problem. Or something directly related to the actual install.

TIA
Jesse

dave_98063

Agreed.  New thread will be called something like "Problems with SD card memory expansion"

techalex

#68
Apr 19, 2015, 05:58 pm Last Edit: Apr 20, 2015, 08:28 am by techalex
Will this help me with "the sketch is too big" error message?

Update: I guess I did not read carefully the thread. ShapeShifter explained it all. This hack is for the other side of the "bridge" where Linux lives.
So sad :) the Arduino's memory cannot be in crease.

YesPapa

Hi,

How can we know which packages to delete? And do we have to re-install them after?

Thank for helping.

My first Yun conversion went smoothly. But my second one failed (error detailed below). I surmised this was a issues with free space on / (of course that's why I was happy to see this extension scheme). I recalled I was at about 90% before running the conversion script. I removed a couple of packages to get to 83% full on / and re-ran the sketch. It ran correctly.

Bottom line is you may want to ensure you have about 80% free space on / before running this conversion.

Software list updated. Installing software (this will take a while)...
err. installing e2fsprogs mkdosfs fdisk


roadfun

This page has some info on 'opkg'. If you do a
Code: [Select]
opkg list it will show everything that's installed. Look for any optional packages you installed and remove however many you need in order to free up space using
Code: [Select]
opkg remove package_name. Just be careful not to remove the key system packages.

YesPapa

#71
May 06, 2015, 10:18 am Last Edit: May 06, 2015, 10:34 am by YesPapa
Thank for your reply.

Is it a way to have the default packages list of the board?

Thank you.

sonnyyu

#72
May 06, 2015, 11:37 am Last Edit: May 06, 2015, 11:38 am by sonnyyu
To find out default installed packages list at board:

Code: [Select]
/usr/bin/reset-to-factory-anyway
reboot
opkg list-installed


Caution "reset-to-factory-anyway" will bring board back to factory default , anything you did will be reset.




aabm01

#73
May 26, 2015, 05:54 pm Last Edit: May 26, 2015, 06:32 pm by aabm01
Hello

I have expanded my Yun with a 8GB microSD card and installed node.js and node-serialport.js, and everything was OK.

The next step was to edit the /etc/inittab, and before doing it I wanted to check whether unplugging the microSD card, I could access SSH via serial port COM with the root file system that is in the flash memory.

Once I was checked that it was Ok. I wanted to plug the microSD card again to work with my Yun expanded, so I unplugged my Yun, plug the microSD card and plug the Yun again and when I enter via SSH and typed:

root@ofcyun:/# df -h / /mnt/sda1
Filesystem                Size      Used Available Use% Mounted on
rootfs                    6.9M      1.3M      5.7M  19% /
df: /mnt/sda1: can't find mount point
root@ofcyun:/#

So it doesn't recognize the microSD card, I don't get errors , and I didn't edit the /etc/config/fstab.

Once I have plugged the microSD card I reboot both the Linux and Arduino parts.

So, Are there something that i have missed?  

Thanks

ShapeShifter

Hello
Please don't cross-post and ask the same question multiple times. It doesn't get your question answered any faster, and it only dilutes the responses by spreading any answers over multiple threads. It just wastes time and effort. I already responded in in your original thread.

Go Up