Articles Hierarchy

Articles Home » RPI » RPI Bullseye OS

RPI Bullseye OS

Raspberry Pi OS
upgrade with USB3 SSD
Raspberry Pi OS (64)
Processing 4 on RPIOS64
NODE install
VS Code for PICO work install


Raspberry Pi OS



see today a new Raspberry Pi OS is available,
https://www.raspberrypi.com/news/raspberry-pi-os-debian-bullseye/

and download from here 2021-10-30-raspios-bullseye-armhf.zip 1.2GB
or from here 2021-10-30-raspios-bullseye-arm64.zip
if you dare...



pls check out the release notes



first impressions:
-a-
on a RPI4 i still have the bad problems on a old HDMI TV ( blue screen every few seconds / unusable )
same like old OS,
not have using RPI3
not have with RPI4 using other OS
-b-
display resolution requires HDMI connect at boot
also set by raspi-config not possible ( like for VNC only )
now i found there is a new setup feature " headless resolution " worked for the VNC window, but did not set the display resolution,
so i had a 1920*1080 black window in VNC with a ?720?display content
-c-
problem with ethernet while WIFI works, or if WIFI works Ethernet hot plug not work.
-d-
VNC / SSH login on RPI4 shows very slow communication
like when type keyboard..
but not on RPI3
-e-
raspberry pi camera libcamera-still error: failed import fd 21
well for old camera tool use BUSTER Legacy OS
-f-
the CHROME version not allow SYNC
-g- to day i could upgrade nodejs to v17 but for Buster only,
here i got only v12 installed.

- - -
so better wait some more days... also i possibly stay away from updates on old system



upgrade with USB3 SSD


now that might not directly be about this OS version,
but here what i try 13.1.2022
++++
Raspberry Pi 4 is as usual not prepared for USB boot,
so there has to be a first step, one time boot, from a special prepared uSD card,
to set the fuses what allow to search at boot for a boot-able USB drive.
this one time image easy to find with the Raspberry Pi Imager.
info from https://www.tomshardware.com/how-to/boot-raspberry-pi-4-usb


++++

+ from a old PC i remove a old
SSD ( TEAMGROUP L5 SATA III Lite 120GB )

+ at Advice i buy a new 'Enclosure 2.5 Sata UGREEN USB3.0' /7.60EUR/

++ format under windows as extFat and
use Raspberry Pi Imager v1.6.2
to burn 'Raspberry Pi OS 32b Debian Bullseye'

and use [Ctrl][shift][X]
to set all my defaults ... resulting in a 'firstrun.sh' file in /boot/


ok, lucky it boots ( in RPI4 )



so, how to test its speed?
reboot / or even reboot via VNC /.. worthless as VNC and WIFI hangs often
and my HDMI blinks and VNC screen works only if i first boot with HDMI

some info:
pi@RPI4:~ $ lsusb
Bus 002 Device 002: ID 174c:1153 ASMedia Technology Inc. ASM1153 SATA 3Gb/s bridge

Filesystem Type Size Used Avail Use% Mounted on
/dev/root ext4 110G 3.8G 102G 4% /
/dev/sda1 vfat 253M 49M 204M 20% /boot

try:
sudo curl https://raw.githubusercontent.com/TheRemote/PiBenchmarks/master/Storage.sh | sudo bash
from https://jamesachambers.com/raspberry-pi-4-usb-boot-config-guide-for-ssd-flash-drives/

a Enclosure 2.5 Sata UGREEN (30847) USB3.0
with 'old' TEAMGROUP L5 SATA III Lite 120GB
RESULT SSD USB3 Category Test Result
HDParm Disk Read 294.47 MB/s
HDParm Cached Disk Read 262.74 MB/s
DD Disk Write 172 MB/s
FIO 4k random read 11289 IOPS (45159 KB/s)
FIO 4k random write 7343 IOPS (29372 KB/s)
IOZone 4k read 25038 KB/s
IOZone 4k write 24783 KB/s
IOZone 4k random read 17038 KB/s
IOZone 4k random write 21704 KB/s

Score: 6297



update:
ORICO NVME M2 SSD & WD BLUE SN570 250GB Category Test Result
HDParm Disk Read 29.59 MB/s
HDParm Cached Disk Read 29.14 MB/s
DD Disk Write 29.0 MB/s
FIO 4k random read 3013 IOPS (12055 KB/s)
FIO 4k random write 3174 IOPS (12696 KB/s)
IOZone 4k read 12258 KB/s
IOZone 4k write 10433 KB/s
IOZone 4k random read 11190 KB/s
IOZone 4k random write 11300 KB/s

Score: 2539


WD blue SN570 250GB
ORICO M.2 USB3.1 Type-C (Enclosure M.2 TCM2-C3 ORICO)
disappointing ?usb2? cable problem, the original is type c to type c / for RPI need type c to type a?
see further play with that drive here

now i found online ( after hours check in town computer shops AND mobile shops )

Ugreen 30705 USB 3.0 TO Type-C Female
should fit with the original cable, with delivery about 6 EUR / will see if its worth it.
box Category Test Result
HDParm Disk Read 282.75 MB/s
HDParm Cached Disk Read 272.60 MB/s
DD Disk Write 179 MB/s
FIO 4k random read 18433 IOPS (73735 KB/s)
FIO 4k random write 10348 IOPS (41394 KB/s)
IOZone 4k read 26843 KB/s
IOZone 4k write 27114 KB/s
IOZone 4k random read 19453 KB/s
IOZone 4k random write 27062 KB/s

Score: 7628

not too bad, beats the USB3.0 SSD
and beats the USB2 charge/sync cable by factor 3
( but not reached the 9000 i dreamed of )
and only little bit faster as the USB3.0 SSD

some info from booting that devices from a RPI4 here



but i also buy a SunDisk ULTRA A1 uSD card 64GB /5.50EUR/
so i put it in, use the SD Card Copier utility
shutdown and disconnect USB3 SSD & power up again

RESULT uSD 64GB Category Test Result
HDParm Disk Read 38.48 MB/s
HDParm Cached Disk Read 38.52 MB/s
DD Disk Write 21.7 MB/s
FIO 4k random read 2800 IOPS (11200 KB/s)
FIO 4k random write 960 IOPS (3843 KB/s)
IOZone 4k read 8231 KB/s
IOZone 4k write 1895 KB/s
IOZone 4k random read 7112 KB/s
IOZone 4k random write 3210 KB/s

Score: 1136


also i have a old SanDisk Ultra Flair USB3 Stick /4.0EUR/
same procedure, just first save some code from there...

RESULT USB3 32GB Stick Category Test Result
HDParm Disk Read 46.45 MB/s
HDParm Cached Disk Read 77.40 MB/s
DD Disk Write 15.8 MB/s
FIO 4k random read 1641 IOPS (6567 KB/s)
FIO 4k random write 207 IOPS (828 KB/s)
IOZone 4k read 17241 KB/s
IOZone 4k write 1914 KB/s
IOZone 4k random read 7031 KB/s
IOZone 4k random write 869 KB/s

Score: 807



here a rare setup with 24" HDMI TV, Keyboard Mouse, Ethernet cable
as i usually play RPI headless:




just to compare i test that USB3 SSD on my old
Raspberry Pi 3 B+ ( boot via that only USB2 port ( using a 5V 3A PS ))
RESULT SSD USB2 RPI3B+ Category Test Result
HDParm Disk Read 33.75 MB/s
HDParm Cached Disk Read 33.29 MB/s
DD Disk Write 29.6 MB/s
FIO 4k random read 2690 IOPS (10761 KB/s)
FIO 4k random write 3338 IOPS (13352 KB/s)
IOZone 4k read 13586 KB/s
IOZone 4k write 11944 KB/s
IOZone 4k random read 10669 KB/s
IOZone 4k random write 13524 KB/s

Score: 2778


RPI3 ORICO USB M2 SSD
Category Test Result
HDParm Disk Read 35.78 MB/s
HDParm Cached Disk Read 35.08 MB/s
DD Disk Write 36.9 MB/s
FIO 4k random read 3615 IOPS (14463 KB/s)
FIO 4k random write 3712 IOPS (14848 KB/s)
IOZone 4k read 15770 KB/s
IOZone 4k write 12534 KB/s
IOZone 4k random read 13113 KB/s
IOZone 4k random write 15521 KB/s

Score: 3253

second test 'Score: 3500'
again usb2 cable but better as RPI4 ( test repeated )


well, as with most old windows PC i would also say for a RPI3
that a upgrade with a SSD makes it usable again.




Raspberry Pi OS (64)


we use the 32 bit version, but a 64 bit version was in "beta" long time
now 2.2.2022 its official SEE HERE
i downloaded 2022-01-28-raspios-bullseye-arm64.zip 1.2GB

what i burned ( temporary ) to a 8GB USB2 stick ( using the Raspberry Pi imager with my [ctrl][shift][x] settings for headless install/work )
work remote SSH / update / activate VNC
and
seeDebian GNU/Linux 11
DEBIAN bullseye
Linux version 5.10.92-v8+

i had a problem to show the HDMI on my monitor ( even from RPI boot ),
but find out that i must OFF/ON the monitor ( TV ) to get the screen,
besides the flickering ( HDMI reinit ) i see on this RPI4 with this monitor from the start.

use the sd-copy tool to transfer it to a 64GB uSD card
and clean the USB stick ( currently not have a uSD card 'reader' so needed the USB intermediate )


and big discussion about difference ( like speed ) follows...
https://hackaday.com/2020/01/28/raspberry-pi-4-benchmarks-32-vs-64-bits/
more info https://www.youtube.com/watch?v=ET-DJLnNX-Q


i did try from this rpios64 and from the rpios32 ( USB3 SSD )
to change the boot order to: USB if available ( so i not have to remove the uSD (difficult housing) )
but run into a error


Processing 4 on RPIOS64


update: today 6.2.2022 i try
RPI4
Raspberry Pi OS 64bit 'bullseye'
and find processing / downloads / Linux ARM 64-bit
https://github.com/processing/processing4/releases/download/processing-1280-4.0b5/processing-4.0b5-linux-arm64.tgz

unzip to projects and just run 'processing' ( no install )



sadly arduino 2 not ready for RPIOS64, only 1.8.19


on RPI4 4GB / 120GB SSD / RPIOS32 i
install firefox, compare speed with speedometer 2
and compare also with my win 10 PC ( 10 times faster as RPI )


so besides that RPI browsing still sucks ( compared to a PC )
i have recently a CHROME start problem... with whatever start-option i choose
( last page / fix home page / empty tab )
with firefox i opted start 'empty page' ( and show bookmark bar )
esp on RPI3 ( 1GB RAM ) best way..


NODE install


if you burn the small desktop RPIOS version
there is no NODE preinstalled, recommend:

get NVM
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash

nvm install 12
nvm install 16
in terminal you can select like
nvm run 12
but that is only for this session...
to select generally what node to use:
nvm alias default 12

manual


VS Code for PICO work install



now just to install MS VS code you could do by
sudo apt install code

or /menu/preferences/recommended software/programming/vs code

but for work with PICO need more tools:

acc https://datasheets.raspberrypi.com/pico/getting-started-with-pico.pdf

wget https://raw.githubusercontent.com/raspberrypi/pico-setup/master/pico_setup.sh

chmod +x pico_setup.sh

./pico_setup.sh

https://code.visualstudio.com/docs/setup/raspberry-pi say:
VS Code on Raspberry Pi 4 may be slow with the default setup. A workaround is to disable hardware (GPU) acceleration in VS Code:

-1- Open the VS Code argv.json file using the Preferences: Configure Runtime Arguments command.
-2- Set "disable-hardware-acceleration": true.
-3- Restart VS Code.

not find in VS code/file/preferences/settings/ something about it? so do manually:
nano .vscode/argv.json
line 11 delete the //
restart code