Добавлен README.md с минимальной инструкцией по сборке.

This commit is contained in:
tolst0v 2025-03-12 19:54:55 +04:00
parent e1cc970d14
commit 9ddecbbce8
2 changed files with 53 additions and 18 deletions

18
README
View file

@ -1,18 +0,0 @@
Linux kernel
============
There are several guides for kernel developers and users. These guides can
be rendered in a number of formats, like HTML and PDF. Please read
Documentation/admin-guide/README.rst first.
In order to build the documentation, use ``make htmldocs`` or
``make pdfdocs``. The formatted documentation can also be read online at:
https://www.kernel.org/doc/html/latest/
There are various text files in the Documentation/ subdirectory,
several of them using the Restructured Text markup notation.
Please read the Documentation/process/changes.rst file, as it contains the
requirements for building and running the kernel, and information about
the problems which may result by upgrading your kernel.

53
README.md Normal file
View file

@ -0,0 +1,53 @@
# Linux Kernel for Repka Pi 4
Данный репозиторий содержит исходный код ядра Linux для платы Repka Pi 4.
**Версии необходимых утилит для сборки:**
| Утилита | Версия |
|-----------------|----------|
| git | 2.43.0 |
| gcc | 4:11.2.0-1ubuntu1 |
| bc | 1.07.1-3build1 |
| bison | 2:3.8.2+dfsg-1build1 |
| build-essential | 12.9ubuntu3 |
| cpio | 2.13+dfsg-7ubuntu0.1 |
| flex | 2.6.4-8build2 |
| libelf-dev |:arm64 0.186-1build1 |
| libssl-dev |:arm64 3.0.2-0ubuntu1.19 |
| rsync | 3.2.7-0ubuntu0.22.04.4 |
| u-boot-tools | 2022.01+dfsg-2ubuntu2.6 |
**Примечание:**
Сборка осуществлялась на ОС Linux Ubuntu 22.04.5 LTS с архитектурой aarch64.
## Перед сборкой
Перед сборкой необходимо установить следующие пакеты:
```bash
sudo apt install -y build-essential flex bison libssl-dev libelf-dev bc rsync cpio u-boot-tools
```
## Сборка
Для сборки ядра необходимо выполнить следующие команды:
1. Скопировать сгенерированный заранее конфигурационный файл (для того, чтобы каждый раз не конфигурировать ядро):
```bash
cp repka_configs/.config.old .
```
2. Сконфигурировать ядро из ранее готового конфигурационного файла.
```bash
make olddefconfig
```
3. Запустить сборку ядра:
```bash
make -j$(nproc) bindeb-pkg
```
4. После успешной сборки в директории выше появятся следующие файлы:
```
├── linux-headers-6.6.443_6.6.443-<Хэш коммита>-<Версия сборки>_arm64.deb
├── linux-image-6.6.443_6.6.443-<Хэш коммита>-<Версия сборки>_arm64.deb
└── linux-libc-dev_6.6.443-<Хэш коммита>-<Версия сборки>_arm64.deb
```