<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>OpenWrt Generic &#8211; Farlock.org</title>
	<atom:link href="https://www.farlock.org/category/openwrt-generic/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.farlock.org</link>
	<description>What you want to hack today?</description>
	<lastBuildDate>Fri, 21 Oct 2016 09:59:49 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.9.3</generator>
	<item>
		<title>Backup and restore Mikrotik MetaRouter Openwrt Image</title>
		<link>https://www.farlock.org/openwrt-generic/backup-and-restore-mikrotik-metarouter-openwrt-image/</link>
					<comments>https://www.farlock.org/openwrt-generic/backup-and-restore-mikrotik-metarouter-openwrt-image/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Fri, 21 Oct 2016 09:59:05 +0000</pubDate>
				<category><![CDATA[Mikrotik]]></category>
		<category><![CDATA[OpenWrt Generic]]></category>
		<guid isPermaLink="false">http://www.farlock.org/?p=282</guid>

					<description><![CDATA[On original metarouter: cd / echo &#8220; ./tmp/* ./proc/* ./sys/*&#8221; &#62; /tmp/exclude.list tar zcvf /tmp/newimage.tgz -X /tmp/exclude.list . On original Mikrotik: /metarouter export Start the new metarouter with the SAME original image when it is booted, login to it and copy the /tmp/newimage.tgz from the original one: scp original_metarouter:/tmp/newimage.tgz /tmp and restore it: cd / [...]]]></description>
										<content:encoded><![CDATA[<div>On original metarouter:</div>
<blockquote>
<div>cd /</div>
<div>echo &#8220;</div>
<div>./tmp/*</div>
<div>./proc/*</div>
<div>./sys/*&#8221; &gt; /tmp/exclude.list</div>
<div>tar zcvf /tmp/newimage.tgz -X /tmp/exclude.list  .</div>
</blockquote>
<div></div>
<div>On original Mikrotik:</div>
<blockquote>
<div>/metarouter export</div>
</blockquote>
<div></div>
<div>Start the new metarouter with the SAME original image</div>
<div>when it is booted, login to it and copy the /tmp/newimage.tgz from the original one:</div>
<blockquote>
<div>scp original_metarouter:/tmp/newimage.tgz /tmp</div>
</blockquote>
<div></div>
<div>and restore it:</div>
<blockquote>
<div>cd /</div>
<div>tar xzvf /tmp/newimage.tgz</div>
</blockquote>
<div></div>
<div>On mikrotik host import the virtual interface configuration previously exported.</div>
<div></div>
<div>Reboot the metarouter</div>
]]></content:encoded>
					
					<wfw:commentRss>https://www.farlock.org/openwrt-generic/backup-and-restore-mikrotik-metarouter-openwrt-image/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>openWrt non-standard module compiling</title>
		<link>https://www.farlock.org/nslu2/openwrt-non-standard-module-compiling/</link>
					<comments>https://www.farlock.org/nslu2/openwrt-non-standard-module-compiling/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Wed, 13 Oct 2010 09:10:52 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Nslu2 Hack]]></category>
		<category><![CDATA[OpenWrt Generic]]></category>
		<guid isPermaLink="false">http://www.farlock.org/?p=157</guid>

					<description><![CDATA[<p>Now I want to use an easycap DC60 device also on my NSLU2 with openwrt, so similar for sheevaplug i&#8217;ve to compile the module.</p> <p>All the operations described here are executed on a standard i686 linux pc (debian).</p> <p>Download openwrt 8.09.2 and default config file:</p> <p>cd /usr/src/nslu2/test svn checkout svn://svn.openwrt.org/openwrt/branches/8.09 8.09.2 wget http://downloads.openwrt.org/kamikaze/8.09.2/ixp4xx/ixp4xx.config</p> <p>go into [...]]]></description>
										<content:encoded><![CDATA[<p>Now I want to use an easycap DC60 device also on my NSLU2 with openwrt, so similar for sheevaplug i&#8217;ve to compile the module.</p>
<p>All the operations described here are executed on a standard i686 linux pc (debian).</p>
<p>Download openwrt 8.09.2 and default config file:</p>
<blockquote><p>cd /usr/src/nslu2/test<br />
svn checkout svn://svn.openwrt.org/openwrt/branches/8.09 8.09.2<br />
wget http://downloads.openwrt.org/kamikaze/8.09.2/ixp4xx/ixp4xx.config</p></blockquote>
<p>go into 8.09.2 directory and</p>
<blockquote><p>make menuconfig</p></blockquote>
<p>now choose &#8220;Load an alternate config file and select ixp4xx.config&#8221; just downloaded, then</p>
<blockquote><p>make V=99</p></blockquote>
<p>When all done we have all things necessary.</p>
<p>In this example we try to compile easycap driver, but you can adapt it to any external modules:</p>
<blockquote><p>cd /usr/src<br />
wget &#8220;http://downloads.sourceforge.net/project/easycapdc60/easycap_dc60.0.7.1.tar.gz?use_mirror=netcologne&#8221;<br />
cd easycap_dc60.0.7.1<br />
make clean</p></blockquote>
<p>Edit src/MakeFile (<em>vi src/Makefile</em>) and replace KERNELDIR line with this:</p>
<blockquote><p>KERNELDIR ?= /usr/src/nslu2/test/8.09.2/build_dir/toolchain-armeb_gcc4.1.2/linux-2.6.26.8/</p></blockquote>
<p>we need to make a symbolic link to resolve an issue:</p>
<blockquote><p>ln -s /usr/src/nslu2/test/8.09.2/build_dir/toolchain-armeb_gcc4.1.2/linux-2.6.26.8/include/config/video/usbvideo.h /usr/src/nslu2/test/8.09.2/build_dir/linux-ixp4xx_generic/linux-2.6.26.8/include/config/video</p></blockquote>
<p>and now compile it:</p>
<blockquote><p>make clean<br />
make ARCH=arm CROSS_COMPILE=/usr/src/nslu2/test/8.09.2/build_dir/armeb/OpenWrt-SDK-ixp4xx-for-Linux-i686/staging_dir/toolchain-armeb_gcc4.1.2/bin/armeb-linux-uclibc-</p></blockquote>
<p>All done! <img src="https://s.w.org/images/core/emoji/13.1.0/72x72/1f609.png" alt="😉" class="wp-smiley" style="height: 1em; max-height: 1em;" /></p>
<p>Login to your nslu and copy the new kernel mod in <em>/lib/modules/`uname -r`/kernel/drivers/media/video</em></p>
<blockquote><p>scp 192.168.1.220:/usr/src/easycap_dc60.0.7.1/src/easycap.ko /lib/modules/`uname -r`/kernel/drivers/media/video<br />
depmod -a</p></blockquote>
<p>try to insmod it and enjoy <img src="https://s.w.org/images/core/emoji/13.1.0/72x72/1f609.png" alt="😉" class="wp-smiley" style="height: 1em; max-height: 1em;" /></p>
<p>With new version of easycap 0.8.3 there is some difference, when you have unzipped easycap source edit install.sh and just before the line:</p>
<blockquote><p>make 1&gt;&gt;${WORKDIR}/make.out 2&gt;&gt;${WORKDIR}/make.err</p></blockquote>
<p>insert an <em>exit 0</em>, so the script will terminate there. Now we can launch the script with KERNELDIR as parameter:</p>
<blockquote><p>./install.sh /usr/src/nslu2/test/8.09.2/build_dir/toolchain-armeb_gcc4.1.2/linux-2.6.26.8/</p></blockquote>
<p>now some needed steps:</p>
<blockquote><p>cd /usr/src/nslu2/test/8.09.2/build_dir/toolchain-armeb_gcc4.1.2/linux-2.6.26.8</p></blockquote>
<p>check in .config that MODVERSIONS is disabled and BIG_ENDIAN is enabled!</p>
<blockquote><p># make ARCH=arm CROSS_COMPILE=/usr/src/nslu2/test/8.09.2/build_dir/armeb/OpenWrt-SDK-ixp4xx-for-Linux-i686/staging_dir/toolchain-armeb_gcc4.1.2/bin/armeb-linux-uclibc- prepare<br />
# make ARCH=arm CROSS_COMPILE=/usr/src/nslu2/test/8.09.2/build_dir/armeb/OpenWrt-SDK-ixp4xx-for-Linux-i686/staging_dir/toolchain-armeb_gcc4.1.2/bin/armeb-linux-uclibc- scripts/mod/</p></blockquote>
<p>and then make it:</p>
<blockquote><p>cd /usr/src/easycap_dc60.0.8.3<br />
make ARCH=arm CROSS_COMPILE=/usr/src/nslu2/test/8.09.2/build_dir/armeb/OpenWrt-SDK-ixp4xx-for-Linux-i686/staging_dir/toolchain-armeb_gcc4.1.2/bin/armeb-linux-uclibc-</p></blockquote>
<p>now in src/easycap.ko we have the module for our NSLU2!</p>
<p>Attached here you can find the already compiled module for openwrt kamikaze 8.09.2</p>
<p><a href="/wp-content/uploads/2011/01/easycap.ko">easycap.ko</a></p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.farlock.org/nslu2/openwrt-non-standard-module-compiling/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>em28xx on Nslu2 &#8211; OpenWrt</title>
		<link>https://www.farlock.org/openwrt-generic/customisation-of-openwrt/</link>
					<comments>https://www.farlock.org/openwrt-generic/customisation-of-openwrt/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Mon, 22 Feb 2010 13:59:16 +0000</pubDate>
				<category><![CDATA[OpenWrt Generic]]></category>
		<guid isPermaLink="false">http://www.farlock.org/?p=122</guid>

					<description><![CDATA[<p>svn checkout svn://svn.openwrt.org/openwrt/trunk kamikaze</p> <p>or svn checkout svn://svn.openwrt.org/openwrt/branches/8.09 8.09.2 cd kamikaze</p> <p>./scripts/feeds update</p> <p>edit ./package/kernel/modules/video.mk adding these lines: &#8212;&#8212;&#8212;&#8212;- define KernelPackage/video-em28xx SUBMENU:=$(VIDEO_MENU) TITLE:=Em28xx support DEPENDS:=@LINUX_2_6 @USB_SUPPORT +kmod-usb-core +kmod-video-core KCONFIG:=CONFIG_VIDEO_EM28XX FILES:=$(LINUX_DIR)/drivers/media/video/em28xx/em28xx.$(LINUX_KMOD_SUFFIX) AUTOLOAD:=$(call AutoLoad,70,em28xx) endef</p> <p>define KernelPackage/video-em28xx/description Kernel modules for supporting Empia video capture devices. endef</p> <p>$(eval $(call KernelPackage,video-em28xx)) &#8212;&#8212;&#8212;&#8212;&#8212;</p> <p>make menuconfig (choose option needed by us)</p> [...]]]></description>
										<content:encoded><![CDATA[<p>svn checkout svn://svn.openwrt.org/openwrt/trunk kamikaze</p>
<p>or svn checkout svn://svn.openwrt.org/openwrt/branches/8.09 8.09.2<br />
cd kamikaze</p>
<p>./scripts/feeds update</p>
<p>edit ./package/kernel/modules/video.mk adding these lines:<br />
&#8212;&#8212;&#8212;&#8212;-<br />
define KernelPackage/video-em28xx<br />
SUBMENU:=$(VIDEO_MENU)<br />
TITLE:=Em28xx support<br />
DEPENDS:=@LINUX_2_6 @USB_SUPPORT +kmod-usb-core +kmod-video-core<br />
KCONFIG:=CONFIG_VIDEO_EM28XX<br />
FILES:=$(LINUX_DIR)/drivers/media/video/em28xx/em28xx.$(LINUX_KMOD_SUFFIX)<br />
AUTOLOAD:=$(call AutoLoad,70,em28xx)<br />
endef</p>
<p>define KernelPackage/video-em28xx/description<br />
Kernel modules for supporting Empia video capture devices.<br />
endef</p>
<p>$(eval $(call KernelPackage,video-em28xx))<br />
&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>make menuconfig (choose option needed by us)</p>
<p>make</p>
<p>then you have to load on nslu2 the new kernel and this modules:</p>
<p>tveeprom.ko<br />
videobuf-core.ko<br />
videobuf-vmalloc.ko<br />
input-core.ko<br />
ir-common.ko</p>
<p>and em28xx load correctly!</p>
<p>Now i&#8217;m working on build a package for this&#8230;</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.farlock.org/openwrt-generic/customisation-of-openwrt/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
