{"id":942,"date":"2010-06-23T23:21:58","date_gmt":"2010-06-24T07:21:58","guid":{"rendered":"http:\/\/digitalnigel.com\/wordpress\/?p=942"},"modified":"2012-01-17T14:37:04","modified_gmt":"2012-01-17T22:37:04","slug":"soekris-part-2","status":"publish","type":"post","link":"https:\/\/digitalnigel.com\/wordpress\/?p=942","title":{"rendered":"Soekris &#8211; Part 2"},"content":{"rendered":"<p>No, unfortunately, I&#8217;m not ready to give you guys a tutorial yet. Not because I&#8217;m not done setting up the box, more because I just haven&#8217;t compiled all the files you need to deal with beforehand to get it loading.<\/p>\n<p>I have played with the functionality of the box though. It seems to be working pretty well on Debian 5. Perhaps in some instances a little slower, but that&#8217;s a trade off I&#8217;ve made. I chose to install a debian distro because it makes my life a lot easier. I&#8217;ve traded making my life easier for a tad bit more &#8220;bloat.&#8221; Most of the time, this isn&#8217;t really noticeable. I mainly notice it when doing things like &#8220;apt-get&#8221; or &#8220;make.&#8221; While apt is more specific to debian systems (and derivatives) make is more universal. Mostly it&#8217;s just that processor speed is rather low, and debian isn&#8217;t the absolute lightest linux distro out there.<\/p>\n<p>Something I&#8217;ve noticed thru playing with the box is that the clock is horrible at keeping time. Perhaps it&#8217;s just because my box is old, but it probably loses a little more than a second per minute. I had originally thought to solve this with ntpd. This would be a nice solution because it will constantly adjust the clock to keep it as accurate as possible. However, this used about 2M of ram constantly. When you&#8217;ve only got 64M to work with, that&#8217;s a little much. I settled for a cron job that runs once every fifteen minutes to do a one time ntp time sync. This keeps my clock within a few seconds of accurate time, and saves me some ram.<\/p>\n<p>I&#8217;ve also installed lighttpd with php support. I plan on using this box to control some stuff via the GPIO lines, so I&#8217;d planned on having a little web interface to do that via. Requires a web server and a scripting language I know. Again, I probably sacrificed a little with php on the performance front, for some ease and familiarity. It doesn&#8217;t seem to take too much toll on things, and lighttpd is much lighter than apache.<\/p>\n<p>In response to my mention of the GPIO lines, the soekris boxes have broken out the extra GPIO (General Purpose In\/Out) lines to a header. This means that I can connect small\/low load devices to the processor, and have linux control them. I&#8217;ve been searching &#8217;round the web a bit off and on for the past few days to see how I can gain control of these lines. There were some solutions, but they required building a new kernel with certain support in it, as well as compiling a driver. I found that this was the rather complicated way to do this, and found a simple C program that would take care of this for me, and provide a simple &#8220;userland&#8221; interface. All I have to do is type<\/p>\n<blockquote><p>.\/gpio &lt;pin_number&gt; &lt;on\/off&gt;<\/p><\/blockquote>\n<p>Anyway, I&#8217;ll cover all of this in Part 3 when I actually give the tutorial, and the information on setting all of this up. Look forward to it in the near future.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>No, unfortunately, I&#8217;m not ready to give you guys a tutorial yet. Not because I&#8217;m not done setting up the box, more because I just haven&#8217;t compiled all the files you need to deal with beforehand to get it loading. &hellip; <a href=\"https:\/\/digitalnigel.com\/wordpress\/?p=942\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-942","post","type-post","status-publish","format-standard","hentry","category-technology"],"_links":{"self":[{"href":"https:\/\/digitalnigel.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/942","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/digitalnigel.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/digitalnigel.com\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/digitalnigel.com\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/digitalnigel.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=942"}],"version-history":[{"count":1,"href":"https:\/\/digitalnigel.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/942\/revisions"}],"predecessor-version":[{"id":943,"href":"https:\/\/digitalnigel.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/942\/revisions\/943"}],"wp:attachment":[{"href":"https:\/\/digitalnigel.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=942"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/digitalnigel.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=942"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/digitalnigel.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=942"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}