El instalador gráfico no está activado en las imágenes para arm64 del debian-installer
en stretch, por lo que se utiliza la consola en serie. El «firmware» del equipo debería detectar automáticamente el dispositivo de terminal; si no es así, después de arrancar Linux desde el menú de GRUB verá únicamente un mensaje “Arrancando Linux” y nada más.
If you hit this issue you will need to set a specific console config on the kernel command line. Hit e
for “Edit Kernel command-line” at the GRUB menu, and change
--- quiet
to
console=<device>,<speed>
e.g.
console=ttyAMA0,115200n8
. When finished hit Control+x to continue booting with new setting.
Juno dispone de UEFI, lo que facilita la instalación. El método más práctico consiste en instalar desde un dispositivo USB. Para que funcione el arranque desde USB necesitará contar con el «firmware» más reciente. Las compilaciones posteriores a marzo de 2015 disponibles en http://releases.linaro.org/members/arm/platforms/latest/ funcionaron adecuadamente en las pruebas. Consulte la documentación de Juno para saber cómo actualizar el «firmware».
Prepare una imagen de CD/DVD estándar para arm64 en un dispositivo USB. Insértelo en uno de los puertos traseros. Enchufe un cable en el puerto en serie de nueve pines ubicado en la parte superior del lado posterior de la máquina. Si necesita la red (imagen «netboot»), conecte el cable de Ethernet en el zócalo de la parte frontal de la máquina.
Ejecute un terminal en serie de 8 bits en 115200 sin paridad y arranque el Juno. Este debería arrancar desde el USB y mostrar un menú de GRUB. Juno no detecta adecuadamente la configuración de consola, por lo que accionar la tecla Intro no mostrará la salida del núcleo. Establezca el terminal a
console=ttyAMA0,115200n8
(tal como se explica en Sección 5.1.1, “Configuración de consola”). Oprimir Ctrl+x para arrancar debería mostrarle las pantallas del debian-installer
y permitirle proceder al proceso de instalación estándar.
UEFI está disponible en esta máquina, pero normalmente esta se suministra con U-Boot; si este es su caso, hará falta que instale de antemano el «firmware» UEFI para utilizar un método de arranque e instalación normal, o bien, deberá seguir un procedimiento de instalación para U-Boot. Debe utilizar una consola en serie para controlar la instalación porque el instalador gráfico no está activado en la arquitectura arm64.
El método de instalación recomendado consiste en copiar el núcleo y el «initrd» del debian-installer
en el disco duro empleando el sistema «openembedded» brindado por la máquina y, a continuación, arrancarlo para ejecutar el instalador. Alternativamente, puede utilizar TFTP para copiar y arrancar el núcleo, el «dtb» y el «initrd» (Sección 5.1.4.1, “Arranque TFTP en U-Boot”). Después de la instalación, necesitará llevar a cabo modificaciones manuales a la imagen instalada para arrancarla.
Run a serial console at 115200, 8bit no parity, and boot the machine. Reboot the machine and when you see “Hit any key to stop autoboot:” hit a key to get a Mustang# prompt. Then use U-Boot commands to load and boot the kernel, dtb and initrd.
Booting from the network requires that you have a network connection and a TFTP network boot server (and probably also a DHCP, RARP, or BOOTP server for automatic network configuration).
The server-side setup to support network booting is described in Sección 4.4, “Preparación de los ficheros para el arranque a través de red usando TFTP”.
Network booting on systems using the U-Boot firmware consists of three steps: a) configuring the network, b) loading the images (kernel/initial ramdisk/dtb) into memory and c) actually executing the previosly loaded code.
First you have to configure the network, either automatically via DHCP by running
setenv autoload no dhcp
or manually by setting several environment variables
setenv ipaddr <ip address of the client> setenv netmask <netmask> setenv serverip <ip address of the tftp server> setenv dnsip <ip address of the nameserver> setenv gatewayip <ip address of the default gateway>
If you prefer, you can make these settings permanent by running
saveenv
Afterwards you need to load the images (kernel/initial ramdisk/dtb) into memory. This is done with the tftpboot command, which has to be provided with the address at which the image shall be stored in memory. Unfortunately the memory map can vary from system to system, so there is no general rule which addresses can be used for this.
On some systems, U-Boot predefines a set of environment variables with suitable load addresses: kernel_addr_r, ramdisk_addr_r and fdt_addr_r. You can check whether they are defined by running
printenv kernel_addr_r ramdisk_addr_r fdt_addr_r
If they are not defined, you have to check your system's documentation for appropriate values and set them manually. For systems based on Allwinner SunXi SOCs (e.g. the Allwinner A10, architecture name “sun4i” or the Allwinner A20, architecture name “sun7i”), you can e.g. use the following values:
setenv kernel_addr_r 0x46000000 setenv fdt_addr_r 0x47000000 setenv ramdisk_addr_r 0x48000000
When the load addresses are defined, you can load the images into memory from the previously defined tftp server with
tftpboot ${kernel_addr_r} <filename of the kernel image> tftpboot ${fdt_addr_r} <filename of the dtb> tftpboot ${ramdisk_addr_r} <filename of the initial ramdisk image>
The third part is setting the kernel commandline and actually executing the loaded code. U-Boot passes the content of the “bootargs” environment variable as commandline to the kernel, so any parameters for the kernel and the installer - such as the console device (see Sección 5.3.1, “Consola de arranque”) or preseeding options (see Sección 5.3.2, “Parámetros del instalador de Debian” and Apéndice B, Instalar automáticamente utilizando preconfiguración) - can be set with a command like
setenv bootargs console=ttyS0,115200 rootwait panic=10
The exact command to execute the previously loaded code depends on the image format used. With uImage/uInitrd, the command is
bootm ${kernel_addr_r} ${ramdisk_addr_r} ${fdt_addr_r}
and with native Linux images it is
bootz ${kernel_addr_r} ${ramdisk_addr_r}:${filesize} ${fdt_addr_r}
Nota: al arrancar imágenes de Linux estándares, es importante cargar la imagen del disco RAM inicial después del núcleo y el «dtb» a medida que U-Boot define en la variable «filesize» el valor del tamaño del último archivo cargado y la orden «bootz» solicita el tamaño de la imagen del disco RAM para que esta funcione adecuadamente. Si está arrancando un núcleo específico para una plataforma (un núcleo sin árbol de dispositivos, por ejemplo), omita el parámetro ${fdt_addr_r}.
If your computer will boot from USB, this will probably be the easiest route for installation. Assuming you have prepared everything from Sección 3.6.1, “Selección de dispositivo de arranque” and Sección 4.3, “Preparación de ficheros para el arranque desde un dispositivo de memoria USB”, just plug your USB stick into some free USB connector and reboot the computer. The system should boot up, and unless you have used the flexible way to build the stick and not enabled it, you should be presented with a graphical boot menu (on hardware that supports it). Here you can select various installer options, or just hit Enter.