dominik
Posts: 5
Joined: Tue Jun 12, 2012 8:31 pm

How to upgrade the kernel

Tue Jun 12, 2012 8:45 pm

Hi,
I installed f17 nigthly

Code: Select all

wget http://scotland.proximity.on.ca/arm-nightlies/vault/f17arm-latest-arm-rpi-mmcblk0.img.xz
xzcat f17arm-latest-arm-rpi-mmcblk0.img.xz | sudo dd of=/dev/sdc
booted it on my raspberry pi, logged in an performed a

Code: Select all

yum update
which installed a new version of the linux kernel, too. Now /boot/ looks like this

Code: Select all

[root@fedora-arm boot]# ls -l /boot/
total 27352
-rwxr-xr-x. 1 root root 1376766 Jun  6 00:09 System.map-3.4.1-1.fc17.armv5tel
-rwxr-xr-x. 1 root root 2001244 Feb 21 10:20 arm128_start.elf
-rwxr-xr-x. 1 root root 2001244 Feb 21 10:20 arm192_start.elf
-rwxr-xr-x. 1 root root 2001244 Feb 21 10:20 arm224_start.elf
-rwxr-xr-x. 1 root root   16528 Feb 21 10:20 bootcode.bin
-rwxr-xr-x. 1 root root     127 Feb 21 10:20 cmdline.txt
-rwxr-xr-x. 1 root root     141 Feb 21 10:20 cmdline_testmode.txt
-rwxr-xr-x. 1 root root   90388 Jun  6 00:09 config-3.4.1-1.fc17.armv5tel
-rwxr-xr-x. 1 root root 7819512 Jun 12 15:04 initramfs-3.4.1-1.fc17.armv5tel.img
-rwxr-xr-x. 1 root root 7011340 Mar  3 17:09 kernel.img
-rwxr-xr-x. 1 root root  314691 Feb 21 10:20 loader.bin
-rwxr-xr-x. 1 root root 2001244 Feb 21 10:20 start.elf
drwxr-xr-x. 2 root root    8192 Jun 10 06:52 uboot
-rwxr-xr-x. 1 root root 3288584 Jun  6 00:09 vmlinuz-3.4.1-1.fc17.armv5tel
After reboot, the old kernel is still used:

Code: Select all

[root@fedora-arm boot]# uname -a
Linux fedora-arm 3.1.9 #1 PREEMPT Sat Mar 3 21:58:00 UTC 2012 armv6l armv6l armv6l GNU/Linux
Which steps are necessary to activate the new kernel?

zardoz99
Posts: 177
Joined: Fri Jan 13, 2012 2:25 pm
Location: Somewhere in Canada.

Re: How to upgrade the kernel

Wed Jun 13, 2012 8:27 am

Simply, you can't. The yum update delivers a kernel that the Raspi cannot use and installs it in a way that the Raspi can't boot off anyway. Do the update for completeness but treat it as a null operation.

Look at using "rpi-update" instead for updating the kernel and firmware. There's a topic about it on this site somewhere.

Z.

effbiai
Posts: 14
Joined: Mon Jan 23, 2012 3:39 pm

Re: How to upgrade the kernel

Wed Jun 13, 2012 8:37 am

Download a version with a new kernel, like from the last post in this thread:
http://www.raspberrypi.org/phpBB3/viewt ... =51&t=5466

..OR... :)

1) Download nightly
2) Download "raspberry pi kernel" and compile it or download precompiled kernel "raspberry pi firmware" over at github.
3) Copy *.elf kernel* bootcode.bin loader.bin from boot over to your boot partition on the SD card
4) Copy modules/3.1.9+ to /mnt/f17arm_root/usr/lib/modules/ on your root partition on the SD card

If you'd like to make an img file, create loopback device from your img file with kpartx and mount them to copy what's described over or do whatever you want :)

dominik
Posts: 5
Joined: Tue Jun 12, 2012 8:31 pm

Re: How to upgrade the kernel

Sat Jun 16, 2012 6:13 pm

Thx for your clear replies. I daintily expected that fedora performs these details. The new kernel version 3.1.9+ looks much more usable.

Return to “Pidora / Fedora”