Keeping or Correctly Generating DTB Files

This forum is for topics dealing with problems with software specifically in the ARMv7h repo.

Keeping or Correctly Generating DTB Files

Postby xqdzn » Sat Aug 10, 2019 1:00 pm

Hi, I have read this forum rules and guide and I think my questions should be posted in this section. Feel free to move it to the right section if I am mistaken.

I know my board is not officially supported by alarm project.
My board is Banana Pi P2 Zero and I followed this tutorial to build an image on sdcard. And used bananapi_m2_zero_defconfig as defconfig since the official said the board has almost exact same hardware.

It works with some bug:
    - Ethernet not working
    - WiFi not working
    - HDMI not working

So I tried to extract and copy DTB files from this properly working ubuntu image and put it in /boot/dtbs directory with exact filename as it's already there before.

I booted normally.
Ethernet, WiFi, and HDMI working properly.
The problem is, the DTB files (/boot/dtbs/sun8i-h2-plus-bananapi-m2-zero.dtb) got replaced/recompiled everytime I do kernel upgrade using pacman -Syu
So here is my questions:
1. How can I config to make kernel-compiling-procedure to compile/generate DTB files properly?
2. Or, can I just tell the system to not-to reproducing/recompile/replace previous DTB files?

Thank you so much, guys.

update:
just some proof what happened after I do kernel upgrade over pacman
Image
I tried to build new fresh image from latest ArchLinuxARM-armv7-latest.tar.gz
Boot it, then upgrade it.
$this->bbcode_second_pass_code('', '[root@alarm alarm]# cat /var/log/pacman.log
[2019-07-22 14:01] [PACMAN] Running 'pacman -Syu'
[2019-07-22 14:01] [PACMAN] synchronizing package lists
[2019-07-22 14:01] [PACMAN] Running 'pacman -Syu'
[2019-07-22 14:01] [PACMAN] synchronizing package lists
[2019-07-22 14:05] [PACMAN] Running 'pacman -Syu'
[2019-07-22 14:05] [PACMAN] synchronizing package lists
[2019-08-11 19:59] [PACMAN] Running 'pacman -Syu'
[2019-08-11 19:59] [PACMAN] synchronizing package lists
[2019-08-11 20:00] [PACMAN] Running 'pacman -Syu'
[2019-08-11 20:00] [PACMAN] synchronizing package lists
[2019-08-11 20:00] [PACMAN] starting full system upgrade
[2019-08-11 20:03] [ALPM] transaction started
[2019-08-11 20:03] [ALPM] upgraded keyutils (1.6-1 -> 1.6.1-1)
[2019-08-11 20:03] [ALPM] upgraded libnghttp2 (1.36.0-1 -> 1.39.1-1)
[2019-08-11 20:03] [ALPM] upgraded zstd (1.4.1-1 -> 1.4.2-1)
[2019-08-11 20:03] [ALPM] upgraded shadow (4.7-1 -> 4.7-2)
[2019-08-11 20:03] [ALPM] upgraded linux-armv7 (5.2.5-2 -> 5.2.8-1)
[2019-08-11 20:03] [ALPM] transaction completed
[2019-08-11 20:03] [ALPM] running '60-linux-armv7.hook'...
[2019-08-11 20:04] [ALPM] running '90-linux-armv7.hook'...
[2019-08-11 20:04] [ALPM-SCRIPTLET] ==> Building image from preset: /etc/mkinitcpio.d/linux-armv7.preset: 'default'
[2019-08-11 20:04] [ALPM-SCRIPTLET] -> -k 5.2.8-1-ARCH -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img
[2019-08-11 20:04] [ALPM-SCRIPTLET] ==> Starting build: 5.2.8-1-ARCH
[2019-08-11 20:04] [ALPM-SCRIPTLET] -> Running build hook: [base]
[2019-08-11 20:04] [ALPM-SCRIPTLET] -> Running build hook: [udev]
[2019-08-11 20:04] [ALPM-SCRIPTLET] -> Running build hook: [autodetect]
[2019-08-11 20:04] [ALPM-SCRIPTLET] -> Running build hook: [modconf]
[2019-08-11 20:04] [ALPM-SCRIPTLET] -> Running build hook: [block]
[2019-08-11 20:04] [ALPM-SCRIPTLET] -> Running build hook: [filesystems]
[2019-08-11 20:04] [ALPM-SCRIPTLET] -> Running build hook: [keyboard]
[2019-08-11 20:04] [ALPM-SCRIPTLET] -> Running build hook: [fsck]
[2019-08-11 20:04] [ALPM-SCRIPTLET] ==> Generating module dependencies
[2019-08-11 20:04] [ALPM-SCRIPTLET] ==> Creating gzip-compressed initcpio image: /boot/initramfs-linux.img
[2019-08-11 20:04] [ALPM-SCRIPTLET] ==> Image generation successful
[2019-08-11 20:04] [ALPM] running 'systemd-daemon-reload.hook'...
[2019-08-11 20:04] [ALPM] running 'systemd-update.hook'...
[root@alarm alarm]#
')
Last edited by xqdzn on Sun Aug 11, 2019 8:14 pm, edited 1 time in total.
xqdzn
 
Posts: 6
Joined: Sat Aug 10, 2019 12:19 pm

Re: Keeping or Correctly Generating DTB Files

Postby graysky » Sat Aug 10, 2019 1:16 pm

Does Arch ARM even write out to /boot/dtbs? I believe /boot/overlays
graysky
Developer
 
Posts: 1880
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Re: Keeping or Correctly Generating DTB Files

Postby xqdzn » Sat Aug 10, 2019 3:32 pm

Not sure, but it's always replaced with new one.
this could help, perhaps?

$this->bbcode_second_pass_code('', '[2019-08-07 11:29] [PACMAN] Running 'pacman -Sy'
[2019-08-07 11:29] [PACMAN] synchronizing package lists
[2019-08-07 11:30] [PACMAN] Running 'pacman -Sy'
[2019-08-07 11:30] [PACMAN] synchronizing package lists
[2019-08-07 11:31] [PACMAN] Running 'pacman -Sy'
[2019-08-07 11:31] [PACMAN] synchronizing package lists
[2019-08-07 11:32] [PACMAN] Running 'pacman -Syu'
[2019-08-07 11:32] [PACMAN] synchronizing package lists
[2019-08-07 11:32] [PACMAN] Running 'pacman -Syu'
[2019-08-07 11:32] [PACMAN] synchronizing package lists
[2019-08-07 11:33] [PACMAN] Running 'pacman -Syu'
[2019-08-07 11:33] [PACMAN] synchronizing package lists
[2019-08-07 11:33] [PACMAN] Running 'pacman -Syu'
[2019-08-07 11:33] [PACMAN] synchronizing package lists
[2019-08-07 11:38] [PACMAN] Running 'pacman -Syu'
[2019-08-07 11:38] [PACMAN] synchronizing package lists
[2019-08-07 11:38] [PACMAN] starting full system upgrade
[2019-08-07 11:38] [PACMAN] Running 'pacman -Syu'
[2019-08-07 11:38] [PACMAN] synchronizing package lists
[2019-08-07 11:38] [PACMAN] starting full system upgrade
[2019-08-07 11:38] [PACMAN] Running 'pacman -Syu'
[2019-08-07 11:38] [PACMAN] synchronizing package lists
[2019-08-07 11:41] [PACMAN] Running 'pacman -Syu'
[2019-08-07 11:41] [PACMAN] synchronizing package lists
[2019-08-07 11:42] [PACMAN] Running 'pacman -Syu'
[2019-08-07 11:42] [PACMAN] synchronizing package lists
[2019-08-07 11:43] [PACMAN] Running 'pacman -Syu'
[2019-08-07 11:43] [PACMAN] synchronizing package lists
[2019-08-07 11:43] [PACMAN] starting full system upgrade
[2019-08-07 11:48] [PACMAN] Running 'pacman -Syu'
[2019-08-07 11:48] [PACMAN] synchronizing package lists
[2019-08-07 11:48] [PACMAN] starting full system upgrade
[2019-08-07 11:55] [PACMAN] Running 'pacman -Syu'
[2019-08-07 11:55] [PACMAN] synchronizing package lists
[2019-08-07 11:56] [PACMAN] starting full system upgrade
[2019-08-07 11:56] [ALPM] transaction started
[2019-08-07 11:56] [ALPM] upgraded keyutils (1.6-1 -> 1.6.1-1)
[2019-08-07 11:56] [ALPM] upgraded linux-armv7 (5.2.5-2 -> 5.2.6-1)
[2019-08-07 11:56] [ALPM] transaction completed
[2019-08-07 11:56] [ALPM] running '60-linux-armv7.hook'...
[2019-08-07 11:56] [ALPM] running '90-linux-armv7.hook'...
[2019-08-07 11:56] [ALPM-SCRIPTLET] ==> Building image from preset: /etc/mkinitcpio.d/linux-armv7.preset: 'default'
[2019-08-07 11:56] [ALPM-SCRIPTLET] -> -k 5.2.6-1-ARCH -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img
[2019-08-07 11:56] [ALPM-SCRIPTLET] ==> Starting build: 5.2.6-1-ARCH
[2019-08-07 11:56] [ALPM-SCRIPTLET] -> Running build hook: [base]
[2019-08-07 11:56] [ALPM-SCRIPTLET] -> Running build hook: [udev]
[2019-08-07 11:56] [ALPM-SCRIPTLET] -> Running build hook: [autodetect]
[2019-08-07 11:56] [ALPM-SCRIPTLET] -> Running build hook: [modconf]
[2019-08-07 11:56] [ALPM-SCRIPTLET] -> Running build hook: [block]
[2019-08-07 11:56] [ALPM-SCRIPTLET] -> Running build hook: [filesystems]
[2019-08-07 11:56] [ALPM-SCRIPTLET] -> Running build hook: [keyboard]
[2019-08-07 11:56] [ALPM-SCRIPTLET] -> Running build hook: [fsck]
[2019-08-07 11:56] [ALPM-SCRIPTLET] ==> Generating module dependencies
[2019-08-07 11:56] [ALPM-SCRIPTLET] ==> Creating gzip-compressed initcpio image: /boot/initramfs-linux.img
[2019-08-07 11:57] [ALPM-SCRIPTLET] ==> Image generation successful
[2019-08-07 11:57] [ALPM] running 'systemd-update.hook'...
[2019-08-07 11:59] [PACMAN] Running 'pacman -S vim ccze wifi-menu'
[2019-08-07 11:59] [PACMAN] Running 'pacman -S vim ccze dialog'
[2019-08-07 12:00] [ALPM] transaction started
[2019-08-07 12:00] [ALPM] installed vim-runtime (8.1.1776-1)
[2019-08-07 12:00] [ALPM] installed gpm (1.20.7.r27.g1fd1941-1)
[2019-08-07 12:00] [ALPM] installed vim (8.1.1776-1)
[2019-08-07 12:00] [ALPM] installed ccze (0.2.1-10)
[2019-08-07 12:00] [ALPM] installed dialog (1:1.3_20190728-1)
[2019-08-07 12:00] [ALPM] transaction completed
[2019-08-07 12:00] [ALPM] running 'systemd-daemon-reload.hook'...
[2019-08-07 12:00] [ALPM] running 'systemd-update.hook'...
[2019-08-07 12:00] [ALPM] running 'texinfo-install.hook'...
[2019-08-07 12:14] [PACMAN] Running 'pacman -Syu'
[2019-08-07 12:14] [PACMAN] synchronizing package lists
[2019-08-07 12:14] [PACMAN] starting full system upgrade
[2019-08-07 13:37] [PACMAN] Running 'pacman -S wget'
[2019-08-07 13:37] [ALPM] transaction started
[2019-08-07 13:37] [ALPM] installed wget (1.20.3-2)
[2019-08-07 13:37] [ALPM] transaction completed
[2019-08-07 13:37] [ALPM] running 'systemd-update.hook'...
[2019-08-07 13:37] [ALPM] running 'texinfo-install.hook'...
[2019-08-07 13:41] [PACMAN] Running 'pacman -S visudo vim'
[2019-08-07 13:41] [PACMAN] Running 'pacman -S sudo'
[2019-08-07 13:41] [ALPM] transaction started
[2019-08-07 13:41] [ALPM] installed sudo (1.8.27-1)
[2019-08-07 13:41] [ALPM] transaction completed
[2019-08-07 13:41] [ALPM] running 'systemd-tmpfiles.hook'...
[2019-08-07 13:41] [ALPM] running 'systemd-update.hook'...
[2019-08-07 14:18] [PACMAN] Running 'pacman -S brcm80211'
[2019-08-07 14:18] [PACMAN] Running 'pacman -S brcm80211'
[2019-08-07 14:48] [PACMAN] Running 'pacman -S dtc'
[2019-08-07 14:48] [ALPM] transaction started
[2019-08-07 14:48] [ALPM] installed dtc (1.5.0-1)
[2019-08-07 14:48] [ALPM] transaction completed
[2019-08-07 14:48] [ALPM] running 'systemd-update.hook'...
[2019-08-07 15:21] [PACMAN] Running 'pacman -S wpa_supplicant'
[2019-08-07 15:21] [ALPM] transaction started
[2019-08-07 15:21] [ALPM] installed wpa_supplicant (2:2.8-1.1)
[2019-08-07 15:21] [ALPM] transaction completed
[2019-08-07 15:21] [ALPM] running 'systemd-daemon-reload.hook'...
[2019-08-07 15:21] [ALPM] running 'systemd-update.hook'...
[2019-08-07 15:23] [PACMAN] Running 'pacman -S htop'
[2019-08-07 15:23] [ALPM] transaction started
[2019-08-07 15:23] [ALPM] installed htop (2.2.0-2)
[2019-08-07 15:23] [ALPM] transaction completed
[2019-08-07 15:23] [ALPM] running 'systemd-update.hook'...
[2019-08-07 15:50] [PACMAN] Running 'pacman -S git'
[2019-08-07 15:51] [ALPM] transaction started
[2019-08-07 15:51] [ALPM] installed perl-error (0.17027-2)
[2019-08-07 15:51] [ALPM] installed perl-timedate (2.30-6)
[2019-08-07 15:51] [ALPM] installed perl-mailtools (2.21-2)
[2019-08-07 15:51] [ALPM] installed git (2.22.0-1)
[2019-08-07 15:51] [ALPM] transaction completed
[2019-08-07 15:51] [ALPM] running 'detect-old-perl-modules.hook'...
[2019-08-07 15:51] [ALPM] running 'systemd-daemon-reload.hook'...
[2019-08-07 15:51] [ALPM] running 'systemd-sysusers.hook'...
[2019-08-07 15:51] [ALPM] running 'systemd-update.hook'...
[2019-08-07 15:52] [PACMAN] Running 'pacman -S base-devel'
[2019-08-07 15:55] [PACMAN] Running 'pacman -S base-devel'
[2019-08-07 15:55] [PACMAN] Running 'pacman -S base-devel'
[2019-08-07 15:56] [PACMAN] Running 'pacman -S base-devel'
[2019-08-07 15:56] [ALPM] transaction started
[2019-08-07 15:56] [ALPM] reinstalled gawk (4.2.1-2)
[2019-08-07 15:56] [ALPM] installed m4 (1.4.18-2)
[2019-08-07 15:56] [ALPM] installed autoconf (2.69-5)
[2019-08-07 15:56] [ALPM] installed automake (1.16.1-1)
[2019-08-07 15:56] [ALPM] installed binutils (2.32-1)
[2019-08-07 15:56] [ALPM] installed bison (3.3.2-1)
[2019-08-07 15:56] [ALPM] reinstalled sed (4.7-1)
[2019-08-07 15:56] [ALPM] reinstalled util-linux (2.34-3)
[2019-08-07 15:56] [ALPM] installed fakeroot (1.23-1)
[2019-08-07 15:56] [ALPM] reinstalled file (5.37-2)
[2019-08-07 15:56] [ALPM] reinstalled findutils (4.6.0-4.1)
[2019-08-07 15:56] [ALPM] installed flex (2.6.4-2)
[2019-08-07 15:56] [ALPM] installed libmpc (1.1.0-1)
[2019-08-07 15:57] [ALPM] installed gcc (8.3.0-1)
[2019-08-07 15:57] [ALPM] reinstalled gettext (0.19.8.1-3)
[2019-08-07 15:57] [ALPM] reinstalled grep (3.3-1)
[2019-08-07 15:57] [ALPM] reinstalled groff (1.22.4-1)
[2019-08-07 15:57] [ALPM] reinstalled gzip (1.10-1)
[2019-08-07 15:57] [ALPM] installed libtool (2.4.6+44+gb9b44533-1)
[2019-08-07 15:57] [ALPM] reinstalled texinfo (6.6-1)
[2019-08-07 15:57] [ALPM] installed libatomic_ops (7.6.10-1)
[2019-08-07 15:57] [ALPM] installed gc (7.6.8-1)
[2019-08-07 15:57] [ALPM] installed guile (2.2.6-1)
[2019-08-07 15:57] [ALPM] installed make (4.2.1-3)
[2019-08-07 15:57] [ALPM] reinstalled systemd (242.84-1)
[2019-08-07 15:57] [ALPM] reinstalled pacman (5.1.3-1.1)
[2019-08-07 15:57] [ALPM] installed patch (2.7.6-7)
[2019-08-07 15:57] [ALPM] installed pkgconf (1.6.3-1)
[2019-08-07 15:57] [ALPM] reinstalled sudo (1.8.27-1)
[2019-08-07 15:57] [ALPM] reinstalled which (2.21-3)
[2019-08-07 15:57] [ALPM] transaction completed
[2019-08-07 15:57] [ALPM] running '90-linux-armv7.hook'...
[2019-08-07 15:57] [ALPM-SCRIPTLET] ==> Building image from preset: /etc/mkinitcpio.d/linux-armv7.preset: 'default'
[2019-08-07 15:57] [ALPM-SCRIPTLET] -> -k 5.2.6-1-ARCH -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img
[2019-08-07 15:57] [ALPM-SCRIPTLET] ==> Starting build: 5.2.6-1-ARCH
[2019-08-07 15:57] [ALPM-SCRIPTLET] -> Running build hook: [base]
[2019-08-07 15:57] [ALPM-SCRIPTLET] -> Running build hook: [udev]
[2019-08-07 15:57] [ALPM-SCRIPTLET] -> Running build hook: [autodetect]
[2019-08-07 15:57] [ALPM-SCRIPTLET] -> Running build hook: [modconf]
[2019-08-07 15:57] [ALPM-SCRIPTLET] -> Running build hook: [block]
[2019-08-07 15:57] [ALPM-SCRIPTLET] -> Running build hook: [filesystems]
[2019-08-07 15:57] [ALPM-SCRIPTLET] -> Running build hook: [keyboard]
[2019-08-07 15:57] [ALPM-SCRIPTLET] -> Running build hook: [fsck]
[2019-08-07 15:57] [ALPM-SCRIPTLET] ==> Generating module dependencies
[2019-08-07 15:57] [ALPM-SCRIPTLET] ==> Creating gzip-compressed initcpio image: /boot/initramfs-linux.img
[2019-08-07 15:57] [ALPM-SCRIPTLET] ==> Image generation successful
[2019-08-07 15:57] [ALPM] running 'systemd-catalog.hook'...
[2019-08-07 15:57] [ALPM] running 'systemd-daemon-reload.hook'...
[2019-08-07 15:57] [ALPM] running 'systemd-hwdb.hook'...
[2019-08-07 15:57] [ALPM] running 'systemd-sysctl.hook'...
[2019-08-07 15:57] [ALPM] running 'systemd-sysusers.hook'...
[2019-08-07 15:57] [ALPM] running 'systemd-tmpfiles.hook'...
[2019-08-07 15:57] [ALPM] running 'systemd-udev-reload.hook'...
[2019-08-07 15:57] [ALPM] running 'systemd-update.hook'...
[2019-08-07 15:57] [ALPM] running 'texinfo-install.hook'...
[2019-08-07 15:58] [PACMAN] Running 'pacman -S base-devel vim ccze python i2c-tools python-setuptools python-wheel python-pip python-virtualenv'
[2019-08-07 16:00] [ALPM] transaction started
[2019-08-07 16:00] [ALPM] reinstalled gawk (4.2.1-2)
[2019-08-07 16:00] [ALPM] reinstalled m4 (1.4.18-2)
[2019-08-07 16:00] [ALPM] reinstalled autoconf (2.69-5)
[2019-08-07 16:00] [ALPM] reinstalled automake (1.16.1-1)
[2019-08-07 16:00] [ALPM] reinstalled binutils (2.32-1)
[2019-08-07 16:00] [ALPM] reinstalled bison (3.3.2-1)
[2019-08-07 16:00] [ALPM] reinstalled sed (4.7-1)
[2019-08-07 16:00] [ALPM] reinstalled util-linux (2.34-3)
[2019-08-07 16:00] [ALPM] reinstalled fakeroot (1.23-1)
[2019-08-07 16:00] [ALPM] reinstalled file (5.37-2)
[2019-08-07 16:00] [ALPM] reinstalled findutils (4.6.0-4.1)
[2019-08-07 16:00] [ALPM] reinstalled flex (2.6.4-2)
[2019-08-07 16:00] [ALPM] reinstalled gcc (8.3.0-1)
[2019-08-07 16:00] [ALPM] reinstalled gettext (0.19.8.1-3)
[2019-08-07 16:00] [ALPM] reinstalled grep (3.3-1)
[2019-08-07 16:00] [ALPM] reinstalled groff (1.22.4-1)
[2019-08-07 16:00] [ALPM] reinstalled gzip (1.10-1)
[2019-08-07 16:00] [ALPM] reinstalled libtool (2.4.6+44+gb9b44533-1)
[2019-08-07 16:00] [ALPM] reinstalled texinfo (6.6-1)
[2019-08-07 16:00] [ALPM] reinstalled make (4.2.1-3)
[2019-08-07 16:00] [ALPM] reinstalled systemd (242.84-1)
[2019-08-07 16:00] [ALPM] reinstalled pacman (5.1.3-1.1)
[2019-08-07 16:00] [ALPM] reinstalled patch (2.7.6-7)
[2019-08-07 16:00] [ALPM] reinstalled pkgconf (1.6.3-1)
[2019-08-07 16:00] [ALPM] reinstalled sudo (1.8.27-1)
[2019-08-07 16:00] [ALPM] reinstalled which (2.21-3)
[2019-08-07 16:00] [ALPM] reinstalled vim (8.1.1776-1)
[2019-08-07 16:00] [ALPM] reinstalled ccze (0.2.1-10)
[2019-08-07 16:00] [ALPM] installed libnsl (1.2.0-1)
[2019-08-07 16:01] [ALPM] installed python (3.7.4-1)
[2019-08-07 16:01] [ALPM] installed i2c-tools (4.1-1)
[2019-08-07 16:01] [ALPM] installed python-appdirs (1.4.3-2)
[2019-08-07 16:01] [ALPM] installed python-pyparsing (2.4.2-1)
[2019-08-07 16:01] [ALPM] installed python-six (1.12.0-1)
[2019-08-07 16:01] [ALPM] installed python-packaging (19.0-1)
[2019-08-07 16:01] [ALPM] installed python-setuptools (1:41.0.1-1)
[2019-08-07 16:01] [ALPM] installed python-wheel (0.33.4-1)
[2019-08-07 16:01] [ALPM] installed python-msgpack (0.6.1-1)
[2019-08-07 16:01] [ALPM] installed python-urllib3 (1.25.3-1)
[2019-08-07 16:01] [ALPM] installed python-chardet (3.0.4-2)
[2019-08-07 16:01] [ALPM] installed python-idna (2.8-1)
[2019-08-07 16:01] [ALPM] installed python-requests (2.22.0-1)
[2019-08-07 16:01] [ALPM] installed python-cachecontrol (0.12.5-4)
[2019-08-07 16:01] [ALPM] installed python-colorama (0.4.1-1)
[2019-08-07 16:01] [ALPM] installed python-distlib (0.2.9-1)
[2019-08-07 16:01] [ALPM] installed python-distro (1.4.0-1)
[2019-08-07 16:01] [ALPM] installed python-webencodings (0.5.1-2)
[2019-08-07 16:01] [ALPM] installed python-html5lib (1.0.1-3)
[2019-08-07 16:01] [ALPM] installed python-lockfile (0.12.2-4)
[2019-08-07 16:01] [ALPM] installed python-pytoml (0.1.21-1)
[2019-08-07 16:01] [ALPM] installed python-pep517 (0.5.0-1)
[2019-08-07 16:01] [ALPM] installed python-progress (1.5-1)
[2019-08-07 16:01] [ALPM] installed python-retrying (1.3.3-4)
[2019-08-07 16:01] [ALPM] installed python-pip (19.0.3-1)
[2019-08-07 16:01] [ALPM] installed python-virtualenv (16.1.0-1)
[2019-08-07 16:01] [ALPM] transaction completed
[2019-08-07 16:01] [ALPM] running '90-linux-armv7.hook'...
[2019-08-07 16:01] [ALPM-SCRIPTLET] ==> Building image from preset: /etc/mkinitcpio.d/linux-armv7.preset: 'default'
[2019-08-07 16:01] [ALPM-SCRIPTLET] -> -k 5.2.6-1-ARCH -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img
[2019-08-07 16:01] [ALPM-SCRIPTLET] ==> Starting build: 5.2.6-1-ARCH
[2019-08-07 16:01] [ALPM-SCRIPTLET] -> Running build hook: [base]
[2019-08-07 16:01] [ALPM-SCRIPTLET] -> Running build hook: [udev]
[2019-08-07 16:01] [ALPM-SCRIPTLET] -> Running build hook: [autodetect]
[2019-08-07 16:01] [ALPM-SCRIPTLET] -> Running build hook: [modconf]
[2019-08-07 16:01] [ALPM-SCRIPTLET] -> Running build hook: [block]
[2019-08-07 16:01] [ALPM-SCRIPTLET] -> Running build hook: [filesystems]
[2019-08-07 16:01] [ALPM-SCRIPTLET] -> Running build hook: [keyboard]
[2019-08-07 16:01] [ALPM-SCRIPTLET] -> Running build hook: [fsck]
[2019-08-07 16:01] [ALPM-SCRIPTLET] ==> Generating module dependencies
[2019-08-07 16:01] [ALPM-SCRIPTLET] ==> Creating gzip-compressed initcpio image: /boot/initramfs-linux.img
[2019-08-07 16:01] [ALPM-SCRIPTLET] ==> Image generation successful
[2019-08-07 16:01] [ALPM] running 'systemd-catalog.hook'...
[2019-08-07 16:01] [ALPM] running 'systemd-daemon-reload.hook'...
[2019-08-07 16:01] [ALPM] running 'systemd-hwdb.hook'...
[2019-08-07 16:01] [ALPM] running 'systemd-sysctl.hook'...
[2019-08-07 16:01] [ALPM] running 'systemd-sysusers.hook'...
[2019-08-07 16:01] [ALPM] running 'systemd-tmpfiles.hook'...
[2019-08-07 16:01] [ALPM] running 'systemd-udev-reload.hook'...
[2019-08-07 16:01] [ALPM] running 'systemd-update.hook'...
[2019-08-07 16:01] [ALPM] running 'texinfo-install.hook'...
[2019-08-07 16:09] [PACMAN] Running 'pacman -S libjpeg-turbo'
[2019-08-07 16:09] [ALPM] transaction started
[2019-08-07 16:09] [ALPM] installed libjpeg-turbo (2.0.2-1)
[2019-08-07 16:09] [ALPM] transaction completed
[2019-08-07 16:09] [ALPM] running 'systemd-update.hook'...
[2019-08-07 16:21] [PACMAN] Running 'pacman -S freetype2'
[2019-08-07 16:21] [ALPM] transaction started
[2019-08-07 16:21] [ALPM] installed libpng (1.6.37-1)
[2019-08-07 16:21] [ALPM] installed graphite (1:1.3.13-1)
[2019-08-07 16:21] [ALPM] installed harfbuzz (2.5.3-1)
[2019-08-07 16:21] [ALPM] installed freetype2 (2.10.1-1)
[2019-08-07 16:21] [ALPM] transaction completed
[2019-08-07 16:21] [ALPM] running 'systemd-update.hook'...
[2019-08-07 17:57] [PACMAN] Running 'pacman -S go'
[2019-08-07 18:03] [ALPM] transaction started
[2019-08-07 18:04] [ALPM] installed go (2:1.12.7-1)
[2019-08-07 18:04] [ALPM] transaction completed
[2019-08-07 18:04] [ALPM] running 'systemd-update.hook'...
[2019-08-07 18:09] [PACMAN] Running '/usr/bin/pacman -U /tmp/yay/yay-9.2.1-1-armv7h.pkg.tar.xz'
[2019-08-07 18:09] [ALPM] transaction started
[2019-08-07 18:09] [ALPM] installed yay (9.2.1-1)
[2019-08-07 18:09] [ALPM] transaction completed
[2019-08-07 18:09] [ALPM] running 'systemd-update.hook'...
[2019-08-07 20:07] [PACMAN] Running 'pacman -S python2'
[2019-08-07 20:08] [PACMAN] Running 'pacman -S python2'
[2019-08-08 07:26] [PACMAN] Running 'pacman -S python2'
[2019-08-08 07:26] [ALPM] transaction started
[2019-08-08 07:27] [ALPM] installed python2 (2.7.16-1)
[2019-08-08 07:27] [ALPM] transaction completed
[2019-08-08 07:27] [ALPM] running 'systemd-update.hook'...
[2019-08-08 07:27] [PACMAN] Running 'pacman -S python2-virtualenv'
[2019-08-08 07:27] [ALPM] transaction started
[2019-08-08 07:27] [ALPM] installed python2-appdirs (1.4.3-2)
[2019-08-08 07:27] [ALPM] installed python2-pyparsing (2.4.2-1)
[2019-08-08 07:27] [ALPM] installed python2-six (1.12.0-1)
[2019-08-08 07:27] [ALPM] installed python2-packaging (19.0-1)
[2019-08-08 07:27] [ALPM] installed python2-setuptools (1:41.0.1-1)
[2019-08-08 07:27] [ALPM] installed python2-virtualenv (16.1.0-1)
[2019-08-08 07:27] [ALPM] transaction completed
[2019-08-08 07:27] [ALPM] running 'systemd-update.hook'...
[2019-08-08 07:28] [PACMAN] Running 'pacman -S python2-virtualenv python2-pip python2-wheel python2-setuptools'
[2019-08-08 07:28] [ALPM] transaction started
[2019-08-08 07:28] [ALPM] reinstalled python2-setuptools (1:41.0.1-1)
[2019-08-08 07:28] [ALPM] reinstalled python2-virtualenv (16.1.0-1)
[2019-08-08 07:28] [ALPM] installed python2-msgpack (0.6.1-1)
[2019-08-08 07:28] [ALPM] installed python2-urllib3 (1.25.3-1)
[2019-08-08 07:28] [ALPM] installed python2-chardet (3.0.4-2)
[2019-08-08 07:28] [ALPM] installed python2-idna (2.8-1)
[2019-08-08 07:28] [ALPM] installed python2-requests (2.22.0-1)
[2019-08-08 07:28] [ALPM] installed python2-cachecontrol (0.12.5-4)
[2019-08-08 07:28] [ALPM] installed python2-colorama (0.4.1-1)
[2019-08-08 07:28] [ALPM] installed python2-distlib (0.2.9-1)
[2019-08-08 07:28] [ALPM] installed python2-distro (1.4.0-1)
[2019-08-08 07:28] [ALPM] installed python2-webencodings (0.5.1-2)
[2019-08-08 07:28] [ALPM] installed python2-html5lib (1.0.1-3)
[2019-08-08 07:28] [ALPM] installed python2-lockfile (0.12.2-4)
[2019-08-08 07:28] [ALPM] installed python2-pytoml (0.1.21-1)
[2019-08-08 07:28] [ALPM] installed python2-pep517 (0.5.0-1)
[2019-08-08 07:28] [ALPM] installed python2-progress (1.5-1)
[2019-08-08 07:28] [ALPM] installed python2-retrying (1.3.3-4)
[2019-08-08 07:28] [ALPM] installed python2-ipaddress (1.0.22-1)
[2019-08-08 07:28] [ALPM] installed python2-pip (19.0.3-1)
[2019-08-08 07:28] [ALPM] installed python2-wheel (0.33.4-1)
[2019-08-08 07:28] [ALPM] transaction completed
[2019-08-08 07:28] [ALPM] running 'systemd-update.hook'...
[2019-08-08 11:30] [PACMAN] Running 'pacman -Syu'
[2019-08-08 11:30] [PACMAN] synchronizing package lists
[2019-08-08 11:31] [PACMAN] Running 'pacman -Syu'
[2019-08-08 11:31] [PACMAN] synchronizing package lists
[2019-08-08 11:31] [PACMAN] Running 'pacman -Syu'
[2019-08-08 11:31] [PACMAN] synchronizing package lists
[2019-08-08 11:31] [PACMAN] starting full system upgrade
[2019-08-08 11:33] [PACMAN] Running 'pacman -Syu'
[2019-08-08 11:33] [PACMAN] synchronizing package lists
[2019-08-08 11:33] [PACMAN] starting full system upgrade
[2019-08-08 11:45] [PACMAN] Running 'pacman -S powerline powerline-fonts'
[2019-08-08 11:45] [PACMAN] Running 'pacman -S powerline powerline-fonts'
[2019-08-08 11:45] [ALPM] transaction started
[2019-08-08 11:45] [ALPM] installed powerline-common (2.7-3)
[2019-08-08 11:45] [ALPM] installed python-powerline (2.7-3)
[2019-08-08 11:45] [ALPM] installed powerline (2.7-3)
[2019-08-08 11:45] [ALPM] installed powerline-fonts (2.7-3)
[2019-08-08 11:45] [ALPM] transaction completed
[2019-08-08 11:45] [ALPM] running 'systemd-update.hook'...
[2019-08-08 11:46] [PACMAN] Running 'pacman -Syu'
[2019-08-08 11:46] [PACMAN] synchronizing package lists
[2019-08-08 11:46] [PACMAN] starting full system upgrade
[2019-08-08 11:49] [ALPM] transaction started
[2019-08-08 11:49] [ALPM] upgraded shadow (4.7-1 -> 4.7-2)
[2019-08-08 11:49] [ALPM] upgraded linux-armv7 (5.2.6-1 -> 5.2.7-1)
[2019-08-08 11:49] [ALPM] transaction completed
[2019-08-08 11:49] [ALPM] running '60-linux-armv7.hook'...
[2019-08-08 11:49] [ALPM] running '90-linux-armv7.hook'...
[2019-08-08 11:49] [ALPM-SCRIPTLET] ==> Building image from preset: /etc/mkinitcpio.d/linux-armv7.preset: 'default'
[2019-08-08 11:49] [ALPM-SCRIPTLET] -> -k 5.2.7-1-ARCH -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img
[2019-08-08 11:49] [ALPM-SCRIPTLET] ==> Starting build: 5.2.7-1-ARCH
[2019-08-08 11:49] [ALPM-SCRIPTLET] -> Running build hook: [base]
[2019-08-08 11:49] [ALPM-SCRIPTLET] -> Running build hook: [udev]
[2019-08-08 11:49] [ALPM-SCRIPTLET] -> Running build hook: [autodetect]
[2019-08-08 11:49] [ALPM-SCRIPTLET] -> Running build hook: [modconf]
[2019-08-08 11:49] [ALPM-SCRIPTLET] -> Running build hook: [block]
[2019-08-08 11:49] [ALPM-SCRIPTLET] -> Running build hook: [filesystems]
[2019-08-08 11:49] [ALPM-SCRIPTLET] -> Running build hook: [keyboard]
[2019-08-08 11:49] [ALPM-SCRIPTLET] -> Running build hook: [fsck]
[2019-08-08 11:49] [ALPM-SCRIPTLET] ==> Generating module dependencies
[2019-08-08 11:49] [ALPM-SCRIPTLET] ==> Creating gzip-compressed initcpio image: /boot/initramfs-linux.img
[2019-08-08 11:49] [ALPM-SCRIPTLET] ==> Image generation successful
[2019-08-08 11:49] [ALPM] running 'systemd-daemon-reload.hook'...
[2019-08-08 11:49] [ALPM] running 'systemd-update.hook'...
[2019-08-08 12:24] [PACMAN] Running '/usr/bin/pacman -U /tmp/WiringPi/wiringpi-git-136.093e0a1-1-armv7h.pkg.tar.xz'
[2019-08-08 12:25] [PACMAN] Running '/usr/bin/pacman -U /tmp/WiringPi/wiringpi-git-136.093e0a1-1-armv7h.pkg.tar.xz'
[2019-08-08 12:25] [ALPM] transaction started
[2019-08-08 12:25] [ALPM] installed wiringpi-git (136.093e0a1-1)
[2019-08-08 12:25] [ALPM] transaction completed
[2019-08-08 12:25] [ALPM] running 'systemd-update.hook'...
[2019-08-08 12:57] [PACMAN] Running '/usr/bin/pacman -U /home/alarm/source/custom/BPI-WiringPi2/wiringpi-git-139.72fb9f4-1-armv7h.pkg.tar.xz'
[2019-08-08 12:57] [ALPM] transaction started
[2019-08-08 12:57] [ALPM] upgraded wiringpi-git (136.093e0a1-1 -> 139.72fb9f4-1)
[2019-08-08 12:57] [ALPM] transaction completed
[2019-08-08 12:57] [ALPM] running 'systemd-update.hook'...
[2019-08-10 04:48] [PACMAN] Running 'pacman -Syu'
[2019-08-10 04:48] [PACMAN] synchronizing package lists
[2019-08-10 04:49] [PACMAN] starting full system upgrade
[2019-08-10 04:51] [ALPM] transaction started
[2019-08-10 04:52] [ALPM] upgraded linux-armv7 (5.2.7-1 -> 5.2.8-1)
[2019-08-10 04:52] [ALPM] installed python-attrs (19.1.0-1)
[2019-08-10 04:52] [ALPM] upgraded python-packaging (19.0-1 -> 19.1-2)
[2019-08-10 04:52] [ALPM] installed python2-attrs (19.1.0-1)
[2019-08-10 04:52] [ALPM] upgraded python2-packaging (19.0-1 -> 19.1-2)
[2019-08-10 04:52] [ALPM] transaction completed
[2019-08-10 04:52] [ALPM] running '60-linux-armv7.hook'...
[2019-08-10 04:52] [ALPM] running '90-linux-armv7.hook'...
[2019-08-10 04:52] [ALPM-SCRIPTLET] ==> Building image from preset: /etc/mkinitcpio.d/linux-armv7.preset: 'default'
[2019-08-10 04:52] [ALPM-SCRIPTLET] -> -k 5.2.8-1-ARCH -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img
[2019-08-10 04:52] [ALPM-SCRIPTLET] ==> Starting build: 5.2.8-1-ARCH
[2019-08-10 04:52] [ALPM-SCRIPTLET] -> Running build hook: [base]
[2019-08-10 04:52] [ALPM-SCRIPTLET] -> Running build hook: [udev]
[2019-08-10 04:52] [ALPM-SCRIPTLET] -> Running build hook: [autodetect]
[2019-08-10 04:52] [ALPM-SCRIPTLET] -> Running build hook: [modconf]
[2019-08-10 04:52] [ALPM-SCRIPTLET] -> Running build hook: [block]
[2019-08-10 04:52] [ALPM-SCRIPTLET] -> Running build hook: [filesystems]
[2019-08-10 04:52] [ALPM-SCRIPTLET] -> Running build hook: [keyboard]
[2019-08-10 04:52] [ALPM-SCRIPTLET] -> Running build hook: [fsck]
[2019-08-10 04:52] [ALPM-SCRIPTLET] ==> Generating module dependencies
[2019-08-10 04:52] [ALPM-SCRIPTLET] ==> Creating gzip-compressed initcpio image: /boot/initramfs-linux.img
[2019-08-10 04:52] [ALPM-SCRIPTLET] ==> Image generation successful
[2019-08-10 04:52] [ALPM] running 'systemd-update.hook'...
[2019-08-10 14:40] [PACMAN] Running 'pacman -S wpa-supplicant'
[2019-08-10 14:40] [PACMAN] Running 'pacman -S wpa_supplicant'
[2019-08-10 14:48] [PACMAN] Running 'pacman -S wpa_supplicant'
[2019-08-10 14:52] [PACMAN] Running 'pacman -S iw'
[2019-08-10 14:52] [ALPM] transaction started
[2019-08-10 14:52] [ALPM] installed iw (5.3-1)
[2019-08-10 14:52] [ALPM] transaction completed
[2019-08-10 14:52] [ALPM] running 'systemd-update.hook'...
')

from my experience, it' always replaced with new one everytime pacman showing something like this

$this->bbcode_second_pass_code('', '
...
Building image from preset: /etc/mkinitcpio.d/linux-armv7.preset: 'default'
[2019-08-10 04:52] [ALPM-SCRIPTLET] -> -k 5.2.8-1-ARCH -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img
[2019-08-10 04:52] [ALPM-SCRIPTLET] ==> Starting build: 5.2.8-1-ARCH
[2019-08-10 04:52] [ALPM-SCRIPTLET] -> Running build hook: [base]
[2019-08-10 04:52] [ALPM-SCRIPTLET] -> Running build hook: [udev]
[2019-08-10 04:52] [ALPM-SCRIPTLET] -> Running build hook: [autodetect]
[2019-08-10 04:52] [ALPM-SCRIPTLET] -> Running build hook: [modconf]
[2019-08-10 04:52] [ALPM-SCRIPTLET] -> Running build hook: [block]
[2019-08-10 04:52] [ALPM-SCRIPTLET] -> Running build hook: [filesystems]
[2019-08-10 04:52] [ALPM-SCRIPTLET] -> Running build hook: [keyboard]
[2019-08-10 04:52] [ALPM-SCRIPTLET] -> Running build hook: [fsck]
[2019-08-10 04:52] [ALPM-SCRIPTLET] ==> Generating module dependencies
[2019-08-10 04:52] [ALPM-SCRIPTLET] ==> Creating gzip-compressed initcpio image: /boot/initramfs-linux.img
[2019-08-10 04:52] [ALPM-SCRIPTLET] ==> Image generation successful
...
')
xqdzn
 
Posts: 6
Joined: Sat Aug 10, 2019 12:19 pm

Re: Keeping or Correctly Generating DTB Files

Postby xqdzn » Sun Aug 11, 2019 7:14 pm

Well, for anyone who experienced same problem. The temporary fix for me is change u-boot configuration file so it would boot with dtb file outside /boot/dtbs.
xqdzn
 
Posts: 6
Joined: Sat Aug 10, 2019 12:19 pm

Re: Keeping or Correctly Generating DTB Files

Postby xqdzn » Mon Aug 19, 2019 4:01 pm

To answer my own questions, this is why upgrading kernel rewrite DTB files.


excerpt of PKGBUILD:
$this->bbcode_second_pass_code('', '
mkdir -p "${pkgdir}"/{boot,usr/lib/modules}
make INSTALL_MOD_PATH="${pkgdir}/usr" modules_install
[b]make INSTALL_DTBS_PATH="${pkgdir}/boot/dtbs" dtbs_install[/b]
cp arch/$KARCH/boot/zImage "${pkgdir}/boot/zImage"

')

So in order to avoid it, you should modify the PKGBUILD file for kernel.
I think this thread should be closed.
:)
xqdzn
 
Posts: 6
Joined: Sat Aug 10, 2019 12:19 pm

Re: Keeping or Correctly Generating DTB Files

Postby TheSaint » Tue Aug 20, 2019 6:14 am

I use a different boot.txt, so the dtb is located in a different directory, within the /boot directory.
The updates don't modify the boot.scr, so it's safe manner to address a different dtb.
This is mine
$this->bbcode_second_pass_code('', 'setenv rootcmd "LABEL=TB-MM-root"
setenv fdtfile rk3288-tinker-s.dtb
setenv bootargs "console=ttyS2,115200n8 root=${rootcmd} rw rootwait"

load ${devtype} ${devnum}:${bootpart} ${kernel_addr_r} /boot/zImage
load ${devtype} ${devnum}:${bootpart} ${fdt_addr_r} /boot/dtb/${fdtfile} ### dtb is my custom directory
fdt addr ${fdt_addr_r}
load ${devtype} ${devnum}:${bootpart} ${ramdisk_addr_r} /boot/initramfs-linux.img
bootz ${kernel_addr_r} ${ramdisk_addr_r}:${filesize} ${fdt_addr_r};
')
Anyways you may set an environment variable on the first lines as I used with fdtfile and then modify that in order to avoid risk of messing sensible parts of the script.
TheSaint
 
Posts: 346
Joined: Mon Jul 23, 2018 7:57 am

Re: Keeping or Correctly Generating DTB Files

Postby xqdzn » Tue Aug 20, 2019 7:26 pm

Good to know. Thank you for the tips!
xqdzn
 
Posts: 6
Joined: Sat Aug 10, 2019 12:19 pm

Re: Keeping or Correctly Generating DTB Files

Postby TheSaint » Wed Aug 21, 2019 7:50 am

BTW, I'm used to delete all DTB that aren't related to my MCU.
I wonder if we may have a download-on-demand, rather to get 600 and over dtb.
TheSaint
 
Posts: 346
Joined: Mon Jul 23, 2018 7:57 am

Re: Keeping or Correctly Generating DTB Files

Postby summers » Wed Aug 21, 2019 11:56 am

To my mind the problem is that sun8i-h2-plus-bananapi-m2-zero.dtb is the device tree blob for bananapi-m2 when you have a banapi-p2, so me I'd change the name of the blob to something like sun8i-h2-plus-bananapi-p2-zero.dtb

You'll then need to direct uboot how to find that, yes if you have a modern uboot that uses /boot/boot.scr then you can add into boot.txt and recompile.

Thing is that mainline dts although they describe hardware, will slowly be updated as hardware is better understood. So do at times get updated. Don't think the p2 is yet in the kernel source, so it won't get updates ....
summers
 
Posts: 995
Joined: Sat Sep 06, 2014 12:56 pm


Return to ARMv7h

Who is online

Users browsing this forum: No registered users and 10 guests