5.1. Завантаження встановлювача на 64-bit ARM

[Примітка] Примітка

Щодо інформації як завантажити графічний інсталятор, див. Розділ 5.1.6, «Графічний інсталятор».

5.1.1. Налаштування консолі

Графічний інсталятор (експериментально) активований в образах arm64 debian-installer, але на деяких пристроях Ви все ще можете використовувати послідовну консоль. Консольний пристрій повинен бути виявлений автоматично з прошивки, але якщо це не так, після завантаження Linux з меню GRUB, Ви побачите лише повідомлення «Booting Linux».

Якщо ви зіткнулися з цією проблемою, вам потрібно буде встановити конкретну настройку консолі на командному рядку ядра. Нажми e для «Edit Kernel command-line» в меню GRUB, і зміни

--- quiet

на

console=<device>,<speed>

e.g.

console=ttyAMA0,115200n8

. Після закінчення нажми Control+x для продовження завантаження з новим налаштуванням.

5.1.2. Juno Installation

Juno has UEFI so the install is straightforward. The most practical method is installing from USB stick. You need up to date firmware for USB-booting to work. Builds from http://releases.linaro.org/members/arm/platforms/latest/ after March 2015 tested OK. Consult Juno documentation on firmware updating.

Приготуйте на флешці стандартний arm64 образ CD/DVD. Вставте її ззаду в один з портів USB. Під'єднайте ззаду у верхній 9-контактний послідовний порт COM-кабель. Якщо Вам потрібна мережа (образ netboot) під'єднайте в гніздо спереду мережевий кабель.

Run a serial console at 115200, 8bit no parity, and boot the Juno. It should boot from the USB stick to a GRUB menu. The console config is not correctly detected on Juno so just hitting Enter will show no kernel output. Set the console to

console=ttyAMA0,115200n8

(as described in Розділ 5.1.1, «Налаштування консолі»). Control+x to boot should show you the debian-installer screens, and allow you to proceed with a standard installation.

5.1.3. Applied Micro Mustang Installation

UEFI is available for this machine but it is normally shipped with U-Boot so you will need to either install UEFI firmware first then use standard boot/install methods, or use U-Boot boot methods. You must use a serial console to control the installation because the graphical installer is not enabled on the arm64 architecture.

Рекомендований спосіб установки є копіювання ядра debian-installer та initrd на жорсткий диск, використовуючи openembedded систему, що поставляється з машиною, потім для запуску установки завантажте систему звідти. Альтернативно, щоб скопіювати та завантажити kernel/dtb/initrd (Розділ 5.1.4.1, «TFTP-booting в U-Boot») можна скористатися TFTP. Після встановлення системи для завантаження встановленого образу потрібні деякі ручні зміни.

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.

5.1.4. Завантаження з TFTP

Завантаження з мережі вимагає підключення до мережі та сервера TFTP network boot (і, ймовірно, також DHCP, RARP або BOOTP для автоматичного налаштування мережі).

Налаштування на стороні сервера для підтримки завантаження з мережі описано в Розділ 4.4, «Preparing Files for TFTP Net Booting».

5.1.4.1. TFTP-booting в U-Boot

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.

Спочатку вам потрібно налаштувати мережу або автоматично через DHCP, запустивши

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

Після цього Вам потрібно завантажити образи (kernel/initial ramdisk/dtb) у пам'ять. Це робиться за допомогою команди tftpboot, яка повинна бути надана з адресою, за якою образ буде збережений у пам'яті. На жаль, карта розподілу пам'яті може відрізнятися в різних системах, тому на цей випадок, на жаль, немає загального правила які адреси для цього можуть бути використані.

На деяких системах U-Boot predefines набір змінних середовища з відповідними адресами навантаження: kernel_addr_r, ramdisk_addr_r and fdt_addr_r. Ви можете перевірити, чи вони визначені за допомогою

printenv kernel_addr_r ramdisk_addr_r fdt_addr_r

Якщо вони не визначені, вам необхідно перевірити документацію системи для відповідних значень і встановити їх вручну. Для систем на основі Allwinner SunXi SOCs (наприклад, Allwinner A10, назва архітектури «sun4i» або Allwinner A20, назва архітектури «sun7i»), ви можете наприклад, використовувати такі значення:

setenv kernel_addr_r 0x46000000
setenv fdt_addr_r 0x47000000
setenv ramdisk_addr_r 0x48000000

Коли адреси завантаження визначені, можна завантажити образи у пам'ять з попередньо визначеного сервера tftp з

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 Розділ 5.3.1, «Boot serial console») or preseeding options (see Розділ 5.3.2, «Debian Installer Parameters» and Додаток B, Автоматичне встановлення з готовими відповідями) - 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}

Примітка: При завантаженні стандартних образів Linux важливо завантажити початковий образ ramdisk після ядра та dtb, оскільки U-Boot встановлює змінну розміру файлу до розміру останнього завантаженого файлу, також команді bootz для коректної роботи потрібен розмір образу ramdisk. У разі завантаження ядра, залежного від платформи, напр. ядра без структури пристроїв, просто пропустіть параметр ${fdt_addr_r}.

5.1.5. Завантаження з USB-накопичувача пам'яті з UEFI

If your computer will boot from USB, this will probably be the easiest route for installation. Assuming you have prepared everything from Розділ 3.6.1, «Boot Device Selection» and Розділ 4.3, «Preparing Files for USB Memory Stick Booting», 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.

5.1.6. Графічний інсталятор

The graphical version of the installer is only available for a limited number of architectures, including 64-bit ARM. The functionality of the graphical installer is essentially the same as that of the text-based installer as it basically uses the same programs, but with a different frontend.

Although the functionality is identical, the graphical installer still has a few significant advantages. The main advantage is that it supports more languages, namely those that use a character set that cannot be displayed with the text-based «newt» frontend. It also has a few usability advantages such as the option to use a mouse, and in some cases several questions can be displayed on a single screen.

Just as with the text-based installer it is possible to add boot parameters when starting the graphical installer.

[Примітка] Примітка

The graphical installer requires significantly more memory to run than the text-based installer: 640MB. If insufficient memory is available, it will automatically fall back to the text-based «newt» frontend.

If the amount of memory in your system is below 260MB, the graphical installer may fail to boot at all while booting the text-based installer would still work. Using the text-based installer is recommended for systems with little available memory.