Kernel Build Help - Printable Version +- PINE64 (https://forum.pine64.org) +-- Forum: ROCK64 (https://forum.pine64.org/forumdisplay.php?fid=85) +--- Forum: Linux on Rock64 (https://forum.pine64.org/forumdisplay.php?fid=88) +--- Thread: Kernel Build Help (/showthread.php?tid=5974) |
RE: Kernel Build Help - cooker - 06-04-2018 (06-03-2018, 06:09 PM)pfeerick Wrote: Or, are you suggesting the command "flash-kernel"? I read from the manpages link, in the middle of the description, it says "this is only really useful for one-off testing". So, I had not go further on that. I expect I can do apt update/upgrade or even another kernel compilation later when needed. Or, did I mis-interpret that "one-off testing"? thanks RE: Kernel Build Help - frewind - 06-06-2018 So here's a recap, this is how I'm now build and install a kernel on the latest bionic image. From a new install of bionic Code: $ sudo apt-get update Depending on how out of date the OS image you may get asked some config questions as the kernel patch level moves on all the time... I like to set my own build name suffix, the easiest way to do that is menuconfig Code: $ make menuconfig Now build everything Code: $ make -j5 Code: $ sudo make modules_install Code: $ sudo make install Code: $ sudo cp /boot/dtbs/4.4.126-rockchip-ayufan-239/rockchip/rk3328-rock64.dtb /etc/flash-kernel/dtbs Code: $ sudo make install Code: $ sudo flash-kernel --force 4.4.126-frewind-01 Code: sudo reboot It looks like it has installed the correct kernel with the correct initrd.img RE: Kernel Build Help - cooker - 06-06-2018 @frewind Thank you for saving me time from guessing. A few questions to seek your practical experience. 1. How frequent Or do you do apt upgrade after kernel compile? (for all reasons including sake of security) 2. Does bionic run better than stretch? In x86/x64, stretch is supposed to be more stable and forked. For sure it does not hold 100% true in ARM. How much (50%? 5%? 0%?) you think that remains? Just a gut feel number is fine. btw, you can use zcat to replace the gunzip pipe.^^ RE: Kernel Build Help - frewind - 06-08-2018 (06-06-2018, 10:01 PM)cooker Wrote: @frewind 1. I try to keep all my Linux devices up to date, you will have to recompile after kernel/firmware updates. 2. bionic appear to be stable for me. RE: Kernel Build Help - cooker - 06-08-2018 (06-08-2018, 01:01 AM)frewind Wrote: 1. I try to keep all my Linux devices up to date, you will have to recompile after kernel/firmware updates. oic, then how you interpret the term "one-off test" in the manpage of flash-kernel? After ayufan push another kernel upgrade, can you recompile then flash-kernel on the production sdcard? or you download the latest img from ayufan, to recompile then flash-kernel, and re-work on those services you use again? I had swaped my 4G to production and testing Archlinuxarm on my 1G, bit sluggish to do the above test myself. btw, I installed (on rock64 & RPi3) and compiled kernel (on RPi3 only) successfully on the first trial there (Arch). Only drawback (to me) is USB3.0 is not working yet (HDMI neither). They are using kernel 4.14.48 where apparmor is crashed so I won't swap very soon. But given Arch's ecosystem, I think it is worth starting. RE: Kernel Build Help - gene83 - 07-15-2018 Hi all; I have obtained some SSD's to replace the usb-3 backup type hard drive that failed, and have it configured now, but not yet mounted. What I intend to do is use it as a build location, to basically follow the recipe as laid out above, but using the latest git clone from the rt-linux site as the app it will run if this effort is successfull, demands at minimum a fully pre-emptible real time kernel. There are also land mines in the conversion of the linuxcnc's rpspi.ko to run on the gpio and spi buss of the rock64 as its been built so it refuses to run if not on an rpi-3b. That will be the 2nd non-negotiable requirement, but one stone at a time. There be land mines in the make oldconfig based on the current stretch kernel, one of ayufans latest releases. And just updated by apt yesterday. Can anyone advise me as to how best to do this make oldconfig? Thank you all; gene83 RE: Kernel Build Help - cooker - 08-12-2018 (07-15-2018, 08:35 AM)gene83 Wrote: Hi all; My humble advice: best is not to do it. I have my rock64 serving as NAS, music server and NextCloud server. It runs faultlessly 7x24 for months until I do apt-get update/upgrade last time ^^!! It just crashes. I am paranoid enough that I poweroff the board and make a dd copy of the sdcard everytime before I run apt-get update/upgrade. First time I get my paranoid reward. Put all data including mysql database onto harddisk. When the system is toooo outdate someday, download the latest ayufan image, reinstall everything you're running, rebuild all setup, ... and enjoy another months of good value board. It is still the easiest way of living as of today. |