Embedded tidbits – Tips and tricks
-
Raspberry Pi on-screen keyboard
Installation of the on-screen keyboard on Raspberry Pi OS: sudo apt install matchbox-keyboard Go to Accessories->Keyboard in the top menu to launch the on-screen software keyboard, or type the following command in a terminal window: matchbox-keyboard Over SSH, we would need to redirect the display: DISPLAY=:0 matchbox-keyboard & Update: The matchbox keyboard is pretty poor…
-
Ubuntu 23.04 on StarFive VisionFive 2 RISC-V single board computer
Canonical has just published an optimized Ubuntu release for StarFive VisionFive 2 RISC-V SBC. The board supports Ubuntu 23.04 which you can download on the Ubuntu website. More details can be found in the announcement.
-
AMD Ryzen 7 6800H vs AMD Ryzen 7 7735HS benchmarks, performance ratio
Tested with Beelink SER6 Pro and Beelink SER6 Pro 7735HS in Windows 11.
-
Script to easily install WireGuard
I’ve just published instructions to install WireGuard Server on Ubuntu manually, but there’s also a script that should make it easier: wireguard-install, and works with various Linux operating systems including Ubuntu, Debian, AlmaLinux, Rocky Linux, CentOS, and Fedora.
-
Raspberry Pi to make a Sony-based edge AI development board
Sony has invested in Raspberry Pi for them to make an edge AI development board based on Sony chips: Sony Semiconductor Solutions Corporation (“SSS”) and Raspberry Pi Ltd. (“RPL”) today announced the agreement by SSS to make a strategic investment in RPL. The minority investment cements the relationship between the two companies, to provide a…
-
Python code for Grove I2C accelerometer module in Raspberry Pi OS
Written with ChatGPT: import smbus import time # Define the I2C address of the accelerometer ACCEL_ADDR = 0x4c # Initialize the I2C bus bus = smbus.SMBus(1) # Start measurement bus.write_byte_data(ACCEL_ADDR, 0x07, 0x01) while True: # Read the acceleration values for each axis try: accel_x = bus.read_byte_data(ACCEL_ADDR, 0x00) accel_y = bus.read_byte_data(ACCEL_ADDR, 0x01) accel_z = bus.read_byte_data(ACCEL_ADDR, 0x02)…
-
Enabling PCF85063A RTC on Raspberry Pi 4
Make sure the following two lines are added to /boot/config.txt: dtparam=i2c_arm=on dtoverlay=i2c-rtc,pcf85063a,i2c_csi_dsi Reboot the board. The RTC should show up in the kernel log: pi@raspberrypi:~ $ dmesg | grep pcf [ 7.155444] rtc-pcf85063 10-0051: registered as rtc0 [ 7.160928] rtc-pcf85063 10-0051: hctosys: unable to read the hardware clock and you can use various hwclock commands.…
-
Things to do after installing Ubuntu 22.04
dmesg will not run Ubuntu 22.04 due to permissions issues. To change that edit /etc/sysctl.d/10-kernel-hardening.conf Uncomment the last line: kernel.dmesg_restrict = 0 and restart the procps service sudo service procps restart A USB to TTL CH340/CH341 debug board may automatically become disconnected in Ubuntu 22.04: [ 7471.658077] usb 3-1: USB disconnect, device number 2 […
-
Build iozone for Raspberry Pi
Download the latest version of iozone @ https://www.iozone.org/src/current Build the code wget https://www.iozone.org/src/current/iozone3_494.tgz tar xvf iozone3_494.tgz cd iozone3_494/src/current make -j4 linux-arm sudo cp iozone /usr/local/bin/ There may be an error pit_server.o: file npit_server.o: file not recognized: file format not recognized collect2: error: ld returned 1 exit status ot recognized: file format not recognized collect2: error:…