This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
WiFi Realtek usb
#11
(07-23-2018, 11:25 AM)Im4Tinker Wrote: Finally a little success. I could establish the connection, but without internet sharing. The script tells that the chip is not able to be set in duplex. But I wish I'm wrong, because it might be done by no routing to internet.

On several other computer I had it done, but in several cases I removed NetwokManager from interfering.

So, just to be on the topic, I'm sure that the USB dongle has the capabilties, I just tried on my desktop. Unfortunately I don't have the skill, yet, to compile this kernel.  Blush

Hi Im4Tinker,

rtl8723bs didn't enable concurrent mode on Debian. That's  why you can't set STA and AP mode at the same time.

To enable concurrent mode, you need to modify the Makefile for rtl8723bs.
https://github.com/TinkerBoard/debian_ke...s/Makefile
Add an EXTRA_CFLAGS, then recompile and install module.
Code:
EXTRA_CFLAGS += -DCONFIG_CONCURRENT_MODE


Regarding to create_ap script, please do below commands before create AP.
Code:
sudo nmcli radio wifi off
sudo rfkill unblock wifi

I could access internet through tinker's AP. 
Hope this information could help you.

Thanks,
Sam
[-] The following 1 user Likes SamHsu's post:
  • Im4Tinker
Reply
#12
(07-27-2018, 07:03 AM)SamHsu Wrote: I could access internet through tinker's AP. 
Hope this information could help you.

You save my day, Thank You.
My problem is that I've some difficulties to build the kernel on a 64bit Arch. I found some conflict when I tried to set up the necessary packages. So operation is temporary suspended Smile
Reply
#13
(07-27-2018, 11:05 PM)Im4Tinker Wrote:
(07-27-2018, 07:03 AM)SamHsu Wrote: I could access internet through tinker's AP. 
Hope this information could help you.

You save my day, Thank You.
My problem is that I've some difficulties to build the kernel on a 64bit Arch. I found some conflict when I tried to set up the necessary packages. So operation is temporary suspended Smile

Dear, Im4Tinker
    Do you check the below link ?
    https://tinkerboarding.co.uk/wiki/index....are#Kernel
    If yes, maybe you can post your error message, and we can check if we can have some suggestions to you.
Reply
#14
(07-30-2018, 02:19 AM)jamess Wrote: Dear, Im4Tinker
    Do you check the below link ?
I think that apt-get is not used in Archlinux Big Grin. So for some reason, should I convert my usage in a debian derived distro ?
I used debian before, but it's about 12 years back. It is like speaking a different dialect.

I'd like to see TB don't rely only to one distro. Linux programs are the same, just distributed in different compilations.

I'm looking to setup a virtual box or cross-compiling, so I might compile from there. I confess I don't like to get hooked to the TV-set, better if I can handle within my laptop. Perhaps I may use more power to compile faster.
So I have installed the packages
Code:
$ pacman -Qs arm-linux-gnueabihf
local/arm-linux-gnueabihf-binutils 2.30-4
    A set of programs to assemble and manipulate binary and object files (arm-linux-gnueabihf)
local/arm-linux-gnueabihf-gcc 8.1.0-1
    The GNU Compiler Collection (arm-linux-gnueabihf)
local/arm-linux-gnueabihf-glibc 2.27-3
    GNU C Library (arm-linux-gnueabihf)
local/arm-linux-gnueabihf-linux-api-headers 4.16.1-1
    Kernel headers sanitized for use in userspace (arm-linux-gnueabihf)
During the compilation I found some error that says was missing dtc, so I added the regular one from Arch. I don't know if there're differences because is doing a cross compiling.

I'll give more details later

EDIT
Here's the error output

Code:
$ make CROSS_COMPILE=arm-linux-gnueabihf- O=miniarm-rk3288 tinker-rk3288_defconfig all -j4
[/color][/color]
make[1]: Entering directory '/tmp/debian_u-boot/miniarm-rk3288'

  GEN     ./Makefile

#

# configuration written to .config

#

  GEN     ./Makefile

scripts/kconfig/conf  --silentoldconfig Kconfig

  CHK     include/config.h

  CFG     u-boot.cfg

  GEN     include/autoconf.mk.dep

  CFG     spl/u-boot.cfg

  GEN     include/autoconf.mk

  GEN     spl/include/autoconf.mk

  CHK     include/config/uboot.release

  GEN     ./Makefile

  CHK     include/generated/timestamp_autogenerated.h

  UPD     include/generated/timestamp_autogenerated.h

  Using .. as source for U-Boot

  CHK     include/generated/version_autogenerated.h

  CHK     include/generated/generic-asm-offsets.h

  CHK     include/generated/asm-offsets.h

  HOSTCC  tools/lib/crc8.o

  HOSTCC  tools/mkenvimage.o

  HOSTCC  tools/lib/crc32.o

  HOSTCC  tools/aisimage.o

In file included from ../tools/../lib/libfdt/libfdt.h:10,

                 from ../tools/../include/libfdt.h:1,

                 from ../tools/fdt_host.h:11,

                 from ../tools/imagetool.h:24,

                 from ../tools/aisimage.c:8:

/usr/include/libfdt_env.h:70:30: error: conflicting types for 'fdt64_t'

 typedef uint64_t FDT_BITWISE fdt64_t;

                              ^~~~~~~

In file included from <command-line>:

./../include/libfdt_env.h:19:16: note: previous declaration of 'fdt64_t' was here

 typedef __be64 fdt64_t;

                ^~~~~~~

In file included from ./../include/libfdt_env.h:12,

                 from <command-line>:

/usr/include/libfdt_env.h:90:24: error: expected ')' before 'x'

 static inline uint32_t fdt32_to_cpu(fdt32_t x)

                        ^~~~~~~~~~~~

./../include/compiler.h:71:9: error: expected ')' before '&' token

  ((((x) & 0xff000000) >> 24) | \

         ^

./../include/compiler.h:71:23: error: expected ')' before '>>' token

  ((((x) & 0xff000000) >> 24) | \

                       ^~

./../include/compiler.h:71:30: error: expected ')' before '|' token

  ((((x) & 0xff000000) >> 24) | \

                              ^

/usr/include/libfdt_env.h:94:23: error: expected ')' before 'x'

 static inline fdt32_t cpu_to_fdt32(uint32_t x)

                       ^~~~~~~~~~~~

./../include/compiler.h:71:9: error: expected ')' before '&' token

  ((((x) & 0xff000000) >> 24) | \

         ^

./../include/compiler.h:71:23: error: expected ')' before '>>' token

  ((((x) & 0xff000000) >> 24) | \

                       ^~

./../include/compiler.h:71:30: error: expected ')' before '|' token

  ((((x) & 0xff000000) >> 24) | \

                              ^

/usr/include/libfdt_env.h:99:24: error: expected ')' before 'x'

 static inline uint64_t fdt64_to_cpu(fdt64_t x)

                        ^~~~~~~~~~~~

./../include/compiler.h:76:9: error: expected ')' before '&' token

  ((((x) & 0xff00000000000000##sfx) >> 56) | \

         ^

./../include/compiler.h:76:36: error: expected ')' before '>>' token

  ((((x) & 0xff00000000000000##sfx) >> 56) | \

                                    ^~

./../include/compiler.h:76:43: error: expected ')' before '|' token

  ((((x) & 0xff00000000000000##sfx) >> 56) | \

                                           ^

/usr/include/libfdt_env.h:103:23: error: expected ')' before 'x'

 static inline fdt64_t cpu_to_fdt64(uint64_t x)

                       ^~~~~~~~~~~~

./../include/compiler.h:76:9: error: expected ')' before '&' token

  ((((x) & 0xff00000000000000##sfx) >> 56) | \

         ^

./../include/compiler.h:76:36: error: expected ')' before '>>' token

  ((((x) & 0xff00000000000000##sfx) >> 56) | \

                                    ^~

./../include/compiler.h:76:43: error: expected ')' before '|' token

  ((((x) & 0xff00000000000000##sfx) >> 56) | \

                                           ^

make[3]: *** [scripts/Makefile.host:116: tools/aisimage.o] Error 1

make[3]: *** Waiting for unfinished jobs....

make[2]: *** [../Makefile:1271: tools] Error 2

make[1]: *** [/tmp/debian_u-boot/Makefile:460: __build_one_by_one] Error 2

make[1]: Leaving directory '/tmp/debian_u-boot/miniarm-rk3288'
[color=#669933][color=#333333]make: *** [Makefile:150: sub-make] Error 2
Reply
#15
(07-27-2018, 07:03 AM)SamHsu Wrote: To enable concurrent mode, you need to modify the Makefile for rtl8723bs.
https://github.com/TinkerBoard/debian_ke.../rtl8723bs
I'd greatly appreciate if you post the relevant branch. I'm on GSM and I wouldn't need to download all the kernel repository, as I'm not subscribed nor able to download it myself Sad
Reply
#16
I was made aware of this thread on a software thread. I have my Ralink usb wifi working. It required extra firmware.
Code:
sudo apt-get install firmware-realtek
sudo apt-get install firmware-misc-nonfree

The Alfa usb wifi  am using uses Ralink (the second install). If somebody else has a Realtek wifi, would you please check to ensure this works for you.
Reply
#17
Sorry to disagree, I followed your suggestions, but for my rt2800usb there is no module. As I previously wrote, it needs to compile the module.
Light blue words might be a link. Have you try to click on them? Big Grin
Reply
#18
(10-04-2018, 06:34 PM)Im4Tinker Wrote: Sorry to disagree, I followed your suggestions, but for my rt2800usb there is no module. As I previously write, it needs to compile the module.

That's too bad. I guess I did good with the Ralink wifi device. Guess I'm just lucky.
Reply
#19
If I do
Code:
$ lsusb
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 004: ID 2001:3c19 D-Link Corp. DWA-125 Wireless N 150 Adapter(rev.A3) [Ralink RT5370]
Bus 001 Device 003: ID 05e3:0610 Genesys Logic, Inc. 4-port hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 002: ID 0bda:481a Realtek Semiconductor Corp.
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

$ ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1
   link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
   inet 127.0.0.1/8 scope host lo
      valid_lft forever preferred_lft forever
   inet6 ::1/128 scope host
      valid_lft forever preferred_lft forever
2: sit0@NONE: <NOARP> mtu 1480 qdisc noop state DOWN group default qlen 1
   link/sit 0.0.0.0 brd 0.0.0.0
3: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN group default qlen 1000
   link/ether 88:d7:f6:c2:f1:42 brd ff:ff:ff:ff:ff:ff
   inet 192.168.12.8/24 brd 192.168.12.255 scope global eth0
      valid_lft forever preferred_lft forever
   inet6 fe80::42c8:485d:b8e4:a756/64 scope link
      valid_lft forever preferred_lft forever
4: wlan0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN group default qlen 1000
   link/ether 40:9f:38:dd:97:3b brd ff:ff:ff:ff:ff:ff
And there no module
Code:
$ find /lib/modules/ -iname rt2*
$ sudo modprobe rt2800usb
Nothing comes out.
Light blue words might be a link. Have you try to click on them? Big Grin
Reply
#20
When you run lsusb, what is this device?
Code:
Bus 001 Device 004: ID 2001:3c19 D-Link Corp. DWA-125 Wireless N 150 Adapter(rev.A3) [Ralink RT5370]
That is a Ralink wifi device, not Realtek.

Edit: I checked the contents of firmware-misc-nonfree, and there is no listing for a Ralink RT5370. Maybe the developers have not gotten around to adding that IC yet.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)