Welcome, Guest. Please login or register.

Author Topic: Getting online with PiStorm32, Miami DX and Encrypted WiFi  (Read 11191 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline AndyFCTopic starter

Getting online with PiStorm32, Miami DX and Encrypted WiFi
« on: April 28, 2024, 01:07:20 PM »
Here are the steps I took to be able to browse using the new WiFiPi wireless network driver, and Miami DX.

Version 0.1: First version to document my experiences - still finding and fixing typos
Version 0.2 (8 May '24): Corrected grammar and added a bit more explanation to steps. Nothing fundamental has changed which alters the steps.
Version 0.3 (29 May 2024): Added DNS instructions for Miami as requested by bp500 in the comments.
Version 0.4 (12 June '24): Corrected the fact that my listed DNS server IP addresses are Virgin Media's, not Googles. Listed Google's IP addresses too.
Version 0.5 (16 August '24): updated observation about CPU usage.

Downloads:
Emu68Tools from 23 April: https://github.com/michalsc/Emu68-tools/releases/download/nightly/Emu68-tools-20240423-75ea45.zip (this version contains the first version of the Alpha wifipi driver to support encryption; check here for later versions https://github.com/michalsc/Emu68-tools/releases)
Emu68 release 1: https://github.com/michalsc/Emu68/releases
Prism2v2: https://aminet.net/driver/net/prism2v2.lha
MiamiDX (demo): https://aminet.net/comm/tcp/MiamiDx10cmain.lha and https://aminet.net/comm/tcp/MiamiDx10c-MUI.lha (I already had this up and running with a 3COM PCMCIA card)

The info for where to copy the files is based on Michal Schultz's post: https://www.patreon.com/posts/wi-fi-alpha-102261532

The steps probably also work for other versions of the PiStorm but I don't have the hardware to test with.

Important to note that currently this is still an Alpha version of the driver so bugs or problems can be expected.

Set up the Wireless network driver (these steps are the same for any Network stack, not just MiamiDX)
1: Unpack Emu68 tools
2: Copy file Emu68-WiFi/Devs/Networks/wifipi.device to DEVS:Networks
3: Copy the whole folder emu68/WiFi/Devs/Networks/Firmware to Devs: (so you end up with Devs:Firmware containing a series of txt, bin and clm_blob files; 14 files in the version I originally used) NOTE: I didn't have the Devs:Firmware folder to start with but some of you might)
4: Unpack Prism2v2.lha you can choose to run the installer or copy some files manually

IF MANUAL
5: Copy Wirelessmanager to C:
6: Create a text file in Envarc:sys/ called wireless.prefs
7: Add the lines
network={
     ssid="<name of your wireless network>"
     psk="<your network passphrase>"
}
8: Save the file
9: Reboot

IF USING THE INSTALLER:
5: Use expert mode
6: Choose 'No' when asked to install firmware for the Hermes chipset
7: Choose 'Yes' to set wireless preferences
8: Enter you wireless network name and password when prompted
9a: Choose whether or not to start WirelessManager automatically (it's up to you - see 'Observations' at the end)
9b: Finish the install and reboot

What's the difference between the Manual and the Installer set up?
The process using the installer creates an encrypted version of the wireless password and uses that instead of the open text version which is handy if you don't want your password saved in plain text on your Amiga.
My personal experience is that I couldn't connect after setting up the wireless.prefs file manually, I would just get a timeout. Users Lemaru and Shaytam on the PiStorm discord assured me it should work without the encrypted PSK, so I uncommented the plain text line and commented out the encrypted line, rebooted and it then worked. The timeout was probably not related to the setup method I used (I have an old house with thick brick internal walls and Wifi can sometimes drop).

Starting the Network
10: If you chose to use the installer and start automatically, and all being well, the wifipi.device should have been initialised on reboot. This is done silently so you won't see anything on screen to confirm it.
11: If you have chosen the manual route open up a Shell and enter 'Wirelessmanager wifipi.device' - after a few seconds you hopefully get confirmation that you are associated with a MAC address, key negotiation is completed and CTRL-EVENT-Connected ie you're connected to the access point.

Configuring MiamiDX (Note I already use MiamiDX with a PCMCIA card and copied the original settings rather than set up from scratch)
12: If not already done, install MiamiDX
13: Run Miami and open up `Hardware` > `New` to open up the 'Hardware definition' window
14: Give it a name e.g. WiFiPi (remember this for step 22)
15: `Type` should default to SANA-II driver (if not change it to that using the cycle gadget)
16: In `Driver` enter `DEVS:Networks/wifipi.device` (or browse to it) and leave `Unit` as 0
17: Open `SANA-II parameters`
18: Choose `Query Device` - the settings should auto-complete.
19: Choose `OK` to close the SANA-II parameters window and again to close the Hardware definition window
20: Choose `Interfaces` from the MiamiDX menu
21: Choose `New`
22: My settings are:
 - Name: eth1
 - Alias: WiFiPi
 - Type: Ethernet
 - Hardware: (whatever you called the interface in step 14)
 - Priority: 10
 - IP type: Static (note DHCP might work for you but my router doesn't serve DHCP to my Amiga properly)
 - IP Address: something relevant to your network
 - Netmask Type: Static
 - Netmask: 255.255.255.0 (pretty common)
 - Gateway Type: static
 - Gateway: ip address of your router
 - Multicasts: disabled
 - Multicast pri: 0
 - Control panel: ticked
 - GUI default: unticked
(I don't have any Auto-connect/disconnect settings or Manual routes/aliases)
Select `TCP/IP settings` and in the `Interface TCP\IP settings` screen::
 - Use ICMP: ticked
 - Fake IP: unticked
 - Get dynamic hostame, priority: 0
 - Get dynamic DNS servers: Ignore
 - Preferred offline state: Suspended
 - Get time: unticked
 - DHCP Enable: Ticked
 - Send hostname in request: Ticked
 - Host Name: Something you want to identify your Amiga on if looking in your router interface
23: Select `OK` to close the `Interface TCP/IP Settings` window and again to close the `Interface definition` window
24: Go to `Databases` from the left hand menu
25: Use the cycle gadet at the top to get to `DNS servers`
26: Select `Add` and enter an IP address of a DNS server* in the `IP address field`, press enter (mine is set to 194.168.4.100, which is Virgin Media's)
27: Optionally repeat 26 to add a backup (mine is set to 194.168.8.100)
28: Right-click and choose 'Save' from the Settings menu

*Google's DNS servers are 8.8.8.8 and 8.8.4.4. Others are available if you search.

Now to test:
29: In MiamiDX, and the `Interfaces` section, select your newly created Interface and select 'Online'

Observations:
I Use Tinymeter and as soon as I run wirelessmanager the CPU drops to around 30%-33% free, so I'm going to continue to run this manually for now, only when I want to go online. Discussion on Discord says this is because direct polling, not DMA is used. There's still more than enough free CPU to run web tools like IBrowse, FTP programs etc and not get noticeable slowdown.
UPDATE: I have a new router from my ISP and connecting to the 5G WiFi signal results in negligible CPU usage. The Amiga won't connect to the 2.4 G signal so I don't know if the difference is due to the new router or the choice of signal.

If you make any changes to the wireless.prefs file reboot for them to take effect.
« Last Edit: August 16, 2024, 08:27:37 PM by AndyFC »
A1200 in DIY Tower. 3.2 ROMs (softkicking 3.2.2), OS 3.2.2 with ClassicWB, CF card, CD RW and IDE to SD adapter running off the internal IDE port (using the A4000 4-port IDE adapter from Amigakit), Pistorm 32 lite with Pi4/2GB/Emu68 or Blizzard 1230-IV, with 32MB 60ns RAM and 50MHz 68882 FPU. 3COM PCMCIA Network card running with Miami DX.
MorphOS on PowerMac G5 and ATI 9600 pro
 
The following users thanked this post: Amigadude, 10MARC

Offline TribbleSmasher

Re: Getting online with PiStorm32, Miami DX and Encrypted WiFi
« Reply #1 on: April 29, 2024, 09:28:59 PM »
NOTE: I didn't have the Devs:Firmware folder to start with but some of you might)

I can attach the package with the firmware and such, but remind me to remove it once it gets to release state.
This is still considered ALPHA, folks. ;)
 
The following users thanked this post: danbeaver, Boing-ball

Offline 10MARC

Re: Getting online with PiStorm32, Miami DX and Encrypted WiFi
« Reply #2 on: May 05, 2024, 08:22:05 PM »
Thanks for this nice, clear guide on setting up the new PiStorm wifipi.device - worked just fine. I will link this thread on my video review today
 
The following users thanked this post: AndyFC

Offline David Wright

Re: Getting online with PiStorm32, Miami DX and Encrypted WiFi
« Reply #3 on: May 08, 2024, 01:02:56 AM »
I can’t figure out what I am missing. Diligently followed these steps for my caffeine build but when I point Miami to wifidevice , nothing. It is in devs -networks. Even wirelessmanager in shell finds nothing.
 

Offline Amigadude

  • Full Member
  • ***
  • Join Date: Mar 2002
  • Posts: 139
  • Country: gb
  • Gender: Male
    • Show only replies by Amigadude
    • Amigadude Struggles - A badly maintained blog
Re: Getting online with PiStorm32, Miami DX and Encrypted WiFi
« Reply #4 on: May 08, 2024, 10:29:27 AM »
devs:networks/wifipi.device?

Are you running "Wirelessmanager wifipi.device" before trying to configure it in Miami?
Amigadude AKA JohnN

Apple is like God.... I  don't mind either, it's just their fan clubs that put me off

In order use preference:
A1200, Z4 tower, Buffered IDE, DVDRW, PiStorm32 Lite, RPi3B+ &  WiFi
RPi400 running PiMiga4.0
A600GS
CD32, TF328 & 8GB CF
A mac mini running MorphOS
A1200,  TF1260 (NoFPU) & ne2000 networking
A500
A600
2xCD32
A1200 mobo (Dead, black screen)
 

Offline Amigadude

  • Full Member
  • ***
  • Join Date: Mar 2002
  • Posts: 139
  • Country: gb
  • Gender: Male
    • Show only replies by Amigadude
    • Amigadude Struggles - A badly maintained blog
Re: Getting online with PiStorm32, Miami DX and Encrypted WiFi
« Reply #5 on: May 08, 2024, 10:43:13 AM »
Thanx a lot this gave me more than enough info to get it working.

Followed the first part, didn't need the second part as I previously configured Miami to work with a ne2000 PCMCIA card... I just changed the device and then queried it.

I don't have the network auto starting I just put "Wirelessmanager wifipi.device" in a batch file, added an project icon, left it out, then changed the default tool to iconx and added "WINDOW=CON:0/50//80/WiFi/AUTO/WAIT/CLOSE" as a tooltype.  So I can run it when I need, iconify it, online, do network stuff, offline, un-iconify & then press ctrl+c to close wirelessmanager.
Amigadude AKA JohnN

Apple is like God.... I  don't mind either, it's just their fan clubs that put me off

In order use preference:
A1200, Z4 tower, Buffered IDE, DVDRW, PiStorm32 Lite, RPi3B+ &  WiFi
RPi400 running PiMiga4.0
A600GS
CD32, TF328 & 8GB CF
A mac mini running MorphOS
A1200,  TF1260 (NoFPU) & ne2000 networking
A500
A600
2xCD32
A1200 mobo (Dead, black screen)
 

Offline David Wright

Re: Getting online with PiStorm32, Miami DX and Encrypted WiFi
« Reply #6 on: May 08, 2024, 01:22:40 PM »
executing command (wirelessmanager wifipi.device) gets failed to initialize driver.
Why do all the other devices get recognized as files in the networks folder, such as cnet.device but the wifipi.device shows as a folder?
inside folder there is no .device to access.

Sorry for my crude explanation of my problem but I'm sure it's elementary. It's almost as if I am missing a file in folder.
 

Offline AndyFCTopic starter

Re: Getting online with PiStorm32, Miami DX and Encrypted WiFi
« Reply #7 on: May 08, 2024, 06:56:58 PM »
executing command (wirelessmanager wifipi.device) gets failed to initialize driver.
Why do all the other devices get recognized as files in the networks folder, such as cnet.device but the wifipi.device shows as a folder?
inside folder there is no .device to access.

Hi David, It's possibly something to do with the archive and what tool you're using to unpack it; occasionally I have problems with .Zip files where they don't unarchive correctly e.g. I'll use one tool and the tooltypes aren't set correctly or a folder is seen as a file, but unpacking using another utility will work.

The unpacked archive should contain the following file structure (just concentrating on the WiFi files):
Emu68-WiFi (folder)
 - Devs (folder)
   |- Networks (folder)
     |- wifipi.device (file)
   |- Firmware (folder)
     |- cyfmac43455-sdio.clm_blob (file)
     |- brcmfmac43436s-sdio.bin (file)
     |- brcmfmac43436-sdio.clm_blob (file)
     |- cyfmac43455-sdio.bin (file)
     |- brcmfmac43456-sdio.txt (file)
     |- brcmfmac43436-sdio.txt (file)
     |- brcmfmac43430-sdio.txt (file)
     |- brcmfmac43456-sdio.bin (file)
     |- brcmfmac43455-sdio.txt (file)
     |- cyfmac43430-sdio.clm_blob (file)
     |- brcmfmac43436-sdio.bin (file)
     |- cyfmac43430-sdio.bin (file)
     |- brcmfmac43456-sdio.clm_blob (file)
     |- brcmfmac43436s-sdio.txt (file)
A1200 in DIY Tower. 3.2 ROMs (softkicking 3.2.2), OS 3.2.2 with ClassicWB, CF card, CD RW and IDE to SD adapter running off the internal IDE port (using the A4000 4-port IDE adapter from Amigakit), Pistorm 32 lite with Pi4/2GB/Emu68 or Blizzard 1230-IV, with 32MB 60ns RAM and 50MHz 68882 FPU. 3COM PCMCIA Network card running with Miami DX.
MorphOS on PowerMac G5 and ATI 9600 pro
 

Offline AndyFCTopic starter

Re: Getting online with PiStorm32, Miami DX and Encrypted WiFi
« Reply #8 on: May 08, 2024, 07:48:25 PM »
Thanks @10MARC. In return, I'm linking to your video. I've learnt some things from it, like `shownetstatus`.

https://www.youtube.com/watch?v=TDvz9euZ-fg
A1200 in DIY Tower. 3.2 ROMs (softkicking 3.2.2), OS 3.2.2 with ClassicWB, CF card, CD RW and IDE to SD adapter running off the internal IDE port (using the A4000 4-port IDE adapter from Amigakit), Pistorm 32 lite with Pi4/2GB/Emu68 or Blizzard 1230-IV, with 32MB 60ns RAM and 50MHz 68882 FPU. 3COM PCMCIA Network card running with Miami DX.
MorphOS on PowerMac G5 and ATI 9600 pro
 

Offline David Wright

Re: Getting online with PiStorm32, Miami DX and Encrypted WiFi
« Reply #9 on: May 08, 2024, 11:07:19 PM »
Thanks Andy. Redownloaded and use a different unzip package. Shall see if it helps.
 

Offline David Wright

Re: Getting online with PiStorm32, Miami DX and Encrypted WiFi
« Reply #10 on: May 09, 2024, 04:08:00 PM »
Seems no matter what I do the wifipi.device always transfers over as a folder.
 

Offline F0LLETT

  • Amigakit / A-EON Support
  • Administrator
  • Hero Member
  • *****
  • Join Date: Aug 2007
  • Posts: 828
  • Country: gb
  • Thanked: 59 times
  • Gender: Male
    • Show only replies by F0LLETT
    • Ultimate Amiga
Re: Getting online with PiStorm32, Miami DX and Encrypted WiFi
« Reply #11 on: May 09, 2024, 04:42:41 PM »
Seems no matter what I do the wifipi.device always transfers over as a folder.

Whats the info say, are you able to change it from a folder to say a project if that is case?
Quote from: Hungry Horace
Resolute and Industrious Grand ruler of the yellow people and the Ultimate Amiga Empire
Ultimate Amiga Network (Home of SONY PSP Amiga Emulator and AMOS Factory)

Quote from:  He who shall not be named
"Chris is that you!!!"
My all time favorite quote.
 

Offline David Wright

Re: Getting online with PiStorm32, Miami DX and Encrypted WiFi
« Reply #12 on: May 09, 2024, 05:35:26 PM »
changed to project in information. no luck
 

Offline ncafferkey

  • Sr. Member
  • ****
  • Join Date: Feb 2003
  • Posts: 370
    • Show only replies by ncafferkey
Re: Getting online with PiStorm32, Miami DX and Encrypted WiFi
« Reply #13 on: May 09, 2024, 05:58:30 PM »
Can you unpack it on Linux/Windows/Mac and copy it across?
 

Offline David Wright

Re: Getting online with PiStorm32, Miami DX and Encrypted WiFi
« Reply #14 on: May 09, 2024, 07:10:43 PM »
I have unpacked it from windows with two different type of unzip files.
Right now I am attempting to setup on two different boot cards. One caffeine build and my own custom from scratch 3.2 OS
It appears my wifipi.device shows as a project now.
Place the file in devs/networks
installed prism2 on both and wireless manager is resident in C
my router and password settings are done from prism install.
Emu firmware folder placed in Devs

Done this on both. go to shell and enter wirelessmanager wifipi.device
failed to initialize driver