TheBB Posted March 10, 2017 Posted March 10, 2017 (edited) Chroot-Gentoo на Кинетике. Тест. Архив установки для mipsel (кроме DSL,LTE,VOX). Если будут желающие установить на mips (DSL,LTE,VOX), пишите - соберём. Установка аналогична развёртыванию Entware* или Debian, но проходит в два этапа: 1. само развёртывание системы ("Приложения" - "OPKG" - выбор носителя - "Применить"). Установка занимает ок. 10 мин. (Ultra II) Лог установки оч. длинный, приведу его окончание ... [I] Mar 10 15:45:41 ndm: Opkg::Manager: /opt/etc/initrc: gentoo/usr/lib/pkgconfig/expatu.pc. [I] Mar 10 15:45:41 ndm: Opkg::Manager: /opt/etc/initrc: gentoo/usr/lib/pkgconfig/libprocps.pc. [I] Mar 10 15:45:41 ndm: Opkg::Manager: /opt/etc/initrc: gentoo/usr/lib/pkgconfig/com_err.pc. [I] Mar 10 15:45:41 ndm: Opkg::Manager: /opt/etc/initrc: gentoo/usr/lib/pkgconfig/libkmod.pc. [I] Mar 10 15:45:41 ndm: Opkg::Manager: /opt/etc/initrc: gentoo/usr/lib/pkgconfig/ncurses++.pc. [I] Mar 10 15:45:41 ndm: Opkg::Manager: /opt/etc/initrc: gentoo/usr/lib/pkgconfig/libip4tc.pc. [I] Mar 10 15:45:41 ndm: Opkg::Manager: /opt/etc/initrc: gentoo/usr/lib/libcrypt.a. [I] Mar 10 15:45:41 ndm: Opkg::Manager: /opt/etc/initrc: gentoo/usr/lib/libpcreposix.so.0.0.4. [I] Mar 10 15:45:41 ndm: Opkg::Manager: /opt/etc/initrc: gentoo/usr/lib/libssl.so.1.0.0. [I] Mar 10 15:45:41 ndm: Opkg::Manager: /opt/etc/initrc: gentoo/usr/lib/libpython2.7.a. [I] Mar 10 15:45:41 ndm: Opkg::Manager: /opt/etc/initrc: gentoo/usr/lib/libfdisk.so. [I] Mar 10 15:45:41 ndm: Opkg::Manager: /opt/etc/initrc: gentoo/usr/lib/preloadable_libiconv.so. [I] Mar 10 15:45:41 ndm: Opkg::Manager: /opt/etc/initrc: gentoo/usr/lib/libiniparser.so. [I] Mar 10 15:45:41 ndm: Opkg::Manager: /opt/etc/initrc: gentoo/usr/tmp. [I] Mar 10 15:45:41 ndm: Opkg::Manager: /opt/etc/initrc: gentoo/tmp/. [I] Mar 10 15:45:41 ndm: Opkg::Manager: /opt/etc/initrc: gentoo/tmp/.keep. ----- <-- система полностью установилась --> ----- 2. запуск (там же: выкл. "Применить" - вкл. "Применить", или перемонтировать носитель) ... [I] Mar 10 15:48:08 ndm: Opkg::Manager: unmount existing /opt disk: 38a775dd-2df4-4288-a8e5-9176e6b91c9d: [I] Mar 10 12:48:08 0: Gentoo services seems to be already stopped, exiting... [E] Mar 10 15:48:08 ndm: Opkg::Manager: /opt/etc/initrc: exit code 1. [I] Mar 10 15:48:08 ndm: Opkg::Manager: disk unmounted. [I] Mar 10 15:48:08 ndm: Opkg::Manager: disk is unset. [I] Mar 10 15:48:08 ndm: Opkg::Manager: init script reset to default: /opt/etc/initrc. [I] Mar 10 15:48:08 ndm: Core::ConfigurationSaver: saving configuration... [I] Mar 10 15:48:11 ndm: Core::ConfigurationSaver: configuration saved. ----- <-- старт установленной системы --> ----- [I] Mar 10 15:48:12 ndm: Opkg::Manager: disk is set to: 38a775dd-2df4-4288-a8e5-9176e6b91c9d: [I] Mar 10 15:48:12 ndm: kernel: EXT4-fs (sdb1): re-mounted. Opts: (null) [I] Mar 10 15:48:12 ndm: Opkg::Manager: /tmp/mnt/Gentoo mounted to /tmp/mnt/Gentoo. [I] Mar 10 15:48:12 ndm: Opkg::Manager: /tmp/mnt/Gentoo mounted to /opt/. [I] Mar 10 15:48:12 ndm: Opkg::Manager: /tmp/mnt/Gentoo initialized. [I] Mar 10 15:48:12 ndm: Opkg::Manager: init script reset to default: /opt/etc/initrc. [I] Mar 10 12:48:12 0: Starting Gentoo services... [I] Mar 10 15:48:13 ndm: Core::ConfigurationSaver: saving configuration... [I] Mar 10 15:48:15 ndm: Opkg::Manager: /opt/etc/initrc: Service `netmount' needs non existent service `net'. [I] Mar 10 12:48:15 sshd[8008]: Server listening on :: port 22. [I] Mar 10 12:48:15 sshd[8008]: Server listening on 0.0.0.0 port 22. [I] Mar 10 15:48:15 ndm: Opkg::Manager: /opt/etc/initrc: * Starting sshd ... [ ok ]. [I] Mar 10 15:48:15 ndm: Opkg::Manager: /opt/etc/initrc: * Caching service dependencies ... [ ok ]. [I] Mar 10 15:48:15 ndm: Opkg::Manager: /opt/etc/initrc: Done. [I] Mar 10 15:48:16 ndm: Core::ConfigurationSaver: configuration saved. [I] Mar 10 12:49:06 sshd[8058]: Accepted password for root from 192.168.4.50 port 40618 ssh2 В системе Keenetic_Ultra ~ # uname -a Linux Keenetic_Ultra 3.4.113 #1 SMP Fri Mar 3 23:32:19 MSK 2017 mips MIPS 1004Kc V2.15 MediaTek MT7621 SoC GNU/Linux Keenetic_Ultra ~ # Keenetic_Ultra ~ # cat /etc/gentoo-release Gentoo Base System release 2.3 Keenetic_Ultra ~ # + Самое главное забыл Пароль на вход - gentoo Edited March 10, 2017 by TheBB + 3 Quote
Mamay Posted March 10, 2017 Posted March 10, 2017 2 часа назад, Le ecureuil сказал: *&%$#|}@$%^&%!!!!!!!! Крайне похоже на клич Тарзана!!! Quote
Le ecureuil Posted March 10, 2017 Posted March 10, 2017 Только что, Mamay сказал: Крайне похоже на клич Тарзана!!! Ага, благодаря этой теме я кстати уже понял на чем буду тестировать одну фичу Quote
KorDen Posted March 10, 2017 Posted March 10, 2017 2 часа назад, Le ecureuil сказал: *&%$#|}@$%^&%!!!!!!!! Первая мысль была что это регулярка или brainfuck Но у самого реакция "пересобирать мир на кинетике уже можно, осталось запилить чертей с пересборкой ядра и компиляцией из портов прямо на роутере". Правда, из-за chroot в моей конфигурации приходится так и оставаться на Entware Quote
TheBB Posted July 7, 2017 Author Posted July 7, 2017 Gentoo: branch ~mips (test); gcc 6.3.0; binutils 2.28; glibc 2.24 (с обновлениями на начало недели) Для сокращения времени (пере)сборки (исключение предыдущего этапа из текущего), использовались ключи -bke "Запчасти", вырезанные для сокращения занимаемого места ("запечатанные" с полным путём от корня): бинарные пакеты (на случай поломки) исходники файлы portage (ебилды, патчи, ...) Создать на носителе папку `install` и поместить в неё архив. На вкладке "OPKG" выбрать носитель и в поле "Сценарий initrc" вписать: /opt/etc/deployment, нажать "Применить" (на Ultra II развёртывание занимает ок. 50 мин. (оч. много мелких файлов ~140 000)) После завершения распаковки, будет выведено сообщение ... [I] Jul 7 15:50:56 ndm: Opkg::Manager: /opt/etc/deployment: gentoo/root/.wget-hsts. [I] Jul 7 15:50:56 ndm: Opkg::Manager: /opt/etc/deployment: gentoo/root/.bash_history. [I] Jul 7 15:50:56 ndm: Opkg::Manager: /opt/etc/deployment: gentoo/root/.local/. [I] Jul 7 12:51:07 0: * Finish... [I] Jul 7 12:51:07 0: * Cleaning... На вкладке "OPKG" перемонтировать носитель, без указания сценария [I] Jul 7 15:55:47 ndm: Opkg::Manager: unmount existing /opt disk: 763b1a81-6471-4adf-88e5-f3c8b9de0dac: [I] Jul 7 15:55:47 ndm: Opkg::Manager: disk unmounted. [I] Jul 7 15:55:47 ndm: Opkg::Manager: disk is unset. [I] Jul 7 15:55:47 ndm: Opkg::Manager: init script reset to default: /opt/etc/initrc. [I] Jul 7 15:55:48 ndm: Core::ConfigurationSaver: saving configuration... [I] Jul 7 15:55:51 ndm: Core::ConfigurationSaver: configuration saved. [I] Jul 7 15:55:52 ndm: Opkg::Manager: disk is set to: 763b1a81-6471-4adf-88e5-f3c8b9de0dac: [I] Jul 7 15:55:52 ndm: kernel: EXT4-fs (sda1): re-mounted. Opts: (null) [I] Jul 7 15:55:52 ndm: Opkg::Manager: /tmp/mnt/Gentoo mounted to /tmp/mnt/Gentoo. [I] Jul 7 15:55:52 ndm: Opkg::Manager: /tmp/mnt/Gentoo mounted to /opt/. [I] Jul 7 15:55:52 ndm: Opkg::Manager: /tmp/mnt/Gentoo initialized. [I] Jul 7 15:55:52 ndm: Opkg::Manager: init script reset to default: /opt/etc/initrc. [I] Jul 7 12:55:52 0: Starting Gentoo services... [I] Jul 7 15:55:52 ndm: Core::ConfigurationSaver: saving configuration... [I] Jul 7 15:55:52 ndm: Opkg::Manager: /opt/etc/initrc: * Starting /etc/init.d/ext-prep ... [ Done ]. [I] Jul 7 15:55:55 sshd[3773]: Server listening on 0.0.0.0 port 22. [I] Jul 7 15:55:55 sshd[3773]: Server listening on :: port 22. [I] Jul 7 15:55:55 ndm: Opkg::Manager: /opt/etc/initrc: * Starting sshd ... [ ok ]. [I] Jul 7 15:55:55 ndm: Opkg::Manager: /opt/etc/initrc: * Caching service dependencies ... [ ok ]. [I] Jul 7 15:55:55 ndm: Opkg::Manager: /opt/etc/initrc: Done. [I] Jul 7 15:55:55 ndm: Core::ConfigurationSaver: configuration saved. логин ( ): root, пароль; gentoo, порт: 22 вход/выход (ssh root...) [I] Jul 7 15:59:09 sshd[3971]: Accepted password for root from 192.168.2.20 port 56712 ssh2 [I] Jul 7 15:59:40 root: Hello, World! [I] Jul 7 16:00:27 sshd[3971]: Received disconnect from 192.168.2.20 port 56712:11: disconnected by user [I] Jul 7 16:00:27 sshd[3971]: Disconnected from user root 192.168.2.20 port 56712 размонтирование носителя (если понадобится) [I] Jul 7 16:01:20 ndm: Opkg::Manager: unmount existing /opt disk: 763b1a81-6471-4adf-88e5-f3c8b9de0dac: [I] Jul 7 13:01:20 0: Stopping Gentoo services... [I] Jul 7 16:01:20 ndm: Opkg::Manager: /opt/etc/initrc: * Stopping /etc/init.d/ext-prep ... [ Done ]. [I] Jul 7 16:01:20 sshd[3773]: Received signal 15; terminating. [I] Jul 7 16:01:20 ndm: Opkg::Manager: /opt/etc/initrc: * Stopping sshd ... [ ok ]. [I] Jul 7 16:01:20 ndm: Opkg::Manager: /opt/etc/initrc: Done. [I] Jul 7 16:01:20 ndm: Opkg::Manager: disk unmounted. [I] Jul 7 16:01:20 ndm: Opkg::Manager: disk is unset. [I] Jul 7 16:01:20 ndm: Opkg::Manager: init script reset to default: /opt/etc/initrc. [I] Jul 7 16:01:20 ndm: Core::ConfigurationSaver: saving configuration... [I] Jul 7 16:01:23 ndm: Core::ConfigurationSaver: configuration saved. Quote
emlen Posted March 24, 2018 Posted March 24, 2018 Насколько жизнеспособное решение, вообще кто-то использует его?GIGA II Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.