@akaspar and I have been trying to program the Raspberry Pi Zero W following your tutorial for the past few days but we are unable to SSH into it from our Macbooks or the lab Linux computers. We've tried to disable the authentication (turning off the fields that require passwords and reject empty passwords) and we've also tried to generate a public key to prevent it from rejecting our access attempts but we haven't been successful.
Do you have some time tomorrow to help us in lab?
Thanks!
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Child items ...
Show closed items
Linked items 0
Link issues together to show that they're related.
Learn more.
So, we found a way to connect to the pi by bypassing authentication using public-private keys which we had inserted from the ext4 partition on the sdcard.
We are now trying to install openocd. We had to share the computer's connection and that seems to be working right now per your suggestion.
Hi there,
Are you using one of the kits I prepared, or starting from a fresh install?
If so, you should be able to ssh using the login credentials I wrote on the sd card case, simply by plugging in a usb cable to the usb port (not the power port!). Unless I'm forgetting, these kits included regular Pi Zeros (not with wifi). You also won't need to install openocd because I did this already on those SD cards.
If not, it's hard for me to debug your connection, but you can follow one of the guides online. Usually, easiest is just plugging in a monitor and keyboard to grab the IP address.
We just realized that the password was written on the SD card case, which explains why the common/default password we found on the internet didn't work. We also didn't know that the SD card had been pre-programmed... Sadly, I think we overwrote the card so we are having to redo all of your steps from scratch.
Patching and building openocd can take quite a while -- I'd focus your efforts for this week elsewhere or borrow another one of the kits (I believe Tomas is working with the nrf52 right now in E15). I'm happy to give you a new sd card tomorrow.
I feel like although we used the hex file of a feather board, our board is quite different, isn't it? Does it correspond to any "standard" board we can use to program with Arduino?
Or are there specific instructions for programming it somewhere?
Once you've successfully flashed the feather52 bootloader, from Arduino's perspective you are programming it just as you would the feather52. That means you can plug in an ftdi cable, select that port in arduino, compile code for the feather52, and program your board. You need to hold and release the reset button on your board. This puts it into a mode to be programmed for about a second. Getting the timing right can be tricky at first.
Yes it's that board. Regardless of the LED, my board was successfully programmed by the Raspberry Pi and then the LED stopped lighting up, so maybe that's ok...
With respect to the reset button timing: when should we start pressing it? And what should we see upon release? We don't see a difference pressing the button or not :/
You'll want to press the button to reset the chip, then release it just before the chip is getting programmed. So, I like to release it as the last compilation related printouts happen, just before the programming related printouts start. Did you see me do this in recitation last week?
Happy to keep helping, but I need more detail. What code are you flashing? Are the Port and Board set correctly? What does the output say?