[2024-feb-29] Sad news: Eric Layton aka Nocturnal Slacker aka vtel57 passed away on Feb 26th, shortly after hospitalization. He was one of our Wiki's most prominent admins. He will be missed.

Welcome to the Slackware Documentation Project

Diferencias

Muestra las diferencias entre dos versiones de la página.

Enlace a la vista de comparación

Ambos lados, revisión anteriorRevisión previa
Próxima revisión
Revisión previa
Próxima revisiónAmbos lados, revisión siguiente
es:howtos:hardware:arm:raspberrypi4 [2019/07/10 13:19 (UTC)] – [Slackware ARM sobre una Raspberry Pi 4] rrampes:howtos:hardware:arm:raspberrypi4 [2019/07/31 02:33 (UTC)] – [Método de instalación manual sin una imagen de Raspbian] rramp
Línea 1: Línea 1:
-<note important>En proceso de traducción. rramp</note>+
 ===== Slackware ARM sobre una Raspberry Pi 4 ===== ===== Slackware ARM sobre una Raspberry Pi 4 =====
  
 La Raspberry Pi 4 fue lanzada el 24 de junio de 2019. Las caracteristicas del dispositivo Broadcom BCM2711B0 SoC incorpora una CPU Quad-core ARMv8 Cortex-A72 [64 bit] @ 1.5GHz, VideoCore VI GPU @ 500MHz, y viene en tres variaciones diferentes con 1GB, 2GB, o 4GB LPDDR4 SDRAM @ 2400MHz instalada. La Raspberry Pi 4 fue lanzada el 24 de junio de 2019. Las caracteristicas del dispositivo Broadcom BCM2711B0 SoC incorpora una CPU Quad-core ARMv8 Cortex-A72 [64 bit] @ 1.5GHz, VideoCore VI GPU @ 500MHz, y viene en tres variaciones diferentes con 1GB, 2GB, o 4GB LPDDR4 SDRAM @ 2400MHz instalada.
  
-Esta computadora ARM de placa única revisada y mejorada sucede a la computadora [[es:howtos:hardware:arm:raspberrypi3|Raspberry Pi (3)]], y es aproximadamente 2,5 veces más rápida y sin duda más potente.+Esta computadora ARM de placa única revisada y mejorada sucede a la computadora [[es:howtos:hardware:arm:raspberrypi3|Raspberry Pi (3)]], y es aproximadamente 2,5 veces más rápida y sin duda más potente.  
 +Wi-Fi y Bluetooth están incluidos sobre la placa. Tiene una verdadera placa de red ethernet Gigabit que tiene un controlador dedicado, el cual ya no está compartido con el bus USB. 
 +El dispositivo también cuenta con 2x USB 3.0 y 2x puertos USB 2.0. Aun no tiene reloj de tiempo real (RTC). 
 +Slackware ARM funciona perfectamente en este dispositivo, como es de esperar. El escritorio es mucho más rápido y sensible. Los tiempos de compilación se reducen a la mitad en comparación con el RPi3. 
 +La Raspberry Pi es apoyada fuera del árbol oficial de Slackware ARM por la comunidad de Slackware.
  
-Wi-Fi and Bluetooth are included on-boardIt has true Gigabit Ethernet that has a dedicated controller, which is not shared with the USB bus any more. The device also features 2x USB 3.0 and 2x USB 2.0 ports. Still no RTC though. Slackware ARM runs flawlessly on this deviceas you would expect. The desktop is so much faster and responsive. Compile times are halved compared to the RPi3.+==== Slackware versión 14.2, -current ====
  
-The Raspberry Pi is supported outside of the official Slackware ARM tree by the Slackware community.+Slackware ARM puede ser instalado sobre una Raspberry Pi 4.
  
-==== Slackware releases 14.2, -current ====+Siga los link (s) en la tabla de abajoEstos son mantenidos por un autor separado como parte de la comunidad Slackware-sobre-Raspberry Pi.
  
-Slackware ARM can be installed on the Raspberry Pi 4.+^ Sitio ^ Versiones de Slackware ^ Usando paquetes oficiales de Slackware ^ métodos de instalación ^ Notas ^ 
 +| [[http://sarpi.fatdog.eu/|Proyecto SARPi]] | 14.2,-current | Si | Instalador de Slackware| Un tutorial de principio a fin que le guiará a través del proceso de instalación y configuración. | 
 +==== AArch64 ARM64 [Experimental], Slackware ARM -current ====
  
-Follow the link(s) in the table below. These are maintained by a separate author as part of the Slackware-on-Raspberry Pi community.+Experimental, desarrollo, y prototipos, Slackware AArch64 ARM64 link(s).
  
-^ Site ^ Slackware versions Using official Slackware packages Installation methods Notes +^ Site ^ Versiones de Slackware ^ Usa paquetes oficiales de Slackware ^ Métodos de Instalación Notas 
-| [[http://sarpi.co.uk/|SARPi Project]] | 14.2,-current | Yes | Slackware installer An end-to-end HOW TO tutorial taking you through the installation and setup process. |+| [[http://sarpi64.fatdog.eu/|Proyecto SARPi64]] | -current | Si Instalador de Slackware | Un proyecto de desarrollo para Slackware ARM ejecutandose sobre AArch64 [ARMv8] kernel y módulos. **Experimental en naturaleza y propósito.** |
  
 +
 +==== Método de instalación manual sin una imagen de Raspbian ====
 +
 +Siempre y cuando utilice la versión más reciente de firmware [es decir, después de junio de 2019] y la última imagen de Raspbian Buster [[howtos:hardware:arm:raspberrypi| el método manual de instalación de la Raspberry Pi 1]] también funciona.
 +Este método es para instalar Slackware ARM 14.2 sobre una Raspberry Pi 4 Modelo B sin una imagen de Raspbian.
 +Aunque, esto podría trabajar para otro Slackware ARM y versiones de Raspberry Pi.
 +
 +=== 1. Partición y formato de la tarjeta SD ===
 +
 +<code>
 +$ sudo fdisk -l /dev/mmcblk0
 +
 +Disk /dev/mmcblk0: 31.9 GB, 31914983424 bytes
 +4 heads, 16 sectors/track, 973968 cylinders, total 62333952 sectors
 +Units = sectors of 1 * 512 = 512 bytes
 +Sector size (logical/physical): 512 bytes / 512 bytes
 +I/O size (minimum/optimal): 512 bytes / 512 bytes
 +Disk identifier: 0x00000000
 +
 +        Device Boot      Start         End      Blocks   Id  System
 +/dev/mmcblk0p1            2048       67583       32768    b  W95 FAT32
 +/dev/mmcblk0p2           67584    62333951    31133184   83  Linux
 +$ sudo mkfs.vfat /dev/mmcblk0p1
 +$ sudo mkfs.ext4 /dev/mmcblk0p2
 +</code>
 +
 +Observaciones:
 +  * Utilizo una tarjeta SD de 32GB.
 +  * I choose 32MB for the size of the first partition
 +  * I let the empty space left for the second partition
 +
 +=== 2. Put the Raspberry Pi firmware in the SD Card ===
 +
 +<code>
 +$ git clone https://github.com/raspberrypi/firmware.git
 +$ sudo mount /dev/mmcblk0p1 ~/mnt
 +$ sudo cp -r firmware/boot/* ~/mnt
 +$ sudo umount ~/mnt
 +$ sudo mount /dev/mmcblk0p2 ~/mnt
 +$ sudo mkdir -p ~/mnt/lib/modules
 +$ sudo cp -r firmware/modules/* ~/mnt/lib/modules
 +$ sudo umount ~/mnt
 +</code>
 +
 +=== 3. Put the Slackware ARM mini root file system in the SD Card ===
 +
 +<code>
 +$ wget -c ftp://ftp.arm.slackware.com/slackwarearm/slackwarearm-devtools/minirootfs/roots/slack-14.2-miniroot_01Jul16.tar.xz
 +$ sudo mount /dev/mmcblk0p2 ~/mnt
 +$ sudo tar -C ~/mnt -xf slack-14.2-miniroot_01Jul16.tar.xz
 +$ echo "/dev/mmcblk0p1 /boot vfat defaults 0 0" | sudo tee ~/mnt/etc/fstab
 +$ echo "/dev/mmcblk0p2 /     ext4 defaults 0 0" | sudo tee -a ~/mnt/etc/fstab
 +$ echo "proc           /proc proc defaults 0 0" | sudo tee -a ~/mnt/etc/fstab
 +$ PASSWD=$(openssl passwd -1 -salt cetkq/enZx6/c2 password)
 +$ sudo sed -i "s|\(root:\).*\(:16983:0:::::\)|\1${PASSWD}\2|" ~/mnt/etc/shadow
 +$ sudo sed -i 's|USE_DHCP\[1\]=""|USE_DHCP\[1\]="yes"|' ~/mnt/etc/rc.d/rc.inet1.conf
 +$ echo "PermitRootLogin yes" | sudo tee -a ~/mnt/etc/ssh/sshd_config
 +$ sudo umount ~/mnt
 +</code>
 +
 +Remarks:
 +  * I set "password" as password for the "root" user
 +  * I set DHCP on the "eth1" network interface
 +  * I allow the "root" user to connect through SSH
 +
 +=== 4. Inserción de la tarjeta SD en la Raspberry Pi ===
 +
 +Your SD Card is ready so you can insert it in the Raspberry Pi and boot.
 +
 +You can connect remotely to your Raspberry Pi as "root" through SSH.
 +<code>
 +$ ssh root@raspberrypi
 +</code>
 +
 +As soon as you are logged, you might want to install additional Slackware ARM packages:
 +<code>
 +$ wget --mirror ftp://ftp.arm.slackware.com/slackwarearm/slackwarearm-14.2
 +$ upgradepkg --install-new ftp.arm.slackware.com/slackwarearm/slackwarearm-14.2/slackware/*/*.txz
 +$ removepkg ftp.arm.slackware.com/slackwarearm/slackwarearm-14.2/slackware/*/kernel_*.txz
 +</code>
 +
 +Remarks:
 +  * I consider that the Raspberry Pi hostname is "raspberrypi"
 +  * I recommend to add a normal user and use this user instead of "root"
 +  * I recommend to change the "root" user password
 +  * I recommend to disallow the "root" user to connect through SSH
 +  * I recommend to [[https://www.raspberrypi.org/documentation/linux/kernel/building.md|build your own Linux kernel]] packages because the kernel you are running does not match with the installed Slackware ARM packages
 +
 +=== 5. Consejos y trucos ===
 +
 +== 5.1. Procesador ==
 +
 +The Raspberry Pi processor can reach 1.2GHz.
 +However, by default, it is stuck to 600MHz even if it is used at 100%.
 +You can check the current frequency of the processor by typing:
 +<code>$ cpufreq-info</code>
 +
 +In order to reach 1.2GHz when the processor is used at 100% (i.e., use the frequency scaling), you need to change the default governors.
 +Add the following line to the end of the ''/etc/rc.d/rc.local'' file:
 +<code>echo ondemand | sudo tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor</code>
 +Now, the processor is correctly set.
 +
 +== 5.2. Time ==
 +
 +Unfortunately, the Raspberry Pi does not provide a Real-Time Clock (RTC).
 +That is why there is no battery included with the board.
 +It means that each time you shutdown the Raspberry Pi, the time is reset!
 +However, if you have internet access, you can update the time during the Slackware ARM boot.
 +Add the following line to the end of the ''/etc/rc.d/rc.local'' file:
 +<code>ntpdate pool.ntp.org</code>
 +Now, the time is correctly set.
 +
 +== 5.3. Video ==
 +
 +Unfortunately, the Raspberry Pi is not compatible with OpenGL (it is compatible OpenGL ES that is a subset of OpenGL).
 +It means that, by default, each application requiring OpenGL will be slow.
 +However, you can reach 60 FPS with OpenGL applications on the Raspberry Pi by using the correct driver.
 +
 +Firstly, you need to build Mesa (>= 17.0.4) with the VC4 DRI driver:
 +<code>
 +$ CFLAGS="-O2 -march=armv8-a -mtune=cortex-a53 -mfloat-abi=softfp -mfpu=neon-vfpv4" \
 + CXXFLAGS="-O2 -march=armv8-a -mtune=cortex-a53 -mfloat-abi=softfp -mfpu=neon-vfpv4" \
 + ./configure \
 + --prefix=/usr \
 + --sysconfdir=/etc \
 + --with-dri-driverdir=/usr/lib/xorg/modules/dri \
 + --with-egl-platforms=x11,drm \
 + --with-gallium-drivers=vc4
 +$ make -j4
 +$ make install DESTDIR=/where/you/want/to/install
 +</code>
 +Then build your own Slackware ARM Mesa package and install it.
 +
 +Secondly, add the following line to the end of the ''/boot/config.txt'' file:
 +<code>dtoverlay=vc4-fkms-v3d</code>
 +Then reboot the Raspberry Pi.
 +
 +You can check that you are able to get 60 FPS with OpenGL applications on the Raspberry Pi by typing the following command in an X terminal:
 +<code>$ glxgears</code>
 +
 +Ahora el video está correctamente configurado.
 ===== Fuentes ===== ===== Fuentes =====
  
   * Originalmente escrita por [[wiki:user:exaga|Exaga]].   * Originalmente escrita por [[wiki:user:exaga|Exaga]].
 +  * Contribuciones por: [[wiki:user:yugiohjcj|yugiohjcj]].
 +  * Traducción  --- //[[wiki:user:rramp|rramp]] 2019/07/31 01:48 (UTC)//.
 +
 +
  
 <!-- If you are copying information from another source, then specify that source --> <!-- If you are copying information from another source, then specify that source -->
 es:howtos:hardware:arm:raspberrypi4 ()