[BPI-R2] Kernel Development

So as now the most complete is your 4.14.x kernel? (I’m waiting till 5.2 will be becouse I bought Intel AX200 which is WIFI 6 standard wireless module - its M2 but I’m waiting for adapter M2>miniPCIe)

Some special things like hwnat/hw-qos are only available on 4.14. But these are reported as unstable if activated (i do not have them activated). Most other functions are available on 4.19 too…5.2 will be no lts (maybe upcoming 5.3) and so eol soon or testing new functions or porting drivers.

which 4.19 branch?

  • 4.19-gmac
  • 4.19-hardening
  • 4.19-hdmi
  • 4.19-hdmiv5_new
  • 4.19-lora
  • 4.19-lora_new
  • 4.19-main
  • 4.19-mt76
  • 4.19-mt7615

Acctualy I need only basic kernel, good to have hwnat, aes crypto extensions working.

My intel ax200 wlan drivers are included in 5.1 kerner or newer

or should I try any of your 5.1 or 5.2 braches? If yes which one?

and my last question Frank, does OpenWrt support same kernel as linux? Or should I compile it within OpenWrt build?

good article on changes in 5.2 kernel regarding ARM architcture:

if you need these drivers, you cannot use 4.19…normally x.xx-main is the right one for r2…for 5.2 i have not upgraded to final and merged the feature-branches. also second gmac is not ported because we try to realize this with phylink (in 5.2 net-next-patches are needed).

as a first start you can use 5.2-rc (if you do not need poweroff, hdmi and internal wifi). else you have to merge by yourself or wait till i have done it…

currently busy because of phylink/mainline-network on r64

basicly openwrt uses same kernel, but by default it is built inside the image and cannot replaced so easy. see the openwrt-repo from lexa2 how to get an openwrt with partitions…with this image you can replace kernel on boot-partition, but if you use my kernels you maybe have to swap mmc back (openwrt using mainline-kernel which does not swap mmc i’ve done for debian/ubuntu). simply revert the mmc-swap-commit

edit: have now created 5.2-main and merged poweroff+ wifi

5.3 is out for 2 days now and i did some work on it

1 Like

basic includes all features or no ?

Features are merged if they are tested some time (not yet)…or you can merge it by yourself.

There is an instruction how to do this?

any git tutorial :slight_smile:

git checkout https://...
git checkout 5.3-rc
git merge 5.3-poweroff
git merge 5.3-hdmi
...
./build.sh importconfig
./build.sh
1 Like

I tried to do this:

git checkout 5.3-rc that’s OK

then

git merge origin/5.3-hdmi also OK

then

git merge origin/5.3-lima

Auto-merging arch/arm/configs/mt7623n_evb_fwu_defconfig CONFLICT (content): Merge conflict in arch/arm/configs/mt7623n_evb_fwu_defconfig Automatic merge failed; fix conflicts and then commit the result.

i’ve touched defconfig in hdmi-branch for fbcon…just use the defconfig from hdmi-branch

git checkout 5.3-hdmi -- arch/arm/configs/mt7623n_evb_fwu_defconfig
git add arch/arm/configs/mt7623n_evb_fwu_defconfig
git merge --continue

if it’s not so easy you’ll find conflict-markers “<<<<<,=====,>>>>>” in the file surrounding the conflicting content…just delete them and the lines you don’t want and make "git add " and “git merge --continue”

Hi Frank,

I tried to merge all 5.3 branches and build the deb image but it seems after I ran build.sh it only generates the arm64 deb package and not armhf deb package (which is required for BPI-R2 I think). These are the last lines from the build process:

cp: cannot stat 'utils/wmt/config/*': No such file or directory
cp: cannot stat 'utils/wmt/src/wmt_loader': No such file or directory
cp: cannot stat 'utils/wmt/src/wmt_loopback': No such file or directory
cp: cannot stat 'utils/wmt/src/stp_uart_launcher': No such file or directory
cp: cannot stat 'utils/wmt/firmware/*': No such file or directory
rm: cannot remove 'debian/bananapi-r2-image/boot/bananapi/bpi-r2/linux/dtb': Is a directory
dpkg-deb: building package 'bananapi-r2-image-5.3-rc' in '../debian/bananapi-r2-image-5.3-rc_5.3.0-rc2-1_arm64.deb'.
-rw-r--r-- 1 sysadmin sysadmin 34M Aug 22 08:38 debian/bananapi-r2-image-5.3-rc_5.3.0-rc2-1_arm64.deb
dpkg-deb: error: failed to read archive 'debian/bananapi-r2-image-5.3-rc_5.3.0-rc2-1_armhf.deb': No such file or directory
dpkg-deb: error: failed to read archive 'debian/bananapi-r2-image-5.3-rc_5.3.0-rc2-1_armhf.deb': No such file or directory

Do you know why is this happening ?

Thank you for reporting it,i try to make a combined build.sh for both devices so that i nees to maintain only one,seems i forgot something in deb-function.

Wmt-tools are only included in lts-branches of r2 (need to deactivate on r64) and cryptodev imho is only on 4.14

Ok thanks. Is is possible to integrate cryptodev in the 5.3 branch ? What are the required steps ? I want to test it also.

Just look how i have done it on 4.14…maybe i have it also in 4.19…but i don’t do it on every new kernel due too less time

@cioby23 have fixed the deb-function in 5.3-rc-branch, make sure you use this version and not the one in the feature-branches

Ok thanks,

I’ll try later today to merge the feature branches in the 5.3-rc and run the build script again.

It seems the armhf deb package is still not generated yet. I did use the latest build.sh script (no errors now - everything went fine) but still only an arm64 deb package.

WMT-Tools not available
dpkg-deb: building package 'bananapi-r2-image-' in '../debian/bananapi-r2-image-_5.3.0-rc1-1_arm64.deb'.
-rw-r--r-- 1 sysadmin sysadmin 34M Aug 23 11:43 debian/bananapi-r2-image-_5.3.0-rc1-1_arm64.deb
drwxr-xr-x root/root         0 2019-08-23 11:43 ./
drwxr-xr-x root/root         0 2019-08-23 11:43 ./boot/
drwxr-xr-x root/root         0 2019-08-23 11:43 ./boot/bananapi/
drwxr-xr-x root/root         0 2019-08-23 11:43 ./boot/bananapi/bpi-r2/
drwxr-xr-x root/root         0 2019-08-23 11:43 ./boot/bananapi/bpi-r2/linux/
drwxr-xr-x root/root         0 2019-08-23 11:43 ./boot/bananapi/bpi-r2/linux/dtb/
-rw-r--r-- root/root     38323 2019-08-23 11:43 ./boot/bananapi/bpi-r2/linux/dtb/bpi-r2-5.3.0-rc1.dtb
-rw-r--r-- root/root   8132441 2019-08-23 11:43 ./boot/bananapi/bpi-r2/linux/uImage_5.3.0-rc1
-rw-r--r-- root/root   8102576 2019-08-23 11:43 ./boot/bananapi/bpi-r2/linux/uImage_5.3.0-rc1_nodt
drwxr-xr-x root/root         0 2019-08-23 11:43 ./lib/
drwxr-xr-x root/root         0 2019-08-23 11:43 ./lib/modules/
drwxr-xr-x root/root         0 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/
drwxr-xr-x root/root         0 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/
drwxr-xr-x root/root         0 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/arch/
drwxr-xr-x root/root         0 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/arch/arm/
drwxr-xr-x root/root         0 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/arch/arm/crypto/
-rw-r--r-- root/root    184916 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/arch/arm/crypto/aes-arm-bs.ko
-rw-r--r-- root/root    178820 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/arch/arm/crypto/aes-arm-ce.ko
-rw-r--r-- root/root    106476 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/arch/arm/crypto/aes-arm.ko
-rw-r--r-- root/root    168420 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/arch/arm/crypto/chacha-neon.ko
-rw-r--r-- root/root    169048 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/arch/arm/crypto/crc32-arm-ce.ko
-rw-r--r-- root/root    180704 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/arch/arm/crypto/ghash-arm-ce.ko
-rw-r--r-- root/root    166836 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/arch/arm/crypto/sha1-arm-ce.ko
-rw-r--r-- root/root    169632 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/arch/arm/crypto/sha1-arm-neon.ko
-rw-r--r-- root/root    165948 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/arch/arm/crypto/sha1-arm.ko
-rw-r--r-- root/root    168660 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/arch/arm/crypto/sha2-arm-ce.ko
-rw-r--r-- root/root    298224 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/arch/arm/crypto/sha256-arm.ko
-rw-r--r-- root/root    299992 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/arch/arm/crypto/sha512-arm.ko
drwxr-xr-x root/root         0 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/crypto/
-rw-r--r-- root/root    159260 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/crypto/arc4.ko
-rw-r--r-- root/root    272640 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/crypto/authenc.ko
-rw-r--r-- root/root    276148 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/crypto/authencesn.ko
-rw-r--r-- root/root    170316 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/crypto/chacha_generic.ko
-rw-r--r-- root/root    161820 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/crypto/crc32_generic.ko
-rw-r--r-- root/root    232756 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/crypto/cryptd.ko
-rw-r--r-- root/root    184848 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/crypto/crypto_simd.ko
-rw-r--r-- root/root    130888 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/crypto/des_generic.ko
-rw-r--r-- root/root    166408 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/crypto/echainiv.ko
-rw-r--r-- root/root    170804 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/crypto/md4.ko
-rw-r--r-- root/root    164408 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/crypto/md5.ko
drwxr-xr-x root/root         0 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/drivers/
drwxr-xr-x root/root         0 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/drivers/ata/
-rw-r--r-- root/root    235700 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/drivers/ata/ahci_mtk.ko
-rw-r--r-- root/root    259272 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/drivers/ata/libahci_platform.ko
drwxr-xr-x root/root         0 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/drivers/dma/
-rw-r--r-- root/root    250592 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/drivers/dma/dmatest.ko
drwxr-xr-x root/root         0 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/drivers/i2c/
-rw-r--r-- root/root    179232 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/drivers/i2c/i2c-dev.ko
drwxr-xr-x root/root         0 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/drivers/iio/
drwxr-xr-x root/root         0 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/drivers/iio/adc/
-rw-r--r-- root/root    139804 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/drivers/iio/adc/mt6577_auxadc.ko
drwxr-xr-x root/root         0 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/drivers/input/
-rw-r--r-- root/root    141880 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/drivers/input/evbug.ko
drwxr-xr-x root/root         0 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/drivers/input/keyboard/
-rw-r--r-- root/root    158672 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/drivers/input/keyboard/mtk-pmic-keys.ko
drwxr-xr-x root/root         0 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/drivers/md/
-rw-r--r-- root/root    401204 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/drivers/md/dm-bio-prison.ko
-rw-r--r-- root/root    621556 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/drivers/md/dm-thin-pool.ko
drwxr-xr-x root/root         0 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/drivers/md/persistent-data/
-rw-r--r-- root/root   1410068 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/drivers/md/persistent-data/dm-persistent-data.ko
drwxr-xr-x root/root         0 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/drivers/net/
-rw-r--r-- root/root    258344 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/drivers/net/dummy.ko
drwxr-xr-x root/root         0 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/drivers/net/ipvlan/
-rw-r--r-- root/root   1024372 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/drivers/net/ipvlan/ipvlan.ko
-rw-r--r-- root/root    446832 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/drivers/net/macvlan.ko
drwxr-xr-x root/root         0 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/drivers/net/ppp/
-rw-r--r-- root/root     96644 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/drivers/net/ppp/ppp_deflate.ko
-rw-r--r-- root/root    462248 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/drivers/net/ppp/ppp_generic.ko
-rw-r--r-- root/root    155768 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/drivers/net/ppp/ppp_mppe.ko
-rw-r--r-- root/root    368904 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/drivers/net/ppp/pppoe.ko
-rw-r--r-- root/root    302808 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/drivers/net/ppp/pppox.ko
drwxr-xr-x root/root         0 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/drivers/net/slip/
-rw-r--r-- root/root    324804 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/drivers/net/slip/slhc.ko
-rw-r--r-- root/root    580420 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/drivers/net/tun.ko
-rw-r--r-- root/root    419256 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/drivers/net/veth.ko
drwxr-xr-x root/root         0 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/drivers/nvmem/
-rw-r--r-- root/root    115964 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/drivers/nvmem/nvmem_mtk-efuse.ko
drwxr-xr-x root/root         0 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/drivers/pwm/
-rw-r--r-- root/root    132848 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/drivers/pwm/pwm-mediatek.ko
drwxr-xr-x root/root         0 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/drivers/rtc/
-rw-r--r-- root/root    222020 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/drivers/rtc/rtc-ds1307.ko
drwxr-xr-x root/root         0 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/drivers/spi/
-rw-r--r-- root/root    197876 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/drivers/spi/spi-mt65xx.ko
-rw-r--r-- root/root    206328 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/drivers/spi/spidev.ko
drwxr-xr-x root/root         0 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/drivers/thermal/
-rw-r--r-- root/root    145816 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/drivers/thermal/mtk_thermal.ko
drwxr-xr-x root/root         0 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/drivers/video/
drwxr-xr-x root/root         0 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/drivers/video/backlight/
-rw-r--r-- root/root    198072 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/drivers/video/backlight/backlight.ko
-rw-r--r-- root/root    165448 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/drivers/video/backlight/generic_bl.ko
-rw-r--r-- root/root    177940 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/drivers/video/backlight/lcd.ko
-rw-r--r-- root/root   1242424 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/extra
drwxr-xr-x root/root         0 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/extras/
-rw-r--r-- root/root   1242424 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/extras/cryptodev.ko
drwxr-xr-x root/root         0 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/fs/
drwxr-xr-x root/root         0 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/fs/btrfs/
-rw-r--r-- root/root  15454752 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/fs/btrfs/btrfs.ko
drwxr-xr-x root/root         0 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/fs/cifs/
-rw-r--r-- root/root  11222508 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/fs/cifs/cifs.ko
drwxr-xr-x root/root         0 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/fs/configfs/
-rw-r--r-- root/root    747604 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/fs/configfs/configfs.ko
drwxr-xr-x root/root         0 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/fs/f2fs/
-rw-r--r-- root/root   6104700 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/fs/f2fs/f2fs.ko
drwxr-xr-x root/root         0 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/fs/fat/
-rw-r--r-- root/root    166940 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/fs/fat/msdos.ko
drwxr-xr-x root/root         0 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/fs/fuse/
-rw-r--r-- root/root   1877676 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/fs/fuse/fuse.ko
drwxr-xr-x root/root         0 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/fs/nfs/
drwxr-xr-x root/root         0 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/fs/nfs/flexfilelayout/
-rw-r--r-- root/root    877672 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/fs/nfs/flexfilelayout/nfs_layout_flexfiles.ko
drwxr-xr-x root/root         0 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/fs/nfsd/
-rw-r--r-- root/root   7808368 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/fs/nfsd/nfsd.ko
drwxr-xr-x root/root         0 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/fs/ntfs/
-rw-r--r-- root/root   2320088 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/fs/ntfs/ntfs.ko
drwxr-xr-x root/root         0 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/fs/xfs/
-rw-r--r-- root/root  23153100 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/fs/xfs/xfs.ko
drwxr-xr-x root/root         0 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/kernel/
-rw-r--r-- root/root    158500 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/kernel/configs.ko
drwxr-xr-x root/root         0 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/lib/
-rw-r--r-- root/root     80596 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/lib/crc-ccitt.ko
-rw-r--r-- root/root     78940 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/lib/crc-itu-t.ko
-rw-r--r-- root/root    102888 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/lib/xxhash.ko
drwxr-xr-x root/root         0 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/lib/zstd/
-rw-r--r-- root/root   1059096 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/lib/zstd/zstd_compress.ko
-rw-r--r-- root/root    378936 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/lib/zstd/zstd_decompress.ko
drwxr-xr-x root/root         0 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/net/
drwxr-xr-x root/root         0 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/net/bluetooth/
drwxr-xr-x root/root         0 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/net/bluetooth/bnep/
-rw-r--r-- root/root    897536 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/net/bluetooth/bnep/bnep.ko
drwxr-xr-x root/root         0 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/net/bluetooth/hidp/
-rw-r--r-- root/root    688348 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/net/bluetooth/hidp/hidp.ko
drwxr-xr-x root/root         0 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/net/bluetooth/rfcomm/
-rw-r--r-- root/root   1146444 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/net/bluetooth/rfcomm/rfcomm.ko
drwxr-xr-x root/root         0 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/net/bridge/
-rw-r--r-- root/root    727344 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/net/bridge/br_netfilter.ko
drwxr-xr-x root/root         0 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/net/ipv4/
-rw-r--r-- root/root    360852 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/net/ipv4/ipip.ko
drwxr-xr-x root/root         0 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/net/ipv4/netfilter/
-rw-r--r-- root/root    386272 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/net/ipv4/netfilter/ip_tables.ko
-rw-r--r-- root/root    314324 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/net/ipv4/netfilter/ipt_REJECT.ko
-rw-r--r-- root/root    333464 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/net/ipv4/netfilter/ipt_SYNPROXY.ko
-rw-r--r-- root/root    314928 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/net/ipv4/netfilter/iptable_filter.ko
-rw-r--r-- root/root    314024 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/net/ipv4/netfilter/iptable_mangle.ko
-rw-r--r-- root/root    327536 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/net/ipv4/netfilter/iptable_nat.ko
-rw-r--r-- root/root    332064 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/net/ipv4/netfilter/nf_defrag_ipv4.ko
-rw-r--r-- root/root    326404 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/net/ipv4/netfilter/nf_log_ipv4.ko
-rw-r--r-- root/root    324884 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/net/ipv4/netfilter/nf_reject_ipv4.ko
-rw-r--r-- root/root    324700 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/net/ipv4/udp_diag.ko
drwxr-xr-x root/root         0 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/net/ipv6/
-rw-r--r-- root/root    364880 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/net/ipv6/ah6.ko
-rw-r--r-- root/root    386028 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/net/ipv6/esp6.ko
-rw-r--r-- root/root    490408 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/net/ipv6/ip6_tunnel.ko
-rw-r--r-- root/root    328676 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/net/ipv6/ipcomp6.ko
-rw-r--r-- root/root    343160 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/net/ipv6/mip6.ko
drwxr-xr-x root/root         0 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/net/ipv6/netfilter/
-rw-r--r-- root/root    390888 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/net/ipv6/netfilter/ip6_tables.ko
-rw-r--r-- root/root    317756 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/net/ipv6/netfilter/ip6t_REJECT.ko
-rw-r--r-- root/root    333780 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/net/ipv6/netfilter/ip6t_SYNPROXY.ko
-rw-r--r-- root/root    330204 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/net/ipv6/netfilter/ip6t_rt.ko
-rw-r--r-- root/root    318656 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/net/ipv6/netfilter/ip6table_filter.ko
-rw-r--r-- root/root    317748 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/net/ipv6/netfilter/ip6table_mangle.ko
-rw-r--r-- root/root    331000 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/net/ipv6/netfilter/ip6table_nat.ko
-rw-r--r-- root/root    638540 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/net/ipv6/netfilter/nf_defrag_ipv6.ko
-rw-r--r-- root/root    333072 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/net/ipv6/netfilter/nf_log_ipv6.ko
-rw-r--r-- root/root    335224 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/net/ipv6/netfilter/nf_reject_ipv6.ko
-rw-r--r-- root/root    327216 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/net/ipv6/tunnel6.ko
-rw-r--r-- root/root    341300 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/net/ipv6/xfrm6_tunnel.ko
drwxr-xr-x root/root         0 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/net/netfilter/
drwxr-xr-x root/root         0 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/net/netfilter/ipvs/
-rw-r--r-- root/root   3536176 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/net/netfilter/ipvs/ip_vs.ko
-rw-r--r-- root/root    367196 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/net/netfilter/nf_conncount.ko
-rw-r--r-- root/root   4757308 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/net/netfilter/nf_conntrack.ko
-rw-r--r-- root/root    362648 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/net/netfilter/nf_conntrack_ftp.ko
-rw-r--r-- root/root    487664 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/net/netfilter/nf_conntrack_netlink.ko
-rw-r--r-- root/root    325984 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/net/netfilter/nf_log_common.ko
-rw-r--r-- root/root   1347308 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/net/netfilter/nf_nat.ko
-rw-r--r-- root/root    331504 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/net/netfilter/nf_nat_ftp.ko
-rw-r--r-- root/root    407064 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/net/netfilter/nf_synproxy_core.ko
-rw-r--r-- root/root    331788 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/net/netfilter/nfnetlink.ko
-rw-r--r-- root/root    407168 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/net/netfilter/x_tables.ko
-rw-r--r-- root/root    317372 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/net/netfilter/xt_CHECKSUM.ko
-rw-r--r-- root/root    317756 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/net/netfilter/xt_LOG.ko
-rw-r--r-- root/root    329288 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/net/netfilter/xt_MASQUERADE.ko
-rw-r--r-- root/root    319316 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/net/netfilter/xt_TCPOPTSTRIP.ko
-rw-r--r-- root/root    329000 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/net/netfilter/xt_addrtype.ko
-rw-r--r-- root/root    326060 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/net/netfilter/xt_connlimit.ko
-rw-r--r-- root/root    327560 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/net/netfilter/xt_connmark.ko
-rw-r--r-- root/root    332668 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/net/netfilter/xt_conntrack.ko
-rw-r--r-- root/root    308872 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/net/netfilter/xt_iprange.ko
-rw-r--r-- root/root    338352 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/net/netfilter/xt_ipvs.ko
-rw-r--r-- root/root    249036 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/net/netfilter/xt_limit.ko
-rw-r--r-- root/root    317516 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/net/netfilter/xt_mac.ko
-rw-r--r-- root/root    244756 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/net/netfilter/xt_mark.ko
-rw-r--r-- root/root    333588 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/net/netfilter/xt_nat.ko
-rw-r--r-- root/root    354168 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/net/netfilter/xt_recent.ko
-rw-r--r-- root/root    322024 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/net/netfilter/xt_state.ko
-rw-r--r-- root/root    323724 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/net/netfilter/xt_tcpudp.ko
drwxr-xr-x root/root         0 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/net/packet/
-rw-r--r-- root/root    311508 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/net/packet/af_packet_diag.ko
drwxr-xr-x root/root         0 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/net/sched/
-rw-r--r-- root/root    276548 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/net/sched/act_vlan.ko
-rw-r--r-- root/root    281280 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/net/sched/cls_fw.ko
-rw-r--r-- root/root    348932 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/net/sched/cls_route.ko
-rw-r--r-- root/root    350320 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/net/sched/cls_rsvp.ko
-rw-r--r-- root/root    344048 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/net/sched/cls_rsvp6.ko
-rw-r--r-- root/root    295696 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/net/sched/cls_tcindex.ko
-rw-r--r-- root/root    326028 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/net/sched/cls_u32.ko
-rw-r--r-- root/root    330420 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/net/sched/sch_cbq.ko
-rw-r--r-- root/root    350560 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/net/sched/sch_dsmark.ko
-rw-r--r-- root/root    371508 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/net/sched/sch_gred.ko
-rw-r--r-- root/root    343036 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/net/sched/sch_htb.ko
-rw-r--r-- root/root    256824 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/net/sched/sch_ingress.ko
-rw-r--r-- root/root    365324 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/net/sched/sch_netem.ko
-rw-r--r-- root/root    281064 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/net/sched/sch_prio.ko
-rw-r--r-- root/root    352900 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/net/sched/sch_red.ko
-rw-r--r-- root/root    362684 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/net/sched/sch_sfq.ko
-rw-r--r-- root/root    291872 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/net/sched/sch_tbf.ko
-rw-r--r-- root/root    284724 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/net/sched/sch_teql.ko
drwxr-xr-x root/root         0 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/net/unix/
-rw-r--r-- root/root    314884 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/net/unix/unix_diag.ko
drwxr-xr-x root/root         0 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/net/xfrm/
-rw-r--r-- root/root    329592 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/net/xfrm/xfrm_algo.ko
-rw-r--r-- root/root    346548 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/kernel/net/xfrm/xfrm_ipcomp.ko
-rw-r--r-- root/root     11152 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/modules.alias
-rw-r--r-- root/root     14726 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/modules.alias.bin
-rw-r--r-- root/root      8140 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/modules.builtin
-rw-r--r-- root/root      9967 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/modules.builtin.bin
-rw-r--r-- root/root     57948 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/modules.builtin.modinfo
-rw-r--r-- root/root     10569 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/modules.dep
-rw-r--r-- root/root     17506 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/modules.dep.bin
-rw-r--r-- root/root       141 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/modules.devname
-rw-r--r-- root/root      5050 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/modules.order
-rw-r--r-- root/root       377 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/modules.softdep
-rw-r--r-- root/root     25909 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/modules.symbols
-rw-r--r-- root/root     31339 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/modules.symbols.bin
lrwxrwxrwx root/root         0 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/build -> /home/sysadmin/bpi-r2
lrwxrwxrwx root/root         0 2019-08-23 11:43 ./lib/modules/5.3.0-rc1-bpi-r2/source -> /home/sysadmin/bpi-r2
 new debian package, version 2.0.
 size 35384116 bytes: control archive=979 bytes.
     205 bytes,     9 lines      control              
     674 bytes,    22 lines   *  postinst             #!/bin/bash
     465 bytes,    15 lines   *  postrm               #!/bin/bash
     522 bytes,    18 lines   *  preinst              #!/bin/bash
 Package: bananapi-r2-image-
 Version: 5.3.0-rc1-1
 Section: custom
 Priority: optional
 Architecture: arm64
 Multi-Arch: no
 Essential: no
 Maintainer: Frank Wunderlich
 Description:  linux image 5.3.0-rc1-bpi-r2
sysadmin@banana-pi-r2:~/bpi-r2$ cd debian/
sysadmin@banana-pi-r2:~/bpi-r2/debian$ ls
bananapi-r2-image  bananapi-r2-image-_5.3.0-rc1-1_arm64.deb

seems i missed spaces around == in the check for board

added them, now a armhf is created on my machine

amended last commit

I have build the kernel fron 5.3-rc branch and it completes successfully but I see one message about dtb file missing. Is it safe to install the generated deb file ?

Below is the output from the build process:

Build Kernel
needed: make u-boot-tools bc gcc libc6-dev libncurses5-dev ccache
generate branch vars...
kernbranch:5.3-rc,gitbranch:
Cleanup Kernel Build
  CALL    scripts/atomic/check-atomics.sh
  CALL    scripts/checksyscalls.sh
  CHK     include/generated/compile.h
  Kernel: arch/arm/boot/Image is ready
  Building modules, stage 2.
  OBJCOPY arch/arm/boot/zImage
  Kernel: arch/arm/boot/zImage is ready
  MODPOST 2904 modules
**cat: arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dtb: No such file or directory**
Image Name:   Linux Kernel 5.3.0-rc2
Created:      Sat Aug 24 11:26:57 2019
Image Type:   ARM Linux Kernel Image (uncompressed)
Data Size:    3445248 Bytes = 3364.50 kB = 3.29 MB
Load Address: 80008000
Entry Point:  80008000
build uImage without appended DTB...
**cp: cannot stat 'arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dtb': No such file or directory**
Image Name:   Linux Kernel 5.3.0-rc2
Created:      Sat Aug 24 11:27:18 2019
Image Type:   ARM Linux Kernel Image (uncompressed)
Data Size:    3445248 Bytes = 3364.50 kB = 3.29 MB
Load Address: 80008000
Entry Point:  80008000