Kernel build .deb


#1

Has anyone managed to compile the kernel and create .deb?

I followed the steps of the wiki and everything works as expected. I just wish I could create a kernel .deb so I did not have to install the whole system just to update the kernel.

this error occurs when you have created .deb:

#build/pack_deb.sh -c rk3399 -d /dev/mmcblk0 -r out/system.img 
 dpkg-source --before-build rockchip-firmware
 fakeroot debian/rules clean
dh clean 
   dh_auto_clean
   dh_clean
 debian/rules build
dh build 
   dh_update_autotools_config
   dh_auto_configure
   dh_auto_build
	make -j1
make[1]: Entering directory '/srv/boards/rockchip-bsp/out/debian/rockchip-firmware'
make[1]: 'all' is up to date.
make[1]: Leaving directory '/srv/boards/rockchip-bsp/out/debian/rockchip-firmware'
   dh_auto_test
 fakeroot debian/rules binary
dh binary 
   dh_testroot
   dh_prep
   dh_auto_install
	make -j1 install DESTDIR=/srv/boards/rockchip-bsp/out/debian/rockchip-firmware/debian/tmp AM_UPDATE_INFO_DIR=no
make[1]: Entering directory '/srv/boards/rockchip-bsp/out/debian/rockchip-firmware'
install -d -m 755 /srv/boards/rockchip-bsp/out/debian/rockchip-firmware/debian/tmp/usr/lib/u-boot-rockchip/
install -D -m 644 ../../../out/u-boot/* /srv/boards/rockchip-bsp/out/debian/rockchip-firmware/debian/tmp/usr/lib/u-boot-rockchip/
install: omitindo o diretório '../../../out/u-boot/spi'
Makefile:4: recipe for target 'install' failed
make[1]: *** [install] Error 1
make[1]: Leaving directory '/srv/boards/rockchip-bsp/out/debian/rockchip-firmware'
dh_auto_install: make -j1 install DESTDIR=/srv/boards/rockchip-bsp/out/debian/rockchip-firmware/debian/tmp AM_UPDATE_INFO_DIR=no returned exit code 2
debian/rules:11: recipe for target 'binary' failed
make: *** [binary] Error 2
dpkg-buildpackage: erro: fakeroot debian/rules binary subprocess returned exit status 2
 PACK DEB FAILED.

#2

Google have a bit too much result about error like this…


#3

https://wiki.radxa.com/Rockpi4/dev/kernel-4.4


#4

He already read wiki