Need some Helps for compiling own armbian OS for A04

,

Hi Guys :
I just got my DevTerm A04 (A brand new but second-hand) ,I love this small terminal ! I wish I can learn how to compile linux os by myself , I read the guide here

Create-DevTerm-A04-OS-image-from-scratch.

Everything going well until following step:

    after image done
    uncompress the
    linux-dtb-current-sunxi64_21.11.0-trunk_arm64.deb
    linux-image-current-sunxi64_21.11.0-trunk_arm64.deb
     and then combine all files ,all the postinst, preinst,prerm,postrm
    to be one devterm-kernel-current-cpi-a04.deb

After uncompress the two deb files ,I get two folders which contains two tar.xz files each
(control.tar.xz and data.tar.xz ) ,data.tar.xz are some folder and files like system file, I can combine they into a new data.tar.xz(no sweet, of course ).

BUT for the control.tar.xz, I have confused , both control.tar.xz from linux-dtb*.deb and linux-image*.deb are contains postinst, preinst prerm postrm such kind of files ,I have also check the difference of these files ,they not the same.

SO HERE is my question :
HOW CAN I combine these files ? WHAT kind of commands should I input ? these files will not covery by the other which has the same name ?

OR ,THE COMBINE means copy the content in one “postinst” file to another “postinst” file , so make them into ONE “postinst” file ,The other files doing like “postinst” file ?

Thanks for answering my question!
Best Regards!!!

1 Like

exact same question !

I have make a try . the result is A04 seems not work well under linux kernel 5.15.x ,kernel 5.10.x is OK .

to be clear

the reason I combined two debs into one is just that I am lazy to create two debs(into cpi’s apt repo)

and the combined preinst,postinst is I’ve checked every postinst ,preinst, concatenate the content together

then I use the files that came from those debs
like DEBIAN/control file(of cause modifed a little),which is the key file to create a deb

dpkg-deb -Z gzip --build --root-owner-group DEB_FOLDER

to create a combined new devterm-kernel-current-cpi-a04.deb

all process is based on deb apt package system

https://wiki.debian.org/HowToPackageForDebian

1 Like