This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Beableboard XM rev B Ethernet not available even though detected.

Hi,

I have been using the Froyo and Gingerbread prebuilt images for the past couple of months with my rev B Xm board and have noticed that in Froyo the Ethernet adapter works just fine if you set the IP address manually (board didn't grab an IP address with DHCP so I set static IP and DNS) but in Gingerbread there is no option for setting Ethernet configuration (although DHCP does enable the Beagle to grab an IP address but no DNS).

From the console I checked initially:

# netcfg
lo       UP    127.0.0.1       255.0.0.0       0x00000049
usb0     DOWN  0.0.0.0         0.0.0.0         0x00001002

and if you do netcfg usb0 dhcp it reads

# netcfg
lo       UP    127.0.0.1       255.0.0.0       0x00000049
usb0     UP    192.168.1.5     255.255.255.0   0x00001043

and it pings just fine:

# ping 192.168.1.1
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
64 bytes from 192.168.1.1: icmp_seq=1 ttl=255 time=0.885 ms
64 bytes from 192.168.1.1: icmp_seq=2 ttl=255 time=0.763 ms
64 bytes from 192.168.1.1: icmp_seq=3 ttl=255 time=0.732 ms
64 bytes from 192.168.1.1: icmp_seq=4 ttl=255 time=0.732 ms
64 bytes from 192.168.1.1: icmp_seq=5 ttl=255 time=0.824 ms
64 bytes from 192.168.1.1: icmp_seq=6 ttl=255 time=0.763 ms
64 bytes from 192.168.1.1: icmp_seq=7 ttl=255 time=0.885 ms
64 bytes from 192.168.1.1: icmp_seq=8 ttl=255 time=0.793 ms
64 bytes from 192.168.1.1: icmp_seq=9 ttl=255 time=0.732 ms
64 bytes from 192.168.1.1: icmp_seq=10 ttl=255 time=0.793 ms
64 bytes from 192.168.1.1: icmp_seq=11 ttl=255 time=0.762 ms
64 bytes from 192.168.1.1: icmp_seq=12 ttl=255 time=0.824 ms
64 bytes from 192.168.1.1: icmp_seq=13 ttl=255 time=0.732 ms
64 bytes from 192.168.1.1: icmp_seq=14 ttl=255 time=0.824 ms
64 bytes from 192.168.1.1: icmp_seq=15 ttl=255 time=0.854 ms
64 bytes from 192.168.1.1: icmp_seq=16 ttl=255 time=0.885 ms
64 bytes from 192.168.1.1: icmp_seq=17 ttl=255 time=0.763 ms
64 bytes from 192.168.1.1: icmp_seq=18 ttl=255 time=0.824 ms
64 bytes from 192.168.1.1: icmp_seq=19 ttl=255 time=4.39 ms
64 bytes from 192.168.1.1: icmp_seq=20 ttl=255 time=0.793 ms
64 bytes from 192.168.1.1: icmp_seq=21 ttl=255 time=0.733 ms
64 bytes from 192.168.1.1: icmp_seq=22 ttl=255 time=0.824 ms
64 bytes from 192.168.1.1: icmp_seq=23 ttl=255 time=0.824 ms
64 bytes from 192.168.1.1: icmp_seq=24 ttl=255 time=0.824 ms
64 bytes from 192.168.1.1: icmp_seq=25 ttl=255 time=0.977 ms
64 bytes from 192.168.1.1: icmp_seq=26 ttl=255 time=0.824 ms
64 bytes from 192.168.1.1: icmp_seq=27 ttl=255 time=0.763 ms
64 bytes from 192.168.1.1: icmp_seq=28 ttl=255 time=0.793 ms
64 bytes from 192.168.1.1: icmp_seq=29 ttl=255 time=0.763 ms
64 bytes from 192.168.1.1: icmp_seq=30 ttl=255 time=0.885 ms
64 bytes from 192.168.1.1: icmp_seq=31 ttl=255 time=0.824 ms
64 bytes from 192.168.1.1: icmp_seq=32 ttl=255 time=0.824 ms
64 bytes from 192.168.1.1: icmp_seq=33 ttl=255 time=0.885 ms
^C
--- 192.168.1.1 ping statistics ---
33 packets transmitted, 33 received, 0% packet loss, time 32002ms
rtt min/avg/max/mdev = 0.732/0.918/4.394/0.617 ms

Any help would be greatly appreciated.

Thanks in advance,

Anthony

 

 

  • Please paste the output of 'getprop' command after you have brought up the ethernet interface. That may provide some clues.

  • # netcfg
    lo       UP    127.0.0.1       255.0.0.0       0x00000049
    usb0     DOWN  0.0.0.0         0.0.0.0         0x00001002
    # netcfg usb0 dhcp
    usb0: link up, 100Mbps, full-duplex, lpa 0x45E1
    # getprop
    [ro.ril.wake_lock_timeout]: [0]
    [ro.secure]: [0]
    [ro.allow.mock.location]: [1]
    [ro.debuggable]: [1]
    [persist.service.adb.enable]: [1]
    [ro.factorytest]: [0]
    [ro.serialno]: []
    [ro.bootmode]: [unknown]
    [ro.baseband]: [unknown]
    [ro.carrier]: [unknown]
    [ro.bootloader]: [unknown]
    [ro.hardware]: [omap3]
    [ro.revision]: [32]
    [ro.build.id]: [GRH55]
    [ro.build.display.id]: [beagleboard-eng 2.3 GRH55 eng.a0393957.20110331.094806 test-keys]
    [ro.build.version.incremental]: [eng.a0393957.20110331.094806]
    [ro.build.version.sdk]: [9]
    [ro.build.version.codename]: [REL]
    [ro.build.version.release]: [2.3]
    [ro.build.date]: [Thu Mar 31 09:49:29 IST 2011]
    [ro.build.date.utc]: [1301545169]
    [ro.build.type]: [eng]
    [ro.build.user]: [a0393957]
    [ro.build.host]: [swubn01]
    [ro.build.tags]: [test-keys]
    [ro.product.model]: [beagleboard]
    [ro.product.brand]: [TI]
    [ro.product.name]: [beagleboard]
    [ro.product.device]: [beagleboard]
    [ro.product.board]: [beagleboard]
    [ro.product.cpu.abi]: [armeabi-v7a]
    [ro.product.cpu.abi2]: [armeabi]
    [ro.product.manufacturer]: [unknown]
    [ro.product.locale.language]: [mdpi]
    [ro.product.locale.region]: []
    [ro.wifi.channels]: []
    [ro.board.platform]: [omap3]
    [ro.build.product]: [beagleboard]
    [ro.build.description]: [beagleboard-eng 2.3 GRH55 eng.a0393957.20110331.094806 test-keys]
    [ro.build.fingerprint]: [TI/beagleboard/beagleboard:2.3/GRH55/eng.a0393957.20110331.094806:eng/test-keys]
    [ro.config.notification_sound]: [OnTheHunt.ogg]
    [ro.config.alarm_alert]: [Alarm_Classic.ogg]
    [ro.kernel.android.checkjni]: [1]
    [ro.setupwizard.mode]: [OPTIONAL]
    [net.bt.name]: [Android]
    [net.change]: [net.usb0.dns2]
    [dalvik.vm.stack-trace-file]: [/data/anr/traces.txt]
    [persist.sys.timezone]: [Europe/Athens]
    [hw.nobattery]: [true]
    [hw.nophone]: [false]
    [hw.nopm]: [false]
    [ro.FOREGROUND_APP_ADJ]: [0]
    [ro.VISIBLE_APP_ADJ]: [1]
    [ro.PERCEPTIBLE_APP_ADJ]: [2]
    [ro.HEAVY_WEIGHT_APP_ADJ]: [3]
    [ro.SECONDARY_SERVER_ADJ]: [4]
    [ro.BACKUP_APP_ADJ]: [5]
    [ro.HOME_APP_ADJ]: [6]
    [ro.HIDDEN_APP_MIN_ADJ]: [7]
    [ro.EMPTY_APP_ADJ]: [15]
    [ro.FOREGROUND_APP_MEM]: [2048]
    [ro.VISIBLE_APP_MEM]: [3072]
    [ro.PERCEPTIBLE_APP_MEM]: [4096]
    [ro.HEAVY_WEIGHT_APP_MEM]: [4096]
    [ro.SECONDARY_SERVER_MEM]: [6144]
    [ro.BACKUP_APP_MEM]: [6144]
    [ro.HOME_APP_MEM]: [6144]
    [ro.HIDDEN_APP_MEM]: [5120]
    [ro.EMPTY_APP_MEM]: [6144]
    [net.tcp.buffersize.default]: [4096,87380,110208,4096,16384,110208]
    [net.tcp.buffersize.wifi]: [4095,87380,110208,4096,16384,110208]
    [net.tcp.buffersize.umts]: [4094,87380,110208,4096,16384,110208]
    [net.tcp.buffersize.edge]: [4093,26280,35040,4096,16384,35040]
    [net.tcp.buffersize.gprs]: [4092,8760,11680,4096,8760,11680]
    [wifi.interface]: [tiwlan0]
    [init.svc.console]: [running]
    [init.svc.pvr]: [running]
    [init.svc.servicemanager]: [running]
    [init.svc.vold]: [running]
    [init.svc.netd]: [running]
    [init.svc.debuggerd]: [running]
    [init.svc.ril-daemon]: [running]
    [init.svc.zygote]: [running]
    [init.svc.media]: [running]
    [init.svc.dbus]: [running]
    [init.svc.installd]: [running]
    [init.svc.keystore]: [running]
    [init.svc.adbd]: [running]
    [init.svc.bootanim]: [stopped]
    [hw.keyboards.65536.devname]: [NOVATEK USB Keyboard]
    [hw.keyboards.65537.devname]: [NOVATEK USB Keyboard]
    [net.hostname]: [android_8da406d9f34576bb]
    [dev.bootcomplete]: [1]
    [gsm.sim.operator.numeric]: []
    [gsm.sim.operator.alpha]: []
    [gsm.sim.operator.iso-country]: []
    [gsm.sim.state]: [UNKNOWN]
    [gsm.current.phone-type]: [1]
    [gsm.operator.alpha]: []
    [gsm.operator.numeric]: []
    [gsm.operator.iso-country]: []
    [gsm.operator.isroaming]: [false]
    [sys.boot_completed]: [1]
    [ro.runtime.firstboot]: [86411942]
    [net.usb0.dns1]: [192.168.1.1]
    [net.usb0.dns2]: []
    #

     

     

     

     

  • Hi Anthony,


    Please set "setprop net.dns1 <net.usb0.dns1>" at the console.


    Regards,

    Arun

  • Setting the DNS is all that was indeed needed. Curious though why the Ethernet configuration option is not available within the Android UI whereas its available in Froyo. 

    Thank you both so much for your swift assistance.

    Anthony

  • Android does not natively support the ethernet interface, it needs to be patched-in.

    As you have noticed we have not yet integrated this feature into rowboat/TI Android DevKit  for gingerbread yet.

  • Apologies for my impatience, I'm sure the patches will be placed in due time when everything is ready.

    After browsing a few of web pages with the Browser my serial console keeps getting pages and pages of the following (during which everything pretty much freezes and then it stops and mouse/keyboard is available again):

    # swapper: page allocation failure. order:3, mode:0x20
    [<c00396d0>] (unwind_backtrace+0x0/0xcc) from [<c008e830>] (__alloc_pages_nodemask+0x4a4/0x508)
    [<c008e830>] (__alloc_pages_nodemask+0x4a4/0x508) from [<c00aaaec>] (cache_alloc_refill+0x24c/0x4c4)
    [<c00aaaec>] (cache_alloc_refill+0x24c/0x4c4) from [<c00aadec>] (__kmalloc+0x88/0xd8)
    [<c00aadec>] (__kmalloc+0x88/0xd8) from [<c02b6bd4>] (__alloc_skb+0x44/0xf4)
    [<c02b6bd4>] (__alloc_skb+0x44/0xf4) from [<c01f0098>] (rx_submit+0x24/0x1b0)
    [<c01f0098>] (rx_submit+0x24/0x1b0) from [<c01f718c>] (usb_hcd_giveback_urb+0xa0/0xec)
    [<c01f718c>] (usb_hcd_giveback_urb+0xa0/0xec) from [<c020805c>] (qh_completions+0xb0/0x3e0)
    [<c020805c>] (qh_completions+0xb0/0x3e0) from [<c0208b80>] (ehci_work+0xc4/0x864)
    [<c0208b80>] (ehci_work+0xc4/0x864) from [<c0209a38>] (ehci_irq+0x164/0x18c)
    [<c0209a38>] (ehci_irq+0x164/0x18c) from [<c01f6e48>] (usb_hcd_irq+0x3c/0x8c)
    [<c01f6e48>] (usb_hcd_irq+0x3c/0x8c) from [<c00855ec>] (handle_IRQ_event+0x34/0xf0)
    [<c00855ec>] (handle_IRQ_event+0x34/0xf0) from [<c0086bd0>] (handle_level_irq+0x88/0xec)
    [<c0086bd0>] (handle_level_irq+0x88/0xec) from [<c003306c>] (asm_do_IRQ+0x6c/0x8c)
    [<c003306c>] (asm_do_IRQ+0x6c/0x8c) from [<c00339f0>] (__irq_svc+0x30/0x80)
    Exception stack(0xc047ff78 to 0xc047ffc0)
    ff60:                                                       00000000 c048ee38
    ff80: 00b16ac3 c00442b8 c047e000 c0481c30 c04c6344 c0481c28 80027f98 413fc082
    ffa0: 0000001f 00000000 00000002 c047ffc0 c0044280 c0044300 60000013 ffffffff
    [<c00339f0>] (__irq_svc+0x30/0x80) from [<c0044300>] (omap3_pm_idle+0x48/0x4c)
    [<c0044300>] (omap3_pm_idle+0x48/0x4c) from [<c00350dc>] (cpu_idle+0x48/0x88)
    [<c00350dc>] (cpu_idle+0x48/0x88) from [<c00089ec>] (start_kernel+0x234/0x288)
    [<c00089ec>] (start_kernel+0x234/0x288) from [<80008034>] (0x80008034)
    Mem-info:
    Normal per-cpu:
    CPU    0: hi:   90, btch:  15 usd:  66
    active_anon:24026 inactive_anon:3936 isolated_anon:0
     active_file:6673 inactive_file:9990 isolated_file:0
     unevictable:0 dirty:23 writeback:3 unstable:0
     free:749 slab_reclaimable:638 slab_unreclaimable:1539
     mapped:11542 shmem:79 pagetables:1235 bounce:0
    Normal free:2996kB min:2036kB low:2544kB high:3052kB active_anon:96104kB inactive_anon:15744kB active_file:26692kB inactive_file:39960kB unevictable:0kB isolated(anon):0kB isolated(file):0kB present:260096kB mlocked:0kB dirty:92kB writeback:12kB mapped:46168kB shmem:316kB slab_reclaimable:2552kB slab_unreclaimable:6156kB kernel_stack:2272kB pagetables:4940kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:0 all_unreclaimable? no
    lowmem_reserve[]: 0 0
    Normal: 57*4kB 198*8kB 74*16kB 0*32kB 0*64kB 0*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 2996kB
    16742 total pagecache pages
    0 pages in swap cache
    Swap cache stats: add 0, delete 0, find 0/0
    Free swap  = 0kB
    Total swap = 0kB
    65536 pages of RAM
    2361 free pages
    11985 reserved pages
    2177 slab pages
    103927 pages shared
    0 pages swap cached
    swapper: page allocation failure. order:3, mode:0x20
    [<c00396d0>] (unwind_backtrace+0x0/0xcc) from [<c008e830>] (__alloc_pages_nodemask+0x4a4/0x508)
    [<c008e830>] (__alloc_pages_nodemask+0x4a4/0x508) from [<c00aaaec>] (cache_alloc_refill+0x24c/0x4c4)
    [<c00aaaec>] (cache_alloc_refill+0x24c/0x4c4) from [<c00aadec>] (__kmalloc+0x88/0xd8)
    [<c00aadec>] (__kmalloc+0x88/0xd8) from [<c02b6bd4>] (__alloc_skb+0x44/0xf4)
    [<c02b6bd4>] (__alloc_skb+0x44/0xf4) from [<c01f0098>] (rx_submit+0x24/0x1b0)
    [<c01f0098>] (rx_submit+0x24/0x1b0) from [<c01f718c>] (usb_hcd_giveback_urb+0xa0/0xec)
    [<c01f718c>] (usb_hcd_giveback_urb+0xa0/0xec) from [<c020805c>] (qh_completions+0xb0/0x3e0)
    [<c020805c>] (qh_completions+0xb0/0x3e0) from [<c0208b80>] (ehci_work+0xc4/0x864)
    [<c0208b80>] (ehci_work+0xc4/0x864) from [<c0209a38>] (ehci_irq+0x164/0x18c)
    [<c0209a38>] (ehci_irq+0x164/0x18c) from [<c01f6e48>] (usb_hcd_irq+0x3c/0x8c)
    [<c01f6e48>] (usb_hcd_irq+0x3c/0x8c) from [<c00855ec>] (handle_IRQ_event+0x34/0xf0)
    [<c00855ec>] (handle_IRQ_event+0x34/0xf0) from [<c0086bd0>] (handle_level_irq+0x88/0xec)
    [<c0086bd0>] (handle_level_irq+0x88/0xec) from [<c003306c>] (asm_do_IRQ+0x6c/0x8c)
    [<c003306c>] (asm_do_IRQ+0x6c/0x8c) from [<c00339f0>] (__irq_svc+0x30/0x80)
    Exception stack(0xc047ff78 to 0xc047ffc0)
    ff60:                                                       00000000 c048ee38
    ff80: 00b16ac3 c00442b8 c047e000 c0481c30 c04c6344 c0481c28 80027f98 413fc082
    ffa0: 0000001f 00000000 00000002 c047ffc0 c0044280 c0044300 60000013 ffffffff
    [<c00339f0>] (__irq_svc+0x30/0x80) from [<c0044300>] (omap3_pm_idle+0x48/0x4c)
    [<c0044300>] (omap3_pm_idle+0x48/0x4c) from [<c00350dc>] (cpu_idle+0x48/0x88)
    [<c00350dc>] (cpu_idle+0x48/0x88) from [<c00089ec>] (start_kernel+0x234/0x288)
    [<c00089ec>] (start_kernel+0x234/0x288) from [<80008034>] (0x80008034)

     

  • I getting same error too,  im using 2.6.32 which is come from froyo2.2 sources , This is kernel error , but i cant find to solve that.

     

    Anyone can help ?

     

    Thanks

     

  • I found a solution for that problem

     

    You can type 

    echo 8192 > /proc/sys/vm/min_free_kbytes

     

    on console.

     

    It solves the kalloc error.