informatica:raspberry:red_usb
Conectar a una raspberry por el cable de USB desde un portátil.
https://howchoo.com/pi/raspberry-pi-gadget-mode
Probaremos con raspberry 4
Planchamos la ISO:
dd if=2022-04-04-raspios-bullseye-armhf-lite.img of=/dev/mmcblk0 bs=1M
1m25.225s
rootfs/etc/dhcpcd.conf
interface usb0 static ip_address=192.168.69.1/24 static routers=192.168.69.1 static domain_name_servers=192.168.69.1
Fichero boot/config.txt
Antes
# Enable DRM VC4 V3D driver dtoverlay=vc4-kms-v3d max_framebuffers=2
Después
# Enable DRM VC4 V3D driver #dtoverlay=vc4-kms-v3d dtoverlay=dwc2 max_framebuffers=2
touch boot/ssh
Añadir después de “rootwait” esto “modules-load=dwc2,g_ether”
boot/cmdline.txt
Antes:
console=serial0,115200 console=tty1 root=PARTUUID=7d5a2870-02 rootfstype=ext4 fsck.repair=yes rootwait quiet init=/usr/lib/raspi-config/init_resize.sh
Después:
console=serial0,115200 console=tty1 root=PARTUUID=7d5a2870-02 rootfstype=ext4 fsck.repair=yes rootwait modules-load=dwc2,g_ether quiet init=/usr/lib/raspi-config/init_resize.sh
Para crear un usuario inicial. Después de 4 abril del 2022, se ha deshabilitado el usuario pi:
https://downloads.raspberrypi.org/raspios_lite_armhf/release_notes.txt
2022-04-04: * Default "pi" user has been removed; the first-boot wizard enforces the creation of a new user account
Solución: https://www.raspberrypi.com/news/raspberry-pi-bullseye-update-april-2022/
Se crea el fichero: boot/userconf o boot/userconf.txt con el contenido:
username:encrypted-password
La contraseña se encripta:
echo 'mypassword' | openssl passwd -6 -stdin
informatica/raspberry/red_usb.txt · Last modified: 2022/05/18 08:12 by jose