sifive / freedom

Source files for SiFive's Freedom platforms
Apache License 2.0
1.11k stars 286 forks source link

How to replace old kernel with new #160

Open pankajjoshi347 opened 4 years ago

pankajjoshi347 commented 4 years ago

I am trying to replace my existing kernel image which was 5.5.6 built using openembedded-core to the 5.7.2 but this time i want build it natively on u540.

i have tried to build the kernel 5.7.2 natively ,i was able to build the kernel successfully and in my /boot folder i am able to see vmlinux-5.7.2 but now i want to install this image. i have followed the following steps to build kernel $make menuconfig ARCH=riscv64 $make -j4 $make modules_install $make install ,i am attaching the output of this /usr/ksrc# make install make: Warning: File '.vmlinux.cmd' has modification time 2585 s in the future make[1]: Warning: File 'arch/riscv/boot/.Image.cmd' has modification time 2585 s in the future sh ./arch/riscv/boot/install.sh 5.5.7 \ arch/riscv/boot/Image System.map "/boot" Installing normal kernel

Can someone help me out how i can replace my kernel to 5.5.7 since the the method what i have followed did not worked, i am doing something wrong?? Kindly suggest how i can boot from the newly installed kernel since i am not able to get that kernel since when i rebooted my system i am getting the same old kernel only. When i built the kernel on x86 with the $make install and reboot i am able to install the new kernel but it doesn’t seems to be same here. Kindly suggest

Thanks!