WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Problem with rtl8188EUS wifi USB adapter  (Read 11322 times)

Offline patrikg

  • Wiki Author
  • Hero Member
  • *****
  • Posts: 713
Re: Problem with rtl8188EUS wifi USB adapter
« Reply #30 on: September 24, 2023, 12:39:55 PM »
Sorry moderators, GOT<-----Get Of Topic

He is very funny to listen to.
His rant about the licenses is also so funny.
He is also very active in toybox, that being installed in android.
https://github.com/landley/toybox<----Last edit one week ago.

I think there are 4 programs that are installed some way everywhere.
In lots of devices.
1. Linux Kernel.
2. SQLite.
3. Curl. <---- like it a lot because the main developer is Swedish like me.. :)
4. Busybox/Toybox.
« Last Edit: September 24, 2023, 12:41:39 PM by patrikg »

Online Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11618
Re: Problem with rtl8188EUS wifi USB adapter
« Reply #31 on: September 24, 2023, 01:31:17 PM »
Hi patrikg
I'm sorry but I had to modify your reply #25. One of the links
was removed and a note was added about lanfile.

The  Forum Rules and Guidelines  state:
Quote
2. No attachments/links of binary extensions
Found here:
http://forum.tinycorelinux.net/index.php/topic,7738.0.html

You are not allowed to post binary attachments, or direct links to external binaries.
You may post a link that leads to an external site, where someone can then choose to download something.

Offline patrikg

  • Wiki Author
  • Hero Member
  • *****
  • Posts: 713
Re: Problem with rtl8188EUS wifi USB adapter
« Reply #32 on: September 24, 2023, 02:32:13 PM »
@Rich
Yes, you are absolutely correct in removing the link, I am the one
who should be sorry for including the link to the file.
Yes, rules are meant to be followed.

Thank you for edit the post.

Offline jazzbiker

  • Hero Member
  • *****
  • Posts: 934
Re: Problem with rtl8188EUS wifi USB adapter
« Reply #33 on: September 24, 2023, 02:50:53 PM »
Hihihihi.. have you seen Rob Landley's talk about not to cross compile :).
https://www.youtube.com/watch?v=Sk9TatW9ino

Thanks for the link, but it is almost 2 hours long ( I ask for the spoiler - is it just for fun (I have another fun sources) or he tells something interesting about for example kick-starting the new platform without writing the cross-compiler? Or the point is not to use gcc as the cross-compiler?

Thanks in advance!
« Last Edit: September 24, 2023, 02:56:13 PM by jazzbiker »

Offline patrikg

  • Wiki Author
  • Hero Member
  • *****
  • Posts: 713
Re: Problem with rtl8188EUS wifi USB adapter
« Reply #34 on: September 24, 2023, 03:40:40 PM »
Hi @jazzbiker
Spoiler, he just talks about he's own stuff like the old aboriginal linux and gcc and toybox.

The links are little old, but i have saved them because i like to make make a small Linux that fit on floppy. Just with lilo kernel busybox.

Don't know how the feature about the compiler hell, with all platforms/cpu.
But i see some light in the tunnel, with clang and llvm.
So you make one more layer of obstruction.
So you can make the machine language assembly specific for each cpu separate.

And even with new new language that can compile c and c++ to different targets without compile the compiler. I am talking about ZIG. Don't know if this compiler can compile with diffrent width.(32/64), haven't tested that yet.
« Last Edit: September 24, 2023, 03:42:39 PM by patrikg »

Offline nick65go

  • Hero Member
  • *****
  • Posts: 838
Re: Problem with rtl8188EUS wifi USB adapter
« Reply #35 on: September 24, 2023, 06:40:59 PM »
@jazzbiker: About your "he tells something interesting about for example kick-starting the new platform without writing the cross-compiler? Or the point is not to use gcc as the cross-compiler?"
Rob Landley is the pioneer of tempfs (init in RAM) and busybox. He hit and solved many corner-cases (in cross compiling) in reducing the "build from itself from scratch" of linux, with minimum original tools (kernel, shell, libc, compiler-tools).

He actually provides a mini/trimmed-kernel and a shell (toybox, static compiled), plus the static-compiled GCC, FOR EVERY architecture you want (supported by qemu simulator). It is READY to use it.

So YOU can compile everything you want. ex: using a x86-64 OS host, to compile for an ARM guest, etc.
He (already) compiled (the a mini-host OS, smaller than TC) so that you do NOT need to cross-compile  :)   
http://landley.net/toybox/downloads/binaries/toolchains/latest/

Basically you start qemu and load the desired HOST OS in qemu as the SAME architecture you want to compile for. ex: on TC14_64 host you run qemu with "OS" of 32 bits to compile for 32 bits; you can ever compile, inside that qmeu, a NEW kernel version, a new shell (busybox), a new licb (musl), because you natively compile, in an isolated "host".
« Last Edit: September 24, 2023, 06:58:33 PM by nick65go »

aus9

  • Guest
Re: Problem with rtl8188EUS wifi USB adapter
« Reply #36 on: September 25, 2023, 04:40:57 AM »
Hi notferrari

I am going to have the spit the dummy on further attempts to build this 32 bit kernel in qemu.
I am getting each time errors for module symbols  such that
Code: [Select]
[code]make all
# gives errors for unknown symbols
# but still makes the module
file 8188eu.ko
8188eu.ko: ELF 32-bit LSB relocatable, Intel 80386, version 1 (SYSV), BuildID[sha1]=37af6fa1c74e6a0cf8db905a071e2807b1a49979, not stripped

mkdir -p /lib/modules/6.1.2-tinycore/kernel/drivers/net/wireless
root@box:/tmp/rtl8188eu# make install
install -p -m 644 8188eu.ko  /lib/modules/6.1.2-tinycore/kernel/drivers/net/wireless/
/sbin/depmod -a 6.1.2-tinycore
root@box:/tmp/rtl8188eu# modprobe 8188eu
modprobe: can't load module 8188eu (kernel/drivers/net/wireless/8188eu.ko): unknown symbol in module, or unknown parameter

#######
go into /usr/src/linux*
make modules# takes hours and I bork it at this point
# MODPOST modules-only.symvers
WARNING: vmlinux.o is missing.
         Modules may not have dependencies or modversions.
         You may get many unresolved symbol warnings.
WARNING: modpost: "device_destroy" [arch/x86/kernel/msr.ko] undefined!
SNIP
WARNING: modpost: suppressed 94945 unresolved symbol warnings because there were too many)

If other people think they can do better......let them help, I am giving up.
If no-one will help you, and I am assuming you can not run a 64 bit kernel
consider buying a better dongle, or a long ethernet cable

sorry to have wasted everyone's time. And yes time is valuable to me which is why I am spitting the dummy

Offline jazzbiker

  • Hero Member
  • *****
  • Posts: 934
Re: Problem with rtl8188EUS wifi USB adapter
« Reply #37 on: September 25, 2023, 04:57:48 AM »
Hi patrikg! Thanks for the input.

... i like to make make a small Linux that fit on floppy. Just with lilo kernel busybox.

Sounds too sweet to be possible :-) Still nice as the direction to move. But who knows what may happen? Linux is not the only kernel on our planet. And, maybe some new platforms will appear.

But i see some light in the tunnel, with clang and llvm.

In which way llvm is better than gcc? Both use some internal representation language, the difference is that gcc don't expose it. Both became monsters.

And even with new new language that can compile c and c++ to different targets without compile the compiler. I am talking about ZIG. Don't know if this compiler can compile with diffrent width.(32/64), haven't tested that yet.

c++ demands huge compiler by itself. And appetite grows and doesn't tends to stop. I see the light on the asm + C + Lua way.

Regards!

Offline jazzbiker

  • Hero Member
  • *****
  • Posts: 934
Re: Problem with rtl8188EUS wifi USB adapter
« Reply #38 on: September 25, 2023, 05:01:14 AM »
@nick65go, thanks for an abstract!

Offline gadget42

  • Hero Member
  • *****
  • Posts: 786
Re: Problem with rtl8188EUS wifi USB adapter
« Reply #39 on: September 25, 2023, 06:51:40 AM »
The fluctuation theorem has long been known for a sudden switch of the Hamiltonian of a classical system Z54 . For a quantum system with a Hamiltonian changing from... https://forum.tinycorelinux.net/index.php/topic,25972.msg166580.html#msg166580

Offline nick65go

  • Hero Member
  • *****
  • Posts: 838
Re: Problem with rtl8188EUS wifi USB adapter
« Reply #40 on: September 25, 2023, 01:28:12 PM »
@patrikg: about " i like to make make a small Linux that fit on floppy".

IMHO I think there is no USEFUL "linux" on a floppy (max. 1.2 -1.4MB), smaller than:
https://en.wikipedia.org/wiki/KolibriOS
https://en.wikipedia.org/wiki/Tomsrtbt
I mean to have a kernel + a shell + few utilities + (eventually) a GUI.

FYI: Kolibri-OS has one GUI, because was written in FASM (Fast ASM, machine code).
ps: KolibriOS is NOT Russian OS
https://en.wikipedia.org/wiki/Talk:KolibriOS
The smaller it gets, then the less useful it becomes, we go in micro-controllers etc. (no human interface, just signals).
« Last Edit: September 25, 2023, 01:46:05 PM by nick65go »

Offline patrikg

  • Wiki Author
  • Hero Member
  • *****
  • Posts: 713
Re: Problem with rtl8188EUS wifi USB adapter
« Reply #41 on: September 25, 2023, 02:54:25 PM »
Yes I know that, but i think that cheating.

I have build just with the current kernel and current busybox and booting that with old lilo that not have lot of tons of that i don't need, like systemdboot and grub or syslinux.

Menuet and Kolibri, i think it's little easier to use fasm and it's inbuilt preprocess macro language, then nasm gas or another assembler.
I think this two OS is not very easy to accomplish.

I don't use the floppy at all, i doing it because, i learning more and more, what's behind some hidden curtains. And in this summer i take the LFS for a challenge, and getting it running in a vm in libvirt. Just for fun and learning.

Lua, why not python :) ??
For our children to not get tired to type in some characters and not getting some thing back(output)

Every language have it's own potential to shine.
It's not the program language that desire what it's want to be built.

Right now humans is pressing the keys.
Don't know how the future will be with the AI.

Offline nick65go

  • Hero Member
  • *****
  • Posts: 838
Re: Problem with rtl8188EUS wifi USB adapter
« Reply #42 on: September 25, 2023, 06:15:03 PM »
Yes I know that, but i think that [is] cheating.
It says “all is fair in love and war.”.. and in linux! as long as the target is achieved in the affordable time frame. Time is the most scarce resource. So time has the maximum exchange value (is priceless). Why to invent the wheel again and again; maybe is better to "build"/cheat walking on the path the pioneers/experts already tried (K.I.S.S.).
« Last Edit: September 25, 2023, 06:19:15 PM by nick65go »

aus9

  • Guest
Re: Problem with rtl8188EUS wifi USB adapter
« Reply #43 on: September 25, 2023, 10:34:36 PM »
Hi notferrari

I have picked up my dummy....kernel module is built on qemu, tested by direct injection on TC32, package not yet built as I was not sure if everything would work. IT DOES proof
Code: [Select]
tc@box:~$ inxi -Nxxx
Network:
  Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
    vendor: Micro-Star MSI driver: r8169 v: kernel pcie: speed: 2.5 GT/s
    lanes: 1 port: f000 bus-ID: 22:00.0 chip-ID: 10ec:8168 class-ID: 0200
  Device-2: Realtek 802.11n NIC driver: rtl8188eu type: USB rev: 2.0
    speed: 480 Mb/s lanes: 1 bus-ID: 1-3:2 chip-ID: 2357:010c class-ID: 0000
    serial: 00E04C0001
tc@box:~$ ifconfig
lo        Link encap:Local Loopback 
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:2 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:100 (100.0 B)  TX bytes:100 (100.0 B)

wlan0     Link encap:Ethernet  HWaddr 50:3E:AA:42:94:1D 
          inet addr:192.168.1.11  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:229 errors:0 dropped:4 overruns:0 frame:0
          TX packets:182 errors:0 dropped:4 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:157644 (153.9 KiB)  TX bytes:27738 (27.0 KiB)

aus9

  • Guest
Re: Problem with rtl8188EUS wifi USB adapter
« Reply #44 on: September 25, 2023, 10:43:00 PM »
The reason why I was failing in the past.....grrr....was I have only ever built one kernel module on TC
The error I was getting was unknown symbols in module.
This tricked me into thinking my kernel prep was somehow wrong. It was not.

The trick on TC32, which I did not do on TC64 was to load the run dependency module for 8188eu
Then build the module

Code: [Select]
modinfo 8188eu | grep dep
depends:        cfg80211

I hope to build the package later today, test it and will give you a pm on how to get it early.
« Last Edit: September 26, 2023, 09:04:46 AM by Rich »