USB Networking problem

petercstevenson at telus.net petercstevenson at telus.net
Sat Dec 15 21:21:53 UTC 2012


OK, so I think that I found the correct enable file. There is a file
called /sys/devices/virtual/android_usb/android0/enable. A lot of other
enable files link to this file, including one
at /sys/class/android_usb/f_rndis/device/enable.

But that still leaves me with the rest of the error messages:

error: SIOCGIFFLAGS (No such device)
error: SIOCSIFADDR (No such device)
No such device

These seem to be ifconfig error messages. The command "ifconfig usb0 up"
gives the first SIOCGIFFLAGS error.

Thanks,

Peter


On Sun, 2012-12-16 at 02:00 +0800, Randy Li wrote:
> 于 2012年12月16日 01:49, petercstevenson at telus.net 写道:
> > ls /sys/class
> >
> > android_usb
> > backlight
> > bdi
> > block
> > bluetooth
> > firmware
> > gpio
> > graphics
> > i2c-adapter
> > i2c-dev
> > input
> > lcd
> > mem
> > misc
> > mmc_host
> > mtd
> > net
> > power_supply
> > ppp
> > pvr
> > regulator
> > rfkill
> > rtc
> > scsi_device
> > scsi_disk
> > scsi_generic
> > scsi_host
> > sec
> > sound
> > spi_master
> > switch
> > timed_output
> > tty
> > usb_device
> > video4linux
> >
> > ls /sys/devices/platform
> >
> > alarm
> > arm-pmu.0
> > bcm4329_wlan.1
> > bt_rfkill
> > bt_sleep
> > dwc_otg
> > fiq_debugger.2
> > gpio-event.0
> > i2c-gpio.10
> > i2c-gpio.11
> > i2c-gpio.12
> > i2c-gpio.14
> > i2c-gpio.4
> > i2c-gpio.5
> > i2c-gpio.6
> > i2c-gpio.7
> > i2c-gpio.8
> > i2c-gpio.9
> > modemctl
> > power
> > power.0
> > pvrsrvkm
> > ram_console
> > reg-dummy
> > reg-s5pv210-pd.0
> > reg-s5pv210-pd.1
> > reg-s5pv210-pd.2
> > reg-s5pv210-pd.3
> > reg-s5pv210-pd.4
> > reg-s5pv210-pd.5
> > s3c-adc
> > s3c-fimc.0
> > s3c-fimc.1
> > s3c-fimc.2
> > s3c-jpg
> > s3c-mfc
> > s3c-pl330.0
> > s3c-pl330.1
> > s3c-pl330.2
> > s3c-sdhci.0
> > s3c-sdhci.2
> > s3c-sdhci.3
> > s3c-usbgadget
> > s3c2410-rtc
> > s3c2410-wdt
> > s3c2440-i2c.0
> > s3c2440-i2c.1
> > s3c2440-i2c.2
> > s3c24xx-pwm.0
> > s3c24xx-pwm.1
> > s3c24xx-pwm.2
> > s3c24xx-pwm.3
> > s3c_lcd
> > s3c_otghcd
> > s3cfb
> > s5pc110-onenand
> > s5pv210-cpufreq
> > s5pv210-uart.0
> > s5pv210-uart.1
> > s5pv210-uart.3
> > samsung-audio
> > samsung-i2s.0
> > sec-battery
> > sec_jack.1
> > snd-soc-dummy
> > soc-audio.0
> > uevent
> > watchdog
> >
> >
> > Thanks,
> >
> > Peter Stevenson
> >
> >
> >
> > On Sun, 2012-12-16 at 01:38 +0800, Randy Li wrote:
> >> 于 2012年12月16日 01:29, petercstevenson at telus.net 写道:
> >>> Hello list,
> >>>
> >>> I received my Samsung Nexus S and installed Replicant without a hitch.
> >>> Thanks!
> >>>
> >>> I am now trying to set up USB Networking as per the instructions at
> >>> http://redmine.replicant.us/projects/replicant/wiki/ReplicantUSBNetworking. When I run the run_dev.sh script on the device, I get the following error message:
> >>>
> >>> Starting Replicant USB Networking
> >>> ./run_dev.sh[56]: cannot create /sys/class/usb_composite/rndis/enable:
> >>> No such file or directory
> >>> error: SIOCGIFFLAGS (No such device)
> >>> error: SIOCSIFADDR (No such device)
> >>> No such device
> >>>
> >>> I am wondering if this script is for an earlier version of Replicant.
> >>> Has anyone done this with Replicant 4.0?
> >>>
> >>> Also, the chmod command in the instructions didn't work. It seems like
> >>> the Replicant shell only understands the octal notation.
> >>>
> >>> Thanks,
> >>>
> >>> Peter Stevenson
> >>>
> >>>
> >>> _______________________________________________
> >>> Replicant mailing list
> >>> Replicant at lists.osuosl.org
> >>> http://lists.osuosl.org/mailman/listinfo/replicant
> >>>
> >>>
> >> could you paste ls /sys/class and ls /sys/devices/platform
> >
> >
> >
> >
> may be you need to echo something to the file in
> 
> /sys/class/android_usb
> you can ls that directory, you see whether there are some filed named with switch or rndis
> 





More information about the Replicant mailing list