<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://wiki.mios.com/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://wiki.mios.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Denix</id>
		<title>MiOS - User contributions [en]</title>
		<link rel="self" type="application/atom+xml" href="http://wiki.mios.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Denix"/>
		<link rel="alternate" type="text/html" href="http://wiki.mios.com/index.php/Special:Contributions/Denix"/>
		<updated>2026-06-03T03:55:39Z</updated>
		<subtitle>User contributions</subtitle>
		<generator>MediaWiki 1.19.8</generator>

	<entry>
		<id>http://wiki.mios.com/index.php/Fix_OpenWRT</id>
		<title>Fix OpenWRT</title>
		<link rel="alternate" type="text/html" href="http://wiki.mios.com/index.php/Fix_OpenWRT"/>
				<updated>2010-01-20T03:21:10Z</updated>
		
		<summary type="html">&lt;p&gt;Denix: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Introduction=&lt;br /&gt;
Vera uses a slightly outdated Kamikaze version of OpenWRT embedded Linux distribution for Broadcom platform, based on 2.4 Linux kernel.&lt;br /&gt;
&lt;br /&gt;
=Flash Partitions=&lt;br /&gt;
The default hardware Vera runs on is Asus WL-500g router with 16MB or RAM and 8MB of flash. Flash is split into several partitions:&lt;br /&gt;
&lt;br /&gt;
* 128KB bootloader&lt;br /&gt;
* ~500KB Linux kernel&lt;br /&gt;
* ~5.8MB root squashfs filesystem (r/o)&lt;br /&gt;
* 64KB config storage&lt;br /&gt;
* ~1.8MB data jffs filesystem (r/w)&lt;br /&gt;
&lt;br /&gt;
There is only 1.8MB of compressed space available for installing additional packages into the system. This data filesystem is mounted as /jffs, but is also an overlay of the rootfs in / (uses mini_fo fs, a la union fs, providing &amp;quot;copy on write&amp;quot; access)&lt;br /&gt;
&lt;br /&gt;
=Package Manager=&lt;br /&gt;
The package manager in this version of OpenWRT is ipkg (Itsy Packager). It uses configuration file /etc/ipkg.conf&lt;br /&gt;
&lt;br /&gt;
=Issues=&lt;br /&gt;
Since the release, used in Vera, there were several changes in OpenWRT, which need to be taken into account in order to get extra packages installed successfully:&lt;br /&gt;
&lt;br /&gt;
* Packages now specify in their metadata how much space they take on the filesystem, thus ipkg first checks if enough space is available. But it doesn't take mini_fo overlay into account and complains that there is 0 bytes available in the root filesystem, since it's read-only.&lt;br /&gt;
* In latest trunk snapshots (besides switching from ipkg to opkg) all the packages now specify &amp;quot;brcm-2.4&amp;quot; architecture instead of the old &amp;quot;mipsel&amp;quot;, rendering them incompatible with the release of OpenWRT used in Vera. Although, there are ways to make Vera recognize &amp;quot;brcm-2.4&amp;quot; architecture as compatible, there can be issues with some packages not working properly.&lt;br /&gt;
&lt;br /&gt;
=Fixes=&lt;br /&gt;
So, to solve the first item, we need to instruct ipkg to install packages into /jffs instead of / and add an extra &amp;quot;dest&amp;quot; line to /etc/ipkg.conf (should be the first &amp;quot;dest&amp;quot; to work as a default):&lt;br /&gt;
&lt;br /&gt;
 dest jffs /jffs&lt;br /&gt;
&lt;br /&gt;
To address the second issue above, we should use the released Kamikaze versions of the packages, instead of the trunk. The URL of the system repository is http://downloads.openwrt.org/kamikaze/8.09.2/brcm-2.4/packages and the URL of the X-Wrt repository is http://downloads.x-wrt.org/xwrt/kamikaze/8.09.2/brcm-2.4/packages&lt;br /&gt;
&lt;br /&gt;
The first line with the default system OpenWRT repository URL has to be changed like this:&lt;br /&gt;
&lt;br /&gt;
 src snapshots http://downloads.openwrt.org/kamikaze/8.09.2/brcm-2.4/packages&lt;br /&gt;
&lt;br /&gt;
The last line with the X-Wrt repository URL should look like this:&lt;br /&gt;
&lt;br /&gt;
 src X-Wrt http://downloads.x-wrt.org/xwrt/kamikaze/8.09.2/brcm-2.4/packages&lt;br /&gt;
&lt;br /&gt;
=Summary=&lt;br /&gt;
Here is the final /etc/ipkg.conf file:&lt;br /&gt;
&lt;br /&gt;
 src snapshots http://downloads.openwrt.org/kamikaze/8.09.2/brcm-2.4/packages&lt;br /&gt;
 dest jffs /jffs&lt;br /&gt;
 dest root /&lt;br /&gt;
 dest ram /tmp&lt;br /&gt;
 src X-Wrt http://downloads.x-wrt.org/xwrt/kamikaze/8.09.2/brcm-2.4/packages&lt;br /&gt;
&lt;br /&gt;
=Testing=&lt;br /&gt;
First, we need to download the metadata with the list of installable packages:&lt;br /&gt;
&lt;br /&gt;
 # ipkg update&lt;br /&gt;
 Downloading http://downloads.openwrt.org/kamikaze/8.09.2/brcm-2.4/packages/Packages&lt;br /&gt;
 Updated list of available packages in /usr/lib/ipkg/lists/snapshots&lt;br /&gt;
 Downloading http://downloads.x-wrt.org/xwrt/kamikaze/8.09.2/brcm-2.4/packages/Packages&lt;br /&gt;
 Updated list of available packages in /usr/lib/ipkg/lists/X-Wrt&lt;br /&gt;
 Done.&lt;br /&gt;
&lt;br /&gt;
Then we can get the list of available packages with &amp;quot;ipkg list&amp;quot; and install extra packages with &amp;quot;ipkg install &amp;lt;pkgname&amp;gt;&amp;quot;:&lt;br /&gt;
&lt;br /&gt;
 # ipkg install etherwake&lt;br /&gt;
 Installing etherwake (1.09-1) to jffs...&lt;br /&gt;
 Downloading http://downloads.openwrt.org/kamikaze/8.09.2/brcm-2.4/packages/etherwake_1.09-1_mipsel.ipk&lt;br /&gt;
 Configuring etherwake&lt;br /&gt;
 Done.&lt;br /&gt;
 &lt;br /&gt;
 # etherwake&lt;br /&gt;
 Specify the Ethernet address as 00:11:22:33:44:55.&lt;/div&gt;</summary>
		<author><name>Denix</name></author>	</entry>

	<entry>
		<id>http://wiki.mios.com/index.php/Fix_OpenWRT</id>
		<title>Fix OpenWRT</title>
		<link rel="alternate" type="text/html" href="http://wiki.mios.com/index.php/Fix_OpenWRT"/>
				<updated>2010-01-20T03:13:30Z</updated>
		
		<summary type="html">&lt;p&gt;Denix: New page: =Introduction= Vera uses a slightly outdated Kamikaze version of OpenWRT embedded Linux distribution for Broadcom platform, based on 2.4 Linux kernel.  =Flash Partitions= The default hardw...&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Introduction=&lt;br /&gt;
Vera uses a slightly outdated Kamikaze version of OpenWRT embedded Linux distribution for Broadcom platform, based on 2.4 Linux kernel.&lt;br /&gt;
&lt;br /&gt;
=Flash Partitions=&lt;br /&gt;
The default hardware Vera runs on is Asus WL-500g router with 16MB or RAM and 8MB of flash. Flash is split into several partitions:&lt;br /&gt;
&lt;br /&gt;
* 128KB bootloader&lt;br /&gt;
* ~500KB Linux kernel&lt;br /&gt;
* ~5.8MB root squashfs filesystem (r/o)&lt;br /&gt;
* 64KB config storage&lt;br /&gt;
* ~1.8MB data jffs filesystem (r/w)&lt;br /&gt;
&lt;br /&gt;
There is only 1.8MB of compressed space available for installing additional packages into the system. This data filesystem is mounted as /jffs, but is also an overlay of the rootfs in / (uses mini_fo fs, a la union fs, providing &amp;quot;copy on write&amp;quot; access)&lt;br /&gt;
&lt;br /&gt;
=Package Manager=&lt;br /&gt;
The package manager in this version of OpenWRT is ipkg (Itsy Packager). It uses configuration file /etc/ipkg.conf&lt;br /&gt;
&lt;br /&gt;
=Historical changes=&lt;br /&gt;
Since the release, used in Vera, there were several changes in OpenWRT, which need to be taken into account in order to get extra packages installed successfully:&lt;br /&gt;
&lt;br /&gt;
* Packages now specify in their metadata how much space they take on the filesystem, thus ipkg first checks if enough space is available. But it doesn't take mini_fo overlay into account and complains that there is 0 bytes available in the root filesystem, since it's read-only.&lt;br /&gt;
* In latest trunk snapshots (besides switching from ipkg to opkg) all the packages now specify &amp;quot;brcm-2.4&amp;quot; architecture instead of the old &amp;quot;mipsel&amp;quot;, rendering them incompatible with the release of OpenWRT used in Vera. Although, there are ways to make Vera recognize &amp;quot;brcm-2.4&amp;quot; architecture as compatible, there can be issues with some packages not working properly.&lt;br /&gt;
&lt;br /&gt;
=Fixes=&lt;br /&gt;
So, to solve the first item, we need to instruct ipkg to install packages into /jffs instead of / and add an extra &amp;quot;dest&amp;quot; line to /etc/ipkg.conf (should be the first &amp;quot;dest&amp;quot; to work as a default):&lt;br /&gt;
&lt;br /&gt;
 dest jffs /jffs&lt;br /&gt;
&lt;br /&gt;
To address the second issue above, we should use the released Kamikaze versions of the packages, instead of the trunk. The URL of the system repository is http://downloads.openwrt.org/kamikaze/8.09.2/brcm-2.4/packages and the URL of the X-Wrt repository is http://downloads.x-wrt.org/xwrt/kamikaze/8.09.2/brcm-2.4/packages&lt;br /&gt;
&lt;br /&gt;
The first line with the default system OpenWRT repository URL has to be changed like this:&lt;br /&gt;
&lt;br /&gt;
 src snapshots http://downloads.openwrt.org/kamikaze/8.09.2/brcm-2.4/packages&lt;br /&gt;
&lt;br /&gt;
The last line with the X-Wrt repository URL should look like this:&lt;br /&gt;
&lt;br /&gt;
 src X-Wrt http://downloads.x-wrt.org/xwrt/kamikaze/8.09.2/brcm-2.4/packages&lt;br /&gt;
&lt;br /&gt;
=Summary=&lt;br /&gt;
Here is the final /etc/ipkg.conf file:&lt;br /&gt;
&lt;br /&gt;
 src snapshots http://downloads.openwrt.org/kamikaze/8.09.2/brcm-2.4/packages&lt;br /&gt;
 dest jffs /jffs&lt;br /&gt;
 dest root /&lt;br /&gt;
 dest ram /tmp&lt;br /&gt;
 src X-Wrt http://downloads.x-wrt.org/xwrt/kamikaze/8.09.2/brcm-2.4/packages&lt;br /&gt;
&lt;br /&gt;
=Testing=&lt;br /&gt;
First, we need to download the metadata with the list of installable packages:&lt;br /&gt;
&lt;br /&gt;
 # ipkg update&lt;br /&gt;
 Downloading http://downloads.openwrt.org/kamikaze/8.09.2/brcm-2.4/packages/Packages&lt;br /&gt;
 Updated list of available packages in /usr/lib/ipkg/lists/snapshots&lt;br /&gt;
 Downloading http://downloads.x-wrt.org/xwrt/kamikaze/8.09.2/brcm-2.4/packages/Packages&lt;br /&gt;
 Updated list of available packages in /usr/lib/ipkg/lists/X-Wrt&lt;br /&gt;
 Done.&lt;br /&gt;
&lt;br /&gt;
Then we can get the list of available packages with &amp;quot;ipkg list&amp;quot; and install extra packages with &amp;quot;ipkg install &amp;lt;pkgname&amp;gt;&amp;quot;:&lt;br /&gt;
&lt;br /&gt;
 # ipkg install etherwake&lt;br /&gt;
 Installing etherwake (1.09-1) to jffs...&lt;br /&gt;
 Downloading http://downloads.openwrt.org/kamikaze/8.09.2/brcm-2.4/packages/etherwake_1.09-1_mipsel.ipk&lt;br /&gt;
 Configuring etherwake&lt;br /&gt;
 Done.&lt;br /&gt;
 &lt;br /&gt;
 # etherwake&lt;br /&gt;
 Specify the Ethernet address as 00:11:22:33:44:55.&lt;/div&gt;</summary>
		<author><name>Denix</name></author>	</entry>

	<entry>
		<id>http://wiki.mios.com/index.php/Sensor_State</id>
		<title>Sensor State</title>
		<link rel="alternate" type="text/html" href="http://wiki.mios.com/index.php/Sensor_State"/>
				<updated>2010-01-19T22:15:32Z</updated>
		
		<summary type="html">&lt;p&gt;Denix: New page: Image:sensor-state.png  The green/red dot next to Arm/Bypass buttons IS NOT the indication whether the sensor is armed or not! It shows the current tripped state of the sensor - Green=...&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Image:sensor-state.png]]&lt;br /&gt;
&lt;br /&gt;
The green/red dot next to Arm/Bypass buttons IS NOT the indication whether the sensor is armed or not! It shows the current tripped state of the sensor - Green=Idle, Red=Tripped.&lt;br /&gt;
&lt;br /&gt;
The only indication whether the sensor is armed or not is to check which button (Arm or Bypass) is highlighted in blue.&lt;br /&gt;
&lt;br /&gt;
Pretty much all sensors go from green to red (i.e. tripped) almost instantly - motion detected, door/window open, water leak detected etc.&lt;br /&gt;
&lt;br /&gt;
But going back from red to green (i.e. &amp;quot;untripped&amp;quot;, reset or go back to idle) is another story. Some sensors need to be manually reset (water leak sensors, like FortrezZ), some get untripped instantly (door/window closed) or some take time to idle-out (motion sensor when it does not detect motion for some period of time, like 20 minutes by default in HSM100).&lt;br /&gt;
&lt;br /&gt;
Note: The default idle value of 20 minutes in HSM100 can be changed, see [[ExpressControls3in1]])&lt;/div&gt;</summary>
		<author><name>Denix</name></author>	</entry>

	<entry>
		<id>http://wiki.mios.com/index.php/File:Sensor-state.png</id>
		<title>File:Sensor-state.png</title>
		<link rel="alternate" type="text/html" href="http://wiki.mios.com/index.php/File:Sensor-state.png"/>
				<updated>2010-01-19T22:11:46Z</updated>
		
		<summary type="html">&lt;p&gt;Denix: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Denix</name></author>	</entry>

	</feed>