Raspbian
Jump to navigation
Jump to search
Raspbian OS
Links
Versions
- buster is debian 10
- bullseye is debian 11
- bookworm is debian 12
install RPi4 from scratch
- download 2024-11-19-raspios-bookworm-arm64-lite.img.xz
- cd /daq/daqstore/olchansk/linux/Raspbian/
- insert 16GB or bigger SD card into /dev/sdX
- xzcat 2024-11-19-raspios-bookworm-arm64-lite.img.xz | dd of=/dev/sdX bs=1024k status=progress
- fdisk -l ### to see if it worked
- eject /dev/sdX
- insert SD card into RPi4
- power up
- observe boot
- observe ask for language and keyboard layout, select English/US
- observe ask for create user, use "wheel" and password
- observe boot to login prompt
- login as wheel
- sudo /bin/bash
- ifconfig eth0 142.90.x.y netmask 255.255.224.0 ### use armdaq01 142.90.121.101
- route add default gw 142.90.100.18
- ping 142.90.100.18
- systemctl restart systemd-timesyncd
- date ### check date is correct
- apt update
- apt upgrade
- (forgot to enable ssh!!!)
- apt install ssh
- systemctl enable ssh
- rpi-eeprom-update ### check boot loader firmware version, current and available may be different
- rpi-eeprom-update -a ### prepare firmware update, actual update is done on next boot
- shutdown -r now ### update firmware and boot new kernel
- login as wheel
- rpi-eeprom-update ### check boot loader firmware version, current and available should be same
- raspi-config ### in advanced options, set boot order to network-first
- maybe verify the changes took, BOOT_ORDER should read 0xf21 for boot from SD card, if absent, boot from network
root@magpi03:~# vcgencmd bootloader_config [all] BOOT_UART=0 WAKE_ON_GPIO=1 POWER_OFF_ON_HALT=0 [all] BOOT_ORDER=0xf21
- shutdown -h now
- power down
- remove SD card
- power up
- observe it's dhcp requests
setup network booting
- setup dnsmasq.conf
# /etc/dnsmasq.conf # DNS settings port=0 # disable DNS function #port=53 # enable DNS function domain-needed bogus-priv no-resolv server=142.90.100.19 # DHCP settings interface=enp4s0 # DHCP interface dhcp-range=192.168.0.0,static log-dhcp #quiet-dhcp #dhcp-ignore=tag:!known dhcp-host=dc:a6:32:d5:d9:8d,set:rpi4,set:dlpi,192.168.0.3,dlpi,infinite # TFTP settings enable-tftp tftp-root=/tftpboot # RPi4 settings dhcp-option-force=tag:dlpi,option:root-path,192.168.0.1:/nfsroot/dlpi,vers=3,tcp pxe-service=tag:rpi4,0,"Raspberry Pi Boot" # end
- most important is the "pxe-service" entry to enable RPi4 tftp boot
- systemctl dnsmasq restart
- observe RPi4 is doing message type 2 and message type 5
- followed by requests for files under /tftpboot/eb47cd4d (numbers is the RPi4 serial number)
- mkdir /nfsroot/dlpi, /nfsroot/dlpi-firmware
- rsync files from SD card partition 1 (VFAT) to /nfsroot/dlpi-firmware
- rsync files from SD card partition 2 (ext4) to /nfsroot/dlpi
- edit /etc/exportfs
/nfsroot/dlpi dlpi(rw,no_root_squash,async,no_subtree_check) /nfsroot/dlpi-firmware dlpi(rw,no_root_squash,async,no_subtree_check)
- exportfs -rv
- ln -s /nfsroot/dlpi-firmware /tftpboot/eb47cd4d
- edit /nfsroot/dlpi-firmware/cmdline.txt
console=serial0,115200 console=tty1 ip=dhcp root=/dev/nfs
- edit /nfsroot/dlpi/etc/fstab, comment out mount of "/" and "/boot/firmware" add NFS mounts:
192.168.0.1:/nfsroot/dlpi / nfs defaults 192.168.0.1:/nfsroot/dlpi-firmware /boot/firmware nfs defaults
- cycle power RPi4
- observe /var/log/syslog sequence:
2025-02-12T17:36:54.284833-08:00 daq13 dnsmasq-dhcp[2850406]: 3677640978 available DHCP subnet: 192.168.0.0/255.255.255.0 2025-02-12T17:36:54.285598-08:00 daq13 dnsmasq-dhcp[2850406]: 3677640978 vendor class: PXEClient:Arch:00000:UNDI:002001 2025-02-12T17:36:54.285646-08:00 daq13 dnsmasq-dhcp[2850406]: 3677640978 DHCPDISCOVER(enp4s0) dc:a6:32:d5:d9:8d 2025-02-12T17:36:54.285693-08:00 daq13 dnsmasq-dhcp[2850406]: 3677640978 tags: rpi4, dlpi, known, enp4s0 2025-02-12T17:36:54.285753-08:00 daq13 dnsmasq-dhcp[2850406]: 3677640978 DHCPOFFER(enp4s0) 192.168.0.3 dc:a6:32:d5:d9:8d 2025-02-12T17:36:54.285850-08:00 daq13 dnsmasq-dhcp[2850406]: 3677640978 requested options: 1:netmask, 3:router, 43:vendor-encap, 60:vendor-class, 2025-02-12T17:36:54.285948-08:00 daq13 dnsmasq-dhcp[2850406]: 3677640978 requested options: 66:tftp-server, 67:bootfile-name, 128, 129, 2025-02-12T17:36:54.286020-08:00 daq13 dnsmasq-dhcp[2850406]: 3677640978 requested options: 130, 131, 132, 133, 134, 135 2025-02-12T17:36:54.286128-08:00 daq13 dnsmasq-dhcp[2850406]: 3677640978 next server: 192.168.0.1 2025-02-12T17:36:54.286214-08:00 daq13 dnsmasq-dhcp[2850406]: 3677640978 sent size: 1 option: 53 message-type 2 2025-02-12T17:36:54.286267-08:00 daq13 dnsmasq-dhcp[2850406]: 3677640978 sent size: 4 option: 54 server-identifier 192.168.0.1 2025-02-12T17:36:54.286330-08:00 daq13 dnsmasq-dhcp[2850406]: 3677640978 sent size: 4 option: 51 lease-time infinite 2025-02-12T17:36:54.286381-08:00 daq13 dnsmasq-dhcp[2850406]: 3677640978 sent size: 4 option: 1 netmask 255.255.255.0 2025-02-12T17:36:54.286461-08:00 daq13 dnsmasq-dhcp[2850406]: 3677640978 sent size: 4 option: 28 broadcast 192.168.0.255 2025-02-12T17:36:54.286557-08:00 daq13 dnsmasq-dhcp[2850406]: 3677640978 sent size: 4 option: 3 router 192.168.0.1 2025-02-12T17:36:54.286616-08:00 daq13 dnsmasq-dhcp[2850406]: 3677640978 sent size: 36 option: 17 root-path 192.168.0.1:/nfsroot/dlpi,vers=3,tcp 2025-02-12T17:36:54.286690-08:00 daq13 dnsmasq-dhcp[2850406]: 3677640978 sent size: 9 option: 60 vendor-class 50:58:45:43:6c:69:65:6e:74 2025-02-12T17:36:54.286758-08:00 daq13 dnsmasq-dhcp[2850406]: 3677640978 sent size: 17 option: 97 client-machine-id 00:34:69:50:52:14:31:d0:00:32:d5:d9:8d:4d... 2025-02-12T17:36:54.286807-08:00 daq13 dnsmasq-dhcp[2850406]: 3677640978 sent size: 32 option: 43 vendor-encap 06:01:03:0a:04:00:50:58:45:09:14:00:00:11... 2025-02-12T17:36:54.286856-08:00 daq13 dnsmasq-dhcp[2850406]: 3677640978 available DHCP subnet: 192.168.0.0/255.255.255.0 2025-02-12T17:36:54.286906-08:00 daq13 dnsmasq-dhcp[2850406]: 3677640978 vendor class: PXEClient:Arch:00000:UNDI:002001 2025-02-12T17:36:54.287008-08:00 daq13 dnsmasq-dhcp[2850406]: 3677640978 DHCPREQUEST(enp4s0) 192.168.0.3 dc:a6:32:d5:d9:8d 2025-02-12T17:36:54.287137-08:00 daq13 dnsmasq-dhcp[2850406]: 3677640978 tags: rpi4, dlpi, known, enp4s0 2025-02-12T17:36:54.287189-08:00 daq13 dnsmasq-dhcp[2850406]: 3677640978 DHCPACK(enp4s0) 192.168.0.3 dc:a6:32:d5:d9:8d dlpi 2025-02-12T17:36:54.287241-08:00 daq13 dnsmasq-dhcp[2850406]: 3677640978 next server: 192.168.0.1 2025-02-12T17:36:54.287316-08:00 daq13 dnsmasq-dhcp[2850406]: 3677640978 sent size: 1 option: 53 message-type 5 2025-02-12T17:36:54.287381-08:00 daq13 dnsmasq-dhcp[2850406]: 3677640978 sent size: 4 option: 54 server-identifier 192.168.0.1 2025-02-12T17:36:54.287430-08:00 daq13 dnsmasq-dhcp[2850406]: 3677640978 sent size: 4 option: 51 lease-time infinite 2025-02-12T17:36:54.287498-08:00 daq13 dnsmasq-dhcp[2850406]: 3677640978 sent size: 4 option: 1 netmask 255.255.255.0 2025-02-12T17:36:54.287588-08:00 daq13 dnsmasq-dhcp[2850406]: 3677640978 sent size: 4 option: 28 broadcast 192.168.0.255 2025-02-12T17:36:54.287650-08:00 daq13 dnsmasq-dhcp[2850406]: 3677640978 sent size: 4 option: 3 router 192.168.0.1 2025-02-12T17:36:54.287707-08:00 daq13 dnsmasq-dhcp[2850406]: 3677640978 sent size: 4 option: 12 hostname dlpi 2025-02-12T17:36:54.287788-08:00 daq13 dnsmasq-dhcp[2850406]: 3677640978 sent size: 36 option: 17 root-path 192.168.0.1:/nfsroot/dlpi,vers=3,tcp 2025-02-12T17:36:54.287922-08:00 daq13 dnsmasq-tftp[2850406]: error 0 Early terminate received from 192.168.0.3 2025-02-12T17:36:54.288098-08:00 daq13 dnsmasq-tftp[2850406]: sent /tftpboot/eb47cd4d/start4.elf to 192.168.0.3 2025-02-12T17:36:54.288175-08:00 daq13 dnsmasq-tftp[2850406]: sent /tftpboot/eb47cd4d/config.txt to 192.168.0.3 2025-02-12T17:36:54.288328-08:00 daq13 dnsmasq-tftp[2850406]: sent /tftpboot/eb47cd4d/pieeprom.sig to 192.168.0.3 2025-02-12T17:36:54.466481-08:00 daq13 dnsmasq-tftp[2850406]: sent /tftpboot/eb47cd4d/pieeprom.upd to 192.168.0.3 2025-02-12T17:36:54.521733-08:00 daq13 dnsmasq-tftp[2850406]: file /tftpboot/eb47cd4d/recover4.elf not found for 192.168.0.3 2025-02-12T17:36:54.522145-08:00 daq13 dnsmasq-tftp[2850406]: file /tftpboot/eb47cd4d/recovery.elf not found for 192.168.0.3 2025-02-12T17:36:55.501376-08:00 daq13 dnsmasq-tftp[2850406]: sent /tftpboot/eb47cd4d/start4.elf to 192.168.0.3 2025-02-12T17:36:55.552921-08:00 daq13 dnsmasq-tftp[2850406]: sent /tftpboot/eb47cd4d/fixup4.dat to 192.168.0.3 2025-02-12T17:36:55.785337-08:00 daq13 dnsmasq-tftp[2850406]: file /tftpboot/eb47cd4d/recovery.elf not found for 192.168.0.3 2025-02-12T17:36:55.785969-08:00 daq13 dnsmasq-tftp[2850406]: error 0 Early terminate received from 192.168.0.3 2025-02-12T17:36:55.786047-08:00 daq13 dnsmasq-tftp[2850406]: sent /tftpboot/eb47cd4d/config.txt to 192.168.0.3 2025-02-12T17:36:55.786300-08:00 daq13 dnsmasq-tftp[2850406]: sent /tftpboot/eb47cd4d/config.txt to 192.168.0.3 2025-02-12T17:36:55.787049-08:00 daq13 dnsmasq-tftp[2850406]: file /tftpboot/eb47cd4d/dt-blob.bin not found for 192.168.0.3 2025-02-12T17:36:55.822865-08:00 daq13 dnsmasq-tftp[2850406]: file /tftpboot/eb47cd4d/recovery.elf not found for 192.168.0.3 2025-02-12T17:36:55.823335-08:00 daq13 dnsmasq-tftp[2850406]: error 0 Early terminate received from 192.168.0.3 2025-02-12T17:36:55.823397-08:00 daq13 dnsmasq-tftp[2850406]: sent /tftpboot/eb47cd4d/config.txt to 192.168.0.3 2025-02-12T17:36:55.823593-08:00 daq13 dnsmasq-tftp[2850406]: sent /tftpboot/eb47cd4d/config.txt to 192.168.0.3 2025-02-12T17:36:56.599954-08:00 daq13 dnsmasq-tftp[2850406]: file /tftpboot/eb47cd4d/bootcfg.txt not found for 192.168.0.3 2025-02-12T17:36:56.624989-08:00 daq13 dnsmasq-tftp[2850406]: file /tftpboot/eb47cd4d/recovery8.img not found for 192.168.0.3 2025-02-12T17:36:56.625545-08:00 daq13 dnsmasq-tftp[2850406]: error 0 Early terminate received from 192.168.0.3 2025-02-12T17:36:56.625605-08:00 daq13 dnsmasq-tftp[2850406]: failed sending /tftpboot/eb47cd4d/kernel8.img to 192.168.0.3 2025-02-12T17:36:56.625921-08:00 daq13 dnsmasq-tftp[2850406]: error 0 Early terminate received from 192.168.0.3 2025-02-12T17:36:56.625993-08:00 daq13 dnsmasq-tftp[2850406]: failed sending /tftpboot/eb47cd4d/kernel8.img to 192.168.0.3 2025-02-12T17:36:56.626224-08:00 daq13 dnsmasq-tftp[2850406]: error 0 Early terminate received from 192.168.0.3 2025-02-12T17:36:56.626318-08:00 daq13 dnsmasq-tftp[2850406]: failed sending /tftpboot/eb47cd4d/initramfs8 to 192.168.0.3 2025-02-12T17:36:56.626556-08:00 daq13 dnsmasq-tftp[2850406]: error 0 Early terminate received from 192.168.0.3 2025-02-12T17:36:56.626628-08:00 daq13 dnsmasq-tftp[2850406]: failed sending /tftpboot/eb47cd4d/initramfs8 to 192.168.0.3 2025-02-12T17:36:56.626781-08:00 daq13 dnsmasq-tftp[2850406]: error 0 Early terminate received from 192.168.0.3 2025-02-12T17:36:56.626818-08:00 daq13 dnsmasq-tftp[2850406]: failed sending /tftpboot/eb47cd4d/initramfs8 to 192.168.0.3 2025-02-12T17:36:57.591162-08:00 daq13 dnsmasq-tftp[2850406]: sent /tftpboot/eb47cd4d/initramfs8 to 192.168.0.3 2025-02-12T17:36:57.607851-08:00 daq13 dnsmasq-tftp[2850406]: error 0 Early terminate received from 192.168.0.3 2025-02-12T17:36:57.607926-08:00 daq13 dnsmasq-tftp[2850406]: failed sending /tftpboot/eb47cd4d/bcm2711-rpi-4-b.dtb to 192.168.0.3 2025-02-12T17:36:57.615129-08:00 daq13 dnsmasq-tftp[2850406]: sent /tftpboot/eb47cd4d/bcm2711-rpi-4-b.dtb to 192.168.0.3 2025-02-12T17:36:57.629371-08:00 daq13 dnsmasq-tftp[2850406]: error 0 Early terminate received from 192.168.0.3 2025-02-12T17:36:57.629455-08:00 daq13 dnsmasq-tftp[2850406]: failed sending /tftpboot/eb47cd4d/overlays/overlay_map.dtb to 192.168.0.3 2025-02-12T17:36:57.630176-08:00 daq13 dnsmasq-tftp[2850406]: sent /tftpboot/eb47cd4d/overlays/overlay_map.dtb to 192.168.0.3 2025-02-12T17:36:57.654215-08:00 daq13 dnsmasq-tftp[2850406]: error 0 Early terminate received from 192.168.0.3 2025-02-12T17:36:57.654286-08:00 daq13 dnsmasq-tftp[2850406]: sent /tftpboot/eb47cd4d/config.txt to 192.168.0.3 2025-02-12T17:36:57.654557-08:00 daq13 dnsmasq-tftp[2850406]: sent /tftpboot/eb47cd4d/config.txt to 192.168.0.3 2025-02-12T17:36:57.660372-08:00 daq13 dnsmasq-tftp[2850406]: error 0 Early terminate received from 192.168.0.3 2025-02-12T17:36:57.660459-08:00 daq13 dnsmasq-tftp[2850406]: failed sending /tftpboot/eb47cd4d/overlays/vc4-kms-v3d-pi4.dtbo to 192.168.0.3 2025-02-12T17:36:57.660958-08:00 daq13 dnsmasq-tftp[2850406]: sent /tftpboot/eb47cd4d/overlays/vc4-kms-v3d-pi4.dtbo to 192.168.0.3 2025-02-12T17:36:57.887880-08:00 daq13 dnsmasq-tftp[2850406]: error 0 Early terminate received from 192.168.0.3 2025-02-12T17:36:57.887973-08:00 daq13 dnsmasq-tftp[2850406]: sent /tftpboot/eb47cd4d/cmdline.txt to 192.168.0.3 2025-02-12T17:36:57.888037-08:00 daq13 dnsmasq-tftp[2850406]: sent /tftpboot/eb47cd4d/cmdline.txt to 192.168.0.3 2025-02-12T17:36:58.012839-08:00 daq13 dnsmasq-tftp[2850406]: file /tftpboot/eb47cd4d/armstub8-gic.bin not found for 192.168.0.3 2025-02-12T17:36:58.013283-08:00 daq13 dnsmasq-tftp[2850406]: error 0 Early terminate received from 192.168.0.3 2025-02-12T17:36:58.013394-08:00 daq13 dnsmasq-tftp[2850406]: failed sending /tftpboot/eb47cd4d/kernel8.img to 192.168.0.3 2025-02-12T17:36:59.184059-08:00 daq13 dnsmasq-tftp[2850406]: sent /tftpboot/eb47cd4d/kernel8.img to 192.168.0.3 2025-02-12T17:37:07.391950-08:00 daq13 dnsmasq-dhcp[2850406]: 1565263519 available DHCP subnet: 192.168.0.0/255.255.255.0 2025-02-12T17:37:07.392121-08:00 daq13 dnsmasq-dhcp[2850406]: 1565263519 DHCPDISCOVER(enp4s0) dc:a6:32:d5:d9:8d 2025-02-12T17:37:07.392231-08:00 daq13 dnsmasq-dhcp[2850406]: 1565263519 tags: rpi4, dlpi, known, enp4s0 2025-02-12T17:37:07.392276-08:00 daq13 dnsmasq-dhcp[2850406]: 1565263519 DHCPOFFER(enp4s0) 192.168.0.3 dc:a6:32:d5:d9:8d 2025-02-12T17:37:07.392318-08:00 daq13 dnsmasq-dhcp[2850406]: 1565263519 requested options: 1:netmask, 3:router, 6:dns-server, 12:hostname, 2025-02-12T17:37:07.392375-08:00 daq13 dnsmasq-dhcp[2850406]: 1565263519 requested options: 15:domain-name, 17:root-path, 26:mtu, 40:nis-domain, 2025-02-12T17:37:07.392449-08:00 daq13 dnsmasq-dhcp[2850406]: 1565263519 requested options: 42:ntp-server 2025-02-12T17:37:07.392495-08:00 daq13 dnsmasq-dhcp[2850406]: 1565263519 next server: 192.168.0.1 2025-02-12T17:37:07.392551-08:00 daq13 dnsmasq-dhcp[2850406]: 1565263519 sent size: 1 option: 53 message-type 2 2025-02-12T17:37:07.392655-08:00 daq13 dnsmasq-dhcp[2850406]: 1565263519 sent size: 4 option: 54 server-identifier 192.168.0.1 2025-02-12T17:37:07.392722-08:00 daq13 dnsmasq-dhcp[2850406]: 1565263519 sent size: 4 option: 51 lease-time infinite 2025-02-12T17:37:07.392803-08:00 daq13 dnsmasq-dhcp[2850406]: 1565263519 sent size: 4 option: 1 netmask 255.255.255.0 2025-02-12T17:37:07.392843-08:00 daq13 dnsmasq-dhcp[2850406]: 1565263519 sent size: 4 option: 28 broadcast 192.168.0.255 2025-02-12T17:37:07.392881-08:00 daq13 dnsmasq-dhcp[2850406]: 1565263519 sent size: 4 option: 3 router 192.168.0.1 2025-02-12T17:37:07.392927-08:00 daq13 dnsmasq-dhcp[2850406]: 1565263519 sent size: 4 option: 12 hostname dlpi 2025-02-12T17:37:07.392963-08:00 daq13 dnsmasq-dhcp[2850406]: 1565263519 sent size: 36 option: 17 root-path 192.168.0.1:/nfsroot/dlpi,vers=3,tcp 2025-02-12T17:37:07.399482-08:00 daq13 dnsmasq-dhcp[2850406]: 1565263519 available DHCP subnet: 192.168.0.0/255.255.255.0 2025-02-12T17:37:07.399553-08:00 daq13 dnsmasq-dhcp[2850406]: 1565263519 client provides name: dlpi 2025-02-12T17:37:07.399599-08:00 daq13 dnsmasq-dhcp[2850406]: 1565263519 DHCPREQUEST(enp4s0) 192.168.0.3 dc:a6:32:d5:d9:8d 2025-02-12T17:37:07.399683-08:00 daq13 dnsmasq-dhcp[2850406]: 1565263519 tags: rpi4, dlpi, known, enp4s0 2025-02-12T17:37:07.399729-08:00 daq13 dnsmasq-dhcp[2850406]: 1565263519 DHCPACK(enp4s0) 192.168.0.3 dc:a6:32:d5:d9:8d dlpi 2025-02-12T17:37:07.399772-08:00 daq13 dnsmasq-dhcp[2850406]: 1565263519 requested options: 1:netmask, 3:router, 6:dns-server, 12:hostname, 2025-02-12T17:37:07.399813-08:00 daq13 dnsmasq-dhcp[2850406]: 1565263519 requested options: 15:domain-name, 17:root-path, 26:mtu, 40:nis-domain, 2025-02-12T17:37:07.399858-08:00 daq13 dnsmasq-dhcp[2850406]: 1565263519 requested options: 42:ntp-server 2025-02-12T17:37:07.399895-08:00 daq13 dnsmasq-dhcp[2850406]: 1565263519 next server: 192.168.0.1 2025-02-12T17:37:07.399940-08:00 daq13 dnsmasq-dhcp[2850406]: 1565263519 sent size: 1 option: 53 message-type 5 2025-02-12T17:37:07.400009-08:00 daq13 dnsmasq-dhcp[2850406]: 1565263519 sent size: 4 option: 54 server-identifier 192.168.0.1 2025-02-12T17:37:07.400094-08:00 daq13 dnsmasq-dhcp[2850406]: 1565263519 sent size: 4 option: 51 lease-time infinite 2025-02-12T17:37:07.400135-08:00 daq13 dnsmasq-dhcp[2850406]: 1565263519 sent size: 4 option: 1 netmask 255.255.255.0 2025-02-12T17:37:07.400180-08:00 daq13 dnsmasq-dhcp[2850406]: 1565263519 sent size: 4 option: 28 broadcast 192.168.0.255 2025-02-12T17:37:07.400258-08:00 daq13 dnsmasq-dhcp[2850406]: 1565263519 sent size: 4 option: 3 router 192.168.0.1 2025-02-12T17:37:07.400296-08:00 daq13 dnsmasq-dhcp[2850406]: 1565263519 sent size: 4 option: 12 hostname dlpi 2025-02-12T17:37:07.400332-08:00 daq13 dnsmasq-dhcp[2850406]: 1565263519 sent size: 36 option: 17 root-path 192.168.0.1:/nfsroot/dlpi,vers=3,tcp 2025-02-12T17:37:07.828150-08:00 daq13 dnsmasq-dhcp[2850406]: 4119634558 available DHCP subnet: 192.168.0.0/255.255.255.0 2025-02-12T17:37:07.828287-08:00 daq13 dnsmasq-dhcp[2850406]: 4119634558 vendor class: Linux ipconfig 2025-02-12T17:37:07.828337-08:00 daq13 dnsmasq-dhcp[2850406]: 4119634558 DHCPDISCOVER(enp4s0) dc:a6:32:d5:d9:8d 2025-02-12T17:37:07.828389-08:00 daq13 dnsmasq-dhcp[2850406]: 4119634558 tags: rpi4, dlpi, known, enp4s0 2025-02-12T17:37:07.828430-08:00 daq13 dnsmasq-dhcp[2850406]: 4119634558 DHCPOFFER(enp4s0) 192.168.0.3 dc:a6:32:d5:d9:8d 2025-02-12T17:37:07.828479-08:00 daq13 dnsmasq-dhcp[2850406]: 4119634558 requested options: 1:netmask, 3:router, 6:dns-server, 12:hostname, 2025-02-12T17:37:07.828630-08:00 daq13 dnsmasq-dhcp[2850406]: 4119634558 requested options: 15:domain-name, 17:root-path, 26:mtu, 28:broadcast, 2025-02-12T17:37:07.828689-08:00 daq13 dnsmasq-dhcp[2850406]: 4119634558 requested options: 40:nis-domain, 119:domain-search, 121:classless-static-route 2025-02-12T17:37:07.828748-08:00 daq13 dnsmasq-dhcp[2850406]: 4119634558 next server: 192.168.0.1 2025-02-12T17:37:07.828790-08:00 daq13 dnsmasq-dhcp[2850406]: 4119634558 broadcast response 2025-02-12T17:37:07.828833-08:00 daq13 dnsmasq-dhcp[2850406]: 4119634558 sent size: 1 option: 53 message-type 2 2025-02-12T17:37:07.828871-08:00 daq13 dnsmasq-dhcp[2850406]: 4119634558 sent size: 4 option: 54 server-identifier 192.168.0.1 2025-02-12T17:37:07.828921-08:00 daq13 dnsmasq-dhcp[2850406]: 4119634558 sent size: 4 option: 51 lease-time infinite 2025-02-12T17:37:07.828963-08:00 daq13 dnsmasq-dhcp[2850406]: 4119634558 sent size: 4 option: 1 netmask 255.255.255.0 2025-02-12T17:37:07.829067-08:00 daq13 dnsmasq-dhcp[2850406]: 4119634558 sent size: 4 option: 28 broadcast 192.168.0.255 2025-02-12T17:37:07.829159-08:00 daq13 dnsmasq-dhcp[2850406]: 4119634558 sent size: 4 option: 3 router 192.168.0.1 2025-02-12T17:37:07.829212-08:00 daq13 dnsmasq-dhcp[2850406]: 4119634558 sent size: 4 option: 12 hostname dlpi 2025-02-12T17:37:07.829252-08:00 daq13 dnsmasq-dhcp[2850406]: 4119634558 sent size: 36 option: 17 root-path 192.168.0.1:/nfsroot/dlpi,vers=3,tcp 2025-02-12T17:37:07.829292-08:00 daq13 dnsmasq-dhcp[2850406]: 4119634558 available DHCP subnet: 192.168.0.0/255.255.255.0 2025-02-12T17:37:07.829357-08:00 daq13 dnsmasq-dhcp[2850406]: 4119634558 vendor class: Linux ipconfig 2025-02-12T17:37:07.829400-08:00 daq13 dnsmasq-dhcp[2850406]: 4119634558 DHCPREQUEST(enp4s0) 192.168.0.3 dc:a6:32:d5:d9:8d 2025-02-12T17:37:07.829442-08:00 daq13 dnsmasq-dhcp[2850406]: 4119634558 tags: rpi4, dlpi, known, enp4s0 2025-02-12T17:37:07.829474-08:00 daq13 dnsmasq-dhcp[2850406]: 4119634558 DHCPACK(enp4s0) 192.168.0.3 dc:a6:32:d5:d9:8d dlpi 2025-02-12T17:37:07.829513-08:00 daq13 dnsmasq-dhcp[2850406]: 4119634558 requested options: 1:netmask, 3:router, 6:dns-server, 12:hostname, 2025-02-12T17:37:07.829550-08:00 daq13 dnsmasq-dhcp[2850406]: 4119634558 requested options: 15:domain-name, 17:root-path, 26:mtu, 28:broadcast, 2025-02-12T17:37:07.829625-08:00 daq13 dnsmasq-dhcp[2850406]: 4119634558 requested options: 40:nis-domain, 119:domain-search, 121:classless-static-route 2025-02-12T17:37:07.829665-08:00 daq13 dnsmasq-dhcp[2850406]: 4119634558 next server: 192.168.0.1 2025-02-12T17:37:07.829715-08:00 daq13 dnsmasq-dhcp[2850406]: 4119634558 broadcast response 2025-02-12T17:37:07.829755-08:00 daq13 dnsmasq-dhcp[2850406]: 4119634558 sent size: 1 option: 53 message-type 5 2025-02-12T17:37:07.829795-08:00 daq13 dnsmasq-dhcp[2850406]: 4119634558 sent size: 4 option: 54 server-identifier 192.168.0.1 2025-02-12T17:37:07.829826-08:00 daq13 dnsmasq-dhcp[2850406]: 4119634558 sent size: 4 option: 51 lease-time infinite 2025-02-12T17:37:07.829858-08:00 daq13 dnsmasq-dhcp[2850406]: 4119634558 sent size: 4 option: 1 netmask 255.255.255.0 2025-02-12T17:37:07.829890-08:00 daq13 dnsmasq-dhcp[2850406]: 4119634558 sent size: 4 option: 28 broadcast 192.168.0.255 2025-02-12T17:37:07.829924-08:00 daq13 dnsmasq-dhcp[2850406]: 4119634558 sent size: 4 option: 3 router 192.168.0.1 2025-02-12T17:37:07.829976-08:00 daq13 dnsmasq-dhcp[2850406]: 4119634558 sent size: 4 option: 12 hostname dlpi 2025-02-12T17:37:07.830059-08:00 daq13 dnsmasq-dhcp[2850406]: 4119634558 sent size: 36 option: 17 root-path 192.168.0.1:/nfsroot/dlpi,vers=3,tcp 2025-02-12T17:37:07.904121-08:00 daq13 rpc.mountd[2394]: refused mount request from 192.168.0.3 for /nfsroot/dlpi,vers=3,tcp (/): not exported 2025-02-12T17:37:08.930059-08:00 daq13 rpc.mountd[2394]: authenticated mount request from 192.168.0.3:945 for /nfsroot/dlpi (/nfsroot/dlpi)
- dlpi pings, ssh returns "connection refused"
- we forgot to install and enable ssh on the SD card!!!
- we forgot to mount "/" read-write, observe log files in /nfsroot/dlpi/var/log should have current times
post install
- we forgot to enable ssh when we setup the SD card, enable it by hand:
cd /nfsroot/dlpi cd etc/systemd/system rm ./multi-user.target.wants/sshswitch.service ln -s /usr/lib/systemd/system/ssh.socket sockets.target.wants/ssh.socket ln -s /usr/lib/systemd/system/ssh.socket ssh.service.requires/ssh.socket reset dlpi
- cat ~/.ssh/id_ed25519.pub >> /nfsroot/dlpi/root/.ssh/authorized_keys
- ssh dlpi should work now
- as root@dlpi
apt update apt upgrade apt install ssh systemctl enable ssh
- edit /etc/hostname
- install missing packages:
apt -y install etckeeper apt -y install git emacs lm-sensors # system apt -y install cmake libcurl4-openssl-dev mariadb-client libmariadb-dev libsqlite3-dev # midas apt -y install chromium-browser # arm version of google-chrome apt -y install libusb-1.0-0 libusb-1.0-0-dev apt -y install i2c-tools
- disable unwanted services
systemctl disable modemmanager systemctl disable NetworkManager systemctl disable wpa_supplicant systemctl disable bluetooth systemctl disable avahi-daemon systemctl disable triggerhappy
- remove unwanted packages
apt purge bash-completion
enable i2c
- edit /boot/firmware/config.txt, uncomment "dtparam=i2c_arm=on"
- modprobe i2c-dev
- i2cdetect 1
Pre-D-12 information
Install
- boot from SD flash, follow stock documention:
- unzip 2021-10-30-raspios-bullseye-armhf-lite.zip into a .img
- dd of=/dev/sda if=2021-10-30-raspios-bullseye-armhf-lite.img bs=1024k status=progress
- boot from flash
- user pi password raspberry
- run rasp[i-config to enable US locale and US keyboard
- ifconfig -a to capture mac address, enter into dhcp, plug ethernet cable
- apt update; apt upgrade
- passwd pi change default password
- systemctl enable ssh; systemctl start ssh
- login remotely, run the ubuntu (debian 11) installation checklist
- boot from network
- TBD
"lite" image enable graphics
apt -y install mate-desktop mate-core mate-themes mate-desktop-environment mate-applets --fix-missing apt -y install lightdm lightdm-gtk-greeter systemctl enable lightdm systemctl start lightdm
"lite" image missing packages
apt -y install git emacs lm-sensors # system apt -y install cmake libcurl4-openssl-dev mariadb-client libmariadb-dev libsqlite3-dev # midas apt -y install chromium-browser # arm version of google-chrome