Hey guys. This is probably going to be a really dumb question, but a) I only have limited familiarity with Grub2 and b) I really don't want to have to rebuild my SD card image from scratch...again.
I have a Pine64 running 7.3.1611 aarch64, and it started out on kernel 3.10.101. I've issued yum update after yum update, and it finally dawned on me that it wasn't ever booting into the new kernels I was installing. I have 5 of the 4.x kernels installed, but it's never even attempted to boot into them. I've dug around a little bit, and here's what I can see so far:
1) By RPM list, I don't even have a 3.x kernel installed anywhere. It was installed during the initial system image in some way outside of RPM/yum, and it hasn't been removed in the time since. 2) I don't have a grub2.cfg file like my x86_64 systems have. I have a symlink at /etc/grub2-efi.cfg that is supposed to point to ../boot/efi/EFI/centos/grub.cfg, but that doesn't exist either. 3) If I run grub2-mkconfig, I can get a seemingly-valid grub2.cfg file that only references the 4.x kernels I have installed. I put that file at the symlink target from #2 and rebooted, but it apparently had zero impact. It rebooted just fine...into 3.10.101.
So my question boils down to this: what exactly am I missing here that's preventing this from updating kernels correctly? Thanks for the help.
Mike
The pine64 doesn't support UEFI so you won't have /boot/efi/EFI. The 3.10 kernel is a vendor kernel not supplied by CentOS. Effectively only the userland tools are updated via yum, and grub will have little to no effect as you're not booting in the 'normal' way.
On 06/25/2017 07:24 PM, Mike Calderwood wrote:
Hey guys. This is probably going to be a really dumb question, but a) I only have limited familiarity with Grub2 and b) I really don't want to have to rebuild my SD card image from scratch...again.
I have a Pine64 running 7.3.1611 aarch64, and it started out on kernel 3.10.101. I've issued yum update after yum update, and it finally dawned on me that it wasn't ever booting into the new kernels I was installing. I have 5 of the 4.x kernels installed, but it's never even attempted to boot into them. I've dug around a little bit, and here's what I can see so far:
- By RPM list, I don't even have a 3.x kernel installed anywhere. It
was installed during the initial system image in some way outside of RPM/yum, and it hasn't been removed in the time since. 2) I don't have a grub2.cfg file like my x86_64 systems have. I have a symlink at /etc/grub2-efi.cfg that is supposed to point to ../boot/efi/EFI/centos/grub.cfg, but that doesn't exist either. 3) If I run grub2-mkconfig, I can get a seemingly-valid grub2.cfg file that only references the 4.x kernels I have installed. I put that file at the symlink target from #2 and rebooted, but it apparently had zero impact. It rebooted just fine...into 3.10.101.
So my question boils down to this: what exactly am I missing here that's preventing this from updating kernels correctly? Thanks for the help.
Mike _______________________________________________ Arm-dev mailing list Arm-dev@centos.org https://lists.centos.org/mailman/listinfo/arm-dev
Am 26.06.2017 um 20:31 schrieb Jim Perrin:
The pine64 doesn't support UEFI so you won't have /boot/efi/EFI. The 3.10 kernel is a vendor kernel not supplied by CentOS. Effectively only the userland tools are updated via yum, and grub will have little to no effect as you're not booting in the 'normal' way.
Hello Mike,
as Jim already wrote, none of the CentOS updates will change the kernel nor the firmware on the Pine64.
If you are looking for a recent kernel (4.9 or later), you will have to update the Pine64 firmware, since the stock firmware cannot boot a mainline kernel and a mainline u-boot firmware won't boot a legacy kernel.
You have two options:
1. You download the latest experimental Pine64 Armbian Image [1] as a foundation to build CentOS upon [2].
2. You build CentOS from scratch on the Pine64 [3] (or any other ARM64 board), if you have a card reader or a free SDcard slot.
[1] https://dl.armbian.com/pine64/nightly/Armbian_5.27.170614_Pine64_Ubuntu_xeni... [2] https://github.com/umiddelb/aarch64/wiki/Install-CentOS-7-on-your-favourite-... [3] https://github.com/umiddelb/z2d/tree/master/pine64
Cheers Uli
Ah, I knew there was some aspect of this I was missing, and now it's all much clearer. Thanks for the info, guys!
Mike
On 6/27/2017 9:04 AM, Uli Middelberg wrote:
Am 26.06.2017 um 20:31 schrieb Jim Perrin:
The pine64 doesn't support UEFI so you won't have /boot/efi/EFI. The 3.10 kernel is a vendor kernel not supplied by CentOS. Effectively only the userland tools are updated via yum, and grub will have little to no effect as you're not booting in the 'normal' way.
Hello Mike,
as Jim already wrote, none of the CentOS updates will change the kernel nor the firmware on the Pine64.
If you are looking for a recent kernel (4.9 or later), you will have to update the Pine64 firmware, since the stock firmware cannot boot a mainline kernel and a mainline u-boot firmware won't boot a legacy kernel.
You have two options:
You download the latest experimental Pine64 Armbian Image [1] as a foundation to build CentOS upon [2].
You build CentOS from scratch on the Pine64 [3] (or any other ARM64 board), if you have a card reader or a free
SDcard slot.
[1] https://dl.armbian.com/pine64/nightly/Armbian_5.27.170614_Pine64_Ubuntu_xeni... [2] https://github.com/umiddelb/aarch64/wiki/Install-CentOS-7-on-your-favourite-... [3] https://github.com/umiddelb/z2d/tree/master/pine64
Cheers Uli
Arm-dev mailing list Arm-dev@centos.org https://lists.centos.org/mailman/listinfo/arm-dev