Building LinkMeter image from source


 

Paul Nederveen

TVWBB Member
@Bryan, I hope you take a look at this.

Hi all, new here to the forum. Found the HM project and super excited to get involved and build one. I've ordered my kits, parts and whatnot. I had an a spare RPi laying around and thought I would go ahead and experiment. I put the pre-build image on but hit the problem with it not saving config with the HM board missing. I saw that this commit was posted to the repo recently so I started down making my own latest image. I wanted to do this anyway in case I wanted to play with my own code tweaks.

Bryan, the instructions in the wiki are great! I have some comments and questions:

  1. Add gawk to the list of packages required in Ubuntu please
  2. The old Attitude Adjustment fails to build because opkg has moved from svn to a git repo.

Code:
echo "Checking out files from the svn repository..."; mkdir -p /home/paul/openwrt/tmp/dl && cd /home/paul/openwrt/tmp/dl && rm -rf opkg-618 && [ \! -d opkg-618 ] && ( svn help export | grep -q trust-server-cert && svn export --non-interactive --trust-server-cert -r618 http://opkg.googlecode.com/svn/trunk/ opkg-618 || svn export --non-interactive -r618 http://opkg.googlecode.com/svn/trunk/ opkg-618 ) && echo "Packing checkout..." && 	/bin/tar cfz /home/paul/openwrt/tmp/dl/opkg-618.tar.gz opkg-618 && mv /home/paul/openwrt/tmp/dl/opkg-618.tar.gz /home/paul/openwrt/dl/ && rm -rf opkg-618; 
Checking out files from the svn repository...
svn: E160013: Unable to connect to a repository at URL 'http://opkg.googlecode.com/svn/trunk'
svn: E160013: '/svn/trunk' path not found
svn: E160013: Unable to connect to a repository at URL 'http://opkg.googlecode.com/svn/trunk'
svn: E160013: '/svn/trunk' path not found

From the opkg page on googlecode I see:
Opkg development now takes place in a Git repository hosted by The Yocto Project and can be found at http://git.yoctoproject.org/cgit/cgit.cgi/opkg/. You can clone this repository by running git clone git://git.yoctoproject.org/opkg.

I also cloned the OpenWRT bleeding just to check and sure enough it is fixed in there to use git. It is late so I will walk away before dorking my build. Maybe opkg is not even needed by LinkMeter, not sure.

Before I take on trying to figure out how to change (or find a fixed) Makefile I thought I would ask how you get around this?

Thanks for all the work on this it is an awesome project.

cheers,
Paul
 
Last edited:
remotely login to your heatermeter and change the following:

Add "exit 0" to the end of /usr/bin/linkmeter.uci-defaults

The easy way...

Code:
echo "exit 0" >> /usr/bin/linkmeter.uci-defaults
 
Thanks Steve_M. I will give that a try. I am still interested in building my own image locally so I will keep working on that project as well.

As Bryan works on a port to a more modern wrt build I want to be able to play along and/or help. Waiting on pre-build images means I'm always behind.

Cheers,
Paul
 
I've already resolved this issue. Bryan won't be merging it into the v13 branch as its effectively closed. You can see the fix if you look at the pull requests. The PR is closed, so you'll probably have to adjust the default filters.
 
Steve, are you referring to the fix for saving config or the fix for opkg? I'll go check the repo later just want to make sure I have the context correct.
 
Last edited:
Awesome! Traveling now. When I get back home I should have all of the goodies to start my build and now I know how to fix the build as well. Thanks for the response Steve. Sure we will be working together more...
 

 

Back
Top