Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Recommended efficient setup for Kernel modules and dtb development

Featured Replies

I'm looking for an alternative way (like raspberry pysh...) to quick compile dtb, kernel modules and kernel Image to test some custom sound cards with a banana pi cm4 as base board.

 

In principle, I'm following the simplest path for me that it would be, compile and install specific kernel image, dtb and modules and of course an initrd image for uBoot and kernel. But I'm a bit confused about all the files in the boot partition below:

 

xxxx@bananapicm4io:/boot$ ls
armbianEnv.txt                  Image
boot.bmp                        initrd.img-6.12.0
boot.cmd                        initrd.img-6.12.13-current-meson64
boot.scr                        System.map-6.12.13-current-meson64
config-6.12.0                   uInitrd
config-6.12.13-current-meson64  uInitrd-6.12.0
dtb                             uInitrd-6.12.13-current-meson64
dtb-6.12.13-current-meson64     vmlinuz-6.12.13-current-meson64

  

ignore 6.12.0 files because those are the ones I'm trying to compile in a host machine (also aarch64) and then install and copy into the boot partition of the bananapi.

 

So far I'm building and installing:

Image

initrd.img-6.12.0

uInitrd

and the dtbs of the bananapi (already verified those work with the default image 6.12.13)

 

Kernel source is linux mainline

 

So far does not seem to work as I get from uboot:

Applying kernel provided DT fixup script (meson-fixup.scr)
## Executing script at 32000000
## Loading init Ramdisk from Legacy Image at 13000000 ...
   Image Name:   uInitrd
   Image Type:   AArch64 Linux RAMDisk Image (gzip compressed)
   Data Size:    271326524 Bytes = 258.8 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 04080000
   Booting using the fdt blob at 0x4080000
Working FDT set to 4080000
ERROR: Failed to allocate 0x102c1d3c bytes below 0x40000000.
ramdisk - allocation error
booti - boot Linux kernel 'Image' format from memory

 

any suggestions are apreccited.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.