From: Michael Shigorin <mike@altlinux.org>
To: sysadmins@lists.altlinux.org
Subject: Re: [Sysadmins] Дистрибутив для CubieTruck
Date: Fri, 13 Mar 2020 12:16:30 +0300
Message-ID: <20200313091629.GA28299@imap.altlinux.org> (raw)
In-Reply-To: <20200312213647.GA16536@imap.altlinux.org>
On Fri, Mar 13, 2020 at 12:36:47AM +0300, Michael Shigorin wrote:
> On Thu, Sep 12, 2019 at 10:09:24AM +0300, Igor Chudov wrote:
> > Хочу развернуть Zabbix-сервер с PostgreSQL на CubieTruck v
> > 1.0-0606. Какой дистрибутив ALT Linux можно взять для этого?
> > На Wiki есть две неполные статьи:
> > - https://www.altlinux.org/Cubox-i
> > - https://en.altlinux.org/Cubox
> > но там нерелевантные ссылки.
> Ты не поверишь, но разве что http://altlinux.org/CubieTruck
Поправочка от ведущих собаководов (sbolshakov@):
---
Я в sysadmins не писатель, если сочтёшь полезным -- перешли.
- ссылка ^ содержит окаменелое добро, ориентированное на
вендорское ядро, лучше ничего, чем такое
- какой дистрибутив взять -- да любой rootfs для armh,
инструкция тут: https://www.altlinux.org/Write/rootfs
- при этом, нужно иметь ввиду, что железо не умеет грузить u-boot
с sata (но сам u-boot, будучи загруженным с sd-карты, sata умеет),
поэтому перенос рута на диск потребует некоторых движений, как-то:
+ загружаемся с приготовленной по рецепту выше sd-карты
+ делаем раздел(ы) на диске, рутовый (/) обязательно помечаем 'a'
в fdisk
+ распаковываем туда архив с rootfs и, чрутнувшись, пересоздаём
initrd, так, чтоб тот содержал ahci_sunxi и что там обычно нужно:
sd_mod, ext4 и т.д. -- предполагается, что при смонтированных
внутри чрута (--bind) /dev, /sys и /proc всё подхватится само;
+ снимаем 'a' в fdisk с раздела на sd-карте и перегружаемся.
Ну или сократим себе путь, исключив стадию полной установки на sd-карту,
и сделаем всё на x86 хосте (cardreader же есть, правда ?)
- sd-карта с u-boot, сойдёт настолько маленькая и плохонькая, насколько найдётся:
# dd if=/usr/share/u-boot/Cubietruck/u-boot-sunxi-with-spl.bin of=/dev/sdX bs=8k seek=1 oflag=direct
- разливаем архив с rootfs на целевой sata-диск, убеждаемся, что
установлен и работает qemu-user-static-binfmt-arm, чрутимся в армовый раздел
и пересоздаём initrd:
# AUTODETECT= FEATURES='system-glibc rdshell add-modules compress cleanup' \
MODULES_ADD="ahci_sunxi sd_mod ext4" /usr/sbin/make-initrd --no-checks \
--kernel <какое-там-ядро> --config=/dev/null
Инджой.
---
--
---- WBR, Michael Shigorin / http://altlinux.org
------ http://opennet.ru / http://anna-news.info
prev parent reply other threads:[~2020-03-13 9:16 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-09-12 7:09 Igor Chudov
2020-03-12 21:36 ` Michael Shigorin
2020-03-13 9:16 ` Michael Shigorin [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200313091629.GA28299@imap.altlinux.org \
--to=mike@altlinux.org \
--cc=sysadmins@lists.altlinux.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
ALT Linux sysadmins discussion
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/sysadmins/0 sysadmins/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 sysadmins sysadmins/ http://lore.altlinux.org/sysadmins \
sysadmins@lists.altlinux.org sysadmins@lists.altlinux.ru sysadmins@lists.altlinux.com
public-inbox-index sysadmins
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.sysadmins
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git