Please enable javascript, or click here to visit my ecommerce web site powered by Shopify.
Jump to: navigation, search

Difference between revisions of "Rockpi4/dev/u-boot/es es"

< Rockpi4‎ | dev‎ | u-boot
(Created page with "{{rockpi4_header}} {{Languages|rockpi4/dev/u-boot}} ROCK Pi 4 > Development > U-boot =Compilar U-boot y ejecutarl...")
 
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{rockpi4_header}}
 
 
{{Languages|rockpi4/dev/u-boot}}
 
{{Languages|rockpi4/dev/u-boot}}
    [[rockpi4 | ROCK Pi 4]] > [[rockpi4/dev | Development]] > [[rockpi4/dev/u-boot | U-boot]]
+
{{rockpi4_header_es}}
 +
 
 +
 
 +
<div class="col-md-12" style="text-shadow: 2px 2px 4px #DDDDDD; box-shadow: 2px 2px 5px #999999;">
 +
 
 +
      [[rockpi4/es_es | ROCK Pi 4]] > [[rockpi4/dev/es_es | Desarrollando]] > [[rockpi4/dev/u-boot | U-boot ]]
  
 
=Compilar U-boot y ejecutarlo en ROCK Pi4=
 
=Compilar U-boot y ejecutarlo en ROCK Pi4=
  
=== Requirement ===
+
=== Requisitos ===
* ROCK Pi 4 mainboard
+
* Placa ROCK Pi 4
* A EMMC module or a microSD card
+
* Una memoria EMMC o una tarjeta microSD
* Power adapter
+
* Un transformador
* '''USB Male A to Male A cable'''(important) USB-C has been seen as not working, an adaptor for USB-C to USB-A has worked. [https://forum.radxa.com/t/otg-flashing-not-working/717 See discussion].
+
* '''Un cable USB Macho A a Macho A'''(importante) el USB-C se ha visto que no funciona, un adaptador de USB-C a USB-A ha funcionado. [https://forum.radxa.com/t/otg-flashing-not-working/717 Ver discusión].
*A a PC/laptop running Linux
+
* Un PC/portátil que ejecute Linux
  
==Step 1 Get the source code ==
+
==Paso 1 Obtener el código fuente ==
  
You need Git to get multiple git repositories to build the image.
+
Necesitas Git para obtener mútiples repositorios git para compilar la imagen.
  
Install Git if you don't have it.
+
Instala Git si no lo tienes.
  
 
     sudo apt-get update
 
     sudo apt-get update
 
     sudo apt-get install git
 
     sudo apt-get install git
  
Clone the source code
+
Clona el código fuente
  
 
     git clone --recursive https://github.com/radxa/rockchip-bsp.git
 
     git clone --recursive https://github.com/radxa/rockchip-bsp.git
  
You will get
+
Tendrás entonces
  
 
     build  kernel  README.md  rkbin  rootfs  u-boot
 
     build  kernel  README.md  rkbin  rootfs  u-boot
  
Directories usage introductions:
+
Instrucciones sobre el uso de los Directorios:
  
 
* build:
 
* build:
** Some script files and configuration files for building u-boot, kernel and rootfs.
+
** Contiene algunos ficheros de script y algunos ficheros de construccion de u-boot, del kernel y de rootfs.
 
* kernel:  
 
* kernel:  
** kernel source code, current version is 4.4
+
** Contiene el código fuente del núcleo, la versión actual es 4.4
 
* rkbin:  
 
* rkbin:  
** Prebuilt Rockchip binaries, include first stage loader and ATF(Arm Trustzone Firmware).
+
** Contiene los binarios precompilados de Rockchip, incluido el cargador de primera etapa y el ATF(Arm Trustzone Firmware).
 
* rootfs:  
 
* rootfs:  
** Bootstrap a Debian based rootfs, support architechture armhf and arm64, support Debian Jessie and Stretch.
+
** Contiene un Bootstrap rootfs con base Debian, soporta arquitecturas armhf y arm64, soporta Debian Jessie y Stretch.
 
* u-boot:  
 
* u-boot:  
** u-boot as the second stage bootloader
+
** Contiene u-boot como segunda etapa del cargador de inicio
  
==Step 2 Install tool-chain and other tools==
+
==Paso 2 Instalar el tool-chain y otras herramientas==
  
 
     sudo apt-get install gcc-aarch64-linux-gnu device-tree-compiler libncurses5 libncurses5-dev build-essential libssl-dev mtools
 
     sudo apt-get install gcc-aarch64-linux-gnu device-tree-compiler libncurses5 libncurses5-dev build-essential libssl-dev mtools
 
     sudo apt-get install bc python dosfstools
 
     sudo apt-get install bc python dosfstools
  
To build rkdeveloptool on a debain based Linux distribution, follow the instruction below:
+
Compilar rkdeveloptool en una distribución Linux Debian, siguiendo las instrucciones siguientes:
  
Install build dependecy:
+
Instalar las siguientes dependencias de construcción:
 
   sudo apt-get install libudev-dev libusb-1.0-0-dev dh-autoreconf
 
   sudo apt-get install libudev-dev libusb-1.0-0-dev dh-autoreconf
  
Clone the source code and build:
+
Clonar el código fuente y compilar:
 
   git clone https://github.com/rockchip-linux/rkdeveloptool
 
   git clone https://github.com/rockchip-linux/rkdeveloptool
 
   cd rkdeveloptool
 
   cd rkdeveloptool
Line 59: Line 63:
 
   make
 
   make
  
If you encounter compile error like below
+
Si encuentras un error de compilación como el siguiente
 
     ./configure: line 4269: syntax error near unexpected token `LIBUSB1,libusb-1.0'
 
     ./configure: line 4269: syntax error near unexpected token `LIBUSB1,libusb-1.0'
 
     ./configure: line 4269: `PKG_CHECK_MODULES(LIBUSB1,libusb-1.0)'
 
     ./configure: line 4269: `PKG_CHECK_MODULES(LIBUSB1,libusb-1.0)'
  
  
You should install pkg-config libusb-1.0
+
Debes instalar pkg-config libusb-1.0 con el comando:
 
     sudo apt-get install pkg-config libusb-1.0
 
     sudo apt-get install pkg-config libusb-1.0
  
Then re-run
+
Entonces re-ejecuta
 
     autoreconf -i
 
     autoreconf -i
 
     ./configure
 
     ./configure
 
     make
 
     make
  
Now you have rkdeveloptool executable at the current directory.
+
Ahora tendrás el ejecutable rkdeveloptool en el directorio actual.
 
   sudo cp rkdeveloptool /usr/local/bin/
 
   sudo cp rkdeveloptool /usr/local/bin/
  
==Step 3 Build U-boot==
+
==Paso 3 Compilar U-boot==
  
*If you use the ROCK Pi4 A
+
*Si usas el ROCK Pi4 A
  
 
     ./build/mk-uboot.sh rockpi4a
 
     ./build/mk-uboot.sh rockpi4a
  
*If you use the ROCK Pi4B
+
*Si usas el ROCK Pi4 B
  
 
     ./build/mk-uboot.sh rockpi4b
 
     ./build/mk-uboot.sh rockpi4b
  
And then you can get the directory 'out'.
+
Y entonces puedes tener el directorio 'out'.
  
==Flash and run U-boot on ROCK Pi4==
+
==Grabar y ejecutar U-boot en ROCK Pi4==
  
Insert a empty EMMC module or microSD card on your ROCK Pi4
+
Inserta una memoria EMMC vacía o una tarjeta microSD en tu ROCK Pi4
  
Use the USB Male A to Male A cable to connected your PC and ROCK Pi4 and then type
+
Usa el cable USB Macho A a Macho A para conectar tu PC y el ROCK Pi4, entonces teclea
  
 
     rkdeveloptool ld
 
     rkdeveloptool ld
  
You can see the output just like this
+
Puedes ver que la salida es así
  
 
     DevNo=1 Vid=0x2207,Pid=0x330c,LocationID=302 Maskrom
 
     DevNo=1 Vid=0x2207,Pid=0x330c,LocationID=302 Maskrom
  
You can useing this command to flash U-boot
+
Puedes usar este comando para grabar el U-boot
  
 
     cd ./out/u-boot
 
     cd ./out/u-boot
Line 108: Line 112:
 
     sudo rkdeveloptool rd
 
     sudo rkdeveloptool rd
  
The U-boot were run on your ROCK Pi4 try to type 'help' or '?' to getting started!
+
El U-boot fue ejecutado en tu ROCK Pi4 intenta teclear 'help' o '?' para empezar.
 +
 
 +
</div>

Latest revision as of 08:02, 20 October 2019


       ROCK Pi 4 >  Desarrollando >  U-boot 

Compilar U-boot y ejecutarlo en ROCK Pi4

Requisitos

  • Placa ROCK Pi 4
  • Una memoria EMMC o una tarjeta microSD
  • Un transformador
  • Un cable USB Macho A a Macho A(importante) el USB-C se ha visto que no funciona, un adaptador de USB-C a USB-A ha funcionado. Ver discusión.
  • Un PC/portátil que ejecute Linux

Paso 1 Obtener el código fuente

Necesitas Git para obtener mútiples repositorios git para compilar la imagen.

Instala Git si no lo tienes.

   sudo apt-get update
   sudo apt-get install git

Clona el código fuente

   git clone --recursive https://github.com/radxa/rockchip-bsp.git

Tendrás entonces

   build  kernel  README.md  rkbin  rootfs  u-boot

Instrucciones sobre el uso de los Directorios:

  • build:
    • Contiene algunos ficheros de script y algunos ficheros de construccion de u-boot, del kernel y de rootfs.
  • kernel:
    • Contiene el código fuente del núcleo, la versión actual es 4.4
  • rkbin:
    • Contiene los binarios precompilados de Rockchip, incluido el cargador de primera etapa y el ATF(Arm Trustzone Firmware).
  • rootfs:
    • Contiene un Bootstrap rootfs con base Debian, soporta arquitecturas armhf y arm64, soporta Debian Jessie y Stretch.
  • u-boot:
    • Contiene u-boot como segunda etapa del cargador de inicio

Paso 2 Instalar el tool-chain y otras herramientas

   sudo apt-get install gcc-aarch64-linux-gnu device-tree-compiler libncurses5 libncurses5-dev build-essential libssl-dev mtools
   sudo apt-get install bc python dosfstools

Compilar rkdeveloptool en una distribución Linux Debian, siguiendo las instrucciones siguientes:

Instalar las siguientes dependencias de construcción:

 sudo apt-get install libudev-dev libusb-1.0-0-dev dh-autoreconf

Clonar el código fuente y compilar:

 git clone https://github.com/rockchip-linux/rkdeveloptool
 cd rkdeveloptool
 autoreconf -i
 ./configure
 make

Si encuentras un error de compilación como el siguiente

   ./configure: line 4269: syntax error near unexpected token `LIBUSB1,libusb-1.0'
   ./configure: line 4269: `PKG_CHECK_MODULES(LIBUSB1,libusb-1.0)'


Debes instalar pkg-config libusb-1.0 con el comando:

   sudo apt-get install pkg-config libusb-1.0

Entonces re-ejecuta

   autoreconf -i
   ./configure
   make

Ahora tendrás el ejecutable rkdeveloptool en el directorio actual.

 sudo cp rkdeveloptool /usr/local/bin/

Paso 3 Compilar U-boot

  • Si usas el ROCK Pi4 A
   ./build/mk-uboot.sh rockpi4a
  • Si usas el ROCK Pi4 B
   ./build/mk-uboot.sh rockpi4b

Y entonces puedes tener el directorio 'out'.

Grabar y ejecutar U-boot en ROCK Pi4

Inserta una memoria EMMC vacía o una tarjeta microSD en tu ROCK Pi4

Usa el cable USB Macho A a Macho A para conectar tu PC y el ROCK Pi4, entonces teclea

   rkdeveloptool ld

Puedes ver que la salida es así

   DevNo=1	Vid=0x2207,Pid=0x330c,LocationID=302	Maskrom

Puedes usar este comando para grabar el U-boot

   cd ./out/u-boot
   sudo rkdeveloptool db ../../rkbin/bin/rk33/rk3399_loader_v1.12.112.bin
   sudo rkdeveloptool wl 0x40 idbloader.img
   sudo rkdeveloptool wl 0x4000 uboot.img
   sudo rkdeveloptool wl 0x6000 trust.img
   sudo rkdeveloptool rd

El U-boot fue ejecutado en tu ROCK Pi4 intenta teclear 'help' o '?' para empezar.