{"id":96,"date":"2009-04-06T13:32:15","date_gmt":"2009-04-06T18:32:15","guid":{"rendered":"http:\/\/www.e-consystems.com\/blog\/?p=96"},"modified":"2023-08-15T12:34:55","modified_gmt":"2023-08-15T07:04:55","slug":"mounting-the-ramdisk-in-wince-60","status":"publish","type":"post","link":"https:\/\/www.e-consystems.com\/blog\/system-on-module-som\/mounting-the-ramdisk-in-wince-60\/","title":{"rendered":"Mounting the RAMDISK in WINCE 6.0"},"content":{"rendered":"<p style=\"margin: 0in 0in 0in 0.375in; font-family: Calibri; font-size: 11pt; text-align: justify;\">In order to mount RAMDISK in your device. There are two methods for mounting the RAMDisk.<\/p>\n<p style=\"margin: 0in 0in 0in 0.375in; font-weight: bold; font-family: Calibri; font-size: 11pt; text-align: justify;\"><span style=\"text-decoration: underline;\">I. First Method:<br \/>\n<\/span><\/p>\n<p style=\"margin: 0in 0in 0in 0.375in; font-family: Calibri; font-size: 11pt; text-align: justify;\">In the below dialog box of your workspace,<\/p>\n<p style=\"margin: 0in 0in 0in 0.375in; font-family: Calibri; font-size: 11pt; text-align: justify;\">Project-&gt;Properties-&gt;configuration properties-&gt;Environment<\/p>\n<p style=\"margin: 0in 0in 0in 0.375in; font-family: Calibri; font-size: 11pt; text-align: justify;\">Add the following sysgen variable.<\/p>\n<p style=\"margin: 0in 0in 0in 0.375in; font-weight: bold; font-family: Calibri; font-size: 11pt; text-align: justify;\"><strong>SYSGEN_RAMDISK=1<\/strong><\/p>\n<p style=\"margin: 0in 0in 0in 0.375in; font-family: Calibri; font-size: 11pt; text-align: justify;\">After setting this environment variable \u201cSysgen\u201d your workspace. Now the created NK.bin will mount the 1MB of your RAM as Mounted volume.<\/p>\n<p style=\"margin: 0in 0in 0in 0.375in; font-family: Calibri; font-size: 11pt; text-align: justify;\">\n<p style=\"margin: 0in 0in 0in 0.375in; font-family: Calibri; font-size: 11pt; text-align: justify;\">\n<p style=\"margin: 0in 0in 0in 0.375in; font-family: Calibri; font-size: 11pt; text-align: justify;\">Now you can increase the size of the RAMDisk by changing the RD_SIZE definition in the ramdisk.h file and regenerating the binary.<\/p>\n<p style=\"margin: 0in 0in 0in 0.375in; font-weight: bold; font-family: Calibri; font-size: 11pt; text-align: justify;\"><span style=\"text-decoration: underline;\">II.Second Method:<\/span><\/p>\n<p style=\"margin: 0in 0in 0in 0.375in; font-family: Calibri; font-size: 11pt; text-align: justify;\">This method will mount the RAMDISK dynamically by running the LOADER application.<\/p>\n<ol style=\"margin-left: 0.375in; direction: ltr; unicode-bidi: embed; margin-top: 0in; margin-bottom: 0in; font-family: Calibri; font-size: 11pt; text-align: justify;\" type=\"1\">\n<li><span style=\"font-family: Calibri; font-size: 11pt;\">First generate <em>ramdisk.dll<\/em> and <em>ceramdrv.exe<\/em> from the source available on the PUBLIC\\COMMON\\OAK\\DRIVERS\\BLOCK\\RAMDISK folder. <\/span><\/li>\n<li><span style=\"font-family: Calibri; font-size: 11pt;\">Open the command build window from VS2005 menu (Build-&gt;Open Release Directory Build Window) .<\/span><\/li>\n<li><span style=\"font-family: Calibri; font-size: 11pt;\">Type &gt;<\/span><span style=\"font-weight: bold; font-family: Calibri; font-size: 11pt;\">SET WINCEREL=1<\/span><\/li>\n<li><span style=\"font-family: Calibri; font-size: 11pt;\">Then generate the ceramdrv.exe by giving \u201c<\/span><span style=\"font-weight: bold; font-family: Calibri; font-size: 11pt;\">sysgen -p common ceramdrv\u201d <\/span><span style=\"font-family: Calibri; font-size: 11pt;\">command.<\/span><\/li>\n<li><span style=\"font-family: Calibri; font-size: 11pt;\">Then ramdisk.dll by giving<\/span><span style=\"font-weight: bold; font-family: Calibri; font-size: 11pt;\"> \u201csysgen -p common ramdisk.dll\u201d <\/span><span style=\"font-family: Calibri; font-size: 11pt;\">command.<\/span><\/li>\n<li><span style=\"font-family: Calibri; font-size: 11pt;\">After generating the binaries, then transfer both <\/span><span style=\"font-weight: bold; font-family: Calibri; font-size: 11pt;\">ramdisk.dll<\/span><span style=\"font-family: Calibri; font-size: 11pt;\"> and<\/span><span style=\"font-weight: bold; font-family: Calibri; font-size: 11pt;\"> ceramdrv.exe<\/span><span style=\"font-family: Calibri; font-size: 11pt;\"> from release directory of your workspace to the device. <\/span><\/li>\n<li><span style=\"font-family: Calibri; font-size: 11pt;\">Then run the ceramdrv.exe with command line option as <\/span><span style=\"font-weight: bold; font-family: Calibri; font-size: 11pt;\">\u201cceramdrv.exe 3\u2033<\/span><span style=\"font-family: Calibri; font-size: 11pt;\">.This will mount your ramdisk of size 3MB.<\/span><\/li>\n<li><span style=\"font-family: Calibri; font-size: 11pt;\">For unloading the ramdisk run the command <\/span><span style=\"font-weight: bold; font-family: Calibri; font-size: 11pt;\">\u201cceramdrv.exe \/u\u201d<\/span><span style=\"font-family: Calibri; font-size: 11pt;\">.<\/span><\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>In order to mount RAMDISK in your device. There are two methods for mounting the&#8230;<\/p>\n","protected":false},"author":11,"featured_media":1257,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[213],"tags":[59,60,91,320],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.e-consystems.com\/blog\/system-on-module-som\/wp-json\/wp\/v2\/posts\/96"}],"collection":[{"href":"https:\/\/www.e-consystems.com\/blog\/system-on-module-som\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.e-consystems.com\/blog\/system-on-module-som\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.e-consystems.com\/blog\/system-on-module-som\/wp-json\/wp\/v2\/users\/11"}],"replies":[{"embeddable":true,"href":"https:\/\/www.e-consystems.com\/blog\/system-on-module-som\/wp-json\/wp\/v2\/comments?post=96"}],"version-history":[{"count":1,"href":"https:\/\/www.e-consystems.com\/blog\/system-on-module-som\/wp-json\/wp\/v2\/posts\/96\/revisions"}],"predecessor-version":[{"id":2960,"href":"https:\/\/www.e-consystems.com\/blog\/system-on-module-som\/wp-json\/wp\/v2\/posts\/96\/revisions\/2960"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.e-consystems.com\/blog\/system-on-module-som\/wp-json\/wp\/v2\/media\/1257"}],"wp:attachment":[{"href":"https:\/\/www.e-consystems.com\/blog\/system-on-module-som\/wp-json\/wp\/v2\/media?parent=96"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.e-consystems.com\/blog\/system-on-module-som\/wp-json\/wp\/v2\/categories?post=96"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.e-consystems.com\/blog\/system-on-module-som\/wp-json\/wp\/v2\/tags?post=96"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}