Browse Source

New way of installing updated kernel

Bob Mottram 10 years ago
parent
commit
11eaba7e33
1 changed files with 7 additions and 26 deletions
  1. 7
    26
      beaglebone.txt

+ 7
- 26
beaglebone.txt View File

385
 To enable some newer packages add backports to the repositories.
385
 To enable some newer packages add backports to the repositories.
386
 
386
 
387
 #+BEGIN_SRC: bash
387
 #+BEGIN_SRC: bash
388
-echo "deb http://ftp.us.debian.org/debian wheezy-backports main" >> /etc/apt/sources.list
388
+echo "deb http://ftp.us.debian.org/debian jessie-backports main" >> /etc/apt/sources.list
389
 apt-get update
389
 apt-get update
390
 apt-get dist-upgrade
390
 apt-get dist-upgrade
391
 apt-get install ca-certificates
391
 apt-get install ca-certificates
420
 #+END_SRC
420
 #+END_SRC
421
 
421
 
422
 ** Upgrade the kernel
422
 ** Upgrade the kernel
423
-Using a more recent kernel should improve stability of the system and also allow it to make use of hardware random number generation, which improves the overall security.  Please note that this kernel is specific to the BBB, so if you're using a Raspberry Pi, Cubieboard or other SBC then look elsewhere on the web for information about upgrading the kernel. Newer kernels are also available at http://rcn-ee.net/deb/wheezy-armhf ("bone" in the name indicates kernels with BBB specific patches).
424
-
425
-#+BEGIN_SRC: bash
426
-mkdir ~/build
427
-cd ~/build
428
-wget http://freedombone.uk.to/kernel-3.15.tar.gz
429
-#+END_SRC
430
-
431
-Verify it.
432
-
433
-#+BEGIN_SRC: bash
434
-sha256sum kernel-3.15.tar.gz
435
-abf3e1077bed32a2d7b8e751a6002488032ada7611825c46b0fb548fc838fd99
436
-#+END_SRC
437
-
438
-Then extract and install it.
439
-
440
-#+BEGIN_SRC: bash
441
-tar -xzvf kernel-3.15.tar.gz
442
-cd kernel-3.15
443
-sh install-me.sh
444
-#+END_SRC
445
-
446
-If you get a certificate error then edit *install-me.sh* and change the /https/ to /http/, save and try again.  Once the installation has completed then you can reboot by typing:
423
+Using a more recent kernel should improve stability of the system and also allow it to make use of hardware random number generation, which improves the overall security.  Please note that this kernel is specific to the BBB, so if you're using a Raspberry Pi, Cubieboard or other SBC then look elsewhere on the web for information about upgrading the kernel. Newer kernels are also available at http://rcn-ee.net/deb/jessie-armhf ("bone" in the name indicates kernels with BBB specific patches).
447
 
424
 
448
 #+BEGIN_SRC: bash
425
 #+BEGIN_SRC: bash
426
+cd /opt/scripts/tools
427
+./update_kernel.sh --kernel v3.15.10-bone7
449
 reboot
428
 reboot
450
 #+END_SRC
429
 #+END_SRC
451
 
430
 
455
 uname -mrs
434
 uname -mrs
456
 #+END_SRC
435
 #+END_SRC
457
 
436
 
437
+Note: If you're upgrading to any other kernel version and the BBB fails to reboot, with lights continuously on, then remove power, take out the microSD, insert it into your laptop then do something like "*sudo emacs /media/$USER/rootfs/boot/uEnv.txt*" and change the kernel version to the previous one which you were using, then eject the microSD drive, re-insert it into the BBB and re-apply power.
438
+
458
 Now enable zram.
439
 Now enable zram.
459
 
440
 
460
 #+BEGIN_SRC: bash
441
 #+BEGIN_SRC: bash
557
 exit $RETVAL
538
 exit $RETVAL
558
 #+END_SRC
539
 #+END_SRC
559
 
540
 
560
-Save and exit, then reboot again.
541
+Save and exit.
561
 
542
 
562
 #+BEGIN_SRC: bash
543
 #+BEGIN_SRC: bash
563
 chmod +x /etc/init.d/zram
544
 chmod +x /etc/init.d/zram