Tiny Core Linux
Tiny Core Base => Raspberry Pi => Topic started by: kagouraki on June 24, 2022, 06:37:06 AM
-
Hello i have installed the NetworkManager reading older posts.
It works perfectly when in station mode. But when i try to make a Hotspot connection, i get this error :
tc@box:~$ sudo nmcli d wifi hotspot ifname wlan0 ssid OpenMFD
Error: Failed to setup a Wi-Fi hotspot: wpa_supplicant does not support Access Point mode
Is there a solution ?
EDIT: I have also 2 more questions.
1)Why is ModemManager running ? i never installed it.
2)how can i delete the 90-nm-thunderbolt.rules file ? pizero 2 has no thunderbolt and i dont need it. It throughs some error when booting and the networkManager extension is loaded.
-
Hi kagouraki
... EDIT: I have also 2 more questions.
1)Why is ModemManager running ? i never installed it. ...
Sure you did. It's a dependency of the networkmanager.tcz extension, see:
http://tinycorelinux.net/13.x/armv6/tcz/networkmanager.tcz.dep
2)how can i delete the 90-nm-thunderbolt.rules file ? pizero 2 has no thunderbolt and i dont need it. It throughs some error when booting and the networkManager extension is loaded.
Rather than deleting it, installing a dummy rules file before networkmanager loads should be simpler.
tce-load -wil squashfs-tools.tcz
mkdir -p pkg/etc/udev/rules.d
echo '# nm_thunderbolt placeholder' > pkg/etc/udev/rules.d/90-nm-thunderbolt.rules
echo 'GOTO="nm_thunderbolt_end"' >> pkg/etc/udev/rules.d/90-nm-thunderbolt.rules
echo 'LABEL="nm_thunderbolt_end"' >> pkg/etc/udev/rules.d/90-nm-thunderbolt.rules
mksquashfs pkg no-nm-thunderbolt.tcz -noappend
rm -rf pkg
Copy no-nm-thunderbolt.tcz to your tce/optional directory.
Add no-nm-thunderbolt.tcz to the beginning of your tce/onboot.lst file.
Now when networkmanager.tcz loads, it will see the rules file exists and not copy its version over.
-
wpa_supplicant needs recompiling - I’ll have a look in the next couple of days.
-
Updated wpa_supplicant-dbus posted - ap mode not tested.
-
Thank you for the fast response.
The AP loads now and i can see it with my phone. Now the problem is that i cant connect to it. It seems that something is wrong with the password. I set the password with
sudo nmcli con modify Hotspot 802-11-wireless-security.psk 11223344
and then when i check the connection with
nmcli -show-secrets c s Hotspot
there are two dashes in the psk field and not the password i insered.
when i see the config file in
/usr/local/etc/NetworkManager/system-connections/ with nano i can see the psk = 11223344 entry
so somehow the networkManager doesnt read the password from the config file :(
-
Hi kagouraki
Maybe you need to run something like:
sudo nmcli connection reload
-
I just tried. Nothing. The same thing
-
Is there something i can do or should i go with raspbian os ?
I have also other problems with piCore.
My waveshare touchscreen is hdmi with i2c touch but i cant make it work in piCore. I should probably open a new thread for the screen but i am just saying.
I would like to go with piCore because of the no sd corruption advantage. But maybe i should go for the raspbian os
-
Have you tried to configure the access point using wpa_supplicant directly rather than via networkmanager?
Please start a separate thread for the touchscreen.
-
very interesting article and the comments are good as well:
https://hackaday.com/2022/03/09/raspberry-pi-and-the-story-of-sd-card-corruption/
this comment was informative as well:
https://hackaday.com/2022/03/09/raspberry-pi-and-the-story-of-sd-card-corruption/#comment-6448160
(and referenced: https://github.com/OneOfTheInfiniteMonkeys/sdinfo)
sharing is caring
20220630-0222-modified-added comment link and reference link