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

wlan0 issues with wpa_cli [rpi3b+] #204

Open
tswaehn opened this issue Oct 11, 2019 · 11 comments
Open

wlan0 issues with wpa_cli [rpi3b+] #204

tswaehn opened this issue Oct 11, 2019 · 11 comments

Comments

@tswaehn
Copy link
Contributor

tswaehn commented Oct 11, 2019

I am using wpa_cli to manage the wlan0.

sudo wpa_cli -i wlan0 status
Failed to connect to non-global ctrl_ifname: wlan0  error: No such file or directory

However this way seems to be broken since a couple of days.

I figured out that there was a new firmware for wifi 2 days ago. Switching back to old firmware makes wpa_cli to properly work.

Not sure how to continue.
(1) maybe this is a wpa_cli issue - not fitting to newer firmware
(2) maybe this is a firmware issue

I filled and issue here : RPi-Distro/firmware-nonfree#6

@burnbabyburn
Copy link
Contributor

so the combination of firmware and old kernel is the prob? if you skipped compiling your own kernel, it's possible the links for the precompiled ones are not up to date.

Enabling nexmon makes the script using another, possible outdated, kernel source too.

@tswaehn
Copy link
Contributor Author

tswaehn commented Oct 25, 2019 via email

@tswaehn
Copy link
Contributor Author

tswaehn commented Nov 2, 2019

I am wondering about the design target of the rpi23-gen-image project :

(1) Should rpi23-gen-image create an image which always succeed and be dummy proof?

or

(2) Is the rpi23-gen-image a guideline of scripts that can be used to determine a valid image - but its in user hands to make things fit together (Kernel + DEB packages + firmware)

My personal opinion is actually (2), which is easier to fulfill. Where (1) needs qualified and tested branches / tags. (But this is just my stupid opinion.)

@tswaehn
Copy link
Contributor Author

tswaehn commented Nov 2, 2019

(BTW. we can rename the topic as it ended up in a more general discussion)

@drtyhlpr
Copy link
Owner

drtyhlpr commented Nov 3, 2019

hi there!

sorry I don't have much time left for this project. thanks burn for the patches etc.

In my opinion rpi23-gen-image should always create the "complete" and working output image. I think there are plenty options to extend and or append "all" the non std deps, pkgs, late includes, custom includes etc. with the regular command line parameters of the script. Hm the idea is to create a advanced non standard rpi23 image (the idea "back then" was to create a minimal rpi image cause there was no -minimal- variant of the offical rpi image "back then"). The script may not be dummy proof.

I don't know if its debian specific. but it is just sad and boring in my opinion how often the regular, minimal boot os installation gets broken by new patches or features. AND the way these changes are sometimes communicated (hey just let the user find out...) but this is only my opinion based on the experience with this project so far. sure the goal was to create a rock solid minimal build script (if you use it without any custom options) that should create a minimal working output image now and in the future.

ps. i think the self encrypted full hd encryption of the size optimized generated output image, and its onboot expand is quite unique (for any bootstrapping script you will find ... well i think), not sure if its still working fine or used mutch :)

@tswaehn
Copy link
Contributor Author

tswaehn commented Nov 3, 2019

I think its possible to achive a rock-solid image that builds out of the box.

BUT: it needs well selected sources for the downloads (kernel, deb-packages, firmware, wifi-firmware) and it needs to be maintained, at least for the standard package.

BTW: this project is awesome cool! Its exactly what I need - just a small image with essential packages.

Dont get me wrong, I just wanted to understand what the target is, then we can fine tune. No problem.

@burnbabyburn
Copy link
Contributor

burnbabyburn commented Nov 7, 2019

(2) Is the rpi23-gen-image a guideline of scripts that can be used to determine a valid image - but its in user hands to make things fit together (Kernel + DEB packages + firmware)

This! There will be errors as i think its too much work to test all combinations possible atm . Especially if we now add wifi_fw to the calculation.
Just by scrolling through the readme, looking @ all those options, makes me NOT wanna build test cases for this. We would need someone that is willing to do the auto/continoues integration,building,testing stuff. E.g. i was not able to get a chroot in travis, but maybe you have to use docker... i dunno
BUT the goal should be, that building the default config always succeeds. I tried to fix that by raising default kernel version to 4.19. As its the same version used in raspian. That should fit atleast latest wifi_fw. Maybe i add additional description to the readme, which option changes kernel source so you atleast know when to change wifi_fw.
Adding an option for selecting wifi_fw, finding the git commits of wifi_fw fitting your kernel version etc is not on my agenda. I just go latest/most recent, but i would be happy to see some pulls for that :)

So my way to contribute is by fixing the reported errors and do build an image from time to time. I have more fun adding stuff that i want in my fork and pull back some of the changes that imho fit to the projects scope. Even getting a clean and proper pull done can take some hours.

In my opinion rpi23-gen-image should always create the "complete" and working output image. I think there are plenty options to extend and or append "all" the non std deps, pkgs, late includes, custom includes etc. with the regular command line parameters of the script. Hm the idea is to create a advanced non standard rpi23 image (the idea "back then" was to create a minimal rpi image cause there was no -minimal- variant of the offical rpi image "back then"). The script may not be dummy proof.

That's also my understanding of the projects scope.

@tswaehn
Copy link
Contributor Author

tswaehn commented Nov 20, 2019

Thats perfect explaination. Thank you for all your thoughts on that topic.

@tswaehn
Copy link
Contributor Author

tswaehn commented Nov 20, 2019

(I close that issue as it was remote repo firmware releated)

@tswaehn tswaehn closed this as completed Nov 20, 2019
@tswaehn
Copy link
Contributor Author

tswaehn commented Nov 20, 2019

BTW: I solved this topic by forking the original firmware repo and rolling back to the last "known" working version.

That means for stretch you can find a tested firmware repo here: https://github.com/rpi23-img/firmware-nonfree

@tswaehn
Copy link
Contributor Author

tswaehn commented Nov 20, 2019

I just thought about re-open.

Why?

Because I think I could create a branch or tag on that repo and finally modify the default-templates of stretch to point here.

So basically this will be a reminder for myself to fix it :)

@tswaehn tswaehn reopened this Nov 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants