Hi,
I'm having a little trouble with building the Kernel for the Rock 64. I'm initially trying to build in the machine itself, I have a 4GB version.
I've follow the process below to set up the machine, download the Kernel, configure it, build it and install it. it's the final step I'm having an issue with...
Step 1: Install prerequisite libraries for the Kernel build
Step 2: Get the Kernel Source
Step 3: Configure the Kernel
Step 4: Build the Kernel
Step 5: Install the Kernel Modules
Step 6: Install the Kernel
I then got the following error
so I found the rk3328-rock64.dtb on the machine and copied it to /etc/flash-kernel/dtbs
I ran make install again and I now get the following..
Any guidance would be greatly appreciated.....
EDIT: I'm running artful-minimal-rock64-0.5.15-136-arm64.img
I'm having a little trouble with building the Kernel for the Rock 64. I'm initially trying to build in the machine itself, I have a 4GB version.
I've follow the process below to set up the machine, download the Kernel, configure it, build it and install it. it's the final step I'm having an issue with...
Step 1: Install prerequisite libraries for the Kernel build
Code:
sudo apt-get install fakeroot kernel-wedge build-essential bison flex libncurses5-dev libncursesw5-devStep 2: Get the Kernel Source
Code:
git clone https://github.com/ayufan-rock64/linux-mainline-kernel.gitStep 3: Configure the Kernel
Code:
cd linux-mainline-kernel
make rockchip_linux_defconfigStep 4: Build the Kernel
Code:
make -j5Step 5: Install the Kernel Modules
Code:
sudo make modules_installStep 6: Install the Kernel
Code:
sudo make installI then got the following error
Code:
/bin/bash ./arch/arm64/boot/install.sh 4.16.0-rc6-46881-g027e722bb005 \
arch/arm64/boot/Image System.map "/boot"
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.16.0-rc6-46881-g027e722bb005 /boot/vmlinuz-4.16.0-rc6-46881-g027e722bb005
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.16.0-rc6-46881-g027e722bb005 /boot/vmlinuz-4.16.0-rc6-46881-g027e722bb005
update-initramfs: Generating /boot/initrd.img-4.16.0-rc6-46881-g027e722bb005
Warning: root device does not exist
Using DTB: rk3328-rock64.dtb
Couldn't find DTB rk3328-rock64.dtb in /usr/lib/linux-image-4.16.0-rc6-46881-g027e722bb005 or /etc/flash-kernel/dtbs
run-parts: /etc/initramfs/post-update.d//flash-kernel exited with return code 1
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
arch/arm64/boot/Makefile:40: recipe for target 'install' failed
make[1]: *** [install] Error 1
arch/arm64/Makefile:132: recipe for target 'install' failed
make: *** [install] Error 2so I found the rk3328-rock64.dtb on the machine and copied it to /etc/flash-kernel/dtbs
Code:
sudo cp /usr/lib/linux-image-4.4.77-rockchip-ayufan-136/rockchip/rk3328-rock64.dtb /etc/flash-kernel/dtbs/rk3328-rock64.dtbI ran make install again and I now get the following..
Code:
/bin/bash ./arch/arm64/boot/install.sh 4.16.0-rc6-46881-g027e722bb005 \
arch/arm64/boot/Image System.map "/boot"
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.16.0-rc6-46881-g027e722bb005 /boot/vmlinuz-4.16.0-rc6-46881-g027e722bb005
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.16.0-rc6-46881-g027e722bb005 /boot/vmlinuz-4.16.0-rc6-46881-g027e722bb005
update-initramfs: Generating /boot/initrd.img-4.16.0-rc6-46881-g027e722bb005
Warning: root device does not exist
Using DTB: rk3328-rock64.dtb
Installing /etc/flash-kernel/dtbs/rk3328-rock64.dtb into /boot/dtbs/4.16.0-rc6-46881-g027e722bb005/rk3328-rock64.dtb
Installing new rk3328-rock64.dtb.
Ignoring old or unknown version 4.16.0-rc6-46881-g027e722bb005 (latest is 4.16.0-rc6-46881-g027e722bb005.old)
Use --force if you want version 4.16.0-rc6-46881-g027e722bb005.
Installing /etc/flash-kernel/dtbs/rk3328-rock64.dtb into /boot/dtbs/4.16.0-rc6-46881-g027e722bb005.old/rk3328-rock64.dtb
Installing new rk3328-rock64.dtb.
run-parts: /etc/initramfs/post-update.d//flash-kernel exited with return code 2
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
arch/arm64/boot/Makefile:40: recipe for target 'install' failed
make[1]: *** [install] Error 1
arch/arm64/Makefile:132: recipe for target 'install' failed
make: *** [install] Error 2Any guidance would be greatly appreciated.....
EDIT: I'm running artful-minimal-rock64-0.5.15-136-arm64.img

