a:3:{s:7:"#markup";O:25:"Drupal\Core\Render\Markup":1:{s:9:"*string";s:5136:"<span property="schema:name">Test Yaffs under Linux using Virtualbox and Vagrant</span>

            <div property="schema:text" class="field field--name-body field--type-text-with-summary field--label-hidden field--item">
<p>You can use this Vagrant box to test Yaffs.</p>
<p>To run it you will need VirtualBox, which you can download from&nbsp;<a href="https://www.virtualbox.org/">https://www.virtualbox.org/</a>&nbsp;(50 to 90MB download). To run Virtualbox you will need a PC which is capable of virtualisation. Any PC made in the since about 2006 should be capable of this, apart from notepads, and even some notepads have virtualisation.&nbsp;</p>
<p>Follow the instructions to install VirtualBox on your system. It's available for Linux, Solaris, Windows and Mac.&nbsp;The Vagrant box was created using VirtualBox 4.1, but version 4.0 should be ok too if you have a problem with the 4.1 series.&nbsp;</p>
<p>Once VirtualBox is installed you will need to download and install Vagrant. You find Vagrant at&nbsp;<a href="http://vagrantup.com/">http://vagrantup.com/</a>. Download and install the latest version for your operating system from&nbsp;<a href="http://downloads.vagrantup.com/">http://downloads.vagrantup.com/</a>. Vagrant is a download of between 10 and 60MB, depending on your operating system, excluding any Vagrant boxes you choose to download.&nbsp;The install instructions can be found at&nbsp;<a href="http://vagrantup.com/v1/docs/getting-started/index.html">http://vagrantup.com/v1/docs/getting-started/index.html</a></p>
<p>Now, download the <a href="https://docs.google.com/open?id=0ByOfch_s-hgmVmlENG80bHpwMlk">Yaffs Vagrant box</a>, saving it to your hard drive. This is a large download - 3GB, so if you are on a slow network, you may wish to schedule it for a convenient time.</p>
<p>After you have Vagrant installed, to test the Yaffs box, open a command line/terminal and type:</p>
<pre style="padding-top: 8.5px; padding-right: 8.5px; padding-bottom: 8.5px; padding-left: 8.5px; font-family: Menlo, Monaco, 'Courier New', monospace; font-size: 14px; color: rgb(51, 51, 51); border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; margin-top: 0px; margin-bottom: 9px; line-height: 1.6em; background-color: rgb(254, 251, 243); border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgba(0, 0, 0, 0.199219); border-right-color: rgba(0, 0, 0, 0.199219); border-bottom-color: rgba(0, 0, 0, 0.199219); border-left-color: rgba(0, 0, 0, 0.199219); border-image: initial; white-space: pre-wrap; word-break: break-all; word-wrap: break-word; -webkit-box-shadow: rgba(0, 0, 0, 0.0976563) 0px 1px 2px; box-shadow: rgba(0, 0, 0, 0.0976563) 0px 1px 2px;"><span style="line-height: 1.6em;">$ mkdir ~/yaffsprecise
$ cd ~/yaffsprecise
$ </span>vagrant box add yaffsprecise /wherever/you/saved/package.box
$ vagrant init yaffsprecise
$ vagrant up
$ vagrant ssh</pre>
<p>This will leave you at the command line of the Yaffs box.&nbsp;</p>
<p>You can find the kernel and yaffs in the ~/kernel directory (i.e. /home/vagrant/kernel).</p>
<p>You can create a Yaffs Nand Simulated drive using the following:</p>
<pre style="padding-top: 8.5px; padding-right: 8.5px; padding-bottom: 8.5px; padding-left: 8.5px; font-family: Menlo, Monaco, 'Courier New', monospace; font-size: 14px; color: rgb(51, 51, 51); border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; margin-top: 0px; margin-bottom: 9px; line-height: 1.6em; background-color: rgb(254, 251, 243); border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgba(0, 0, 0, 0.199219); border-right-color: rgba(0, 0, 0, 0.199219); border-bottom-color: rgba(0, 0, 0, 0.199219); border-left-color: rgba(0, 0, 0, 0.199219); border-image: initial; white-space: pre-wrap; word-break: break-all; word-wrap: break-word; -webkit-box-shadow: rgba(0, 0, 0, 0.0976563) 0px 1px 2px; box-shadow: rgba(0, 0, 0, 0.0976563) 0px 1px 2px;"><span style="line-height: 1.6em;">$ sudo </span><span style="color: rgb(34, 34, 34); line-height: 20px; text-align: justify;">sudo modprobe nandsim first_id_byte=0xec second_id_byte=0xd3 third_id_byte=0x51 </span><span style="color: rgb(34, 34, 34); line-height: 20px; text-align: justify;">fourth_id_byte=0x15
</span><span style="color: rgb(34, 34, 34); line-height: 20px; text-align: justify;">$ sudo mount -t yaffs /dev/mtdblock0 /media/nand</span></pre>
<div>
In the commands above, there's no need to modprobe mtd or mtdblock because the Vagrant image has these compiled into the kernel.&nbsp;
</div>
<div>
&nbsp;
</div>
<div>
Once you have mounted your Yaffs partition, you can experiment with writing and deleting files, watching what happens.
</div>
<p>&nbsp;</p>
</div>
      ";}s:9:"#attached";a:0:{}s:6:"#cache";a:3:{s:8:"contexts";a:4:{i:0;s:28:"languages:language_interface";i:1;s:5:"theme";i:2;s:17:"url.path.is_front";i:3;s:16:"user.permissions";}s:4:"tags";a:3:{i:0;s:30:"config:filter.format.full_html";i:1;s:8:"node:489";i:2;s:9:"node_view";}s:7:"max-age";i:-1;}}