Jump to content

Recommended Posts

Posted

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...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines