DTux
/
dtux__mageia4arm
Archived
1
0
Fork 0
This commit is contained in:
Jybz 2019-12-05 07:51:14 +01:00
parent 2a82e889e8
commit 6bd9625562
2522 changed files with 136342 additions and 1181 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
/build

286
README.md
View File

@ -1,44 +1,300 @@
# mageia4arm
mageia4arm
==========
Short :
-------
* [Français](#francais)
* [English](#english)
<a id="francais"/>
Français
--------
* [Description](#fr_desc)
* [Rapidement](#fr_quick)
* [Créer une image](#fr_creatimg)
* [Aide](#fr_help)
* [Premier démarrage](#fr_1stStart)
* [Nouvelle plateforme](#fr_newPlat)
* [Fichier de configuration](#fr_file-conf)
* [Fichier chroot](#fr_file-second)
* [Fichier de fonctions personnalisées](#fr_file-spe)
* [Fichier extlinux](#fr_file-extlinux)
* [Autres fichiers](#fr_file_others)
* [Extras](#fr_extras)
* [Graver l'image](#fr_burn)
* [Compresser l'image](#fr_compress)
* [Générer une checksum](#fr_gen_chksum)
* [Signer la checksum](#fr_sign)
* [Vérifier une signature](#fr_verify)
* [Étendre la partition](#fr_extend)
<a id="fr_desc"></a>
### Description :
Outils servant à générer une image Mageia pour systèmes à base de processeurs arm
Démarrage rapide:
<a id="fr_quick"/>
### Démarrage rapide :
Avoir une copie de ce dépot :
```
git clone https://git.labolyon.fr/DTux/mageia4arm
```
Choisissez le dossier de configuration adapté à votre besoin (rpi ou xu4), sinon créez un nouveau dossier de configuration, copiez le fichier "mageia4arm.cfg.template" à l'interieur et modifiez le selon vos besoins.
Par défaut l'utilisateur est "pi" avec le mot de passe "raspberry", et l'administrateur "root" avec le mot de passe "piroot".
Créer l'image:
create_arm_img_urpmi.sh --all --config <dossier de configuration\>
<a id="fr_creatimg"/>
### Créer l'image :
create_arm_img_urpmi.sh --all --config \<dossier de configuration\>
Par exemple :
```
su -
<mot de passe root>
cd /home/user/workspace/mageia4arm/
./create_arm_img_urpmi.sh --all --target bananaPro --size 4 --tainted --nonfree --build-path ./build --config bananaPro 2>&1 | tee -a ./build.log
```
Avec cette commande, toutes les étapes (--all) du processus de création pour (--target) la bananaPro sont exécuter. L'image final tiendra sur une carte de (--size) 4Go. Les dépots tainted et nonfree seront activé. Le chemin de construction (--build-path) sera ./build. Finalement, la configuration (--config) sera bananaPro. La suite de la commande, 2>&1 redirige la sortie d'erreur dans la sortie standart et le tout est dupliqué (| tee -a) dans le fichier build.log pour le déboguage.
Aide:
<a id="fr_help"/>
### Aide :
create_arm_img_urpmi.sh -h|--help
Vous pouvez adapter le script "second_stage_install.sh" afin de compléter l'installation.
Des scripts sont disponibles dans le dossier "tools", ils sont copié dans /usr/local/bin/ dans l'image.
Premier lancement de l'image sur le raspberry pi:
- lancer drakkeyboard afin de configurer le clavier
- si vous avez besoin d'un gestionnaire graphique, lancer le script:
install_graphical.sh <gestionnaire-graphique\>( xfce, lxqt, plasma, ...) voir les métapaquetages disponibles dans "Environnement graphique" dans le gestionnaire de logiciels.
<a id="fr_1stStart"/>
### Premier lancement de l'image sur le raspberry pi :
- lancer drakkeyboard afin de configurer le clavier
- si vous avez besoin d'un gestionnaire graphique, lancer le script :<br/>install_graphical.sh \<gestionnaire-graphique\>( xfce, lxqt, plasma, ...) voir les métapaquetages disponibles dans "Environnement graphique" dans le gestionnaire de logiciels.
<a id="fr_newPlat"/>
### Ajouter une nouvelle plateforme :
Pour ajouter une nouvelle plateforme, il faut le dossier au nom du matériel dans le dossier platforms contenant le fichier mageia4arm.cfg comprennant les informations relatif à la distribution Mageia, le fichier second_stage_install.sh qui vient installer le système, le fichier specialFunctions.sh qui implémentes les fonctions pour affiner l'installation à la plateforme et extlinux.conf.
<a id="fr_file-conf"/>
#### mageia4arm.cfg
Un modèle est présent à la source de ce projet. Il contient les variables nécessaire à l'installation de Mageia, comme la version, l'architecture, le mirroir, les mots de passes etc.
<a id="fr_file-second"/>
#### second_stage_install.sh
Ce script est lancé avec chroot, ainsi nous pouvons exécuter des opérations personnalisées comme l'installation de paquets non présents des dépots de Mageia. Ce script vient aussi définir les groupes de fichiers.
<a id="fr_file-spe"/>
#### specialFunctions.sh
Ce script complémente le processus d'installation pour des éléments spécifiques à la plateformes, comme le partitionnement, la manière de mettre en place le chargeur de démarrage, le téléchargements de fichiers externe, etc.
Le script doit implémenter ces quatres fonctions :
```
function preImgCreation() {
#Possibilité de télécharger des éléments supplémentaires ici.
return 0
}
function postPrepareChroot() {
#Possibilité de copier des fichiers spécifique à la plateforme avant de lancer le script second_stage_install.sh.
return 0
}
function burningBootloader() {
#Plusieurs méthodes sont possibles pour flasher le chargeur de démarrage, et dépendent de la plateforme.
return 0
}
function copyingCustomSystem() {
#Possibilité de copier des fichiers dans le système monté.
return 0
}
```
Si l'une de ces fonctions ne retourne pas 0, la création de l'image échoue.
<a id="fr_file-extlinux"/>
#### extlinux.conf
???
<a id="fr_file-others"/>
#### Autres
Bien sûr, d'autres fichiers sont nécessaires. Il faut avoir l'arborescence du matériel (soit DTB/DTS, soit script.bin), le chargeur de démarrage spécifique à la plateforme ainsi qu'un noyau compatible avec l'architecture de la plateforme.
<a id="fr_extras"/>
### Extras :
Diverses informations complémentaires.
<a id="fr_burn"/>
#### Graver une image
Il est possible de graver l'image avec dd, souvent les cartes SD sont disponibles sous le nom mmcblkX avec X leurs numéros.
```
dd if=./build/Mageia-7-bananaPro1.img of=/dev/mmcblkX
```
On peut ajouter une barre de progression :
```
dd if=./build/Mageia-7-bananaPro1.img | pv -s $(ls -l ./build/Mageia-7-bananaPro1.img | cut -d ' ' -f 5) | dd of=/dev/mmcblkX
```
<a id="fr_compress"/>
#### Compresser une image
Pour compresser l'image, de plusieurs Go en quelques centaines de Mo pour la mettre en ligne par exemple, il est possible d'exécuter la commande suivante :
```
dd if=./build/Mageia-7-bananaPro1.img | gzip -9 | dd of=./build/Mageia-7-bananaPro1.img.gzip
```
Avec une barre d'avancement :
```
dd if=./build/Mageia-7-bananaPro1.img | pv -s $(ls -l ./build/Mageia-7-bananaPro1.img | cut -d ' ' -f 5) | gzip -9 | dd of=./build/Mageia-7-bananaPro1.img.gzip
```
Il est possible d'utiliser d'autre logiciel de compression comme xz par exemple.
<a id="fr_gen_chksum"/>
#### Calculer les sommes de contrôles
Pour s'assurer qu'un fichier a été bien téléchargé, pour vérifier son intégrité, il est d'usage de comparer la somme de contrôle. On peut la calculer avec l'algorithme MD5, SHA1, SHA256, SHA512. Par exemple :
```
cd /home/user/workspace/mageia4arm/build
md5sum Mageia-7-bananaPro1.img > Mageia-7-bananaPro1.img.md5
```
Il est possible de remplacer la commande md5sum par sha1sum ou sha256sum ou encore sha512sum.
<a id="fr_sign"/>
#### Signer les sommes de contrôles
Pour assurer les utilisateurs que le fichier téléchargé vient bien de vous et non d'un tiers malveillant, il est possible de signer la somme de contrôle avec votre clef.
```
cd /home/user/workspace/mageia4arm/build
gpg --sign Mageia-7-bananaPro1.img.md5
```
La commande génère automatiquement le fichier de signature reprenant le nom du fichier à l'identique et ajoutant l'extension .gpg.
<a id="fr_verify"/>
#### Vérifier les sommes de contrôles
Pour vérifier une somme de contrôle, il faut joindre le créateur de l'image, lui faire confiance, ajouter sa clef à son trousseau de clef. Ensuite, il est possible d'exécuter la commande suivante :
```
cd /home/user/Téléchargements/
gpg --verify Mageia-7-bananaPro1.img.md5
```
<a id="fr_extend"/>
#### Étendre la partition
L'image créé peut contenir une partition root très réduite. Ceci permet d'économiser de la place pour la construction, le stockage de l'image et sûrtout un temps réduit pour graver l'image sur une carte sd.
Il est possible d'étendre cette partition pour profiter pleinement de l'entièreté de la carte SD. Le plus simple est avec l'utilitaire growpart dans le paquet cloud-utils-growpart.
Les valeurs X et Y sont à remplacer par le périphérique et la dernière partition du périphérique à étendre.
```
#Vérifier la partition, il peut être demandé pour l'étape suivante.
e2fsck -f /dev/mmcblkXpY
#Défini la nouvelle taille. (Change de langue avec LC_ALL car growpart ne supporte pas 'octet'.
LC_ALL=C growpart /dev/mmcblkX partitionNumber
#Change la taille
resize2fs /dev/mmcblkXpY
#Synchronise, vide le cache USB et assure que les données sont sur la clef.
sync
```
<a id="english"/>
English
-------
* [Description](#en_desc)
* [Quickly](#en_quick)
* [Create an image](#en_creatimg)
* [Help](#en_help)
* [First boot](#en_1stStart)
* [New Platform](#en_newPlat)
* [Configuration File](#en_file-conf)
* [chroot Filechroot](#en_file-second)
* [Custom function File](#en_file-spe)
* [extlinux File](#en_file-extlinux)
* [Other Files](#en_file-others)
* [Extras](#en_extras)
* [Burn the image](#en_burn)
* [Compress the Image](#en_compress)
* [Generate the Checksum](#en_gen_chksum)
* [Sign the Checksum](#en_sign)
* [Verify the Signature](#en_verify)
* [extending the partition](#en_extend)
<a id="en_desc"/>
### Description:
This repository contains script to make image for arm based systems from Mageia repositories.
Quick start:
<a id="en_quick"/>
<a id="en_creatimg"/>
### Quick start:
Choose the config dir you need (rpi or xu4), else create a new config directory with "mageia4arm.cfg.template" in and modify it as you need.
By default username is "pi" with password "raspberry" and root password is "piroot".
create_arm_img_urpmi.sh --all --config <your config dir\>
Example given :
```
su -
<root password>
cd /home/user/workspace/mageia4arm/
./create_arm_img_urpmi.sh --all --target bananaPro --size 4 --tainted --nonfree --build-path ./build --config bananaPro 2>&1 | tee -a ./build.log
```
With such command, all steps of the build process for the bananaPro will be executed. The final image will fit into a 4 GB SD card. The nonfree and tainted repositories will be activated. The build path will be the directory ./build. Finaly, the configuration is for bananaPro. The rest of the command, 2>&1 redirect the stderr stream into the stdout and it will be duplicated inside the build.log file for debug purpose.
Help:
<a id="en_help"/>
### Help:
create_arm_img_urpmi.sh -h|--help
you can adapt the script "second_stage_install.sh" to complete the installation.
Some scripts are available in directory "tools". they are copied in /usr/local/bin/ in the image.
First launch of the image on raspberry pi:
- launch drakkeyboard to configure keyboard layout.
- if you need a graphical environment, launch the script :
install_graphical.sh <graphical environment\> ( xfce, lxqt, plasma, ...), see "Graphical environment" in the Mageia application manager meta packages.
<a id="en_1stStart"/>
### First launch of the image on raspberry pi:
- launch drakkeyboard to configure keyboard layout.
- if you need a graphical environment, launch the script :<br/>install_graphical.sh \<graphical environment\> ( xfce, lxqt, plasma, ...), see "Graphical environment" in the Mageia application manager meta packages.
<a id="en_newPlat"/>
### Adding a new platform:
To add a new platform, a new folder needs to be created in the platforms directory with the name of the platform containing the mageia4arm.cfg configuration file about the Mageia distribution itself, the second_stage_install.sh script which install the system, the specialFunctions.sh script which implements functions in order to fit the platform and the extlinux.conf file.
<a id="en_file-conf"/>
#### mageia4arm.cfg
A template file is located in the root of the project. It contains all necessary variables for the installation of Mageia, as the version, architecture, mirroir, password etc.
<a id="en_file-second"/>
#### second_stage_install.sh
This script is launched with chroot, then we can execute custom operation as installing packages that are not from Mageia.org. This script also defines some files groups.
<a id="en_file-spe"/>
#### specialFunctions.sh
This script add into the installation process some elements specific to the platform, as the partitionning, the fashon to set the bootloader, downloading external files, etc.
It must implement the four next functons :
```
function preImgCreation() {
#Here it is possible to download external file.
return 0
}
function postPrepareChroot() {
#Possibility to copy/paste platform related files before to launch the second_stage_install.sh script.
return 0
}
function burningBootloader() {
#There are several methods to flash the bootloader and depend on the platform.
return 0
}
function copyingCustomSystem() {
#It is possible to copy files into the mounted system.=
return 0
}
```
If one of this functions does not return 0, the process is stoped.
<a id="en_file-extlinux"/>
#### extlinux.conf
???
<a id="en_file-others"/>
#### others
Of course, other files are necessary. The device tree (DTB/DTS or script.bin) is necessary, a specific bootloader for the platform and a compatible kernel with that architecture.
<a id="en_extras"/>
<a id="en_burn"/>
<a id="en_compress"/>
<a id="en_gen_chksum"/>
<a id="en_sign"/>
<a id="en_verify"/>
<a id="en_extend"/>
### extras:
Not translated.

1
clean Normal file
View File

@ -0,0 +1 @@
./create_arm_img_urpmi.sh --clean --config bananaPro --build-path ./build

View File

@ -1 +0,0 @@
pi.raspberry

1
copy Normal file
View File

@ -0,0 +1 @@
dd if=./build/Mageia-7-bananaPro1.img | pv | dd of=/dev/mmcblk0 ; sync

1
create Normal file
View File

@ -0,0 +1 @@
./create_arm_img_urpmi.sh --all --target bananaPro --size 2 --tainted --nonfree --build-path ./build --config bananaPro 2>&1 | tee -a ./log/creation.log

File diff suppressed because it is too large Load Diff

1036
log/creation.log Normal file

File diff suppressed because one or more lines are too long

BIN
platforms/bananaPro.tar.gz Normal file

Binary file not shown.

View File

@ -0,0 +1,517 @@
U-Boot 2019.10-rc4-00037-gdac51e9aaf (Oct 13 2019 - 12:47:46 +0200) Allwinner Technology For Mageia
CPU: Allwinner A20 (SUN7I)
Model: LeMaker Banana Pro
I2C: ready
DRAM: 1 GiB
MMC: mmc@1c0f000: 0, mmc@1c12000: 1
Loading Environment from EXT4... ** File not found /boot/uboot.env **
** Unable to read "/boot/uboot.env" from mmc0:1 **
In: serial
Out: serial
Err: serial
Net: eth0: ethernet@1c50000
starting USB...
No working controllers found
Hit any key to stop autoboot: 0
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
$ setenv bootargs console=ttyS0,115200 disp.screen0_output_mode=EDID:1024x768p50 hdmi.audio=EDID:0 root=/dev/mmcblk0p1 rootfstype=ext4 elevator=deadline rootwait init=/bin/sh
$ ext4load mmc 0:1 0x40008000 /boot/vmlinuz
3175896 bytes read in 176 ms (17.2 MiB/s)
$ ext4load mmc 0:1 0x48000000 /boot/sun7i-a20-bananapro.dtb
25166 bytes read in 5 ms (4.8 MiB/s)
$ bootz 0x40008000 - 0x48000000
## Flattened Device Tree blob at 48000000
Booting using the fdt blob at 0x48000000
Loading Device Tree to 49ff6000, end 49fff24d ... OK
Starting kernel ...
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 5.4.0-rc3 (jibz@jabztop) (gcc version 8.2.1 20181105 (Red Hat Cross 8.2.1-2) (GCC)) #1 SMP Fri Oct 18 19:47:18 CEST 2019
[ 0.000000] CPU: ARMv7 Processor [410fc074] revision 4 (ARMv7), cr=10c5387d
[ 0.000000] CPU: div instructions available: patching division code
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] OF: fdt: Machine model: LeMaker Banana Pro
[ 0.000000] Memory policy: Data cache writealloc
[ 0.000000] Reserved memory: created CMA memory pool at 0x4a000000, size 96 MiB
[ 0.000000] OF: reserved mem: initialized node default-pool, compatible id shared-dma-pool
[ 0.000000] psci: probing for conduit method from DT.
[ 0.000000] psci: Using PSCI v0.1 Function IDs from DT
[ 0.000000] percpu: Embedded 15 pages/cpu s30604 r8192 d22644 u61440
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 260608
[ 0.000000] Kernel command line: console=ttyS0,115200 disp.screen0_output_mode=EDID:1024x768p50 hdmi.audio=EDID:0 root=/dev/mmcblk0p1 rootfstype=ext4 elevator=deadline rootwait init=/bin/sh
[ 0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes, linear)
[ 0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes, linear)
[ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[ 0.000000] Memory: 930964K/1048576K available (6144K kernel code, 436K rwdata, 1696K rodata, 1024K init, 242K bss, 19308K reserved, 98304K cma-reserved, 262144K highmem)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[ 0.000000] rcu: Hierarchical RCU implementation.
[ 0.000000] rcu: RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=2.
[ 0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[ 0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
[ 0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[ 0.000000] GIC: Using split EOI/Deactivate mode
[ 0.000000] random: get_random_bytes called from start_kernel+0x2ac/0x43c with crng_init=0
[ 0.000000] arch_timer: cp15 timer(s) running at 24.00MHz (phys).
[ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[ 0.000007] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[ 0.000020] Switching to timer-based delay loop, resolution 41ns
[ 0.000425] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[ 0.000735] clocksource: hstimer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 6370868154 ns
[ 0.000992] Console: colour dummy device 80x30
[ 0.001048] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[ 0.001063] pid_max: default: 32768 minimum: 301
[ 0.001221] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes, linear)
[ 0.001240] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes, linear)
[ 0.002070] CPU: Testing write buffer coherency: ok
[ 0.002506] /cpus/cpu@0 missing clock-frequency property
[ 0.002526] /cpus/cpu@1 missing clock-frequency property
[ 0.002540] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[ 0.003143] Setting up static identity map for 0x40100000 - 0x40100060
[ 0.003302] rcu: Hierarchical SRCU implementation.
[ 0.003867] smp: Bringing up secondary CPUs ...
[ 0.014648] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[ 0.014807] smp: Brought up 1 node, 2 CPUs
[ 0.014824] SMP: Total of 2 processors activated (96.00 BogoMIPS).
[ 0.014831] CPU: All CPU(s) started in HYP mode.
[ 0.014836] CPU: Virtualization extensions available.
[ 0.015531] devtmpfs: initialized
[ 0.021708] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 4
[ 0.022017] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.022045] futex hash table entries: 512 (order: 3, 32768 bytes, linear)
[ 0.025657] pinctrl core: initialized pinctrl subsystem
[ 0.026814] NET: Registered protocol family 16
[ 0.028296] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.029580] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[ 0.029594] hw-breakpoint: maximum watchpoint size is 8 bytes.
[ 0.048261] SCSI subsystem initialized
[ 0.048812] usbcore: registered new interface driver usbfs
[ 0.048888] usbcore: registered new interface driver hub
[ 0.048956] usbcore: registered new device driver usb
[ 0.049224] pps_core: LinuxPPS API ver. 1 registered
[ 0.049233] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[ 0.049254] PTP clock support registered
[ 0.049530] Advanced Linux Sound Architecture Driver Initialized.
[ 0.050628] clocksource: Switched to clocksource arch_sys_counter
[ 0.058779] thermal_sys: Registered thermal governor 'step_wise'
[ 0.059261] NET: Registered protocol family 2
[ 0.059845] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[ 0.059881] TCP established hash table entries: 8192 (order: 3, 32768 bytes, linear)
[ 0.059973] TCP bind hash table entries: 8192 (order: 4, 65536 bytes, linear)
[ 0.060110] TCP: Hash tables configured (established 8192 bind 8192)
[ 0.060250] UDP hash table entries: 512 (order: 2, 16384 bytes, linear)
[ 0.060317] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes, linear)
[ 0.060564] NET: Registered protocol family 1
[ 0.061384] RPC: Registered named UNIX socket transport module.
[ 0.061401] RPC: Registered udp transport module.
[ 0.061408] RPC: Registered tcp transport module.
[ 0.061414] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.062107] hw perfevents: no interrupt-affinity property for /pmu, guessing.
[ 0.062377] hw perfevents: enabled with armv7_cortex_a7 PMU driver, 5 counters available
[ 0.064002] workingset: timestamp_bits=30 max_order=18 bucket_order=0
[ 0.071886] NFS: Registering the id_resolver key type
[ 0.071935] Key type id_resolver registered
[ 0.071942] Key type id_legacy registered
[ 0.072048] bounce: pool size: 64 pages
[ 0.072097] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248)
[ 0.072109] io scheduler mq-deadline registered
[ 0.072116] io scheduler kyber registered
[ 0.073497] sun4i-usb-phy 1c13400.phy: Couldn't get regulator usb1_vbus... Deferring probe
[ 0.077202] sun4i-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[ 0.137898] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[ 0.139939] sun4i-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pb not found, using dummy regulator
[ 0.141080] printk: console [ttyS0] disabled
[ 0.161295] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 48, base_baud = 1500000) is a U6_16550A
[ 0.784468] printk: console [ttyS0] enabled
[ 0.789146] sun4i-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-ph not found, using dummy regulator
[ 0.819777] 1c29000.serial: ttyS1 at MMIO 0x1c29000 (irq = 49, base_baud = 1500000) is a U6_16550A
[ 0.829211] sun4i-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pi not found, using dummy regulator
[ 0.861679] 1c29c00.serial: ttyS2 at MMIO 0x1c29c00 (irq = 50, base_baud = 1500000) is a U6_16550A
[ 0.970676] ahci-sunxi 1c18000.sata: controller can't do PMP, turning off CAP_PMP
[ 0.978165] ahci-sunxi 1c18000.sata: forcing PORTS_IMPL to 0x1
[ 0.984083] ahci-sunxi 1c18000.sata: AHCI 0001.0100 32 slots 1 ports 3 Gbps 0x1 impl platform mode
[ 0.993059] ahci-sunxi 1c18000.sata: flags: ncq sntf pm led clo only pio slum part ccc
[ 1.002121] scsi host0: ahci-sunxi
[ 1.005980] ata1: SATA max UDMA/133 mmio [mem 0x01c18000-0x01c18fff] port 0x100 irq 36
[ 1.015879] libphy: Fixed MDIO Bus: probed
[ 1.019985] CAN device driver interface
[ 1.024458] sun4i-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pa not found, using dummy regulator
[ 1.034293] sun7i-dwmac 1c50000.ethernet: IRQ eth_wake_irq not found
[ 1.040697] sun7i-dwmac 1c50000.ethernet: IRQ eth_lpi not found
[ 1.046721] sun7i-dwmac 1c50000.ethernet: PTP uses main clock
[ 1.052495] sun7i-dwmac 1c50000.ethernet: no reset control found
[ 1.059308] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 1.065891] ehci-platform: EHCI generic platform driver
[ 1.071569] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 1.077770] ohci-platform: OHCI generic platform driver
[ 1.085267] sunxi-rtc 1c20d00.rtc: registered as rtc0
[ 1.090452] i2c /dev entries driver
[ 1.095007] axp20x-i2c 0-0034: AXP20x variant AXP209 found
[ 1.115112] input: axp20x-pek as /devices/platform/soc/1c2ac00.i2c/i2c-0/0-0034/axp20x-pek/input/input0
[ 1.125008] axp20x-regulator axp20x-regulator: regulators node not found
[ 1.131782] ldo1: supplied by regulator-dummy
[ 1.136388] ldo2: supplied by regulator-dummy
[ 1.141466] ldo3: supplied by regulator-dummy
[ 1.146452] ldo4: supplied by regulator-dummy
[ 1.151025] ldo5: supplied by regulator-dummy
[ 1.156031] dcdc2: supplied by regulator-dummy
[ 1.161110] dcdc3: supplied by regulator-dummy
[ 1.166712] axp20x-i2c 0-0034: AXP20X driver loaded
[ 1.173137] Registered IR keymap rc-empty
[ 1.177258] rc rc0: sunxi-ir as /devices/platform/soc/1c21800.ir/rc/rc0
[ 1.184126] input: sunxi-ir as /devices/platform/soc/1c21800.ir/rc/rc0/input1
[ 1.191753] sunxi-ir 1c21800.ir: initialized sunXi IR driver
[ 1.198700] sunxi-wdt 1c20c90.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[ 1.209519] sun4i-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pf not found, using dummy regulator
[ 1.220108] sunxi-mmc 1c0f000.mmc: Got CD GPIO
[ 1.250231] sunxi-mmc 1c0f000.mmc: initialized, max. request size: 16384 KB
[ 1.258450] sunxi-mmc 1c12000.mmc: allocated mmc-pwrseq
[ 1.287129] sunxi-mmc 1c12000.mmc: initialized, max. request size: 16384 KB
[ 1.294749] sun4i-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pg not found, using dummy regulator
[ 1.305077] sun4i-ss 1c15000.crypto-engine: Die ID 0
[ 1.313860] usbcore: registered new interface driver usbhid
[ 1.319466] usbhid: USB HID core driver
[ 1.326731] random: fast init done
[ 1.331040] debugfs: Directory '1c22c00.codec' with parent 'sun4i-codec' already present!
[ 1.340586] sun4i-codec 1c22c00.codec: Codec <-> 1c22c00.codec mapping ok
[ 1.347709] mmc0: host does not support reading read-only switch, assuming write-enable
[ 1.352408] ata1: SATA link down (SStatus 0 SControl 300)
[ 1.358763] mmc0: new high speed SDHC card at address 5048
[ 1.367556] mmcblk0: mmc0:5048 SD32G 29.0 GiB
[ 1.371915] NET: Registered protocol family 17
[ 1.376503] can: controller area network core (rev 20170425 abi 9)
[ 1.378652] mmc1: queuing unknown CIS tuple 0x80 (2 bytes)
[ 1.382856] NET: Registered protocol family 29
[ 1.389744] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[ 1.392699] can: raw protocol (rev 20170425)
[ 1.392705] can: broadcast manager protocol (rev 20170425 t)
[ 1.392718] can: netlink gateway (rev 20190810) max_hops=1
[ 1.399675] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[ 1.402762] Key type dns_resolver registered
[ 1.411270] mmc1: queuing unknown CIS tuple 0x80 (7 bytes)
[ 1.413821] Registering SWP/SWPB emulation handler
[ 1.421008] mmcblk0: p1
[ 1.449019] sun4i-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pa not found, using dummy regulator
[ 1.450686] mmc1: new high speed SDIO card at address 0001
[ 1.458808] sun7i-dwmac 1c50000.ethernet: IRQ eth_wake_irq not found
[ 1.470455] sun7i-dwmac 1c50000.ethernet: IRQ eth_lpi not found
[ 1.476506] sun7i-dwmac 1c50000.ethernet: PTP uses main clock
[ 1.482271] sun7i-dwmac 1c50000.ethernet: no reset control found
[ 1.600858] sun7i-dwmac 1c50000.ethernet: Version ID not available
[ 1.607048] sun7i-dwmac 1c50000.ethernet: DWMAC1000
[ 1.612056] sun7i-dwmac 1c50000.ethernet: DMA HW capability register supported
[ 1.619270] sun7i-dwmac 1c50000.ethernet: Normal descriptors
[ 1.624941] sun7i-dwmac 1c50000.ethernet: Ring mode enabled
[ 1.630772] libphy: stmmac: probed
[ 1.636122] ehci-platform 1c14000.usb: EHCI Host Controller
[ 1.641773] ehci-platform 1c14000.usb: new USB bus registered, assigned bus number 1
[ 1.649903] ehci-platform 1c14000.usb: irq 33, io mem 0x01c14000
[ 1.690630] ehci-platform 1c14000.usb: USB 2.0 started, EHCI 1.00
[ 1.697620] hub 1-0:1.0: USB hub found
[ 1.701450] hub 1-0:1.0: 1 port detected
[ 1.706323] ehci-platform 1c1c000.usb: EHCI Host Controller
[ 1.711989] ehci-platform 1c1c000.usb: new USB bus registered, assigned bus number 2
[ 1.720027] ehci-platform 1c1c000.usb: irq 37, io mem 0x01c1c000
[ 1.750644] ehci-platform 1c1c000.usb: USB 2.0 started, EHCI 1.00
[ 1.757604] hub 2-0:1.0: USB hub found
[ 1.761437] hub 2-0:1.0: 1 port detected
[ 1.766292] ohci-platform 1c14400.usb: Generic Platform OHCI controller
[ 1.772966] ohci-platform 1c14400.usb: new USB bus registered, assigned bus number 3
[ 1.781032] ohci-platform 1c14400.usb: irq 34, io mem 0x01c14400
[ 1.855472] hub 3-0:1.0: USB hub found
[ 1.859271] hub 3-0:1.0: 1 port detected
[ 1.864156] ohci-platform 1c1c400.usb: Generic Platform OHCI controller
[ 1.870844] ohci-platform 1c1c400.usb: new USB bus registered, assigned bus number 4
[ 1.879375] ohci-platform 1c1c400.usb: irq 38, io mem 0x01c1c400
[ 1.955550] hub 4-0:1.0: USB hub found
[ 1.959351] hub 4-0:1.0: 1 port detected
[ 1.963812] sunxi-rtc 1c20d00.rtc: setting system clock to 1970-01-01T00:09:44 UTC (584)
[ 1.972321] ALSA device list:
[ 1.975295] #0: sun4i-codec
[ 1.982608] EXT4-fs (mmcblk0p1): INFO: recovery required on readonly filesystem
[ 1.989923] EXT4-fs (mmcblk0p1): write access will be enabled during recovery
[ 2.174966] EXT4-fs (mmcblk0p1): recovery complete
[ 2.187141] EXT4-fs (mmcblk0p1): mounted filesystem with ordered data mode. Opts: (null)
[ 2.195367] VFS: Mounted root (ext4 filesystem) readonly on device 179:1.
[ 2.204203] devtmpfs: mounted
[ 2.208337] Freeing unused kernel memory: 1024K
[ 2.213053] Run /bin/sh as init process
sh: cannot set terminal process group (-1): Inappropriate ioctl for device
sh: no job control in this shell
sh-4.4# passwd
Changing password for user root.
New password:
Retype new password:
passwd: Authentication token manipulation error
sh-4.4#
[ 32.490656] vcc3v0: disabling
[ 32.493642] vcc5v0: disabling
sh-4.4# echo ${?}
1
[ 283.211564] random: crng init done
sh-4.4# mount -o remount,rw /dev/mmcblk0p1
[ 378.103283] EXT4-fs (mmcblk0p1): re-mounted. Opts: (null)
sh-4.4# passwd
Changing password for user root.
New password:
Retype new password:
passwd: all authentication tokens updated successfully.
sh-4.4# passwd banana
passwd: Unknown user name 'banana'.
sh-4.4# cat /etc/passwd
root:x:0:0:root:/root:/bin/bash
bin:x:1:1:bin:/bin:/bin/sh
daemon:x:2:2:daemon:/sbin:/bin/sh
adm:x:3:4:adm:/var/adm:/bin/sh
lp:x:4:7:lp:/var/spool/lpd:/bin/sh
sync:x:5:0:sync:/sbin:/bin/sync
mail:x:8:12:mail:/var/spool/mail:/bin/sh
news:x:9:13:news:/var/spool/news:/bin/sh
uucp:x:10:14:uucp:/var/spool/uucp:/bin/sh
operator:x:11:0:operator:/var:/bin/sh
games:x:12:100:games:/usr/games:/bin/sh
nobody:x:65534:65534:Nobody:/:/bin/sh
vcsa:x:69:69:virtual console memory owner:/dev:/sbin/nologin
messagebus:x:999:999:system user for dbus:/:/sbin/nologin
systemd-coredump:x:998:998:systemd Core Dumper:/:/sbin/nologin
systemd-network:x:192:192:systemd Network Management:/:/sbin/nologin
systemd-resolve:x:193:193:systemd Resolver:/:/sbin/nologin
rpm:x:997:997:system user for rpm:/var/lib/rpm:/bin/false
systemd-journal-remote:x:992:992:systemd Journal Remote:/:/sbin/nologin
systemd-timesync:x:991:991:systemd Time Synchronization:/:/sbin/nologin
chrony:x:990:990:system user for chrony:/var/lib/chrony:/sbin/nologin
sshd:x:989:989:system user for openssh:/var/empty:/sbin/nologin
sh-4.4# adduser -D
GROUP=100
HOME=/home
INACTIVE=-1
EXPIRE=
SHELL=/bin/bash
SKEL=/etc/skel
CREATE_MAIL_SPOOL=no
sh-4.4# adduser -m -p *** bananaPro
sh-4.4# reboot
System has not been booted with systemd as init system (PID 1). Can't operate.
Failed to connect to bus: Host is down
Failed to talk to init daemon.
sh-4.4# poweroff
System has not been booted with systemd as init system (PID 1). Can't operate.
Failed to connect to bus: Host is down
Failed to talk to init daemon.
sh-4.4# shutdown -P
System has not been booted with systemd as init system (PID 1). Can't operate.
Failed to connect to bus: Host is down
System has not been booted with systemd as init system (PID 1). Can't operate.
Failed to connect to bus: Host is down
Failed to talk to init daemon.
sh-4.4# exec /sbin/init
[ 622.526387] systemd[1]: System time before build time, advancing clock.
[ 622.536431] systemd[1]: Failed to lookup module alias 'autofs4': Function not implemented
[ 622.564613] systemd[1]: systemd 241 running in system mode. (+PAM +AUDIT -SELINUX +IMA -APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD +IDN2 -IDN -PCRE2 default-hierarchy=)
[ 622.587159] systemd[1]: Detected architecture arm.
Welcome to Mageia 7!
[ 622.623010] systemd[1]: Set hostname to <pi.raspberry>.
[ 622.944256] systemd[1]: File /usr/lib/systemd/system/systemd-journald.service:12 configures an IP firewall (IPAddressDeny=any), but the local system does not support BPF/cgroup based firewalling.
[ 622.961881] systemd[1]: Proceeding WITHOUT firewalling in effect! (This warning is only shown for the first loaded unit using IP firewalling.)
[ 623.439308] systemd[1]: Condition check resulted in Journal Audit Socket being skipped.
[ 623.450328] systemd[1]: Listening on udev Kernel Socket.
[ OK ] Listening on udev Kernel Socket.
[ 623.490959] systemd[1]: Reached target Remote File Systems.
[ OK ] Reached target Remote File Systems.
[ 623.520874] systemd[1]: Reached target Swap.
[ OK ] Reached target Swap.
[ 623.550915] systemd[1]: Condition check resulted in Arbitrary Executable File Formats File System Automount Point being skipped.
[ OK ] Reached target RPC Port Mapper.
[ OK ] Listening on Device-mapper event daemon FIFOs.
[ OK ] Listening on Journal Socket (/dev/log).
[ OK ] Created slice system-getty.slice.
[ OK ] Listening on udev Control Socket.
[ OK ] Created slice system-serial\x2dgetty.slice.
[ OK ] Listening on initctl Compatibility Named Pipe.
[ OK ] Started Forward Password R<>…uests to Wall Directory Watch.
[ OK ] Created slice User and Session Slice.
[ OK ] Reached target Slices.
[ OK ] Listening on Process Core Dump Socket.
[ OK ] Listening on Journal Socket.
Starting Remount Root and Kernel File Systems...
Starting Setup Virtual Console...
Starting Load legacy module configuration...
Mounting Temporary Directory (/tmp)...
[ 624.088217] EXT4-fs (mmcblk0p1): re-mounted. Opts: (null)
Starting udev Coldplug all Devices...
Starting Load Kernel Modules...
Starting Journal Service...
Mounting Kernel Debug File System...
[ OK ] Started Remount Root and Kernel File Systems.
[ OK ] Started Setup Virtual Console.
[ OK ] Started Load legacy module configuration.
[ OK ] Started Journal Service.
[ OK ] Mounted Temporary Directory (/tmp).
[ OK ] Started Load Kernel Modules.
[ OK ] Mounted Kernel Debug File System.
Starting Apply Kernel Variables...
Starting Configure read-only root support...
Starting Flush Journal to Persistent Storage...
Starting Create Static Device Nodes in /dev...
[ OK ] Started Apply Kernel Variables.
[ 624.681582] systemd-journald[149]: Received request to flush runtime journal from PID 1
[ 624.691841] systemd-journald[149]: File /var/log/journal/968f86691e66406c971e0269623fd2be/system.journal corrupted or uncleanly shut down, renaming and replacing.
[ OK ] Started Create Static Device Nodes in /dev.
Starting udev Kernel Device Manager...
[ OK ] Started Configure read-only root support.
[ OK ] Started Flush Journal to Persistent Storage.
Starting Load/Save Random Seed...
[ OK ] Started udev Kernel Device Manager.
[ OK ] Started Load/Save Random Seed.
[ OK ] Started udev Coldplug all Devices.
Starting Show Plymouth Boot Screen...
Starting udev Wait for Complete Device Initialization...
[ OK ] Started Show Plymouth Boot Screen.
[ OK ] Found device /dev/ttyS0.
[ OK ] Reached target Paths.
[ OK ] Started Forward Password R<>…s to Plymouth Directory Watch.
[ OK ] Reached target Sound Card.
[ OK ] Started udev Wait for Complete Device Initialization.
Starting Activation of LVM2 logical volumes...
[ OK ] Started Activation of LVM2 logical volumes.
[ OK ] Reached target Local Encrypted Volumes.
Starting Activation of LVM2 logical volumes...
[ OK ] Started Activation of LVM2 logical volumes.
Starting Monitoring of LVM<56><4D>…meventd or progress polling...
[ OK ] Started Monitoring of LVM2<4D>… dmeventd or progress polling.
[ OK ] Reached target Local File Systems (Pre).
[ OK ] Reached target Local File Systems.
Starting Tell Plymouth To Write Out Runtime Data...
Starting Reconfigure the s<><73>…em on administrator request...
Starting Create Volatile Files and Directories...
Starting Restore /run/initramfs on shutdown...
[ OK ] Started Tell Plymouth To Write Out Runtime Data.
[ OK ] Started Restore /run/initramfs on shutdown.
[ OK ] Started Create Volatile Files and Directories.
Starting Update UTMP about System Boot/Shutdown...
[ OK ] Started Update UTMP about System Boot/Shutdown.
[ OK ] Reached target System Initialization.
[ OK ] Started Daily Cleanup of Temporary Directories.
Mageia release 7 (Official) for armv7hl
Kernel 5.4.0-rc3 on a Dual-processor armv7l / ttyS0
pi login: bananaPro
Password:
[ 774.253303] systemd-journald[149]: Failed to set ACL on /var/log/journal/968f86691e66406c971e0269623fd2be/user-1000.journal, ignoring: Operation not supported
[bananaPro@pi ~]$ uname -a
Linux pi.raspberry 5.4.0-rc3 #1 SMP Fri Oct 18 19:47:18 CEST 2019 armv7l armv7l armv7l GNU/Linux
[bananaPro@pi ~]$ cat /etc/product.id
vendor=Mageia.Org,distribution=Mageia,type=Basic,version=7,branch=Official,release=7,arch=armv7hl,product=Default
[bananaPro@pi ~]$
[bananaPro@pi ~]$ poweroff
Failed to set wall message, ignoring: Access denied
Failed to power off system via logind: Access denied
[bananaPro@pi ~]$ su
Password:
[root@pi bananaPro]# poweroff -p
[ OK ] Started Show Plymouth Power Off Screen.
[ OK ] Stopped Session c3 of user bananaPro.
Stopping Login Service...
Stopping User Manager for UID 1000...
[ OK ] Stopped User Manager for UID 1000.
Stopping User Runtime Directory /run/user/1000...
[ OK ] Unmounted /run/user/1000.
[ OK ] Stopped User Runtime Directory /run/user/1000.
[ OK ] Removed slice User Slice of UID 1000.
Stopping Permit User Sessions...
Stopping D-Bus System Message Bus...
[ OK ] Stopped Permit User Sessions.
[ OK ] Stopped target Network.
Stopping LSB: Bring up/down networking...
Stopping LSB: Wait for the hotplugged network to be up...
[ OK ] Stopped target Remote File Systems.
[ OK ] Stopped D-Bus System Message Bus.
[ OK ] Stopped Login Service.
[ OK ] Stopped LSB: Wait for the hotplugged network to be up.
[ OK ] Stopped LSB: Bring up/down networking.
Stopping LSB: Nameserver information manager...
[ OK ] Stopped LSB: Nameserver information manager.
[ OK ] Stopped target Basic System.
[ OK ] Stopped target Paths.
[ OK ] Stopped target Slices.
[ OK ] Removed slice User and Session Slice.
[ OK ] Stopped Reconfigure the system on administrator request.
[ OK ] Stopped target Sockets.
[ OK ] Closed D-Bus System Message Bus Socket.
[ OK ] Stopped Forward Password R<>…s to Plymouth Directory Watch.
[ OK ] Stopped target System Initialization.
[ OK ] Stopped Load legacy module configuration.
[ OK ] Stopped target Local Encrypted Volumes.
[ OK ] Stopped Forward Password R<>…uests to Wall Directory Watch.
[ OK ] Stopped Apply Kernel Variables.
Stopping Update UTMP about System Boot/Shutdown...
[ OK ] Stopped Load Kernel Modules.
Stopping Load/Save Random Seed...
[ OK ] Stopped Load/Save Random Seed.
[ OK ] Stopped Update UTMP about System Boot/Shutdown.
[ OK ] Stopped Create Volatile Files and Directories.
[ OK ] Stopped target Local File Systems.
[ OK ] Stopped target Local File Systems (Pre).
Stopping Monitoring of LVM<56><4D>…meventd or progress polling...
[ OK ] Stopped Create Static Device Nodes in /dev.
Unmounting Temporary Directory (/tmp)...
[ OK ] Stopped Configure read-only root support.
[ OK ] Stopped Remount Root and Kernel File Systems.
[ OK ] Unmounted Temporary Directory (/tmp).
[ OK ] Reached target Unmount All Filesystems.
[ OK ] Stopped target Swap.
[ OK ] Reached target Shutdown.
[ OK ] Reached target Final Step.
[ OK ] Started Power-Off.
[ OK ] Reached target Power-Off.
[ 4086.708299] printk: systemd-shutdow: 29 output lines suppressed due to ratelimiting
[ 4086.825713] systemd-shutdown[1]: Syncing filesystems and block devices.
[ 4087.051321] systemd-shutdown[1]: Sending SIGTERM to remaining processes...
[ 4087.067963] systemd-journald[149]: Received SIGTERM from PID 1 (systemd-shutdow).
[ 4087.116729] systemd-shutdown[1]: Sending SIGKILL to remaining processes...
[ 4087.133466] systemd-shutdown[1]: Unmounting file systems.
[ 4087.142844] [1038]: Remounting '/' read-only in with options '(null)'.
[ 4087.170169] EXT4-fs (mmcblk0p1): re-mounted. Opts: (null)
[ 4087.183731] systemd-shutdown[1]: All filesystems unmounted.
[ 4087.189334] systemd-shutdown[1]: Deactivating swaps.
[ 4087.194880] systemd-shutdown[1]: All swaps deactivated.
[ 4087.200143] systemd-shutdown[1]: Detaching loop devices.
[ 4087.206352] systemd-shutdown[1]: All loop devices detached.
[ 4087.212126] systemd-shutdown[1]: Detaching DM devices.
[ 4087.237097] reboot: Power down
[ 4087.240199] ------------[ cut here ]------------
[ 4087.244836] WARNING: CPU: 0 PID: 1 at drivers/i2c/i2c-core.h:41 i2c_transfer+0xf8/0x104
[ 4087.252827] No atomic I2C transfer handler for 'i2c-0'
[ 4087.257955] Modules linked in:
[ 4087.261014] CPU: 0 PID: 1 Comm: systemd-shutdow Not tainted 5.4.0-rc3 #1
[ 4087.267703] Hardware name: Allwinner sun7i (A20) Family
[ 4087.272942] [<c010ed54>] (unwind_backtrace) from [<c010b488>] (show_stack+0x10/0x14)
[ 4087.280685] [<c010b488>] (show_stack) from [<c06a5f40>] (dump_stack+0x88/0x9c)
[ 4087.287906] [<c06a5f40>] (dump_stack) from [<c011dca8>] (__warn+0xb8/0xd4)
[ 4087.294776] [<c011dca8>] (__warn) from [<c011dd58>] (warn_slowpath_fmt+0x94/0xb8)
[ 4087.302254] [<c011dd58>] (warn_slowpath_fmt) from [<c0528bfc>] (i2c_transfer+0xf8/0x104)
[ 4087.310341] [<c0528bfc>] (i2c_transfer) from [<c0528c54>] (i2c_transfer_buffer_flags+0x4c/0x70)
[ 4087.319036] [<c0528c54>] (i2c_transfer_buffer_flags) from [<c0476d80>] (regmap_i2c_write+0x14/0x30)
[ 4087.328076] [<c0476d80>] (regmap_i2c_write) from [<c0472c1c>] (_regmap_raw_write_impl+0x580/0x62c)
[ 4087.337028] [<c0472c1c>] (_regmap_raw_write_impl) from [<c04735fc>] (regmap_write+0x3c/0x5c)
[ 4087.345459] [<c04735fc>] (regmap_write) from [<c047a2c8>] (axp20x_power_off+0x2c/0x38)
[ 4087.353373] [<c047a2c8>] (axp20x_power_off) from [<c013eb94>] (__do_sys_reboot+0x14c/0x1e0)
[ 4087.361719] [<c013eb94>] (__do_sys_reboot) from [<c0101000>] (ret_fast_syscall+0x0/0x54)
[ 4087.369798] Exception stack(0xef04ffa8 to 0xef04fff0)
[ 4087.374847] ffa0: 00000000 00000000 fee1dead 28121969 4321fedc 1c1b8900
[ 4087.383015] ffc0: 00000000 00000000 bea9dc38 00000058 00000000 000167c0 00000000 0002b7e8
[ 4087.391181] ffe0: 00027e50 bea9db4c 00013844 b6e9f9f0
[ 4087.396225] ---[ end trace b2b0f7c04e8d5bc8 ]---

View File

@ -0,0 +1,7 @@
DL kernel
choper une config
make ARCH=arm CROSS_COMPILE=arm-linux-gnu- -j8
make ARCH=arm CROSS_COMPILE=arm-linux-gnu-
make ARCH=arm CROSS_COMPILE=arm-linux-gnu- zImage modules dtbs
make ARCH=arm CROSS_COMPILE=arm-linux-gnu- INSTALL_MOD_PATH=./install/ modules_install

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,55 @@
CONFIG_PATH=~/workspaces/mageia4arm/platforms/bananaPro
git clone https://gitlab.denx.de/u-boot/u-boot
cd u-boot
make CROSS_COMPILE=arm-linux-gnu- Bananapro_defconfig
cp ${CONFIG_PATH}/UBOOT.config ./.config
#Just modify few unimportant things, like prompt, name, ...
make ARCH=arm CROSS_COMPILE=arm-linux-gnu- -j8
make ARCH=arm CROSS_COMPILE=arm-linux-gnu-
#cp ./u-boot.dtb ${CONFIG_PATH}/sun7i-a20-bananapro.dtb
cp -f ./u-boot.dtb ${CONFIG_PATH}/u-boot.dtb
cp -f ./arch/arm/dts/sun7i-a20-bananapro.dtb ${CONFIG_PATH}/sun7i-a20-bananapro.dtb
cp -f ./u-boot-sunxi-with-spl.bin ${CONFIG_PATH}/u-boot-sunxi-with-spl.bin
#Inside "specialFunctions.sh"
#dd if=${CONFIG_PATH}/u-boot-sunxi-with-spl.bin of=${DEVICE} bs=1024 seek=8
echo '
setenv KERNEL_FILE /boot/vmlinuz
setenv INIT_FILE /boot/initrd-5.4.0-rc3.img initrd-5.3.7.img
setenv DTB_FILE /boot/u-boot.dtb
setenv INIT_FILE /boot/initrd-5.3.7-desktop-4.mga7.img
setenv DTB_FILE /boot/sun7i-a20-bananapro.dtb
setenv KERNEL_ADDR 0x40008000
setenv INIT_ADDR 0x45000000
setenv DTB_ADDR 0x55000000
setenv INIT_ADDR -
ext4load mmc 0:1 ${KERNEL_ADDR} ${KERNEL_FILE}
ext4load mmc 0:1 ${INIT_ADDR} ${INIT_FILE}
ext4load mmc 0:1 ${DTB_ADDR} ${DTB_FILE}
setenv bootargs console=ttyS0,115200 disp.screen0_output_mode=EDID:1024x768p50 hdmi.audio=EDID:0
root=/dev/mmcblk0p1 rootfstype=ext4 elevator=deadline rootwait
#printenv
bootz ${KERNEL_ADDR} ${INIT_ADDR} ${DTB_ADDR}
bootz ${KERNEL_ADDR} - ${DTB_ADDR}
#Compile boot.scr : mkimage -C none -A arm -T script -d "${CONFIG_PATH}/boot.cmd" "${CONFIG_PATH}/boot.scr"
' >${CONFIG_PATH}/boot.cmd
mkimage -C none -A arm -T script -d ${CONFIG_PATH}/boot.cmd ${CONFIG_PATH}/boot.scr
mkimage -A arm -T ramdisk -C lzma -n initrd -d ./initrd-5.3.7-desktop-4.mga7.img ./initrd-5.3.7.img
removed :
#Compile boot.scr : mkimage -C none -A arm -T script -d "${CONFIG_PATH}/boot.cmd" "${CONFIG_PATH}/boot.scr"
# setenv DTB_FILE /usr/lib/linux-5.3.7-desktop-4.mga7/sun7i-a20-bananapro.dtb
# ext4load mmc 0:1 0x40008000 /boot/vmlinuz
# ext4load mmc 0:1 0x48000000 /boot/u-boot.dtb
# bootz 0x40008000 - 0x48000000

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,25 @@
#setenv KERNEL_FILE /boot/vmlinuz
setenv KERNEL_FILE /boot/vmlinuz-5.3.7-desktop-4.mga7
setenv INIT_FILE /boot/initrd
setenv DTB_FILE /boot/u-boot.dtb
#setenv DTB_FILE /boot/sun7i-a20-bananapro.dtb
setenv KERNEL_ADDR 0x40008000
setenv DTB_ADDR 0x45000000
setenv INIT_ADDR 0x48000000
#setenv INIT_ADDR -
ext4load mmc 0:1 ${KERNEL_ADDR} ${KERNEL_FILE}
ext4load mmc 0:1 ${DTB_ADDR} ${DTB_FILE}
ext4load mmc 0:1 ${INIT_ADDR} ${INIT_FILE}
setenv bootargs console=ttyS0,115200 disp.screen0_output_mode=EDID:1024x768p50 hdmi.audio=EDID:0 root=/dev/mmcblk0p1 rootfstype=ext4 elevator=deadline rootwait
#printenv
bootz ${KERNEL_ADDR} ${INIT_ADDR} ${DTB_ADDR}
#Compile boot.scr : mkimage -C none -A arm -T script -d "${CONFIG_PATH}/boot.cmd" "${CONFIG_PATH}/boot.scr"
# ext4load mmc 0:1 0x40008000 /boot/vmlinuz
# ext4load mmc 0:1 0x48000000 /boot/u-boot.dtb
# bootz 0x40008000 - 0x48000000

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,10 @@
menu title Welcome to Mageia-Minimal.
timeout 20
default Mageia
label Mageia
kernel /boot/vmlinuz
append root=UUID=<UUID> dwc_otg.lpm_enable=0 console=ttyS0,115200 kgdboc=ttyS0,115200 console=tty1 rootwait fsck.repair=1 8250.nr_uarts=1 elevator=deadline cma=256M\@512M audit=0
# fdtdir /usr/lib/<FDTDIR>
# initrd /boot/initrd

Some files were not shown because too many files have changed in this diff Show More