Brian Hilgert
TVWBB Member
After getting fairly sick after a cold and rainy smoke, I decided I wanted a BBQ Pit controller, without the typical price tag. So a quick search brought me to the now surely famous Bob Hruska's Design.. Cool! Looks doable. Then I can't find a wishield :-( Endless searching found one place in the UK, but with shipping over the pond, it got to pricey.
So then while on Slashdot, I find a link to the Linkmeter Thread. Brilliant! Everthying I could want... on different hardware..ish. It was still Openwrt, and Bryan Mayland published the source on his GitHub Page. So after a few boneheaded typos, some very helpful advice from the active members on the Linkmeter thread, I was able to get it built and install on my little print server.
I would imagine this procedure could work for just about anything you can get Openwrt on, provided you either:
A Have enough flash space for the whole ball of wax on the flash.
B Run your off external storage. I went with usb, but I would think sd/mmc with jffs
would work just as well. Haven't tried it
Please keep in mind I'm no expert. Just wanted to share my roll your own 2MB Linkmeter from source.
This is basically a rework of USB-rootfs on boot on Edimax BR-6104KP (ADM5120) USB-rootfs on boot on Edimax BR-6104KP (ADM5120) [WORKS][/URL] on Openwrt forums. I documented the order in which I set linkmeter packages to make.
I'm going to assume you already have a suitable build environment such as on a real Linux box or a ]virtual. Open a terminal window and...
If you have <= 4MB flash, you should be good there. Add extra packages if you must, but it's probably better to start simple, and add with opkg later. If however you have a 2meg flash like me, we have a little more work to do...
You need to change a few things from Install to Make, and I remove some all together. If I'm not mistaken, Bryan's linkmeter install takes care of removing all the firewall packages, so that saves a fair amount of effort. I removed wireless to start, figured I could add it later (I'm using homemade Power-over-Ethernet, so I don't need it out of the gate).
I tried to document the order in which to work through the dependancies. That's why I jump around in the menus.
Note: One of my USB packages is specific to ADM5120's (see below). Change for your architecture. These print servers do show up used on auction sites for ~$15us + shipping here and there. either the wifi ( HWPS12UG) or wired-only (HPS12U) work with the instructions below:
<pre class="ip-ubbcode-code-pre">
GETTING DOWN TO 2Mb
Base System > DNS MASQ (remove)
Network > Time Sync >Ntp Client (Make)
Network >
>> Hostapd-mini (remove)
>> WPA-supplicant (remove)
<<
Utilities
>> linkmeter (MAKE)
>> rrdtool (MAKE)
>> avrdude (MAKE)
<<
LuCi > Modules
>> luci-mod-admin-full... (MAKE)
>> luci-mod-admin-core (MAKE)
<
Luci > Themes
>> luci-theme-openwrt (MAKE)
>> luci-theme-base (MAKE)
<
Luci > Translations
>> luci-i18n-english (MAKE)
<
Luci > Libraries
>> libiwinfo (MAKE)
>> luci-lib-ipkg (MAKE)
>> luci-lib-web (MAKE)
>> luci-lib-sys (MAKE)
>> luci-lib-nixio (MAKE)
>> luci-lib-lmo (MAKE)
>> luci-lib-core (MAKE)
<
Luci > Server Interfaces
>> luci-sgi-cgi (MAKE)
<<
Libraries
> librrd (MAKE)
> libuci-lua (MAKE)
> librrd (MAKE)
<
Kernel Modules > Block Devices
>> kmod-broadcom-sdhc36 (remove) <<Unless you are using a broabcom...
<
> Filesystems
>> kmod-fs-ext4 (remove)
<
> Wireless Drivers
>> kmod-b43 (remove)
>> kmod-mac80211 (remove)
>> kmod-cfg80211 (remove)
<<
Base system
> wireless-tools (remove) <=Not a 100% that this has to be last, I just missed it and had to go back ;-)
Exit Saving Changes
</pre>
EDIT: Put the actual links in, sorry
So then while on Slashdot, I find a link to the Linkmeter Thread. Brilliant! Everthying I could want... on different hardware..ish. It was still Openwrt, and Bryan Mayland published the source on his GitHub Page. So after a few boneheaded typos, some very helpful advice from the active members on the Linkmeter thread, I was able to get it built and install on my little print server.
I would imagine this procedure could work for just about anything you can get Openwrt on, provided you either:
A Have enough flash space for the whole ball of wax on the flash.
B Run your off external storage. I went with usb, but I would think sd/mmc with jffs
would work just as well. Haven't tried it
Please keep in mind I'm no expert. Just wanted to share my roll your own 2MB Linkmeter from source.
This is basically a rework of USB-rootfs on boot on Edimax BR-6104KP (ADM5120) USB-rootfs on boot on Edimax BR-6104KP (ADM5120) [WORKS][/URL] on Openwrt forums. I documented the order in which I set linkmeter packages to make.
I'm going to assume you already have a suitable build environment such as on a real Linux box or a ]virtual. Open a terminal window and...
CODE:
cd ~
mkdir firmwarez
cd firmwarez
svn co svn://svn.openwrt.org/openwrt/trunk
git clone git://github.com/CapnBry/HeaterMeter.git
cd HeaterMeter/openwrt
./install.sh ~/firmwarez/trunk
cd ../../trunk
make menuconfig
Target System > Infineon/AdmTEK 5120 <<Make sure you pick your architecture
Target Profile > Edimax BR-6104KP << Make sure you pick your desired profile
Target Images > tar.gz (Install) <<For External USB Root for Micro Builds
Image Configuration >
>> DNS 8.8.8.8
>> Gateway
>> Lan IP
<<
If you have <= 4MB flash, you should be good there. Add extra packages if you must, but it's probably better to start simple, and add with opkg later. If however you have a 2meg flash like me, we have a little more work to do...
You need to change a few things from Install to Make, and I remove some all together. If I'm not mistaken, Bryan's linkmeter install takes care of removing all the firewall packages, so that saves a fair amount of effort. I removed wireless to start, figured I could add it later (I'm using homemade Power-over-Ethernet, so I don't need it out of the gate).
I tried to document the order in which to work through the dependancies. That's why I jump around in the menus.
Note: One of my USB packages is specific to ADM5120's (see below). Change for your architecture. These print servers do show up used on auction sites for ~$15us + shipping here and there. either the wifi ( HWPS12UG) or wired-only (HPS12U) work with the instructions below:
<pre class="ip-ubbcode-code-pre">
GETTING DOWN TO 2Mb
Base System > DNS MASQ (remove)
Network > Time Sync >Ntp Client (Make)
Network >
>> Hostapd-mini (remove)
>> WPA-supplicant (remove)
<<
Utilities
>> linkmeter (MAKE)
>> rrdtool (MAKE)
>> avrdude (MAKE)
<<
LuCi > Modules
>> luci-mod-admin-full... (MAKE)
>> luci-mod-admin-core (MAKE)
<
Luci > Themes
>> luci-theme-openwrt (MAKE)
>> luci-theme-base (MAKE)
<
Luci > Translations
>> luci-i18n-english (MAKE)
<
Luci > Libraries
>> libiwinfo (MAKE)
>> luci-lib-ipkg (MAKE)
>> luci-lib-web (MAKE)
>> luci-lib-sys (MAKE)
>> luci-lib-nixio (MAKE)
>> luci-lib-lmo (MAKE)
>> luci-lib-core (MAKE)
<
Luci > Server Interfaces
>> luci-sgi-cgi (MAKE)
<<
Libraries
> librrd (MAKE)
> libuci-lua (MAKE)
> librrd (MAKE)
<
Kernel Modules > Block Devices
>> kmod-broadcom-sdhc36 (remove) <<Unless you are using a broabcom...
<
> Filesystems
>> kmod-fs-ext4 (remove)
<
> Wireless Drivers
>> kmod-b43 (remove)
>> kmod-mac80211 (remove)
>> kmod-cfg80211 (remove)
<<
Base system
> wireless-tools (remove) <=Not a 100% that this has to be last, I just missed it and had to go back ;-)
Exit Saving Changes
</pre>
EDIT: Put the actual links in, sorry
![icon_wink.gif](http://tvwbb.infopop.cc/groupee_common/emoticons/icon_wink.gif)