Open AlexWhitehouse opened 3 years ago
I've tested the image and can confirm it boots. Can anyone confirm whether their eInk (mine is WaveshareV2) display works on RPIw2?
I can confirm this works on my Zero2W with the waveshare V2 eink screen. Currently playing with the image provided from @DrSchottky .
It seems like AI does not work with the zero 2 W? has anyone got it working successfully with either built in interface or external card (if so which one)
It seems like AI does not work with the zero 2 W? has anyone got it working successfully with either built in interface or external card (if so which one)
It's really iffy. Works, then dies, then works for longer, then dies. This has been a common issue (since the plugin Watchdog exists) for a while it seems and the only known fix is to install 1.5.3 boot on a pi4, apply all updates and patches, then put it back in pi02w - from what Ive heard - moreover dont forget to expand your filesystem - it also causes issues
Otherwise the best option is to enable watchdog and itll automatically restart until it works
Does it need to be a pi4? I have a 3b+ and a original zero W laying around.
Does it need to be a pi4? I have a 3b+ and a original zero W laying around.
Sorry, in my case I used a Pi4 but it doesnt matter - anything that boots the old images should work.
Edit: Im still debugging I want my pwnagotchi to be ever living lol
so if I boot an image on my 3b+, update and patch everything, and throw it back in my 02w then it should work? AI and everything else? I also want my pwnagotchi to be ever living haha, I want to make it as reliable as I can
Can you try changing
so if I boot an image on my 3b+, update and patch everything, and throw it back in my 02w then it should work? AI and everything else? I also want my pwnagotchi to be ever living haha, I want to make it as reliable as I can
According to theories, yes, but I doubt it considering I went through that boat before DrSchottky posted his working image
Moreover, a few things to note the image was built using the latest pi kernel but the master branch of pwnagotchi - according to some issues reported ai is also reported to be breaking in the same way on pi0ws.... and there's a pr for the builder that DrSchottky didnt clone/merge into his own repo
Pwnagotchi as a whole is a finished product for the pi0w, waveshare_v2 and UPSlite otherwise anything else and you are playing wackamole
Im trying to update numpy and tensorflow now, Im seeing the bulk of errors coming from there - pillow was also one that was failing
It seems numpy 1.21.5 is working
I just ran pip3 install --upgrade numpy
Im gonna test for the next 24h to see...
I am using @DrSchottky test image. My bettercap web-ui works just fine but my pwnagotchi ui is not working. Is that a bug? or did I do something wrong?
edit: I dont know what I did but now its working
Does anyone have a copy of @DrSchottky test image? Looks like the link expired.
I would like to get the test image as well. I tried to get stuff working with @moni11811 's script and with @DrSchottky fork of nexmon but no luck. Does anyone know what patches and updates I need to make manually, and in what order? Any help would be appreciated.
Does anyone have a copy of @DrSchottky test image? Looks like the link expired.
I believe I do, If I find it I will @ you with the download link.
@ProMate04 Yeah I'm in the same boat. I tried following @moni11811 steps:
- Load fresh 1.5.3
- Boot on a pi4
- Bypass CA issues
- Ran @isthisausername2 fix script
- Ran @moni11811 fix script
- Boot on a pi02w
Edit: I can get it to power on but that's about it. I don't have a mini hdmi to see what's going on.
I have a mini HDMI at home, I will test those steps when I get home but that will be in around 10 hours so if someone else want to test it they can but I will give it a go when I get home and report back.
@Me3pM0rp I haven't got to the point where I would try to boot from the zero 2, I was installing everything on a zero, but I just could not figure out what to do. I have ran @moni11811 's script but that have failed to compile the only piece of firmware/driver from the forked nexmon that is needed for the zero 2. This was 2 days ago and since then I did not have any time to fiddle around...
Edit: I actually don't know what you mean by "bypass CA issue", can you please tell me what that is?
Does anyone have a copy of @DrSchottky test image? Looks like the link expired.
Here is the link to either DrSchottky's or moni11811's image, I'm not sure which one it is but the SHA256 of the image is
7727d123320d8ff15c284355c185942eb23d2f1dc094203ef8a39b44b6281224
Here is the download link to the file. https://1fichier.com/?3015strefm6nrhb3qkgi
I can confirm the image is from https://we.tl/t-4jfxRWGXq2. I didn't find a fast upload service so I didn't upload.
@Me3pM0rp I haven't got to the point where I would try to boot from the zero 2, I was installing everything on a zero, but I just could not figure out what to do. I have ran @moni11811 's script but that have failed to compile the only piece of firmware/driver from the forked nexmon that is needed for the zero 2. This was 2 days ago and since then I did not have any time to fiddle around...
Edit: I actually don't know what you mean by "bypass CA issue", can you please tell me what that is?
Try to type "sudo su -" then run the script again. it should work. be sure to the script is executable run chmod +x RaspberryPi2WPatch.sh
@ProMate04 Yeah I'm in the same boat. I tried following @moni11811 steps:
- Load fresh 1.5.3
- Boot on a pi4
- Bypass CA issues
- Ran @isthisausername2 fix script
- Ran @moni11811 fix script
- Boot on a pi02w
Edit: I can get it to power on but that's about it. I don't have a mini hdmi to see what's going on.
Sorry i didn't get to try this earlier, i am having trouble even getting it connected to the internet on my pi 4 through ethernet so I'm not sure if i have done something wrong (i just flashed the SD card and put it in the pi but idk). If anyone knows where the logs that may contain why this is happening are located that would be great and i could then continue with the test.
Sorry guys it's been a crazy week trying to get AI working reliably.
First things first, @isthisausername2 you are getting a CA certificate error because in the latest script release I added the correct RPI02w kernel update (one dependancy is CA Certificates). If you are using DrSchottky's image comment the update out (add # to line 3).
Second for internet connectivity check your resolv.conf (it should either have 8.8.8.8 or your router's IP (you have to change it each reboot)), check your pc's adapter settings ipv4 should be set to whatever the pi's usb0's subnet is on. To get internet passthrough my usual go to is to set my PC's adapter to sharing to pi's adapter. it will then show a dialog box that the new ip is 192.168.x.1 (turn it back off and set the original networking again to the pi's interface) now on your pi set the same subnet and the next address (192.168.x.2) (then share again if everything is correct, you should have connectivity to your pi and internet)
Sorry guys it's been a crazy week trying to get AI working reliably.
First things first, @isthisausername2 you are getting a CA certificate error because in the latest script release I added the correct RPI02w kernel update (one dependancy is CA Certificates). If you are using DrSchottky's image comment the update out (add # to line 3).
Second for internet connectivity check your resolv.conf (it should either have 8.8.8.8 or your router's IP (you have to change it each reboot)), check your pc's adapter settings ipv4 should be set to whatever the pi's usb0's subnet is on. To get internet passthrough my usual go to is to set my PC's adapter to sharing to pi's adapter. it will then show a dialog box that the new ip is 192.168.x.1 (turn it back off and set the original networking again to the pi's interface) now on your pi set the same subnet and the next address (192.168.x.2) (then share again if everything is correct, you should have connectivity to your pi and internet)
Edit: rereading your comment - with DrSchottky's image there is no need to boot off of another pi - the image boots perfectly fine on pi02
Sorry guys it's been a crazy week trying to get AI working reliably. First things first, @isthisausername2 you are getting a CA certificate error because in the latest script release I added the correct RPI02w kernel update (one dependancy is CA Certificates). If you are using DrSchottky's image comment the update out (add # to line 3). Second for internet connectivity check your resolv.conf (it should either have 8.8.8.8 or your router's IP (you have to change it each reboot)), check your pc's adapter settings ipv4 should be set to whatever the pi's usb0's subnet is on. To get internet passthrough my usual go to is to set my PC's adapter to sharing to pi's adapter. it will then show a dialog box that the new ip is 192.168.x.1 (turn it back off and set the original networking again to the pi's interface) now on your pi set the same subnet and the next address (192.168.x.2) (then share again if everything is correct, you should have connectivity to your pi and internet)
Edit: rereading your comment - with DrSchottky's image there is no need to boot off of another pi - the image boots perfectly fine on pi02
Also sometimes Windows Internet Sharing glitches out and I lose connectivity even though everything is correct (just turn off sharing and back on and it should work again) a good check is to just ping google.com
Yes their image does boot on the pi02 however is the AI stable? I feel like this was what we were trying to fix with using 1.5.3 but there is a chance that i got the wires crossed and that was not what was trying to be fixed with these steps.
Also i just wanted to thank you for your hard work with this project and trying to get it fully functional, we all greatly appreciate the work and time you put into this.
Yep if you are trying 1.5.3 method then my script should work fine (no edit necessary). In order to boot 1.5.3 you need to switch the /boot/start* files from the latest PiOS and rename the pi3.dtb (not -b) to pi zero 2 (I honestly just copied and replaced the name from the latest PiOS release)
Also you need to ensure it updates to 1.5.5 before applying the patches (I actually didnt test it on 1.5.3 - might as well)
OP and XZCendence are the ones to thank for this: https://www.reddit.com/r/pwnagotchi/comments/quoka7/working_on_pi_zero_2/?utm_medium=android_app&utm_source=share
And Im not doing much work, DrSchottky is the one to thank for the patch.
On a side note 1.5.3 method hasnt worked for me - I still get the same exact ai errors that Ive posted in Nexmon #500. I believe the issue is either the patch, or pwnagotchi/bettercap, or the pi kernel.
Ill try to find out the exact cause for having pwnagotchi running on kalipi 4.19 and Ill check how to compile everything with the latest releases when I get some time in the next 2 weeks.
I reuploaded my image with latest nexmon patches for 2w https://anonfiles.com/9fE0e0M1xe/pwnagotchi-raspberry-pi-os-lite-master-05032022_zip
Rule of thumb to check if is nexmon the cause of the malfunctions is to run tcpdump (or airodump) on mon0. If you're getting data likely it's not.
I seem to be getting this error a lot >> [CRITICAL] 50 epochs without visible access points -> rebooting ..
I reuploaded my image with latest nexmon patches for 2w https://anonfiles.com/9fE0e0M1xe/pwnagotchi-raspberry-pi-os-lite-master-05032022_zip
Rule of thumb to check if is nexmon the cause of the malfunctions is to run tcpdump (or airodump) on mon0. If you're getting data likely it's not.
Managed to get with the new image working. Imaged with balena (needed to turn off the specific part of the firewall of Win11 what interferes with the verification) booted up the rpi0-2 Win11 needed the extra divers to add the second network interface. After that everything else is just by the book config as its written on the web
PS: Installed in full headless mode -> w/o a screen yet (still shipping)
I am using @DrSchottky image and I have a bug where my bluetooth module isn't found. First it works just fine but not anymore. Any suggestions?
If you want to recreate the image to debug isses what I did was basically cloning the master branch and running the Travis build process inside a container, whith the following changes
I'm up and running too! Thanks @DrSchottky !
@moni11811 I had to get a few more packages to get things to build with your script. I think I was coming from 1.5.5 but I've been using the image on a 0w for a few months so who knows what the image was doing.
sudo apt install libraspberrypi-bin rpi-source
sudo rpi-source 64132d67d3e083076661628203a02d27bf13203c
install rpi02w fw
cd ~/nexmon/patches/bcm43436b0/9_88_4_65/nexmon/ make make backup-firmware make install-firmware
this removes the old brcmfmac.ko and installs the new one along with the new firmware
pwnagotchi should capture packets now! systemctl restart pwnagotchi
make the RPI02W load the modified driver after reboot
mv /lib/modules/5.10.63-v7+/kernel/drivers/net/wireless/broadcom/brcm80211/brcmfmac/brcmfmac.ko /lib/modules/5.10.63-v7+/kernel/drivers/net/wireless/broadcom/brcm80211/brcmfmac/brcmfmac.ko.orig cp ~/nexmon/patches/bcm43436b0/9_88_4_65/nexmon/brcmfmac_5.10.y-nexmon/brcmfmac.ko /lib/modules/5.10.63-v7+/kernel/drivers/net/wireless/broadcom/brcm80211/brcmfmac/brcmfmac.ko depmod -a
Something in this step gave me a rainbow screen the first time I tried it. I reinstalled the rpi-update 64132d67d3e083076661628203a02d27bf13203c
to get the pi02w to boot again and rebuilt and worked.
Now I'm watching the waveshare screen update every second or so. Does anyone know how ui.fps
can slow it down? 0.2fps doesn't give me 1 frame every 5 seconds.
@DrSchottky image worked for me thank you so much!!! Here is link without bandwidth: https://ufile.io/phhdzm24
@DrSchottky image worked for me thank you so much!!! Here is link without bandwidth: https://ufile.io/phhdzm24
Hi I downloader the image but it won't boot on Raspberry Pi zero w. Is there something else to do?
If this is your first time I suggest you follow this IT should help >> https://pwnagotchi.ai/configuration/
@DrSchottky image worked for me thank you so much!!! Here is link without bandwidth: https://ufile.io/phhdzm24
im following the configuration guide from https://pwnagotchi.ai/configuration/ but instead I used the img in this link you posted. sadly it still doesn't boot on Rpi0w2 for some reason.
Yes that's my problem, it does not boot also in my case. If I plug it in a Rp0v1.3, the image boot
@DrSchottky image worked for me thank you so much!!! Here is link without bandwidth: https://ufile.io/phhdzm24
im following the configuration guide from https://pwnagotchi.ai/configuration/ but instead I used the img in this link you posted. sadly it still doesn't boot on Rpi0w2 for some reason.
Yes that's my problem, it does not boot also in my case. If I plug it in a Rp0v1.3, the image boot
Then something is wrong your end, The image boots for me but isn't 100% working for me. MY guess is your config file is wrong hence the no boot, but this posts isn't for trouble shouting issues as its un-related your best plan is to move to the discord channel./
@DrSchottky image worked for me thank you so much!!! Here is link without bandwidth: https://ufile.io/phhdzm24
That's not my image, it's using a 4.X Re4son kernel
@DrSchottky image worked for me thank you so much!!! Here is link without bandwidth: https://ufile.io/phhdzm24
That's not my image, it's using a 4.X Re4son kernel
Is there any possibility to have your image? The link is expired. I would appreciate a lot ;)
@DrSchottky image worked for me thank you so much!!! Here is link without bandwidth: https://ufile.io/phhdzm24
That's not my image, it's using a 4.X Re4son kernel
thanks for clarifying, im currently downloading yours but the link is very slow, will update after i try it out
@DrSchottky image worked for me thank you so much!!! Here is link without bandwidth: https://ufile.io/phhdzm24
That's not my image, it's using a 4.X Re4son kernel
Is there any possibility to have your image? The link is expired. I would appreciate a lot ;)
https://github.com/evilsocket/pwnagotchi/issues/1046#issuecomment-1059776337
@DrSchottky it worked! thank you so much
Does the 02w image support plugins? I tried running some using the official pwnagotchi tutorial but nothing happened
links to images are expired and not active. could someone share it again?
I reuploaded my image with latest nexmon patches for 2w https://anonfiles.com/9fE0e0M1xe/pwnagotchi-raspberry-pi-os-lite-master-05032022_zip
Rule of thumb to check if is nexmon the cause of the malfunctions is to run tcpdump (or airodump) on mon0. If you're getting data likely it's not.
links to images are expired and not active. could someone share it again?
Link is here!
@DrSchottky Would it be ok with you if I were to make your image available via a torrent? I'd be happy to put it on a server somewhere for a month and hopefully after that there will be enough folks able to seed it.
@DrSchottky Would it be ok with you if I were to make your image available via a torrent? I'd be happy to put it on a server somewhere for a month and hopefully after that there will be enough folks able to seed it.
I created a torrent here. Trackers included. Zip file hash is: SHA256sum dafa3e3c102c93579f9d4349b10fc8eb8b466f69ff49d12f7b70d21c0fdf87f3 SHA1sum 7dcd79f2dc3a36b6445bff7a17f6e9c08e69ccf1
@DrSchottky Would it be ok with you if I were to make your image available via a torrent? I'd be happy to put it on a server somewhere for a month and hopefully after that there will be enough folks able to seed it.
I created a torrent here. Trackers included. Zip file hash is: SHA256sum dafa3e3c102c93579f9d4349b10fc8eb8b466f69ff49d12f7b70d21c0fdf87f3 SHA1sum 7dcd79f2dc3a36b6445bff7a17f6e9c08e69ccf1
Nice idea, but IMO this isn't the solution. Torrents come and go, especially if there aren't enough seeders. It'd be better to fork the pwnagotchi repo, make the relevant changes for the driver and any version bumps, and point folks to that.
Nice idea, but IMO this isn't the solution. Torrents come and go, especially if there aren't enough seeders. It'd be better to fork the pwnagotchi repo, make the relevant changes for the driver and any version bumps, and point folks to that.
Completely understand. Time to read into the image build process!
I'm happy to pick this up, but it won't be until I get some free time at the weekend.
Expected Behaviour
Expected to boot on Pi Zero 2 W. Fails to boot.
Current Behaviour
Fails to boot
Possible Solution
Recompile kernel for RPiZ2W
Steps to Reproduce (for bugs)
Your Environment
[x] You're using the official images (1.5.5)
[x] You're using a raspberry pi zero 2 w
[x] You're using a supported LCD (waveshare v2)