@Ick-Sung-Choi Here is a link to a collection of archives of a project I did some time ago --> Buoy project archive. Download the highest version archive to your system and un-archive it.
Change directory to one level above the 'disk' subdirectory, of course after you've inserted a SD device into the O2+. Type the following commands:
The first command, the one with the leading period, simply brings the file and all of it's variables and functions into your current shell. The second command runs a function, coincidentally of the same name as the file. The function will call a number of other functions that will set up the device for use as expanded storage as well as allocate and enable swap space.
This works well if executed from the "proper" directory installing a whole system for my project (which you don't want). If it fails it may just because I'm playing fast and loose with directories here. Let me know if it fails and I'll analyze.
This has worked for me, thanks Lazar! I'm having some weird SPI no_cs issue now that I'm trying to work through...anytime that command is included in the Python project, sleep gets an argument error. If I comment that line out then the project runs without error. I'll report back if I get it resolved.
@mawg You should see if it's possible to run GDB on your onion -- probably you'll want the Omega2 that has the most RAM, i.e. 2+. GDB offers things like breakpoints, stack-trace, read variables, capture on fault, etc.