You can shot me private e-mail if you have questions.
thanks
Yi
However, contributions are welcome.
--
Chih-Wei
Android-x86 project
http://www.android-x86.org
I got ethernet working on honeycomb based on the patches of Yi Sun for
gingerbread.
TODO:
- finish ethernet Settings screen
- Static ethernet IP addresses implementation
I'm a git/repo nitwit. I started a new branch henri-honeycomb, which I
would like to rename to 'honeycomb-ethernet'.
How do I send my changes to android-x86?
On Dec 7, 3:31 am, Chih-Wei Huang <cwhu...@android-x86.org> wrote:
> Theethernetsupport is not ported to honeycomb and ics.
> Nobody works on it yet. That probably means it doesn't important.
>
> However, contributions are welcome.
>
> 2011-12-3 上午4:11 於 "Jules" <jh314...@googlemail.com> 寫道:
>
>
>
> > The release notes for the release candidate honeycomb build and for
> > the ICS development build state thatethernetis not working in
> --
> You received this message because you are subscribed to the Google Groups "Android-x86" group.
> To post to this group, send email to andro...@googlegroups.com.
> To unsubscribe from this group, send email to android-x86...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/android-x86?hl=en.
>
On Dec 10, 7:21 pm, Yi Sun <beyo...@gmail.com> wrote:
> Nice, you can try to use "git diff" to generate a patch or git format-patch will also do the work
> Thanks
> Yi
>
> On Dec 10, 2011, at 9:03 AM, Henri <hfman...@gmail.com> wrote:
>
>
>
>
>
>
>
> > Hello all,
>
> > I gotethernetworking on honeycomb based on the patches of Yi Sun for
> > gingerbread.
> > TODO:
> > - finishethernetSettings screen
> > - StaticethernetIP addresses implementation
I think most of the code changes are ok.
Two questions:
1. I'm not sure about the changes in the kernel.diff. Could you give some background info on the changes
2. In your earlier email, you have mentioned about "finishing the ethernet setting and static IP address implementations" in your TODO list. Have you put these into the current patch already?
Chih-wei, could you also take a look on the patch?
Thank
Yi
1. in kernel/drivers/usb/gadget/f_rndis.c the function
int rndis_bind_config(struct usb_configuration *c, u8
ethaddr[ETH_ALEN], u32 vendorID, const char *manufacturer)
requires 4 parameters. The function
static int __init rndis_do_config(struct usb_configuration *c)
in drivers/usb/gadget/ether.c only supplied 2 so I filled in a dummy
vendorID and manufacturer.
2. This still needs to be done. The static configuration no longer can
be compiled because NetworkUtils.configureInterface etc are no longer
avaible in honeycomb.
Maybe someone can have a look at the ethernet configuration screens?
Also the file frameworks/base/packages/SystemUI/src/com/android/
systemui/statusbar/StatusBarPolicy.java still needs to be integrated.
Kind regards,
Henri
On Dec 12, 6:27 am, Yi Sun <beyo...@gmail.com> wrote:
> I have also uploaded the file to the download section on android-x86.org and hope people can start to pick up the patch and test it.
>
> I think most of the code changes are ok.
> Two questions:
> 1. I'm not sure about the changes in the kernel.diff. Could you give some background info on the changes
> 2. In your earlier email, you have mentioned about "finishing the ethernet setting and static IP address implementations" in your TODO list. Have you put these into the current patch already?
>
> Chih-wei, could you also take a look on the patch?
>
> Thank
> Yi
>
> On Dec 11, 2011, at 7:03 AM, Henri wrote:
>
>
>
>
>
>
>
> > I've put my changes onhttp://mansoft.nl/android/ethernet.diff.tar.gz
as I recall the kernels are as follows... 3.01 is used for Honeycomb-x86 3.08 is used for ICS-x86 On Dec 12, 12:53 pm, Yi Sun <beyo...@gmail.com> wrote:
On 12/12/2011 12:32 PM, tabletsx86 wrote:
> saw this and wanted to reply to it..
>
> "Also for your first patch, others have reported merge
> conflict. Please help"
>
> no integration/merge issues with Henri's stuff on my end
>
> initial building is working fine...
>
> testing will begin later after build completes..
>
> On Dec 10, 12:03 pm, Henri<hfman...@gmail.com> wrote:
>
On Dec 15, 2011, at 9:09 PM, tabletsx86 wrote:
> test results/iso available here:
>
> http://tabletsx86.org/HC-ETHERNET-RESULTS.htm
>
> many thanks to Henri for a job well done...
>
> On Dec 13, 2:39 pm, Henri <hfman...@gmail.com> wrote:
>> Thanks to tabletsx86' testing a correctedhttp://mansoft.nl/android/ethernet.diff.tar.gz
2011/12/16 Yi Sun <bey...@gmail.com>:
On Dec 16, 6:09 am, tabletsx86 <rbg.tablets...@gmail.com> wrote:
> test results/iso available here:
>
> http://tabletsx86.org/HC-ETHERNET-RESULTS.htm
>
> many thanks to Henri for a job well done...
>
> On Dec 13, 2:39 pm, Henri <hfman...@gmail.com> wrote:
>
>
>
>
>
>
>
> > Thanks to tabletsx86' testing a correctedhttp://mansoft.nl/android/ethernet.diff.tar.gz
- I fixed the layout - so the screen will show all caption TextViews
in the configuration dialog --> user gets an idea what he is doing
- I added german translation
Complete patch from henry with my changes included:
http://www.ceh-photo.de/ethernet.diff.tar.gz
On 16 Dez., 08:08, Chih-Wei Huang <cwhu...@android-x86.org> wrote:
> OK, let me check it after audio issue solved.
>
> 2011/12/16 Yi Sun <beyo...@gmail.com>:
I just got some time to test the Ethernet patches.
It works mostly, except the dns is not set correctly.
It set
$ getprop | grep dns
[dhcp.eth0.dns1]: [10.0.3.254]
[dhcp.eth0.dns2]:
[dhcp.eth0.dns3]:
[dhcp.eth0.dns4]:
[net.change]: [net.dnschange]
[net.dns1]: [8.8.8.8]
[net.dnschange]: [1]
[net.eth0.dns1]: [49.0.0.0]
[net.eth0.dns2]:
In logcat
E/ConnectiveService( 1557): exception setting dns server:
java.lang.IllegalStateException: Error communitcating with native
daemon to set dns for interface
E/ConnectiveService( 1557): no dns provided - using 8.8.8.8
Thus, it didn't find my dns (10.0.3.254), but used a default 8.8.8.8.
This won't work for a device without a real internet connection.
Did you see the issue? Could you please check it?
Thanks a lot!
2011/12/14 Henri <hfma...@gmail.com>:
> Thanks to tabletsx86' testing a corrected http://mansoft.nl/android/ethernet.diff.tar.gz
> is available for download
--
Chih-Wei
Android-x86 project
http://www.android-x86.org
there is no folder in packages/providers/DownloadProvider called
DownloadProvider or DownloadProviders
is this a new folder added??? There seems to be only the patch file in
there...
am I missing something....
On Jan 15, 10:06 pm, Robill Tian Supatrio <rsupat...@gmail.com> wrote:
> changes:
> - fixed typo packages/providers/DownloadProvider/DownloadProviders.
> - added script to batch patching.
>
> e.g.
>
> > tar xvfz ethernet-ics.tar.gz
> > cd ethernet-ics
> > ./do-gitapply.sh /path/to/android-x86
>
eg:
cd /src/android-ics/build/
git apply /src/android-ics/patch/ethernet.diff/build/build.diff
cd /src/android-ics/frameworks/base/
git apply
/src/android-ics/patch/ethernet.diff/frameworks/base/frameworks-base.diff
cd /src/android-ics/kernel/
git apply /src/android-ics/patch/ethernet.diff/kernel/kernel.diff
cd /src/android-ics/packages/apps/Settings/
git apply
/src/android-ics/patch/ethernet.diff/packages/apps/Settings/packages-apps-Settings.diff
cd /src/android-ics/packages/providers/DownloadProvider/
git apply
/src/android-ics/patch/ethernet.diff/packages/providers/DownloadProvider/packages-providers-DownloadProvider.diff
>> 53KAfficherT�l�charger
Though the ethernet patch looks good,
I was still reluctant to add the ethernet support in this format.
Because it's still buggy, too bloated, and not well integrated
with the android framework (the most important reason).
Not all of our targets have ethernet.
So it's better to make ethernet support to be a build-time
optional component. However, in the current format it is
impossible since java doesn't support conditional compile.
Over time I have been considering a better and simpler
solution to support ethernet.
A proper idea is to simulate it as a wifi or 3G interface.
* I read wpa_supplicant doc, it supports wired (ethernet) driver.
so theoretically it's possible to run wpa_supplicant on
an ethernet interface to make it work like a wifi.
* We may write a fake ril (radio interface layer) to simulate 3G.
The idea is from SDK emulator. It simulates 3G via
the host network interface.
I more like the 3G idea. It's more appropriate for
a device with both wifi and ethernet like most netbooks.
Daniel, are you interesting to survey the possibility?
2012/1/30 Daniel Fages <dfa...@gmail.com>:
> Hi,
> here's a proposed patch (over the last ethernet-ics patch) to solve the DHCP
> problem.
> With this patch, the net.dnsX properties should be modified correctly.
> Tested with my virtualbox image (soon to be released).
--
Hi Chih-Wei,
Ok I'll look at this and let you know my progress.
Regards,
Daniel.
No. I don't consider the ethernet support to be a development feature.
The proposed patch is just for an end user.
As a developer, you can enable ethernet easily,
(by netcfg eth0 dhcp or something like)
even earlier than run android init.
> Having said that, do we really need to integrate with current AOSP ICS
> framework? I know very little about
> wpa_supplicant, but enough to make my eyes 'crossed'. My concern is, if we
> simulate ethernet like what
> you said, does it not make ethernet more complicated? If something is wrong
> (e.g bug in wpa_supplicant)
> we could end up debugging ethernet itself, before we could move forward to
> debug everything else.
If we implement ethernet support via wpa_supplicant,
then debugging ethernet just means debugging
wpa_supplicant. I don't see the difference.
(otherwise what did you mean debugging ethernet itself?
debugging the driver?)
> Of course if we do have adb over USB (which I do not know), then this point
> is moot.
No.
Most devices I work now don't have ethernet,
or even don't have workable wifi.
The trick is using debug mode.
The logcat will be saved to /data/log.txt automatically.
I would be glad by the way to have a tip on how to integrate my
changes with an incremental patch.
As for ethernet and developement - I'm in you on this one, I think it
is critical for development, but as the ethernet is only kernel
dependent, you can make it work by
1. Adding CONFIG_<your_ethernet_driver>=m (or y) to your kernel
config (i.e. CONFIG_E1000E for some standard intel chipsets )
2. ifconfig eth0 <your_ip>
3. From the development host: adb connect <your_ip>
4. Now you should be able to use adb as if your target was any other phone
Dan,
Good job on the VM config - I loved it! Can you please publish your
latest device/<your_tree> tree, along with the kernel configuration?
Your configuration missed the kernel config.
Thanks,
Ron
For my purposes, I just used my own quick-n-dirty patch to fix the
only issue I have personally faced (not using the Ethernet option at
settings) - which is the DownloadProvider refusing to
understand that ethernet connection is connected. But this workaround
is, of course, terrible (I just ignored all connectivity issues when
downloading):
project packages/providers/DownloadProvider/
diff --git a/src/com/android/providers/downloads/DownloadThread.java
b/src/com/android/providers/downloads/DownloadThread.java
index 9080e72..a9fcac8 100644
--- a/src/com/android/providers/downloads/DownloadThread.java
+++ b/src/com/android/providers/downloads/DownloadThread.java
@@ -277,6 +277,12 @@ public class DownloadThread extends Thread {
} else if (networkUsable == DownloadInfo.NETWORK_BLOCKED) {
status = Downloads.Impl.STATUS_BLOCKED;
}
+
+ if (true)
+{
+ Log.e(Constants.TAG, "RM: Avoiding network exception
networkUsable=" + networkUsable + "FIXME" + status + "," +
mInfo.getLogMessageForNetworkError(networkUsable)) ;
+ return;
+}
throw new StopRequestException(status,
mInfo.getLogMessageForNetworkError(networkUsable));
}
On Thu, Mar 1, 2012 at 3:49 AM, Robill Tian Supatrio
I must admit that my git skills are somewhere between terrible to
non-existing - so I apologize in advance if what I post here is
completely irrelevant/inappropriate
Taking those patches and applying them on latest repo should work with
no rejects.
I tested it on various hardware with Intel's e1000e module (add
CONFIG_E1000E to your kernel config).
Was not able to test it on virtual box yet because I am not yet sure
what is the CONFIG to enable eth0 ( adding CONFIG_PCI32 did not help,
although AFAIK it
is the driver associated with virtual box's eth0)
Not working:
Some applications (e.g. GoogleApps sign in) require Network
connectivity, and require a workaround for the "No Internet
Connection" on status bar.
Other than that, the introduced patch is working pretty well.
Regards,
Ron
Sorry about that.
On Sat, Mar 10, 2012 at 4:16 AM, tabletsx86 <rbg.tab...@gmail.com> wrote:
> more info..seems your patch fails to create the file...
>
> from Robill's patch as installed...
>
> Checking patch core/jni/Android.mk...
> Checking patch core/jni/AndroidRuntime.cpp...
> Checking patch core/jni/android_net_ethernet.cpp...
> Checking patch core/res/res/values/config.xml...
>
> Applied patch core/jni/AndroidRuntime.cpp cleanly.
> Applied patch core/jni/android_net_ethernet.cpp cleanly.
> Applied patch core/res/res/values/config.xml cleanly.
> Applied patch ethernet/java/android/net/ethernet/EthernetDevInfo.aidl
> cleanly.
>
>
> from your patch as installed
>
> Checking patch core/jni/Android.mk...
> Checking patch core/jni/AndroidRuntime.cpp...
> Checking patch core/res/res/values/config.xml...
> Checking patch ethernet/java/android/net/ethernet/
> EthernetDevInfo.aidl...
>
> Applied patch core/jni/AndroidRuntime.cpp cleanly.
> Applied patch core/res/res/values/config.xml cleanly.
> Applied patch ethernet/java/android/net/ethernet/EthernetDevInfo.aidl
> cleanly.
> Applied patch ethernet/java/android/net/ethernet/EthernetDevInfo.java
> cleanly.
>
> On Mar 9, 9:06 pm, tabletsx86 <rbg.tablets...@gmail.com> wrote:
>> trying to test the patch...
>>
>> applying on latest repo is fine...
>>
>> build fails....
>>
>> make: *** No rule to make target `frameworks/base/core/jni/
>> android_net_ethernet.cpp', needed by `out/target/product/generic_x86/
>> obj/SHARED_LIBRARIES/libandroid_runtime_intermediates/
>> android_net_ethernet.o'. Stop.
>>
>> find -name android_net_ethernet.cpp shows file doesn't exist....
>>
>> checked Robill's patch for frameworks/base/0001-xxx and seems your
>> patch
>> references the file but cannot see where file is created??
>>
>> I can grap the file from pre RC1 builds but would like some insight
>> first before I go
>> too far....
>>
>> thanks
>> > >>> > <cwhu...@android-x86.org>
>> > >>> > wrote:
>>
>> > >>> >> 2012/2/1 Robill Tian Supatrio <rsupat...@gmail.com>:
>> > EthernetPatch_ics-x86-4.0-RC1.tar
>>
>> ...
>>
>> read more »
got you patch working...one issue is systemUI crash when clicking
settings...cannot seem to find the debug.egl.hw=0 you refered to...???
> ...
>
> read more »
--
You received this message because you are subscribed to the Google Groups "Android-x86" group.
To post to this group, send email to andro...@googlegroups.com.
To unsubscribe from this group, send email to android-x86...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/android-x86?hl=en.
How about usb tethering (as host) support? I have tested it, shared my Android phone internet access over USB and works!
# modprobe rndis_host
# netcfg usb0 up
# netcfg usb0 dhcp
# setprop net.dns1 8.8.8.8
yes I am using userdebug..thanks Chris..
On Mar 12, 10:31 am, Christopher Hrabia <c.hra...@gmail.com> wrote:
> I could help out with that issue if you only have this problem in userdebug
> build:
>
> You need to add a public default constructor to following class:
> in
> class /packages/apps/Settings/src/com/android/settings/ethernet/EthernetSettings.java
>
> public EthernetSettings() {
> }
>
> Don't know why its necessary.
>
> I hope I could help.
>
> 2012/3/12 tabletsx86 <rbg.tablets...@gmail.com>
Ron.
On Mon, Mar 12, 2012 at 10:04 PM, tabletsx86 <rbg.tab...@gmail.com> wrote:
> issue appears to be deeper than originally thought...
>
> some of the merge from Robill's patches appear to be
> the issue...but thanks for the idea...
>
> On Mar 12, 10:31 am, Christopher Hrabia <c.hra...@gmail.com> wrote:
>> I could help out with that issue if you only have this problem in userdebug
>> build:
>>
>> You need to add a public default constructor to following class:
>> in
>> class /packages/apps/Settings/src/com/android/settings/ethernet/EthernetSettings.java
>>
>> public EthernetSettings() {
>> }
>>
>> Don't know why its necessary.
>>
>> I hope I could help.
>>
>> 2012/3/12 tabletsx86 <rbg.tablets...@gmail.com>
Oops - forgot to put a full patch... what is your current android-x86 version?
--
You received this message because you are subscribed to the Google Groups "Android-x86" group.
To view this discussion on the web visit https://groups.google.com/d/msg/android-x86/-/T2byiFKZyb8J.
Oops - forgot to put a full patch... what is your current android-x86 version?
On May 12, 2012 11:56 PM, "regs" wrote:
It appears to work as NAT... I can even add Google Account and use Play Market.
четверг, 5 апреля 2012 г., 14:24:42 UTC+4 пользователь regs написал:Bridge, but does it matter if DHCP works and IP can be obtained after manual netcfg eth0 dhcp--
четверг, 5 апреля 2012 г. 4:22:48 UTC+4 пользователь David Young написал:I'm using that build on VirtualBox, and ethernet appears to work for me. What are your VB network settings? I have mine set to NAT, with the host computer on a wired connection.
You received this message because you are subscribed to the Google Groups "Android-x86" group.
To view this discussion on the web visit https://groups.google.com/d/msg/android-x86/-/T2byiFKZyb8J.
To post to this group, send email to andro...@googlegroups.com.
To unsubscribe from this group, send email to android-x86+unsubscribe@googlegroups.com.