[Bug 734] Iptables on Arm Processor with Vanilla Kernel

bugzilla-daemon at bugzilla.netfilter.org bugzilla-daemon at bugzilla.netfilter.org
Wed Aug 10 15:11:30 CEST 2011


http://bugzilla.netfilter.org/show_bug.cgi?id=734


Evgheni <aidjek at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |aidjek at gmail.com




--- Comment #2 from Evgheni <aidjek at gmail.com>  2011-08-10 15:11:30 ---
(In reply to comment #1)
> Check out and report back the results from cctypeinfo.c.
> http://dev.medozas.de/gitweb.cgi?p=hxtools;a=blob;f=sdevel/cctypeinfo.c;hb=HEAD
> 
> There may also be messages in dmesg to explain EINVAL further.
> 


Hello Jan, thank you for your help. 

I have compiled this source code: the output is presented below

          TYPE  SIZEOF ALIGNOF
          char       1       1
         short       2       2
           int       4       4
          long       4       4
     long long       8       4
         float       4       4
        double       8       4
   long double       8       4
        void *       4       4
void (*)(void)       4       4
      intptr_t       4       4
        size_t       4       4
       wchar_t       4       4
         off_t       4       4
        loff_t       8       4
       uint8_t       1       1
      uint16_t       2       2
      uint32_t       4       4
      uint64_t       8       4
    struct x16       4       4
    struct x32       8       4
    struct x64      16       4
        mode_t       4       4
        time_t       4       4
struct timespec       8       4
struct sockaddr      16       4
struct sockaddr_in      16       4
struct sockaddr_in6      28       4
struct sockaddr_storage     128       4


Also I have tried to recompile needed kernel modules for iptables work:
net/netfilter/x_tables.ko, net/ipv4/netfilter/ip_tables.ko and
net/ipv4/netfilter/iptable_filter.ko  but without any positive result. 

I have tried to enable debugging for this modules and rebuild kernel included
those modules in it, not as single modules - but also without result.

I have check ABI flags for all binaries (modules and iptables), as was
described here http://wiki.debian.org/ArmEabiPort - result presented below:

home/aidjek/iptables-1.4.12/build/bin/sbin# readelf -h iptables | grep Flags 
  Flags:                             0x202, has entry point, GNU EABI, software
FP

readelf -h /home/aidjek/iptables-1.4.3.2/build/bin/sbin/iptables | grep Flags 
  Flags:                             0x202, has entry point, GNU EABI, software
FP

readelf -h net/ipv4/netfilter/ip_tables.ko | grep Flag
  Flags:                             0x200, GNU EABI, software FP

readelf -h net/ipv4/netfilter/ip_tables.ko | grep Flag
  Flags:                             0x200, GNU EABI, software FP


Also tried to recompile kernel modules from original source code and have found
another errors in dmesg: 
[442992.546875] translate_table: size 632
[442992.570312] Finished chain 1
[442992.578125] Finished chain 2
[442992.585937] Finished chain 3
[442992.593750] ip_tables:  target: invalid size 12 != 8

But I think it's incompatibility of modules version or anything else, because
module iptable_filter.ko - cannot load in this situation.

Also I am discussing this issue on different  russian significant linux
communities and will let you know - if anything will be usefully for this
issue.

Also I have make one more strace outputs : http://pastebin.com/DvxVcUiT 
one of it - it's execute command "iptables -L" , another  "iptables --version"

Please let me know if you need further assistance or info.

Thank you in advance, Evgheni.


-- 
Configure bugmail: http://bugzilla.netfilter.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are watching all bug changes.



More information about the netfilter-buglog mailing list