Skip to content
Home » raspberry pi » Page 3

raspberry pi

Visit Tacticalware.com for information related to this tag and others. We look forward to assisting in your tech projects with our in-depth knowledgebase…

RASPBERRY PI GREEN SCREEN

An issue that you will find with the Raspberry Pi’s are the Green Screens, as show in the picture. Green Screens are the result of a corrupted Operating System. The simple fix for this, is to reinstall the OS onto the Micro SD card, or onto the M.2 ssd if you run your Pi devices the way I do.



Thanks for reading

Hardware that I used:
Raspberry Pi 4 (4gb)
https://amzn.to/3q551IO

SanDisk 32GB Ultra microSDHC UHS-I Memory Card with Adapter
https://amzn.to/2Vfvo0y

CanaKit 3.5A Raspberry Pi 4 Power Supply (USB-C)
https://amzn.to/3fNTYPu

CanaKit Raspberry Pi 4 Micro HDMI Cable – 6 Feet
https://amzn.to/33u5hr9

Western Digital 500GB WD_Black SN750 NVMe
https://amzn.to/3nZ5pH4

Plugable USB C to M.2 NVMe Tool-free Enclosure
https://amzn.to/3lflV3L


BOOT RASPBERRY PI 4 FROM M.2 USB DRIVE

If you want huge performance increases, consider getting rid of the Micro SD card, and moving your data and OS over to an M.2 Drive on the Raspberry Pi. How do you do this, you ask. First, make sure you have the same hardware as me, in order to follow along. Second, run through the following guide.

If you need to do this from scratch, follow this guide to setup your Raspberry Pi: https://tacticalware.com/install-raspbian-os-on-raspberry-pi-4/

Then, make sure your firmware / eeprom is up to date. If you need assistance with it, follow this guide:
https://tacticalware.com/update-new-raspberry-pi-4-firmware-eeprom/

Once you have both steps above completed, you can move onto setting up the M.2 drive

For this, I have inserted a WD 500GB M.2 Drive into a USB 3.0 dongle, and have it connected to my Pi. If you want to get the same parts as I have, skip to the bottom of this page.

Now, you will want to connect your M.2 dongle to your Raspberry Pi 4, and boot it up.

Once you are at the Desktop:
Open a Terminal
sudo bash
raspi-config
Select option 6 – Advanced Options
Choose option A6 – Boot Order
Select option B1 – USB Boot
Press Enter
You should now be on the “Usb device is the default boot device” screen
Select OK
Scroll to Finish and select it
You will see the message:
Would you like to reboot now?
Choose NO

Back on your Raspberry Pi 4 Desktop
In the top left corner, click on the Raspberry to access the drop down menu
Select Accessories
Scroll over to and choose SD Card Copier

A dialog box will open
If you have the same setup as me, using the same hardware below, you will want to select the same options, otherwise you will have to choose the relevant settings for you
Copy from Device – Select the option for the SC32G
Copy to Device – Select the option for the WDS500G3
Select Start
Choose YES – to erase all contents
Click OK once the contents are copies over successfully
Select Close
Shutdown your Raspberry Pi 4
Remove your Micro SSD
Power the Pi back on, it should now boot from the USB M.2 Drive
Open a terminal
Type
sudo bash
raspi-config
Select option 6 – Advanced Options
Choose option A1 – Expand filesystem
Press Enter
Root File system will be resized
Click Ok
Reboot

You are done!

Hardware that I used:
Raspberry Pi 4 (4gb)
https://amzn.to/3q551IO

SanDisk 32GB Ultra microSDHC UHS-I Memory Card with Adapter
https://amzn.to/2Vfvo0y

CanaKit 3.5A Raspberry Pi 4 Power Supply (USB-C)
https://amzn.to/3fNTYPu

CanaKit Raspberry Pi 4 Micro HDMI Cable – 6 Feet
https://amzn.to/33u5hr9

Western Digital 500GB WD_Black SN750 NVMe
https://amzn.to/3nZ5pH4

Plugable USB C to M.2 NVMe Tool-free Enclosure
https://amzn.to/3lflV3L

Thanks for reading…….

UPDATE NEW RASPBERRY PI 4 FIRMWARE / EEPROM

This guide assumes you do not have a running Raspberry Pi 4 device, and this is your first time opening it up. If that is the case, make sure you follow the steps in this guide first
https://tacticalware.com/install-raspbian-os-on-raspberry-pi-4/

Once your Operating system is setup and functional you will want to update the firmware to the latest revision, therefore the objective of this guide is to show you how to update Raspian and how to update the eeprom / firmware

Open a terminal
sudo bash
apt update
apt upgrade
rpi-update

Would you like to proceed
Type y
Now reboot your Pi

Open a terminal
sudo bash
rpi-eeprom-update -d -a
reboot your Pi after it updates

Open a terminal
raspi-config
Scroll down and select Option 8 – Update
Update now runs, and after the update completes
Scroll down and select Option 6 – Advanced Options
Then scroll down to Option A7 – Bootloader Options
Select Option E1 Latest – Use the latest version of the boot rom software
Press Enter
Select OK
On the Reset boot rom to defaults screen
Select No
On the Boot rom not reset to defaults screen
Select OK
Scroll down and select Finish
Select Yes

Your Firmware / EEPROM are now Updated, and you will have the latest version with the latest features.

Hardware I used:
Raspberry Pi 4 (4gb)
https://amzn.to/3q551IO

SanDisk 32GB Ultra microSDHC UHS-I Memory Card with Adapter
https://amzn.to/2Vfvo0y

CanaKit 3.5A Raspberry Pi 4 Power Supply (USB-C)
https://amzn.to/3fNTYPu

CanaKit Raspberry Pi 4 Micro HDMI Cable – 6 Feet
https://amzn.to/33u5hr9

Thanks for reading!

UDATE EXISTING RASPBERRY PI 4 FIRMWARE / EEPROM

This guide assumes you already have a running Raspberry Pi 4 device. If you do not already have it setup, you can follow this guide first (https://tacticalware.com/install-raspbian-os-on-raspberry-pi-4/)

This objective of this guide is to show you how to update Raspian and how to update the eeprom / firmware

Open a terminal
sudo bash
apt update
apt upgrade
rpi-update

Would you like to proceed
Type y
Now reboot your Pi

Open a terminal
sudo bash
rpi-eeprom-update -d -a
reboot your Pi after it updates

Open a terminal
raspi-config
Scroll down and select Option 8 – Update
Update now runs, and after the update completes
Scroll down and select Option 6 – Advanced Options
Then scroll down to Option A7 – Bootloader Options
Select Option E1 Latest – Use the latest version of the boot rom software
Press Enter
Select OK
On the Reset boot rom to defaults screen
Select No
On the Boot rom not reset to defaults screen
Select OK
Scroll down and select Finish
Select Yes

Your Firmware / EEPROM are updated, and you will have the latest version with the latest features.

Hardware I used:
Raspberry Pi 4 (4gb)
https://amzn.to/3q551IO

SanDisk 32GB Ultra microSDHC UHS-I Memory Card with Adapter
https://amzn.to/2Vfvo0y

CanaKit 3.5A Raspberry Pi 4 Power Supply (USB-C)
https://amzn.to/3fNTYPu

CanaKit Raspberry Pi 4 Micro HDMI Cable – 6 Feet
https://amzn.to/33u5hr9


Thanks for Reading!

SSH On My RASPBERRY PI 4

This is a quick one. I needed ssh on my Raspberry Pi 4, and this is how I did it

Turn on the Pi

Once on the Desktop, click on the Terminal icon

Type:
sudo bash
apt-get update
apt-get install openssh-server
y

Once that installs successfully
systemctl enable ssh
systemctl start ssh

That’s it. You can now login remotely to your pi through ssh



Thanks for reading

Hardware that I used:
Raspberry Pi 4 (4gb)
https://amzn.to/3q551IO

SanDisk 32GB Ultra microSDHC UHS-I Memory Card with Adapter
https://amzn.to/2Vfvo0y

CanaKit 3.5A Raspberry Pi 4 Power Supply (USB-C)
https://amzn.to/3fNTYPu

CanaKit Raspberry Pi 4 Micro HDMI Cable – 6 Feet
https://amzn.to/33u5hr9

Western Digital 500GB WD_Black SN750 NVMe
https://amzn.to/3nZ5pH4

Plugable USB C to M.2 NVMe Tool-free Enclosure
https://amzn.to/3lflV3L

RASPBERRY PI CHROMEDRIVER INSTALLATION

Instead of running through the long drawn out directions that accompany the error on the screen….this is what i used to install chromedriver

pip3 install chromedriver

You’re welcome



Thanks for reading

Hardware that I used:
Raspberry Pi 4 (4gb)
https://amzn.to/3q551IO

SanDisk 32GB Ultra microSDHC UHS-I Memory Card with Adapter
https://amzn.to/2Vfvo0y

CanaKit 3.5A Raspberry Pi 4 Power Supply (USB-C)
https://amzn.to/3fNTYPu

CanaKit Raspberry Pi 4 Micro HDMI Cable – 6 Feet
https://amzn.to/33u5hr9

Western Digital 500GB WD_Black SN750 NVMe
https://amzn.to/3nZ5pH4

Plugable USB C to M.2 NVMe Tool-free Enclosure
https://amzn.to/3lflV3L

USING OCTOPI TO FLASH FIRMWARE

This guide will be specific to the setup for my CR10 S5 with the SKR 1.4 Turbo board

Once I build the firmware in VSCode, I needed an easy way to upload it to the device.

To do so, I logged into Octopi

Clicked on the Wrench icon

Clicked on Plugin Manager

Searched for Firmware Updater

And installed the application

Now I have to log into my Raspberry Pi with Octoprint on it

So I open Putty

Input the IP Address for the PI and login

The I enter the following commands

sudo apt-get install usbmount
sudo nano /etc/usbmount/usbmount.conf
Find FS_MOUNTOPTIONS and change it to:
FS_MOUNTOPTIONS=”-fstype=vfat,gid=pi,uid=pi,dmask=0022,fmask=0111″
sudo systemctl edit systemd-udevd
Add these lines

[Service]
PrivateMounts=no
MountFlags=shared

Save and Close the file

sudo systemctl daemon-reload
sudo service systemd-udevd –full-restart

reboot

Log back into the PI

cd /media
ls -la
Verify full permissions on /media/usb
For mine, /media/usb pointed to usb0 so I had to run
chmod 777 usb0

Now log into Octopi through the browser

Click back onto the Wrench

Navigate down to Firmware Updater

Click the Wrench in Firmware Updater

Set the Flash Method

For my flash method, using the LPC1769 board, I had to select LPC1768

For the Path to firmware folder, I put in /media/usb

Click test to make sure the path is valid

Save

Back in Firmware Updater main screen

Click Browse

Find the firmware.bin file that you created with VSCode

and Click Flash from file

Now the board is flashing and when it completes you will get the message Flash Successful

Thats it!



Thanks for reading

Hardware that I use:
Raspberry Pi 4 (4gb)
https://amzn.to/3q551IO

SanDisk 32GB Ultra microSDHC UHS-I Memory Card with Adapter
https://amzn.to/2Vfvo0y

CanaKit 3.5A Raspberry Pi 4 Power Supply (USB-C)
https://amzn.to/3fNTYPu

CanaKit Raspberry Pi 4 Micro HDMI Cable – 6 Feet
https://amzn.to/33u5hr9

Western Digital 500GB WD_Black SN750 NVMe
https://amzn.to/3nZ5pH4

Plugable USB C to M.2 NVMe Tool-free Enclosure
https://amzn.to/3lflV3L

ENDER 3 PRO – OCTOPRINT – BED SIZE ISSUE [SOLVED]

When you send a print job to your Ender 3 Pro, using your Octopi, it starts to print, and the hotend does not recognize the correct size for the bed. The hotend is pushed off to the side, begins clicking, and the print is a mess.

Solution:
Make sure your Slicer has the correct bed size set in it
Make sure the OctoPi has the correct printer setup in it
Turn OFF your printer
Turn OFF your OctoPi
Disconnect the USB Cable in your Ender 3, from the OctoPi
Wait 30 seconds
Turn ON the printer
Turn ON the OctoPi
Wait 1 minute
Plug the USB cable back into the Ender 3
Login into your OctoPi
Click connect so the OctoPi works again with the Ender 3
Send the print job that failed before

And now it works!

Writing OctoPrint to SD Card

Quick How-To using a Windows 10 Computer

Simply put, you need to download a third party application to write the OctoPi image to an SD Card. I suggest Etcher for this

Download Etcher from https://www.balena.io/etcher/
Install Etcher onto your Windows 10 computer
Download the OctoPrint image from https://octopi.octoprint.org/latest to your local hard drive on your Windows 10 computer
Unzip the OctoPrint image once the download finishes
Plug your SD Card into the Windows 10 Computer
Open balenaEtcher
Click Select Image
Select your OctoPrint***.img file
Your SD Card should be automatically found and selected by Etcher
Click Flash
The image will now be written to the SD Card
When the image has completed writing you will see the message Flash Complete!
You can now insert the OctoPrint SD Card into the Raspberry Pi and fire it up



Thanks for reading

Hardware that I use:
Raspberry Pi 4 (4gb)
https://amzn.to/3q551IO

SanDisk 32GB Ultra microSDHC UHS-I Memory Card with Adapter
https://amzn.to/2Vfvo0y

CanaKit 3.5A Raspberry Pi 4 Power Supply (USB-C)
https://amzn.to/3fNTYPu

CanaKit Raspberry Pi 4 Micro HDMI Cable – 6 Feet
https://amzn.to/33u5hr9

Western Digital 500GB WD_Black SN750 NVMe
https://amzn.to/3nZ5pH4

Plugable USB C to M.2 NVMe Tool-free Enclosure
https://amzn.to/3lflV3L

Raspberry Pi Backup using MAC

RASPBERRY PI – Backup Your Raspberry Pi SD Card Using a MAC

 

This is a quick how to on backing up your Raspberry Pi SD Card

Shutdown the Raspberry Pi and remove the SD Card

Plug the SD Card into your MAC

Go to Spotlight (the little magnifying glass on the top right of your MAC), type Terminal, and press Enter

Now the rest of the commands are done in the Terminal

Type:
sudo bash and press enter

Type in your password to get the # prompt

Type:
mkdir /raspberry-pi and press enter
mkdir /raspberry-pi/backups and press enter
cd /raspberry-pi/backups and press enter

Type
df -h and look for your SD Card. My card is listed as /dev/disk1s1. Once you know which card is your SD Card type

diskutil unmount /dev/disk1s1 (or whatever your SD Card is listed as)

dd if=/dev/rdisk1 of=/raspberry-pi/backups/wheezy-todaysdate-backup.img bs=1m and press enter

your SD Card will now be backed up

Once the backup is complete type:
diskutil eject /dev/rdisk1

And that is it.



Thanks for reading

Hardware that I used:
Raspberry Pi 4 (4gb)
https://amzn.to/3q551IO

SanDisk 32GB Ultra microSDHC UHS-I Memory Card with Adapter
https://amzn.to/2Vfvo0y

CanaKit 3.5A Raspberry Pi 4 Power Supply (USB-C)
https://amzn.to/3fNTYPu

CanaKit Raspberry Pi 4 Micro HDMI Cable – 6 Feet
https://amzn.to/33u5hr9

Western Digital 500GB WD_Black SN750 NVMe
https://amzn.to/3nZ5pH4

Plugable USB C to M.2 NVMe Tool-free Enclosure
https://amzn.to/3lflV3L