About
Community
News of the Temple
Community Bulletin Board
Chat
Art
Carnality
Entertainment
Science
Society
Technology
bbs | search | rss | faq | about | register
digg | del.icio.us | sphere | google

Go Back   Community > Technology > Everything *NIX

Everything *NIX This is a general forum about all forms of *nix. Post your ideas and thoughts on this wonderful OS family. Talk about your personal favorite flavor of *nix and why you think it's so much better than the others. Anything pertaining to *nix and *nix administration should be posted here.

Reply
 
Thread Tools Display Modes
  #1   Add coroner to your ignore list  
Old 2008-12-30, 18:30
coroner coroner is offline
Moderator
 
Sierra Vista. Arizona
Default Soekris Net 4511 kernel config and script

Anyone familiar with routing devices know that low-power consumption routing appliances can be useful when you have enough to warrant a low cost solution to networking in specific situations.

Here is a kernel configuration for the Soekris Net 4511 device using the 2.6.27 kernel and a script I wrote which originally would definitely only run on my machine, I would be open to suggestions in making it more dynamic, distribution independant and all that. Take a look at the notes at the top to see where I was headed with this.

The Soekris Net 4511 device uses AMD's 486 ELAN processor at 100MHz and consumes a massive 3 Watts.

This script creates almost any size image file using loop devices eventually to be written to a physical CompactFlash card or other hot-loadable storage medium which the Soekris devices can boot from.

In this particular instance the Soekris device has two ethernet ports and can take a wireless adapter. It is a fully functional routing appliance and/or firewall, proxy, pretty much anything.

As you can see I've already started the process of making it more dynamic.
Here is the configuration for kernel 2.6.27:
http://autopsy.liveprojects.info/SOEKRIS/config.soekris

Here is the script:
http://autopsy.liveprojects.info/SOEKRIS/mkfsimage.sh

Any contributions or fixes or even flames welcome.

Last edited by coroner; 2008-12-30 at 18:33. Reason: 3 Watt power consumption note
Reply With Quote
  #2   Add coroner to your ignore list  
Old 2008-12-31, 10:40
coroner coroner is offline
Moderator
 
Sierra Vista. Arizona
Default Re: Soekris Net 4511 kernel config and script

So far I've started this: http://autopsy.liveprojects.info/SOEKRIS/script.sh
to make the original script more flexible. It might be possible to make functions that would deal with distribution specific dynamics between some well known distributions..
Reply With Quote
  #3   Add coroner to your ignore list  
Old 2009-01-04, 17:29
coroner coroner is offline
Moderator
 
Sierra Vista. Arizona
Default Re: Soekris Net 4511 kernel config and script

I need some quick suggestions for fixing embedded while loops to check for multiple flags. I want to use two while loops where one is inside the other. If you look at the script link above you will see what I'm saying.

My positional parameters or special parameter "#@" specifically the positional number of parameters "$#" is exhausted, since 'shift' actually unsets the parameter. With no way to assign to this variable, I cannot simply make a function that stores and restores the original positional parameters to check for more flags.

On top of this, the only thing I could think of immediately was "duplicating" the positional parameters and using the secondary array or list in the next while loops, checking for flags.

For example, if someone specifies only --tmpdir=/tmp --new-kernel --device=/dev/sdb --logfile=/tmp/script.log my positional parameters are exhausted within the --new-kernel loop looking for --kernel-archive, now you ask.. maybe why not just remove the --kernel-archive and other kernel stuff to simply avoid it, well, some people need to use a specific kernel version with specific patch sets and don't want to retrieve a new kernel everytime they test a simple patch for an embedded device. So.. this presents somewhat of a problem because I like the embedded while looping.

Anyone got any quick suggestions?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT. The time now is 14:41.


 

 

totse.com certificate signatures
 
 
About | Advertise | Art | Carnality | Community | Contact Us | Copyright Policy | Entertainment | FAQ
Link to totse.com | Science | Search | Society | Submissions | Technology
Hot Topics
Littering Is Awsome
Eradicating Feral Species
International Hanky Movement
Toilet paper down the toilet
Ecovillage project
The world is not going to flood!
Where is safe from climate change?
Global warming
 
Sponsored Links
 
Ads presented by the
AdBrite Ad Network

 

 
A Nightmare On Elm Street
A Nightmare On Elm Street Poster
Buy at AllPosters.com