[Q] openvpn - Galaxy S II Q&A, Help & Troubleshooting

Hello,
I have a problem with setup of my openvpn configuration.
Code:
# /system/xbin/openvpn --config /mnt/sdcard/openvpn/xxx.xxx.org.ovpn
Thu Mar 29 11:21:41 2012 OpenVPN 2.1.1 i686-pc-linux-gnu [SSL] [LZO2] [EPOLL] built on Jan 7 2012
Thu Mar 29 11:21:41 2012 NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
Thu Mar 29 11:21:41 2012 WARNING: file '/mnt/sdcard/openvpn/client7-samsungs2.key' is group or others accessible
Thu Mar 29 11:21:41 2012 LZO compression initialized
Thu Mar 29 11:21:41 2012 Control Channel MTU parms [ L:1574 D:138 EF:38 EB:0 ET:0 EL:0 ]
Thu Mar 29 11:21:41 2012 Data Channel MTU parms [ L:1574 D:1450 EF:42 EB:135 ET:32 EL:0 AF:3/1 ]
Thu Mar 29 11:21:41 2012 Local Options hash (VER=V4): 'd79ca330'
Thu Mar 29 11:21:41 2012 Expected Remote Options hash (VER=V4): 'f7df56b8'
Thu Mar 29 11:21:41 2012 Socket Buffers: R=[110592->131072] S=[110592->131072]
Thu Mar 29 11:21:41 2012 UDPv4 link local: [undef]
Thu Mar 29 11:21:41 2012 UDPv4 link remote: 62.87.242.231:1194
Thu Mar 29 11:21:41 2012 TLS: Initial packet from 62.87.242.231:1194, sid=1a96d893 ff58a0a9
Thu Mar 29 11:21:45 2012 VERIFY OK: depth=1, /C=PL/ST=dol/L=wro/O=OpenVPN/[email protected]
Thu Mar 29 11:21:45 2012 VERIFY OK: nsCertType=SERVER
Thu Mar 29 11:21:45 2012 VERIFY OK: depth=0, /C=PL/ST=dol/O=OpenVPN/CN=xxx.xxx.org/[email protected]
Thu Mar 29 11:21:47 2012 Data Channel Encrypt: Cipher 'BF-CBC' initialized with 128 bit key
Thu Mar 29 11:21:47 2012 Data Channel Encrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Thu Mar 29 11:21:47 2012 Data Channel Decrypt: Cipher 'BF-CBC' initialized with 128 bit key
Thu Mar 29 11:21:47 2012 Data Channel Decrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Thu Mar 29 11:21:47 2012 Control Channel: TLSv1, cipher TLSv1/SSLv3 EDH-RSA-DES-CBC3-SHA, 1024 bit RSA
Thu Mar 29 11:21:47 2012 [xxx.xxx.org] Peer Connection Initiated with 62.87.242.231:1194
Thu Mar 29 11:21:49 2012 SENT CONTROL [xxx.xxx.org]: 'PUSH_REQUEST' (status=1)
Thu Mar 29 11:21:49 2012 PUSH: Received control message: 'PUSH_REPLY,dhcp-option DNS 192.168.1.1,route-gateway dhcp,ping 15,ping-restart 60'
Thu Mar 29 11:21:49 2012 OPTIONS IMPORT: timers and/or timeouts modified
Thu Mar 29 11:21:49 2012 OPTIONS IMPORT: route-related options modified
Thu Mar 29 11:21:49 2012 OPTIONS IMPORT: --ip-win32 and/or --dhcp-option options modified
Thu Mar 29 11:21:49 2012 TUN/TAP device tap0 opened
Thu Mar 29 11:21:49 2012 TUN/TAP TX queue length set to 100
Thu Mar 29 11:21:49 2012 Initialization Sequence Completed
Code:
~ # ifconfig -a
eth0 Link encap:Ethernet HWaddr 14:7B:E5:54:9B:E1
inet addr:9.xxx.xxx.195 Bcast:9.xxx.xxx.255 Mask:255.255.254.0
inet6 addr: fe80::167d:c5ff:fe94:9be1/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:22265 errors:0 dropped:0 overruns:0 frame:0
TX packets:2806 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:3362140 (3.2 MiB) TX bytes:452583 (441.9 KiB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:415 errors:0 dropped:0 overruns:0 frame:0
TX packets:415 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:42226 (41.2 KiB) TX bytes:42226 (41.2 KiB)
sit0 Link encap:IPv6-in-IPv4
NOARP MTU:1480 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
svnet0 Link encap:UNSPEC HWaddr A0-00-80-00-00-00-00-00-00-00-00-00-00-00-00-00
UP POINTOPOINT RUNNING NOARP MTU:65541 Metric:1
RX packets:256 errors:193 dropped:0 overruns:0 frame:0
TX packets:908 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:74575 (72.8 KiB) TX bytes:12675620 (12.0 MiB)
tap0 Link encap:Ethernet HWaddr 12:EA:99:E5:CD:72
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:399 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:106795 (104.2 KiB) TX bytes:0 (0.0 B)
usb0 Link encap:Ethernet HWaddr 3A:F2:BD:20:73:60
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Code:
~ # route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
9.xxx.xxx.0 * 255.255.254.0 U 0 0 0 eth0
default gate-9-xxx-xxx-1 0.0.0.0 UG 0 0 0 eth0
Code:
# cat /mnt/sdcard/openvpn/xxxx.xxx.org.ovpn |grep -v "^#" |grep -v "^;" |grep -v "^$"
client
dev tap
proto udp
remote xxx.xxx.org 1194
resolv-retry infinite
nobind
persist-key
persist-tun
ca /mnt/sdcard/openvpn/ca.crt
cert /mnt/sdcard/openvpn/client7-samsungs2.crt
key /mnt/sdcard/openvpn/client7-samsungs2.key
ns-cert-type server
comp-lzo
verb 3
script-security 2
Code:
~ # uname -a
Linux localhost 2.6.35.7-I9100XWKF3-CL276555 #2 SMP PREEMPT Thu Jun 9 18:28:28 KST 2011 armv7l GNU/Linux
Code:
~ # ls -la /system/xbin/bb/route
lrwxrwxrwx 1 root root 18 Mar 26 16:07 /system/xbin/bb/route -> /system/xbin/route
Code:
~ # ls -la /system/xbin/bb/ifconfig
lrwxrwxrwx 1 root root 21 Mar 26 16:06 /system/xbin/bb/ifconfig -> /system/xbin/ifconfig
The problem is that i'm not receiving ip and routing table on my android phone.
This configuration works on my windows workstation.
Can anyone help me track the problem please.

Code:
client
dev tun
proto tcp
remote xx.yy.zz 1194
nobind
tls-client
auth-user-pass
ca ca.crt
cert cli.crt
key cli.key
ping 10
verb 3
float
script-security 3 system
pull
It's my config that is working well - maybe your lack of "pull" command ??
--
To mój działający konfig - może brakuje Ci komendy "pull" ??

maczaros said:
To mój działający konfig - może brakuje Ci komendy "pull" ??
Click to expand...
Click to collapse
I have added pull command to my config but does not work.
I'm using TAP mode to simulate L2 layer - that is the main difference between our configs.

What VPN client you use ?

maczaros said:
What VPN client you use ?
Click to expand...
Click to collapse
Code:
# /system/xbin/openvpn --version
OpenVPN 2.1.1 i686-pc-linux-gnu [SSL] [LZO2] [EPOLL] built on Jan 7 2012
Originally developed by James Yonan
Copyright (C) 2002-2009 OpenVPN Technologies, Inc. <[email protected]>

That i've seen.
What app did you use to make connection. Some of them have additional configuration, more than ovpn file.

maczaros said:
That i've seen.
What app did you use to make connection. Some of them have additional configuration, more than ovpn file.
Click to expand...
Click to collapse
I use OpenVPN Settings 0.4.10 downloaded from android market.
Also i have other application FEAT VPN Lite (release 20) also vpn not works.

oliwiak82 said:
I have added pull command to my config but does not work.
I'm using TAP mode to simulate L2 layer - that is the main difference between our configs.
Click to expand...
Click to collapse
And you are absolutely sure what you are doing and you need a TAP device?
If you use a TAP device it normally works as port of a bridge. To build a bridged you need at least one additional port (eth0 ?). You then use brctl to create the bridge. The IP address is assigned to to the bridge, not to one of it's ports. For IP routing you need a device with a IP address. Your tap0 device has no IP address hence no routing.
Again: are you sure you would like to create a layer 2 bridge? Don't you just want to access your server(s) from your mobile using OpenVPN? If the latter is the case then change your setup to use a TUN device.

Related

TyTN and Linux

Hi!
Has anyone luck with the TyTN and Linux? Have tried the synce package with synce-kde (raki) but there was no success.
There is a new eth dev unsing the rndis driver, and there is an ip connection between 169.254.2.1 <> 169.254.2.2 but nothing more
Any success on mounting as a mass storage dev?
There used to be a problem syncing with WM6. But recently I've been able to do it using the old usbserial method and the ipaq module. I haven't tried the GUI stuff, but the basic synce tools work fine. Mass storage mounting also works.
I'm in the same problem with synce and raki... my tytn don't understand my ubuntu?
I've searched a lot about this and doesn't works.
The only solution that works for me at the moment (may be the worst) is install a winXP in a VirtualBox but I know that it's not the better solution, and the "seamless" option of virtualbox last edition doesn't works for me...
Anybody has more info about linux, activesync and Hermes (wm5 o 6) ...
Please help!!
Well, as I've said, it works fine here with Gentoo and WM6.
- on the Hermes under Connections -> USB to PC, disable the advanced functionality.
- get synce and odccm
- in the kernel, enable usbserial and ipaq
Then your Hermes should be recognized as something like /dev/tts/USB0
I just use a little script like this:
Code:
synce-serial-config /dev/tts/USB0 192.168.0.101:192.168.0.102
sleep 1
odccm
sleep 1
synce-serial-start
If it works, you should see something like this:
Code:
0:192.168.0.101:192.168.0.102
You can now run synce-serial-start to start a serial connection.
Serial connection established.
Using interface ppp0
Connect: ppp0 <--> /dev/tts/USB0
local IP address 192.168.0.101
remote IP address 192.168.0.102
And then the basic synce tools like pls, pcp, etc., should work.
To get this working on Ubuntu you have to compile the whole synCE set of software (synce, rapi, odccm etc.) from SVN. This is done in this Guide:
http://ubuntuforums.org/showthread.php?t=345176
Just use that guide for instructions on how to compile from SVN, ignore the kernel patching and usb drivers and so on unless you're feeling masochistic.
For feisty, you can still use ipaq as demonstrated here, just stop after you have compiled and installed the synce packages. After that the aforementioned guide tries to compile the new drivers which requires kernel patching, pain, and suffering.
So, after compiling the newer synce, switch over to xor's instructions.
I've made a little Sync-with-Linux page for the Hermes Wiki. Feel free to contribute.
gentoo packages
Hi _xor,
I'm trying to get my Prophet WM6-upgraded PDA connected to my 2.6.23-tuxonice-r6 powered Gentoo Linux but couldn't make it work. I'm trying to use it as a GPRS modem and to sync it too (priority 2 actually).
How did you get odccm installed? app-pda/synce-dccm doesn't have it and there is no odccm at all.
Or yet better, what packages did you install? (I'm using KDE as my window manager as you do).
BTW, the links on the wiki are no longer valid and couldn't get to them through google too.
EDIT: I could make it work!!!!!
The problem was somehow related to the PPP connection not establishing the IP address correctly:
Jan 27 14:29:45 RJZ-LNX usb 2-2: new full speed USB device using uhci_hcd and address 23
Jan 27 14:29:45 RJZ-LNX usb 2-2: configuration #1 chosen from 1 choice
Jan 27 14:29:45 RJZ-LNX ipaq 2-2:1.0: PocketPC PDA converter detected
Jan 27 14:29:45 RJZ-LNX usb 2-2: PocketPC PDA converter now attached to ttyUSB0
Jan 27 14:29:51 RJZ-LNX synce-serial-start: Executing '/usr/sbin/pppd call synce-device'
Jan 27 14:29:51 RJZ-LNX pppd[28592]: pppd 2.4.4 started by root, uid 0
Jan 27 14:29:53 RJZ-LNX pppd[28592]: Serial connection established.
Jan 27 14:29:53 RJZ-LNX pppd[28592]: using channel 13
Jan 27 14:29:53 RJZ-LNX pppd[28592]: Using interface ppp0
Jan 27 14:29:53 RJZ-LNX pppd[28592]: Connect: ppp0 <--> /dev/ttyUSB0
Jan 27 14:29:53 RJZ-LNX odccm[28560]: DEBUG: _odccm_interface_address: waiting for IP address on ppp0
Jan 27 14:29:54 RJZ-LNX odccm[28560]: DEBUG: _odccm_interface_address: waiting for IP address on ppp0
Jan 27 14:29:54 RJZ-LNX pppd[28592]: sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x1ce61ea3> <pcomp> <accomp>]
Jan 27 14:29:55 RJZ-LNX odccm[28560]: DEBUG: _odccm_interface_address: waiting for IP address on ppp0
Jan 27 14:29:56 RJZ-LNX odccm[28560]: DEBUG: _odccm_interface_address: waiting for IP address on ppp0
Jan 27 14:29:57 RJZ-LNX odccm[28560]: DEBUG: _odccm_interface_address: waiting for IP address on ppp0
Jan 27 14:29:57 RJZ-LNX pppd[28592]: sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x1ce61ea3> <pcomp> <accomp>]
Jan 27 14:30:00 RJZ-LNX pppd[28592]: sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x1ce61ea3> <pcomp> <accomp>]
Jan 27 14:30:03 RJZ-LNX pppd[28592]: sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x1ce61ea3> <pcomp> <accomp>]
Jan 27 14:30:06 RJZ-LNX pppd[28592]: sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x1ce61ea3> <pcomp> <accomp>]
Jan 27 14:30:09 RJZ-LNX pppd[28592]: sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x1ce61ea3> <pcomp> <accomp>]
Jan 27 14:30:12 RJZ-LNX pppd[28592]: sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x1ce61ea3> <pcomp> <accomp>]
Jan 27 14:30:15 RJZ-LNX pppd[28592]: sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x1ce61ea3> <pcomp> <accomp>]
Jan 27 14:30:18 RJZ-LNX pppd[28592]: sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x1ce61ea3> <pcomp> <accomp>]
Jan 27 14:30:21 RJZ-LNX pppd[28592]: sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x1ce61ea3> <pcomp> <accomp>]
Jan 27 14:30:24 RJZ-LNX pppd[28592]: LCP: timeout sending Config-Requests
Jan 27 14:30:24 RJZ-LNX pppd[28592]: Connection terminated.
Jan 27 14:30:24 RJZ-LNX pppd[28592]: Modem hangup
Jan 27 14:30:24 RJZ-LNX pppd[28592]: Exit.
I just re-enabled and disabled again the "enable advanced network functionality" on the PDA while it was connected to my PC and it started to work:
Jan 27 14:42:09 RJZ-LNX usb 2-2: new full speed USB device using uhci_hcd and address 27
Jan 27 14:42:09 RJZ-LNX usb 2-2: configuration #1 chosen from 1 choice
Jan 27 14:42:09 RJZ-LNX ipaq 2-2:1.0: PocketPC PDA converter detected
Jan 27 14:42:09 RJZ-LNX usb 2-2: PocketPC PDA converter now attached to ttyUSB0
Jan 27 14:42:32 RJZ-LNX synce-serial-start: Executing '/usr/sbin/pppd call synce-device'
Jan 27 14:42:32 RJZ-LNX pppd[30637]: pppd 2.4.4 started by root, uid 0
Jan 27 14:42:35 RJZ-LNX pppd[30637]: Serial connection established.
Jan 27 14:42:35 RJZ-LNX odccm[28560]: DEBUG: _odccm_interface_address: waiting for IP address on ppp0
Jan 27 14:42:35 RJZ-LNX pppd[30637]: Using interface ppp0
Jan 27 14:42:35 RJZ-LNX pppd[30637]: Connect: ppp0 <--> /dev/ttyUSB0
Jan 27 14:42:35 RJZ-LNX pppd[30637]: local IP address 192.168.131.102
Jan 27 14:42:35 RJZ-LNX pppd[30637]: remote IP address 192.168.131.201
Jan 27 14:42:36 RJZ-LNX odccm[28560]: DEBUG: _odccm_interface_address: found matching interface
Jan 27 14:42:36 RJZ-LNX odccm[28560]: DEBUG: PDA network interface discovered! udi='/devices/virtual/net/ppp0'
Jan 27 14:42:40 RJZ-LNX odccm[28560]: DEBUG: device_info_received
Jan 27 14:42:40 RJZ-LNX odccm[28560]: DEBUG: f1 ea 81 50 c4 44 98 68 41 c3 2e e3 1d ef d0 5f 05 00 00 00 02 00 00 00 0b 00 00 00 57 00 4d 00 5f 00 7a 00 61 00 70 00 70 00 61 00 63 00 6f 00 72 00 00 00 05 02 74 07 11 0a 00 00 05 00 00 00 2d 6e cb 62 00 00 00 00 0f 00 00 00 50 6f 63 6b 65 74 50 43 00 53 53 44 4b 00 00 07 00 00 00 57 49 5a 41 32 30 30 00 02 00 00 00 05 00 00 00 02 00 00 00 05 00 00 00 02 00 00 00 00 00 00 00 10 00 00 00 0c 00 00 00 5d 00 00 00 01 00 00 00
Jan 27 14:42:40 RJZ-LNX odccm[28560]: DEBUG: extradata:
Jan 27 14:42:40 RJZ-LNX odccm[28560]: DEBUG: 10 00 00 00 0c 00 00 00 5d 00 00 00 01 00 00 00
Jan 27 14:42:40 RJZ-LNX odccm[28560]: Message: device_info_received: registering object path '/org/synce/odccm/Device/_5081EAF1_44C4_6898_41C3_2EE31DEFD05F_'
I'll try later some cool apps, if any...

F____n Coby Kyros 7012 stuck

Help Please. 7012 stuck in fastboot. Was only able to flash CWMR 2.5.1.3, (don't ask how), and I cannot flash any other rom, zip file, update.zip, or any .img files that'll actually stick. I've used both the install from sdcard option in CWMR, and the fastboot commands. Maybe I screwed up my partitions, I have no idea. I've sucessfully rooted devices before, but the limited supportt is kicking my ass. I'd appreciate any and all help. Thnk u for reading
Ok update I was able to use adb shell on cwmr and this is the dmesg.PLEASE can anyone help me with this?
<5>Linux version 2.6.29 ([email protected]) (gcc version 4.3.1 (GCC) ) #116 Sat Nov 6 05:46:45 CST 2010
<4>CPU: ARMv6-compatible processor [410fb766] revision 6 (ARMv7), cr=00c5387f
<4>CPU: VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
<4>Machine: Telechips TCC89/91/92XX Demo Board
<4>kernel start display option [resolution : 29][output : 191]
<4>Memory policy: ECC disabled, Data cache writeback
<7>On node 0 totalpages: 40960
<7>free_area_init_node: node 0, pgdat c03f45ec, node_mem_map c0490000
<7> Normal zone: 320 pages used for memmap
<7> Normal zone: 0 pages reserved
<7> Normal zone: 40640 pages, LIFO batch:7
<4>Built 1 zonelists in Zone order, mobility grouping on. Total pages: 40640
<5>Kernel command line: console=ttySAC0 androidboot.hardware=tcc92xx
<3>Unknown boot option `androidboot.hardware=tcc92xx': ignoring
<4>tcc9200_irq_init
<4>PID hash table entries: 1024 (order: 10, 4096 bytes)
<4> ### CORE CLOCK (500000000 Hz), BUS CLOCK (166000000 Hz) ###
<4>Console: colour dummy device 80x30
<4>tcc_console_init
<4>tcc_serial_console_setup: co=c03e171c (0), <NULL>
<4>tcc_serial_get_options
<4>tcc_serial_console_setup: port=c03e1768 (0)
<4>tcc_serial_set_termios port[0]
<4>config: 8bits/char
<4>setting ulcon to uclk[480000] 00000003, brddiv to 26 [115200]
<6>console [ttySAC0] enabled
<6>Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
<6>Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
<4>_etext:0xc03c7000, _text:0xc0029000, _end:0xc048de1a, __init_end:0xc0029000, __init_begin:0xc0008000
<6>Memory: 160MB = 160MB total
<5>Memory: 156300KB available (3704K code, 791K data, 132K init)
<6>Calibrating delay loop... 499.71 BogoMIPS (lpj=2498560)
<4>Mount-cache hash table entries: 512
<6>CPU: Testing write buffer coherency: ok
<6>net_namespace: 932 bytes
<6>NET: Registered protocol family 16
<6>TCC8900 GPIO initialized
<4>i2c_register_driver: new style driver
<6>TCC clock driver initialized
<4>clock: xin: unimplemented function 'clk_enable' called
<4>attached TCC adc driver
<4>bio: create slab <bio-0> at 0
<5>SCSI subsystem initialized
<6>usbcore: registered new interface driver usbfs
<6>usbcore: registered new interface driver hub
<6>usbcore: registered new device driver usb
<6>cfg80211: Using static regulatory domain info
<6>cfg80211: Regulatory domain: US
<6> (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
<6> (2402000 KHz - 2472000 KHz @ 40000 KHz), (600 mBi, 2700 mBm)
<6> (5170000 KHz - 5190000 KHz @ 40000 KHz), (600 mBi, 2300 mBm)
<6> (5190000 KHz - 5210000 KHz @ 40000 KHz), (600 mBi, 2300 mBm)
<6> (5210000 KHz - 5230000 KHz @ 40000 KHz), (600 mBi, 2300 mBm)
<6> (5230000 KHz - 5330000 KHz @ 40000 KHz), (600 mBi, 2300 mBm)
<6> (5735000 KHz - 5835000 KHz @ 40000 KHz), (600 mBi, 3000 mBm)
<6>cfg80211: Calling CRDA for country: US
<6>Switched to NOHz mode on CPU #0
<6>NET: Registered protocol family 2
<6>IP route cache hash table entries: 2048 (order: 1, 8192 bytes)
<6>TCP established hash table entries: 8192 (order: 4, 65536 bytes)
<6>TCP bind hash table entries: 8192 (order: 3, 32768 bytes)
<6>TCP: Hash tables configured (established 8192 bind 8192)
<6>TCP reno registered
<6>NET: Registered protocol family 1
<6>initrd_start:0xc1000000, initrd_end:0xc1136af5
<6>checking if image is initramfs... it is
<6>Freeing initrd memory: 1240K
<4>---> 80eec0f8b92fc0 <---
<4> read_id crc error
<4>NetWinder Floating Point Emulator V0.97 (double precision)
<6>ashmem: initialized
<4>yaffs Nov 6 2010 04:01:36 Installing.
<6>msgmni has been set to 307
<6>alg: No test for stdrng (krng)
<6>io scheduler noop registered (default)
<6>i2c /dev entries driver
<4>i2c0 SCK(100) <-- input clk(40000Khz), prescale(7)
<4>i2c1 SCK(100) <-- input clk(40000Khz), prescale(7)
<6>tcc-i2c tcc-i2c: i2c-0: I2C adapter
<6> tccfb_init (built Nov 6 2010 04:01:52)
<4>clock: pll2: unimplemented function 'clk_enable' called
<4> tccfb_init LCDC:1
<4>tcc92xxx fb +probe
<4>tccfb_map_video_memory--->lk_map_cpu=0xcac00000
<6>fb0: tccfb frame buffer device
<6>TCC Overlay driver initializing
<6>HDMI Audio Driver ver. 1.1 (built Nov 6 2010 04:01:12)
<6>HDMI Driver ver. 1.2.1 (built Nov 6 2010 04:01:40)
<6>CEC Driver ver. 1.0 (built Nov 6 2010 04:01:12)
<6>hpd_init
<6>HPD Driver ver. 1.2 (built Nov 6 2010 04:01:40)
<6>3 hpd_init
<4>tcc_intr: init (ver 2.0)
<4>tcc_intr: init (ver 2.0)
<6>TCC rotation driver initializing
<6>TCC scaler driver initializing
<6>TCC scaler1 driver initializing
<6>TCCXX JPEG Encoder driver initializing
<6>TCCXX JPEG driver initializing
<6>TCC T-DMB tuner driver initializing
<6>tcc_clockctrl_init
<4>tcc_serial_init(c03e16c0,c03e1710)
<4>tcc_uart_probe
<4>tcc_serial_init_ports: initialising ports...
<6>tcc9200-uart.0: tcc-uart0 at MMIO 0xf0532000 (irq = 64) is a uart0
<4>tcc_serial_set_mctrl
<6>brd: module loaded
<6>loop: module loaded
<6>pmem: 1 init
<6>pmem_adsp: 0 init
<6>PPP generic driver version 2.4.2
<6>PPP Deflate Compression module registered
<6>PPP BSD Compression module registered
<6>Linux video capture interface: v2.00
<4>Driver 'sd' needs updating - please use bus_type methods
<4>tcc-mmc0: init.
<4>tcc-mmc1: init.
<4>[MTD TCC] [PORT CONFIG - CS[0, 1] [NAND Data Port: GPIO_B Hw4 ~ Hw11]
<4>[MTD TCC] DMA Alloc Addr:0x49897000, Size:1024
<4>[MTD TCC] [BClk 192MHZ][1Tick 53][RE-S:0,P:6,H:2][WR-S:0,P:3,H:2][COM-S:2,P:15,H:15]
<4>[Golden Info] [TCC_MTD] BadBlk:1028 [SERIAL]
<4>[Golden Info] [TCC_MTD] BadBlk:1032 [SERIAL]
<4>[Golden Info] [TCC_MTD] BadBlk:1036 [SERIAL]
<4>[Golden Info] [TCC_MTD] BadBlk:1037 [SERIAL]
<4>[Golden Info] [TCC_MTD] BadBlk:1048 [SERIAL]
<4>[Golden Info] [Nand Total Bad Block: 5]
<4>[MTD TCC] [PartName: boot] [StBlk : 28]
<4>[MTD TCC] [PartName: boot] [EndBlk: 47]
<4>[MTD TCC] [PartName: kpanic] [StBlk : 48]
<4>[MTD TCC] [PartName: kpanic] [EndBlk: 57]
<4>[MTD TCC] [PartName: system] [StBlk : 58]
<4>[MTD TCC] [PartName: system] [EndBlk: 417]
<4>[MTD TCC] [PartName: splash] [StBlk : 418]
<4>[MTD TCC] [PartName: splash] [EndBlk: 425]
<4>[MTD TCC] [PartName: cache] [StBlk : 426]
<4>[MTD TCC] [PartName: cache] [EndBlk: 505]
<4>[MTD TCC] [PartName: userdata] [StBlk : 506]
<4>[MTD TCC] [PartName: userdata] [EndBlk:1027]
<4>[MTD TCC] [PartName: recovery] [StBlk :1028]
<4>[MTD TCC] [PartName: recovery] [BadBlk:1028]
<4>[MTD TCC] [PartName: recovery] [BadBlk:1032]
<4>[MTD TCC] [PartName: recovery] [BadBlk:1036]
<4>[MTD TCC] [PartName: recovery] [BadBlk:1037]
<4>[MTD TCC] [PartName: recovery] [BadBlk:1048]
<4>[MTD TCC] [PartName: recovery] [EndBlk:1052]
<4>[MTD TCC] [PartName: misc] [StBlk :1053]
<4>[MTD TCC] [PartName: misc] [EndBlk:1054]
<4>[MTD TCC] [PartName: tcc] [StBlk :1055]
<4>[MTD TCC] [PartName: tcc] [EndBlk:1056]
<4>[MTD TCC] [MTDTotalBlk:1024] [MTDRervBlk:29] [MTDStBlk: 28] [MTDEdBlk:1081]
<4>[MTD TCC] NAND device: Manufacturer ID: 0x2c, Chip ID: 0x68
<6>[MTD BASE]Bus Width: 8 bit, PageSize: 4096
<6>Scanning device for bad blocks
<5>Creating 9 MTD partitions on NAND Flash:
<5>0x000000000000-0x000000a00000 : "boot"
<5>ftl_cs: FTL header not found.
<5>0x000000a00000-0x000000f00000 : "kpanic"
<4>[DoubleBuf] [EccType:16] [res:c100002]
<4>[DoubleBuf] [EccType:16] [res:c100002]
<4>[DoubleBuf] [EccType:16] [res:c100002]
<4>[DoubleBuf] [EccType:16] [res:c100002]
<4>[DoubleBuf] [EccType:16] [res:c100002]
<4>[DoubleBuf] [EccType:16] [res:c100002]
<4>[DoubleBuf] [EccType:16] [res:c100002]
<4>[DoubleBuf] [EccType:16] [res:c100002]
<4>[MTD-ReadPage-Fail] [BlkNum:48] [Error:0x0c100002]
<5>ftl_cs: FTL header not found.
<5>0x000000f00000-0x00000c300000 : "system"
<5>ftl_cs: FTL header not found.
<5>0x00000c300000-0x00000c700000 : "splash"
<5>ftl_cs: FTL header not found.
<5>0x00000c700000-0x00000ef00000 : "cache"
<4>[DoubleBuf] [EccType:16] [res:c100002]
<4>[DoubleBuf] [EccType:16] [res:c100002]
<4>[DoubleBuf] [EccType:16] [res:c100002]
<4>[DoubleBuf] [EccType:16] [res:c100002]
<4>[DoubleBuf] [EccType:16] [res:c100002]
<4>[DoubleBuf] [EccType:16] [res:c100002]
<4>[DoubleBuf] [EccType:16] [res:c100002]
<4>[DoubleBuf] [EccType:16] [res:c100002]
<4>[MTD-ReadPage-Fail] [BlkNum:427] [Error:0x0c100002]
<5>ftl_cs: FTL header not found.
<5>0x00000ef00000-0x00001f400000 : "userdata"
<5>ftl_cs: FTL header not found.
<7>mmc1: queuing CIS tuple 0x01 length 3
<5>0x00001f400000-0x00001fe00000 : "recovery"
<5>ftl_cs: FTL header not found.
<5>0x00001fe00000-0x00001ff00000 : "misc"
<5>ftl_cs: FTL header not found.
<5>0x00001ff00000-0x000020000000 : "tcc"
<4>[DoubleBuf] [EccType:16] [res:c100002]
<4>[DoubleBuf] [EccType:16] [res:c100002]
<4>[DoubleBuf] [EccType:16] [res:c100002]
<4>[DoubleBuf] [EccType:16] [res:c100002]
<4>[DoubleBuf] [EccType:16] [res:c100002]
<4>[DoubleBuf] [EccType:16] [res:c100002]
<4>[DoubleBuf] [EccType:16] [res:c100002]
<4>[DoubleBuf] [EccType:16] [res:c100002]
<4>[MTD-ReadPage-Fail] [BlkNum:1055] [Error:0x0c100002]
<5>ftl_cs: FTL header not found.
<4>tcc_tsif: spi1 init (Nov 6 2010 04:01:48)
<4>tcc-tsif1: init
<4>tcc_tsif: alloc DMA buffer @0xFF8F0000(Phy=0x49000000), size:2097152
<6>ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
<6>tcc-ohci tcc-ohci: TCC OHCI
<6>tcc-ohci tcc-ohci: new USB bus registered, assigned bus number 1
<6>tcc-ohci tcc-ohci: irq 49, io mem 0xf0500000
<7>mmc1: queuing CIS tuple 0x1a length 5
<7>mmc1: queuing CIS tuple 0x1b length 8
<7>mmc1: queuing CIS tuple 0x14 length 0
<7>mmc1: queuing CIS tuple 0x80 length 1
<7>mmc1: queuing CIS tuple 0x81 length 1
<7>mmc1: queuing CIS tuple 0x82 length 1
<6>mmc1: new SDIO card at address 0001
<6>usb usb1: configuration #1 chosen from 1 choice
<6>hub 1-0:1.0: USB hub found
<6>hub 1-0:1.0: 1 port detected
<6>usbcore: registered new interface driver cdc_acm
<6>cdc_acm: v0.26:USB Abstract Control Model driver for USB modems and ISDN adapters
<6>Initializing USB Mass Storage driver...
<6>usbcore: registered new interface driver usb-storage
<6>USB Mass Storage support registered.
<6>usbcore: registered new interface driver usbserial
<6>usbserial: USB Serial Driver core
<6>USB Serial support registered for GSM modem (1-port)
<6>usbcore: registered new interface driver option
<6>option: v0.7.2:USB Driver for GSM modems
<6>dwc_otg: version 2.60a 22-NOV-2006
<7>dwc_otg_driver_probe(c03cd028)
<7>base=0xf0550000
<7>dwc_otg_device=0xc9ef9aa0
<6>dwc_otg dwc_otg.0: DWC OTG Controller
<6>dwc_otg dwc_otg.0: new USB bus registered, assigned bus number 2
<6>dwc_otg dwc_otg.0: irq 48, io mem 0x00000000
<6>usb usb2: configuration #1 chosen from 1 choice
<6>hub 2-0:1.0: USB hub found
<6>hub 2-0:1.0: 1 port detected
<6>android init
<6>android_probe pdata: c03cdad8
<6>gadget: Android Eclair
<6>gadget: COBY
<6>android_bind
<4>android_bind_config,0, 2
<6>android_usb gadget: android_usb ready
<6>f_adb init
<6>android_register_function adb
<6>f_mass_storage init
<6>android_register_function usb_mass_storage
<6>mass_storage_bind_config
<6>fsg_probe pdata: c03cdac8
<6>android_usb gadget: Number of LUNs=2
<6>adb_bind_config
<6>mice: PS/2 mouse device common for all mice
<6>Telechips Keypad Driver
<6>input: telechips keypad as /devices/virtual/input/input0
<6>Telechips Touchscreen driver, (c) 2009 Telechips
<6>tcc-ts got loaded successfully.
<6>input: tcc-ts as /devices/platform/tcc-ts/input/input1
<4>TCC RTC, (c) 2009, Telechips
<4>tcc_rtc: alarm irq 43
<6>tcc-rtc tcc-rtc: rtc core: registered tcc-rtc as rtc0
<6>cpuidle: using governor ladder
<6>cpuidle: using governor menu
<6>usbcore: registered new interface driver usbhid
<6>usbhid: v2.6:USB HID core driver
<6>logger: created 64K log 'log_main'
<6>logger: created 256K log 'log_events'
<6>logger: created 64K log 'log_radio'
<6>Advanced Linux Sound Architecture Driver Version 1.0.18a.
<4>No device for DAI alc5621
<4>No device for DAI IEC958
<4>No device for DAI tcc-i2s
<4>No device for DAI tcc-spdif
<4>TCC Board probe [tcc_board_probe]
<4>== alsa-debug == [tea_spdif_setclock], clock_rate[44100]
<6>alc5621: ALC5621 Audio Codec 1.00
<4>i2c_register_driver: new style driver
<4>__attach_adapter: [Failure] id[0x0]class[0x0] id_table[alc5621]
<4>__attach_adapter: [Failure] id[0x0]class[0x0] id_table[alc5621]
<4>__attach_adapter: [Failure] id[0x0]class[0x0] id_table[alc5621]
<4>__attach_adapter: [Failure] id[0x0]class[0x0] id_table[alc5621]
<4>Set ID to device mode
<4>alc5621_init
<4>== alsa-debug == tcc_pcm_preallocate_dma_buffer size [65536]
<4>== alsa-debug == tcc_pcm_preallocate_dma_buffer size [65536]
<4>ID change ISR : Device
<6>asoc: alc5621 <-> tcc-i2s mapping ok
<4>== alsa-debug == tcc_pcm_preallocate_dma_buffer size [65536]
<6>asoc: IEC958 <-> tcc-spdif mapping ok
<3>dapm: alc5621: configuring unknown pin MICIN
<3>Failed to add route LHPOUT->Headset Jack
<6>ALSA device list:
<6> #0: tccx_board (alc5621)
<6>TCP cubic registered
<6>NET: Registered protocol family 10
<6>IPv6 over IPv4 tunneling driver
<6>NET: Registered protocol family 17
<6>TCC cpufreq driver initialized
<6>VFP support v0.3: implementor 41 architecture 1 part 20 variant b rev 5
<4>read time 2010/10/14 18:00:37
<6>tcc-rtc tcc-rtc: setting system clock to 2010-10-14 18:00:37 UTC (1287079237)
<6>Freeing init memory: 132K
<4>[#### BT ####] tcc_serial_startup port[0]
<4>request serial irq:64,retval:0
<4>tcc_serial_set_termios port[0]
<4>config: 8bits/char
<4>setting ulcon to uclk[480000] 00000003, brddiv to 26 [115200]
<4>tcc_serial_set_mctrl
<4>
<4>usb cable connected.
<4>tcc_serial_stop_rx
<4>[#### BT ####] tcc_serial_stop_rx port[0]
<4>[#### BT ####] tcc_serial_shutdown port[0]
<6>android_usb gadget: high speed config #1: android
<6>mmc0: new SDHC card at address b368
<6>mmcblk0: mmc0:b368 SDC 3.84 GiB
<6> mmcblk0: p1 p2 p3
<4>[#### BT ####] tcc_serial_startup port[0]
<4>request serial irq:64,retval:0
<4>tcc_serial_set_termios port[0]
<4>config: 8bits/char
<4>setting ulcon to uclk[480000] 00000003, brddiv to 26 [115200]
<4>tcc_serial_stop_rx
<4>[#### BT ####] tcc_serial_stop_rx port[0]
<4>[#### BT ####] tcc_serial_shutdown port[0]
<3>init: cannot open '/initlogo.rle'
<3>init: Unable to open persistent property directory /data/property errno: 2
<6>enabling adb
<6>adb_open
<6>yaffs: dev is 32505860 name is "mtdblock4"
<6>yaffs: passed flags ""
<4>yaffs: Attempting MTD mount on 31.4, "mtdblock4"
<4>yaffs: auto selecting yaffs2
<4>[DoubleBuf] [EccType:16] [res:c100002]
<4>[DoubleBuf] [EccType:16] [res:c100002]
<4>[DoubleBuf] [EccType:16] [res:c100002]
<4>[DoubleBuf] [EccType:16] [res:c100002]
<4>[DoubleBuf] [EccType:16] [res:c100002]
<4>[DoubleBuf] [EccType:16] [res:c100002]
<4>[DoubleBuf] [EccType:16] [res:c100002]
<4>[DoubleBuf] [EccType:16] [res:c100002]
<4>[MTD-ReadPage-Fail] [BlkNum:427] [Error:0x0c100002]
<4>yaffs: restored from checkpoint
<4>yaffs_read_super: isCheckpointed 1
<6>android_usb gadget: high speed config #1: android
<4>adb_function_set_alt intf: 1 alt: 0
<6>adb_release
<6>adb_open
<4>save exit: isCheckpointed 1
<4>usb usb1: root hub lost power or was reset
<6>yaffs: dev is 32505861 name is "mtdblock5"
<6>yaffs: passed flags ""
<4>yaffs: Attempting MTD mount on 31.5, "mtdblock5"
<4>yaffs: auto selecting yaffs2
<4>yaffs_read_super: isCheckpointed 0
<6>yaffs: dev is 32505858 name is "mtdblock2"
<6>yaffs: passed flags ""
<4>yaffs: Attempting MTD mount on 31.2, "mtdblock2"
<4>yaffs: auto selecting yaffs2
<6>yaffs: dev is 32505858 name is "mtdblock2"
<6>yaffs: passed flags ""
<4>yaffs: Attempting MTD mount on 31.2, "mtdblock2"

ICS Wired and Wireless connected at the same time?

I have a rooted ICS tablet with wireless and RJ45 ethernet which both work well on their own. However once the Wifi is turned on and connected the lan is unusable. The lan (eth0) doesn't even list under ifconfig when the wifi is connected. For example... (loopback device removed from each)
With wifi on (and connected) and no ethernet cable plugged in. Static Lan config details entered.
# ifconfig
eth0 Link encap:Ethernet HWaddr xxxxxxxxxx
inet addr:192.168.2.2 Bcast:192.168.2.255 Mask:255.255.255.0
inet6 addr: xxxxxxxxxxxx Scope:Link
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:8
wlan0 Link encap:Ethernet HWaddr xxxxxxxxxx
inet addr:192.168.1.139 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: xxxxxxxxxxxx Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:128 errors:0 dropped:3148 overruns:0 frame:0
TX packets:121 errors:0 dropped:1 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:57072 (55.7 KiB) TX bytes:21477 (20.9 KiB)
When I plug in the Lan cable, with wifi still connected. So no ethernet device listed at all now.
# ifconfig
wlan0 Link encap:Ethernet HWaddr xxxxxxxxxxx
inet addr:192.168.1.139 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: xxxxxxxxxxxxxx Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:10 errors:0 dropped:6105 overruns:0 frame:0
TX packets:6 errors:0 dropped:2 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:69219 (67.5 KiB) TX bytes:26190 (25.5 KiB)
And with the lan still connected but the Wifi disconnected.
# ifconfig
eth0 Link encap:Ethernet HWaddr xxxxxxxxxx
inet addr:192.168.2.2 Bcast:192.168.2.255 Mask:255.255.255.0
inet6 addr: xxxxxxxxxxx Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:22 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:1740 (1.6 KiB)
Interrupt:8
wlan0 Link encap:Ethernet HWaddr xxxxxxxxxxxx
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:9 errors:0 dropped:2941 overruns:0 frame:0
TX packets:5 errors:0 dropped:4 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:26005 (25.3 KiB) TX bytes:21645 (21.1 KiB)
I know in Linux or Windows I can do this but I cannot figure out if it's possible in ICS.
Suggestions anyone?
Thanks
The eth0 device disappears once you connect the RJ45 cable to the switch?! Strange indeed.
Check the log using "dmesg" when this happens. It might give you some clues about what the kernel is up to during this.
Check what chip-set your device is using for networking. If you are unlucky, it's a combined chip for wifi and cable, only able to maintain one network stack / physical interface simultaneously. You'll find this in the kernel log as well.
kuisma said:
The eth0 device disappears once you connect the RJ45 cable to the switch?! Strange indeed.
Check the log using "dmesg" when this happens. It might give you some clues about what the kernel is up to during this.
Check what chip-set your device is using for networking. If you are unlucky, it's a combined chip for wifi and cable, only able to maintain one network stack / physical interface simultaneously. You'll find this in the kernel log as well.
Click to expand...
Click to collapse
Don't really know that much about this but I can see the stuff in the logs. Thanks for your help.
Here's what happens when I have the wifi connected and plug in the Lan.
Code:
[ 6087.391000] duplex
[ 6087.391000] 100m
[ 6087.392000] ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ 6087.395000] changed the Multicast,mcount=2
[ 6087.399000] add mac address:33:33:00:00:00:01,bit=1
[ 6087.404000] add mac address:01:00:5e:00:00:01,bit=32
[ 6087.408000] set hash low=2,high=1
[ 6087.412000] changed the filter setting to :4
[ 6087.418000] changed the Multicast,mcount=3
[ 6087.420000] add mac address:33:33:ff:cd:ee:af,bit=60
[ 6087.425000] add mac address:33:33:00:00:00:01,bit=1
[ 6087.430000] add mac address:01:00:5e:00:00:01,bit=32
[ 6087.435000] set hash low=2,high=10000001
[ 6087.439000] changed the filter setting to :4
[ 6087.518000] changed the Multicast,mcount=3
[ 6087.518000] add mac address:33:33:ff:cd:ee:af,bit=60
[ 6087.521000] add mac address:33:33:00:00:00:01,bit=1
[ 6087.526000] add mac address:01:00:5e:00:00:01,bit=32
[ 6087.531000] set hash low=2,high=10000001
[ 6087.535000] changed the filter setting to :4
[ 6087.561000] cpufreq-meson: transition: 300000 --> 400000
[ 6087.812000] changed the Multicast,mcount=3
[ 6087.812000] add mac address:33:33:ff:cd:ee:af,bit=60
[ 6087.816000] add mac address:33:33:00:00:00:01,bit=1
[ 6087.821000] add mac address:01:00:5e:00:00:01,bit=32
[ 6087.826000] set hash low=2,high=10000001
[ 6087.830000] changed the filter setting to :4
[ 6087.834000] netdev_close
[ 6087.836000] NET MDA is stoped,val=8502!
[ 6087.841000] eth0: closed
And here's what happens when I turn off the wifi.
Code:
[ 6212.214000] init: service 'dhcpcd_wlan0' is being killed
[ 6212.221000] init: waitpid returned pid 12221, status = 00000009
[ 6212.222000] init: process 'dhcpcd_wlan0', pid 12221 exited
[ 6212.228000] -871x_drv - drv_close, bup=1
[ 6212.243000] rtl8192c_set_FwJoinBssReport_cmd mstatus(0)
[ 6212.322000] init: service 'wpa_supplicant' is being killed
[ 6212.325000] init: waitpid returned pid 12199, status = 00000009
[ 6212.328000] init: process 'wpa_supplicant', pid 12199 exited
[ 6212.584000] netdev_open
[ 6212.584000] NET MDA descpter start addr=e227e800
[ 6212.586000] write mac add to:e3ca1848: 00 01 23 cd ee af |..#...|
[ 6212.592000] Current DMA mode=0
[ 6212.595000] eth0: opened (irq 8).
[ 6212.598000] changed the Multicast,mcount=1
[ 6212.599000] add mac address:01:00:5e:00:00:01,bit=32
[ 6212.604000] set hash low=0,high=1
[ 6212.607000] changed the filter setting to :4
[ 6212.612000] ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 6212.634000] changed the Multicast,mcount=1
[ 6212.634000] add mac address:01:00:5e:00:00:01,bit=32
[ 6212.638000] set hash low=0,high=1
[ 6212.641000] changed the filter setting to :4
[ 6212.682000] +rtw_drv_halt
[ 6212.682000] ##########rtw_suspend_lock_uninit###########
[ 6212.684000] usbcore: deregistering interface driver rtl8192cu
[ 6212.690000] ###=> usb_read_port_complete => urb status(-108)
[ 6212.722000] +rtw_dev_remove
[ 6212.722000] rtw_sta_flush
[ 6212.944000] changed the Multicast,mcount=1
[ 6212.944000] add mac address:01:00:5e:00:00:01,bit=32
[ 6212.947000] set hash low=0,high=1
[ 6212.950000] changed the filter setting to :4
[ 6212.981000] ===> rtw_dev_unload
[ 6212.981000] usb_read_port_cancel
[ 6212.982000] usb_write_port_cancel
[ 6212.986000] ###> rtw_cmd_thread break.................
[ 6212.991000] ==> rtl8192cu_hal_deinit
[ 6212.994000] bkeepfwalive(0)
[ 6212.997000] card disble HWSM...........
[ 6213.006000] changed the Multicast,mcount=1
[ 6213.006000] add mac address:01:00:5e:00:00:01,bit=32
[ 6213.010000] set hash low=0,high=1
[ 6213.013000] changed the filter setting to :4
[ 6213.040000] <=== rtw_dev_unload
[ 6213.040000] +r871xu_dev_remove, hw_init_completed=0
[ 6213.044000] free_recv_skb_queue not empty, 4
[ 6213.047000] rtw_unregister_early_suspend
[ 6213.070000] =====> rtl8192c_free_hal_data =====
[ 6213.070000] <===== rtl8192c_free_hal_data =====
[ 6213.074000] usb attached..., try to reset usb device
[ 6213.261000] usb 2-1: reset high speed USB device using dwc_otg and address 3
[ 6213.472000] -r871xu_dev_remove, done
[ 6213.473000] -rtw_drv_halt
[ 6213.761000] cpufreq-meson: transition: 1000000 --> 900000
[ 6213.961000] cpufreq-meson: transition: 900000 --> 800000
[ 6213.981000] wifi 0
[ 6214.161000] usb 2-1: USB disconnect, address 3
[ 6214.361000] cpufreq-meson: transition: 800000 --> 700000
[ 6214.611000] duplex
[ 6214.611000] 100m
[ 6214.611000] ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ 6214.615000] changed the Multicast,mcount=2
[ 6214.619000] add mac address:33:33:00:00:00:01,bit=1
[ 6214.624000] add mac address:01:00:5e:00:00:01,bit=32
[ 6214.628000] set hash low=2,high=1
[ 6214.632000] changed the filter setting to :4
[ 6214.636000] changed the Multicast,mcount=3
[ 6214.640000] add mac address:33:33:ff:cd:ee:af,bit=60
[ 6214.645000] add mac address:33:33:00:00:00:01,bit=1
[ 6214.650000] add mac address:01:00:5e:00:00:01,bit=32
[ 6214.655000] set hash low=2,high=10000001
[ 6214.659000] changed the filter setting to :4
[ 6214.700000] changed the Multicast,mcount=3
[ 6214.700000] add mac address:33:33:ff:cd:ee:af,bit=60
[ 6214.703000] add mac address:33:33:00:00:00:01,bit=1
[ 6214.708000] add mac address:01:00:5e:00:00:01,bit=32
[ 6214.713000] set hash low=2,high=10000001
[ 6214.717000] changed the filter setting to :4
meglome said:
Don't really know that much about this but I can see the stuff in the logs. Thanks for your help.
Here's what happens when I have the wifi connected and plug in the Lan.
[....]
Click to expand...
Click to collapse
Ok. The eth0 device closes down once the link transits to up. What if you try re-enabling eth0 with the link already up (i.e. already connected to the switch)?
# ifconfig eth0 up
It may be unlisted by ifconfig because it's down. "ifconfig -a" lists all interfaces, up as well as down, but it's dependent of which ifconfig you are using. The toolbox/busybox versions may be quite striped.

[Q] how can I reverse tether on Ubuntu?

Here's the deal, I have Ubuntu and 2 wifi cards.
wlan5 is long-range has 192.168.1.42 with internet on 192.168.1.1
wlan3 is internal, connected to my HTC Rezound with 192.168.43.104, and can ping 192.168.43.1, my phone.
I set up a Tether network on my CM10 Rezound because my phone doesn't see AdHoc networks, which is what I usually do to share internet from my laptop.
So I have enabled IP forwarding on my Ubuntu laptop.
Code:
# sysctl net.ipv4.ip_forward=1
net.ipv4.ip_forward = 1
ifconfig:
Code:
wlan3 Link encap:Ethernet HWaddr 9c:b7:0d:a5:45:67
inet addr:192.168.43.104 Bcast:192.168.43.255 Mask:255.255.255.0
inet6 addr: fe80::9eb7:dff:fea5:4567/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:492 errors:0 dropped:0 overruns:0 frame:0
TX packets:536 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:47825 (47.8 KB) TX bytes:69980 (69.9 KB)
wlan5 Link encap:Ethernet HWaddr 00:c0:ca:58:c9:5f
inet addr:192.168.1.42 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::2c0:caff:fe58:c95f/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:14602 errors:0 dropped:0 overruns:0 frame:0
TX packets:12503 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:11577132 (11.5 MB) TX bytes:3411451 (3.4 MB)
My route on Ubuntu:
Code:
route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default buffalo.setup 0.0.0.0 UG 0 0 0 wlan5
192.168.1.0 * 255.255.255.0 U 0 0 0 wlan5
192.168.43.0 * 255.255.255.0 U 0 0 0 wlan3
And my iptables on Ubuntu
Code:
# iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
On my laptop I can ping external IP 208.67.222.222, and phone 192.168.43.1
Now on my HTC Rezound [192.168.43.1] I can only ping my laptop [192.168.43.104].
On my phone:
Code:
localhost / $ ip route add default via 192.168.43.104
localhost / $ ip route
default via 192.168.43.104 dev wlan0
192.168.43.0/24 dev wlan0 proto kernel scope link src 192.168.43.1
ifconfig:
Code:
$ ifconfig wlan0
wlan0 Link encap:Ethernet HWaddr 02:1A:11:FB:32:04
inet addr:192.168.43.1 Bcast:192.168.43.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:54113 errors:0 dropped:5692 overruns:0 frame:0
TX packets:36647 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:47922457 (45.7 MiB) TX bytes:6148861 (5.8 MiB)
and lastly, iptables:
Code:
$ iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
bw_INPUT all -- anywhere anywhere
Chain FORWARD (policy ACCEPT)
target prot opt source destination
bw_FORWARD all -- anywhere anywhere
natctrl_FORWARD all -- anywhere anywhere
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
bw_OUTPUT all -- anywhere anywhere
droidwall all -- anywhere anywhere
Chain bw_FORWARD (1 references)
target prot opt source destination
Chain bw_INPUT (1 references)
target prot opt source destination
all -- anywhere anywhere ! quota globalAlert: 2097152 bytes
RETURN all -- anywhere anywhere
all -- anywhere anywhere owner socket exists
Chain bw_OUTPUT (1 references)
target prot opt source destination
all -- anywhere anywhere ! quota globalAlert: 2097152 bytes
RETURN all -- anywhere anywhere
all -- anywhere anywhere owner socket exists
Chain costly_shared (0 references)
target prot opt source destination
penalty_box all -- anywhere anywhere
Chain droidwall (1 references)
target prot opt source destination
Chain droidwall-3g (0 references)
target prot opt source destination
Chain droidwall-reject (0 references)
target prot opt source destination
Chain droidwall-wifi (0 references)
target prot opt source destination
Chain natctrl_FORWARD (1 references)
target prot opt source destination
Chain penalty_box (1 references)
target prot opt source destination
(I have ProxyDroid but I've disabled it)
So now I try to ping an external IP, but it doesn't work. It never gets a reply, or doesn't give an error message after about a minute, and then I ^C it.
Now my end goal is to have all my apps use the wifi connection on 192.168.43.104. I know I must have done something wrong, but I cannot figure it out. I've been trying to figure it out by googling, etc, for weeks now, and I thought it was about time to ask here.
If you know a network guru on the forum, please send him a link to this, I really want to get it working.
Also, I will mention I tried using SSH Tunnel (Beta) pointing to my 192.168.43.104 laptop with SSHd running [I can ssh localhost]. It doesn't work, it says it failed to connect. I should note with adb shell, I can SSH into my laptop 192.168.43.104 perfectly, via the wifi tether network.
I think that's it, I hope it wasn't too long that nobody reads it.
Well ANY help would be appreciated. I have tried a few proxy apps, using SOCKS5 pointed at my 192.168.43.104 IP but none of them have worked so far.

[Q] 3G USB stick on KatKiss 5.1.1 # 23 only works in terminal as root

Hello, sorry for the bad English.
I use UMTS manager with USB stick Huawei Technologies Co., Ltd. E169/E620/E800 HSDPA Modem
I use KatKiss 5.1.1 # 23: Linux localhost [email protected]_5.1-lite+ #1 SMP PREEMPT Sun Mar 29 20:01:49 EDT 2015 armv7l GNU/Linux
The connection is successful and the device is assigned an IP address and a DNS, but no browser connects.
Only from terminal I am sure the Internet connection is working, but only as root:
some examples and configurations: (website is www google it)
What can I do?
thanks
ping as user (no busybox) not work
[email protected]:/ $ ping 8.8.8.8
connect: Network is unreachable
Click to expand...
Click to collapse
ping as user (busybox) not work
2|[email protected]:/ $ busybox ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8): 56 data bytes
ping: permission denied (are you root?)
Click to expand...
Click to collapse
ping as root (busybox) work
1|[email protected]:/ $ su -c busybox ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8): 56 data bytes
64 bytes from 8.8.8.8: seq=1 ttl=57 time=313.672 ms
64 bytes from 8.8.8.8: seq=2 ttl=57 time=331.287 ms
Click to expand...
Click to collapse
ping as user (with website and no buybox) not work
[email protected]:/ $ ping website
ping: unknown host website
Click to expand...
Click to collapse
ping as root (with website and buybox) work
2|[email protected]:/ $ su -c busybox ping website
PING website (216.58.212.99): 56 data bytes
64 bytes from 216.58.212.99: seq=0 ttl=55 time=412.709 ms
64 bytes from 216.58.212.99: seq=1 ttl=56 time=351.083 ms
Click to expand...
Click to collapse
ifconfig
[email protected]:/ $ su -c busybox ifconfig
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:135 errors:0 dropped:0 overruns:0 frame:0
TX packets:135 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:9350 (9.1 KiB) TX bytes:9350 (9.1 KiB)
ppp0 Link encapoint-to-Point Protocol
inet addr:10.56.51.182 P-t-P:10.64.64.64 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:16 errors:0 dropped:0 overruns:0 frame:0
TX packets:18 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:844 (844.0 B) TX bytes:947 (947.0 B)
wlan0 Link encap:Ethernet HWaddr C8:60:00:18:A3:71
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:2241 errors:0 dropped:1074 overruns:0 frame:0
TX packets:910 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:711994 (695.3 KiB) TX bytes:170561 (166.5 KiB)
Click to expand...
Click to collapse
getprop | grep -i dns
[email protected]:/ $ getprop | grep -i dns
[dhcp.wlan0.dns1]: [8.8.8.8]
[dhcp.wlan0.dns2]: [10.0.26.254]
[dhcp.wlan0.dns3]: []
[dhcp.wlan0.dns4]: []
[net.dns1]: [208.67.222.222]
[net.dns2]: [10.0.26.254]
Click to expand...
Click to collapse
getprop | grep -i net
[email protected]:/ $ getprop | grep -i net
[init.svc.netd]: [running]
[net.bt.name]: [Android]
[net.change]: [net.interfaces.defaultroute]
[net.dns1]: [208.67.222.222]
[net.dns2]: [10.0.26.254]
[net.hostname]: [android-f07487736dcd2cf3]
[net.interfaces.defaultroute]: [ppp0]
[net.qtaguid_enabled]: [1]
[net.tcp.default_init_rwnd]: [60]
[ro.ethernet.autoEnable]: [yes]
[ro.ethernet.interface]: [eth0]
Click to expand...
Click to collapse
iproute
[email protected]:/ $ iproute
default via 10.64.64.64 dev ppp0
10.64.64.64 dev ppp0 src 10.12.66.116
[email protected]:/ $
Click to expand...
Click to collapse

Categories

Resources