<?xml version="1.0" encoding="UTF-8"?>

<rss version="2.0"
 xmlns:blogChannel="http://backend.userland.com/blogChannelModule"
>

<channel>
<title><![CDATA[Dobrica Pavlinušić's random unstructured stuff: linux]]></title>
<link>https://saturn.ffzg.hr/rot13/index.cgi?action=weblog_display;category=linux</link>
<description></description>
<pubDate>Thu, 07 Apr 2016 13:16:13 -0000</pubDate>
<webMaster>root@saturn.ffzg.hr</webMaster>
<generator>Socialtext Workspace v2.19.0.2</generator>

<item>
<title><![CDATA[GK802]]></title>
<link>https://saturn.ffzg.hr/rot13/index.cgi?gk802</link>
<description><![CDATA[<div>Creator: Dobrica Pavlinušić</div><hr/><div>Tags: arm, linux</div><hr/><div class="wiki">
<p>
<a target="_blank" title="(external link)" href="https://github.com/imx6-dongle">https://github.com/imx6-dongle</a><br />
<a target="_blank" title="(external link)" href="https://github.com/imx6-dongle/wiki/wiki">https://github.com/imx6-dongle/wiki/wiki</a><br />
<a target="_blank" title="(external link)" href="https://github.com/imx6-dongle/wiki/wiki/GK802-hardware">https://github.com/imx6-dongle/wiki/wiki/GK802-hardware</a></p>
<ul>
<li>kernel 4.4 <a target="_blank" title="(external link)" href="https://github.com/dpavlin/linux-udoo">https://github.com/dpavlin/linux-udoo</a></li>
<li>u-boot <a target="_blank" title="(external link)" href="https://github.com/dpavlin/uboot-imx6dongle">https://github.com/dpavlin/uboot-imx6dongle</a></li>
</ul>
<div class="nlw_phrase"><table class="wafl_container">
  <tr>
    <td>
      <div class="wafl_box">
        
          <div class="wafl_titlebox">
            <div class="wafl_title">
              
                Contents: [Dobrica Pavlinušić's random unstructured stuff]
              
            </div>
          </div>
          <div class="wafl_items">
            
              <div class="wiki">
<ul>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#chroot">Dobrica Pavlinušić's random unstructured stuff (chroot)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] chroot} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#u_boot">Dobrica Pavlinušić's random unstructured stuff (u-boot)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] u-=boot} --></span></li>

<ul>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#compile">Dobrica Pavlinušić's random unstructured stuff (compile)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] compile} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#dut">Dobrica Pavlinušić's random unstructured stuff (dut)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] dut} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#boot">Dobrica Pavlinušić's random unstructured stuff (boot)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] boot} --></span></li>
</ul>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#kernel">Dobrica Pavlinušić's random unstructured stuff (kernel)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] kernel} --></span></li>

<ul>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#sources">Dobrica Pavlinušić's random unstructured stuff (sources)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] sources} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#compile_kernel_4_4">Dobrica Pavlinušić's random unstructured stuff (compile kernel 4.4)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] compile kernel 4.4} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#compile_3_0_x">Dobrica Pavlinušić's random unstructured stuff (compile 3.0.x)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] compile 3.0.x} --></span></li>
</ul>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#pinout">Dobrica Pavlinušić's random unstructured stuff (pinout)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] pinout} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#serial">Dobrica Pavlinušić's random unstructured stuff (Serial)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] Serial} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#xbmc">Dobrica Pavlinušić's random unstructured stuff (XBMC)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] XBMC} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#linux">Dobrica Pavlinušić's random unstructured stuff (Linux)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] Linux} --></span></li>
</ul>
</div>

            
            
          </div>
        
      </div>
    </td>
  </tr>
</table>
<!-- wiki: {toc: }
--></div><br /><br /><pre>
Bus 001 Device 045: ID 15a2:0054 Freescale Semiconductor, Inc. i.MX6Q SystemOnChip in RecoveryMode



</pre>
<br /><h1 id="chroot">chroot</h1>
<pre>
root@nuc:/tmp/n3# cp `which qemu-arm-static` usr/bin/
root@nuc:/tmp/n3# chroot .
root@nuc:/# uname -a
Linux nuc 4.4.0-1-amd64 #1 SMP Debian 4.4.4-1 (2016-03-07) armv7l GNU/Linux
root@nuc:/# file /bin/bash 
/bin/bash: ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.32, BuildID[sha1]=1a8601b954c83a01d91298d0f2f8f61ca033ebdd, stripped



</pre>
<br /><h1 id="u_boot">u-boot</h1>
<h2 id="compile">compile</h2>
<p>
<a target="_blank" title="(external link)" href="https://github.com/imx6-dongle/wiki/wiki/U-Boot-basics">https://github.com/imx6-dongle/wiki/wiki/U-Boot-basics</a></p>
<pre>
dpavlin@nuc:/nuc/imx6/uboot-imx6dongle$


sudo apt-get install make gcc-arm-none-eabi libusb-1.0

export ARCH=arm
export CROSS_COMPILE=arm-none-eabi-

make gk802_config

make
</pre>
<br /><h2 id="dut">dut</h2>
<pre>
pi@rpi2 ~/imx6/uboot-imx6dongle $ git remote -v
origin  https://github.com/imx6-dongle/uboot-imx6dongle (fetch)
origin  https://github.com/imx6-dongle/uboot-imx6dongle (push)

pi@rpi2 ~/imx6/uboot-imx6dongle $ make gk802_config
Configuring for gk802 - Board: gk802, Options: IMX_CONFIG=board/freescale/imx/ddr/mx6q_4x_mt41j128.cfg

pi@rpi2 ~/imx6/uboot-imx6dongle $ sudo apt-get install libusb-1.0

make gk802_config tools

sudo ./tools/imxboot /nuc/imx6/uboot-imx6dongle/u-boot.imx

</pre>
<br /><h2 id="boot">boot</h2>
<pre>
CPU:   Freescale i.MX6Q rev1.1 at 792 MHz                                                         
CPU:   Temperature 12 C, calibration data: 0x5834de7d                                             
Reset cause: POR                                                                                  
Board: MX6Q-gk802                                                                                 
DRAM:  1 GiB                                                                                      
MMC:   FSL_SDHC: 0, FSL_SDHC: 1                                                                   
enable_hdmi: setup HDMI monitor                                                                   
Display: HDMI (1024x768)                                                                          
In:    serial                                                                                     
Out:   serial                                                                                     
Err:   serial                                                                                     
</pre>
<br /><h1 id="kernel">kernel</h1>
<h2 id="sources">sources</h2>
<ul>
<li><a target="_blank" title="(external link)" href="https://github.com/imx6-dongle/linux-imx">https://github.com/imx6-dongle/linux-imx</a></li>
<li><a target="_blank" title="(external link)" href="https://github.com/patrykk/linux-udoo">https://github.com/patrykk/linux-udoo</a></li>
<li><a target="_blank" title="(external link)" href="https://github.com/xobs/novena-linux">https://github.com/xobs/novena-linux</a></li>
</ul>
<h2 id="compile_kernel_4_4">compile kernel 4.4</h2>
<pre>
dpavlin@klin:/klin/imx6/linux-imx$ git remote -v
boundarydevices https://github.com/boundarydevices/linux-imx6 (fetch)
boundarydevices https://github.com/boundarydevices/linux-imx6 (push)
gk802   https://github.com/imx6-dongle/linux-imx.git (fetch)
gk802   https://github.com/imx6-dongle/linux-imx.git (push)
origin  https://github.com/xobs/novena-linux (fetch)
origin  https://github.com/xobs/novena-linux (push)
patrykk https://github.com/patrykk/linux-udoo (fetch)
patrykk https://github.com/patrykk/linux-udoo (push)

dpavlin@klin:/klin/imx6/linux-imx$ git checkout -b patrykk/4.4-5.0.11.p7.3 remotes/patrykk/4.4-5.0.11.p7.3

dpavlin@klin:/klin/imx6/linux-imx$ sudo apt-get install firmware-realtek



dpavlin@klin:/klin/imx6/linux-imx$ git checkout -b imx_3.10.17_1.0.0_ga remotes/gk802/imx_3.10.17_1.0.0_ga
Checking out files: 100% (34524/34524), done.
Branch imx_3.10.17_1.0.0_ga set up to track remote branch imx_3.10.17_1.0.0_ga from gk802.
Switched to a new branch 'imx_3.10.17_1.0.0_ga'

dpavlin@klin:/klin/imx6/linux-imx$ make gk802_defconfig

export ARCH=arm
export CROSS_COMPILE=arm-none-eabi-

LOADADDR=0x10800000 make uImage modules -j 4


#mkdir /tmp/boot
#INSTALL_PATH=/tmp/boot make install

mkdir /tmp/modules
INSTALL_MOD_PATH=/tmp/modules make modules_install
</pre>
<br /><h2 id="compile_3_0_x">compile 3.0.x</h2>
<p>
<a target="_blank" title="(external link)" href="https://github.com/imx6-dongle/wiki/wiki">https://github.com/imx6-dongle/wiki/wiki</a></p>
<p>
<a target="_blank" title="(external link)" href="http://releases.linaro.org/components/toolchain/binaries/4.9-2016.02/arm-linux-gnueabi/gcc-linaro-4.9-2016.02-x86_64_arm-linux-gnueabi.tar.xz">http://releases.linaro.org/components/toolchain/binaries/4.9-2016.02/arm-linux-gnueabi/gcc-linaro-4.9-2016.02-x86_64_arm-linux-gnueabi.tar.xz</a></p>
<h1 id="pinout">pinout</h1>
<span class="nlw_phrase"><img alt="gk802-pinout.jpg" src="https://saturn.ffzg.hr/rot13/index.cgi/gk802-pinout.jpg?action=attachments_download;page_name=gk802;id=20160307233735-0-27346" /><!-- wiki: {image: gk802-=pinout.jpg} --></span><br /><br /><p>
<strong>older stuff</strong></p>
<p>
Hi-802 is clone of this one</p>
<ul>
<li><a target="_blank" title="(external link)" href="http://www.geekbuying.com/item/Unii-GK802-Fresscale-i-MX6-Quad-Dure-Cortex-A9-DDR3-1GB-RAM-8GB-ROM-TV-Box-Dongle----Black-312807.html">http://www.geekbuying.com/item/Unii-GK802-Fresscale-i-MX6-Quad-Dure-Cortex-A9-DDR3-1GB-RAM-8GB-ROM-TV-Box-Dongle----Black-312807.html</a></li>
<li><a target="_blank" title="(external link)" href="http://forum.xda-developers.com/showthread.php?t=2044045">http://forum.xda-developers.com/showthread.php?t=2044045</a></li>
<li>FULL micro-sd images <a target="_blank" title="(external link)" href="http://www.armtvtech.com/armtvtechforum/viewtopic.php?f=51&amp;t=1113">http://www.armtvtech.com/armtvtechforum/viewtopic.php?f=51&amp;t=1113</a></li>
<li>root <a target="_blank" title="(external link)" href="http://www.armtvtech.com/armtvtechforum/viewtopic.php?f=50&amp;t=226&amp;start=80#p4516">http://www.armtvtech.com/armtvtechforum/viewtopic.php?f=50&amp;t=226&amp;start=80#p4516</a></li>
<li>production, motherboard pictures <a target="_blank" title="(external link)" href="http://www.hiapad.com/?p=1994">http://www.hiapad.com/?p=1994</a></li>
</ul>
<h1 id="serial">Serial</h1>
<p>
<a target="_blank" title="(external link)" href="http://www.armtvtech.com/armtvtechforum/viewtopic.php?f=50&amp;t=226&amp;start=210#p6651">http://www.armtvtech.com/armtvtechforum/viewtopic.php?f=50&amp;t=226&amp;start=210#p6651</a><br />
<img alt="http://www.junklet.net/test/gk802_serial.jpg" src="http://www.junklet.net/test/gk802_serial.jpg" border="0" /></p>
<h1 id="xbmc">XBMC</h1>
<p>
external player <a target="_blank" title="(external link)" href="http://www.xbmcandroid.com/2012/12/10/how-to-install-xbmc-nightly-with-external-player-on-the-mk802-stick-or-other-android-tv-devices/">http://www.xbmcandroid.com/2012/12/10/how-to-install-xbmc-nightly-with-external-player-on-the-mk802-stick-or-other-android-tv-devices/</a></p>
<h1 id="linux">Linux</h1>
<p>
<a target="_blank" title="(external link)" href="http://www.junklet.net/test/gk802_boot.txt">http://www.junklet.net/test/gk802_boot.txt</a><br />
<a target="_blank" title="(external link)" href="https://wiki.linaro.org/Boards/MX6QSabreLite">https://wiki.linaro.org/Boards/MX6QSabreLite</a><br />
<a target="_blank" title="(external link)" href="http://boundarydevices.com/linaro-12-09-for-i-mx6/">http://boundarydevices.com/linaro-12-09-for-i-mx6/</a></p>
</div>
<hr/><div>Attachments: gk802-pinout.jpg</div>]]></description>
<author>Dobrica Pavlinu&#x161;i&#x107;</author>
<category>arm, linux</category>
<guid isPermaLink="true">https://saturn.ffzg.hr/rot13/index.cgi?gk802</guid>
<pubDate>Thu, 07 Apr 2016 13:16:13 -0000</pubDate>
</item>
<item>
<title><![CDATA[GNU fdisk broken]]></title>
<link>https://saturn.ffzg.hr/rot13/index.cgi?gnu_fdisk_broken</link>
<description><![CDATA[<div>Creator: Dobrica Pavlinušić</div><hr/><div>Tags: linux</div><hr/><div class="wiki">
<p>
I have been backing up whole disk image from Eee PC, and mounting it using loop file system to access partition in it. However, I have problems with GNU fdisk which reports 4Gb image as:</p>
<pre>

Disk /backup/eee/hda: 3 GB, 3997486080 bytes
255 heads, 63 sectors/track, 486 cylinders, total 7807590 sectors
Units = sectors of 1 * 512 = 512 bytes

</pre>
<br /><p>
&nbsp;Device Boot Start End Blocks Id System<br />
&nbsp;/backup/eee/hda1 63 4803435 2409718 83 Linux<br />
&nbsp;/backup/eee/hda2 4819563 7759395 1469947 83 Linux<br />
&nbsp;/backup/eee/hda3 7775523 7775460 0 c FAT32 LBA<br />
&nbsp;/backup/eee/hda4 7791588 7791525 0 ef EFI FAT</p>
<p>
For a start, disk size is wrong:</p>
<pre>

$ ls -al hda
-rwxrwxrwx 1 dpavlin root 4001292288 2008-01-20 00:59 hda

</pre>
<br /><p>
And then, even more wrong, offsets of partition seem to be wrong. When same image is examined using fdisk from <tt>util-linux</tt>, sectors are reported like this:</p>
<pre>

Disk hda: 0 MB, 0 bytes
255 heads, 63 sectors/track, 0 cylinders, total 0 sectors
Units = sectors of 1 * 512 = 512 bytes
Disk identifier: 0x332b332a

</pre>
<br /><p>
Device Boot Start End Blocks Id System<br />
&nbsp;hda1 63 4819499 2409718+ 83 Linux<br />
&nbsp;hda2 4819500 7775459 1477980 83 Linux<br />
&nbsp;hda3 7775460 7791524 8032+ c W95 FAT32 (LBA)<br />
&nbsp;hda4 7791525 7807589 8032+ ef EFI (FAT-12/16/32)</p>
<p>
And this is correct (let's ignore size for now). I can verify this by mounting second file system as:</p>
<pre>

sudo mount hda 1 -o loop,offset=`expr 4819500 \* 512`

</pre>
<br /><p>
This seems to be off-by-one error. There is <a target="_blank" title="(external link)" href="http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=442332">bug reported against Debian package<!-- wiki-renamed-hyperlink "bug reported against Debian package"<http://bugs.debian.org/cgi=-bin/bugreport.cgi?bug=442332> --></a> which seems related, but than again, in my case I'm examining same disk image.</p>
</div>
]]></description>
<author>Dobrica Pavlinu&#x161;i&#x107;</author>
<category>linux</category>
<guid isPermaLink="true">https://saturn.ffzg.hr/rot13/index.cgi?gnu_fdisk_broken</guid>
<pubDate>Sun, 20 Jan 2008 16:23:44 -0000</pubDate>
</item>
<item>
<title><![CDATA[Eee PC saga -- with partial happy end]]></title>
<link>https://saturn.ffzg.hr/rot13/index.cgi?eee_pc_saga_with_partial_happy_end</link>
<description><![CDATA[<div>Creator: Dobrica Pavlinušić</div><hr/><div>Tags: eeepc, linux</div><hr/><div class="wiki">
<p>
So, I began looking for <a target="_blank" title="(external link)" href="http://en.wikipedia.org/wiki/ASUS_Eee_PC">Eee PC<!-- wiki-renamed-hyperlink "Eee PC"<http://en.wikipedia.org/wiki/ASUS_Eee_PC> --></a> last year (well, more than two weeks ago, anyway) and my original plan was to buy one while I'm in Berlin for new year. However, since there wasn't any Eees available in Germany until second week of 2008, I was in some disspair becuause we where leaving on 6th.</p>
<p>
You can understand when I read <a target="_blank" title="(external link)" href="http://www.tablix.org/~avian/blog/archives/2007/12/30/T00_34_21/">Avian's blog post about his new Eee PC<!-- wiki-renamed-hyperlink "Avian's blog post about his new Eee PC"<http://www.tablix.org/~avian/blog/archives/2007/12/30/T00_34_21/> --></a>. He is in Slovenia, and I'm in Germany and he managed to buy it? How? Quick e-mail later, and he said that it's available in <a target="_blank" title="(external link)" href="http://www.bof.si">Building of Fun<!-- wiki-renamed-hyperlink "Building of Fun"<http://www.bof.si> --></a>, some kind of on-line web shop in Ljubljana. Since Slovenia is so much closer to Croatia than Germany (in which I was at that time) I just postponed my purchase for better times. In meantime, <a target="_blank" title="(external link)" href="http://kost.com.hr/">Kost<!-- wiki-renamed-hyperlink "Kost"<http://kost.com.hr/> --></a> got interested also, and after return to Croatia he contacted them and we bought our units.</p>
<p>
That would be happy part of story, if only one of them didn't have one constantly lit LCD pixel. Reviewing ASUS warranty, I found that I found one point:</p>
<p>
&nbsp;2. TFT LCD defect policy -- Eee PC does not provide ZBD (Zero Bright Dot) warranty for TFT LCD screens.</p>
<p>
Yes, it's in there, one you buy the unit, that is. Since we couldn't replace it today I guess I'm out of luck. I will try <a target="_blank" title="(external link)" href="http://del.icio.us/dpavlin/lcd+fix">some of software solutions<!-- wiki-renamed-hyperlink "some of software solutions"<http://del.icio.us/dpavlin/lcd+fix> --></a> over the night in hope that it will go away, but some more drastic measures like rubbing LCD screen gently are just too much to ask from me...</p>
<p>
Other than that, it's a great device: designed for wifi communication, quick browsing and occasional terminal session using <tt>ctrl+alt+t</tt>. It's not designed to be primary PC, but all features are so well integrated and working seamlessly that I will have hard time reinstalling it with Debian. Until I need <tt>dwm</tt> which I got used to so much. I can probably wait for a few more hours <tt>:-)</tt></p>
<p>
I can't say anything about battery life, other than fact that it got half-filled in two hours while I was working on it with wifi. I will do some monitoring to see how well is battery holding on this device (there isn't <tt>acpi</tt> command, but all <tt>/proc</tt> entries are there, so it shouldn't be problem).</p>
<p>
Form-factor is just great. Yeah, keyboard is small, but I can type on it (with my big fingers) without any problems. We did try to boot few distribution from USB stick (including Puppy and some Slackware derivative) without any problems. Well, there shouldn't be any: this is basically a palm-top size Intel box (at last!) with strange screen size of 800*480.</p>
<p>
After first day with my Eee PC, I'm very pleased with it. To make things a bit easier now that I'm back on ThnikPad, I edited <tt>/etc/X11/xinit/xserverrc</tt> to remove <tt>-nolisten tcp</tt>, restarted X using <tt>ctrl+alt+backspace</tt>, typed <tt>xhost mylaptop.lan</tt> on eeepc and then started <tt>x2x -west -to eeepc.lan:0</tt> on my laptop and now I can pass from laptop to eeepc sitting on left with just a mouse move. Sweet.</p>
</div>
]]></description>
<author>Dobrica Pavlinu&#x161;i&#x107;</author>
<category>eeepc, linux</category>
<guid isPermaLink="true">https://saturn.ffzg.hr/rot13/index.cgi?eee_pc_saga_with_partial_happy_end</guid>
<pubDate>Sun, 13 Jan 2008 19:41:58 -0000</pubDate>
</item>
<item>
<title><![CDATA[NSLU2]]></title>
<link>https://saturn.ffzg.hr/rot13/index.cgi?nslu2</link>
<description><![CDATA[<div>Creator: Dobrica Pavlinušić</div><hr/><div>Tags: linux, nslu2</div><hr/><div class="wiki">
<p>
In my last visit to 24C3, I also got one of 99 EUR <a target="_blank" title="(external link)" href="http://www.nslu2-linux.org/">NSLU2 Slug<!-- wiki-renamed-hyperlink "NSLU2 Slug"<http://www.nslu2=-linux.org/> --></a> devices.</p>
<div class="nlw_phrase"><table class="wafl_container">
  <tr>
    <td>
      <div class="wafl_box">
        
          <div class="wafl_titlebox">
            <div class="wafl_title">
              
                Contents: [Dobrica Pavlinušić's random unstructured stuff]
              
            </div>
          </div>
          <div class="wafl_items">
            
              <div class="wiki">
<ul>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#unslug_linksys_firmware">Dobrica Pavlinušić's random unstructured stuff (unslug Linksys firmware)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] unslug Linksys firmware} --></span></li>

<ul>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#existing_firmware_version">Dobrica Pavlinušić's random unstructured stuff (existing firmware version)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] existing firmware version} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#flash">Dobrica Pavlinušić's random unstructured stuff (flash)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] flash} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#first_login">Dobrica Pavlinušić's random unstructured stuff (first login)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] first login} --></span></li>
</ul>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#networking">Dobrica Pavlinušić's random unstructured stuff (networking)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] networking} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#links">Dobrica Pavlinušić's random unstructured stuff (links)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] links} --></span></li>
</ul>
</div>

            
            
          </div>
        
      </div>
    </td>
  </tr>
</table>
<!-- wiki: {toc: }
--></div><br /><br /><h1 id="unslug_linksys_firmware">unslug Linksys firmware</h1>
<pre>
sudo apt-get install upslug2
</pre>
<br /><h2 id="existing_firmware_version">existing firmware version</h2>
<pre>
sudo upslug2 -t 00:1A:70:95:AD:6D -v
NSLU2     00:1a:70:95:ad:6d Product ID: 1 Protocol ID: 0 Firmware Version: R23VA5 [0x23A5]
</pre>
<br /><h2 id="flash">flash</h2>
<p>
Flasing has great user interface:</p>
<pre>
sudo upslug2 -t 00:1A:70:95:AD:6D -i slugosbe-4.8-beta-nslu2.bin    
Upgrading LKG95AD6D 00:1a:70:95:ad:6d
    . original flash contents  * packet timed out
    ! being erased             - erased
    u being upgraded           U upgraded
    v being verified           V verified 

  Display:
    &lt;status&gt; &lt;address completed&gt;+&lt;bytes transmitted but not completed&gt;
  Status:
    * timeout occured          + sequence error detected

  4605bf+000000 ...UUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUu----------------------------
</pre>
<br /><p>
First flashing didn't end up quite well, since I got blinking green/amber led (even after power cycle). After that, I plugged 4Gb USB stick into port 2, re-flashed unit again, and it booted!</p>
<h2 id="first_login">first login</h2>
<p>
Default password after flasing is: <tt>opeNSLUg</tt></p>
<h1 id="networking">networking</h1>
<p>
Useful one-liner because I want to allocate default NSLU IP <tt>192.168.1.77</tt> to <tt>eth0</tt> on which it is connected while rest of my network if same class <tt>192.168.1.0/24</tt> but on wifi.</p>
<pre>
ifconfig eth0 192.168.1.76 pointopoint 192.168.1.77 netmask 255.255.255.254 up
</pre>
<br /><h1 id="links">links</h1>
<div class="nlw_phrase"><div class="fetchrss_box">
  <div class="fetchrss_titlebox">
    
 <div class="fetchrss_title">
     fetchrss: http://del.icio.us/rss/dpavlin/nslu2
 </div>

  </div>
  
<ul class="fetchrss_item">
  <li class="fetchrss_item">
    There was an error: 500 Can't connect to del.icio.us:80 (Bad hostname 'del.icio.us')

  </li>
</ul>

</div>
















<!-- wiki: {fetchrss: http://del.icio.us/rss/dpavlin/nslu2 full}
--></div><br /></div>
]]></description>
<author>Dobrica Pavlinu&#x161;i&#x107;</author>
<category>linux, nslu2</category>
<guid isPermaLink="true">https://saturn.ffzg.hr/rot13/index.cgi?nslu2</guid>
<pubDate>Thu, 10 Jan 2008 22:53:19 -0000</pubDate>
</item>
<item>
<title><![CDATA[iBook]]></title>
<link>https://saturn.ffzg.hr/rot13/index.cgi?ibook</link>
<description><![CDATA[<div>Creator: Dobrica Pavlinušić</div><hr/><div>Tags: Apple, iBook, linux, PowerPC</div><hr/><div class="wiki">
<p>
Linux installation on Apple iBook G4</p>
<p>
Based on instructions from:</p>
<ul>
<li><a target="_blank" title="(external link)" href="http://people.debian.org/~branden/ibook.html">http://people.debian.org/~branden/ibook.html</a></li>
</ul>
<p>
Download files from <a target="_blank" title="(external link)" href="http://http.us.debian.org/debian/dists/testing/main/installer-powerpc/current/images/powerpc/netboot/">http://http.us.debian.org/debian/dists/testing/main/installer-powerpc/current/images/powerpc/netboot/</a> (except mini.iso) by alt+clink on filenames and put it in root folder of first HFS+ partition.</p>
<p>
My df output follows:</p>
<pre>
mac:~ apollo$ df
Filesystem              512-blocks     Used    Avail Capacity  Mounted on
/dev/disk0s3              18612224 16109544  2316560    87%    /
devfs                          195      195        0   100%    /dev
fdesc                            2        2        0   100%    /dev
&lt;volfs&gt;                       1024     1024        0   100%    /.vol
/dev/disk0s5              79199360 46155456 33043904    58%    /Volumes/ko3moc
automount -nsl [201]             0        0        0   100%    /Network
automount -fstab [206]           0        0        0   100%    /automount/Servers
automount -static [206]          0        0        0   100%    /automount/static
</pre>
</div>
]]></description>
<author>Dobrica Pavlinu&#x161;i&#x107;</author>
<category>Apple, iBook, linux, PowerPC</category>
<guid isPermaLink="true">https://saturn.ffzg.hr/rot13/index.cgi?ibook</guid>
<pubDate>Wed, 14 Nov 2007 13:20:07 -0000</pubDate>
</item>
<item>
<title><![CDATA[Cisco VPN]]></title>
<link>https://saturn.ffzg.hr/rot13/index.cgi?cisco_vpn</link>
<description><![CDATA[<div>Creator: Dobrica Pavlinušić</div><hr/><div>Tags: Cisco, howto, linux, vpn</div><hr/><div class="wiki">
<p>
Use <a target="_blank" title="(external link)" href="http://svn.unix-ag.uni-kl.de/vpnc/">vpnc<!-- wiki-renamed-hyperlink "vpnc"<http://svn.unix=-ag.uni=-kl.de/vpnc/> --></a> instead of Cisco VPN client</p>
<div class="nlw_phrase"><table class="wafl_container">
  <tr>
    <td>
      <div class="wafl_box">
        
          <div class="wafl_titlebox">
            <div class="wafl_title">
              
                Contents: [Dobrica Pavlinušić's random unstructured stuff]
              
            </div>
          </div>
          <div class="wafl_items">
            
              <div class="wiki">
<ul>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#source">Dobrica Pavlinušić's random unstructured stuff (Source)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] Source} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#support_template">Dobrica Pavlinušić's random unstructured stuff (Support template)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] Support template} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#start_connection">Dobrica Pavlinušić's random unstructured stuff (Start connection)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] Start connection} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#fix_routes">Dobrica Pavlinušić's random unstructured stuff (Fix routes)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] Fix routes} --></span></li>
</ul>
</div>

            
            
          </div>
        
      </div>
    </td>
  </tr>
</table>
<!-- wiki: {toc: }
--></div><br /><br /><h1 id="source">Source</h1>
<pre>
svn co http://svn.unix-ag.uni-kl.de/vpnc/trunk vpnc
cd vpnc
make
sudo make install
</pre>
<br /><h1 id="support_template">Support template</h1>
<pre>
pcf2vpnc Support_template.pcf &gt; /etc/vpnc/foobar.conf
</pre>
<br /><p>
Hash password security, eh?</p>
<h1 id="start_connection">Start connection</h1>
<pre>
sudo /usr/local/sbin/vpnc --no-detach --debug 2 foobar
</pre>
<br /><h1 id="fix_routes">Fix routes</h1>
<p>
I didn't like that all my traffic was going over VPN</p>
<pre>
sudo route del default
route add default gw 192.168.1.1
route add -net 192.168.4.0 netmask 255.255.255.0 dev tun0
</pre>
</div>
]]></description>
<author>Dobrica Pavlinu&#x161;i&#x107;</author>
<category>Cisco, howto, linux, vpn</category>
<guid isPermaLink="true">https://saturn.ffzg.hr/rot13/index.cgi?cisco_vpn</guid>
<pubDate>Tue, 23 Oct 2007 18:26:02 -0000</pubDate>
</item>
<item>
<title><![CDATA[OpenMoko arrived]]></title>
<link>https://saturn.ffzg.hr/rot13/index.cgi?openmoko_arrived</link>
<description><![CDATA[<div>Creator: Dobrica Pavlinušić</div><hr/><div>Tags: gsm, linux, openmoko, ups</div><hr/><div class="wiki">
<p>
After four (4) weeks of waiting from the moment credit card has been charged, it finally arrived. It seems that shipping GSM-like devices to Croatia as person (as opposed to company) isn't something envisioned by <a target="_blank" title="(external link)" href="http://www.telekom.hr/">Hrvatske agencije za telekomunikacije<!-- wiki-renamed-hyperlink "Hrvatske agencije za telekomunikacije"<http://www.telekom.hr/> --></a> so we had to get additional papers (most of which I don't have) and in the end they settled with hardware specification of Neo1973 from OpenMoko wiki.</p>
<p>
I must say that people all over the process where helpful and nice: we had to communicate much more with them then I hoped, but in the end it worked out o.k.</p>
<p>
And now several obligatory pictures (hopefully not redundant :-)</p>
<p>
<img alt="http://blog.rot13.org/2007/08/24/openmoko-goodies.jpghttp://blog.rot13.org/2007/08/24/openmoko-size.jpghttp://blog.rot13.org/2007/08/24/openmoko-assembly_required.jpg" src="http://blog.rot13.org/2007/08/24/openmoko-goodies.jpghttp://blog.rot13.org/2007/08/24/openmoko-size.jpghttp://blog.rot13.org/2007/08/24/openmoko-assembly_required.jpg" border="0" /></p>
<p>
After that I got rootfs flashed and I now have new (semi-functional) phone <tt>:-)</tt></p>
<pre>

root@fic-gta01:~$ cat /proc/cpuinfo
Processor       : ARM920T rev 0 (v4l)
BogoMIPS        : 132.71
Features        : swp half thumb
CPU implementer : 0x41
CPU architecture: 4T
CPU variant     : 0x1
CPU part        : 0x920
CPU revision    : 0
Cache type      : write-back
Cache clean     : cp15 c7 ops
Cache lockdown  : format A
Cache format    : Harvard
I size          : 16384
I assoc         : 64
I line length   : 32
I sets          : 8
D size          : 16384
D assoc         : 64
D line length   : 32
D sets          : 8

</pre>
<br /><p>
Hardware : GTA01<br />
&nbsp;Revision : 0240<br />
&nbsp;Serial : 0000000000000000<br />
&nbsp;root@fic-gta01:~$ free<br />
&nbsp;total used free shared buffers cached<br />
&nbsp;Mem: 126644 52604 74040 0 84 39100<br />
&nbsp;-/+ buffers/cache: 13420 113224<br />
&nbsp;Swap: 0 0 0<br />
&nbsp;root@fic-gta01:~$ df<br />
&nbsp;Filesystem 1k-blocks Used Available Use% Mounted on<br />
&nbsp;/dev/mtdblock4 62576 42572 20004 68% /<br />
&nbsp;tmpfs 40 0 40 0% /mnt/.psplash<br />
&nbsp;/dev/mtdblock4 62576 42572 20004 68% /dev/.static/dev<br />
&nbsp;tmpfs 2048 64 1984 3% /dev<br />
&nbsp;tmpfs 63320 4 63316 0% /tmp<br />
&nbsp;tmpfs 63320 116 63204 0% /var/volatile<br />
&nbsp;tmpfs 63320 16 63304 0% /dev/shm<br />
&nbsp;tmpfs 63320 0 63320 0% /media/ram<br />
&nbsp;/dev/mmcblk0p1 495168 0 495168 0% /media/card</p>
</div>
]]></description>
<author>Dobrica Pavlinu&#x161;i&#x107;</author>
<category>gsm, linux, openmoko, ups</category>
<guid isPermaLink="true">https://saturn.ffzg.hr/rot13/index.cgi?openmoko_arrived</guid>
<pubDate>Fri, 24 Aug 2007 16:32:47 -0000</pubDate>
</item>
</channel>
</rss>