Guides icon indicating copy to clipboard operation
Guides copied to clipboard

Minor additions to Bookworm vs Bullseye guide

Open samveen opened this issue 1 year ago • 0 comments

  • Quick Wifi connection setup with nmcli:

    nmcli con add type wifi con-name FSL ssid FSL wifi-sec.key-mgmt wpa-psk wifi-sec.psk MixedFruitS@l@d save yes
    
  • Possibly a new section for Firmware management differences (i.e. location of config.txt, cmdline.txt etc.):

    Firmware size/mountpoint differences
    Bullseye: First partition of SD containing the firmware is mounted on `/boot` , sized at 256M
    Bookworm: First partition of SD containing the firmware is mounted on `/boot/firmware` sized at 512M
    
  • Headless logging optimization across all Pi's and OS version:

    For purely headless setups, the order of the 2 console options in the cmdline.txt is very important: the last of the options should be the serial console, so that all boot messages are redirected to serial console. The default setup causes the messages to be directed to /dev/tty1: Code:

    ... console=tty1 console=ttyAMA0,115200 ...
    
  • A way of combining venv activation and python invocation into single shell command - helps when using multiple venv for tasks without affecting the parent shell environment:

    bash -c "source $VENV_ROOT/bin/activate ; python $PYTHON_SCRIPT"
    

    where the example of VENV_ROOT is /home/pi/.venv/ and example of 'PYTHON_SCRIPT is '/home/pi/SomeProgram.py

samveen avatar Nov 10 '23 13:11 samveen