@MichaIng
There are 2 reports on our forum, reporting about missing directories/run/dietpi
as well as /run/php
after updating to v6.33.3
This leads to PHP failing on reboot as well as some error massages on login
https://dietpi.com/phpbb/viewtopic.php?t=8203&start=10
Strange thing, /run is not totally empty. It's just missing these 2 directories.
@MichaIng
should we keep this open?
Let's close for now, we have it in mind when a similar report happens, to in case further investigate.
Hello,
First of all, many thanks for all the great work you are doing on Dietpi !
After updating my dietpi to 6.33, I noticed an issue about php-fpm which prevents my system from running my nextcloud server. After some researches, I discover that I am in the same case as the two others users in the linked forum post.
However, I didn't succeed to fix it.
As I see your interest in investigating more about this issue, I let you know my current situation :
My folders /run/dietpi
&/run/php
are not created after boot.
In the banner, I had the following messages for instance :
LAN IP : mawk: cannot open /run/dietpi/.network (No such file or directory)
&
/boot/dietpi/func/dietpi-banner: line 223: /run/dietpi/.dietpi_motd: No such file or directory
I have the same output as the users in the link for requested commands :
> root@DietPi:/run# journalctl -u systemd-tmpfiles-setup
-- Logs begin at Thu 2020-11-26 22:14:04 CET, end at Sun 2020-11-29 22:24:01 CET. --
-- No entries --
> root@DietPi:/run# systemctl restart systemd-tmpfiles-setup
Failed to restart systemd-tmpfiles-setup.service: Operation refused, unit systemd-tmpfiles-setup.service may be requested by dependency only (it is configured to refuse manual start/stop).
See system logs and 'systemctl status systemd-tmpfiles-setup.service' for details.
> root@DietPi:/run# systemctl status systemd-tmpfiles-setup.service
● systemd-tmpfiles-setup.service - Create Volatile Files and Directories
Loaded: loaded (/lib/systemd/system/systemd-tmpfiles-setup.service; static; vendor preset: enabled)
Active: inactive (dead)
Docs: man:tmpfiles.d(5)
man:systemd-tmpfiles(8)
Many thanks for your report. The issue appeared after first reboot after the update and another reboot doesn't fix it?
The service is pulled in by sysinit.target
. Can you show:
systemctl status sysinit.target
Probably some APT package upgrade is responsible 🤔.
Hello,
Here is the result of the command you asked me :
root@DietPi:/home/dietpi# systemctl status sysinit.target
● sysinit.target - System Initialization
Loaded: loaded (/lib/systemd/system/sysinit.target; static; vendor preset: enabled)
Active: active since Tue 2020-12-01 23:36:45 CET; 4min 55s ago
Docs: man:systemd.special(7)
déc. 01 23:36:45 DietPi systemd[1]: Reached target System Initialization.
Unfortunately, I don't have an exact memory about when it happened. So, I looked for when the issue appeared.
As it is mentioned in the first post. Both /run/dietpi
& /run/php
are affected.
Then, I found when php7.3-fpm logged some errors. I may have found something relevant, I paste the log below.
Indeed, there was APT package upgrade near the error, I also paste my APT history log when PHP error appeared.
I hope these informations would be interesting and may have a relevant clue.
PHP7.3-FPM LOG
[24-Nov-2020 23:58:58] NOTICE: fpm is running, pid 24897
[24-Nov-2020 23:58:58] NOTICE: ready to handle connections
[24-Nov-2020 23:58:58] NOTICE: systemd monitor interval set to 10000ms
[25-Nov-2020 00:00:55] NOTICE: Terminating ...
[25-Nov-2020 00:00:55] NOTICE: exiting, bye-bye!
[25-Nov-2020 00:03:00] ERROR: unable to bind listening socket for address '/run/php/php7.3-fpm.sock': No such file or directory (2)
[25-Nov-2020 00:03:00] ERROR: FPM initialization failed
[25-Nov-2020 00:06:03] ERROR: unable to bind listening socket for address '/run/php/php7.3-fpm.sock': No such file or directory (2)
[25-Nov-2020 00:06:03] ERROR: FPM initialization failed
[25-Nov-2020 00:07:51] ERROR: unable to bind listening socket for address '/run/php/php7.3-fpm.sock': No such file or directory (2)
[25-Nov-2020 00:07:51] ERROR: FPM initialization failed
APT HISTORY LOG
Start-Date: 2020-11-24 11:45:59
Commandline: apt-get upgrade
Upgrade: libldap-2.4-2:arm64 (2.4.47+dfsg-3+deb10u3, 2.4.47+dfsg-3+deb10u4), libldap-common:arm64 (2.4.47+dfsg-3+deb10u3, 2.4.47+dfsg-3+deb10u4)
End-Date: 2020-11-24 11:46:03
Start-Date: 2020-11-24 23:52:53
Commandline: apt-get -qq --allow-change-held-packages purge python3-certbot-nginx certbot
Requested-By: dietpi (1000)
Purge: certbot:arm64 (0.31.0-1), python-certbot-nginx:arm64 (0.31.0-1), python3-certbot-nginx:arm64 (0.31.0-1)
End-Date: 2020-11-24 23:53:02
Start-Date: 2020-11-24 23:53:16
Commandline: apt-get -qq --purge autoremove
Requested-By: dietpi (1000)
Purge: python3-zope.interface:arm64 (4.3.2-1+b2), python3-distutils:arm64 (3.7.3-1), python3-configargparse:arm64 (0.13.0-1), python3-josepy:arm64 (1.1.0-2), python3-asn1crypto:arm64 (0.24.0-1), python3-urllib3:arm64 (1.24.1-1), python3-zope.hookable:arm64 (4.0.4-4+b4), python3-pbr:arm64 (4.2.0-5), python3-idna:arm64 (2.6-1), python3-zope.event:arm64 (4.2.0-1), python3-six:arm64 (1.12.0-1), python3-zope.component:arm64 (4.3.0-1), python3-mock:arm64 (2.0.0-4), python3-requests:arm64 (2.21.0-1), python3-pyparsing:arm64 (2.2.0+dfsg1-2), python3-future:arm64 (0.16.0-1), python3-cryptography:arm64 (2.6.1-3+deb10u2), python3-cffi-backend:arm64 (1.12.2-1), python3-acme:arm64 (0.31.0-2), python3-configobj:arm64 (5.0.6-3), python3-lib2to3:arm64 (3.7.3-1), python3-openssl:arm64 (19.0.0-1), python3-rfc3339:arm64 (1.1-1), python3-requests-toolbelt:arm64 (0.8.0-1), python3-certbot:arm64 (0.31.0-1), python3-tz:arm64 (2019.1-1), python3-certifi:arm64 (2018.8.24-1), python3-parsedatetime:arm64 (2.4-2), python3-chardet:arm64 (3.0.4-3), python3-setuptools:arm64 (40.8.0-1)
End-Date: 2020-11-24 23:53:31
Start-Date: 2020-11-24 23:54:18
Commandline: apt-get -qq --allow-change-held-packages purge php-apcu php-common php-igbinary php-imagick php-redis php7.3-bcmath php7.3-cli php7.3-common php7.3-curl php7.3-fpm php7.3-gd php7.3-intl php7.3-json php7.3-mbstring php7.3-mysql php7.3-opcache php7.3-readline php7.3-xml php7.3-zip libapache2-mod-php7.3
Requested-By: dietpi (1000)
Purge: php7.3-xml:arm64 (7.3.24-3+0~20201103.72+debian10~1.gbp945915), php7.3-zip:arm64 (7.3.24-3+0~20201103.72+debian10~1.gbp945915), php7.3-mbstring:arm64 (7.3.24-3+0~20201103.72+debian10~1.gbp945915), php7.3-readline:arm64 (7.3.24-3+0~20201103.72+debian10~1.gbp945915), php-igbinary:arm64 (3.1.2+2.0.8-1+0~20200518.16+debian10~1.gbp1a098b), php-common:arm64 (2:79+0~20201020.27+debian10~1.gbp95ec92), php7.3:arm64(7.3.24-3+0~20201103.72+debian10~1.gbp945915), php7.3-json:arm64 (7.3.24-3+0~20201103.72+debian10~1.gbp945915), php7.3-mysql:arm64 (7.3.24-3+0~20201103.72+debian10~1.gbp945915), php7.3-gd:arm64 (7.3.24-3+0~20201103.72+debian10~1.gbp945915), php7.3-curl:arm64 (7.3.24-3+0~20201103.72+debian10~1.gbp945915), php7.3-common:arm64 (7.3.24-3+0~20201103.72+debian10~1.gbp945915), php7.3-intl:arm64 (7.3.24-3+0~20201100201103.72+debian10~1.gbp945915), php7.3-bcmath:arm64 (7.3.24-3+0~20201103.72+debian10~1.gbp945915), php7.3-opcache:arm64 (7.3.24-3+0~20201103.72+debian10~1.gbp945915), php7.3-cli:arm64 (7.3.24-3+0~20201103.72+debian10~1.gbp945915), php7.3-fpm:arm64 (7.3.24-3+0~20201103.72+debian10~1.gbp945915), php-redis:arm64 (5.3.1+4.3.0-1+0~20200708.25+debian10~1.gbp800f71), php-imagick:arm64 (3.4.4-4+0~20200804.15+debian10~1.gbp2925ae), libapache2-mod-php7.3:arm64 (7.3.24-3+0~20201103.72+debian10~1.gbp945915), php-apcu:arm64 (5.1.18+4.0.11-1+0~20200518.14+debian10~1.gbpa99079)
End-Date: 2020-11-24 23:54:47
Start-Date: 2020-11-24 23:55:01
Commandline: apt-get -qq --purge autoremove
Requested-By: dietpi (1000)
Purge: libx265-165:arm64 (2.9-4), libzip4:arm64 (1.5.1-4+0~20190318173229.9+stretch~1.gbp333132), libaprutil1:arm64 (1.6.1-4), libbrotli1:arm64 (1.0.7-2), libmagickwand-6.q16-6:arm64 (8:6.9.10.23+dfsg-2.1+deb10u1), libaprutil1-dbd-sqlite3:arm64 (1.6.1-4), libnuma1:arm64 (2.0.12-1), libmagic1:arm64 (1:5.35-4+deb10u1), libltdl7:arm64 (2.4.6-9), libapr1:arm64 (1.6.5-1+b1), liblqr-1-0:arm64 (0.4.2-2.1), libaprutil1-ldap:arm64 (1.6.1-4), libmagic-mgc:arm64 (1:5.35-4+deb10u1), liblua5.2-0:arm64 (5.2.4-1.1+b2), libwebpmux3:arm64 (0.6.1-2), libsodium23:arm64 (1.0.18-1+0~20191009.1+debian10~1.gbpb6823f), libmagickcore-6.q16-6:arm64 (8:6.9.10.23+dfsg-2.1+deb10u1), libfftw3-double3:arm64 (3.3.8-2), apache2-bin:arm64 (2.4.38-3+deb10u4), libheif1:arm64 (1.3.2-2~deb10u1), libde265-0:arm64 (1.0.3-1+b1), libxext6:arm64 (2:1.3.3-1+b2), imagemagick-6-common:arm64 (8:6.9.10.23+dfsg-2.1+deb10u1)
End-Date: 2020-11-24 23:55:04
Start-Date: 2020-11-24 23:56:47
Commandline: apt-get -qq upgrade
Requested-By: dietpi (1000)
Upgrade: libkrb5-3:arm64 (1.17-3, 1.17-3+deb10u1), libgssapi-krb5-2:arm64 (1.17-3, 1.17-3+deb10u1), libk5crypto3:arm64 (1.17-3, 1.17-3+deb10u1), libkrb5support0:arm64 (1.17-3, 1.17-3+deb10u1)
End-Date: 2020-11-24 23:56:49
Start-Date: 2020-11-24 23:57:14
Commandline: apt-get -qq --allow-change-held-packages install php7.3-fpm php7.3-apcu php7.3-curl php7.3-gd php7.3-mbstring php7.3-xml php7.3-zip php7.3-mysql php7.3-redis
Requested-By: dietpi (1000)
Install: php7.3-xml:arm64 (7.3.24-3+0~20201103.72+debian10~1.gbp945915), php7.3-zip:arm64 (7.3.24-3+0~20201103.72+debian10~1.gbp945915), libzip4:arm64 (1.5.1-4+0~20190318173200.9+buster~1.gbp333132, automatic), php7.3-mbstring:arm64 (7.3.24-3+0~20201103.72+debian10~1.gbp945915), php7.3-readline:arm64 (7.3.24-3+0~20201103.72+debian10~1.gbp945915, automatic), php-igbinary:arm64 (3.1.2+2.0.8-1+0~20200518.16+debian10~1.gbp1a098b, automatic), php-common:arm64 (2:79+0~20201020.27+debian10~1.gbp95ec92, automatic), php7.3-json:arm64 (7.3.24-3+0~20201103.72+debian10~1.gbp945915, automatic), php7.3-mysql:arm64 (7.3.24-3+0~2001103.72+debian10~1.gbp945915), php7.3-gd:arm64 (7.3.24-3+0~20201103.72+debian10~1.gbp945915), php7.3-curl:arm64 (7.3.24-3+0~20201103.72+debian10~1.gbp945915), libmagic1:arm64 (1:5.35-4+deb10u1, automatic), php7.3-cli:arm64 (7.3.24-3+0~20201103.72+debian10~1.gbp945915, automatic), php7.3-fpm:arm64 (7.3.24-3+0~20201103.72+debian10~1.gbp945915), libsodium23:arm64 (1.0.18-1+0~20191009.1+debian10~1.gbpb6823f, automatic), php-redis:arm64 (5.3.1+4.3.0-1+0~20200708.25+debian10~1.gbp800f71), php-apcu:arm64 (5.1.18+4.0.11-1+0~20200518.14+debian10~1.gbpa99079)
End-Date: 2020-11-24 23:58:58
Start-Date: 2020-11-24 23:59:53
Commandline: apt-get -qq --allow-change-held-packages install certbot python3-certbot-nginx
Requested-By: dietpi (1000)
Install: python3-zope.interface:arm64 (4.3.2-1+b2, automatic), python3-distutils:arm64 (3.7.3-1, automatic), python3-configargparse:arm64 (0.13.0-1, automatic), python3-josepy:arm64 (1.1.0-2, automatic), python3-asn1crypto:arm64 (0.24.0-1, automatic), python3-urllib3:arm64 (1.24.1-1, automatic), certbot:arm64 (0.31.0-1), python3-zope.hookable:arm64 (4.0.4-4+b4, automatic), python3-pbr:arm64 (4.2.0-5, automatic), python3-idna:arm64 (2.6-1, automatic), python3-zope.event:arm64 (4.2.0-1, automatic), python3-six:arm64 (1.12.0-1, automatic), python3-zope.component:arm64 (4.3.0-1, automatic), python3-mock:arm64 (2.0.0-4, automatic), python3-requests:arm64 (2.21.0-1, automatic), python3-pyparsing:arm64 (2.2.0+dfsg1-2, automatic), python3-future:arm64 (0.16.0-1, automatic), python3-cryptography:arm64 (2.6.1-3+deb10u2, automatic), python3-cffi-backend:arm64 (1.12.2-1, automatic), python3-acme:arm64 (0.31.0-2, automatic), python3-configobj:arm64 (5.0.6-3, automatic), python3-lib2to3:arm64 (3.7.3-1, automatic), python3-openssl:arm64 (19.0.0-1, automatic), python3-rfc3339:arm64 (1.1-1, automatic), python3-requests-toolbelt:arm64 (0.8.0-1, automatic), python3-certbot:arm64 (0.31.0-1, automatic), python3-tz:arm64 (2019.1-1, automatic), python3-certbot-nginx:arm64 (0.31.0-1), python3-certifi:arm64 (2018.8.24-1, automatic), python3-parsedatetime:arm64 (2.4-2, automatic), python3-chardet:arm64 (3.0.4-3, automatic), python3-setuptools:arm64 (40.8.0-1, automatic)
End-Date: 2020-11-25 00:00:55
Start-Date: 2020-11-25 00:09:59
Commandline: apt-get install --reinstall python-pkg-resources
Requested-By: dietpi (1000)
Reinstall: python-pkg-resources:arm64 (40.8.0-1)
Error: Sub-process /usr/bin/dpkg returned an error code (1)
End-Date: 2020-11-25 00:09:59
Start-Date: 2020-11-25 00:11:27
Commandline: apt-get install python-setuptools
Requested-By: dietpi (1000)
Install: python-setuptools:arm64 (40.8.0-1)
Error: Sub-process /usr/bin/dpkg returned an error code (1)
End-Date: 2020-11-25 00:11:28
Start-Date: 2020-11-26 15:30:41
Commandline: apt-get -qq --purge autoremove
Error: Sub-process /usr/bin/dpkg returned an error code (1)
End-Date: 2020-11-26 15:30:41
PHP-FPM fails since /run/php
does not exist, so this is expected. You are on a Stretch system (echo $G_DISTRO_NAME
), right? I'll do a test PHP install there, probably the tmpfiles configuration by the PHP package is malformed so that systemd-tmpfiles-setup
fails or stops at that point. I'm just wondering why there is not single log entry, no even that the systemd unit is about to be starting 🤔.
Ah sorry no, it's a Buster system. But why are you installing PHP7.3 packages from sury.org repository then and there are even a few Stretch packages among them 😕. Can you please paste:
for i in /etc/apt/sources.list{,.d/*.list}
echo "File: $i"
cat "$i"
done
The v7.3.24 package version is not available anymore, but I checked the v7.3.25 one and found that the tmpfiles.d entry has leading white spaces, which I never saw in any other case. The official Debian package looks the same (sury.org maintainer = Debian PHP package maintainer), even the Stretch package does, so there seems to be no issue with it. However, could you still run and paste the following to be sure:
cat /usr/lib/tmpfiles.d/php7.3-fpm.conf
systemd-tmpfiles --create /usr/lib/tmpfiles.d/php7.3-fpm.conf
When I installed dietpi, it was a stretch system. Then, I upgraded it to Buster system last summer. That may explain why I should have both stretch & buster. I followed the official guide of Debian to do the upgrade.
Here is the result of the commands:
root@DietPi:/home/dietpi# for i in /etc/apt/sources.list{,.d/*.list}; do
> echo "File: $i"
> cat "$i"
> echo
> echo
> done
File: /etc/apt/sources.list
# deb https://deb.debian.org/debian/ stretch main contrib non-free
# deb https://deb.debian.org/debian/ stretch-updates main contrib non-free
# deb https://deb.debian.org/debian-security/ stretch/updates main contrib non-free
# deb https://deb.debian.org/debian/ stretch-backports main contrib non-free
# deb http://ftp.debian.org/debian/ stretch-backports main
# deb-src deb http://ftp.debian.org/debian/ stretch-backports main
# deb https://deb.torproject.org/torproject.org stretch main
# deb-src https://deb.torproject.org/torproject.org stretch main
deb https://deb.debian.org/debian/ buster main contrib non-free
deb https://deb.debian.org/debian/ buster-updates main contrib non-free
deb https://deb.debian.org/debian-security/ buster/updates main contrib non-free
deb https://deb.debian.org/debian/ buster-backports main contrib non-free
deb-src http://deb.debian.org/debian/ buster-backports main
File: /etc/apt/sources.list.d/dietpi-php.list
# deb https://packages.sury.org/php/ stretch main
deb https://packages.sury.org/php/ buster main
File: /etc/apt/sources.list.d/meveric-all-C2.list
deb https://dietpi.com/meveric all c2
File: /etc/apt/sources.list.d/meveric-all-main.list
deb https://dietpi.com/meveric all main
File: /etc/apt/sources.list.d/meveric-all-testing.list
deb https://dietpi.com/meveric all testing
File: /etc/apt/sources.list.d/meveric-stretch-backports.list
#deb https://dietpi.com/meveric stretch backports
deb https://dietpi.com/meveric buster backports
File: /etc/apt/sources.list.d/meveric-stretch-main.list
# deb https://dietpi.com/meveric stretch main
deb https://dietpi.com/meveric buster main
root@DietPi:/home/dietpi# cat /usr/lib/tmpfiles.d/php7.3-fpm.conf
#Type Path Mode UID GID Age Argument
d /run/php 0755 www-data www-data - -
root@DietPi:/home/dietpi# systemd-tmpfiles --create /usr/lib/tmpfiles.d/php7.3-fpm.conf
root@DietPi:/home/dietpi#
Okay, that is all fine. I also see that the only case of a listed Stretch package was for autoremoval, so an obsolete left library.
tmpfiles looks fine, command succeeded, /run/php
should hence exist and systemctl restart php7.3-fpm
should succeed now.
However, this extremely essential task must succeed during boot reliably.
Yes, php7.3-fpm is working now.
root@DietPi:/home/dietpi# systemctl restart php7.3-fpm
root@DietPi:/home/dietpi# systemctl status php7.3-fpm
● php7.3-fpm.service - The PHP 7.3 FastCGI Process Manager
Loaded: loaded (/lib/systemd/system/php7.3-fpm.service; disabled; vendor preset: enabled)
Active: active (running) since Thu 2020-12-03 14:22:56 CET; 7s ago
Docs: man:php-fpm7.3(8)
Process: 1265 ExecStartPost=/usr/lib/php/php-fpm-socket-helper install /run/php/php-fpm.sock /etc/php/7.3/fpm/pool.d/www.conf 73 (code=exited, status=0/SUCCESS)
Main PID: 1259 (php-fpm7.3)
Status: "Ready to handle connections"
Memory: 8.0M
CGroup: /system.slice/php7.3-fpm.service
├─1259 php-fpm: master process (/etc/php/7.3/fpm/php-fpm.conf)
├─1261 php-fpm: pool www
├─1262 php-fpm: pool www
├─1263 php-fpm: pool www
└─1264 php-fpm: pool www
déc. 03 14:22:56 DietPi systemd[1]: Starting The PHP 7.3 FastCGI Process Manager...
déc. 03 14:22:56 DietPi systemd[1]: Started The PHP 7.3 FastCGI Process Manager.
Unfortunately, after reboot the folder has disappeared again :/
root@DietPi:~# systemctl status php7.3-fpm
● php7.3-fpm.service - The PHP 7.3 FastCGI Process Manager
Loaded: loaded (/lib/systemd/system/php7.3-fpm.service; disabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Thu 2020-12-03 14:25:29 CET; 1min 7s ago
Docs: man:php-fpm7.3(8)
Process: 1622 ExecStart=/usr/sbin/php-fpm7.3 --nodaemonize --fpm-config /etc/php/7.3/fpm/php-fpm.conf (code=exited, status=78)
Process: 1863 ExecStopPost=/usr/lib/php/php-fpm-socket-helper remove /run/php/php-fpm.sock /etc/php/7.3/fpm/pool.d/www.conf 73 (code=exited, status=0/SUCCESS)
Main PID: 1622 (code=exited, status=78)
déc. 03 14:25:28 DietPi systemd[1]: Starting The PHP 7.3 FastCGI Process Manager...
déc. 03 14:25:29 DietPi php-fpm7.3[1622]: [03-Dec-2020 14:25:29] ERROR: unable to bind listening socket for address '/run/php/php7.3-fpm.sock': No such file or directory (2)
déc. 03 14:25:29 DietPi php-fpm7.3[1622]: [03-Dec-2020 14:25:29] ERROR: FPM initialization failed
déc. 03 14:25:29 DietPi systemd[1]: php7.3-fpm.service: Main process exited, code=exited, status=78/CONFIG
déc. 03 14:25:29 DietPi systemd[1]: php7.3-fpm.service: Failed with result 'exit-code'.
déc. 03 14:25:29 DietPi systemd[1]: Failed to start The PHP 7.3 FastCGI Process Manager.
Let's see:
journalctl -u systemd-tmpfiles-setup
systemctl show -p WantedBy systemd-tmpfiles-setup
ls -l /lib/systemd/system/sysinit.target.wants/systemd-tmpfiles-setup.service
This might break some running processes, but you could also try to manually call the command:
/bin/systemd-tmpfiles --verbose --create --remove --boot --exclude-prefix=/dev
I'm just not sure if it prints any error output, it has no verbose flag at least.
Here it is is :
root@DietPi:/var/log# journalctl -u systemd-tmpfiles-setup
-- Logs begin at Thu 2020-12-03 22:56:31 CET, end at Thu 2020-12-03 22:57:49 CET. --
-- No entries --
root@DietPi:/var/log# systemctl show -p WantedBy systemd-tmpfiles-setup
WantedBy=
root@DietPi:/var/log# ls -l /lib/systemd/system/sysinit.target.wants/systemd-tmpfiles-setup.service
ls: impossible d'accéder à '/lib/systemd/system/sysinit.target.wants/systemd-tmpfiles-setup.service': Aucun fichier ou dossier de ce type
md5-df7a8a42dfc45a6bed22ceb12e6ac299
root@DietPi:/# /bin/systemd-tmpfiles --create --remove --boot --exclude-prefix=/dev
[/usr/lib/tmpfiles.d/fail2ban-tmpfiles.conf:1] Line references path below legacy directory /var/run/, updating /var/run/fail2ban → /run/fail2ban; please update the tmpfiles.d/ drop-in file.
After these commands, I checked the /run
folder and /run/dietpi
exists now and it is empty.
/lib/systemd/system/sysinit.target.wants/systemd-tmpfiles-setup.service
is missing, that is the reason. So now we need to find out why it is missing as it is a fixed part of the systemd
package and should never ever be removed for any reason: https://packages.debian.org/buster/systemd
Check via:
dpkg -S /lib/systemd/system/sysinit.target.wants/systemd-tmpfiles-setup.service
which should show
systemd: /lib/systemd/system/sysinit.target.wants/systemd-tmpfiles-setup.service
means that the package systemd
contains this file.
First of all to restore it:
ln -s ../systemd-tmpfiles-setup.service /lib/systemd/system/sysinit.target.wants/systemd-tmpfiles-setup.service
I have sadly not really an idea how to debug this 🤔, I mean how to find out what removed that file (or better symlink).
and it seems to be an extrem rar case. According statistics, we have more than 5.5K systems running v6.33.3 and 3 reports on this topic only 🤔
There was the originating reports in the forum, although strangely those solved themselves with another reboot 🤔. I just don't think it is a coincidence, but still not sure if/how to proceed with this. I'll go through other bug report uploads to check for other cases, at least.
Btw, 5.5k systems from the 14% which do actually send survey data. So it's more like ~39k 😉.
well that's the thing with statistics.Never trust them as long as your are not the creator 🤣
I'll go through other bug report uploads to check for other cases, at least.
good one, let's see if there is something.
Especially with those numbers one has to be careful anyway, as they accumulate (until manually cutting the old end at new year) while we don't know how many systems are not used anymore or have been reinstalled meanwhile 😄.
I want to implement an optional monthly upload and promote dietpi-survey
a bid by times to get more accurate and recent data, and remove everything older than a month then. Since we do not even have any access logs enabled + SFTP upload bypasses Cloudflare and the only identifying UUID is a randomly generated string not tied to any hardware info, and the upload file is usually less than a KiB (based on amount of installed software), I hope users agree that there is no privacy impact. I just know from myself that I hit "No" to any such user experience program automatically, just started recently to question this reflex and started to agree at least for some open-source projects where the exact way and data being uploaded is shown transparently (Nextcloud as a shiny example IMO).
Hello,
I did what you mention in your last post. And I get the result you expected
dpkg -S /lib/systemd/system/sysinit.target.wants/systemd-tmpfiles-setup.service
systemd: /lib/systemd/system/sysinit.target.wants/systemd-tmpfiles-setup.service
Regarding the second command it tells me it can't create the link as the filesystem is read only.
Now, I explain you the issue which happened since last time.
My pihole service had an unexpected behavior as it failed to connect to my database and it tried again every miliseconds and wrote it down my log...
[2020-12-03 14:49:29.584 10033M] dbquery("UPDATE network SET numQueries = (SELECT SUM(numQueries) FROM network WHERE hwaddr = 'xxxxxx' COLLATE NOCASE) WHERE id = 15;") called but database is not available!
[2020-12-03 14:49:29.584 10033M] dbquery("DELETE FROM network WHERE hwaddr = 'xxxxxx' COLLATE NOCASE AND id != 15;") called but database is not available!
[2020-12-03 14:49:29.585 10033M] dbquery("UPDATE network SET firstSeen = (SELECT MIN(firstSeen) FROM network WHERE hwaddr = 'xxxxxx' COLLATE NOCASE) WHERE id = 15;") called but database is not available!
[2020-12-03 14:49:29.585 10033M] dbquery("UPDATE network SET numQueries = (SELECT SUM(numQueries) FROM network WHERE hwaddr = 'xxxxxx' COLLATE NOCASE) WHERE id = 15;") called but database is not available!
[2020-12-03 14:49:29.585 10033M] dbquery("DELETE FROM network WHERE hwaddr = 'xxxxxx' COLLATE NOCASE AND id != 15;") called but database is not available!
[2020-12-03 14:49:29.585 10033M] dbquery("UPDATE network SET firstSeen = (SELECT MIN(firstSeen) FROM network WHERE hwaddr = 'xxxxxx' COLLATE NOCASE) WHERE id = 15;") called but database is not available!
[2020-12-03 14:49:29.585 10033M] dbquery("UPDATE network SET numQueries = (SELECT SUM(numQueries) FROM network WHERE hwaddr = 'xxxxxx' COLLATE NOCASE) WHERE id = 15;") called but database is not available!
[2020-12-03 14:49:29.585 10033M] dbquery("DELETE FROM network WHERE hwaddr = 'xxxxxx' COLLATE NOCASE AND id != 15;") called but database is not available!
[2020-12-03 14:49:29.585 10033M] dbquery("UPDATE network SET firstSeen = (SELECT MIN(firstSeen) FROM network WHERE hwaddr = 'xxxxxx' COLLATE NOCASE) WHERE id = 15;") called but database is not available!
[2020-12-03 14:49:29.585 10033M] dbquery("UPDATE network SET numQueries = (SELECT SUM(numQueries) FROM network WHERE hwaddr = 'xxxxxx' COLLATE NOCASE) WHERE id = 15;") called but database is not available!
[2020-12-03 14:49:29.585 10033M] dbquery("DELETE FROM network WHERE hwaddr = 'xxxxxx' COLLATE NOCASE AND id != 15;") called but database is not available!
[2020-12-03 14:49:29.585 10033M] dbquery("UPDATE network SET firstSeen = (SELECT MIN(firstSeen) FROM network WHERE hwaddr = 'xxxxxx' COLLATE NOCASE) WHERE id = 15;") called but database is not available!
[2020-12-03 14:49:29.585 10033M] dbquery("UPDATE network SET numQueries = (SELECT SUM(numQueries) FROM network WHERE hwaddr = 'xxxxxx' COLLATE NOCASE) WHERE id = 15;") called but database is not available!
[2020-12-03 14:49:29.585 10033M] dbquery("DELETE FROM network WHERE hwaddr = 'xxxxxx' COLLATE NOCASE AND id != 15;") called but database is not available!
[2020-12-03 14:49:29.585 10033M] dbquery("UPDATE network SET firstSeen = (SELECT MIN(firstSeen) FROM network WHERE hwaddr = 'xxxxxx' COLLATE NOCASE) WHERE id = 15;") called but database is not available!
[2020-12-03 14:49:29.585 10033M] dbquery("UPDATE network SET numQueries = (SELECT SUM(numQueries) FROM network WHERE hwaddr = 'xxxxxx' COLLATE NOCASE) WHERE id = 15;") called but database is not available!
[2020-12-03 14:49:29.585 10033M] dbquery("DELETE FROM network WHERE hwaddr = 'xxxxxx' COLLATE NOCASE AND id != 15;") called but database is not available!
[2020-12-03 14:49:29.585 10033M] dbquery("UPDATE network SET firstSeen = (SELECT MIN(firstSeen) FROM network WHERE hwaddr = 'xxxxxx' COLLATE NOCASE) WHERE id = 15;") called but database is not available!
[2020-12-03 14:49:29.585 10033M] dbquery("UPDATE network SET numQueries = (SELECT SUM(numQueries) FROM network WHERE hwaddr = 'xxxxxx' COLLATE NOCASE) WHERE id = 15;") called but database is not available!
[2020-12-03 14:49:29.585 10033M] dbquery("DELETE FROM network WHERE hwaddr = 'xxxxxx' COLLATE NOCASE AND id != 15;") called but database is not available!
[2020-12-03 14:49:29.586 10033M] dbquery("UPDATE network SET firstSeen = (SELECT MIN(firstSeen) FROM network WHERE hwaddr = 'xxxxxx' COLLATE NOCASE) WHERE id = 15;
...until the pihole-FTL.log file filled my whole sd care, ending with a 21 GB size.
As I discovered that afterwards, when I saw that my freespace (Rootfs) was only 4 kB in the banner, I did a reboot because it seemed very rare.
Then, Dietpi-login didn't start anymore and I discovered that my SD card was on read-only mode.
To solve that issue, I mounted the SD card partition in rw mode. I runned fsck on another linux system to check if there was any error and I deleted the 21 gb log file.
_Results of fsck:_
/rootfs was ok
/boot was damaged (log below)
ubuntu@ubuntu:~$ sudo fsck /dev/mmcblk0p1
fsck de util-linux 2.34
fsck.fat 4.1 (2017-01-24)
0x25: Dirty bit is set. Fs was not properly unmounted and some data may be corrupt.
1) Remove dirty bit
2) No action
? 1)
Cluster 2062 out of range (1). Setting to EOF.
Cluster 2318 out of range (1). Setting to EOF.
Cluster 2574 out of range (1). Setting to EOF.
Cluster 2830 out of range (1). Setting to EOF.
Cluster 3086 out of range (1). Setting to EOF.
Cluster 3342 out of range (1). Setting to EOF.
Cluster 3598 out of range (1). Setting to EOF.
Reclaimed 3157 unused clusters (6465536 bytes).
Perform changes ? (y/n) y
/dev/mmcblk0p1: 87 files, 40940/65399 clusters
However, these actions don't work and my system remains unable to execute Dietpi-login correctly and my SD card is mounted read only mode
That sounds very similar to an endless logging loop I faced with a newly installed phpBB extension for automated daily database backup: https://github.com/david63/autodbbackup/pull/8
A presumably changed behaviour in PHP7.4, a not well implemented while loop check without exit path in case of failure (instead of regular negative result) and our server ended up with a 100 GiB log file. Luckily the VPS somehow didn't claim that space from the disk. Not sure if there is some smart compression (unlimited repeating identical log) or long deferred allocation the reason, but it saved us two times from a server crash until I found out the exact issue with a solution for the extension 😄.
Please report your issue to Pi-hole (forum or GitHub) as there should be an exit path in case of failed database access instead of such an endless loop. _(link me @MichaIng on the forum, and/or add the #dietpi tag)_
Okay to solve your issue, the first thing is to get rid of any file system errors. Please redo:
dosfsck -a /dev/mmcblk0p1
sync
until there is no further error found. I know that sometimes this does not work somehow, then a forced fsck on reboot might help: echo > /forcefsck
Check result via:
journalctl -t systemd-fsck
cat /run/initramfs/fsck.log
_(Most likely the second file does not exist on your RPi, but for completeness in case of non-RPi users read this.)_
The above method to check on boot also forces the check regardless it the file system has been marked dirty or not. When checking on an external system, assure to use e2fsck -f /dev/...
with the -f
flag to force a whole scan.
I created the report on Pihole github : Issue link
root@DietPi:/lib/systemd/system# dosfsck -a /dev/mmcblk0p1
fsck.fat 4.1 (2017-01-24)
/dev/mmcblk0p1: 87 files, 40940/65399 clusters
root@DietPi:/lib/systemd/system# sync
root@DietPi:/lib/systemd/system# echo > /forcefsck
-bash: /forcefsck: Système de fichiers accessible en lecture seulement
md5-9fbe4da49b88e7adfe9eef5842acf484
root@DietPi:/# cat /run/initramfs/fsck.log
Log of fsck -C -y -V -t ext4 /dev/mmcblk0p2
Thu Jan 1 00:00:02 1970
fsck from util-linux 2.33.1
[/sbin/fsck.ext4 (1) -- /dev/mmcblk0p2] fsck.ext4 -y -C0 /dev/mmcblk0p2
e2fsck 1.44.5 (15-Dec-2018)
rootfs: clean, 215788/1941504 files, 2236377/7758720 blocks
Thu Jan 1 00:00:02 1970
I also did e2fsck -f
on the mmcblk0p2 and it found some orphaned inode that I repaired.
root@DietPi:/lib/systemd/system# echo > /forcefsck
-bash: /forcefsck: Système de fichiers accessible en lecture seulement
Ah yes of course this cannot work as long as the file system is read-only.
My dietpi is running on an Odroid C2, so I have the non-Rpi file :)
Ah okay 👍, I think I mixed it up with another issue report.
I also did
e2fsck -f
on the mmcblk0p2 and it found some orphaned inode that I repaired.
Did you repeat it until no further error was found?
After having fixed all file system errors, does the system boot again in read-write mode? Else dmesg
and journalctl
are the tools to check boot logs. Or:
systemctl status '-.mount'
Hello,
Yes I repeated the e2fsck -f
and everything is fine on that point.
My system keep booting in readonly mode.
I paste the dmesg
log below if it can help.
root@DietPi:/var/log# systemctl status -- -.mount
● -.mount - /
Loaded: loaded
Active: active (mounted) since Thu 2019-02-14 11:11:58 CET; 9h left
Where: /
What: /dev/mmcblk0p2
Warning: Journal has been rotated since unit was started. Log output is incomplete or unavailable.
By the way, my system doesn't have the right date
The following match with 22:55 UTC + 1 ; 06 december 2020.
root@DietPi:/var/log/supervisor# date
Thursday 14 February 2019, 01:56:16 (UTC+0100)
I tried to pick up what may be the most relevant :
`[ 0.000000] Kernel command line: root=/dev/mmcblk0p2 rootwait ro console=tty0 no_console_suspend hdmimode=2160p60hz m_bpp=32 vout= fsck.repair=yes net.ifnames=0 elevator=noop disablehpd=true`
[ 2.823117] EXT4-fs (mmcblk0p2): mounted filesystem without journal. Opts: (null)
Full dmesg
Logfile attached. Click to expand!
root@DietPi:/home/dietpi# dmesg
[ 0.000000] Initializing cgroup subsys cpuset
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Initializing cgroup subsys cpuacct
[ 0.000000] Linux version 3.16.85+ (root@odroid-stretch64) (gcc version 6.3.0 20170516 (Debian 6.3.0-18+deb9u1) ) #1 SMP PREEMPT Tue Jun 30 19:02:35 CEST 2020
[ 0.000000] CPU: AArch64 Processor [410fd034] revision 4
[ 0.000000] secmon: share mem setup
[ 0.000000] Reserved memory: initialized node linux,secmon, compatible id aml_secmon_memory
[ 0.000000] __reserved_mem_alloc_size: linux,meson-fb
[ 0.000000] fb: Reserved memory: created fb at 0x0000000078000000, size 128 MiB
[ 0.000000] Reserved memory: initialized node linux,meson-fb, compatible id amlogic, fb-memory
[ 0.000000] __reserved_mem_alloc_size: linux,di
[ 0.000000] DI reserved memory: created CMA memory pool at 0x0000000076200000, size 30 MiB
[ 0.000000] Reserved memory: initialized node linux,di, compatible id amlogic, di-mem
[ 0.000000] __reserved_mem_alloc_size: linux,ion-dev
[ 0.000000] linux,ion-dev add multi user:ffffffc001d75580
[ 0.000000] ion_dev mem setup
[ 0.000000] Reserved memory: initialized node linux,ion-dev, compatible id amlogic, idev-mem
[ 0.000000] ppmgr share mem setup
[ 0.000000] linux,ion-dev add multi user:ffffffc001d7aa20
[ 0.000000] Reserved memory: initialized node linux,ion-dev, compatible id amlogic, idev-mem
[ 0.000000] __reserved_mem_alloc_size: linux,codec_mm_cma
[ 0.000000] Reserved memory: created CMA memory pool at 0x0000000067c00000, size 188 MiB
[ 0.000000] Reserved memory: initialized node linux,codec_mm_cma, compatible id shared-dma-pool
[ 0.000000] __reserved_mem_alloc_size: linux,picdec
[ 0.000000] Reserved memory: created CMA memory pool at 0x0000000064c00000, size 48 MiB
[ 0.000000] Reserved memory: initialized node linux,picdec, compatible id shared-dma-pool
[ 0.000000] __reserved_mem_alloc_size: linux,codec_mm_reserved
[ 0.000000] codec_mm:vdec: reserved mem setup
[ 0.000000] Reserved memory: initialized node linux,codec_mm_reserved, compatible id amlogic, codec-mm-reserved
[ 0.000000] __reserved_mem_alloc_size: linux,jpegenc_cma
[ 0.000000] Reserved memory: created CMA memory pool at 0x000000005e400000, size 36 MiB
[ 0.000000] Reserved memory: initialized node linux,jpegenc_cma, compatible id shared-dma-pool
[ 0.000000] cma: CMA: reserved 8 MiB at 5dc00000
[ 0.000000] On node 0 totalpages: 486912
[ 0.000000] Normal zone: 6664 pages used for memmap
[ 0.000000] Normal zone: 0 pages reserved
[ 0.000000] Normal zone: 486912 pages, LIFO batch:31
[ 0.000000] psci: probing for conduit method from DT.
[ 0.000000] psci: Using PSCI v0.1 Function IDs from DT
[ 0.000000] PERCPU: Embedded 12 pages/cpu s19712 r8192 d21248 u49152
[ 0.000000] pcpu-alloc: s19712 r8192 d21248 u49152 alloc=12*4096
[ 0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 480248
[ 0.000000] Kernel command line: root=/dev/mmcblk0p2 rootwait ro console=tty0 no_console_suspend hdmimode=2160p60hz m_bpp=32 vout= fsck.repair=yes net.ifnames=0 elevator=noop disablehpd=true
[ 0.000000] logo: get hdmimode: 2160p60hz
[ 0.000000] PID hash table entries: 4096 (order: 3, 32768 bytes)
[ 0.000000] Dentry cache hash table entries: 262144 (order: 9, 2097152 bytes)
[ 0.000000] Inode-cache hash table entries: 131072 (order: 8, 1048576 bytes)
[ 0.000000] Memory: 1474236K/1947648K available (8538K kernel code, 895K rwdata, 3124K rodata, 923K init, 4119K bss, 473412K reserved)
[ 0.000000] Virtual kernel memory layout:
vmalloc : 0xffffff8000000000 - 0xffffffbbffff0000 (245759 MB)
vmemmap : 0xffffffbc00000000 - 0xffffffbc01a40000 ( 26 MB)
modules : 0xffffffbffc000000 - 0xffffffc000000000 ( 64 MB)
memory : 0xffffffc000000000 - 0xffffffc078000000 ( 1920 MB)
.init : 0xffffffc001be5000 - 0xffffffc001ccbd00 ( 924 kB)
.text : 0xffffffc001080000 - 0xffffffc001be4804 ( 11667 kB)
.data : 0xffffffc001ccc000 - 0xffffffc001dabcb0 ( 896 kB)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[ 0.000000] Preemptible hierarchical RCU implementation.
[ 0.000000] NR_IRQS:64 nr_irqs:64 0
[ 0.000005] sched_clock: 32 bits at 1000kHz, resolution 1000ns, wraps every 2147483648000ns
[ 0.000025] mclk->mux_reg =ffffff8000002990,mclk->reg =ffffff800000a994
[ 0.000072] local timer MESON TIMER-G mclk->mux_reg =ffffff8000002990,mclk->reg =ffffff800000c998
[ 0.000094] local timer MESON TIMER-H mclk->mux_reg =ffffff8000002990,mclk->reg =ffffff800000e99c
[ 0.000116] local timer MESON TIMER-I mclk->mux_reg =ffffff8000002990,mclk->reg =ffffff80000109a0
[ 0.000126] Switching to timer-based delay loop
[ 0.000361] Console: colour dummy device 80x25
[ 0.000875] console [tty0] enabled
[ 0.003207] allocated 8388608 bytes of page_cgroup
[ 0.003216] please try 'cgroup_disable=memory' option if you don't want memory cgroups
[ 0.003234] Calibrating delay loop (skipped), value calculated using timer frequency.. 2.00 BogoMIPS (lpj=10000)
[ 0.003253] pid_max: default: 32768 minimum: 301
[ 0.003309] Security Framework initialized
[ 0.003337] AppArmor: AppArmor initialized
[ 0.003369] Mount-cache hash table entries: 4096 (order: 3, 32768 bytes)
[ 0.003382] Mountpoint-cache hash table entries: 4096 (order: 3, 32768 bytes)
[ 0.003854] Initializing cgroup subsys memory
[ 0.003928] Initializing cgroup subsys devices
[ 0.003951] Initializing cgroup subsys freezer
[ 0.003967] Initializing cgroup subsys net_cls
[ 0.003984] Initializing cgroup subsys blkio
[ 0.004000] Initializing cgroup subsys perf_event
[ 0.004013] Initializing cgroup subsys net_prio
[ 0.004036] Initializing cgroup subsys hugetlb
[ 0.004047] Initializing cgroup subsys debug
[ 0.004099] ftrace: allocating 30672 entries in 120 pages
[ 0.031182] hw perfevents: enabled with arm/armv8-pmuv3 PMU driver, 7 counters available
[ 0.071930] Meson chip version = RevC (1F:C - 0:0)
[ 0.090852] CPU1: Booted secondary processor
[ 0.110826] CPU2: Booted secondary processor
[ 0.130816] CPU3: Booted secondary processor
[ 0.130856] Brought up 4 CPUs
[ 0.130891] SMP: Total of 4 processors activated.
[ 0.131348] devtmpfs: initialized
[ 0.136787] futex hash table entries: 1024 (order: 4, 65536 bytes)
[ 0.139682] pinctrl core: initialized pinctrl subsystem
[ 0.139944] regulator-dummy: no parameters
[ 0.146708] device-tree: Duplicate name in efusekey, renamed to "key0#1"
[ 0.146755] device-tree: Duplicate name in efusekey, renamed to "key1#1"
[ 0.146788] device-tree: Duplicate name in efusekey, renamed to "key2#1"
[ 0.146820] device-tree: Duplicate name in efusekey, renamed to "key3#1"
[ 0.149220] NET: Registered protocol family 16
[ 0.150191] register canvas platform driver
[ 0.150209] codec:ignore bus ops for cpu=25
[ 0.150218] codec:ignore bus ops for cpu=29
[ 0.150228] codec:register amports ops for bus[0]
[ 0.150237] codec:register amports ops for bus[4]
[ 0.150246] codec:register amports ops for bus[3]
[ 0.150254] codec:register amports ops for bus[2]
[ 0.150263] codec:register amports ops for bus[1]
[ 0.150272] codec:register amports ops for bus[13]
[ 0.150281] codec:register amports ops for bus[2]
[ 0.150290] codec:register amports ops for bus[14]
[ 0.150322] register rdma platform driver
[ 0.150625] vdso: 2 pages (1 code, 1 data) at base ffffffc001cd2000
[ 0.150661] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[ 0.151269] DMA: preallocated 256 KiB pool for atomic allocations
[ 0.152455] software IO TLB: mapped [mem 0x5ac00000-0x5b000000] (4MB)
[ 0.152472] Serial: AMBA PL011 UART driver
[ 0.152549] hdmitx: system: amhdmitx_init
[ 0.152558] hdmitx: system: Ver: 2014May6
[ 0.152598] tv_vout: tv_init_module
[ 0.152612] tv_vout: major number 254 for disp
[ 0.152621] vout_notify: vout_register_server
[ 0.152631] tv_vout: register tv module server ok
[ 0.152666] codec_mm:codec_mm_module_init
[ 0.153019] gxbb clk HIU base is 0xffffff8000058000
[ 0.153029] gxbb clk ao base is 0xffffff800005a000
[ 0.153078] register mpll_clk_out0 success done
[ 0.153091] register mpll_clk_out1 success done
[ 0.153103] register mpll_clk_out2 success done
[ 0.153294] register sys pll success done
[ 0.153343] clkrate [ xtal ] : 24000000Hz
[ 0.153353] clkrate [ 32Khz ] : 32000Hz
[ 0.153362] clkrate [ clk81 ] : 166666666Hz
[ 0.153371] clkrate [ fixed_pll ] : 2000000000Hz
[ 0.153381] clkrate [ fclk_div2 ] : 1000000000Hz
[ 0.153390] clkrate [ fclk_div3 ] : 666666000Hz
[ 0.153399] clkrate [ fclk_div4 ] : 500000000Hz
[ 0.153408] clkrate [ fclk_div5 ] : 400000000Hz
[ 0.153417] clkrate [ fclk_div7 ] : 285714000Hz
[ 0.153448] gxbb clock initialization complete
[ 0.153495] msr_clk_reg0=ffffff800005c75c,msr_clk_reg2=ffffff800005e764
[ 0.154343] amlogic iomap probe done
[ 0.154681] Init pinux probe!
[ 0.155674] pinmux-gxbb c1109880.pinmux: Probed amlogic pinctrl driver
[ 0.156004] genirq: Setting trigger mode 8 for irq 241 failed (gic_set_type+0x0/0x148)
[ 0.156026] genirq: Setting trigger mode 8 for irq 242 failed (gic_set_type+0x0/0x148)
[ 0.156106] genirq: Setting trigger mode 8 for irq 241 failed (gic_set_type+0x0/0x148)
[ 0.156127] genirq: Setting trigger mode 8 for irq 242 failed (gic_set_type+0x0/0x148)
[ 0.156326] dvfs [scpi_dvfs_get_opps] - new count 6, max_freq 0
[ 0.156871] codec:codec map io source 0x00000000c1100000,size=1048576 to 0xffffff8000680000
[ 0.156896] codec:codec map io source 0x00000000c8820000,size=65536 to 0xffffff80000a0000
[ 0.156917] codec:codec map io source 0x00000000c883c000,size=8192 to 0xffffff8000094000
[ 0.156950] codec:codec map io source 0x00000000c8100000,size=1048576 to 0xffffff8000800000
[ 0.156973] codec:codec map io source 0x00000000d0100000,size=262144 to 0xffffff8000980000
[ 0.156993] codec:codec map io source 0x00000000c8838000,size=1024 to 0xffffff800007e000
[ 0.157065] codec_mm has 2 memory regions
[ 0.157081] codec_mm codec_mm: assigned reserved memory node linux,codec_mm_cma ok
[ 0.157097] codec_mm:codec_mm_reserved_init 0000000060b00000->0000000064c00000
[ 0.157111] codec_mm codec_mm: assigned reserved memory node linux,codec_mm_reserved ok
[ 0.157123] codec_mm:codec_mm_probe mem init done
[ 0.157136] codec_mm:add reserve memory 0000000060b00000(aligned 0000000060b00000) size=4100000(aligned 4100000)
[ 0.157166] codec_mm has 2 memory regions
[ 0.157179] codec_mm codec_mm: assigned reserved memory node linux,codec_mm_cma ok
[ 0.157193] codec_mm:codec_mm_reserved_init 0000000060b00000->0000000064c00000
[ 0.157206] codec_mm codec_mm: assigned reserved memory node linux,codec_mm_reserved ok
[ 0.157219] codec_mm:codec_mm reserved memory probed done
[ 0.157227] codec_mm:codec_mm_probe ok
[ 0.158052] VPU driver version: v01
[ 0.158062] vpu driver detect cpu type: gxbaby
[ 0.158079] load vpu_clk in dts: 666667000Hz(7)
[ 0.158110] vpu_probe OK
[ 0.158355] hdmitx: system: amhdmitx_probe
[ 0.158617] hdmitx hpd irq = 89
[ 0.158826] hdmitx20: Mapped PHY: 0xc0800000
[ 0.158839] hdmitx20: Mapped PHY: 0xc1104400
[ 0.158862] hdmitx20: Mapped PHY: 0xc8100000
[ 0.158872] hdmitx20: Mapped PHY: 0xc8834000
[ 0.158883] hdmitx20: Mapped PHY: 0xc883a000
[ 0.158893] hdmitx20: Mapped PHY: 0xc883c000
[ 0.158908] hdmitx20: Mapped PHY: 0xd0100000
[ 0.158918] hdmitx20: Mapped PHY: 0xda83a000
[ 0.158935] hdmitx: alread display in uboot 0x10
[ 0.158962] avmute set to 1
[ 0.159373] canvas_probe reg=00000000c8838000,size=400
[ 0.159391] canvas maped reg_base =ffffff80000b2000
[ 0.163641] rdma_probe
[ 0.231124] SCSI subsystem initialized
[ 0.231314] usbcore: registered new interface driver usbfs
[ 0.231358] usbcore: registered new interface driver hub
[ 0.231423] usbcore: registered new device driver usb
[ 0.231520] media: Linux media interface: v0.10
[ 0.231558] Linux video capture interface: v2.00
[ 0.231626] pps_core: LinuxPPS API ver. 1 registered
[ 0.231637] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <[email protected]>
[ 0.231664] PTP clock support registered
[ 0.231883] logo: logo_init
[ 0.231950] Advanced Linux Sound Architecture Driver Initialized.
[ 0.232314] Bluetooth: Core ver 2.19
[ 0.232346] NET: Registered protocol family 31
[ 0.232355] Bluetooth: HCI device and connection manager initialized
[ 0.232371] Bluetooth: HCI socket layer initialized
[ 0.232384] Bluetooth: L2CAP socket layer initialized
[ 0.232411] Bluetooth: SCO socket layer initialized
[ 0.232435] NetLabel: Initializing
[ 0.232444] NetLabel: domain hash size = 128
[ 0.232453] NetLabel: protocols = UNLABELED CIPSOv4
[ 0.232495] NetLabel: unlabeled traffic allowed by default
[ 0.232996] Switched to clocksource Timer-E
[ 0.264481] AppArmor: AppArmor Filesystem Enabled
[ 0.269810] NET: Registered protocol family 2
[ 0.270332] TCP established hash table entries: 16384 (order: 5, 131072 bytes)
[ 0.270431] TCP bind hash table entries: 16384 (order: 6, 262144 bytes)
[ 0.270647] TCP: Hash tables configured (established 16384 bind 16384)
[ 0.270727] TCP: reno registered
[ 0.270739] UDP hash table entries: 1024 (order: 3, 32768 bytes)
[ 0.270781] UDP-Lite hash table entries: 1024 (order: 3, 32768 bytes)
[ 0.270935] NET: Registered protocol family 1
[ 0.271156] RPC: Registered named UNIX socket transport module.
[ 0.271166] RPC: Registered udp transport module.
[ 0.271175] RPC: Registered tcp transport module.
[ 0.271184] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.271361] Unpacking initramfs...
[ 0.483179] hdmitx: plugin
[ 0.488092] Freeing initrd memory: 6768K (ffffffc073895000 - ffffffc073f31000)
[ 0.497234] kvm [1]: Using HYP init bounce page @59764000
[ 0.497453] kvm [1]: interrupt-controller@c4304000 IRQ25
[ 0.497652] kvm [1]: kvm_arch_timer: can't find DT node
[ 0.497727] kvm [1]: error initializing Hyp mode: -19
[ 0.498379] audit: initializing netlink subsys (disabled)
[ 0.498466] audit: type=2000 audit(0.480:1): initialized
[ 0.499197] HugeTLB registered 2 MB page size, pre-allocated 0 pages
[ 0.504548] VFS: Disk quotas dquot_6.5.2
[ 0.504699] Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[ 0.506612] NFS: Registering the id_resolver key type
[ 0.506666] Key type id_resolver registered
[ 0.506676] Key type id_legacy registered
[ 0.506697] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[ 0.506750] msgmni has been set to 3452
[ 0.507872] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 247)
[ 0.508018] io scheduler noop registered (default)
[ 0.508032] io scheduler deadline registered
[ 0.508134] io scheduler cfq registered
[ 0.508880] meson-rng c8834000.rng: hwrng registered
[ 0.509203] enter cpufreq
[ 0.509248] probe cpufreq okay
[ 0.509395] dvfs [scpi_dvfs_get_opps] - new count 6, max_freq 0
[ 0.510414] aml-thermal aml-sensor@0: min state:500000 400 1 2
[ 0.510632] aml-thermal aml-sensor@0: gpu coef:437, pp:3
[ 0.515698] aml-thermal aml-sensor@0: cdev1 set upper to 3
[ 0.515710] aml-thermal aml-sensor@0: cdev2 set upper to 3
[ 0.515722] aml-thermal aml-sensor@0: cdev0 set upper to 3
[ 0.518319] [drm] Initialized drm 1.1.0 20060810
[ 0.518372] mali-utgard d00c0000.mali: max pp is 3
[ 0.518384] mali-utgard d00c0000.mali: min pp is 3
[ 0.518395] mali-utgard d00c0000.mali: min clk is 4
[ 0.518426] mali-utgard d00c0000.mali: hiu io source 0xffffff80000e4000
[ 0.518444] mali-utgard d00c0000.mali: hiu io source 0xffffff80000e6000
[ 0.518457] mali-utgard d00c0000.mali: num of pp used most of time 3
[ 0.518470] mali-utgard d00c0000.mali: clock dvfs table size is 6
[ 0.518483] mali-utgard d00c0000.mali: max clk set 4
[ 0.518493] mali-utgard d00c0000.mali: max clk is 4
[ 0.518504] mali-utgard d00c0000.mali: turbo clk set to 5
[ 0.518515] mali-utgard d00c0000.mali: turbo clk is 5
[ 0.518526] mali-utgard d00c0000.mali: default clk is 4
[ 0.518598] mali-utgard d00c0000.mali: ====================0====================
clk_freq= 125000000, clk_parent=fclk_div4, voltage=1150, keep_count=5, threshod=<30 120>, clk_sample=125
[ 0.518625] mali-utgard d00c0000.mali: ====================1====================
clk_freq= 285000000, clk_parent=fclk_div7, voltage=1150, keep_count=5, threshod=<100 190>, clk_sample=285
[ 0.518651] mali-utgard d00c0000.mali: ====================2====================
clk_freq= 400000000, clk_parent=fclk_div5, voltage=1150, keep_count=5, threshod=<152 207>, clk_sample=400
[ 0.518677] mali-utgard d00c0000.mali: ====================3====================
clk_freq= 500000000, clk_parent=fclk_div4, voltage=1150, keep_count=5, threshod=<180 220>, clk_sample=500
[ 0.518703] mali-utgard d00c0000.mali: ====================4====================
clk_freq= 666000000, clk_parent=fclk_div3, voltage=1150, keep_count=5, threshod=<210 236>, clk_sample=666
[ 0.518730] mali-utgard d00c0000.mali: ====================5====================
clk_freq= 792000000, clk_parent= gp0_pll, voltage=1150, keep_count=5, threshod=<230 255>, clk_sample=792
[ 0.523943] cdev3 set upper to 2
[ 0.523962] cdev4 set upper to 2
[ 0.523971] gpu cooling register okay with err=0
[ 0.524028] cdev5 set upper to 1
[ 0.524037] gpu core cooling register okay with err=0
[ 0.524239] Mali: Mali device driver loaded
[ 0.524421] UMP: UMP device driver -v3.16.7-12289-g64c8062a2c3d loaded
[ 0.526938] loop: module loaded
[ 0.527277] mtdoops: mtd device (mtddev=name/number) must be supplied
[ 0.527864] stmmac - user ID: 0x11, Synopsys ID: 0x37
[ 0.527874] Ring mode enabled
[ 0.527883] DMA HW capability register supported
[ 0.527891] Normal descriptors
[ 0.527902] RX Checksum Offload Engine supported (type 2)
[ 0.527912] TX Checksum insertion supported
[ 0.527920] Wake-Up On Lan supported
[ 0.527957] Enable RX Mitigation via HW Watchdog Timer
[ 0.545874] libphy: stmmac: probed
[ 0.545908] eth0: PHY ID 001cc916 at 0 IRQ POLL (stmmac-0:00) active
[ 0.545920] eth0: PHY ID 001cc916 at 7 IRQ POLL (stmmac-0:07)
[ 0.546300] usbcore: registered new interface driver cdc_ether
[ 0.546379] usbcore: registered new interface driver cdc_ncm
[ 0.546533] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 0.546548] ehci-h20ahb: H20AHB-EHCI Host Controller driver
[ 0.546662] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 0.546745] usbcore: registered new interface driver cdc_acm
[ 0.546755] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
[ 0.546811] usbcore: registered new interface driver usb-storage
[ 0.546926] usbcore: registered new interface driver usbserial
[ 0.546960] usbcore: registered new interface driver usbserial_generic
[ 0.546989] usbserial: USB Serial support registered for generic
[ 0.547311] mousedev: PS/2 mouse device common for all mice
[ 0.547672] i2c /dev entries driver
[ 0.547707] hdmitx: edid: raw data are all zeroes
[ 0.547719] EDID Parser:
[ 0.547752] EDID BlockCount=0
[ 0.547760] hdmitx: edid: HDMI: set default vic
[ 0.547776] hdmitx: video: get current mode: null
[ 0.547786] hdmtix: set audio
[ 0.547801] hdmitx tx_aud_src = 0
[ 0.547833] hdmitx aud_n_para = 24576
[ 0.547857] hdmitx set channel status
[ 0.548163] IR Sharp protocol handler initialized
[ 0.548538] device-mapper: uevent: version 1.0.3
[ 0.548744] device-mapper: ioctl: 4.27.0-ioctl (2013-10-30) initialised: [email protected]
[ 0.549036] ledtrig-cpu: registered to indicate activity on CPUs
[ 0.549102] hidraw: raw HID events driver (C) Jiri Kosina
[ 0.549264] usbcore: registered new interface driver usbhid
[ 0.549274] usbhid: USB HID core driver
[ 0.549529] ashmem: initialized
[ 0.549692] ==uart0 reg addr = ffffff80002344c0
[ 0.549721] c81004c0.serial: ttyS0 at MMIO 0xc81004c0 (irq = 225, base_baud = 1500000) is a meson_uart
[ 0.549914] ==uart1 reg addr = ffffff80002364c0
[ 0.549936] c11084c0.serial: ttyS1 at MMIO 0xc11084c0 (irq = 58, base_baud = 1500000) is a meson_uart
[ 0.590257] dwc_otg: usb1: type: 1 speed: 0, config: 0, dma: 0, id: 1, phy: c0000020, ctrl: 0
[ 0.592932] dwc_otg: Core Release: 3.10a
[ 0.592945] dwc_otg: Setting default values for core params
[ 0.592964] dwc_otg: curmode: 1, host_only: 1
[ 0.595203] dwc_otg: Using Buffer DMA mode
[ 0.595214] dwc_otg: OTG VER PARAM: 1, OTG VER FLAG: 1
[ 0.595225] dwc_otg: Working on port type = HOST
[ 0.595372] dwc_otg dwc2_b: DWC OTG Controller
[ 0.595395] dwc_otg dwc2_b: new USB bus registered, assigned bus number 1
[ 0.595422] dwc_otg dwc2_b: irq 63, io mem 0x00000000
[ 0.595432] dwc_otg: -------hcd->flags.d32 = 0
[ 0.595457] dwc_otg: Init: Port Power? op_state=1
[ 0.595466] dwc_otg: Init1: Power Port (0)
[ 0.595977] hub 1-0:1.0: USB hub found
[ 0.596006] hub 1-0:1.0: 1 port detected
[ 0.596211] dwc_otg: usb0: type: 0 speed: 0, config: 0, dma: 0, id: 0, phy: c0000000, ctrl: 0
[ 0.608838] dwc_otg: Core Release: 3.10a
[ 0.608850] dwc_otg: Setting default values for core params
[ 0.608863] dwc_otg: curmode: 1, host_only: 0
[ 0.621078] dwc_otg: Using Buffer DMA mode
[ 0.621089] dwc_otg: OTG VER PARAM: 1, OTG VER FLAG: 1
[ 0.621099] dwc_otg: Working on port type = OTG
[ 0.621108] dwc_otg: Current port type: SLAVE
[ 0.621178] dwc_otg dwc2_a: DWC OTG Controller
[ 0.621198] dwc_otg dwc2_a: new USB bus registered, assigned bus number 2
[ 0.621223] dwc_otg dwc2_a: irq 62, io mem 0x00000000
[ 0.621613] hub 2-0:1.0: USB hub found
[ 0.621639] hub 2-0:1.0: 1 port detected
[ 0.621785] dwc_otg: Dedicated Tx FIFOs mode
[ 0.621979] dwc_otg: using timer detectid change, ffffffc05a943800
[ 0.622175] fb: osd_init_module
[ 0.622272] fb: viu vsync irq: 35
[ 0.622290] meson-fb has 1 memory regions
[ 0.623477] meson-fb meson-fb: assigned reserved memory node linux,meson-fb ok
[ 0.623496] logo: get initial logo vmode: 2160p60hz
[ 0.623509] tv_vout: tv_set_current_vmode[707]fps_target_mode=12
[ 0.623521] tv_vout: mode is 12,sync_duration_den=1,sync_duration_num=60
[ 0.623535] switch_vpu_mem_pd: vencp ON
[ 0.623545] tv_vout: TV mode 1080p60hz selected.
[ 0.623557] tv_vout: new mode =1080p60hz set ok
[ 0.623566] vout_serve: vinfo mode is: 1080p60hz
[ 0.623577] tv_vout: tv_set_current_vmode[707]fps_target_mode=24
[ 0.623587] tv_vout: mode is 24,sync_duration_den=1,sync_duration_num=60
[ 0.623598] switch_vpu_mem_pd: vencp ON
[ 0.623606] tv_vout: TV mode 2160p60hz selected.
[ 0.623616] tv_vout: new mode =2160p60hz set ok
[ 0.623625] vout_serve: vinfo mode is: 2160p60hz
[ 0.623636] switch_vpu_mem_pd: viu_osd1 ON
[ 0.623644] switch_vpu_mem_pd: viu_osd2 ON
[ 0.623653] switch_vpu_mem_pd: viu_osd_scale ON
[ 0.623755] osd_rdma: osd_rdma_init: rmda_table p=0x5dc49000,op=0x5dc49000 , v=0xffffff8000266000
[ 0.623786] hdmitx: video: get current mode: 2160p60hz
[ 0.623802] hdmitx: video: get current mode: 2160p60hz
[ 0.623833] hdmitx: system: already init VIC = 0 Now VIC = 97
[ 0.623845] hdmitx: rx no SCDC present indicator
[ 0.625861] hdmitx: ddc rd8b error 0x54 0x01
[ 0.627877] hdmitx: ddc rd8b error 0x54 0x01
[ 0.627888] hdmirx version is 1.4 or below
[ 0.627897] hdmitx: system: set pll
[ 0.627905] hdmitx: system: param->VIC:97
[ 0.637954] hdmitx: set clk of VIC = 97 done
[ 0.637967] hdmitx: set enc for VIC: 97
[ 0.637985] hdmitx_set_hw[4470] set VIC = 97
[ 0.765000] hdmitx: system: phy setting done
[ 0.765016] hdmitx: system: irq 80000001
[ 0.793040] dwc_otg: Indeed it is in host mode hprt0 = 00021501
[ 0.804007] Sink is HDMI device
[ 0.804019] Source reading EDID
[ 0.832998] hdmtix: set audio
[ 0.833013] hdmitx tx_aud_src = 0
[ 0.833045] hdmitx aud_n_para = 24576
[ 0.833073] hdmitx set channel status
[ 0.833135] fb: validating vinfo tables
[ 0.833152] hdmitx: warning: tvenc phy 27000 vid 54000 enc 27000 pix 27000 clocks not equal
[ 0.833168] fb: vinfo 0 480i60hz, hdmi 7 720x480i60hz, 720x480-60 4:3 27000
[ 0.833183] fb: warning: vinfo 1 480i_rpt, 720x480-60 4:3 27000, hdmi 11 no para
[ 0.833202] fb: warning: vinfo 2 480cvbs, 720x480-60 4:3 27000, no hdmi vic
[ 0.833217] fb: warning: vinfo 4 480p_rpt, 720x480-60 4:3 27000, hdmi 36 no para
[ 0.833231] hdmitx: warning: tvenc phy 27000 vid 54000 enc 27000 pix 27000 clocks not equal
[ 0.833245] fb: vinfo 5 576i50hz, hdmi 22 720x576i50hz, 720x576-50 4:3 27000
[ 0.833258] fb: warning: vinfo 6 576i_rpt, 720x576-50 4:3 27000, hdmi 26 no para
[ 0.833275] fb: warning: vinfo 7 576cvbs, 720x576-50 4:3 27000, no hdmi vic
[ 0.833291] fb: warning: vinfo 9 576p_rpt, 720x576-50 4:3 27000, hdmi 38 no para
[ 0.833322] fb: warning: vinfo 23 4k2k5g, 3840x2160-50 16:9 495000, no hdmi vic
[ 0.833347] fb: warning: hdmi 109 (0x000 + 109) no video para
[ 0.833358] hdmitx: warning: tvenc no clk for 109 hdmi
[ 0.833367] fb: info: used 3840x1080p120hz for 29 4k1k120hz
[ 0.833379] fb: vinfo 29 4k1k120hz, hdmi 109 3840x1080p120hz, 3840x1080-120 32:9 594000
[ 0.833396] fb: warning: vinfo 30 4k1k120hz420, 3840x1080-120 32:9 594000, no hdmi vic
[ 0.833414] fb: warning: hdmi 110 (0x000 + 110) no video para
[ 0.833424] hdmitx: warning: tvenc no clk for 110 hdmi
[ 0.833436] fb: warning: hdmi 3840x1080-50 594000 != 3840x1080-100 594000 vinfo
[ 0.833449] fb: info: used 3840x1080p100hz for 31 4k1k100hz
[ 0.833460] fb: vinfo 31 4k1k100hz, hdmi 110 3840x1080p100hz, 3840x1080-100 32:9 594000
[ 0.833478] fb: warning: vinfo 32 4k1k100hz420, 3840x1080-100 32:9 594000, no hdmi vic
[ 0.833496] fb: warning: vinfo 33 4k05k240hz, 3840x1080-240 64:9 594000, no hdmi vic
[ 0.833513] fb: warning: vinfo 34 4k05k240hz420, 3840x540-240 64:9 594000, no hdmi vic
[ 0.833531] fb: warning: vinfo 35 4k05k200hz, 3840x540-200 64:9 594000, no hdmi vic
[ 0.833548] fb: warning: vinfo 36 4k05k200hz420, 3840x1080-200 64:9 594000, no hdmi vic
[ 0.833568] hdmitx: warning: tvenc 51830 != 51450 hdmi
[ 0.833579] fb: vinfo 41 1024x600p60hz, hdmi 772 1024x600p60hz, 1024x600-60 17:10 51450
[ 0.833618] hdmitx: warning: 480x320p 800 263 0 tvenc !=
[ 0.833628] hdmitx: 480x320p 800 525 0 hdmi
[ 0.833639] hdmitx: warning: 100 120 95 8 100 4 tvenc !=
[ 0.833649] hdmitx: 100 120 189 8 100 8 hdmi
[ 0.833659] hdmitx: warning: tvenc TOTAL_LINES 263 != 320+107 (320+107) hdmi
[ 0.833671] fb: vinfo 56 480x320p60hz, hdmi 787 480x320p60hz, 480x320-60 3:2 25200
[ 0.833686] hdmitx: warning: 480x272p 800 263 0 tvenc !=
[ 0.833696] hdmitx: 480x272p 800 525 0 hdmi
[ 0.833706] hdmitx: warning: 100 120 119 8 100 4 tvenc !=
[ 0.833716] hdmitx: 100 120 238 8 100 7 hdmi
[ 0.833726] hdmitx: warning: tvenc TOTAL_LINES 263 != 272+131 (272+131) hdmi
[ 0.833738] fb: vinfo 57 480x272p60hz, hdmi 788 480x272p60hz, 480x272-60 3:2 25200
[ 0.833778] fb: warning: vinfo 62 wsxga, 1440x900-60 8:5 88750, no hdmi vic
[ 0.833798] hdmitx: warning: no tvenc for hdmi vic 790
[ 0.833809] fb: vinfo 69 custombuilt, hdmi 790 custombuilt, 0x0-0 16:9 0
[ 0.833820] fb: found 64 vinfos
[ 0.833827] fb: validating hdmi format tables
[ 0.833837] fb: warning: hdmi 2 (0x000 + 2) no format para
[ 0.833848] fb: warning: hdmi 6 (0x000 + 6) no format para
[ 0.833859] hdmitx: warning: tvenc phy 27000 vid 54000 enc 27000 pix 27000 clocks not equal
[ 0.833874] fb: info: hdmi 7 720x480i60hz, 1440x240-59 27000
[ 0.833888] fb: warning: hdmi 17 (0x000 + 17) no format para
[ 0.833900] fb: warning: hdmi 21 (0x000 + 21) no format para
[ 0.833911] hdmitx: warning: tvenc phy 27000 vid 54000 enc 27000 pix 27000 clocks not equal
[ 0.833925] fb: info: hdmi 22 720x576i50hz, 1440x288-50 27000
[ 0.833971] fb: warning: hdmi 109 (0x000 + 109) no video para
[ 0.833981] hdmitx: warning: tvenc no clk for 109 hdmi
[ 0.833991] fb: info: hdmi 109 3840x1080p120hz, 3840x1080-120 594000
[ 0.834002] fb: warning: hdmi 110 (0x000 + 110) no video para
[ 0.834012] hdmitx: warning: tvenc no clk for 110 hdmi
[ 0.834022] fb: info: hdmi 110 3840x1080p100hz, 3840x1080-50 594000
[ 0.834033] fb: warning: hdmi 111 (0x000 + 111) no video para
[ 0.834044] hdmitx: warning: 3840x1080p 4400 562 0 tvenc !=
[ 0.834054] hdmitx: 3840x540p 4400 562 0 hdmi
[ 0.834064] hdmitx: warning: tvenc TOTAL_LINES 562 != 1080+22 (1080+22) hdmi
[ 0.834074] hdmitx: warning: tvenc no clk for 111 hdmi
[ 0.834085] fb: info: hdmi 111 3840x540p240hz, 3840x540-120 594000
[ 0.834095] fb: warning: hdmi 112 (0x000 + 112) no video para
[ 0.834106] hdmitx: warning: 3840x1080p 5280 562 0 tvenc !=
[ 0.834116] hdmitx: 3840x540p 5280 562 0 hdmi
[ 0.834126] hdmitx: warning: tvenc TOTAL_LINES 562 != 1080+22 (1080+22) hdmi
[ 0.834137] hdmitx: warning: tvenc no clk for 112 hdmi
[ 0.834147] fb: info: hdmi 112 3840x540p200hz, 3840x540-50 594000
[ 0.834198] fb: warning: hdmi 354 (0x100 + 98) no video para
[ 0.834209] fb: warning: hdmi 354 (0x100 + 98) no format para
[ 0.834225] hdmitx: warning: tvenc 51830 != 51450 hdmi
[ 0.834235] fb: info: hdmi 772 1024x600p60hz, 1024x600-60 51450
[ 0.834255] hdmitx: warning: 480x320p 800 263 0 tvenc !=
[ 0.834266] hdmitx: 480x320p 800 525 0 hdmi
[ 0.834275] hdmitx: warning: 100 120 95 8 100 4 tvenc !=
[ 0.834285] hdmitx: 100 120 189 8 100 8 hdmi
[ 0.834295] hdmitx: warning: tvenc TOTAL_LINES 263 != 320+107 (320+107) hdmi
[ 0.834307] fb: info: hdmi 787 480x320p60hz, 480x320-60 25200
[ 0.834318] hdmitx: warning: 480x272p 800 263 0 tvenc !=
[ 0.834328] hdmitx: 480x272p 800 525 0 hdmi
[ 0.834337] hdmitx: warning: 100 120 119 8 100 4 tvenc !=
[ 0.834347] hdmitx: 100 120 238 8 100 7 hdmi
[ 0.834357] hdmitx: warning: tvenc TOTAL_LINES 263 != 272+131 (272+131) hdmi
[ 0.834369] fb: info: hdmi 788 480x272p60hz, 480x272-60 25200
[ 0.834379] fb: found 226 valid hdmi format parameters
[ 0.834387] fb: validation done.
[ 0.834396] fb: osd_probe vinfo:ffffffc001d70b38
[ 0.834405] fb: Frame buffer memory assigned at
[ 0.834414] fb: phy: 0x78000000, vir:0xffffff8001780000, size=98304K
[ 0.834428] fb: osd_set_res_bootargs : mode 24
[ 0.834439] fb: hdmi vic for 24 2160p60hz is: 97
[ 0.834448] fb: hdmi format para for 97 is: 97 3840x2160p60hz
[ 0.834458] fb: hdmi format para for 97 is: 97 3840x2160p60hz
[ 0.834469] fb: warning: hdmi 3840x2160 != 1920x1080 fb
[ 0.834479] fb: mode "3840x2160-60"
[ 0.834487] fb: # D: 594000, H: 135000, V: 60000
[ 0.834497] fb: geometry 1920 1080 1920 3240 32
[ 0.834507] fb: timings 1683 296 176 72 8 88 10
[ 0.834515] fb: endmode
[ 0.834522] fb: fb def : 1920 1080 1920 3240 32
[ 0.834531] fb: init fbdev bpp is:32
[ 0.849741] fb: ---------------clear fb0 memory
[ 0.882220] fb: osd[0] canvas.idx =0x40
[ 0.882222] fb: osd[0] canvas.addr=0x78000000
[ 0.882224] fb: osd[0] canvas.width=7680
[ 0.882225] fb: osd[0] canvas.height=3240
[ 0.903458] Console: switching to colour frame buffer device 240x67
[ 0.933160] fb: Frame buffer memory assigned at
[ 0.933238] fb: phy: 0x7e000000, vir:0xffffff8007800000, size=1024K
[ 0.966413] fb: osd probe OK
[ 0.966606] vout_serve: vout_init_module
[ 0.966754] vout_serve: meson_vout_probe
[ 0.966840] vout_serve: create vout attribute OK
[ 0.966983] ge2d: ge2d_init_module
[ 0.967047] ge2d: ge2d_dev major:241
[ 0.967284] ge2d: ge2d clock is 400 MHZ
[ 0.967354] ge2d: ge2d: pdev=ffffffc05bf31000, irq=182, rstc=0xffffffc05a967740, clk=ffffffc05be4c480
[ 0.967530] ge2d: mapped phy: 0xd0160000
[ 0.967600] ge2d: ge2d start monitor
[ 0.967752] ge2d: ge2d workqueue monitor start
[ 0.967887] BLASTER Driver Init
[ 0.968080] secmon has 1 memory regions
[ 0.968174] secmon: share in base: 0xffffff8000268000, share out base: 0xffffff800026a000
[ 0.968310] secmon secmon: assigned reserved memory node linux,secmon ok
[ 0.968418] secmon: probe done
[ 0.968591] storage: storage in base: 0xffffff8007980000
[ 0.968679] storage: storage out base: 0xffffff8007a00000
[ 0.968768] storage: storage block base: 0xffffff8007a80000
[ 0.968858] storage: probe done!
[ 0.969669] aml_sd_emmc_probe: line 2898
[ 0.969738] mmc driver version: 1.07, 2015-01-21: fix a bug in tuning which caused eMMC data CRC error
[ 0.970236] aml_sd_emmc_reg_init 621
[ 0.970396] pdata->caps 60507
[ 0.970451] pdata->caps2 0
[ 0.970502] get property: ocr_avail, value:0x00200080
[ 0.970606] get property: f_min, value:0x00061a80
[ 0.970710] get property: f_max, value:0x0510ff40
[ 0.970816] get property: max_req_size, value:0x00020000
[ 0.970921] get property: irq_in, value:0x00000003
[ 0.971026] get property: irq_out, value:0x00000005
[ 0.974407] get property: power_level, value:0x00000001
[ 0.977741] get property: gpio_cd, str:
[ 0.981046] get property: gpio_power, str:
[ 0.984351] get property: pinname, str:sd
[ 0.987603] get property: jtag_pin, str:
[ 0.990787] get property: card_type, value:0x00000005
[ 0.993013] usb 1-1: new high-speed USB device number 2 using dwc_otg
[ 0.993262] dwc_otg: Indeed it is in host mode hprt0 = 00001101
[ 1.000410] get property: gpio_dat3, str:
[ 1.003671] get property: gpio_volsw, str:
[ 1.073055] [aml_sd_emmc_probe] aml_sd_emmc_probe() success!
[ 1.076307] aml_sd_emmc_probe: line 2898
[ 1.083247] [aml_is_card_insert] card IN
[ 1.083268] [aml_is_card_insert] card IN
[ 1.083810] aml_sd_emmc_reg_init 621
[ 1.083951] pdata->caps 80000547
[ 1.083958] pdata->caps2 a1
[ 1.083962] get property: ocr_avail, value:0x00200080
[ 1.083964] get property: f_min, value:0x00061a80
[ 1.083966] get property: f_max, value:0x0bebc200
[ 1.083969] get property: max_req_size, value:0x00020000
[ 1.083975] get property: pinname, str:emmc
[ 1.083978] get property: card_type, value:0x00000001
[ 1.083984] get property: gpio_dat3, str:
[ 1.083988] get property: hw_reset, str:
[ 1.143079] [aml_sd_emmc_probe] aml_sd_emmc_probe() success!
[ 1.149727] ion_dev has 1 memory regions
[ 1.165303] codec:Amlogic A/V streaming port init
[ 1.169270] codec:get gate demux control ok ffffffc073989940
[ 1.172502] codec:get gate parser_top control ok ffffffc0739899c0
[ 1.175731] codec:get gate vpu_intr control ok ffffffc073989a40
[ 1.178955] codec:get gate vdec control ok ffffffc073989ac0
[ 1.182451] codec:[tsync_pcr_init]init success.
[ 1.185764] codec:regist mpeg12 codec profile
[ 1.189048] codec:regist mpeg4 codec profile
[ 1.192290] codec:amvdec_vc1 module init
[ 1.195710] codec:regist vc1 codec profile
[ 1.198891] codec:amvdec_h264 module init
[ 1.202060] codec:regist h264 codec profile
[ 1.205185] codec:amvdec_h264mvc module init
[ 1.208341] codec:regist hmvc codec profile
[ 1.211448] codec:amvdec_h264_4k2k module init
[ 1.214725] codec:regist h264_4k2k codec profile
[ 1.217781] codec:amvdec_h265 module init
[ 1.220810] codec:regist hevc codec profile
[ 1.223825] codec:regist mjpeg codec profile
[ 1.226761] codec:amvdec_real module init
[ 1.229737] codec:regist real codec profile
[ 1.232674] codec:amvdec_avs module init
[ 1.235760] codec:regist avs codec profile
[ 1.238732] amvenc_avc_probe -- reserved memory config fail.
[ 1.241618] amvenc_avc - cma memory pool size: 40 MB
[ 1.244462] encode_wq_init.
[ 1.247271] encode start monitor.
[ 1.250176] encode workqueue monitor start.
[ 1.250339] jpegenc module init
[ 1.250395] jpegenc probe start.
[ 1.250398] jpegenc has 1 memory regions
[ 1.250418] jpegenc jpegenc: assigned reserved memory node linux,jpegenc_cma ok
[ 1.250421] jpegenc - cma memory pool size: 36 MB
[ 1.250433] jpegenc memory config sucess, buff size is 0x2400000, level: 8M
[ 1.250434] jpegenc_wq_init.
[ 1.250508] jpegenc probe end.
[ 1.250597] codec:picdec_driver_probe called.
[ 1.250600] picdec has 1 memory regions
[ 1.250607] picdec picdec: assigned reserved memory node linux,picdec ok
[ 1.250609] codec:picdec_driver_probe done.
[ 1.250610] codec:reserved memory config fail , use CMA .
[ 1.252034] codec:cma memory is 64c00000 , size is 3000000
[ 1.252253] codec:0 addr is 64c00000################
[ 1.252260] codec:1 addr is 657dd800################
[ 1.252388] switch_vpu_mem_pd: vpu_arb ON
[ 1.252632] codec:create_ge2d_work_queue video task ok
[ 1.252956] codec:register clk_set_setting cpu[31]
[ 1.253258] di_module_init ok.
[ 1.253263] di_module_init: major 236
[ 1.253394] di_probe
[ 1.253520] deinterlace has 1 memory regions
[ 1.253541] di reveser memory 0x76200000, size 30MB.
[ 1.253547] deinterlace deinterlace: assigned reserved memory node linux,di ok
[ 1.253651] rdma_register, rdma_table_addr ffffff8000481000 rdma_table_addr_phy 5dc4e000 reg_buf ffffffc0739f2000
[ 1.253653] rdma_register success, handle 1 table_size 8192
[ 1.253655] di_probe allocate rdma channel 1.
[ 1.253659] DI hw version 2.
[ 1.253668] 0x000000c3:Y=c3,U=0,V=0
[ 1.253670] 0x000000c4:Y=c4,U=0,V=0
[ 1.253672] 0x000000c5:Y=c5,U=0,V=0
[ 1.253673] 0x000000c6:Y=c6,U=0,V=0
[ 1.253675] 0x000000c7:Y=c7,U=0,V=0
[ 1.253677] 0x000000c8:Y=c8,U=0,V=0
[ 1.253679] 0x000000c9:Y=c9,U=0,V=0
[ 1.253682] 0x000000ca:Y=ca,U=0,V=0
[ 1.253684] 0x000000cb:Y=cb,U=0,V=0
[ 1.253686] 0x000000cc:Y=cc,U=0,V=0
[ 1.253689] 0x000000cd:Y=cd,U=0,V=0
[ 1.253690] 0x000000ce:Y=ce,U=0,V=0
[ 1.253692] 0x000000cf:Y=cf,U=0,V=0
[ 1.253834] di_probe here.
[ 1.253849] switch_vpu_mem_pd: di_pre OFF
[ 1.254020] efusekeynum: 4
[ 1.254028] efusekeyname: mac offset: 0 size: 6
[ 1.254034] efusekeyname: mac_bt offset: 6 size: 6
[ 1.254040] efusekeyname: mac_wifi offset: 12 size: 6
[ 1.254046] efusekeyname: usid offset: 18 size: 16
[ 1.254151] efuse efuse: probe OK!
[ 1.254308] 6aml_unifykeys_init done!
[ 1.254315] ppmgr module init func called
[ 1.254364] ppmgr_driver_probe called
[ 1.254366] ppmgr has 1 memory regions
[ 1.254375] init ppmgr memsource 74200000->761fffff
[ 1.254502] ppmgr_probe done
[ 1.254736] ionvideo-000: V4L2 device registered as video13
[ 1.254748] [dsp]register dsp to char divece(257)
[ 1.255060] amaudio: driver amaudio succuess!
[ 1.255069] amlvideo_init called
[ 1.255069] amlvideo_create_instance called
[ 1.255072] v4l2_dev.name=:amlvideo-000
[ 1.255135] amlvideo-000: V4L2 device registered as video10
[ 1.255143]
VECM init
[ 1.255457] saradc c1108680.saradc: initialized by BL30
[ 1.255460] saradc c1108680.saradc: calibration start:
[ 1.255507] saradc c1108680.saradc: nominal=0, value=0
[ 1.255553] saradc c1108680.saradc: nominal=256, value=250
[ 1.255598] saradc c1108680.saradc: nominal=512, value=508
[ 1.255643] saradc c1108680.saradc: nominal=768, value=765
[ 1.255689] saradc c1108680.saradc: nominal=1023, value=1022
[ 1.255692] saradc c1108680.saradc: calibration end: coef=4072
[ 1.255751] remote: Driver init
[ 1.255990] gpio_key- gpio_key_probe
[ 1.256003] gpio-key c8100000.gpio_keypad: gpio_key: find key_name=0 fail
[ 1.256014] gpio-key: probe of c8100000.gpio_keypad failed with error -22
[ 1.256403] input: cec_input as /devices/virtual/input/input0
[ 1.256584] cectx c810023c.aocec: aml_cec_probe(): can't find hdmirx
[ 1.259792] 6--------------------------------------------------------
[ 1.259794] 6odroid_sysfs_init(321) : Sleep Enable !!
[ 1.259795] 6--------------------------------------------------------
[ 1.259954] input: vt-input as /devices/virtual/input/input1
[ 1.260020] 6Virtual-Key input driver registered!!
[ 1.260470] enter aml_soc_platform_pcm2bt_probe
[ 1.260753] divider=16,frac=33920000,SDMval=4523
[ 1.260878] enter aml_pcm_dai_probe
[ 1.260924] [aml-spdif-dai]enter aml_dai_spdif_init
[ 1.260983] aml_spdif_probe
[ 1.261104] enter spdif_dit_probe
[ 1.261717] odroid_hdmi_snd odroid_hdmi: dit-hifi <-> I2S mapping ok
[ 1.518913] GACT probability on
[ 1.521712] Mirror/redirect action on
[ 1.524547] u32 classifier
[ 1.525048] hub 1-1:1.0: USB hub found
[ 1.525335] hub 1-1:1.0: 4 ports detected
[ 1.533053] Performance counters on
[ 1.536082] input device check on
[ 1.539366] Actions configured
[ 1.542484] TCP: cubic registered
[ 1.545740] NET: Registered protocol family 17
[ 1.548850] NET: Registered protocol family 15
[ 1.549451] sd: clk 83333333 SDR mode tuning start
[ 1.550695] rx_tuning_result[0][0] = 10
[ 1.551104] rx_tuning_result[0][1] = 10
[ 1.551511] rx_tuning_result[0][2] = 10
[ 1.551922] rx_tuning_result[0][3] = 10
[ 1.552331] rx_tuning_result[0][4] = 10
[ 1.552738] rx_tuning_result[0][5] = 10
[ 1.553159] rx_tuning_result[0][6] = 10
[ 1.553566] rx_tuning_result[0][7] = 10
[ 1.553976] rx_tuning_result[0][8] = 10
[ 1.554425] rx_tuning_result[0][10] = 10
[ 1.554833] rx_tuning_result[0][11] = 10
[ 1.554835] best_win_start =10, best_win_size =11
[ 1.554838] sd_emmc_regs->gclock =0x100024c, sd_emmc_regs->gadjust =0x32000
[ 1.554842] sd: gclock =0x100024c, gdelay=0x0
[ 1.554843] gadjust=0x32000
[ 1.554851] sd: new ultra high speed SDR104 SDHC card at address e624
[ 1.555159] mmcblk0: sd:e624 SM32G 29.7 GiB
[ 1.603824] Bluetooth: RFCOMM TTY layer initialized
[ 1.605294] mmcblk0: p1 p2
[ 1.609629] Bluetooth: RFCOMM socket layer initialized
[ 1.612546] Bluetooth: RFCOMM ver 1.11
[ 1.612745] aml_emmc_hw_reset 1356
[ 1.618534] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[ 1.621655] Bluetooth: BNEP filters: protocol multicast
[ 1.626151] Bluetooth: BNEP socket layer initialized
[ 1.629208] [aml_sd_emmc_irq] emmc: resp_timeout,vstat:0x2800,virqc:3fff
[ 1.629209] aml_sd_emmc_data_thread 2155 emmc: cmd:1
[ 1.638553] emmc: error -110 whilst initialising MMC card
[ 1.638566] Bluetooth: HIDP (Human Interface Emulation) ver 1.2
[ 1.638574] Bluetooth: HIDP socket layer initialized
[ 1.638638] NET: Registered protocol family 35
[ 1.638840] Key type dns_resolver registered
[ 1.639198] Registering SWP/SWPB emulation handler
[ 1.639491] registered taskstats version 1
[ 1.639558] AppArmor: AppArmor sha1 policy hashing enabled
[ 1.639867] Mali DRM initialize, driver name: mali_drm, version 2.1
[ 1.640065] [drm] Initialized mali_drm 2.1.1 20140306 on minor 0
[ 1.640076] Mali DRM initialize, driver name: mali_drm, version 2.1
[ 1.640208] [drm] Initialized mali_drm 2.1.1 20140306 on minor 1
[ 1.640358] rtc_hctosys: unable to open rtc device (rtc0)
[ 1.641517] 6enter meson_pm_probe!
[ 1.641584] meson_pm_probe done
[ 1.641799] ALSA device list:
[ 1.641801] #0: ODROID-HDMI
[ 1.693427] Freeing unused kernel memory: 920K (ffffffc001be5000 - ffffffc001ccb000)
[ 1.732830] random: systemd-udevd: uninitialized urandom read (16 bytes read, 24 bits of entropy available)
[ 1.737888] random: systemd-udevd: uninitialized urandom read (16 bytes read, 24 bits of entropy available)
[ 1.741348] random: systemd-udevd: uninitialized urandom read (16 bytes read, 24 bits of entropy available)
[ 1.743725] random: udevadm: uninitialized urandom read (16 bytes read, 25 bits of entropy available)
[ 1.743785] random: udevadm: uninitialized urandom read (16 bytes read, 25 bits of entropy available)
[ 1.751437] random: systemd-udevd: uninitialized urandom read (16 bytes read, 26 bits of entropy available)
[ 1.777005] random: systemd-udevd: uninitialized urandom read (16 bytes read, 29 bits of entropy available)
[ 1.780496] random: systemd-udevd: uninitialized urandom read (16 bytes read, 30 bits of entropy available)
[ 1.785007] random: systemd-udevd: uninitialized urandom read (16 bytes read, 30 bits of entropy available)
[ 1.788507] random: systemd-udevd: uninitialized urandom read (16 bytes read, 31 bits of entropy available)
[ 1.813041] usb 1-1.2: new high-speed USB device number 3 using dwc_otg
[ 1.955973] usb-storage 1-1.2:1.0: USB Mass Storage device detected
[ 1.959878] scsi0 : usb-storage 1-1.2:1.0
[ 2.463817] random: nonblocking pool is initialized
[ 2.600528] vout_serve: vmode set to 2160p60hz
[ 2.607839] vout_serve: don't set the same mode as current.
[ 2.620265] vout_serve: vmode set to 2160p60hz
[ 2.628118] vout_serve: don't set the same mode as current.
[ 2.823117] EXT4-fs (mmcblk0p2): mounted filesystem without journal. Opts: (null)
[ 2.963743] scsi 0:0:0:0: Direct-Access WD My Book 25EE 4007 PQ: 0 ANSI: 6
[ 2.969855] scsi 0:0:0:1: Enclosure WD SES Device 4007 PQ: 0 ANSI: 6
[ 2.971584] sd 0:0:0:0: [sda] Spinning up disk...
[ 3.183090] switch_vpu_mem_pd: viu_vd1 OFF
[ 3.187384] switch_vpu_mem_pd: afbc_dec OFF
[ 3.191529] switch_vpu_mem_pd: di_post OFF
[ 3.195640] switch_vpu_mem_pd: viu_vd2 OFF
[ 3.473880] systemd[1]: System time before build time, advancing clock.
[ 3.536608] systemd[1]: Inserted module 'autofs4'
[ 3.568536] NET: Registered protocol family 10
[ 3.577568] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 3.617102] 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=hybrid)
[ 3.626757] systemd[1]: Detected architecture arm64.
[ 3.667471] systemd[1]: Set hostname to <DietPi>.
[ 3.966787] systemd[1]: File /lib/systemd/system/systemd-journald.service:12 configures an IP firewall (IPAddressDeny=any), but the local system does not support BPF/cgroup based firewalling.
[ 3.971702] systemd[1]: Proceeding WITHOUT firewalling in effect! (This warning is only shown for the first loaded unit using IP firewalling.)
[ 3.983021] .
[ 4.002270] systemd[1]: sysinit.target: Wants dependency dropin /lib/systemd/system/sysinit.target.wants/systemd-sysusers.service is not a symlink, ignoring.
[ 4.176588] systemd[1]: /lib/systemd/system/fail2ban.service:12: PIDFile= references path below legacy directory /var/run/, updating /var/run/fail2ban/fail2ban.pid → /run/fail2ban/fail2ban.pid; please update the unit file accordingly.
[ 4.199331] systemd[1]: /lib/systemd/system/haveged.service:19: Unknown lvalue 'ProtectHostname' in section 'Service', ignoring
[ 4.205103] systemd[1]: /lib/systemd/system/haveged.service:20: Unknown lvalue 'ProtectKernelLogs' in section 'Service', ignoring
[ 4.215164] systemd[1]: Set up automount Arbitrary Executable File Formats File System Automount Point.
[ 4.227550] systemd[1]: Listening on Journal Socket (/dev/log).
[ 4.240797] systemd[1]: Created slice User and Session Slice.
[ 4.253334] systemd[1]: Listening on Journal Audit Socket.
[ 4.265365] systemd[1]: Reached target Remote File Systems.
[ 4.277856] systemd[1]: Listening on initctl Compatibility Named Pipe.
[ 4.291436] systemd[1]: Created slice system-tor.slice.
[ 4.304001] systemd[1]: Reached target Slices.
[ 4.316566] systemd[1]: Started Dispatch Password Requests to Console Directory Watch.
[ 4.329558] systemd[1]: Listening on Journal Socket.
[ 4.344354] systemd[1]: Mounting Kernel Debug File System...
[ 4.360052] systemd[1]: Starting Remount Root and Kernel File Systems...
[ 4.376285] systemd[1]: Mounting POSIX Message Queue File System...
[ 4.394263] systemd[1]: Starting Load Kernel Modules...
[ 4.410802] systemd[1]: Starting Create list of required static device nodes for the current kernel...
[ 4.428015] systemd[1]: Starting Restore / save the current clock...
[ 4.450211] systemd[1]: Starting Nameserver information manager...
[ 4.466708] systemd[1]: haveged.service: Failed to run 'start' task: Read-only file system
[ 4.473823] systemd[1]: haveged.service: Failed with result 'resources'.
[ 4.481200] systemd[1]: Failed to start Entropy Daemon based on the HAVEGE algorithm.
[ 4.501419] systemd[1]: Listening on udev Kernel Socket.
[ 4.514733] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
[ 4.528284] systemd[1]: Reached target Local Encrypted Volumes.
[ 4.541867] systemd[1]: Reached target Paths.
[ 4.564894] systemd[1]: Mounting Huge Pages File System...
[ 4.581056] systemd[1]: Starting Set the console keyboard layout...
[ 4.597944] systemd[1]: Condition check resulted in Set Up Additional Binary Formats being skipped.
[ 4.598728] systemd[1]: Created slice system-getty.slice.
[ 4.618677] systemd[1]: Listening on Syslog Socket.
[ 4.634765] systemd[1]: Starting Journal Service...
[ 4.647955] systemd[1]: Reached target Swap.
[ 4.660857] systemd[1]: Listening on udev Control Socket.
[ 4.675642] systemd[1]: Starting udev Coldplug all Devices...
[ 4.690415] systemd[1]: Mounted Kernel Debug File System.
[ 4.704222] systemd[1]: Started Remount Root and Kernel File Systems.
[ 4.717133] systemd[1]: Mounted POSIX Message Queue File System.
[ 4.729857] systemd[1]: Started Journal Service.
[ 4.993041] .
[ 5.263814] gpiomem-meson c8834000.gpiomem: Initialised: Registers at 0xc8834000
[ 5.290983] Driver for 1-wire Dallas network protocol.
[ 5.347854] sd 0:0:0:0: Attached scsi generic sg0 type 0
[ 5.353704] scsi 0:0:0:1: Attached scsi generic sg1 type 13
[ 5.373347] ionvideo open
[ 5.455921] systemd-journald[219]: Received request to flush runtime journal from PID 1
[ 5.573308] ionvideo_stop_generating!!!!
[ 5.578402] ionvideo release
[ 5.931075] 8021q: 802.1Q VLAN Support v1.8
[ 6.003025] .
[ 6.021160] cfg80211: Calling CRDA to update world regulatory domain
[ 6.061588] eth0: device MAC address xx:xx:xx:xx:xx:xx
[ 7.013042] .....
[ 11.063416] stmmaceth c9410000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
[ 12.063067] ........ready
[ 19.133940] sd 0:0:0:0: [sda] Very big device. Trying to use READ CAPACITY(16).
[ 19.134565] sd 0:0:0:0: [sda] 15628052480 512-byte logical blocks: (8.00 TB/7.27 TiB)
[ 19.134711] sd 0:0:0:0: [sda] 4096-byte physical blocks
[ 19.135425] sd 0:0:0:0: [sda] Write Protect is off
[ 19.135525] sd 0:0:0:0: [sda] Mode Sense: 47 00 10 08
[ 19.136181] sd 0:0:0:0: [sda] No Caching mode page found
[ 19.136294] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 19.137425] sd 0:0:0:0: [sda] Very big device. Trying to use READ CAPACITY(16).
[ 20.512954] sda: sda1
[ 20.514404] sd 0:0:0:0: [sda] Very big device. Trying to use READ CAPACITY(16).
[ 20.516155] sd 0:0:0:0: [sda] Attached SCSI disk
Very strange:
[ 2.823117] EXT4-fs (mmcblk0p2): mounted filesystem without journal. Opts: (null)
This is not normal, as ext4 is a journaling file system. Like: https://superuser.com/q/855547/1183051
[ 4.704222] systemd[1]: Started Remount Root and Kernel File Systems.
That should be the point where the root file system is mounted R/W as defined in /etc/fstab:
systemctl cat -- -.mount
This should show Options=noatime,lazytime,rw
.
And does it work to manually remount the rootfs with proper options? mount -o remount,rw /
Another topic: The haveged daemon fails to start, not sure if it's related:
journalctl -u haveged
I have read your link, then if I understand well, I have to format the partition correctly. 🤔
I saw that my /etc/fstab file is empty. Then I filled it up following debian guide
I tried to modify it with the options you told me but I didn't solve the problem.
root@DietPi:/home/dietpi# cat /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
UUID=e139ce78-9841-40fe-8823-96a304a09859rootfs / ext4 noatime,lazytime,rw 0 1
Yes using mount -o remount,rw /
works but it doesn't persist after reboot.
Unfortunately, there is no log entry for havegd (the readonly mode may prevent writing ones)
root@DietPi:/home/dietpi# journalctl -u haveged
-- Logs begin at Thu 2019-02-14 13:14:35 CET, end at Thu 2019-02-14 13:15:38 CET. --
-- No entries --
dietpi@DietPi:~$ dmesg
[ 0.000000] Initializing cgroup subsys cpuset
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Initializing cgroup subsys cpuacct
[ 0.000000] Linux version 3.16.85+ (root@odroid-stretch64) (gcc version 6.3.0 20170516 (Debian 6.3.0-18+deb9u1) ) #1 SMP PREEMPT Tue Jun 30 19:02:35 CEST 2020
[ 0.000000] CPU: AArch64 Processor [410fd034] revision 4
[ 0.000000] secmon: share mem setup
[ 0.000000] Reserved memory: initialized node linux,secmon, compatible id aml_secmon_memory
[ 0.000000] __reserved_mem_alloc_size: linux,meson-fb
[ 0.000000] fb: Reserved memory: created fb at 0x0000000078000000, size 128 MiB
[ 0.000000] Reserved memory: initialized node linux,meson-fb, compatible id amlogic, fb-memory
[ 0.000000] __reserved_mem_alloc_size: linux,di
[ 0.000000] DI reserved memory: created CMA memory pool at 0x0000000076200000, size 30 MiB
[ 0.000000] Reserved memory: initialized node linux,di, compatible id amlogic, di-mem
[ 0.000000] __reserved_mem_alloc_size: linux,ion-dev
[ 0.000000] linux,ion-dev add multi user:ffffffc001d75580
[ 0.000000] ion_dev mem setup
[ 0.000000] Reserved memory: initialized node linux,ion-dev, compatible id amlogic, idev-mem
[ 0.000000] ppmgr share mem setup
[ 0.000000] linux,ion-dev add multi user:ffffffc001d7aa20
[ 0.000000] Reserved memory: initialized node linux,ion-dev, compatible id amlogic, idev-mem
[ 0.000000] __reserved_mem_alloc_size: linux,codec_mm_cma
[ 0.000000] Reserved memory: created CMA memory pool at 0x0000000067c00000, size 188 MiB
[ 0.000000] Reserved memory: initialized node linux,codec_mm_cma, compatible id shared-dma-pool
[ 0.000000] __reserved_mem_alloc_size: linux,picdec
[ 0.000000] Reserved memory: created CMA memory pool at 0x0000000064c00000, size 48 MiB
[ 0.000000] Reserved memory: initialized node linux,picdec, compatible id shared-dma-pool
[ 0.000000] __reserved_mem_alloc_size: linux,codec_mm_reserved
[ 0.000000] codec_mm:vdec: reserved mem setup
[ 0.000000] Reserved memory: initialized node linux,codec_mm_reserved, compatible id amlogic, codec-mm-reserved
[ 0.000000] __reserved_mem_alloc_size: linux,jpegenc_cma
[ 0.000000] Reserved memory: created CMA memory pool at 0x000000005e400000, size 36 MiB
[ 0.000000] Reserved memory: initialized node linux,jpegenc_cma, compatible id shared-dma-pool
[ 0.000000] cma: CMA: reserved 8 MiB at 5dc00000
[ 0.000000] On node 0 totalpages: 486912
[ 0.000000] Normal zone: 6664 pages used for memmap
[ 0.000000] Normal zone: 0 pages reserved
[ 0.000000] Normal zone: 486912 pages, LIFO batch:31
[ 0.000000] psci: probing for conduit method from DT.
[ 0.000000] psci: Using PSCI v0.1 Function IDs from DT
[ 0.000000] PERCPU: Embedded 12 pages/cpu s19712 r8192 d21248 u49152
[ 0.000000] pcpu-alloc: s19712 r8192 d21248 u49152 alloc=12*4096
[ 0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 480248
[ 0.000000] Kernel command line: root=/dev/mmcblk0p2 rootwait ro console=tty0 no_console_suspend hdmimode=2160p60hz m_bpp=32 vout= fsck.repair=yes net.ifnames=0 elevator=noop disablehpd=true
[ 0.000000] logo: get hdmimode: 2160p60hz
[ 0.000000] PID hash table entries: 4096 (order: 3, 32768 bytes)
[ 0.000000] Dentry cache hash table entries: 262144 (order: 9, 2097152 bytes)
[ 0.000000] Inode-cache hash table entries: 131072 (order: 8, 1048576 bytes)
[ 0.000000] Memory: 1474236K/1947648K available (8538K kernel code, 895K rwdata, 3124K rodata, 923K init, 4119K bss, 473412K reserved)
[ 0.000000] Virtual kernel memory layout:
vmalloc : 0xffffff8000000000 - 0xffffffbbffff0000 (245759 MB)
vmemmap : 0xffffffbc00000000 - 0xffffffbc01a40000 ( 26 MB)
modules : 0xffffffbffc000000 - 0xffffffc000000000 ( 64 MB)
memory : 0xffffffc000000000 - 0xffffffc078000000 ( 1920 MB)
.init : 0xffffffc001be5000 - 0xffffffc001ccbd00 ( 924 kB)
.text : 0xffffffc001080000 - 0xffffffc001be4804 ( 11667 kB)
.data : 0xffffffc001ccc000 - 0xffffffc001dabcb0 ( 896 kB)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[ 0.000000] Preemptible hierarchical RCU implementation.
[ 0.000000] NR_IRQS:64 nr_irqs:64 0
[ 0.000005] sched_clock: 32 bits at 1000kHz, resolution 1000ns, wraps every 2147483648000ns
[ 0.000024] mclk->mux_reg =ffffff8000002990,mclk->reg =ffffff800000a994
[ 0.000074] local timer MESON TIMER-G mclk->mux_reg =ffffff8000002990,mclk->reg =ffffff800000c998
[ 0.000096] local timer MESON TIMER-H mclk->mux_reg =ffffff8000002990,mclk->reg =ffffff800000e99c
[ 0.000118] local timer MESON TIMER-I mclk->mux_reg =ffffff8000002990,mclk->reg =ffffff80000109a0
[ 0.000129] Switching to timer-based delay loop
[ 0.000365] Console: colour dummy device 80x25
[ 0.000879] console [tty0] enabled
[ 0.003212] allocated 8388608 bytes of page_cgroup
[ 0.003221] please try 'cgroup_disable=memory' option if you don't want memory cgroups
[ 0.003239] Calibrating delay loop (skipped), value calculated using timer frequency.. 2.00 BogoMIPS (lpj=10000)
[ 0.003258] pid_max: default: 32768 minimum: 301
[ 0.003315] Security Framework initialized
[ 0.003345] AppArmor: AppArmor initialized
[ 0.003377] Mount-cache hash table entries: 4096 (order: 3, 32768 bytes)
[ 0.003390] Mountpoint-cache hash table entries: 4096 (order: 3, 32768 bytes)
[ 0.003870] Initializing cgroup subsys memory
[ 0.003946] Initializing cgroup subsys devices
[ 0.003970] Initializing cgroup subsys freezer
[ 0.003985] Initializing cgroup subsys net_cls
[ 0.004002] Initializing cgroup subsys blkio
[ 0.004018] Initializing cgroup subsys perf_event
[ 0.004030] Initializing cgroup subsys net_prio
[ 0.004054] Initializing cgroup subsys hugetlb
[ 0.004066] Initializing cgroup subsys debug
[ 0.004117] ftrace: allocating 30672 entries in 120 pages
[ 0.031212] hw perfevents: enabled with arm/armv8-pmuv3 PMU driver, 7 counters available
[ 0.071938] Meson chip version = RevC (1F:C - 0:0)
[ 0.090851] CPU1: Booted secondary processor
[ 0.110824] CPU2: Booted secondary processor
[ 0.130818] CPU3: Booted secondary processor
[ 0.130857] Brought up 4 CPUs
[ 0.130891] SMP: Total of 4 processors activated.
[ 0.131352] devtmpfs: initialized
[ 0.136798] futex hash table entries: 1024 (order: 4, 65536 bytes)
[ 0.139695] pinctrl core: initialized pinctrl subsystem
[ 0.139959] regulator-dummy: no parameters
[ 0.146732] device-tree: Duplicate name in efusekey, renamed to "key0#1"
[ 0.146779] device-tree: Duplicate name in efusekey, renamed to "key1#1"
[ 0.146811] device-tree: Duplicate name in efusekey, renamed to "key2#1"
[ 0.146843] device-tree: Duplicate name in efusekey, renamed to "key3#1"
[ 0.149234] NET: Registered protocol family 16
[ 0.150199] register canvas platform driver
[ 0.150216] codec:ignore bus ops for cpu=25
[ 0.150225] codec:ignore bus ops for cpu=29
[ 0.150235] codec:register amports ops for bus[0]
[ 0.150243] codec:register amports ops for bus[4]
[ 0.150252] codec:register amports ops for bus[3]
[ 0.150261] codec:register amports ops for bus[2]
[ 0.150269] codec:register amports ops for bus[1]
[ 0.150278] codec:register amports ops for bus[13]
[ 0.150287] codec:register amports ops for bus[2]
[ 0.150296] codec:register amports ops for bus[14]
[ 0.150329] register rdma platform driver
[ 0.150631] vdso: 2 pages (1 code, 1 data) at base ffffffc001cd2000
[ 0.150668] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[ 0.151275] DMA: preallocated 256 KiB pool for atomic allocations
[ 0.152461] software IO TLB: mapped [mem 0x5ac00000-0x5b000000] (4MB)
[ 0.152478] Serial: AMBA PL011 UART driver
[ 0.152558] hdmitx: system: amhdmitx_init
[ 0.152567] hdmitx: system: Ver: 2014May6
[ 0.152606] tv_vout: tv_init_module
[ 0.152620] tv_vout: major number 254 for disp
[ 0.152630] vout_notify: vout_register_server
[ 0.152639] tv_vout: register tv module server ok
[ 0.152675] codec_mm:codec_mm_module_init
[ 0.153030] gxbb clk HIU base is 0xffffff8000058000
[ 0.153041] gxbb clk ao base is 0xffffff800005a000
[ 0.153088] register mpll_clk_out0 success done
[ 0.153101] register mpll_clk_out1 success done
[ 0.153113] register mpll_clk_out2 success done
[ 0.153305] register sys pll success done
[ 0.153354] clkrate [ xtal ] : 24000000Hz
[ 0.153363] clkrate [ 32Khz ] : 32000Hz
[ 0.153373] clkrate [ clk81 ] : 166666666Hz
[ 0.153382] clkrate [ fixed_pll ] : 2000000000Hz
[ 0.153392] clkrate [ fclk_div2 ] : 1000000000Hz
[ 0.153401] clkrate [ fclk_div3 ] : 666666000Hz
[ 0.153410] clkrate [ fclk_div4 ] : 500000000Hz
[ 0.153419] clkrate [ fclk_div5 ] : 400000000Hz
[ 0.153428] clkrate [ fclk_div7 ] : 285714000Hz
[ 0.153458] gxbb clock initialization complete
[ 0.153507] msr_clk_reg0=ffffff800005c75c,msr_clk_reg2=ffffff800005e764
[ 0.154357] amlogic iomap probe done
[ 0.154694] Init pinux probe!
[ 0.155699] pinmux-gxbb c1109880.pinmux: Probed amlogic pinctrl driver
[ 0.156029] genirq: Setting trigger mode 8 for irq 241 failed (gic_set_type+0x0/0x148)
[ 0.156051] genirq: Setting trigger mode 8 for irq 242 failed (gic_set_type+0x0/0x148)
[ 0.156131] genirq: Setting trigger mode 8 for irq 241 failed (gic_set_type+0x0/0x148)
[ 0.156152] genirq: Setting trigger mode 8 for irq 242 failed (gic_set_type+0x0/0x148)
[ 0.156352] dvfs [scpi_dvfs_get_opps] - new count 6, max_freq 0
[ 0.156897] codec:codec map io source 0x00000000c1100000,size=1048576 to 0xffffff8000680000
[ 0.156922] codec:codec map io source 0x00000000c8820000,size=65536 to 0xffffff80000a0000
[ 0.156943] codec:codec map io source 0x00000000c883c000,size=8192 to 0xffffff8000094000
[ 0.156976] codec:codec map io source 0x00000000c8100000,size=1048576 to 0xffffff8000800000
[ 0.156999] codec:codec map io source 0x00000000d0100000,size=262144 to 0xffffff8000980000
[ 0.157020] codec:codec map io source 0x00000000c8838000,size=1024 to 0xffffff800007e000
[ 0.157093] codec_mm has 2 memory regions
[ 0.157110] codec_mm codec_mm: assigned reserved memory node linux,codec_mm_cma ok
[ 0.157126] codec_mm:codec_mm_reserved_init 0000000060b00000->0000000064c00000
[ 0.157140] codec_mm codec_mm: assigned reserved memory node linux,codec_mm_reserved ok
[ 0.157152] codec_mm:codec_mm_probe mem init done
[ 0.157165] codec_mm:add reserve memory 0000000060b00000(aligned 0000000060b00000) size=4100000(aligned 4100000)
[ 0.157196] codec_mm has 2 memory regions
[ 0.157208] codec_mm codec_mm: assigned reserved memory node linux,codec_mm_cma ok
[ 0.157223] codec_mm:codec_mm_reserved_init 0000000060b00000->0000000064c00000
[ 0.157236] codec_mm codec_mm: assigned reserved memory node linux,codec_mm_reserved ok
[ 0.157248] codec_mm:codec_mm reserved memory probed done
[ 0.157257] codec_mm:codec_mm_probe ok
[ 0.158081] VPU driver version: v01
[ 0.158091] vpu driver detect cpu type: gxbaby
[ 0.158108] load vpu_clk in dts: 666667000Hz(7)
[ 0.158139] vpu_probe OK
[ 0.158385] hdmitx: system: amhdmitx_probe
[ 0.158647] hdmitx hpd irq = 89
[ 0.158854] hdmitx20: Mapped PHY: 0xc0800000
[ 0.158866] hdmitx20: Mapped PHY: 0xc1104400
[ 0.158889] hdmitx20: Mapped PHY: 0xc8100000
[ 0.158900] hdmitx20: Mapped PHY: 0xc8834000
[ 0.158911] hdmitx20: Mapped PHY: 0xc883a000
[ 0.158921] hdmitx20: Mapped PHY: 0xc883c000
[ 0.158936] hdmitx20: Mapped PHY: 0xd0100000
[ 0.158948] hdmitx20: Mapped PHY: 0xda83a000
[ 0.158963] hdmitx: alread display in uboot 0x10
[ 0.158991] avmute set to 1
[ 0.159397] canvas_probe reg=00000000c8838000,size=400
[ 0.159415] canvas maped reg_base =ffffff80000b2000
[ 0.163651] rdma_probe
[ 0.231125] SCSI subsystem initialized
[ 0.231317] usbcore: registered new interface driver usbfs
[ 0.231361] usbcore: registered new interface driver hub
[ 0.231436] usbcore: registered new device driver usb
[ 0.231532] media: Linux media interface: v0.10
[ 0.231570] Linux video capture interface: v2.00
[ 0.231638] pps_core: LinuxPPS API ver. 1 registered
[ 0.231648] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <[email protected]>
[ 0.231675] PTP clock support registered
[ 0.231880] logo: logo_init
[ 0.231947] Advanced Linux Sound Architecture Driver Initialized.
[ 0.232312] Bluetooth: Core ver 2.19
[ 0.232343] NET: Registered protocol family 31
[ 0.232353] Bluetooth: HCI device and connection manager initialized
[ 0.232369] Bluetooth: HCI socket layer initialized
[ 0.232382] Bluetooth: L2CAP socket layer initialized
[ 0.232410] Bluetooth: SCO socket layer initialized
[ 0.232434] NetLabel: Initializing
[ 0.232442] NetLabel: domain hash size = 128
[ 0.232451] NetLabel: protocols = UNLABELED CIPSOv4
[ 0.232492] NetLabel: unlabeled traffic allowed by default
[ 0.232993] Switched to clocksource Timer-E
[ 0.264427] AppArmor: AppArmor Filesystem Enabled
[ 0.269758] NET: Registered protocol family 2
[ 0.270280] TCP established hash table entries: 16384 (order: 5, 131072 bytes)
[ 0.270380] TCP bind hash table entries: 16384 (order: 6, 262144 bytes)
[ 0.270572] TCP: Hash tables configured (established 16384 bind 16384)
[ 0.270652] TCP: reno registered
[ 0.270664] UDP hash table entries: 1024 (order: 3, 32768 bytes)
[ 0.270706] UDP-Lite hash table entries: 1024 (order: 3, 32768 bytes)
[ 0.270860] NET: Registered protocol family 1
[ 0.271078] RPC: Registered named UNIX socket transport module.
[ 0.271088] RPC: Registered udp transport module.
[ 0.271097] RPC: Registered tcp transport module.
[ 0.271105] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.271282] Unpacking initramfs...
[ 0.483175] hdmitx: plugin
[ 0.487994] Freeing initrd memory: 6768K (ffffffc073895000 - ffffffc073f31000)
[ 0.497099] kvm [1]: Using HYP init bounce page @59764000
[ 0.497321] kvm [1]: interrupt-controller@c4304000 IRQ25
[ 0.497505] kvm [1]: kvm_arch_timer: can't find DT node
[ 0.497581] kvm [1]: error initializing Hyp mode: -19
[ 0.498237] audit: initializing netlink subsys (disabled)
[ 0.498324] audit: type=2000 audit(0.480:1): initialized
[ 0.499052] HugeTLB registered 2 MB page size, pre-allocated 0 pages
[ 0.504363] VFS: Disk quotas dquot_6.5.2
[ 0.504512] Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[ 0.506418] NFS: Registering the id_resolver key type
[ 0.506467] Key type id_resolver registered
[ 0.506476] Key type id_legacy registered
[ 0.506497] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[ 0.506551] msgmni has been set to 3452
[ 0.507671] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 247)
[ 0.507815] io scheduler noop registered (default)
[ 0.507830] io scheduler deadline registered
[ 0.507933] io scheduler cfq registered
[ 0.508672] meson-rng c8834000.rng: hwrng registered
[ 0.508997] enter cpufreq
[ 0.509042] probe cpufreq okay
[ 0.509190] dvfs [scpi_dvfs_get_opps] - new count 6, max_freq 0
[ 0.510200] aml-thermal aml-sensor@0: min state:500000 400 1 2
[ 0.510420] aml-thermal aml-sensor@0: gpu coef:437, pp:3
[ 0.515515] aml-thermal aml-sensor@0: cdev1 set upper to 3
[ 0.515528] aml-thermal aml-sensor@0: cdev2 set upper to 3
[ 0.515540] aml-thermal aml-sensor@0: cdev0 set upper to 3
[ 0.518140] [drm] Initialized drm 1.1.0 20060810
[ 0.518194] mali-utgard d00c0000.mali: max pp is 3
[ 0.518205] mali-utgard d00c0000.mali: min pp is 3
[ 0.518217] mali-utgard d00c0000.mali: min clk is 4
[ 0.518248] mali-utgard d00c0000.mali: hiu io source 0xffffff80000e4000
[ 0.518266] mali-utgard d00c0000.mali: hiu io source 0xffffff80000e6000
[ 0.518280] mali-utgard d00c0000.mali: num of pp used most of time 3
[ 0.518292] mali-utgard d00c0000.mali: clock dvfs table size is 6
[ 0.518305] mali-utgard d00c0000.mali: max clk set 4
[ 0.518316] mali-utgard d00c0000.mali: max clk is 4
[ 0.518327] mali-utgard d00c0000.mali: turbo clk set to 5
[ 0.518337] mali-utgard d00c0000.mali: turbo clk is 5
[ 0.518348] mali-utgard d00c0000.mali: default clk is 4
[ 0.518422] mali-utgard d00c0000.mali: ====================0====================
clk_freq= 125000000, clk_parent=fclk_div4, voltage=1150, keep_count=5, threshod=<30 120>, clk_sample=125
[ 0.518449] mali-utgard d00c0000.mali: ====================1====================
clk_freq= 285000000, clk_parent=fclk_div7, voltage=1150, keep_count=5, threshod=<100 190>, clk_sample=285
[ 0.518475] mali-utgard d00c0000.mali: ====================2====================
clk_freq= 400000000, clk_parent=fclk_div5, voltage=1150, keep_count=5, threshod=<152 207>, clk_sample=400
[ 0.518502] mali-utgard d00c0000.mali: ====================3====================
clk_freq= 500000000, clk_parent=fclk_div4, voltage=1150, keep_count=5, threshod=<180 220>, clk_sample=500
[ 0.518528] mali-utgard d00c0000.mali: ====================4====================
clk_freq= 666000000, clk_parent=fclk_div3, voltage=1150, keep_count=5, threshod=<210 236>, clk_sample=666
[ 0.518555] mali-utgard d00c0000.mali: ====================5====================
clk_freq= 792000000, clk_parent= gp0_pll, voltage=1150, keep_count=5, threshod=<230 255>, clk_sample=792
[ 0.523933] cdev3 set upper to 2
[ 0.523950] cdev4 set upper to 2
[ 0.523959] gpu cooling register okay with err=0
[ 0.524018] cdev5 set upper to 1
[ 0.524027] gpu core cooling register okay with err=0
[ 0.524231] Mali: Mali device driver loaded
[ 0.524412] UMP: UMP device driver -v3.16.7-12289-g64c8062a2c3d loaded
[ 0.526930] loop: module loaded
[ 0.527268] mtdoops: mtd device (mtddev=name/number) must be supplied
[ 0.527849] stmmac - user ID: 0x11, Synopsys ID: 0x37
[ 0.527859] Ring mode enabled
[ 0.527868] DMA HW capability register supported
[ 0.527876] Normal descriptors
[ 0.527887] RX Checksum Offload Engine supported (type 2)
[ 0.527896] TX Checksum insertion supported
[ 0.527904] Wake-Up On Lan supported
[ 0.527941] Enable RX Mitigation via HW Watchdog Timer
[ 0.545764] libphy: stmmac: probed
[ 0.545800] eth0: PHY ID 001cc916 at 0 IRQ POLL (stmmac-0:00) active
[ 0.545812] eth0: PHY ID 001cc916 at 7 IRQ POLL (stmmac-0:07)
[ 0.546189] usbcore: registered new interface driver cdc_ether
[ 0.546268] usbcore: registered new interface driver cdc_ncm
[ 0.546419] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 0.546434] ehci-h20ahb: H20AHB-EHCI Host Controller driver
[ 0.546545] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 0.546629] usbcore: registered new interface driver cdc_acm
[ 0.546640] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
[ 0.546696] usbcore: registered new interface driver usb-storage
[ 0.546811] usbcore: registered new interface driver usbserial
[ 0.546846] usbcore: registered new interface driver usbserial_generic
[ 0.546874] usbserial: USB Serial support registered for generic
[ 0.547202] mousedev: PS/2 mouse device common for all mice
[ 0.547563] i2c /dev entries driver
[ 0.547701] hdmitx: edid: raw data are all zeroes
[ 0.547712] EDID Parser:
[ 0.547745] EDID BlockCount=0
[ 0.547752] hdmitx: edid: HDMI: set default vic
[ 0.547770] hdmitx: video: get current mode: null
[ 0.547780] hdmtix: set audio
[ 0.547795] hdmitx tx_aud_src = 0
[ 0.547827] hdmitx aud_n_para = 24576
[ 0.547851] hdmitx set channel status
[ 0.548062] IR Sharp protocol handler initialized
[ 0.548436] device-mapper: uevent: version 1.0.3
[ 0.548644] device-mapper: ioctl: 4.27.0-ioctl (2013-10-30) initialised: [email protected]
[ 0.548938] ledtrig-cpu: registered to indicate activity on CPUs
[ 0.549004] hidraw: raw HID events driver (C) Jiri Kosina
[ 0.549167] usbcore: registered new interface driver usbhid
[ 0.549177] usbhid: USB HID core driver
[ 0.549436] ashmem: initialized
[ 0.549600] ==uart0 reg addr = ffffff80002344c0
[ 0.549629] c81004c0.serial: ttyS0 at MMIO 0xc81004c0 (irq = 225, base_baud = 1500000) is a meson_uart
[ 0.549824] ==uart1 reg addr = ffffff80002364c0
[ 0.549844] c11084c0.serial: ttyS1 at MMIO 0xc11084c0 (irq = 58, base_baud = 1500000) is a meson_uart
[ 0.590165] dwc_otg: usb1: type: 1 speed: 0, config: 0, dma: 0, id: 1, phy: c0000020, ctrl: 0
[ 0.592847] dwc_otg: Core Release: 3.10a
[ 0.592859] dwc_otg: Setting default values for core params
[ 0.592878] dwc_otg: curmode: 1, host_only: 1
[ 0.595118] dwc_otg: Using Buffer DMA mode
[ 0.595129] dwc_otg: OTG VER PARAM: 1, OTG VER FLAG: 1
[ 0.595140] dwc_otg: Working on port type = HOST
[ 0.595286] dwc_otg dwc2_b: DWC OTG Controller
[ 0.595309] dwc_otg dwc2_b: new USB bus registered, assigned bus number 1
[ 0.595335] dwc_otg dwc2_b: irq 63, io mem 0x00000000
[ 0.595345] dwc_otg: -------hcd->flags.d32 = 0
[ 0.595371] dwc_otg: Init: Port Power? op_state=1
[ 0.595380] dwc_otg: Init1: Power Port (0)
[ 0.595889] hub 1-0:1.0: USB hub found
[ 0.595918] hub 1-0:1.0: 1 port detected
[ 0.596126] dwc_otg: usb0: type: 0 speed: 0, config: 0, dma: 0, id: 0, phy: c0000000, ctrl: 0
[ 0.608747] dwc_otg: Core Release: 3.10a
[ 0.608760] dwc_otg: Setting default values for core params
[ 0.608774] dwc_otg: curmode: 1, host_only: 0
[ 0.620995] dwc_otg: Using Buffer DMA mode
[ 0.621006] dwc_otg: OTG VER PARAM: 1, OTG VER FLAG: 1
[ 0.621016] dwc_otg: Working on port type = OTG
[ 0.621025] dwc_otg: Current port type: SLAVE
[ 0.621093] dwc_otg dwc2_a: DWC OTG Controller
[ 0.621115] dwc_otg dwc2_a: new USB bus registered, assigned bus number 2
[ 0.621140] dwc_otg dwc2_a: irq 62, io mem 0x00000000
[ 0.621534] hub 2-0:1.0: USB hub found
[ 0.621560] hub 2-0:1.0: 1 port detected
[ 0.621703] dwc_otg: Dedicated Tx FIFOs mode
[ 0.621899] dwc_otg: using timer detectid change, ffffffc05a943800
[ 0.622094] fb: osd_init_module
[ 0.622190] fb: viu vsync irq: 35
[ 0.622207] meson-fb has 1 memory regions
[ 0.623396] meson-fb meson-fb: assigned reserved memory node linux,meson-fb ok
[ 0.623417] logo: get initial logo vmode: 2160p60hz
[ 0.623431] tv_vout: tv_set_current_vmode[707]fps_target_mode=12
[ 0.623442] tv_vout: mode is 12,sync_duration_den=1,sync_duration_num=60
[ 0.623457] switch_vpu_mem_pd: vencp ON
[ 0.623467] tv_vout: TV mode 1080p60hz selected.
[ 0.623479] tv_vout: new mode =1080p60hz set ok
[ 0.623489] vout_serve: vinfo mode is: 1080p60hz
[ 0.623499] tv_vout: tv_set_current_vmode[707]fps_target_mode=24
[ 0.623510] tv_vout: mode is 24,sync_duration_den=1,sync_duration_num=60
[ 0.623521] switch_vpu_mem_pd: vencp ON
[ 0.623529] tv_vout: TV mode 2160p60hz selected.
[ 0.623540] tv_vout: new mode =2160p60hz set ok
[ 0.623548] vout_serve: vinfo mode is: 2160p60hz
[ 0.623560] switch_vpu_mem_pd: viu_osd1 ON
[ 0.623568] switch_vpu_mem_pd: viu_osd2 ON
[ 0.623577] switch_vpu_mem_pd: viu_osd_scale ON
[ 0.623673] osd_rdma: osd_rdma_init: rmda_table p=0x5dc49000,op=0x5dc49000 , v=0xffffff8000266000
[ 0.623706] hdmitx: video: get current mode: 2160p60hz
[ 0.623722] hdmitx: video: get current mode: 2160p60hz
[ 0.623754] hdmitx: system: already init VIC = 0 Now VIC = 97
[ 0.623767] hdmitx: rx no SCDC present indicator
[ 0.625783] hdmitx: ddc rd8b error 0x54 0x01
[ 0.627798] hdmitx: ddc rd8b error 0x54 0x01
[ 0.627809] hdmirx version is 1.4 or below
[ 0.627817] hdmitx: system: set pll
[ 0.627825] hdmitx: system: param->VIC:97
[ 0.637875] hdmitx: set clk of VIC = 97 done
[ 0.637886] hdmitx: set enc for VIC: 97
[ 0.637906] hdmitx_set_hw[4470] set VIC = 97
[ 0.764998] hdmitx: system: phy setting done
[ 0.765013] hdmitx: system: irq 80000001
[ 0.793037] dwc_otg: Indeed it is in host mode hprt0 = 00021501
[ 0.804004] Sink is HDMI device
[ 0.804016] Source reading EDID
[ 0.832996] hdmtix: set audio
[ 0.833011] hdmitx tx_aud_src = 0
[ 0.833043] hdmitx aud_n_para = 24576
[ 0.833071] hdmitx set channel status
[ 0.833132] fb: validating vinfo tables
[ 0.833149] hdmitx: warning: tvenc phy 27000 vid 54000 enc 27000 pix 27000 clocks not equal
[ 0.833165] fb: vinfo 0 480i60hz, hdmi 7 720x480i60hz, 720x480-60 4:3 27000
[ 0.833181] fb: warning: vinfo 1 480i_rpt, 720x480-60 4:3 27000, hdmi 11 no para
[ 0.833200] fb: warning: vinfo 2 480cvbs, 720x480-60 4:3 27000, no hdmi vic
[ 0.833215] fb: warning: vinfo 4 480p_rpt, 720x480-60 4:3 27000, hdmi 36 no para
[ 0.833229] hdmitx: warning: tvenc phy 27000 vid 54000 enc 27000 pix 27000 clocks not equal
[ 0.833243] fb: vinfo 5 576i50hz, hdmi 22 720x576i50hz, 720x576-50 4:3 27000
[ 0.833256] fb: warning: vinfo 6 576i_rpt, 720x576-50 4:3 27000, hdmi 26 no para
[ 0.833273] fb: warning: vinfo 7 576cvbs, 720x576-50 4:3 27000, no hdmi vic
[ 0.833287] fb: warning: vinfo 9 576p_rpt, 720x576-50 4:3 27000, hdmi 38 no para
[ 0.833319] fb: warning: vinfo 23 4k2k5g, 3840x2160-50 16:9 495000, no hdmi vic
[ 0.833344] fb: warning: hdmi 109 (0x000 + 109) no video para
[ 0.833355] hdmitx: warning: tvenc no clk for 109 hdmi
[ 0.833364] fb: info: used 3840x1080p120hz for 29 4k1k120hz
[ 0.833377] fb: vinfo 29 4k1k120hz, hdmi 109 3840x1080p120hz, 3840x1080-120 32:9 594000
[ 0.833394] fb: warning: vinfo 30 4k1k120hz420, 3840x1080-120 32:9 594000, no hdmi vic
[ 0.833412] fb: warning: hdmi 110 (0x000 + 110) no video para
[ 0.833422] hdmitx: warning: tvenc no clk for 110 hdmi
[ 0.833434] fb: warning: hdmi 3840x1080-50 594000 != 3840x1080-100 594000 vinfo
[ 0.833446] fb: info: used 3840x1080p100hz for 31 4k1k100hz
[ 0.833457] fb: vinfo 31 4k1k100hz, hdmi 110 3840x1080p100hz, 3840x1080-100 32:9 594000
[ 0.833475] fb: warning: vinfo 32 4k1k100hz420, 3840x1080-100 32:9 594000, no hdmi vic
[ 0.833493] fb: warning: vinfo 33 4k05k240hz, 3840x1080-240 64:9 594000, no hdmi vic
[ 0.833510] fb: warning: vinfo 34 4k05k240hz420, 3840x540-240 64:9 594000, no hdmi vic
[ 0.833528] fb: warning: vinfo 35 4k05k200hz, 3840x540-200 64:9 594000, no hdmi vic
[ 0.833545] fb: warning: vinfo 36 4k05k200hz420, 3840x1080-200 64:9 594000, no hdmi vic
[ 0.833565] hdmitx: warning: tvenc 51830 != 51450 hdmi
[ 0.833576] fb: vinfo 41 1024x600p60hz, hdmi 772 1024x600p60hz, 1024x600-60 17:10 51450
[ 0.833615] hdmitx: warning: 480x320p 800 263 0 tvenc !=
[ 0.833626] hdmitx: 480x320p 800 525 0 hdmi
[ 0.833636] hdmitx: warning: 100 120 95 8 100 4 tvenc !=
[ 0.833646] hdmitx: 100 120 189 8 100 8 hdmi
[ 0.833656] hdmitx: warning: tvenc TOTAL_LINES 263 != 320+107 (320+107) hdmi
[ 0.833669] fb: vinfo 56 480x320p60hz, hdmi 787 480x320p60hz, 480x320-60 3:2 25200
[ 0.833683] hdmitx: warning: 480x272p 800 263 0 tvenc !=
[ 0.833694] hdmitx: 480x272p 800 525 0 hdmi
[ 0.833703] hdmitx: warning: 100 120 119 8 100 4 tvenc !=
[ 0.833713] hdmitx: 100 120 238 8 100 7 hdmi
[ 0.833723] hdmitx: warning: tvenc TOTAL_LINES 263 != 272+131 (272+131) hdmi
[ 0.833736] fb: vinfo 57 480x272p60hz, hdmi 788 480x272p60hz, 480x272-60 3:2 25200
[ 0.833776] fb: warning: vinfo 62 wsxga, 1440x900-60 8:5 88750, no hdmi vic
[ 0.833796] hdmitx: warning: no tvenc for hdmi vic 790
[ 0.833807] fb: vinfo 69 custombuilt, hdmi 790 custombuilt, 0x0-0 16:9 0
[ 0.833817] fb: found 64 vinfos
[ 0.833824] fb: validating hdmi format tables
[ 0.833834] fb: warning: hdmi 2 (0x000 + 2) no format para
[ 0.833846] fb: warning: hdmi 6 (0x000 + 6) no format para
[ 0.833857] hdmitx: warning: tvenc phy 27000 vid 54000 enc 27000 pix 27000 clocks not equal
[ 0.833872] fb: info: hdmi 7 720x480i60hz, 1440x240-59 27000
[ 0.833885] fb: warning: hdmi 17 (0x000 + 17) no format para
[ 0.833897] fb: warning: hdmi 21 (0x000 + 21) no format para
[ 0.833908] hdmitx: warning: tvenc phy 27000 vid 54000 enc 27000 pix 27000 clocks not equal
[ 0.833922] fb: info: hdmi 22 720x576i50hz, 1440x288-50 27000
[ 0.833968] fb: warning: hdmi 109 (0x000 + 109) no video para
[ 0.833979] hdmitx: warning: tvenc no clk for 109 hdmi
[ 0.833989] fb: info: hdmi 109 3840x1080p120hz, 3840x1080-120 594000
[ 0.834000] fb: warning: hdmi 110 (0x000 + 110) no video para
[ 0.834010] hdmitx: warning: tvenc no clk for 110 hdmi
[ 0.834020] fb: info: hdmi 110 3840x1080p100hz, 3840x1080-50 594000
[ 0.834032] fb: warning: hdmi 111 (0x000 + 111) no video para
[ 0.834043] hdmitx: warning: 3840x1080p 4400 562 0 tvenc !=
[ 0.834054] hdmitx: 3840x540p 4400 562 0 hdmi
[ 0.834063] hdmitx: warning: tvenc TOTAL_LINES 562 != 1080+22 (1080+22) hdmi
[ 0.834074] hdmitx: warning: tvenc no clk for 111 hdmi
[ 0.834085] fb: info: hdmi 111 3840x540p240hz, 3840x540-120 594000
[ 0.834095] fb: warning: hdmi 112 (0x000 + 112) no video para
[ 0.834106] hdmitx: warning: 3840x1080p 5280 562 0 tvenc !=
[ 0.834116] hdmitx: 3840x540p 5280 562 0 hdmi
[ 0.834126] hdmitx: warning: tvenc TOTAL_LINES 562 != 1080+22 (1080+22) hdmi
[ 0.834137] hdmitx: warning: tvenc no clk for 112 hdmi
[ 0.834147] fb: info: hdmi 112 3840x540p200hz, 3840x540-50 594000
[ 0.834198] fb: warning: hdmi 354 (0x100 + 98) no video para
[ 0.834209] fb: warning: hdmi 354 (0x100 + 98) no format para
[ 0.834226] hdmitx: warning: tvenc 51830 != 51450 hdmi
[ 0.834237] fb: info: hdmi 772 1024x600p60hz, 1024x600-60 51450
[ 0.834257] hdmitx: warning: 480x320p 800 263 0 tvenc !=
[ 0.834267] hdmitx: 480x320p 800 525 0 hdmi
[ 0.834277] hdmitx: warning: 100 120 95 8 100 4 tvenc !=
[ 0.834287] hdmitx: 100 120 189 8 100 8 hdmi
[ 0.834297] hdmitx: warning: tvenc TOTAL_LINES 263 != 320+107 (320+107) hdmi
[ 0.834308] fb: info: hdmi 787 480x320p60hz, 480x320-60 25200
[ 0.834319] hdmitx: warning: 480x272p 800 263 0 tvenc !=
[ 0.834329] hdmitx: 480x272p 800 525 0 hdmi
[ 0.834339] hdmitx: warning: 100 120 119 8 100 4 tvenc !=
[ 0.834349] hdmitx: 100 120 238 8 100 7 hdmi
[ 0.834359] hdmitx: warning: tvenc TOTAL_LINES 263 != 272+131 (272+131) hdmi
[ 0.834370] fb: info: hdmi 788 480x272p60hz, 480x272-60 25200
[ 0.834380] fb: found 226 valid hdmi format parameters
[ 0.834388] fb: validation done.
[ 0.834397] fb: osd_probe vinfo:ffffffc001d70b38
[ 0.834406] fb: Frame buffer memory assigned at
[ 0.834414] fb: phy: 0x78000000, vir:0xffffff8001780000, size=98304K
[ 0.834429] fb: osd_set_res_bootargs : mode 24
[ 0.834439] fb: hdmi vic for 24 2160p60hz is: 97
[ 0.834448] fb: hdmi format para for 97 is: 97 3840x2160p60hz
[ 0.834458] fb: hdmi format para for 97 is: 97 3840x2160p60hz
[ 0.834468] fb: warning: hdmi 3840x2160 != 1920x1080 fb
[ 0.834478] fb: mode "3840x2160-60"
[ 0.834486] fb: # D: 594000, H: 135000, V: 60000
[ 0.834496] fb: geometry 1920 1080 1920 3240 32
[ 0.834507] fb: timings 1683 296 176 72 8 88 10
[ 0.834515] fb: endmode
[ 0.834522] fb: fb def : 1920 1080 1920 3240 32
[ 0.834532] fb: init fbdev bpp is:32
[ 0.849739] fb: ---------------clear fb0 memory
[ 0.882220] fb: osd[0] canvas.idx =0x40
[ 0.882222] fb: osd[0] canvas.addr=0x78000000
[ 0.882223] fb: osd[0] canvas.width=7680
[ 0.882225] fb: osd[0] canvas.height=3240
[ 0.903460] Console: switching to colour frame buffer device 240x67
[ 0.933158] fb: Frame buffer memory assigned at
[ 0.933236] fb: phy: 0x7e000000, vir:0xffffff8007800000, size=1024K
[ 0.966411] fb: osd probe OK
[ 0.966605] vout_serve: vout_init_module
[ 0.966753] vout_serve: meson_vout_probe
[ 0.966839] vout_serve: create vout attribute OK
[ 0.966980] ge2d: ge2d_init_module
[ 0.967045] ge2d: ge2d_dev major:241
[ 0.967285] ge2d: ge2d clock is 400 MHZ
[ 0.967354] ge2d: ge2d: pdev=ffffffc05bf31000, irq=182, rstc=0xffffffc073867740, clk=ffffffc05be4c480
[ 0.967532] ge2d: mapped phy: 0xd0160000
[ 0.967602] ge2d: ge2d start monitor
[ 0.967753] ge2d: ge2d workqueue monitor start
[ 0.967889] BLASTER Driver Init
[ 0.968084] secmon has 1 memory regions
[ 0.968178] secmon: share in base: 0xffffff8000268000, share out base: 0xffffff800026a000
[ 0.968315] secmon secmon: assigned reserved memory node linux,secmon ok
[ 0.968423] secmon: probe done
[ 0.968595] storage: storage in base: 0xffffff8007980000
[ 0.968683] storage: storage out base: 0xffffff8007a00000
[ 0.968772] storage: storage block base: 0xffffff8007a80000
[ 0.968863] storage: probe done!
[ 0.969667] aml_sd_emmc_probe: line 2898
[ 0.969735] mmc driver version: 1.07, 2015-01-21: fix a bug in tuning which caused eMMC data CRC error
[ 0.970236] aml_sd_emmc_reg_init 621
[ 0.970399] pdata->caps 60507
[ 0.970455] pdata->caps2 0
[ 0.970505] get property: ocr_avail, value:0x00200080
[ 0.970609] get property: f_min, value:0x00061a80
[ 0.970714] get property: f_max, value:0x0510ff40
[ 0.970819] get property: max_req_size, value:0x00020000
[ 0.970925] get property: irq_in, value:0x00000003
[ 0.971030] get property: irq_out, value:0x00000005
[ 0.974415] get property: power_level, value:0x00000001
[ 0.977748] get property: gpio_cd, str:
[ 0.981053] get property: gpio_power, str:
[ 0.984354] get property: pinname, str:sd
[ 0.987605] get property: jtag_pin, str:
[ 0.990788] get property: card_type, value:0x00000005
[ 0.993011] usb 1-1: new high-speed USB device number 2 using dwc_otg
[ 0.993260] dwc_otg: Indeed it is in host mode hprt0 = 00001101
[ 1.000411] get property: gpio_dat3, str:
[ 1.003672] get property: gpio_volsw, str:
[ 1.073052] [aml_sd_emmc_probe] aml_sd_emmc_probe() success!
[ 1.076300] aml_sd_emmc_probe: line 2898
[ 1.083243] [aml_is_card_insert] card IN
[ 1.083263] [aml_is_card_insert] card IN
[ 1.083823] aml_sd_emmc_reg_init 621
[ 1.083958] pdata->caps 80000547
[ 1.083965] pdata->caps2 a1
[ 1.083969] get property: ocr_avail, value:0x00200080
[ 1.083972] get property: f_min, value:0x00061a80
[ 1.083974] get property: f_max, value:0x0bebc200
[ 1.083978] get property: max_req_size, value:0x00020000
[ 1.083984] get property: pinname, str:emmc
[ 1.083987] get property: card_type, value:0x00000001
[ 1.083993] get property: gpio_dat3, str:
[ 1.083997] get property: hw_reset, str:
[ 1.143080] [aml_sd_emmc_probe] aml_sd_emmc_probe() success!
[ 1.149738] ion_dev has 1 memory regions
[ 1.165292] codec:Amlogic A/V streaming port init
[ 1.169268] codec:get gate demux control ok ffffffc073823940
[ 1.172506] codec:get gate parser_top control ok ffffffc0738239c0
[ 1.175738] codec:get gate vpu_intr control ok ffffffc073823a40
[ 1.178968] codec:get gate vdec control ok ffffffc073823ac0
[ 1.182467] codec:[tsync_pcr_init]init success.
[ 1.185780] codec:regist mpeg12 codec profile
[ 1.189066] codec:regist mpeg4 codec profile
[ 1.192313] codec:amvdec_vc1 module init
[ 1.195731] codec:regist vc1 codec profile
[ 1.198918] codec:amvdec_h264 module init
[ 1.202091] codec:regist h264 codec profile
[ 1.205220] codec:amvdec_h264mvc module init
[ 1.208382] codec:regist hmvc codec profile
[ 1.211494] codec:amvdec_h264_4k2k module init
[ 1.214784] codec:regist h264_4k2k codec profile
[ 1.217845] codec:amvdec_h265 module init
[ 1.220880] codec:regist hevc codec profile
[ 1.223898] codec:regist mjpeg codec profile
[ 1.226838] codec:amvdec_real module init
[ 1.229817] codec:regist real codec profile
[ 1.232755] codec:amvdec_avs module init
[ 1.235842] codec:regist avs codec profile
[ 1.238812] amvenc_avc_probe -- reserved memory config fail.
[ 1.241699] amvenc_avc - cma memory pool size: 40 MB
[ 1.244542] encode_wq_init.
[ 1.247349] encode start monitor.
[ 1.250254] encode workqueue monitor start.
[ 1.250422] jpegenc module init
[ 1.250477] jpegenc probe start.
[ 1.250480] jpegenc has 1 memory regions
[ 1.250500] jpegenc jpegenc: assigned reserved memory node linux,jpegenc_cma ok
[ 1.250503] jpegenc - cma memory pool size: 36 MB
[ 1.250515] jpegenc memory config sucess, buff size is 0x2400000, level: 8M
[ 1.250516] jpegenc_wq_init.
[ 1.250592] jpegenc probe end.
[ 1.250682] codec:picdec_driver_probe called.
[ 1.250685] picdec has 1 memory regions
[ 1.250692] picdec picdec: assigned reserved memory node linux,picdec ok
[ 1.250694] codec:picdec_driver_probe done.
[ 1.250695] codec:reserved memory config fail , use CMA .
[ 1.252094] codec:cma memory is 64c00000 , size is 3000000
[ 1.252316] codec:0 addr is 64c00000################
[ 1.252323] codec:1 addr is 657dd800################
[ 1.252451] switch_vpu_mem_pd: vpu_arb ON
[ 1.252701] codec:create_ge2d_work_queue video task ok
[ 1.253037] codec:register clk_set_setting cpu[31]
[ 1.253304] di_module_init ok.
[ 1.253308] di_module_init: major 236
[ 1.253441] di_probe
[ 1.253561] deinterlace has 1 memory regions
[ 1.253583] di reveser memory 0x76200000, size 30MB.
[ 1.253589] deinterlace deinterlace: assigned reserved memory node linux,di ok
[ 1.253692] rdma_register, rdma_table_addr ffffff8000481000 rdma_table_addr_phy 5dc4e000 reg_buf ffffffc0739fa000
[ 1.253694] rdma_register success, handle 1 table_size 8192
[ 1.253696] di_probe allocate rdma channel 1.
[ 1.253700] DI hw version 2.
[ 1.253709] 0x000000c3:Y=c3,U=0,V=0
[ 1.253710] 0x000000c4:Y=c4,U=0,V=0
[ 1.253712] 0x000000c5:Y=c5,U=0,V=0
[ 1.253714] 0x000000c6:Y=c6,U=0,V=0
[ 1.253715] 0x000000c7:Y=c7,U=0,V=0
[ 1.253717] 0x000000c8:Y=c8,U=0,V=0
[ 1.253719] 0x000000c9:Y=c9,U=0,V=0
[ 1.253722] 0x000000ca:Y=ca,U=0,V=0
[ 1.253724] 0x000000cb:Y=cb,U=0,V=0
[ 1.253726] 0x000000cc:Y=cc,U=0,V=0
[ 1.253729] 0x000000cd:Y=cd,U=0,V=0
[ 1.253730] 0x000000ce:Y=ce,U=0,V=0
[ 1.253732] 0x000000cf:Y=cf,U=0,V=0
[ 1.253878] di_probe here.
[ 1.253892] switch_vpu_mem_pd: di_pre OFF
[ 1.254063] efusekeynum: 4
[ 1.254078] efusekeyname: mac offset: 0 size: 6
[ 1.254084] efusekeyname: mac_bt offset: 6 size: 6
[ 1.254091] efusekeyname: mac_wifi offset: 12 size: 6
[ 1.254097] efusekeyname: usid offset: 18 size: 16
[ 1.254197] efuse efuse: probe OK!
[ 1.254352] 6aml_unifykeys_init done!
[ 1.254358] ppmgr module init func called
[ 1.254408] ppmgr_driver_probe called
[ 1.254411] ppmgr has 1 memory regions
[ 1.254418] init ppmgr memsource 74200000->761fffff
[ 1.254547] ppmgr_probe done
[ 1.254781] ionvideo-000: V4L2 device registered as video13
[ 1.254793] [dsp]register dsp to char divece(257)
[ 1.255097] amaudio: driver amaudio succuess!
[ 1.255106] amlvideo_init called
[ 1.255107] amlvideo_create_instance called
[ 1.255109] v4l2_dev.name=:amlvideo-000
[ 1.255171] amlvideo-000: V4L2 device registered as video10
[ 1.255179]
VECM init
[ 1.255488] saradc c1108680.saradc: initialized by BL30
[ 1.255492] saradc c1108680.saradc: calibration start:
[ 1.255538] saradc c1108680.saradc: nominal=0, value=0
[ 1.255584] saradc c1108680.saradc: nominal=256, value=250
[ 1.255630] saradc c1108680.saradc: nominal=512, value=508
[ 1.255676] saradc c1108680.saradc: nominal=768, value=765
[ 1.255721] saradc c1108680.saradc: nominal=1023, value=1022
[ 1.255724] saradc c1108680.saradc: calibration end: coef=4072
[ 1.255782] remote: Driver init
[ 1.256012] gpio_key- gpio_key_probe
[ 1.256025] gpio-key c8100000.gpio_keypad: gpio_key: find key_name=0 fail
[ 1.256036] gpio-key: probe of c8100000.gpio_keypad failed with error -22
[ 1.256427] input: cec_input as /devices/virtual/input/input0
[ 1.256609] cectx c810023c.aocec: aml_cec_probe(): can't find hdmirx
[ 1.259815] 6--------------------------------------------------------
[ 1.259817] 6odroid_sysfs_init(321) : Sleep Enable !!
[ 1.259819] 6--------------------------------------------------------
[ 1.259974] input: vt-input as /devices/virtual/input/input1
[ 1.260042] 6Virtual-Key input driver registered!!
[ 1.260488] enter aml_soc_platform_pcm2bt_probe
[ 1.260768] divider=16,frac=33920000,SDMval=4523
[ 1.260888] enter aml_pcm_dai_probe
[ 1.260934] [aml-spdif-dai]enter aml_dai_spdif_init
[ 1.260994] aml_spdif_probe
[ 1.261116] enter spdif_dit_probe
[ 1.261730] odroid_hdmi_snd odroid_hdmi: dit-hifi <-> I2S mapping ok
[ 1.518268] GACT probability on
[ 1.521057] Mirror/redirect action on
[ 1.523877] u32 classifier
[ 1.524378] hub 1-1:1.0: USB hub found
[ 1.524668] hub 1-1:1.0: 4 ports detected
[ 1.532319] Performance counters on
[ 1.535374] input device check on
[ 1.538644] Actions configured
[ 1.541752] TCP: cubic registered
[ 1.544991] NET: Registered protocol family 17
[ 1.548090] NET: Registered protocol family 15
[ 1.548868] sd: clk 83333333 SDR mode tuning start
[ 1.550127] rx_tuning_result[0][0] = 10
[ 1.550536] rx_tuning_result[0][1] = 10
[ 1.550945] rx_tuning_result[0][2] = 10
[ 1.551357] rx_tuning_result[0][3] = 10
[ 1.551769] rx_tuning_result[0][4] = 10
[ 1.552177] rx_tuning_result[0][5] = 10
[ 1.552585] rx_tuning_result[0][6] = 10
[ 1.553002] rx_tuning_result[0][7] = 10
[ 1.553411] rx_tuning_result[0][8] = 10
[ 1.553859] rx_tuning_result[0][10] = 10
[ 1.554269] rx_tuning_result[0][11] = 10
[ 1.554272] best_win_start =10, best_win_size =11
[ 1.554274] sd_emmc_regs->gclock =0x100024c, sd_emmc_regs->gadjust =0x32000
[ 1.554279] sd: gclock =0x100024c, gdelay=0x0
[ 1.554280] gadjust=0x32000
[ 1.554288] sd: new ultra high speed SDR104 SDHC card at address e624
[ 1.554591] mmcblk0: sd:e624 SM32G 29.7 GiB
[ 1.602862] Bluetooth: RFCOMM TTY layer initialized
[ 1.604413] mmcblk0: p1 p2
[ 1.608669] Bluetooth: RFCOMM socket layer initialized
[ 1.611582] Bluetooth: RFCOMM ver 1.11
[ 1.611780] aml_emmc_hw_reset 1356
[ 1.617545] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[ 1.620651] Bluetooth: BNEP filters: protocol multicast
[ 1.625136] Bluetooth: BNEP socket layer initialized
[ 1.628188] [aml_sd_emmc_irq] emmc: resp_timeout,vstat:0x2800,virqc:3fff
[ 1.628189] aml_sd_emmc_data_thread 2155 emmc: cmd:1
[ 1.637512] emmc: error -110 whilst initialising MMC card
[ 1.637525] Bluetooth: HIDP (Human Interface Emulation) ver 1.2
[ 1.637534] Bluetooth: HIDP socket layer initialized
[ 1.637600] NET: Registered protocol family 35
[ 1.637798] Key type dns_resolver registered
[ 1.638154] Registering SWP/SWPB emulation handler
[ 1.638443] registered taskstats version 1
[ 1.638515] AppArmor: AppArmor sha1 policy hashing enabled
[ 1.638825] Mali DRM initialize, driver name: mali_drm, version 2.1
[ 1.639026] [drm] Initialized mali_drm 2.1.1 20140306 on minor 0
[ 1.639037] Mali DRM initialize, driver name: mali_drm, version 2.1
[ 1.639167] [drm] Initialized mali_drm 2.1.1 20140306 on minor 1
[ 1.639313] rtc_hctosys: unable to open rtc device (rtc0)
[ 1.640478] 6enter meson_pm_probe!
[ 1.640545] meson_pm_probe done
[ 1.640762] ALSA device list:
[ 1.640764] #0: ODROID-HDMI
[ 1.692300] Freeing unused kernel memory: 920K (ffffffc001be5000 - ffffffc001ccb000)
[ 1.731677] random: systemd-udevd: uninitialized urandom read (16 bytes read, 24 bits of entropy available)
[ 1.736752] random: systemd-udevd: uninitialized urandom read (16 bytes read, 24 bits of entropy available)
[ 1.740223] random: systemd-udevd: uninitialized urandom read (16 bytes read, 24 bits of entropy available)
[ 1.742522] random: udevadm: uninitialized urandom read (16 bytes read, 25 bits of entropy available)
[ 1.742589] random: udevadm: uninitialized urandom read (16 bytes read, 25 bits of entropy available)
[ 1.750302] random: systemd-udevd: uninitialized urandom read (16 bytes read, 26 bits of entropy available)
[ 1.775753] random: systemd-udevd: uninitialized urandom read (16 bytes read, 29 bits of entropy available)
[ 1.779237] random: systemd-udevd: uninitialized urandom read (16 bytes read, 30 bits of entropy available)
[ 1.783798] random: systemd-udevd: uninitialized urandom read (16 bytes read, 30 bits of entropy available)
[ 1.787292] random: systemd-udevd: uninitialized urandom read (16 bytes read, 31 bits of entropy available)
[ 1.813038] usb 1-1.2: new high-speed USB device number 3 using dwc_otg
[ 1.955990] usb-storage 1-1.2:1.0: USB Mass Storage device detected
[ 1.959939] scsi0 : usb-storage 1-1.2:1.0
[ 2.082580] vout_serve: vmode set to 2160p60hz
[ 2.089796] vout_serve: don't set the same mode as current.
[ 2.102054] vout_serve: vmode set to 2160p60hz
[ 2.109845] vout_serve: don't set the same mode as current.
[ 2.313151] EXT4-fs (mmcblk0p2): mounted filesystem without journal. Opts: (null)
[ 2.402167] random: nonblocking pool is initialized
[ 2.903051] systemd[1]: System time before build time, advancing clock.
[ 2.955958] systemd[1]: Inserted module 'autofs4'
[ 2.963985] scsi 0:0:0:0: Direct-Access WD My Book 25EE 4007 PQ: 0 ANSI: 6
[ 2.970218] scsi 0:0:0:1: Enclosure WD SES Device 4007 PQ: 0 ANSI: 6
[ 2.971959] sd 0:0:0:0: [sda] Spinning up disk...
[ 2.988023] NET: Registered protocol family 10
[ 2.997084] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 3.033300] 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=hybrid)
[ 3.043103] systemd[1]: Detected architecture arm64.
[ 3.080933] systemd[1]: Set hostname to <DietPi>.
[ 3.183116] switch_vpu_mem_pd: viu_vd1 OFF
[ 3.187904] switch_vpu_mem_pd: afbc_dec OFF
[ 3.192649] switch_vpu_mem_pd: di_post OFF
[ 3.197320] switch_vpu_mem_pd: viu_vd2 OFF
[ 3.370226] systemd[1]: File /lib/systemd/system/systemd-journald.service:12 configures an IP firewall (IPAddressDeny=any), but the local system does not support BPF/cgroup based firewalling.
[ 3.375224] systemd[1]: Proceeding WITHOUT firewalling in effect! (This warning is only shown for the first loaded unit using IP firewalling.)
[ 3.402420] systemd[1]: sysinit.target: Wants dependency dropin /lib/systemd/system/sysinit.target.wants/systemd-sysusers.service is not a symlink, ignoring.
[ 3.564589] systemd[1]: /lib/systemd/system/fail2ban.service:12: PIDFile= references path below legacy directory /var/run/, updating /var/run/fail2ban/fail2ban.pid → /run/fail2ban/fail2ban.pid; please update the unit file accordingly.
[ 3.585106] systemd[1]: /lib/systemd/system/haveged.service:19: Unknown lvalue 'ProtectHostname' in section 'Service', ignoring
[ 3.590688] systemd[1]: /lib/systemd/system/haveged.service:20: Unknown lvalue 'ProtectKernelLogs' in section 'Service', ignoring
[ 3.600445] systemd[1]: Listening on udev Control Socket.
[ 3.612163] systemd[1]: Reached target Remote File Systems.
[ 3.623569] systemd[1]: Listening on initctl Compatibility Named Pipe.
[ 3.635537] systemd[1]: Listening on Journal Socket.
[ 3.650311] systemd[1]: Mounting Huge Pages File System...
[ 3.665770] systemd[1]: Starting Restore / save the current clock...
[ 3.680612] systemd[1]: Mounting Kernel Debug File System...
[ 3.694138] systemd[1]: Created slice system-getty.slice.
[ 3.708773] systemd[1]: Starting Nameserver information manager...
[ 3.721747] systemd[1]: Listening on Journal Socket (/dev/log).
[ 3.736558] systemd[1]: Mounting POSIX Message Queue File System...
[ 3.749463] systemd[1]: Listening on fsck to fsckd communication Socket.
[ 3.764718] systemd[1]: haveged.service: Failed to run 'start' task: Read-only file system
[ 3.771175] systemd[1]: haveged.service: Failed with result 'resources'.
[ 3.778036] systemd[1]: Failed to start Entropy Daemon based on the HAVEGE algorithm.
[ 3.796881] systemd[1]: Listening on udev Kernel Socket.
[ 3.809750] systemd[1]: Set up automount Arbitrary Executable File Formats File System Automount Point.
[ 3.883615] systemd[1]: Created slice system-tor.slice.
[ 3.896646] systemd[1]: Created slice User and Session Slice.
[ 3.909575] systemd[1]: Reached target Slices.
[ 3.922371] systemd[1]: Listening on Syslog Socket.
[ 3.937247] systemd[1]: Starting Create list of required static device nodes for the current kernel...
[ 3.954926] systemd[1]: Starting Load Kernel Modules...
[ 3.970603] systemd[1]: Starting Set the console keyboard layout...
[ 3.983061] .
[ 3.983337] systemd[1]: Condition check resulted in File System Check on Root Device being skipped.
[ 3.998098] systemd[1]: Starting Re
Root and Kernel File Systems...
[ 4.011655] systemd[1]: Started Dispatch Password Requests to Console Directory Watch.
[ 4.025603] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
[ 4.039060] systemd[1]: Reached target Local Encrypted Volumes.
[ 4.052031] systemd[1]: Reached target Paths.
[ 4.074983] systemd[1]: Condition check resulted in Set Up Additional Binary Formats being skipped.
[ 4.083325] systemd[1]: Starting udev Coldplug all Devices...
[ 4.096141] systemd[1]: Listening on Journal Audit Socket.
[ 4.110881] systemd[1]: Starting Journal Service...
[ 4.122842] systemd[1]: Reached target Swap.
[ 4.137343] systemd[1]: Mounted Huge Pages File System.
[ 4.150656] systemd[1]: Started Restore / save the current clock.
[ 4.163482] systemd[1]: Mounted Kernel Debug File System.
[ 4.177425] systemd[1]: Mounted POSIX Message Queue File System.
[ 4.234676] systemd[1]: Started Create list of required static device nodes for the current kernel.
[ 4.247520] systemd[1]: Started Journal Service.
[ 4.795019] gpiomem-meson c8834000.gpiomem: Initialised: Registers at 0xc8834000
[ 4.822224] Driver for 1-wire Dallas network protocol.
[ 4.876839] sd 0:0:0:0: Attached scsi generic sg0 type 0
[ 4.886079] scsi 0:0:0:1: Attached scsi generic sg1 type 13
[ 4.887359] ionvideo open
[ 4.993033] .
[ 5.079608] systemd-journald[226]: Received request to flush runtime journal from PID 1
[ 5.089941] ionvideo_stop_generating!!!!
[ 5.095372] ionvideo release
[ 5.453680] 8021q: 802.1Q VLAN Support v1.8
[ 5.573196] cfg80211: Calling CRDA to update world regulatory domain
[ 5.667895] eth0: device MAC address xx:xx:xx:xx:xx:xx
[ 6.003008] .....
[ 10.663311] stmmaceth c9410000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
[ 11.053047] ......ready
[ 16.103853] sd 0:0:0:0: [sda] Very big device. Trying to use READ CAPACITY(16).
[ 16.104337] sd 0:0:0:0: [sda] 15628052480 512-byte logical blocks: (8.00 TB/7.27 TiB)
[ 16.104473] sd 0:0:0:0: [sda] 4096-byte physical blocks
[ 16.105211] sd 0:0:0:0: [sda] Write Protect is off
[ 16.105304] sd 0:0:0:0: [sda] Mode Sense: 47 00 10 08
[ 16.105988] sd 0:0:0:0: [sda] No Caching mode page found
[ 16.106099] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 16.107237] sd 0:0:0:0: [sda] Very big device. Trying to use READ CAPACITY(16).
[ 17.271994] sda: sda1
[ 17.273565] sd 0:0:0:0: [sda] Very big device. Trying to use READ CAPACITY(16).
I have read your link, then if I understand well, I have to format the partition correctly. 🤔
That would be a radical solution (basically flash DietPi freshly). Not sure if it is possible to recover the journaling function. Ahh probably journaling is disabled in R/O mode? Would totally make sense as this is to track file system changes.
I saw that my /etc/fstab file is empty. Then I filled it up following debian guide
Okay that is a good reason. Please reset your fstab via: dietpi-drive_manager 4
(after mounting rootfs R/W via mount -o remount,rw /
)
Unfortunately, there is no log entry for havegd (the readonly mode may prevent writing ones)
Let's first recover the correct fstab with above step and see if this recovers R/W after reboot.
Then we need to fix your system time: /boot/dietpi/func/run_ntpd 1
Currently not sure if it did not run due to R/O mount, or did you manually disable it?
And then we re-check haveged and see if the C2 probably has a hardware random generator that can be used more effectively (if you are in mood). Not related to your issue, but could be a general enhancements for our C2 systems.
Ok, I deleted what was written in fstab
However, my system doesn't find the command
root@DietPi:/home/dietpi# dietpi-drive_manager 4
bash: dietpi-drive_manager : commande introuvable
For system time, I think it is due to R/O mount because I don't know how to disable it and I don't get the interest.
I would like to add that my folders /boot
and '/DietPi' are empty.
Ah, please do:
mount -o remount,rw / # if not done yet
mount /dev/mmcblk0p1 /boot
. /boot/dietpi/func/dietpi-globals
dietpi-drive_manager 4
Thank you, now I can do all the commands :
root@DietPi:/etc# dietpi-drive_manager 4
[ INFO ] DietPi-Drive_Manager | Detecting drives, please wait...
[ INFO ] DietPi-Drive_Manager | - Detected mounted drive: /dev/mmcblk0p2 > /
[ INFO ] DietPi-Drive_Manager | - Detected mounted drive: /dev/mmcblk0p1 > /boot
[ INFO ] DietPi-Drive_Manager | - Detected unmounted drive: /dev/sda1
# Please use "dietpi-drive_manager" to setup mounts
#----------------------------------------------------------------
# NETWORK
#----------------------------------------------------------------
#----------------------------------------------------------------
# TMPFS
#----------------------------------------------------------------
tmpfs /tmp tmpfs noatime,lazytime,nodev,nosuid,mode=1777
tmpfs /var/log tmpfs size=50M,noatime,lazytime,nodev,nosuid,mode=1777
#----------------------------------------------------------------
# MISC: ecryptfs, vboxsf (VirtualBox shared folder), gluster, bind mounts
#----------------------------------------------------------------
#----------------------------------------------------------------
# SWAPFILE
#----------------------------------------------------------------
#----------------------------------------------------------------
# PHYSICAL DRIVES
#----------------------------------------------------------------
UUID=e139ce78-9841-40fe-8823-96a304a09859 / ext4 noatime,lazytime,rw 0 1
UUID=0966-01D4 /boot vfat noatime,lazytime,rw 0 2
#UUID=8e408268-1231-4e5b-9ead-06979431bc60 /mnt/8e408268-1231-4e5b-9ead-06979431bc60 ext4 noatime,lazytime,rw,nofail,noauto,x-systemd.automount
About system time
_First_
root@DietPi:/etc# /boot/dietpi/func/run_ntpd 1
[ OK ] DietPi-Run_NTPD | systemctl restart systemd-timesyncd
Warning: The unit file, source configuration file or drop-ins of systemd-timesyncd.service changed on disk. Run 'systemctl daemon-reload' to reload units.
[ INFO ] DietPi-Run_NTPD | Waiting for completion of systemd-timesyncd (1/60)
Warning: The unit file, source configuration file or drop-ins of systemd-timesyncd.service changed on disk. Run 'systemctl daemon-reload' to reload units.
_Second_
[ OK ] DietPi-Run_NTPD | systemctl restart systemd-timesyncd
[ INFO ] DietPi-Run_NTPD | Waiting for completion of systemd-timesyncd (1/60)
I think It's normal knowing my system only achieve to communicate with local network.
I have a bug as my dietpi config doesn't detect any ethernet software despite having an ethernet cable plugged in.
●─ Adapter Options ─────────────● │
│ Ethernet : Not Found | [On] | Disconnected │
│ WiFi : Not Found | [Off] | Disconnected
&
No Ethernet hardware was detected on your device.
And now haveged seems to work !
root@DietPi:/etc# systemctl start haveged
root@DietPi:/etc# journalctl -u haveged
-- Logs begin at Thu 2020-12-03 14:26:51 CET, end at Thu 2020-12-03 14:28:09 CET. --
déc. 03 14:28:08 DietPi systemd[1]: Started Entropy Daemon based on the HAVEGE algorithm.
déc. 03 14:28:08 DietPi haveged[1327]: haveged: listening socket at 3
déc. 03 14:28:09 DietPi haveged[1327]: haveged: ver: 1.9.8; arch: generic; vend: ; build: (gcc 9.2.1 CTV); collect: 128K
déc. 03 14:28:09 DietPi haveged[1327]: haveged: cpu: (VC); data: 16K (D); inst: 16K (D); idx: 11/40; sz: 15456/64452
déc. 03 14:28:09 DietPi haveged[1327]: haveged: tot tests(BA8): A:1/1 B:1/1 continuous tests(B): last entropy estimate 8.00294
déc. 03 14:28:09 DietPi haveged[1327]: haveged: fills: 0, generated: 0
Okay, fstab is fine now, great that also haveged works now.
No Ethernet hardware was detected on your device.
This means the Ethernet adapter is indeed not recognised by the kernel, otherwise it would be listed in ls -l /sys/class/net/
as eth0
or something. This is also new, isn't it? I mean you did the DietPi update and APT upgrades before.
Hmm in dmesg it states [ 5.667895] eth0: device MAC address xx:xx:xx:xx:xx:xx
. I hope that not the network interfaces are listed elsewhere with this older kernel version: find /sys -name eth0
Yes I think it is linked because it's what leads me to post here.
because from my understanding of Dietpi-config code, it gets the info here ETH_DEV_INDEX=$(mawk 'NR==1' /run/dietpi/.network)
but as my folder /run/dietpi
doesn't exist, it can't get the info.
I did the command /bin/systemd-tmpfiles --verbose --create --remove --boot --exclude-prefix=/dev
to recreate /run/dietpi
and now my ethernet device is detected.
Though, the real issue is that when I put my ethernet card in DHCP mode as I have DHCP server running on my router. The gateway address is wrong. I did some manipulations until it worked again.
When I changed of ISP a few month ago my router ip address changed from 192.168.0.1 to 192.168.1.1. However, in my system my old gateway address is kept.
In addition, the DNS is 127.0.0.1 but as my pihole is broken too, it can't resolve anything.
To sum up:
the system doesn't boot anymore in R/O mode (thanks :) ).
Pihole has started acting crazy again but I stopped the service to prevent from doing the same thing.
Hmm, the Ethernet hardware detection is done by traversing /sys/class/net/eth*
. Only the active/chosen Ethernet interface and IP is stored to /run/dietpi/.network
.
When I changed of ISP a few month ago my router ip address changed from 192.168.0.1 to 192.168.1.1. However, in my system my old gateway address is kept.
Do you use the router as DHCP server or Pi-hole? Since the router IP changed to a different subnet, all devices, including Pi-hole need to change the IP range as well. And if Pi-hole is acting as DHCP server, then it makes sense that it uses the old stored IP range as defined in it's config files.
But, I am pretty sure you can simply change the IP range in your router settings? This would be simpler than re-configuring Pi-hole and probably other devices which used fixed IP addresses somewhere. Else: pihole -r
> reconfigure
, but assure that you do NOT chose to install Lighttpd as webserver (if you installed it via dietpi-software
). This would break our webserver setup, as Pi-hole implements it a different way. Choosing "No" there will leave the existing webserver (including Pi-hole web interface) setup in place and functional.
In addition, the DNS is 127.0.0.1
If you use that DietPi machine as server only, not as desktop client with browser, then change the DNS server to something upstream, like Cloudflare at 1.1.1.1. Ah I see, with DHCP this is not always possible. This is a good reason to change to static IP, which should work well in most cases. E.g. make a DHCP IP reservation for the Pi-hole machine in the DHCP server, so that it does not assign that IP address to any other device. Then use that IP as static IP on the Pi-hole machine. Then you can set the DNS server as well to an upstream one.
In the past the Pi-hole installer configured the own host machine to use itself for DNS resolving (127.0.0.1), but that is actually no good idea (maintenance or crashes of Pi-hole will lock itself out, as you perfectly recognised) and with recent version as well the installer leaves the hosts DNS as it was.
I got some debug and technical help from my IRL friend @TtuxX (he was following this strange issue) :)
In fact, changing the IP range in my router seemed harder than expected.
I changed my IP address on my router after router reboot & plug/unplug the Dietpi.
However after this, the Dietpi kept the 192.168.1.17 address, whatever the range was (in .0.x or in .1.x) on my router control panel.
After some manipulations, I noticed that with a router set with a "1.x" range, using 192.168.0.1, my internet connection started working again on my Dietpi.
Starting from there where I had a working but weird internet connection, I wanted to change my Dietpi network settings manually, so as to make them match "by force" my router configuration. I did it from dietpi-config with a static lease in dietpi-config with cloudflare dns.
At the same time I reconfigured pi-hole with pihole -r
as you indicated (but don't ask me why haha).
However, doing that I discovered that its IP was still not right and still ".1.x" so i investigated further and typed ip route show
. I got:
That was completely incoherent.
So I ended-up looking for that IP in the system as I had a conviction that it was static somewhere in the config files. I did a grep -lri '192.168.0.1' /etc/
to find the files where this offending IP would still be located, and I found "/etc/dhcpcd.conf
".
I found to my great surprise that there were duplicated and conflicting entries in the file, with conflict from Dietpi and Pi-hole.
I edited the dhcpcd.conf file to remove duplicate entries and Dietpi-config network entry worked again as expected and all my network issues were solved.
I know that my Pi-hole is too old and I must update it in case they fixed conflicting duplicate configurations in the dhcpcd.conf file.
However, do you know if it is possible that Dietpi and possibly Pi-hole do not catch conflicting duplicate configurations for the same interfaces in the dhcpcd.conf file ? Should I report it to Pi-hole (if this kind of check is still missing in the latest Pi-hole versions) ?
So finally for me (apart from the Pi-hole spamming log write), the original issue was solved thanks to your instructions:
https://github.com/MichaIng/DietPi/issues/3877#issuecomment-738240814 then https://github.com/MichaIng/DietPi/issues/3877#issuecomment-738463143
Thank you again for your kind help @MichaIng ! <3
Wow wait, dhcpcd did actually configure your network adapter? It should actually not do that for any network interfaces that is listed in /etc/network/interfaces
without the "manual
" suffix, as then tools from the ifupdown
package, which pulls in the isc-dhcp-server (dhclient) in case, do the configuration.
dhcpcd
is installed by Pi-hole, but should remain inactive with our configuration. Especially do we disable the service after Pi-hole install, but possibly it reactivates itself on package upgrades. Luckily Pi-hole is about to remove dhcpcd from dependencies: https://github.com/pi-hole/pi-hole/pull/3715
For you this means, purge dhcpcd: apt purge dhcpcd5
That's quite strange indeed because I don't have any "manual" suffix written in my file.
Here is my interfaces file :
root@DietPi:/boot# cat /etc/network/interfaces
# Location: /etc/network/interfaces
# Please modify network settings via: dietpi-config
# Or create your own drop-ins in: /etc/network/interfaces.d/
# Drop-in configs
source interfaces.d/*
# Local
auto lo
iface lo inet loopback
# Ethernet
allow-hotplug eth0
iface eth0 inet dhcp
address 192.168.1.17
netmask 255.255.255.0
gateway 192.168.1.1
#dns-nameservers 192.168.1.1
# WiFi
#allow-hotplug wlan0
iface wlan0 inet dhcp
address 0.0.0.0
netmask 0.0.0.0
gateway 0.0.0.0
#dns-nameservers 0.0.0.0
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
Good to know that the issue won't appear in the future. :)
As an epilogue, I think I would have to reformat my system as both packages python-pkg-resources
& python-setuptools
are in "a very bad inconsistent state" following that reinstall Comment in the apt history log. Though, it may be my fault as I possibly ordered dietpi-software to uninstall the wrong software.
After some research on google, I tried a lot of commands with apt/dpkg/aptitude, unfortunately they didn't solve this issue. As you have a lot of knowledge, have you ever encountered such an issue? I would be happy to know your ideas if it doesn't take you much time.
Though, I am aware here may not be the right place. So, if you would like to investigate it further, I may create a topic on dietpi forum or we can talk about in dm.
That's quite strange indeed because I don't have any "manual" suffix written in my file.
What does the following show?
ip l
ip a
journalctl -u dhcpcd
Though, it may be my fault as I possibly ordered dietpi-software to uninstall the wrong software.
Whatever you uninstall/purge, it should never lead to a broken package state or failing APT. I usually bet for some file corruption in such case, or one that was fixed, but the fix included the removal of a file (unlink of an inode).
Error: Sub-process /usr/bin/dpkg returned an error code (1)
I guess the postinst script cannot finish due to a broken or missing file. That could be solvable by removing the script and then reinstalling the package(s):
rm -f /var/lib/dpkg/info/{python-pkg-resources,python-setuptools}.postinst
apt -f install
apt install --reinstall python-pkg-resources python-setuptools
If it fails the same way, then one would need to have a deeper look into those postinst
scripts to see where it is failing and why, e.g. a missing file from a different package, like python-minimal
or such.
Though, I am aware here may not be the right place.
We don't separate it strict. I personally prefer GitHub, but doesn't matter much. For documentation and to possibly reference issues/solutions at a later time, it is great to do it in a public thread, as long as investigation does not imply exposing personal data somehow.
So it is a bid up to you: We could try to track down the issues, which will likely cost some time and there is no guarantee that there will be no other related issue later (other missing or broken files due to the Pi-hole incidence) that we don't see yet. If there is not much custom configs or data to transfer, a fresh reinstall of DietPi could be quicker and sort out potential future issues, but less learning about the system depths 😃.
I think I want to carry on, at least I will understand better how it works :)
Here are the commands regarding the network device
root@DietPi:/boot# ip l
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP mode DEFAULT group default qlen 1000
link/ether xx:xx:xx:xx:xx:xx brd ff:ff:ff:ff:ff:ff
root@DietPi:/boot# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether xx:xx:xx:xx:xx:xx brd ff:ff:ff:ff:ff:ff
inet 192.168.1.17/24 brd 192.168.1.255 scope global dynamic noprefixroute eth0
valid_lft 71738sec preferred_lft 71738sec
Regarding the python issue
root@DietPi:~# apt -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
2 not fully installed or removed.
Need to get 0 B/182 kB of archives.
After this operation, 0 B of additional disk space will be used.
dpkg: error processing package python-pkg-resources (--configure):
package is in a very bad inconsistent state; you should
reinstall it before attempting configuration
dpkg: dependency problems prevent configuration of python-setuptools:
python-setuptools depends on python-pkg-resources (= 40.8.0-1); however:
Package python-pkg-resources is not configured yet.
dpkg: error processing package python-setuptools (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
python-pkg-resources
python-setuptools
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@DietPi:~# apt install --reinstall python-pkg-resources python-setuptools
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 2 reinstalled, 0 to remove and 1 not upgraded.
2 not fully installed or removed.
Need to get 0 B/182 kB of archives.
After this operation, 0 B of additional disk space will be used.
E: Internal Error, No file name for python-setuptools:arm64
Please try the following:
dpkg -P --force-depends python-pkg-resources python-setuptools
apt install python-pkg-resources python-setuptools
dpkg itself can do what apt cannot: Removing/purging a package even that other packages depend on it, without purging all dependencies along with it.
I did the command and it displays what I found yesterday. However; I didn't achieve to solve it.
root@DietPi:/home/dietpi# dpkg -P --force-depends python-pkg-resources python-setuptools
(Reading database ... 34618 files and directories currently installed.)
Removing python-setuptools (40.8.0-1) ...
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
Traceback (most recent call last):
File "/usr/lib/python2.7/site.py", line 554, in <module>
main()
File "/usr/lib/python2.7/site.py", line 536, in main
known_paths = addusersitepackages(known_paths)
File "/usr/lib/python2.7/site.py", line 272, in addusersitepackages
user_site = getusersitepackages()
File "/usr/lib/python2.7/site.py", line 247, in getusersitepackages
user_base = getuserbase() # this will also set USER_BASE
File "/usr/lib/python2.7/site.py", line 237, in getuserbase
USER_BASE = get_config_var('userbase')
File "/usr/lib/python2.7/sysconfig.py", line 587, in get_config_var
return get_config_vars().get(name)
File "/usr/lib/python2.7/sysconfig.py", line 533, in get_config_vars
_init_posix(_CONFIG_VARS)
File "/usr/lib/python2.7/sysconfig.py", line 417, in _init_posix
from _sysconfigdata import build_time_vars
File "/usr/lib/python2.7/_sysconfigdata.py", line 6, in <module>
from _sysconfigdata_nd import *
ImportError: No module named _sysconfigdata_nd
dpkg: error processing package python-setuptools (--purge):
installed python-setuptools package pre-removal script subprocess returned error exit status 1
dpkg: python-pkg-resources: dependency problems, but removing anyway as you requested:
supervisor depends on python-pkg-resources.
speedtest-cli depends on python-pkg-resources.
python-setuptools depends on python-pkg-resources (= 40.8.0-1).
dpkg: error processing package python-pkg-resources (--purge):
package is in a very bad inconsistent state; you should
reinstall it before attempting a removal
Errors were encountered while processing:
python-setuptools
python-pkg-resources
Then the apt install didn't work
apt install log
root@DietPi:/home/dietpi# apt install python-pkg-resources python-setuptools
Reading package lists... Done
Building dependency tree
Reading state information... Done
python-pkg-resources is already the newest version (40.8.0-1).
python-setuptools is already the newest version (40.8.0-1).
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
2 not fully installed or removed.
Need to get 0 B/182 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
dpkg: error processing package python-pkg-resources (--configure):
package is in a very bad inconsistent state; you should
reinstall it before attempting configuration
dpkg: dependency problems prevent configuration of python-setuptools:
python-setuptools depends on python-pkg-resources (= 40.8.0-1); however:
Package python-pkg-resources is not configured yet.
dpkg: error processing package python-setuptools (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
python-pkg-resources
python-setuptools
E: Sub-process /usr/bin/dpkg returned an error code (1)
As long as the purge fails, the reinstall of course fails as well. Hammer method, let's see:
rm -f /var/lib/dpkg/info/{python-pkg-resources,python-setuptools}*
dpkg -P --force-depends python-pkg-resources python-setuptools
apt install --reinstall python2.7-minimal # Let's reinstall one of the base Python packages
# only if the purge succeeds go on with:
apt install python-pkg-resources python-setuptools
I did the first 3 commands with that
The first command printed no specific message
Then the second
root@DietPi:/home/dietpi# dpkg -P --force-depends python-pkg-resources python-setuptools
dpkg: warning: files list file for package 'python-pkg-resources' missing; assuming package has no files currently installed
(Reading database ... 34490 files and directories currently installed.)
Removing python-setuptools (40.8.0-1) ...
dpkg: python-pkg-resources: dependency problems, but removing anyway as you requested:
supervisor depends on python-pkg-resources.
speedtest-cli depends on python-pkg-resources.
dpkg: error processing package python-pkg-resources (--purge):
package is in a very bad inconsistent state; you should
reinstall it before attempting a removal
Errors were encountered while processing:
python-pkg-resources
Even though it failed, I did the third command :
root@DietPi:/home/dietpi# apt install --reinstall python2.7-minimal
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 1 not upgraded.
1 not fully installed or removed.
Need to get 1,292 kB/1,474 kB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 https://deb.debian.org/debian buster/main arm64 python2.7-minimal arm64 2.7.16-2+deb10u1 [1,292 kB]
Fetched 1,292 kB in 0s (4,817 kB/s)
dpkg: warning: files list file for package 'python-pkg-resources' missing; assuming package has no files currently installed
(Reading database ... 34490 files and directories currently installed.)
Preparing to unpack .../python2.7-minimal_2.7.16-2+deb10u1_arm64.deb ...
Unpacking python2.7-minimal (2.7.16-2+deb10u1) over (2.7.16-2+deb10u1) ...
dpkg: error processing package python-pkg-resources (--configure):
package is in a very bad inconsistent state; you should
reinstall it before attempting configuration
Setting up python2.7-minimal (2.7.16-2+deb10u1) ...
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
Traceback (most recent call last):
File "/usr/lib/python2.7/py_compile.py", line 181, in <module>
sys.exit(main())
File "/usr/lib/python2.7/py_compile.py", line 173, in main
compile(filename, doraise=True)
File "/usr/lib/python2.7/py_compile.py", line 106, in compile
with open(file, 'U') as f:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/encodings/__init__.py'
dpkg: error processing package python2.7-minimal (--configure):
installed python2.7-minimal package post-installation script subprocess returned error exit status 1
Processing triggers for man-db (2.8.5-2) ...
Errors were encountered while processing:
python-pkg-resources
python2.7-minimal
E: Sub-process /usr/bin/dpkg returned an error code (1)
So it achieves to remove the python-setuptools
but not the python-pkg-resources
.
I didn't do the fourth command as you told me
Try:
apt install --reinstall libpython2.7-minimal
python2.7-minimal doesn't return error anymore.
Now, only python-pkg-resources
is problematic.
root@DietPi:/home/dietpi# apt install --reinstall libpython2.7-minimal
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 1 not upgraded.
2 not fully installed or removed.
Need to get 395 kB/577 kB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 https://deb.debian.org/debian buster/main arm64 libpython2.7-minimal arm64 2.7.16-2+deb10u1 [395 kB]
Fetched 395 kB in 0s (1,767 kB/s)
dpkg: warning: files list file for package 'python-pkg-resources' missing; assuming package has no files currently installed
(Reading database ... 34490 files and directories currently installed.)
Preparing to unpack .../libpython2.7-minimal_2.7.16-2+deb10u1_arm64.deb ...
Unpacking libpython2.7-minimal:arm64 (2.7.16-2+deb10u1) over (2.7.16-2+deb10u1) ...
dpkg: error processing package python-pkg-resources (--configure):
package is in a very bad inconsistent state; you should
reinstall it before attempting configuration
Setting up libpython2.7-minimal:arm64 (2.7.16-2+deb10u1) ...
Setting up python2.7-minimal (2.7.16-2+deb10u1) ...
Errors were encountered while processing:
python-pkg-resources
E: Sub-process /usr/bin/dpkg returned an error code (1)
Okay probably now the other two packages can be reinstalled:
apt install --reinstall python-pkg-resources python-setuptools
It seems to have been some of the core libraries for Python missing that you reinstalled now. *pressing thumbs*
It did fail, but it gives new error message and may be a new clue. From what I understand the cause is a missing file debpython.version
. I checked in /usr/bin, there is no file named like that.
root@DietPi:/home/dietpi# apt install --reinstall python-pkg-resources python-setuptools
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
python-setuptools-doc
The following NEW packages will be installed:
python-setuptools
0 upgraded, 1 newly installed, 1 reinstalled, 0 to remove and 1 not upgraded.
1 not fully installed or removed.
Need to get 382 kB/564 kB of archives.
After this operation, 1,442 kB of additional disk space will be used.
Get:1 https://deb.debian.org/debian buster/main arm64 python-setuptools all 40.8.0-1 [382 kB]
Fetched 382 kB in 0s (1,950 kB/s)
dpkg: warning: files list file for package 'python-pkg-resources' missing; assuming package has no files currently installed
(Reading database ... 34490 files and directories currently installed.)
Preparing to unpack .../python-pkg-resources_40.8.0-1_all.deb ...
Unpacking python-pkg-resources (40.8.0-1) over (40.8.0-1) ...
Selecting previously unselected package python-setuptools.
Preparing to unpack .../python-setuptools_40.8.0-1_all.deb ...
Unpacking python-setuptools (40.8.0-1) ...
Setting up python-pkg-resources (40.8.0-1) ...
Traceback (most recent call last):
File "/usr/bin/pycompile", line 35, in <module>
from debpython.version import SUPPORTED, debsorted, vrepr, \
ImportError: No module named debpython.version
dpkg: error processing package python-pkg-resources (--configure):
installed python-pkg-resources package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of python-setuptools:
python-setuptools depends on python-pkg-resources (= 40.8.0-1); however:
Package python-pkg-resources is not configured yet.
dpkg: error processing package python-setuptools (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
python-pkg-resources
python-setuptools
E: Sub-process /usr/bin/dpkg returned an error code (1)
Let's reinstall the other larger library
apt install --reinstall libpython2.7-stdlib
# and to be sure
apt install --reinstall python2.7
Both commands printed the same thing : (see below
I don't know if you have the following steps in mind yet.
Else I have found that case which seems similar to me. Do you think it's relevant in my case ? (mainly reinstalling libpython2.7-minimal)
root@DietPi:/usr/bin# apt install --reinstall python2.7
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 1 not upgraded.
2 not fully installed or removed.
Need to get 305 kB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 https://deb.debian.org/debian buster/main arm64 python2.7 arm64 2.7.16-2+deb10u1 [305 kB]
Fetched 305 kB in 0s (1,850 kB/s)
(Reading database ... 34618 files and directories currently installed.)
Preparing to unpack .../python2.7_2.7.16-2+deb10u1_arm64.deb ...
Unpacking python2.7 (2.7.16-2+deb10u1) over (2.7.16-2+deb10u1) ...
Setting up python2.7 (2.7.16-2+deb10u1) ...
Setting up python-pkg-resources (40.8.0-1) ...
Traceback (most recent call last):
File "/usr/bin/pycompile", line 35, in <module>
from debpython.version import SUPPORTED, debsorted, vrepr, \
ImportError: No module named debpython.version
dpkg: error processing package python-pkg-resources (--configure):
installed python-pkg-resources package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of python-setuptools:
python-setuptools depends on python-pkg-resources (= 40.8.0-1); however:
Package python-pkg-resources is not configured yet.
dpkg: error processing package python-setuptools (--configure):
dependency problems - leaving unconfigured
Processing triggers for man-db (2.8.5-2) ...
Processing triggers for mime-support (3.62) ...
Errors were encountered while processing:
python-pkg-resources
python-setuptools
E: Sub-process /usr/bin/dpkg returned an error code (1)
mainly reinstalling libpython2.7-minimal
You did that above already 😄: https://github.com/MichaIng/DietPi/issues/3877#issuecomment-742096757
Yeah, since we already reinstalled all basic Python environment, I'm also out of idea how to do it a soft way. Not sure where "debpython" is coming from but the version.py
scripts is part of the above library.
The other way is to purge Python 2 completely. Can you see what would happen, if this would purge as well some software you need to keep (especially configuration and data)?
apt purge libpython2.7-minimal # Do not hit "y" if any end user software would be purged as well ;)
Purging this library will purge all other Python packages as well as everything depends on it, but hopefully no software you explicitly installed and need.
And not to forget local/pip installs: find /usr/local -name python2.7
Oh, I only checked the previous comment, I should have gone more above
Regarding the purge, I identify 2 softwares samba
& supervisor
.
Reinstalling samba isn't an issue at the moment as I have a pretty basic configuration. However, I am more sceptical about supervisor. what's your opinion ?
In all case, I have already a backup of my system just before we started to manipulate python package. :)
root@DietPi:/usr/bin# apt purge libpython2.7-minimal
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
libarchive13 libjansson4 libldb1 librsync1 libtalloc2 libtdb1 libtevent0 libwbclient0 samba-common tdb-tools
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
libpython-stdlib* libpython2-stdlib* libpython2.7* libpython2.7-minimal* libpython2.7-stdlib* libsmbclient* python* python-crypto* python-dnspython* python-ldb* python-meld3* python-minimal* python-pkg-resources*
python-samba* python-setuptools* python-talloc* python-tdb* python2* python2-minimal* python2.7* python2.7-minimal* rdiff-backup* samba* samba-common-bin* samba-libs* smbclient* speedtest-cli* supervisor*
0 upgraded, 0 newly installed, 28 to remove and 1 not upgraded.
2 not fully installed or removed.
After this operation, 86.8 MB disk space will be freed.
Do you want to continue? [Y/n]
Ah Samba is based on Python 2, that is true. However its config can be backed up easily: mv /etc/samba/smb.conf{,_bak}
Do you use supervisor for MineOS or something else? Because with DietPi v6.34 we switch to a systemd service for controlling MineOS.
I had installed MineOS a long time ago to see the performance on my C2 😄
But now I don't need it. I was afraid of supervisor uninstallation breaking the system.
My /etc/samba has disappeared very strange 🤔
Hopefully, I find it in my dietpi-backup/data/etc folder.
Then I did the purge but there were errors. I did a second and I posted it logs only the package left which are on errors.
apt -log purge
root@DietPi:/mnt/dietpi-backup/data/etc/samba# apt purge libpython2.7-minimal
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
libarchive13 libjansson4 libldb1 librsync1 libtalloc2 libtdb1 libtevent0 libwbclient0 samba-common tdb-tools
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
libpython-stdlib* libpython2-stdlib* libpython2.7* libpython2.7-minimal* libpython2.7-stdlib* libsmbclient* python* python-crypto* python-dnspython* python-ldb* python-meld3* python-minimal* python-pkg-resources*
python-samba* python-setuptools* python-talloc* python-tdb* python2* python2-minimal* python2.7* python2.7-minimal* rdiff-backup* samba* samba-common-bin* samba-libs* smbclient* speedtest-cli* supervisor*
0 upgraded, 0 newly installed, 28 to remove and 1 not upgraded.
2 not fully installed or removed.
After this operation, 86.8 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 34618 files and directories currently installed.)
Removing python-setuptools (40.8.0-1) ...
Removing supervisor (3.3.5-1) ...
Traceback (most recent call last):
File "/usr/bin/pyclean", line 31, in <module>
from debpython import files as dpf
ImportError: No module named debpython
dpkg: error processing package supervisor (--remove):
installed supervisor package pre-removal script subprocess returned error exit status 1
Traceback (most recent call last):
File "/usr/bin/pycompile", line 35, in <module>
from debpython.version import SUPPORTED, debsorted, vrepr, \
ImportError: No module named debpython.version
dpkg: error while cleaning up:
installed supervisor package post-installation script subprocess returned error exit status 1
Removing samba (2:4.9.5+dfsg-5+deb10u1) ...
Removing samba-common-bin (2:4.9.5+dfsg-5+deb10u1) ...
Removing python-samba (2:4.9.5+dfsg-5+deb10u1) ...
Traceback (most recent call last):
File "/usr/bin/pyclean", line 31, in <module>
from debpython import files as dpf
ImportError: No module named debpython
dpkg: error processing package python-samba (--remove):
installed python-samba package pre-removal script subprocess returned error exit status 1
Removing smbclient (2:4.9.5+dfsg-5+deb10u1) ...
Removing libsmbclient:arm64 (2:4.9.5+dfsg-5+deb10u1) ...
Removing python-dnspython (1.16.0-1) ...
Traceback (most recent call last):
File "/usr/bin/pyclean", line 31, in <module>
from debpython import files as dpf
ImportError: No module named debpython
dpkg: error processing package python-dnspython (--remove):
installed python-dnspython package pre-removal script subprocess returned error exit status 1
Removing rdiff-backup (1.2.8-7) ...
Traceback (most recent call last):
File "/usr/bin/pyclean", line 31, in <module>
from debpython import files as dpf
ImportError: No module named debpython
dpkg: error processing package rdiff-backup (--remove):
installed rdiff-backup package pre-removal script subprocess returned error exit status 1
Removing speedtest-cli (2.0.2-1+deb10u1) ...
dpkg: python: dependency problems, but removing anyway as you requested:
supervisor depends on python:any (<< 2.8); however:
Package python is to be removed.
supervisor depends on python:any (>= 2.7~); however:
Package python is to be removed.
supervisor depends on python:any (<< 2.8); however:
Package python is to be removed.
supervisor depends on python:any (>= 2.7~); however:
Package python is to be removed.
rdiff-backup depends on python (>= 2.7).
rdiff-backup depends on python (<< 2.8).
rdiff-backup depends on python (>= 2.7).
rdiff-backup depends on python (<< 2.8).
python-tdb depends on python (<< 2.8).
python-tdb depends on python (>= 2.7~).
python-tdb depends on python:any (<< 2.8).
python-tdb depends on python:any (>= 2.7~).
python-tdb depends on python (<< 2.8).
python-tdb depends on python (>= 2.7~).
python-tdb depends on python:any (<< 2.8).
python-tdb depends on python:any (>= 2.7~).
python-tdb depends on python (<< 2.8).
python-tdb depends on python (>= 2.7~).
python-tdb depends on python:any (<< 2.8).
python-tdb depends on python:any (>= 2.7~).
python-tdb depends on python (<< 2.8).
python-tdb depends on python (>= 2.7~).
python-tdb depends on python:any (<< 2.8).
python-tdb depends on python:any (>= 2.7~).
python-talloc:arm64 depends on python (<< 2.8).
python-talloc:arm64 depends on python (>= 2.7~).
python-talloc:arm64 depends on python:any (<< 2.8).
python-talloc:arm64 depends on python:any (>= 2.7~).
python-talloc:arm64 depends on python (<< 2.8).
python-talloc:arm64 depends on python (>= 2.7~).
python-talloc:arm64 depends on python:any (<< 2.8).
python-talloc:arm64 depends on python:any (>= 2.7~).
python-talloc:arm64 depends on python (<< 2.8).
python-talloc:arm64 depends on python (>= 2.7~).
python-talloc:arm64 depends on python:any (<< 2.8).
python-talloc:arm64 depends on python:any (>= 2.7~).
python-talloc:arm64 depends on python (<< 2.8).
python-talloc:arm64 depends on python (>= 2.7~).
python-talloc:arm64 depends on python:any (<< 2.8).
python-talloc:arm64 depends on python:any (>= 2.7~).
python-samba depends on python (<< 2.8).
python-samba depends on python (>= 2.7~).
python-samba depends on python:any (<< 2.8).
python-samba depends on python:any (>= 2.7~).
python-samba depends on python (<< 2.8).
python-samba depends on python (>= 2.7~).
python-samba depends on python:any (<< 2.8).
python-samba depends on python:any (>= 2.7~).
python-samba depends on python (<< 2.8).
python-samba depends on python (>= 2.7~).
python-samba depends on python:any (<< 2.8).
python-samba depends on python:any (>= 2.7~).
python-samba depends on python (<< 2.8).
python-samba depends on python (>= 2.7~).
python-samba depends on python:any (<< 2.8).
python-samba depends on python:any (>= 2.7~).
python-pkg-resources depends on python:any (<< 2.8).
python-pkg-resources depends on python:any (>= 2.7~).
python-pkg-resources depends on python:any (<< 2.8).
python-pkg-resources depends on python:any (>= 2.7~).
python-meld3 depends on python:any (<< 2.8).
python-meld3 depends on python:any (>= 2.7.5-5~).
python-meld3 depends on python:any (<< 2.8).
python-meld3 depends on python:any (>= 2.7.5-5~).
python-ldb depends on python (<< 2.8).
python-ldb depends on python (>= 2.7~).
python-ldb depends on python:any (<< 2.8).
python-ldb depends on python:any (>= 2.7~).
python-ldb depends on python (<< 2.8).
python-ldb depends on python (>= 2.7~).
python-ldb depends on python:any (<< 2.8).
python-ldb depends on python:any (>= 2.7~).
python-ldb depends on python (<< 2.8).
python-ldb depends on python (>= 2.7~).
python-ldb depends on python:any (<< 2.8).
python-ldb depends on python:any (>= 2.7~).
python-ldb depends on python (<< 2.8).
python-ldb depends on python (>= 2.7~).
python-ldb depends on python:any (<< 2.8).
python-ldb depends on python:any (>= 2.7~).
python-dnspython depends on python:any (<< 2.8).
python-dnspython depends on python:any (>= 2.7~).
python-dnspython depends on python:any (<< 2.8).
python-dnspython depends on python:any (>= 2.7~).
python-crypto depends on python (<< 2.8).
python-crypto depends on python (>= 2.7~).
python-crypto depends on python:any (<< 2.8).
python-crypto depends on python:any (>= 2.7.5-5~).
python-crypto depends on python (<< 2.8).
python-crypto depends on python (>= 2.7~).
python-crypto depends on python:any (<< 2.8).
python-crypto depends on python:any (>= 2.7.5-5~).
python-crypto depends on python (<< 2.8).
python-crypto depends on python (>= 2.7~).
python-crypto depends on python:any (<< 2.8).
python-crypto depends on python:any (>= 2.7.5-5~).
python-crypto depends on python (<< 2.8).
python-crypto depends on python (>= 2.7~).
python-crypto depends on python:any (<< 2.8).
python-crypto depends on python:any (>= 2.7.5-5~).
Removing python (2.7.16-1) ...
Removing libpython-stdlib:arm64 (2.7.16-1) ...
Removing python2 (2.7.16-1) ...
Removing libpython2-stdlib:arm64 (2.7.16-1) ...
dpkg: python-ldb: dependency problems, but removing anyway as you requested:
python-samba depends on python-ldb (>= 2:1.5.1+really1.4.6).
Removing python-ldb (2:1.5.1+really1.4.6-3) ...
Traceback (most recent call last):
File "/usr/bin/pyclean", line 31, in <module>
from debpython import files as dpf
ImportError: No module named debpython
dpkg: error processing package python-ldb (--remove):
installed python-ldb package pre-removal script subprocess returned error exit status 1
dpkg: libpython2.7:arm64: dependency problems, but removing anyway as you requested:
samba-libs:arm64 depends on libpython2.7 (>= 2.7).
python-tdb depends on libpython2.7 (>= 2.7); however:
Package libpython2.7:arm64 is to be removed.
python-talloc:arm64 depends on libpython2.7 (>= 2.7); however:
Package libpython2.7:arm64 is to be removed.
python-samba depends on libpython2.7 (>= 2.7); however:
Package libpython2.7:arm64 is to be removed.
python-ldb depends on libpython2.7 (>= 2.7); however:
Package libpython2.7:arm64 is to be removed.
Removing libpython2.7:arm64 (2.7.16-2+deb10u1) ...
Removing python2.7 (2.7.16-2+deb10u1) ...
Removing libpython2.7-stdlib:arm64 (2.7.16-2+deb10u1) ...
Removing python-minimal (2.7.16-1) ...
dpkg: python2.7-minimal: dependency problems, but removing anyway as you requested:
python2-minimal depends on python2.7-minimal (>= 2.7.16-1~).
Removing python2.7-minimal (2.7.16-2+deb10u1) ...
Unlinking and removing bytecode for runtime python2.7
Removing libpython2.7-minimal:arm64 (2.7.16-2+deb10u1) ...
dpkg: python-crypto: dependency problems, but removing anyway as you requested:
python-samba depends on python-crypto.
Removing python-crypto (2.6.1-9+b1) ...
/var/lib/dpkg/info/python-crypto.prerm: 6: /var/lib/dpkg/info/python-crypto.prerm: pyclean: not found
dpkg: error processing package python-crypto (--remove):
installed python-crypto package pre-removal script subprocess returned error exit status 127
dpkg: python-meld3: dependency problems, but removing anyway as you requested:
supervisor depends on python-meld3; however:
Package python-meld3 is to be removed.
Removing python-meld3 (1.0.2-2) ...
/var/lib/dpkg/info/python-meld3.prerm: 6: /var/lib/dpkg/info/python-meld3.prerm: pyclean: not found
dpkg: error processing package python-meld3 (--remove):
installed python-meld3 package pre-removal script subprocess returned error exit status 127
Removing python2-minimal (2.7.16-1) ...
find: ‘/usr/share/python/’: No such file or directory
dpkg: error processing package python2-minimal (--remove):
installed python2-minimal package pre-removal script subprocess returned error exit status 1
dpkg: python-pkg-resources: dependency problems, but removing anyway as you requested:
supervisor depends on python-pkg-resources.
Removing python-pkg-resources (40.8.0-1) ...
/var/lib/dpkg/info/python-pkg-resources.prerm: 6: /var/lib/dpkg/info/python-pkg-resources.prerm: pyclean: not found
dpkg: error processing package python-pkg-resources (--remove):
installed python-pkg-resources package pre-removal script subprocess returned error exit status 127
dpkg: python-tdb: dependency problems, but removing anyway as you requested:
python-samba depends on python-tdb; however:
Package python-tdb is to be removed.
Removing python-tdb (1.3.16-2+b1) ...
/var/lib/dpkg/info/python-tdb.prerm: 6: /var/lib/dpkg/info/python-tdb.prerm: pyclean: not found
dpkg: error processing package python-tdb (--remove):
installed python-tdb package pre-removal script subprocess returned error exit status 127
dpkg: samba-libs:arm64: dependency problems, but removing anyway as you requested:
python-samba depends on samba-libs (= 2:4.9.5+dfsg-5+deb10u1); however:
Package samba-libs:arm64 is to be removed.
Removing samba-libs:arm64 (2:4.9.5+dfsg-5+deb10u1) ...
dpkg: python-talloc:arm64: dependency problems, but removing anyway as you requested:
python-samba depends on python-talloc (>= 2.1.9); however:
Package python-talloc:arm64 is to be removed.
Removing python-talloc:arm64 (2.1.14-2) ...
Errors were encountered while processing:
supervisor
python-samba
python-dnspython
rdiff-backup
python-ldb
python-crypto
python-meld3
python2-minimal
python-pkg-resources
python-tdb
E: Sub-process /usr/bin/dpkg returned an error code (1)root@DietPi:/mnt/dietpi-backup/data/etc/samba# apt purge libpython2.7-minimal
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
libarchive13 libjansson4 libldb1 librsync1 libtalloc2 libtdb1 libtevent0 libwbclient0 samba-common tdb-tools
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
libpython-stdlib* libpython2-stdlib* libpython2.7* libpython2.7-minimal* libpython2.7-stdlib* libsmbclient* python* python-crypto* python-dnspython* python-ldb* python-meld3* python-minimal* python-pkg-resources*
python-samba* python-setuptools* python-talloc* python-tdb* python2* python2-minimal* python2.7* python2.7-minimal* rdiff-backup* samba* samba-common-bin* samba-libs* smbclient* speedtest-cli* supervisor*
0 upgraded, 0 newly installed, 28 to remove and 1 not upgraded.
2 not fully installed or removed.
After this operation, 86.8 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 34618 files and directories currently installed.)
Removing python-setuptools (40.8.0-1) ...
Removing supervisor (3.3.5-1) ...
Traceback (most recent call last):
File "/usr/bin/pyclean", line 31, in <module>
from debpython import files as dpf
ImportError: No module named debpython
dpkg: error processing package supervisor (--remove):
installed supervisor package pre-removal script subprocess returned error exit status 1
Traceback (most recent call last):
File "/usr/bin/pycompile", line 35, in <module>
from debpython.version import SUPPORTED, debsorted, vrepr, \
ImportError: No module named debpython.version
dpkg: error while cleaning up:
installed supervisor package post-installation script subprocess returned error exit status 1
Removing samba (2:4.9.5+dfsg-5+deb10u1) ...
Removing samba-common-bin (2:4.9.5+dfsg-5+deb10u1) ...
Removing python-samba (2:4.9.5+dfsg-5+deb10u1) ...
Traceback (most recent call last):
File "/usr/bin/pyclean", line 31, in <module>
from debpython import files as dpf
ImportError: No module named debpython
dpkg: error processing package python-samba (--remove):
installed python-samba package pre-removal script subprocess returned error exit status 1
Removing smbclient (2:4.9.5+dfsg-5+deb10u1) ...
Removing libsmbclient:arm64 (2:4.9.5+dfsg-5+deb10u1) ...
Removing python-dnspython (1.16.0-1) ...
Traceback (most recent call last):
File "/usr/bin/pyclean", line 31, in <module>
from debpython import files as dpf
ImportError: No module named debpython
dpkg: error processing package python-dnspython (--remove):
installed python-dnspython package pre-removal script subprocess returned error exit status 1
Removing rdiff-backup (1.2.8-7) ...
Traceback (most recent call last):
File "/usr/bin/pyclean", line 31, in <module>
from debpython import files as dpf
ImportError: No module named debpython
dpkg: error processing package rdiff-backup (--remove):
installed rdiff-backup package pre-removal script subprocess returned error exit status 1
Removing speedtest-cli (2.0.2-1+deb10u1) ...
dpkg: python: dependency problems, but removing anyway as you requested:
supervisor depends on python:any (<< 2.8); however:
Package python is to be removed.
supervisor depends on python:any (>= 2.7~); however:
Package python is to be removed.
supervisor depends on python:any (<< 2.8); however:
Package python is to be removed.
supervisor depends on python:any (>= 2.7~); however:
Package python is to be removed.
rdiff-backup depends on python (>= 2.7).
rdiff-backup depends on python (<< 2.8).
rdiff-backup depends on python (>= 2.7).
rdiff-backup depends on python (<< 2.8).
python-tdb depends on python (<< 2.8).
python-tdb depends on python (>= 2.7~).
python-tdb depends on python:any (<< 2.8).
python-tdb depends on python:any (>= 2.7~).
python-tdb depends on python (<< 2.8).
python-tdb depends on python (>= 2.7~).
python-tdb depends on python:any (<< 2.8).
python-tdb depends on python:any (>= 2.7~).
python-tdb depends on python (<< 2.8).
python-tdb depends on python (>= 2.7~).
python-tdb depends on python:any (<< 2.8).
python-tdb depends on python:any (>= 2.7~).
python-tdb depends on python (<< 2.8).
python-tdb depends on python (>= 2.7~).
python-tdb depends on python:any (<< 2.8).
python-tdb depends on python:any (>= 2.7~).
python-talloc:arm64 depends on python (<< 2.8).
python-talloc:arm64 depends on python (>= 2.7~).
python-talloc:arm64 depends on python:any (<< 2.8).
python-talloc:arm64 depends on python:any (>= 2.7~).
python-talloc:arm64 depends on python (<< 2.8).
python-talloc:arm64 depends on python (>= 2.7~).
python-talloc:arm64 depends on python:any (<< 2.8).
python-talloc:arm64 depends on python:any (>= 2.7~).
python-talloc:arm64 depends on python (<< 2.8).
python-talloc:arm64 depends on python (>= 2.7~).
python-talloc:arm64 depends on python:any (<< 2.8).
python-talloc:arm64 depends on python:any (>= 2.7~).
python-talloc:arm64 depends on python (<< 2.8).
python-talloc:arm64 depends on python (>= 2.7~).
python-talloc:arm64 depends on python:any (<< 2.8).
python-talloc:arm64 depends on python:any (>= 2.7~).
python-samba depends on python (<< 2.8).
python-samba depends on python (>= 2.7~).
python-samba depends on python:any (<< 2.8).
python-samba depends on python:any (>= 2.7~).
python-samba depends on python (<< 2.8).
python-samba depends on python (>= 2.7~).
python-samba depends on python:any (<< 2.8).
python-samba depends on python:any (>= 2.7~).
python-samba depends on python (<< 2.8).
python-samba depends on python (>= 2.7~).
python-samba depends on python:any (<< 2.8).
python-samba depends on python:any (>= 2.7~).
python-samba depends on python (<< 2.8).
python-samba depends on python (>= 2.7~).
python-samba depends on python:any (<< 2.8).
python-samba depends on python:any (>= 2.7~).
python-pkg-resources depends on python:any (<< 2.8).
python-pkg-resources depends on python:any (>= 2.7~).
python-pkg-resources depends on python:any (<< 2.8).
python-pkg-resources depends on python:any (>= 2.7~).
python-meld3 depends on python:any (<< 2.8).
python-meld3 depends on python:any (>= 2.7.5-5~).
python-meld3 depends on python:any (<< 2.8).
python-meld3 depends on python:any (>= 2.7.5-5~).
python-ldb depends on python (<< 2.8).
python-ldb depends on python (>= 2.7~).
python-ldb depends on python:any (<< 2.8).
python-ldb depends on python:any (>= 2.7~).
python-ldb depends on python (<< 2.8).
python-ldb depends on python (>= 2.7~).
python-ldb depends on python:any (<< 2.8).
python-ldb depends on python:any (>= 2.7~).
python-ldb depends on python (<< 2.8).
python-ldb depends on python (>= 2.7~).
python-ldb depends on python:any (<< 2.8).
python-ldb depends on python:any (>= 2.7~).
python-ldb depends on python (<< 2.8).
python-ldb depends on python (>= 2.7~).
python-ldb depends on python:any (<< 2.8).
python-ldb depends on python:any (>= 2.7~).
python-dnspython depends on python:any (<< 2.8).
python-dnspython depends on python:any (>= 2.7~).
python-dnspython depends on python:any (<< 2.8).
python-dnspython depends on python:any (>= 2.7~).
python-crypto depends on python (<< 2.8).
python-crypto depends on python (>= 2.7~).
python-crypto depends on python:any (<< 2.8).
python-crypto depends on python:any (>= 2.7.5-5~).
python-crypto depends on python (<< 2.8).
python-crypto depends on python (>= 2.7~).
python-crypto depends on python:any (<< 2.8).
python-crypto depends on python:any (>= 2.7.5-5~).
python-crypto depends on python (<< 2.8).
python-crypto depends on python (>= 2.7~).
python-crypto depends on python:any (<< 2.8).
python-crypto depends on python:any (>= 2.7.5-5~).
python-crypto depends on python (<< 2.8).
python-crypto depends on python (>= 2.7~).
python-crypto depends on python:any (<< 2.8).
python-crypto depends on python:any (>= 2.7.5-5~).
Removing python (2.7.16-1) ...
Removing libpython-stdlib:arm64 (2.7.16-1) ...
Removing python2 (2.7.16-1) ...
Removing libpython2-stdlib:arm64 (2.7.16-1) ...
dpkg: python-ldb: dependency problems, but removing anyway as you requested:
python-samba depends on python-ldb (>= 2:1.5.1+really1.4.6).
Removing python-ldb (2:1.5.1+really1.4.6-3) ...
Traceback (most recent call last):
File "/usr/bin/pyclean", line 31, in <module>
from debpython import files as dpf
ImportError: No module named debpython
dpkg: error processing package python-ldb (--remove):
installed python-ldb package pre-removal script subprocess returned error exit status 1
dpkg: libpython2.7:arm64: dependency problems, but removing anyway as you requested:
samba-libs:arm64 depends on libpython2.7 (>= 2.7).
python-tdb depends on libpython2.7 (>= 2.7); however:
Package libpython2.7:arm64 is to be removed.
python-talloc:arm64 depends on libpython2.7 (>= 2.7); however:
Package libpython2.7:arm64 is to be removed.
python-samba depends on libpython2.7 (>= 2.7); however:
Package libpython2.7:arm64 is to be removed.
python-ldb depends on libpython2.7 (>= 2.7); however:
Package libpython2.7:arm64 is to be removed.
Removing libpython2.7:arm64 (2.7.16-2+deb10u1) ...
Removing python2.7 (2.7.16-2+deb10u1) ...
Removing libpython2.7-stdlib:arm64 (2.7.16-2+deb10u1) ...
Removing python-minimal (2.7.16-1) ...
dpkg: python2.7-minimal: dependency problems, but removing anyway as you requested:
python2-minimal depends on python2.7-minimal (>= 2.7.16-1~).
Removing python2.7-minimal (2.7.16-2+deb10u1) ...
Unlinking and removing bytecode for runtime python2.7
Removing libpython2.7-minimal:arm64 (2.7.16-2+deb10u1) ...
dpkg: python-crypto: dependency problems, but removing anyway as you requested:
python-samba depends on python-crypto.
Removing python-crypto (2.6.1-9+b1) ...
/var/lib/dpkg/info/python-crypto.prerm: 6: /var/lib/dpkg/info/python-crypto.prerm: pyclean: not found
dpkg: error processing package python-crypto (--remove):
installed python-crypto package pre-removal script subprocess returned error exit status 127
dpkg: python-meld3: dependency problems, but removing anyway as you requested:
supervisor depends on python-meld3; however:
Package python-meld3 is to be removed.
Removing python-meld3 (1.0.2-2) ...
/var/lib/dpkg/info/python-meld3.prerm: 6: /var/lib/dpkg/info/python-meld3.prerm: pyclean: not found
dpkg: error processing package python-meld3 (--remove):
installed python-meld3 package pre-removal script subprocess returned error exit status 127
Removing python2-minimal (2.7.16-1) ...
find: ‘/usr/share/python/’: No such file or directory
dpkg: error processing package python2-minimal (--remove):
installed python2-minimal package pre-removal script subprocess returned error exit status 1
dpkg: python-pkg-resources: dependency problems, but removing anyway as you requested:
supervisor depends on python-pkg-resources.
Removing python-pkg-resources (40.8.0-1) ...
/var/lib/dpkg/info/python-pkg-resources.prerm: 6: /var/lib/dpkg/info/python-pkg-resources.prerm: pyclean: not found
dpkg: error processing package python-pkg-resources (--remove):
installed python-pkg-resources package pre-removal script subprocess returned error exit status 127
dpkg: python-tdb: dependency problems, but removing anyway as you requested:
python-samba depends on python-tdb; however:
Package python-tdb is to be removed.
Removing python-tdb (1.3.16-2+b1) ...
/var/lib/dpkg/info/python-tdb.prerm: 6: /var/lib/dpkg/info/python-tdb.prerm: pyclean: not found
dpkg: error processing package python-tdb (--remove):
installed python-tdb package pre-removal script subprocess returned error exit status 127
dpkg: samba-libs:arm64: dependency problems, but removing anyway as you requested:
python-samba depends on samba-libs (= 2:4.9.5+dfsg-5+deb10u1); however:
Package samba-libs:arm64 is to be removed.
Removing samba-libs:arm64 (2:4.9.5+dfsg-5+deb10u1) ...
dpkg: python-talloc:arm64: dependency problems, but removing anyway as you requested:
python-samba depends on python-talloc (>= 2.1.9); however:
Package python-talloc:arm64 is to be removed.
Removing python-talloc:arm64 (2.1.14-2) ...
Errors were encountered while processing:
supervisor
python-samba
python-dnspython
rdiff-backup
python-ldb
python-crypto
python-meld3
python2-minimal
python-pkg-resources
python-tdb
E: Sub-process /usr/bin/dpkg returned an error code (1)
2nd purge
root@DietPi:/mnt/dietpi-backup/data/etc/samba# apt purge libpython2.7-minimal
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
python-crypto : Depends: python (< 2.8) but it is not going to be installed
Depends: python (>= 2.7~) but it is not going to be installed
Depends: python:any (< 2.8)
Depends: python:any (>= 2.7.5-5~)
python-dnspython : Depends: python:any (< 2.8)
Depends: python:any (>= 2.7~)
python-ldb : Depends: python (< 2.8) but it is not going to be installed
Depends: python (>= 2.7~) but it is not going to be installed
Depends: python:any (< 2.8)
Depends: python:any (>= 2.7~)
Depends: libpython2.7 (>= 2.7) but it is not going to be installed
python-meld3 : Depends: python:any (< 2.8)
Depends: python:any (>= 2.7.5-5~)
python-pkg-resources : Depends: python:any (< 2.8)
Depends: python:any (>= 2.7~)
python-samba : Depends: samba-libs (= 2:4.9.5+dfsg-5+deb10u1) but it is not going to be installed
Depends: python (< 2.8) but it is not going to be installed
Depends: python (>= 2.7~) but it is not going to be installed
Depends: python:any (< 2.8)
Depends: python:any (>= 2.7~)
Depends: libpython2.7 (>= 2.7) but it is not going to be installed
Depends: python-talloc (>= 2.1.9) but it is not going to be installed
python-tdb : Depends: python (< 2.8) but it is not going to be installed
Depends: python (>= 2.7~) but it is not going to be installed
Depends: python:any (< 2.8)
Depends: python:any (>= 2.7~)
Depends: libpython2.7 (>= 2.7) but it is not going to be installed
python2-minimal : Depends: python2.7-minimal (>= 2.7.16-1~) but it is not going to be installed
rdiff-backup : Depends: python (>= 2.7) but it is not going to be installed
Depends: python (< 2.8) but it is not going to be installed
supervisor : Depends: python:any (< 2.8)
Depends: python:any (>= 2.7~)
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
My /etc/samba has disappeared very strange 🤔
Ah sorry, I think it's /etc/smb.conf
, hopefully it's still there.
Now I see where this debpython
is part of: https://packages.debian.org/buster/amd64/python2-minimal/filelist
I thought python2-minimal
is just a meta package to pull the right subversion package (python2.7-minimal
) but is contains scripts as well. It seems that /usr/share/python
got lost which caused all those debpython
errors, at least as part of the issue.
Okay, round-robin:
apt install --reinstall python2-minimal
apt purge python-crypto python-dnspython python-ldb python-meld3 python-pkg-resources python-samba python-tdb rdiff-backup supervisor
apt purge python2-minimal libpython2.7-minimal
It's a real pain when the uninstall of a package invokes many other scripts and does not allow to proceed with the uninstall when those scripts fail. In this case, pyclean
is used to remove the auto-generated .pyc and .pyo files. You install a Python module package, like python-samba
that consists (aside of probably other assets, .so libraries and binaries) of .py files, which are raw Python scripts. When you execute those scripts, the compiler automatically creates a __pycache__
sub directory with .pyc cached versions of the raw scripts, which are then faster to execute in the future. When using optimisation flags, .pyo files are created. When removing an APT package, APT will never remove any file that is not packed together with the package and on install stored as a file list in /var/lib/dpkg/info/<package_name>.list
, which totally makes sense to not have something unwanted removed. However, due to the Python cache files, this means that all cached files together with the Python modules directory structure would remain on the system, not a clean uninstall. So the uninstall invokes scripts which do this cleanup: /var/lib/dpkg/info/<package_name>.prerm
and/or /var/lib/dpkg/info/<package_name>.postrm
, which invoke pyclean
which does this job. pyclean
however is a Python module as well, so if there is anything broken with the depths of the Python setup, one is not easily able to "simply" purge everything a start from scratch, and a reinstall fails for the same reason. There are a few other basic Python executables like pyversions
which may cause similar issues. In the end, everything is a file, so if one knows where all files are located, one could remove them all manually. What I would wish for is a way to force an uninstall regardless of errors in the pre/post removal scripts, and a way to force a (re)install, regardless if existing files would be overwritten by it. While this of course could be unclean, it would make live would easier in cases like this where a single broken or missing file somewhere could break you whole APT functionality as every on every call it tries and fails to fix the affected packages.
EDIT: Now I found --force-remove-reinstreq
and --force-overwrite
dpkg options, which could serve that needs, i.e. dpkg -P --force-remove-reinstreq <package_name>
.
Ah sorry, I think it's /etc/smb.conf, hopefully it's still there.
nope, SAMBA config file should be located at /etc/samba/smb.conf
It looks like some more files have been lost them. Could be worth to have a look into /lost+found
, e.g.:
grep -r '/var/log/samba' /lost+found/
to see if it lost the file system link and landed there.
Ok, thank your explanation is very clear. I understand the source of the issue now.
You'll find all the logs below :
root@DietPi:/home/dietpi# apt install --reinstall python2-minimal
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
python-crypto : Depends: python (< 2.8) but it is not going to be installed
Depends: python (>= 2.7~) but it is not going to be installed
Depends: python:any (< 2.8)
Depends: python:any (>= 2.7.5-5~)
python-dnspython : Depends: python:any (< 2.8)
Depends: python:any (>= 2.7~)
python-ldb : Depends: python (< 2.8) but it is not going to be installed
Depends: python (>= 2.7~) but it is not going to be installed
Depends: python:any (< 2.8)
Depends: python:any (>= 2.7~)
Depends: libpython2.7 (>= 2.7) but it is not going to be installed
python-meld3 : Depends: python:any (< 2.8)
Depends: python:any (>= 2.7.5-5~)
python-pkg-resources : Depends: python:any (< 2.8)
Depends: python:any (>= 2.7~)
python-samba : Depends: samba-libs (= 2:4.9.5+dfsg-5+deb10u1) but it is not going to be installed
Depends: python (< 2.8) but it is not going to be installed
Depends: python (>= 2.7~) but it is not going to be installed
Depends: python:any (< 2.8)
Depends: python:any (>= 2.7~)
Depends: libpython2.7 (>= 2.7) but it is not going to be installed
Depends: python-talloc (>= 2.1.9) but it is not going to be installed
python-tdb : Depends: python (< 2.8) but it is not going to be installed
Depends: python (>= 2.7~) but it is not going to be installed
Depends: python:any (< 2.8)
Depends: python:any (>= 2.7~)
Depends: libpython2.7 (>= 2.7) but it is not going to be installed
python2-minimal : Depends: python2.7-minimal (>= 2.7.16-1~) but it is not going to be installed
rdiff-backup : Depends: python (>= 2.7) but it is not going to be installed
Depends: python (< 2.8) but it is not going to be installed
supervisor : Depends: python:any (< 2.8)
Depends: python:any (>= 2.7~)
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
apt purge python-crypto python-dnspython ....
root@DietPi:/home/dietpi# apt purge python-crypto python-dnspython python-ldb python-meld3 python-pkg-resources python-samba python-tdb rdiff-backup supervisor
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
python2-minimal : Depends: python2.7-minimal (>= 2.7.16-1~) but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
root@DietPi:/home/dietpi# apt purge python2-minimal libpython2.7-minimal
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
python-crypto : Depends: python (< 2.8) but it is not going to be installed
Depends: python (>= 2.7~) but it is not going to be installed
Depends: python:any (< 2.8)
Depends: python:any (>= 2.7.5-5~)
python-dnspython : Depends: python:any (< 2.8)
Depends: python:any (>= 2.7~)
python-ldb : Depends: python (< 2.8) but it is not going to be installed
Depends: python (>= 2.7~) but it is not going to be installed
Depends: python:any (< 2.8)
Depends: python:any (>= 2.7~)
Depends: libpython2.7 (>= 2.7) but it is not going to be installed
python-meld3 : Depends: python:any (< 2.8)
Depends: python:any (>= 2.7.5-5~)
python-pkg-resources : Depends: python:any (< 2.8)
Depends: python:any (>= 2.7~)
python-samba : Depends: samba-libs (= 2:4.9.5+dfsg-5+deb10u1) but it is not going to be installed
Depends: python (< 2.8) but it is not going to be installed
Depends: python (>= 2.7~) but it is not going to be installed
Depends: python:any (< 2.8)
Depends: python:any (>= 2.7~)
Depends: libpython2.7 (>= 2.7) but it is not going to be installed
Depends: python-talloc (>= 2.1.9) but it is not going to be installed
python-tdb : Depends: python (< 2.8) but it is not going to be installed
Depends: python (>= 2.7~) but it is not going to be installed
Depends: python:any (< 2.8)
Depends: python:any (>= 2.7~)
Depends: libpython2.7 (>= 2.7) but it is not going to be installed
rdiff-backup : Depends: python (>= 2.7) but it is not going to be installed
Depends: python (< 2.8) but it is not going to be installed
supervisor : Depends: python:any (< 2.8)
Depends: python:any (>= 2.7~)
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
And regarding the edit commands
log with python2.7-minimal
root@DietPi:/home/dietpi# dpkg -P --force-remove-reinstreq python2.7-minimal
dpkg: dependency problems prevent removal of python2.7-minimal:
python2-minimal depends on python2.7-minimal (>= 2.7.16-1~).
dpkg: error processing package python2.7-minimal (--purge):
dependency problems - not removing
Errors were encountered while processing:
python2.7-minimal
Then I did the same with python2-minimal:
log with python2-minimal
root@DietPi:/home/dietpi# dpkg -P --force-remove-reinstreq python2-minimal
(Reading database ... 33265 files and directories currently installed.)
Removing python2-minimal (2.7.16-1) ...
find: ‘/usr/share/python/’: No such file or directory
dpkg: error processing package python2-minimal (--purge):
installed python2-minimal package pre-removal script subprocess returned error exit status 1
/var/lib/dpkg/info/python2-minimal.postinst: 4: /var/lib/dpkg/info/python2-minimal.postinst: python2.7: not found
dpkg: error while cleaning up:
installed python2-minimal package post-installation script subprocess returned error exit status 127
Errors were encountered while processing:
python2-minimal
Here is the command regarding samba part
root@DietPi:/home/dietpi# grep -r '/var/log/samba' /lost+found/
/lost+found/#787212/logon/genlogon/genlogon.pl:# 1. Log the user connection to /var/log/samba/netlogon.log
/lost+found/#787212/logon/genlogon/genlogon.pl:open LOG, ">>/var/log/samba/netlogon.log";
/lost+found/#270584: log file = /var/log/samba/log.%m
/lost+found/#270651: log file = /var/log/samba/log.%m
/lost+found/#270651:# We want Samba to only log to /var/log/samba/log.{smbd,nmbd}.
/lost+found/#282688: log file = /var/log/samba/log.%m
/lost+found/#655520:"/var/log/samba/log.smbd" 2020-11-21-11:23:37
/lost+found/#655520:"/var/log/samba/log.nmbd" 2020-11-22-0:0:2
/lost+found/#655520:"/var/log/samba/log.samba" 2020-5-19-0:0:0
/lost+found/#666908: --logfile=/var/log/samba/user-syncpasswords.log
/lost+found/#666908: --logfile=/var/log/samba/user-syncpasswords.log
Binary file /lost+found/#673442 matches
Hi there @MichaIng, I hope you are doing great.
I just wanted to thank you the time and dedication you spent to solve my friend @Hsewdot's issue.
You are a great project leader and the best I've ever seen taking over the project of a (great) founder.
We the Dietpi community are incredibly fortunate to have you (as well as @Joulinar and the other Dietpi contributors) and you are doing a great work with new developments and bug fixing.
I often read you as well when I scroll through the Nextcloud Github or forum and your contribution is tremendous.
Thank you again for your sense of service and help, for your time and your gentleness.
I sent you 30€ through Dietpi's PayPal and I hope you will be able to treat yourself to a good bottle of your favourite drink, a small gift or something else.
I hope that you will be able to spend a lot of time with your loved ones. I wish you a Merry Christmas and a Happy New Year in advance and will be happy to continue to follow your contributions on Github and other platforms.
Kind regards
TtuxX
Many thanks for your kind feedback and donation. Enjoy your Christmas and holidays as well, as much as possible with current circumstances 😷.
It seems like we didn't solve @Hsewdot's issue yet. Seeing this large amount of files in lost+found, including a binary, only looking for this which contain the samba log path, makes me think that it cannot reasonably be fixed. Even if we try on purging those nasty packages (dpkg -P --force-all python2.7-minimal python2-minimal
, the force-all
option includes all individual force options, last resort hammer 😉) likely a bunch of other issue will appear or cause non-visible issues already. My recommendation at this point is to do a fresh reinstall (if you didn't do that already), at best on a new SD card, so you can recover what is possible from the old one. Then doing some bad blocks check before re-using it, via Rufus from Windows or from Linux via:
badblocks -v /dev/xyz2
Most helpful comment
Hi there @MichaIng, I hope you are doing great.
I just wanted to thank you the time and dedication you spent to solve my friend @Hsewdot's issue.
You are a great project leader and the best I've ever seen taking over the project of a (great) founder.
We the Dietpi community are incredibly fortunate to have you (as well as @Joulinar and the other Dietpi contributors) and you are doing a great work with new developments and bug fixing.
I often read you as well when I scroll through the Nextcloud Github or forum and your contribution is tremendous.
Thank you again for your sense of service and help, for your time and your gentleness.
I sent you 30€ through Dietpi's PayPal and I hope you will be able to treat yourself to a good bottle of your favourite drink, a small gift or something else.
I hope that you will be able to spend a lot of time with your loved ones. I wish you a Merry Christmas and a Happy New Year in advance and will be happy to continue to follow your contributions on Github and other platforms.
Kind regards
TtuxX