Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wifi not working #14

Open
ghost opened this issue Oct 9, 2017 · 22 comments
Open

Wifi not working #14

ghost opened this issue Oct 9, 2017 · 22 comments
Labels

Comments

@ghost
Copy link

ghost commented Oct 9, 2017

Wifi doesn't work for me. The wifi setup script just reports it couldn't connect. Knowing how WPA2 doesn't work I made sure to change it to WPA. WEP isn't an option. The wifi works fine for the system menu. I'm using the newest stable release.

@neagix
Copy link
Owner

neagix commented Oct 9, 2017

It works for me. So now you would have to report the iwconfig information of the network you're trying to connect to, otherwise 'Wifi not working' is too generic (as for other users it's working).

Also, errors in dmesg

@ghost
Copy link
Author

ghost commented Oct 14, 2017

Sorry for not replying. I can't get the iwconfig information since I don't have a linux device connected to wifi. I have the ifconfig information though. I have the dmesg as well
dmesg.txt
ifconfig
img_20171014_163812

@Brawl345
Copy link

Fiddled around with this a bit yesterday and can confirm that the whiite-ez-wifi-config script creates an invalid config - the interface is wlan1, not wlan0 (which can be confirmed with "ip link"). Run the script again and edit the /etc/network/interfaces and replace every "wlan0" with "wlan1", save and bring up the network with "ifup wlan1".
You can also confirm this by looking into the dmesg file:

[    3.985971] systemd-udevd[591]: renamed network interface wlan0 to wlan1

@ghost
Copy link
Author

ghost commented Dec 4, 2017

Thank you. Wifi now works for me.

@neagix
Copy link
Owner

neagix commented Dec 4, 2017

Does this happen only to users that also have a ethernet dongle? Or it's unrelated?

@ghost
Copy link
Author

ghost commented Dec 4, 2017

It's unrelated, if I had one I would be using it.

@Brawl345
Copy link

Brawl345 commented Dec 4, 2017

I also don't have an Ethernet dongle.

@emukidid
Copy link

Can confirm, it's also wlan1 for me.

@SkibbleBip
Copy link

Exact same senario for me, fixed it by changing wlan0 to wlan1 in the script

@neagix neagix added the bug label Apr 12, 2019
@immolo
Copy link

immolo commented Jan 20, 2022

This issue is still happening without an ethernet dongle, is everyone using wlan1 or is it just some models?

@MrQbasic
Copy link

I have a question: I don't want to so change the encryption on my main network. So can I instead use my phone to host a networking with my mobile data (I don't know the English word) wich is open because I can't change the encryption type on my phone. So basicly how do I confic my interfaces file so that it works with open networks?

@tesses50
Copy link

tesses50 commented Mar 29, 2022

i had to edit whiite-linux-ez-config to use wlan1 instead of wlan0

Is it just that wifi is slow (arround ~400KB when torrenting) we got 25 Mb plan (yes I know the difference between megabit and megabyte) or is it the wii that is slow too (I know we arent getting exactly 25Mb but still) (I know this part is unrelated to the github issue)

@Brawl345
Copy link

Brawl345 commented Mar 29, 2022

is it the wii that is slow too

yes, the Wii's wifi is horrible for today's standards. Compare it to the Old3DS which released 2011 and only can do about 700 KB/s.

@tesses50
Copy link

tesses50 commented Apr 2, 2022

would the wii be that slow with ethernet adapter (I tried one and it only worked once (then would need to reboot to use it again)), I use my wii for torrenting, downloading youtube videos (must be an ocd thing or something, I know I have autism)

@immolo
Copy link

immolo commented Apr 9, 2022

would the wii be that slow with ethernet adapter (I tried one and it only worked once (then would need to reboot to use it again)), I use my wii for torrenting, downloading youtube videos (must be an ocd thing or something, I know I have autism)

I find the adapter slower than using WiFi but I've not tried using a newer kernel yet to see if that helps.

@naruse
Copy link

naruse commented Apr 16, 2023

Fiddled around with this a bit yesterday and can confirm that the whiite-ez-wifi-config script creates an invalid config - the interface is wlan1, not wlan0 (which can be confirmed with "ip link"). Run the script again and edit the /etc/network/interfaces and replace every "wlan0" with "wlan1", save and bring up the network with "ifup wlan1". You can also confirm this by looking into the dmesg file:

[    3.985971] systemd-udevd[591]: renamed network interface wlan0 to wlan1

Necro-bumping this but thanks!, indeed the interface had to be renamed to wlan1 and it works perfectly! thanks!

So just change where it says wlan0 in /etc/network/interfaces to wlan1

@MrQbasic
Copy link

Thx so much

@EldosHD
Copy link

EldosHD commented May 8, 2023

Hate to necropost, but i already did the fix with 'wlan1' instead of 'wlan0' and the wii does now connect to my router. But it can't do anything wifi related. 'apt-get update', 'wget ' ... etc. doesnt work. Any ideads whats causing this?

@naruse
Copy link

naruse commented May 8, 2023

Hate to necropost, but i already did the fix with 'wlan1' instead of 'wlan0' and the wii does now connect to my router. But it can't do anything wifi related. 'apt-get update', 'wget ' ... etc. doesnt work. Any ideads whats causing this?

the problem is that for today (May 2023) that distro is really old so apt-get keys are expired so it will just not work; wget should work though and basic internet connectivity but package management will not work.

The bigger problem is that the wii is a PPC 32 bit architecture and pretty much the support is gone from the distros that used to support it.

@EldosHD
Copy link

EldosHD commented May 8, 2023

Thx for the quick answer lol.
I guess I just stop bothering then... I just need to figure out what to do with my second wii now...

@juansebastianUTech
Copy link

Thx for the quick answer lol. I guess I just stop bothering then... I just need to figure out what to do with my second wii now...

there was an attempt to make FreeBSD (or OpenBSD? cant remember) to boot linux in the wii; I havent checked it out with more detail, but I think that would be the last resource. if you find anything useful to do with it let us know!

@MrQbasic
Copy link

MrQbasic commented May 8, 2023

I think there is Linux distro out there focusing on ppc support. It is maintained by one guy though so idk how well it is doing. Also you probably would need to make the kernel modules compatible with the distro. Idk the detail as I'm not a distro dev.

ThatsItForTheOtherOne pushed a commit to Wii-Linux/wii-linux-ngx that referenced this issue Oct 16, 2023
[ Upstream commit 9af31d6 ]

There is an use-after-free problem reported by KASAN:
  ==================================================================
  BUG: KASAN: use-after-free in ubi_eba_copy_table+0x11f/0x1c0 [ubi]
  Read of size 8 at addr ffff888101eec008 by task ubirsvol/4735

  CPU: 2 PID: 4735 Comm: ubirsvol
  Not tainted 6.1.0-rc1-00003-g84fa3304a7fc-dirty neagix#14
  Hardware name: QEMU Standard PC (i440FX + PIIX, 1996),
  BIOS 1.14.0-1.fc33 04/01/2014
  Call Trace:
   <TASK>
   dump_stack_lvl+0x34/0x44
   print_report+0x171/0x472
   kasan_report+0xad/0x130
   ubi_eba_copy_table+0x11f/0x1c0 [ubi]
   ubi_resize_volume+0x4f9/0xbc0 [ubi]
   ubi_cdev_ioctl+0x701/0x1850 [ubi]
   __x64_sys_ioctl+0x11d/0x170
   do_syscall_64+0x35/0x80
   entry_SYSCALL_64_after_hwframe+0x46/0xb0
   </TASK>

When ubi_change_vtbl_record() returns an error in ubi_resize_volume(),
"new_eba_tbl" will be freed on error handing path, but it is holded
by "vol->eba_tbl" in ubi_eba_replace_table(). It means that the liftcycle
of "vol->eba_tbl" and "vol" are different, so when resizing volume in
next time, it causing an use-after-free fault.

Fix it by not freeing "new_eba_tbl" after it replaced in
ubi_eba_replace_table(), while will be freed in next volume resizing.

Fixes: 801c135 ("UBI: Unsorted Block Images")
Signed-off-by: Li Zetao <lizetao1@huawei.com>
Reviewed-by: Zhihao Cheng <chengzhihao1@huawei.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Ulrich Hecht <uli+cip@fpond.eu>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

10 participants