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
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]#
')