<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
<br><br>&gt; From: timo.lindfors@iki.fi<br>&gt; To: stix213@hotmail.com<br>&gt; CC: community@lists.openmoko.org; timo.lindfors@iki.fi<br>&gt; Subject: Re: [2008.12] Anyone get iptables working?<br>&gt; Date: Thu, 8 Jan 2009 23:23:00 +0200<br>&gt; <br>&gt; Nick Van Fossen &lt;stix213@hotmail.com&gt; writes:<br>&gt; &gt; Program received signal SIGILL, Illegal instruction.<br>&gt; &gt; 0x00009834 in ?? ()<br>&gt; &gt; (gdb) backtrace<br>&gt; &gt; #0  0x00009834 in ?? ()<br>&gt; &gt; Cannot access memory at address 0x2<br>&gt; &gt; (gdb) x/5i $pc<br>&gt; &gt; 0x9834 &lt;__strtoull_internal+1088&gt;:        teqeq        pc, r5, asr r6<br>&gt; <br>&gt; Very odd. teq should be perfectly legal instructions that is available<br>&gt; on all architecture versions and does not involve exceptions.<br>&gt; <br>&gt; &gt; 0x9838 &lt;__strtoull_internal+1092&gt;:        cfstrsne        mvf4, [r0], #-316<br>&gt; <br>&gt; What is this? Google finds this in a list about "Cirrus Maverick<br>&gt; co-processor support for GCC".<br>&gt; <br>&gt;    "the following are patches for gas, ld, opcodes, and bfd-- for the<br>&gt;     Cirrus DSP arm copprocessor (arm9e)."<br>&gt; <br>&gt;    "/* Cirrus DSP instructions.  */"<br>&gt; <br>&gt;     "+   {"cfstrs",        0x0c000400,     NULL,   NULL,   ARM_EXT_MAVERIK, do_c_ldst_1},"<br>&gt; <br>&gt; -- http://sources.redhat.com/ml/binutils/2001-10/msg00134.html<br>&gt; <br>&gt; Where did you get these? :-) Please run<br>&gt; <br>&gt; 1) gdb --args iptables -v -A POSTROUTING -t nat -j MASQUERADE -s 192.168.0.0/24<br>&gt; 2) run<br>&gt; 3) shell cat /proc/`pidof iptables`/maps<br>&gt; <br>&gt; so that we see what library comes with this __strtoull_internal<br>&gt; implementation.<br><br>Like I said, I got iptables and iptables-utils from angstrom by adding the angstrom repo using instructions at<br>http://wiki.openmoko.org/wiki/Repositories by creating the /etc/opkg/angstrom-feed.conf file per the 2008.8 instructions<br>near the top.&nbsp; Then I used commands "opkg update" followed by "opkg install iptables iptables-utils".&nbsp; This also <br>updated the libgcc1 package, since iptables required a newer version than the openmoko repo contained.&nbsp; (this includes the libgcc_s.so.1 file mentioned below)<br><br>-Nick<br><br>root@om-gta02:/etc/opkg# gdb --args iptables -v -A POSTROUTING -t nat -j MASQUERADE -s 192.168.0.0/24<br>GNU gdb 6.8<br>Copyright (C) 2008 Free Software Foundation, Inc.<br>License GPLv3+: GNU GPL version 3 or later &lt;http://gnu.org/licenses/gpl.html&gt;<br>This is free software: you are free to change and redistribute it.<br>There is NO WARRANTY, to the extent permitted by law.&nbsp; Type "show copying"<br>and "show warranty" for details.<br>This GDB was configured as "arm-angstrom-linux-gnueabi"...<br>(no debugging symbols found)<br>(gdb) run<br>Starting program: /usr/sbin/iptables -v -A POSTROUTING -t nat -j MASQUERADE -s 192.168.0.0/24<br>(no debugging symbols found)<br>(no debugging symbols found)<br>(no debugging symbols found)<br><br>Program received signal SIGILL, Illegal instruction.<br>0x00009834 in ?? ()<br>(gdb) shell cat /proc/`pidof iptables`/maps<br>00008000-00021000 r-xp 00000000 1f:06 14560&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /usr/sbin/iptables<br>00028000-0002b000 rw-p 00018000 1f:06 14560&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /usr/sbin/iptables<br>0002b000-0004c000 rwxp 0002b000 00:00 0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [heap]<br>40000000-4001c000 r-xp 00000000 1f:06 582&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /lib/ld-2.6.1.so<br>40020000-40022000 rw-p 40020000 00:00 0 <br>40023000-40025000 rw-p 0001b000 1f:06 582&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /lib/ld-2.6.1.so<br>40025000-4002f000 r-xp 00000000 1f:06 14557&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /lib/libgcc_s.so.1<br>4002f000-40036000 ---p 0000a000 1f:06 14557&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /lib/libgcc_s.so.1<br>40036000-40037000 rw-p 00009000 1f:06 14557&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /lib/libgcc_s.so.1<br>40037000-40148000 r-xp 00000000 1f:06 588&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /lib/libc-2.6.1.so<br>40148000-40150000 ---p 00111000 1f:06 588&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /lib/libc-2.6.1.so<br>40150000-40151000 r--p 00111000 1f:06 588&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /lib/libc-2.6.1.so<br>40151000-40153000 rw-p 00112000 1f:06 588&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /lib/libc-2.6.1.so<br>40153000-40156000 rw-p 40153000 00:00 0 <br>be850000-be865000 rwxp befeb000 00:00 0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [stack]<br>(gdb) <br><br><br /><hr />Windows Live™: Keep your life in sync.  <a href='http://windowslive.com/explore?ocid=TXT_TAGLM_WL_t1_allup_explore_012009' target='_new'>Check it out.</a></body>
</html>