munocat Posted March 19, 2019 Posted March 19, 2019 Hello I built a new kernel for my rock64, how do I install it so I can boot on it I am trying to go from 4.4.174 to 4.14.106
guidol Posted March 19, 2019 Posted March 19, 2019 if you did compile the new kernel in a .deb package the install it with dpkg -i kernel.deb
Igor Posted March 19, 2019 Posted March 19, 2019 On 3/19/2019 at 5:28 AM, munocat said: I am trying to go from 4.4.174 to 4.14.106 Expand Where did you get 4.14.y?
munocat Posted March 19, 2019 Author Posted March 19, 2019 On 3/19/2019 at 6:34 AM, Igor said: Where did you get 4.14.y? Expand www.kermel.org. Just downloaded, ran the menu config and made it.
munocat Posted March 19, 2019 Author Posted March 19, 2019 On 3/19/2019 at 5:33 AM, guidol said: if you did compile the new kernel in a .deb package the install it with dpkg -i kernel.deb Expand no, how for you build with .deb?
guidol Posted March 19, 2019 Posted March 19, 2019 On 3/19/2019 at 3:17 PM, munocat said: no, how for you build with .deb? Expand newer kernel version could be compiles with the armbian-build-system.https://docs.armbian.com/Developer-Guide_Build-Preparation/ do you use armabian on your Rock64?
munocat Posted March 19, 2019 Author Posted March 19, 2019 On 3/19/2019 at 3:20 PM, guidol said: newer kernel version could be compiles with the armbian-build-system.https://docs.armbian.com/Developer-Guide_Build-Preparation/ do you use armabian on your Rock64? Expand yes ambian ubuntu, I will review the guide. TY
munocat Posted March 19, 2019 Author Posted March 19, 2019 cant build on arm, need x86 to build. my only x86 is a mac. so back to square 1. I have a kernel build, but it is not booting from it
martinayotte Posted March 19, 2019 Posted March 19, 2019 On 3/19/2019 at 3:34 PM, munocat said: my only x86 is a mac. Expand You can install VirtualBox on your Mac and run Ubuntu Bionic inside the VM.
munocat Posted March 19, 2019 Author Posted March 19, 2019 this is starting to get too complicated. kind of sad that arm based os needs 86 to build it.
martinayotte Posted March 19, 2019 Posted March 19, 2019 On 3/19/2019 at 3:52 PM, munocat said: this is starting to get too complicated Expand VirtualBox isn't complicated to use. I've installed it on my sister's Mac, so she can use Windows-based accounting software on her machine ...
munocat Posted March 19, 2019 Author Posted March 19, 2019 the more level a system has the more complicated MacOS-->virtualbox-->x86 18.-04 ubuntu-->build tools-arm
munocat Posted March 19, 2019 Author Posted March 19, 2019 now that I have the virtual box with amd86(x86) ubuntu 18.04, how do I get it to build with a newer version of Linux, going for 4.14.x ?
munocat Posted March 19, 2019 Author Posted March 19, 2019 Hello. I am wanting to upgrade my Armbian ubuntu on the Rock64 to a newer kernel. I have set up a Virtual machine with ubuntu 18.04 x86 on my mac, and it is working fine I have been following the directions on the https://docs.armbian.com/Developer-Guide_Build-Preparation/ when run the build it is pulling in the old 4.4.x kernel, i want to upgrade to the 4.14 kernel (the reason why I picked 4.14 it has better performance.) how can I upgrade the kernel to a later version ?
martinayotte Posted March 19, 2019 Posted March 19, 2019 On 3/19/2019 at 7:00 PM, munocat said: how do I get it to build with a newer version of Linux Expand As provided earlier : https://docs.armbian.com/Developer-Guide_Build-Preparation/ But quickly : sudo ./compile.sh EXPERT=yes
Igor Posted March 19, 2019 Posted March 19, 2019 On 3/19/2019 at 2:34 PM, munocat said: www.kermel.org. Just downloaded, ran the menu config and made it. Expand This is ARM, support for this platform is not fully mainlined which means it's not this simple. Now you need a team of kernel hackers to port specifics support from 4.4 + refactor certain sections from scratch (generally speaking). Then, perhaps by the end of the year, you might be able to have generally usable kernel 4.14.y for this board. By that time, K5.X, which people are working with, will be viable modern option. Doing something helps. Use what we give you as on option (4.4.y and 4.20.y/5.0).
munocat Posted March 19, 2019 Author Posted March 19, 2019 On 3/19/2019 at 7:26 PM, martinayotte said: As provided earlier : https://docs.armbian.com/Developer-Guide_Build-Preparation/ But quickly : sudo ./compile.sh EXPERT=yes Expand will give it a spin. Ty
munocat Posted March 19, 2019 Author Posted March 19, 2019 On 3/19/2019 at 7:27 PM, Igor said: This is ARM, support for this platform is not fully mainlined which means it's not this simple. Now you need a team of kernel hackers to port specifics support from 4.4 + refactor certain sections from scratch (generally speaking). Then, perhaps by the end of the year, you might be able to have generally usable kernel 4.14.y for this board. By that time, K5.X, which people are working with, will be viable modern option. Doing something helps. Use what we give you as on option (4.4.y and 4.20.y/5.0). Expand there is no 4.20.y for Rock64, or I don't see it. i get impression that there is not much interest for the rockchip 3288. Should I just give up on trying to update ?
martinayotte Posted March 19, 2019 Posted March 19, 2019 On 3/19/2019 at 7:36 PM, munocat said: there is no 4.20.y for Rock64, or I don't see it. Expand You're right ! DEV branch has been switched to 5.0.y last Friday ... If you really wish to get 4.20.y, you will need to revert few things from this commit (mainly the branch name) : https://github.com/armbian/build/commit/53bcf26db6fbadfb2b10dfd166ae5a04bc834c4c
munocat Posted March 19, 2019 Author Posted March 19, 2019 On 3/19/2019 at 8:00 PM, martinayotte said: You're right ! DEV branch has been switched to 5.0.y last Friday ... If you really wish to get 4.20.y, you will need to revert few things from this commit (mainly the branch name) : https://github.com/armbian/build/commit/53bcf26db6fbadfb2b10dfd166ae5a04bc834c4c Expand I must sound annoying, that is because I don’t have much experience. When I run the ./compile.sh EXPERT=YES it still grabs the 4.4, if I look at non supported tree the ROCK64 is not there.
martinayotte Posted March 19, 2019 Posted March 19, 2019 On 3/19/2019 at 8:05 PM, munocat said: When I run the ./compile.sh EXPERT=YES Expand The "yes" should be in lower case ... Then, choose "DEV" branch, you will get a 5.0.y build, which is even better than 4.20.y ...
munocat Posted March 19, 2019 Author Posted March 19, 2019 On 3/19/2019 at 8:07 PM, martinayotte said: The "yes" should be in lower case ... Then, choose "DEV" branch, you will get a 5.0.y build, which is even better than 4.20.y ... Expand I don’t see a dev banch ? What am I doing wrong.
martinayotte Posted March 19, 2019 Posted March 19, 2019 On 3/19/2019 at 8:19 PM, munocat said: I don’t see a dev banch ? Expand Just after you have choosen rock64 board from the dialog, next dialog should show "default" or "dev" branch ... 1
AndrewDB Posted March 19, 2019 Posted March 19, 2019 On 3/19/2019 at 3:52 PM, munocat said: this is starting to get too complicated. kind of sad that arm based os needs 86 to build it. Expand Actually, you can natively build an Aarch64 Rockchip kernel very easily. Instructions to do so can be found here: http://wiki.loverpi.com/faq:sbc:libre-aml-s805x-howto-native-compile-kernel You'll have to modify a couple of steps slightly if you are building for Rockchip SoC's but basically it's a 10 minutes process to get started on compilation, and depending on your hardware your kernel will compile in 15 to 45 minutes. Another 5 minutes to spend on installing and voilà! You can run your own self-compiled mainline Linux kernel on your SBC, if it manages to boot properly but note that this is not guaranteed on Rockchip SoC's. 1
munocat Posted March 20, 2019 Author Posted March 20, 2019 On 3/19/2019 at 9:35 PM, AndrewDB said: Actually, you can natively build an Aarch64 Rockchip kernel very easily. Instructions to do so can be found here: http://wiki.loverpi.com/faq:sbc:libre-aml-s805x-howto-native-compile-kernel You'll have to modify a couple of steps slightly if you are building for Rockchip SoC's but basically it's a 10 minutes process to get started on compilation, and depending on your hardware your kernel will compile in 15 to 45 minutes. Another 5 minutes to spend on installing and voilà! You can run your own self-compiled mainline Linux kernel on your SBC, if it manages to boot properly but note that this is not guaranteed on Rockchip SoC's. Expand Funny, I did that, but after I installed it, it would not boot into it, just the old version
Thewonderer Posted March 20, 2019 Posted March 20, 2019 On 3/19/2019 at 8:00 PM, martinayotte said: You're right ! DEV branch has been switched to 5.0.y last Friday ... If you really wish to get 4.20.y, you will need to revert few things from this commit (mainly the branch name) : https://github.com/armbian/build/commit/53bcf26db6fbadfb2b10dfd166ae5a04bc834c4c Expand So if I understand correctly, the next kernel release for rock64 will be 5.0xxx! That's great. I see that Ayufan on github is still working on 4.4 . Personally I'd be happy with just a stable build.... Thanks for all the hard work. Would like to think that there is still plenty interest in the the 3328....
munocat Posted March 20, 2019 Author Posted March 20, 2019 UPDATE. I have version 5.0 running, but it appears no USB because I was not able to log in, I must of missed a driver. any ideas.
Igor Posted March 20, 2019 Posted March 20, 2019 On 3/20/2019 at 5:55 AM, munocat said: UPDATE. I have version 5.0 running, but it appears no USB because I was not able to log in, I must of missed a driver. any ideas. Expand Great! The more modern kernel, less things will work is normal. Drivers and board hardware config (DTB) once developed for initial kernel (4.4.y in this case) has to be ported to modern kernel (not just enabling in menu config). I don't know how much has been already done so it is hard to say ... in general don't expect anything better than 4.4.y except perhaps some very specific functions. 1
AndrewDB Posted March 20, 2019 Posted March 20, 2019 On 3/20/2019 at 12:34 AM, munocat said: Funny, I did that, but after I installed it, it would not boot into it, just the old version Expand You have to install your newly compiled mainline kernel. Instructions to do so for S9XXX SoC's can be found here: http://wiki.loverpi.com/faq:sbc:libre-aml-s805x-install-newly-compiled-kernel You'll have to change a few things for your Rockchip SBC but the basic steps are identical: put the kernel, modules, dtb and ramdisk in the right place and point u-boot to your new kernel, ramdisk and correct dtb.
Recommended Posts