Notifications
Clear all

Cant flash card for pi 4

35 Posts
9 Users
12 Likes
3,055 Views
Duce robot
(@duce-robot)
Member
Joined: 5 years ago
Posts: 672
Topic starter  

And what the heck  its Saturday  night thanks everyone 


   
ReplyQuote
MadMisha
(@madmisha)
Member
Joined: 4 years ago
Posts: 340
 
Posted by: @duce-robot

@madmisha yes I am using or trying all sizes  from 32 gig to 128 trying to flash ubuntu 18.04 bionic for raspberry pi 3 4 I'm using windows.

If you are trying to install the desktop version, you might have some issues, if that's even possible. It is not set up to run on the ARM possessor. There are some version that are though.

 

But here is a link. I would use Pi Imager. That seems to be the correct answer these days. It will pull the correct image that you are looking for.

https://ubuntu.com/tutorials/how-to-install-ubuntu-on-your-raspberry-pi#2-prepare-the-sd-card

 

 I am now just realizing that this is the exact problem I had. It was Pi Imager that told be it was not supported. I wish I remember the answer. It might have been to use balenaEtcher.

 

I might have had to change SD cards. The one I used might not have had high enough read/write speeds.


   
ReplyQuote
Robo Pi
(@robo-pi)
Robotics Engineer
Joined: 5 years ago
Posts: 1669
 
Posted by: @madmisha

@robo-pi I would really like to eventually move into FPGAs. If you have a channel I would love a link.

 I started a very crude channel a while back and put up a few things on eSpeak and Pocketsphinx.  When I start posting videos on FPGA's they too will be quite crude.  There's so much to cover on FPGAs.  Add to this that I'm only just a beginner with them myself.  Although I have worked with them before many years ago.

I'll be working with very inexpensive, and what many people consider to be "obsolete" FPGA and CPLD boards.  Although, they are still readily available so I'm not sure obsolete is a fitting label.   The bottom line is that everything I do should be transferable with any advanced FPGA or CPLD boards anyway.

Here's the FPGA board I'll be using:  It uses a Cyclone II Altera FPGA chip.  In fact, it's basically just the FPGA chip itself.  Not many additional peripherals on the board.  That's actually what I like about it.  It does have an on-board 50Mhz clock.  A user defined push button and three LEDs.   It also has an EEPROM chip on the back side that is used to permanently store the hardware configuration data.  I personally think this is a really good introductory level board.

Here's the CPLD board I'm using: This uses the Max II CPLD chip.  This board is also a very bare-bones board basically just the CPLD chip with no extra frills.  It does have a single user accessible LED but no push button. It also has a 50Mhz clock on the board.

I'll be using Quartus II software to configure these boards.  This is a free download for Windows or Linux.  But it won't run on ARM processors so it can be used on a Raspberry Pi or Jetson Nano.

I don't know of any alternatives to the Quartus II software.  Xilinx makes FPGA software, but they won't work with the FPGA and CPLD chips shown above.  You need to use Xilinx chips and I can't find them on inexpensive development boards like the two shown above.

Other Software

You can actually get by with just the Quartus II software as it provides editors for VHDL, and Verilog-HDL, as well as schematic entry.  So you can do everything with just the Quartus II package.

However, for various reasons, I prefer to develop using lighter-weight software.  It runs faster, and can also be run on a Raspberry Pi or Jetson Nano which I prefer to use most of the time.  You can develop the VHDL and Verilog-HDL using these smaller faster programs.  But eventually you'll need to return to Quartus to define the chip pinouts and program the actual FPGA and CPLD boards.

I basically use three free software packages:

  1. iverilog - a free and fast Verilog compiler
  2. ghdl - a free and fast VHDL compiler
  3. gtkwave - a free and fast waveform simulator

With those three small and fast programs you can quickly test your Verilog and VHDL designs and inspect the output waveforms to verify that they are working correctly.   As I mentioned earlier, you can do all of this in Quartus II, but it tends to be more cumbersome and slower.   Plus iverliog, ghdl, and gtkwave will all run on a Raspberry Pi or Jetson nano.  They are very small and fast programs.

Finally, I also use CircuitVerse Online Digital Logic Simulator Again, you can do this in Quartus II as well.  But I find Circuitverse a bit quicker and easier to use to design and simulate logic circuits.

When I start making videos on these I'm planning on making three different series in parallel.

  1. A series focused on the FPGA and CPLD boards, Quartus II, and using CircuitVerse
  2. A series focused on Verilog-HDL
  3. A series focused on VHDL

My hope is to do these all in parallel.   First I'll design a circuit using schematics, then do the same circuit in Verilog-HDL, and finally the same circuit again written in VHDL.   The reason I'll be doing this is simple.  It's simply what I am personally doing.  So I'll just be making videos to share what I'm doing.

The circuits I make will be simple, and not of much practical use as-is.   But they can certainly be modified for many different applications and I'll be demonstrating how they can easily be modified.

But don't look for these videos until well into the fall or early winter.  I'll post links to them on these forums when I start making them.

DroneBot Workshop Robotics Engineer
James


   
DaveE and MadMisha reacted
ReplyQuote
Duce robot
(@duce-robot)
Member
Joined: 5 years ago
Posts: 672
Topic starter  

@madmisha yep that is the one I used  I wonder if it could be my wi fi   or computer it works with a pre flashed card but I wanted ubuntu for ros since the ros debian install is ridiculous. 


   
ReplyQuote
Spyder
(@spyder)
Member
Joined: 5 years ago
Posts: 846
 

@duce-robot

I just had to reflash 2 of the Pi's in my bot over to Ubuntu due to Raspbian not playing overly nice with ROS

I had to use the windows diskpart in order to perform the "clean" procedure before I could format the disk with "SD Card Formatter", then I used "Win32DiskImager" to write the image with no problems found

I know that somebody said that "Win32DiskImager" no longer works, but, I'm still using it with no problems

They're both up and running, and in case you're wondering, they're only 3B, not even a +. Neither is acting as  host tho, they're both client. The Jetson is the host

I haven't got round to working out exactly what needs to be done to the Arduino


   
Duce robot reacted
ReplyQuote
MadMisha
(@madmisha)
Member
Joined: 4 years ago
Posts: 340
 

@duce-robot What SD card are you using? I ended up ordering one that I knew was a higher quality. That might have been my answer. It still works today. It might not allow you to write on a card that doesn't have a high enough read and write speeds to support the OS.


   
ReplyQuote
Duce robot
(@duce-robot)
Member
Joined: 5 years ago
Posts: 672
Topic starter  

@madmisha 128 gig netac  64 gig evo  it shows files got flashed to it but pi won't boot this is using pi imager.


   
ReplyQuote
Duce robot
(@duce-robot)
Member
Joined: 5 years ago
Posts: 672
Topic starter  

@spyder yes this is weird  I wonder if the pi imager got corrupted  during downloading  ?


   
ReplyQuote
Spyder
(@spyder)
Member
Joined: 5 years ago
Posts: 846
 

@duce-robot

I never tried the pi imager. I've been using Win32DiskImager since forever (Pi isn't the first time I've needed it)


   
ReplyQuote
Duce robot
(@duce-robot)
Member
Joined: 5 years ago
Posts: 672
Topic starter  

@spyder that's what I'm trying to do get Ubuntu in for Ros but it giving me a lot of hassle but that's ok I'll move the pi 4 to the ma and replace it with a nano or panda I'm leaning towards the panda with it's built in Arduino and no sd card needed .I want an 864 but out of stock.


   
ReplyQuote
Spyder
(@spyder)
Member
Joined: 5 years ago
Posts: 846
 

@duce-robot

I didn't realize you were using Ubuntu with the pi4. I'd been using the pi3B, so I just tried the ubuntu 18.04 image on the pi4, and guess what ?

Your problem isn't with flashing the card.

My pi4 won't boot with the ubuntu 18.04 image either

Then I tried the 19 and that didn't work, so I tried the 19 64bit, and that didn't work, so I tried the 20, and that one worked

I used the 32 bit. I'd recommend against the 64 bit as I'm not sure that Melodic is set up for 64 bit

So that's what you should try next... Ubuntu 20. Worked for me

 


   
ReplyQuote
Inq
 Inq
(@inq)
Member
Joined: 2 years ago
Posts: 1900
 

I'm trying to use an SD card with a WeMos ESP8266.  I've looked in the SD.h file and there appears no way to format the SD card like I can SPIFFS or LittleFS.  

My next try was to format it with Windows.  Unfortunately, it was previously formatted for a Raspberry Pi and Windows only recognized some 60MB partition, not the the rest multi-GB.  I've also tried going into Disk Manager and delete the partitions and let Format have a totally blank SD, but it won't let me delete the Primary Partition.

How do I format this for FAT16 or FAT32... what I think SD.h needs?

Thanks.

3 lines of code = InqPortal = Complete IoT, App, Web Server w/ GUI Admin Client, WiFi Manager, Drag & Drop File Manager, OTA, Performance Metrics, Web Socket Comms, Easy App API, All running on ESP8266...
Even usable on ESP-01S - Quickest Start Guide


   
ReplyQuote
Will
 Will
(@will)
Member
Joined: 3 years ago
Posts: 2504
 

@inq 

Do you still have access to the Raspberry Pi ?

Anything seems possible when you don't know what you're talking about.


   
ReplyQuote
Ron
 Ron
(@zander)
Father of a miniature Wookie
Joined: 3 years ago
Posts: 6662
 

@inq Raspberry Pi imager or maybe Balena Etcher.

First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, and 360, fairly knowledge in PC plus numerous MPU's and MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PL/I and PL1, Pascal, Basic, C plus numerous job control and scripting languages.
Sure you can learn to be a programmer, it will take the same amount of time for me to learn to be a Doctor.


   
ReplyQuote
(@davee)
Member
Joined: 3 years ago
Posts: 1608
 

Hi @inq,

I just noticed this is about SD cards ... I rarely use them but I treat them the same as USB drives .. I even have a little gizmo that looks like a USB drive with SDslots in it .. so I am assuming Rufus works with SDcards as well ... just I haven't checked...

 Sorry I am not following the story, and don't know anything about your project, nor have I checked this out experimentally, so apologies for any rabbit holes or man traps I am accidentally pointing you to...

My 'go to' for installing iso images, using Windows is Rufus ... and I know it just wipes and formats the USB drive, regardless of what it currently contains ......

https://rufus.ie/en/

it isn't massively pretty, but its free and seems to work! You don't need to install it ... when you run it, it calls up the Windows (with Win 10 anyway) "Do you really want to install this?" type of dialog box, to which you click Yes, but it just runs. It doesn't actually install anything... You go through the same thing, each time you run it.

.................................

You are looking for something a bit different from a straight iso install, but I found this on the FAQ.

https://github.com/pbatard/rufus/wiki/FAQ#Help_how_do_I_restore_my_USB_to_how_it_was_before_I_created_a_bootable_drive

which says: 

image

Have a read though .. and maybe try it? There are lots of other FAQs, on the site as well... I haven't read them all!

......................................

As for FAT16/Fat 32 ... I have no idea what your particular program wants, but FAT16 was designed when discs wer much, much smaller. FAT 32 isn't much cleverer, unlike some of the exFAT stuff, it just uses longer numbers! Hence, I would have guessed most things have moved on to at least FAT32 by now.

For a quick read ... https://www.techrepublic.com/article/all-about-partitions-the-right-fat-can-save-your-waste/

Good luck my friend. Dave

PS If you do use Rufus, make sure the right drive is selected! It is very good at deleting what was in the drive before!  (Luckily it normally picks the right one automatically .. but ...)


   
ReplyQuote
Page 2 / 3