Netd error after JB porting

2,743 views
Skip to first unread message

Fabio Fumi

unread,
Sep 7, 2012, 12:07:47 PM9/7/12
to android-...@googlegroups.com
We're approaching a porting to JB for a Renesas-based tablet. Progress here:

https://groups.google.com/forum/#!forum/renesas-emev-osp

The main issue we're hitting is a boot-loop, with the following in the logcat:

I/Netd    ( 2440): Netd 1.0 starting
E/BandwidthController( 2440): runIptablesCmd(): failed /system/bin/iptables -N bw_INPUT res=768
E/BandwidthController( 2440): runIptablesCmd(): failed /system/bin/ip6tables -N bw_INPUT res=768
E/BandwidthController( 2440): runIptablesCmd(): failed /system/bin/iptables -A bw_INPUT -i lo --jump RETURN res=768
E/BandwidthController( 2440): runIptablesCmd(): failed /system/bin/ip6tables -A bw_INPUT -i lo --jump RETURN res=768
E/Netd    ( 2440): Unable to create netlink socket: Protocol not supported
E/Netd    ( 2440): Unable to open quota2 logging socket
D/MDnsDS  ( 2440): MDnsSdListener::Hander starting up
E/Netd    ( 2440): Unable to start MDnsSdListener (Invalid argument)
D/MDnsDS  ( 2440): MDnsSdListener starting to monitor
D/MDnsDS  ( 2440): Going to poll with pollCount 1
E/SocketListener( 2440): Obtaining file descriptor socket 'mdns' failed: Invalid argument
E/NetdConnector(  675): Communications error: java.io.IOException: No such file or directory
E/NetdConnector(  675): Error in NativeDaemonConnector: java.io.IOException: No such file or directory

I've found several similar issues on the net, all pointing in away or another to the kernel configuration of NETFILTER (and sub-options). At present I have these set:

$ grep NF_IP .config | grep -v "^#"
CONFIG_IP_NF_IPTABLES=y

$ grep NET .config | grep -v "^#"
CONFIG_NET=y
CONFIG_INET=y
CONFIG_ANDROID_PARANOID_
NETWORK=y
CONFIG_NET_ACTIVITY_STATS=y
CONFIG_NETFILTER=y
CONFIG_NETFILTER_ADVANCED=y
CONFIG_NETFILTER_XTABLES=y
CONFIG_NETDEVICES=y
CONFIG_NET_ETHERNET=y
CONFIG_NETWORK_FILESYSTEMS=y

but looks like they're not enough, as errors are still there. Probably in the init.rc something to enable? I'm stuck !

Do we have any reference about the minimal kernel config for JB? Note - this is a 2.6.35 kernel.

 thanks in advance for any help
 Fabio

Fabio Fumi

unread,
Sep 10, 2012, 6:58:13 AM9/10/12
to android-...@googlegroups.com
MDnsDS (btw - what is it?) doesn't report errors, but debug messages. Infact, I had found some fixes to the init.rc, which I've already included.

What I miss I think is several kernel options, in the "netfilter" and "IPtables" area, which I'm not sure they're all even exist in pre-3.x kernel. E.g I found this interesting post:

 http://android.modaco.com/topic/330834-advent-vega-kernel-source-code-now-available/page__st__820

saying we need (at least) to back-port to a 2.6.x kernel the " porting the quota2 netfilter " from a 3.x one... That's what I'm trying now, using some AOSP 3.x kernel.

Any suggestion which one to use, for a new device, as a starting point?

I only wonder if there's any "minimal" configuration and if we really need a 3.x kernel for JB.

On Saturday, 8 September 2012 20:49:37 UTC+2, Jonathan Clavin wrote:
Sounds like a ramdisk issue. Check and make sure your ramdisk (mainly init.rc) has the necessary parts for the mdns service. You can see here that there are additions to the netd service (these mdns services weren't in Android versions before Jellybean) that have mdns added to it and there is also an mdns service as well at the bottom of the init.rc I linked to earlier. Add those two parts to the init.rc and see if that resolves the issue.

Fabio Fumi

unread,
Sep 10, 2012, 7:57:02 AM9/10/12
to android-...@googlegroups.com
Re-posting, correcting a few typo...


MDnsDS (btw - what is it?) doesn't report errors, but debug messages. Infact, I had found some fixes to the init.rc, which I've already included.

What I miss I think are several kernel options, in the "netfilter" and "IPtables" areas, which I'm not sure they all even exist in pre-3.x kernel. E.g. I found this interesting post:

 http://android.modaco.com/topic/330834-advent-vega-kernel-source-code-now-available/page__st__820

saying we need (at least) to back-port to a 2.6.x kernel the " the quota2 netfilter " from a 3.x one... That's what I'm trying now, using some AOSP 3.x kernel.


Any suggestion which one to use, for a new device, as a starting point?

Fabio Fumi

unread,
Sep 12, 2012, 10:47:33 AM9/12/12
to android-...@googlegroups.com
I've enabled a number of config options in my 2.6.35 kernel,about the NETFILTER, IP_NF, IPV6 and IP6_NF features, taking this one as an example:

https://android.googlesource.com/kernel/tegra/+/8dd2eab82ac83ffbc1936b7b7d5a8971ce2ad74b/arch/arm/configs/tegra3_android_defconfig

(this is the 3.1 android tegra kernel)

Final result is the same (a boot-loop) but return codes from the iptables and ip6tables are different. Used to be "res=768", now it's "res=256":

E/BandwidthController( 1097): runIptablesCmd(): failed /system/bin/iptables -t raw -N bw_raw_PREROUTING res=256
E/BandwidthController( 1097): runIptablesCmd(): failed /system/bin/ip6tables -t raw -N bw_raw_PREROUTING res=256
E/BandwidthController( 1097): runIptablesCmd(): failed /system/bin/iptables -A bw_INPUT -m owner --socket-exists res=256
E/BandwidthController( 1097): runIptablesCmd(): failed /system/bin/ip6tables -A bw_INPUT -m owner --socket-exists res=256
E/Netd    ( 1097): Unable to create netlink socket: Protocol not supported
E/Netd    ( 1097): Unable to open quota2 logging socket
D/MDnsDS  ( 1097): MDnsSdListener::Hander starting up
E/Netd    ( 1097): Unable to start MDnsSdListener (Invalid argument)
E/SocketListener( 1097): Obtaining file descriptor socket 'mdns' failed: Invalid argument
E/NetdConnector(  458): Communications error: java.io.IOException: No such file or directory
E/NetdConnector(  458): Error in NativeDaemonConnector: java.io.IOException: No such file or directory
^C

130|shell@android:/ $ system/bin/iptables -t raw -N bw_raw_PREROUTING
iptables v1.4.11.1: can't initialize iptables table `raw': Permission denied
Perhaps iptables or your kernel needs to be upgraded.

3|shell@android:/ $ /system/bin/iptables -A bw_INPUT -m owner --socket-exists
Could not open socket to kernel: Permission denied

In both cases a "Permission denied" error is returned now.

Any idea what could be missing now?

Fabio Fumi

unread,
Sep 13, 2012, 11:58:51 AM9/13/12
to android-...@googlegroups.com
This one:


E/BandwidthController( 1097): runIptablesCmd(): failed /system/bin/iptables -t raw -N bw_raw_PREROUTING res=256

comes from this call:

    sockfd = socket(TC_AF, SOCK_RAW, IPPROTO_RAW);

failing with:

       EACCES Permission to create a socket of the specified type and/or protocol is denied.

Anyone knows what does that mean?
Where's this permission defined?



On Friday, 7 September 2012 09:07:47 UTC-7, Fabio Fumi wrote:

Fabio Fumi

unread,
Sep 14, 2012, 11:40:09 AM9/14/12
to android-...@googlegroups.com
I have used Johnatan's suggestion, so my init.rc now includes:

service netd /system/bin/netd
    class main
    socket netd stream 0660 root system
    socket dnsproxyd stream 0660 root inet

service mdnsd /system/bin/mdnsd
    class main
    user mdnsr
    group inet net_raw
    socket mdnsd stream 0660 mdnsr inet
    disabled
    oneshot

...but same errors are still there in logcat.

I've enabled debugging from iptables. Hoping someone here can read at it...

130|root@android:/ # /system/bin/iptables -t raw -N bw_raw_PREROUTING

iptc_init: before socket
iptc_init: socket returns 22
iptc_init: before getsockoptiptc_init: valid_hooks=0x00000009, num_entries=8, size=1288
cache_add_entry: entering...0:0 new builtin chain: 0x2a0325c8 (rules=0x2a03261c)
0:0 normal rule: 0x2a032640: jump, target=632
cache_add_entry: entering...1:152 normal rule: 0x2a032708: standard, verdict=-2
cache_add_entry: entering...2:304 new builtin chain: 0x2a0327d0 (rules=0x2a032824)
iptcc_delete_rule: deleting rule 0x2a032708 (offset 152)
2:304 normal rule: 0x2a032708: standard, verdict=-2
cache_add_entry: entering...3:456:new userdefined chain bw_raw_PREROUTING: 0x2a032848
iptcc_delete_rule: deleting rule 0x2a032708 (offset 304)
cache_add_entry: entering...4:632 normal rule: 0x2a032708: standard, verdict=-5
cache_add_entry: entering...5:784:new userdefined chain bw_raw_PREROUTINGiptabvles: 0x2a0328c0
iptcc_delete_rule: deleting rule 0x2a032708 (offset 632)
cache_add_entry: entering...6:960 normal rule: 0x2a032708: standard, verdict=-5
cache_add_entry: entering...7:1112: end of table:
iptcc_delete_rule: deleting rule 0x2a032708 (offset 960)
iptc_create_chain: Chain `bw_raw_PREROUTING' already exists
iptables: Chain already exists.


130|root@android:/ # /system/bin/iptables -A bw_INPUT -m owner --socket-exists

iptc_init: before socket
iptc_init: socket returns 0
iptc_init: before getsockoptiptc_init: valid_hooks=0x0000000e, num_entries=18, size=2904
cache_add_entry: entering...0:0 new builtin chain: 0x2a032f20 (rules=0x2a032f74)
0:0 normal rule: 0x2a032f98: standard, verdict=-2
cache_add_entry: entering...1:152 new builtin chain: 0x2a033060 (rules=0x2a0330b4)
iptcc_delete_rule: deleting rule 0x2a032f98 (offset 0)
1:152 normal rule: 0x2a032f98: jump, target=936
cache_add_entry: entering...2:304 normal rule: 0x2a0330d8: jump, target=2248
cache_add_entry: entering...3:456 normal rule: 0x2a0331a0: standard, verdict=-2
cache_add_entry: entering...4:608 new builtin chain: 0x2a033268 (rules=0x2a0332bc)
iptcc_delete_rule: deleting rule 0x2a0331a0 (offset 456)
4:608 normal rule: 0x2a0331a0: standard, verdict=-2
cache_add_entry: entering...5:760:new userdefined chain bw_FORWARD: 0x2a0332e0
iptcc_delete_rule: deleting rule 0x2a0331a0 (offset 608)
cache_add_entry: entering...6:936 normal rule: 0x2a0331a0: standard, verdict=-5
cache_add_entry: entering...7:1088:new userdefined chain bw_INPUT: 0x2a033358
iptcc_delete_rule: deleting rule 0x2a0331a0 (offset 936)
cache_add_entry: entering...8:1264 normal rule: 0x2a0331a0: standard, verdict=-5
cache_add_entry: entering...9:1416:new userdefined chain bw_OUTPUT: 0x2a0333d0
iptcc_delete_rule: deleting rule 0x2a0331a0 (offset 1264)
cache_add_entry: entering...10:1592 normal rule: 0x2a0331a0: standard, verdict=-5
cache_add_entry: entering...11:1744:new userdefined chain costly_shared: 0x2a033448
iptcc_delete_rule: deleting rule 0x2a0331a0 (offset 1592)
cache_add_entry: entering...12:1920 normal rule: 0x2a0331a0: standard, verdict=-5
cache_add_entry: entering...13:2072:new userdefined chain natctrl_FORWARD: 0x2a0334c0
iptcc_delete_rule: deleting rule 0x2a0331a0 (offset 1920)
cache_add_entry: entering...14:2248 normal rule: 0x2a0331a0: standard, verdict=-5
cache_add_entry: entering...15:2400:new userdefined chain penalty_box: 0x2a033538
iptcc_delete_rule: deleting rule 0x2a0331a0 (offset 2248)
cache_add_entry: entering...16:2576 normal rule: 0x2a0331a0: standard, verdict=-5
cache_add_entry: entering...17:2728: end of table:
iptcc_delete_rule: deleting rule 0x2a0331a0 (offset 2576)
iptcc_compile_chain_offsets: INPUT: chain_head 0, offset=0
iptcc_compile_chain_offsets: INPUT; chain_foot 0, offset=0, index=0
iptcc_compile_chain_offsets: FORWARD: chain_head 1, offset=152
iptcc_compile_chain_offsets: rule 1, offset=152, index=1
iptcc_compile_chain_offsets: rule 2, offset=304, index=2
iptcc_compile_chain_offsets: FORWARD; chain_foot 3, offset=456, index=3
iptcc_compile_chain_offsets: OUTPUT: chain_head 4, offset=608
iptcc_compile_chain_offsets: OUTPUT; chain_foot 4, offset=608, index=4
iptcc_compile_chain_offsets: bw_FORWARD: chain_head 5, offset=760
iptcc_compile_chain_offsets: bw_FORWARD; chain_foot 6, offset=936, index=6
iptcc_compile_chain_offsets: bw_INPUT: chain_head 7, offset=1088
iptcc_compile_chain_offsets: rule 8, offset=1264, index=8
iptcc_compile_chain_offsets: bw_INPUT; chain_foot 9, offset=1472, index=9
iptcc_compile_chain_offsets: bw_OUTPUT: chain_head 10, offset=1624
iptcc_compile_chain_offsets: bw_OUTPUT; chain_foot 11, offset=1800, index=11
iptcc_compile_chain_offsets: costly_shared: chain_head 12, offset=1952
iptcc_compile_chain_offsets: costly_shared; chain_foot 13, offset=2128, index=13
iptcc_compile_chain_offsets: natctrl_FORWARD: chain_head 14, offset=2280
iptcc_compile_chain_offsets: natctrl_FORWARD; chain_foot 15, offset=2456, index=15
iptcc_compile_chain_offsets: penalty_box: chain_head 16, offset=2608
iptcc_compile_chain_offsets: penalty_box; chain_foot 17, offset=2784, index=17
iptc_commit: num_entries=19, size=3112, num_counters=18
iptables: No chain/target/match by that name.

Fabio Fumi

unread,
Sep 14, 2012, 11:45:48 AM9/14/12
to android-...@googlegroups.com
Also, the output of iptables -L (including debug lines) is:

root@android:/ # iptables -L

iptc_init: before socket
iptc_init: socket returns 22
iptc_init: before getsockoptiptc_init: valid_hooks=0x0000000e, num_entries=17, size=2752
cache_add_entry: entering...0:0 new builtin chain: 0x2a032b80 (rules=0x2a032bd4)
0:0 normal rule: 0x2a032bf8: standard, verdict=-2
cache_add_entry: entering...1:152 new builtin chain: 0x2a032cc0 (rules=0x2a032d14)
iptcc_delete_rule: deleting rule 0x2a032bf8 (offset 0)
1:152 normal rule: 0x2a032bf8: jump, target=2096
cache_add_entry: entering...2:304 normal rule: 0x2a032d38: standard, verdict=-2
cache_add_entry: entering...3:456 new builtin chain: 0x2a032e00 (rules=0x2a032e54)
iptcc_delete_rule: deleting rule 0x2a032d38 (offset 304)
3:456 normal rule: 0x2a032d38: standard, verdict=-2
cache_add_entry: entering...4:608:new userdefined chain bw_FORWARD: 0x2a032e78
iptcc_delete_rule: deleting rule 0x2a032d38 (offset 456)
cache_add_entry: entering...5:784 normal rule: 0x2a032d38: standard, verdict=-5
cache_add_entry: entering...6:936:new userdefined chain bw_INPUT: 0x2a032ef0
iptcc_delete_rule: deleting rule 0x2a032d38 (offset 784)
cache_add_entry: entering...7:1112 normal rule: 0x2a032d38: standard, verdict=-5
cache_add_entry: entering...8:1264:new userdefined chain bw_OUTPUT: 0x2a032f68
iptcc_delete_rule: deleting rule 0x2a032d38 (offset 1112)
cache_add_entry: entering...9:1440 normal rule: 0x2a032d38: standard, verdict=-5
cache_add_entry: entering...10:1592:new userdefined chain costly_shared: 0x2a032fe0
iptcc_delete_rule: deleting rule 0x2a032d38 (offset 1440)
cache_add_entry: entering...11:1768 normal rule: 0x2a032d38: standard, verdict=-5
cache_add_entry: entering...12:1920:new userdefined chain natctrl_FORWARD: 0x2a033058
iptcc_delete_rule: deleting rule 0x2a032d38 (offset 1768)
cache_add_entry: entering...13:2096 normal rule: 0x2a032d38: standard, verdict=-5
cache_add_entry: entering...14:2248:new userdefined chain penalty_box: 0x2a0330d0
iptcc_delete_rule: deleting rule 0x2a032d38 (offset 2096)
cache_add_entry: entering...15:2424 normal rule: 0x2a032d38: standard, verdict=-5
cache_add_entry: entering...16:2576: end of table:
iptcc_delete_rule: deleting rule 0x2a032d38 (offset 2424)
iptc_first_chain: : returning `INPUT'
iptc_get_policy: called for chain INPUT
Chain INPUT (policy ACCEPT)
target     prot opt source               destination        
iptc_first_rule: first rule(INPUT): no rules, returning NULL
iptc_next_chain: : returning `FORWARD'

iptc_get_policy: called for chain FORWARD
Chain FORWARD (policy ACCEPT)
target     prot opt source               destination        
iptc_first_rule: first rule(FORWARD): 0x2a032bf8
iptc_get_target: r=0x2a032bf8, jump=0x2a033058, name=`natctrl_FORWARD'
natctrl_FORWARD  all  --  anywhere             anywhere           
iptc_next_rule: rule_iterator_cur=0x2a032bf8...next=0x2a032d14, head=0x2a032d14...finished, returning NULL
iptc_next_chain: : returning `OUTPUT'

iptc_get_policy: called for chain OUTPUT
Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination        
iptc_first_rule: first rule(OUTPUT): no rules, returning NULL
iptc_next_chain: : returning `bw_FORWARD'

iptc_get_policy: called for chain bw_FORWARD
Chain bw_FORWARD (0 references)
target     prot opt source               destination        
iptc_first_rule: first rule(bw_FORWARD): no rules, returning NULL
iptc_next_chain: : returning `bw_INPUT'

iptc_get_policy: called for chain bw_INPUT
Chain bw_INPUT (0 references)
target     prot opt source               destination        
iptc_first_rule: first rule(bw_INPUT): no rules, returning NULL
iptc_next_chain: : returning `bw_OUTPUT'

iptc_get_policy: called for chain bw_OUTPUT
Chain bw_OUTPUT (0 references)
target     prot opt source               destination        
iptc_first_rule: first rule(bw_OUTPUT): no rules, returning NULL
iptc_next_chain: : returning `costly_shared'

iptc_get_policy: called for chain costly_shared
Chain costly_shared (0 references)
target     prot opt source               destination        
iptc_first_rule: first rule(costly_shared): no rules, returning NULL
iptc_next_chain: : returning `natctrl_FORWARD'

iptc_get_policy: called for chain natctrl_FORWARD
Chain natctrl_FORWARD (1 references)
target     prot opt source               destination        
iptc_first_rule: first rule(natctrl_FORWARD): no rules, returning NULL
iptc_next_chain: : returning `penalty_box'

iptc_get_policy: called for chain penalty_box
Chain penalty_box (0 references)
target     prot opt source               destination        
iptc_first_rule: first rule(penalty_box): no rules, returning NULL
iptc_next_chain: : no more chains

Fabio Fumi

unread,
Sep 17, 2012, 5:50:30 AM9/17/12
to android-...@googlegroups.com
Enabling verbose debugging in Netd I get these:


I/Netd    ( 1687): Netd 1.0 starting
V/BandwidthController( 1687): runCommands(): 7 commands
V/BandwidthController( 1687): runIpxtablesCmd: <-F bw_INPUT>
V/BandwidthController( 1687): runIpxtablesCmd: <-F bw_OUTPUT>
V/BandwidthController( 1687): runIpxtablesCmd: <-F bw_FORWARD>
V/BandwidthController( 1687): runIpxtablesCmd: <-F penalty_box>
V/BandwidthController( 1687): runIpxtablesCmd: <-F costly_shared>
V/BandwidthController( 1687): runIpxtablesCmd: <-t raw -F bw_raw_PREROUTING>
V/BandwidthController( 1687): runIpxtablesCmd: <-t mangle -F bw_mangle_POSTROUTING>
V/BandwidthController( 1687): runCommands(): 12 commands
V/BandwidthController( 1687): runIpxtablesCmd: <-D INPUT -j bw_INPUT>
V/BandwidthController( 1687): runIpxtablesCmd: <-D OUTPUT -j bw_OUTPUT>
V/BandwidthController( 1687): runIpxtablesCmd: <-D FORWARD -j bw_FORWARD>
V/BandwidthController( 1687): runIpxtablesCmd: <-t raw -D bw_raw_PREROUTING>
E/BandwidthController( 1687): runIptablesCmd(): failed /system/bin/iptables -t raw -D bw_raw_PREROUTING res=256
E/BandwidthController( 1687): runIptablesCmd(): failed /system/bin/ip6tables -t raw -D bw_raw_PREROUTING res=256
V/BandwidthController( 1687): runIpxtablesCmd: <-t mangle -D bw_mangle_POSTROUTING>
E/BandwidthController( 1687): runIptablesCmd(): failed /system/bin/iptables -t mangle -D bw_mangle_POSTROUTING res=256
E/BandwidthController( 1687): runIptablesCmd(): failed /system/bin/ip6tables -t mangle -D bw_mangle_POSTROUTING res=256
V/BandwidthController( 1687): runIpxtablesCmd: <-X bw_INPUT>
V/BandwidthController( 1687): runIpxtablesCmd: <-X bw_OUTPUT>
V/BandwidthController( 1687): runIpxtablesCmd: <-X bw_FORWARD>
V/BandwidthController( 1687): runIpxtablesCmd: <-X penalty_box>
V/BandwidthController( 1687): runIpxtablesCmd: <-X costly_shared>
V/BandwidthController( 1687): runIpxtablesCmd: <-t raw -X bw_raw_PREROUTING>
E/BandwidthController( 1687): runIptablesCmd(): failed /system/bin/iptables -t raw -X bw_raw_PREROUTING res=256
E/BandwidthController( 1687): runIptablesCmd(): failed /system/bin/ip6tables -t raw -X bw_raw_PREROUTING res=256
V/BandwidthController( 1687): runIpxtablesCmd: <-t mangle -X bw_mangle_POSTROUTING>
E/BandwidthController( 1687): runIptablesCmd(): failed /system/bin/iptables -t mangle -X bw_mangle_POSTROUTING res=256
E/BandwidthController( 1687): runIptablesCmd(): failed /system/bin/ip6tables -t mangle -X bw_mangle_POSTROUTING res=256
V/BandwidthController( 1687): runCommands(): 12 commands
V/BandwidthController( 1687): runIpxtablesCmd: <-N bw_INPUT>
V/BandwidthController( 1687): runIpxtablesCmd: <-A INPUT -j bw_INPUT>
V/BandwidthController( 1687): runIpxtablesCmd: <-N bw_OUTPUT>
V/BandwidthController( 1687): runIpxtablesCmd: <-A OUTPUT -j bw_OUTPUT>
V/BandwidthController( 1687): runIpxtablesCmd: <-N bw_FORWARD>
V/BandwidthController( 1687): runIpxtablesCmd: <-I FORWARD -j bw_FORWARD>
V/BandwidthController( 1687): runIpxtablesCmd: <-N costly_shared>
V/BandwidthController( 1687): runIpxtablesCmd: <-N penalty_box>
V/BandwidthController( 1687): runIpxtablesCmd: <-t raw -N bw_raw_PREROUTING>
E/BandwidthController( 1687): runIptablesCmd(): failed /system/bin/iptables -t raw -N bw_raw_PREROUTING res=256
E/BandwidthController( 1687): runIptablesCmd(): failed /system/bin/ip6tables -t raw -N bw_raw_PREROUTING res=256
V/BandwidthController( 1687): runCommands(): 7 commands
V/BandwidthController( 1687): runIpxtablesCmd: <-F bw_INPUT>
V/BandwidthController( 1687): runIpxtablesCmd: <-F bw_OUTPUT>
V/BandwidthController( 1687): runIpxtablesCmd: <-F bw_FORWARD>
V/BandwidthController( 1687): runIpxtablesCmd: <-F penalty_box>
V/BandwidthController( 1687): runIpxtablesCmd: <-F costly_shared>
V/BandwidthController( 1687): runIpxtablesCmd: <-t raw -F bw_raw_PREROUTING>
V/BandwidthController( 1687): runIpxtablesCmd: <-t mangle -F bw_mangle_POSTROUTING>
V/BandwidthController( 1687): runCommands(): 7 commands
V/BandwidthController( 1687): runIpxtablesCmd: <-A bw_INPUT -i lo --jump RETURN>
V/BandwidthController( 1687): runIpxtablesCmd: <-A bw_INPUT -m owner --socket-exists>
E/BandwidthController( 1687): runIptablesCmd(): failed /system/bin/iptables -A bw_INPUT -m owner --socket-exists res=256
E/BandwidthController( 1687): runIptablesCmd(): failed /system/bin/ip6tables -A bw_INPUT -m owner --socket-exists res=256
D/Netd    ( 1687): NetlinkHandler start
D/Netd    ( 1687): NetlinkHandler start
D/Netd    ( 1687): NetlinkHandler start
D/MDnsDS  ( 1687): MDnsSdListener::Hander starting up
E/Netd    ( 1687): Unable to start MDnsSdListener (Invalid argument)
E/SocketListener( 1687): Obtaining file descriptor socket 'mdns' failed: Invalid argument




On Friday, 7 September 2012 09:07:47 UTC-7, Fabio Fumi wrote:

Fabio Fumi

unread,
Sep 17, 2012, 9:39:27 AM9/17/12
to android-...@googlegroups.com
Looks like I managed to make it go this time !

I had to add this section at the end of init.rc:


service mdnsd /system/bin/mdnsd
    class main
    user mdnsr
    group inet net_raw
    socket mdnsd stream 0660 mdnsr inet
    disabled
    oneshot

Thanks Johnatan for the pointers!

+    class main
+    user mdnsr
+    group inet net_raw
+    socket mdnsd stream 0660 mdnsr inet
+    disabled
+    oneshot



On Friday, 7 September 2012 09:07:47 UTC-7, Fabio Fumi wrote:

star li

unread,
Sep 10, 2013, 10:14:41 PM9/10/13
to android-...@googlegroups.com


Fabio Fumi <ffumi68@...> writes:

>
>
> We're approaching a porting to JB for a Renesas-based tablet. Progress
here:https://groups.google.com/forum/#!forum/renesas-emev-ospThe main issue
we're hitting is a boot-loop, with the following in the logcat:I/Netd    (
2440): Netd 1.0 startingE/BandwidthController( 2440): runIptablesCmd():
failed /system/bin/iptables -N bw_INPUT res=768E/BandwidthController( 2440):
runIptablesCmd(): failed /system/bin/ip6tables -N bw_INPUT
res=768E/BandwidthController( 2440): runIptablesCmd(): failed
/system/bin/iptables -A bw_INPUT -i lo --jump RETURN
res=768E/BandwidthController( 2440): runIptablesCmd(): failed
/system/bin/ip6tables -A bw_INPUT -i lo --jump RETURN res=768E/Netd    (
2440): Unable to create netlink socket: Protocol not supportedE/Netd    (
2440): Unable to open quota2 logging socketD/MDnsDS  ( 2440):
MDnsSdListener::Hander starting upE/Netd    ( 2440): Unable to start
MDnsSdListener (Invalid argument)D/MDnsDS  ( 2440): MDnsSdListener starting
to monitorD/MDnsDS  ( 2440): Going to poll with pollCount 1E/SocketListener(
2440): Obtaining file descriptor socket 'mdns' failed: Invalid
argumentE/NetdConnector(  675): Communications error: java.io.IOException:
No such file or directoryE/NetdConnector(  675): Error in
NativeDaemonConnector: java.io.IOException: No such file or directoryI've
found several similar issues on the net, all pointing in away or another to
the kernel configuration of NETFILTER (and sub-options). At present I have
these set:$ grep NF_IP .config | grep -v "^#"CONFIG_IP_NF_IPTABLES=y$ grep
NET .config | grep -v "^#"CONFIG_NET=yCONFIG_INET=yCONFIG_ANDROID_PARANOID_
>
>
NETWORK=yCONFIG_NET_ACTIVITY_STATS=yCONFIG_NETFILTER=yCONFIG_NETFILTER_ADVAN
CED=yCONFIG_NETFILTER_XTABLES=yCONFIG_NETDEVICES=yCONFIG_NET_ETHERNET=yCONFI
G_NETWORK_FILESYSTEMS=y
> but looks like they're not enough, as errors are still there. Probably in
the init.rc something to enable? I'm stuck !Do we have any reference about
the minimal kernel config for JB? Note - this is a 2.6.35 kernel. thanks in
advance for any help Fabio
>

I managed to correct this error by add one line in the service 'netd'
such as

service netd /system/bin/netd
class main
socket netd stream 0660 root system
socket dnsproxyd stream 0660 root inet
socket mdns stream 0660 root system
the last line was what I added following the default init.rc file in
system/core/rootdir/



Reply all
Reply to author
Forward
0 new messages