O:23:"Drupal\node\Entity\Node":25:{s:10:"in_preview";N;s:9:"*values";a:20:{s:3:"vid";a:1:{s:9:"x-default";s:3:"516";}s:8:"langcode";a:1:{s:9:"x-default";s:2:"en";}s:18:"revision_timestamp";a:1:{s:9:"x-default";s:10:"1495625903";}s:12:"revision_uid";a:1:{s:9:"x-default";s:1:"1";}s:12:"revision_log";a:1:{s:9:"x-default";N;}s:3:"nid";a:1:{s:9:"x-default";s:3:"489";}s:4:"type";a:1:{s:9:"x-default";s:4:"page";}s:4:"uuid";a:1:{s:9:"x-default";s:36:"807695fb-4c39-4c4f-b925-f945e51b2275";}s:17:"isDefaultRevision";a:1:{s:9:"x-default";s:1:"1";}s:6:"status";a:1:{s:9:"x-default";s:1:"1";}s:5:"title";a:1:{s:9:"x-default";s:51:"Test Yaffs under Linux using Virtualbox and Vagrant";}s:3:"uid";a:1:{s:9:"x-default";s:1:"1";}s:7:"created";a:1:{s:9:"x-default";s:10:"1495625853";}s:7:"changed";a:1:{s:9:"x-default";s:10:"1495625903";}s:7:"promote";a:1:{s:9:"x-default";s:1:"0";}s:6:"sticky";a:1:{s:9:"x-default";s:1:"0";}s:29:"revision_translation_affected";a:1:{s:9:"x-default";s:1:"1";}s:16:"default_langcode";a:1:{s:9:"x-default";s:1:"1";}s:4:"body";a:1:{s:9:"x-default";a:1:{i:0;a:3:{s:5:"value";s:4900:"<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>";s:7:"summary";s:0:"";s:6:"format";s:9:"full_html";}}}s:19:"field_document_type";a:1:{s:9:"x-default";a:1:{i:0;a:1:{s:9:"target_id";s:3:"344";}}}}s:9:"*fields";a:0:{}s:19:"*fieldDefinitions";N;s:12:"*languages";N;s:14:"*langcodeKey";s:8:"langcode";s:21:"*defaultLangcodeKey";s:16:"default_langcode";s:17:"*activeLangcode";s:9:"x-default";s:18:"*defaultLangcode";s:2:"en";s:15:"*translations";a:1:{s:9:"x-default";a:1:{s:6:"status";i:1;}}s:24:"*translationInitialize";b:0;s:14:"*newRevision";b:0;s:20:"*isDefaultRevision";s:1:"1";s:13:"*entityKeys";a:4:{s:6:"bundle";s:4:"page";s:2:"id";s:3:"489";s:8:"revision";s:3:"516";s:4:"uuid";s:36:"807695fb-4c39-4c4f-b925-f945e51b2275";}s:25:"*translatableEntityKeys";a:6:{s:5:"label";a:1:{s:9:"x-default";s:51:"Test Yaffs under Linux using Virtualbox and Vagrant";}s:8:"langcode";a:1:{s:9:"x-default";s:2:"en";}s:6:"status";a:1:{s:9:"x-default";s:1:"1";}s:9:"published";a:1:{s:9:"x-default";s:1:"1";}s:3:"uid";a:1:{s:9:"x-default";s:1:"1";}s:16:"default_langcode";a:1:{s:9:"x-default";s:1:"1";}}s:12:"*validated";b:0;s:21:"*validationRequired";b:0;s:19:"*loadedRevisionId";s:3:"516";s:15:"*entityTypeId";s:4:"node";s:15:"*enforceIsNew";N;s:12:"*typedData";N;s:16:"*cacheContexts";a:0:{}s:12:"*cacheTags";a:0:{}s:14:"*cacheMaxAge";i:-1;s:14:"*_serviceIds";a:0:{}}