User Tools

Site Tools


informatica:raspberry:red_usb

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
informatica:raspberry:red_usb [2022/05/17 15:06] – created joseinformatica:raspberry:red_usb [2022/05/18 08:12] (current) jose
Line 1: Line 1:
 Conectar a una raspberry por el cable de USB desde un portátil.  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 Probaremos con raspberry 4
Line 8: Line 10:
   1m25.225s   1m25.225s
  
-  /media/jose/rootfs/etc/dhcpcd.conf+  rootfs/etc/dhcpcd.conf
 <code> <code>
 interface usb0 interface usb0
Line 16: Line 18:
 </code> </code>
  
 +Fichero boot/config.txt
 +
 +Antes
 +<code>
 +# Enable DRM VC4 V3D driver
 +dtoverlay=vc4-kms-v3d
 +max_framebuffers=2
 +</code>
 +Después
 +<code>
 +# Enable DRM VC4 V3D driver
 +#dtoverlay=vc4-kms-v3d
 +dtoverlay=dwc2
 +max_framebuffers=2
 +</code>
 +
 +
 +  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.1652800000.txt.gz · Last modified: 2022/05/17 15:06 by jose