{"id":142,"date":"2012-06-01T14:25:15","date_gmt":"2012-06-01T13:25:15","guid":{"rendered":"http:\/\/opensource.wrenhill.com\/?p=142"},"modified":"2012-06-01T23:12:45","modified_gmt":"2012-06-01T22:12:45","slug":"rpi-update-under-redsleeve-linux","status":"publish","type":"post","link":"https:\/\/opensource.wrenhill.com\/?p=142","title":{"rendered":"rpi-update under RedSleeve linux"},"content":{"rendered":"<p>It is possible to run the utility rpi-update (from here: <a href=\"https:\/\/github.com\/Hexxeh\/rpi-update\" title=\"https:\/\/github.com\/Hexxeh\/rpi-update\">https:\/\/github.com\/Hexxeh\/rpi-update<\/a>) directly on RedSleeve Linux on a Raspberry Pi.<\/p>\n<p>First you need to mount the boot partition in the running system. RedSleeve already has a \/boot directory but it only contains an unused splash image.<\/p>\n<p><code>mv \/boot \/boot-orig<br \/>\nmkdir \/boot<\/code><\/p>\n<p>Check your device names use: <\/p>\n<p><code>fdisk -l<\/code> <\/p>\n<p>Mine were \/dev\/mmcblk0p1 and \/dev\/mmcblk0p2<\/p>\n<p><code>mount \/dev\/mmcblk0p1 \/boot<\/code><\/p>\n<p>This should then allow you to see the true boot partition which will look like this:<\/p>\n<p><code><br \/>\nls -l \/boot<br \/>\ntotal 34433<br \/>\n-rwxr-xr-x 1 root root  2047272 Jun  1 14:15 arm128_start.elf<br \/>\n-rwxr-xr-x 1 root root  2047272 Jun  1 14:15 arm192_start.elf<br \/>\n-rwxr-xr-x 1 root root  2047272 Jun  1 14:15 arm224_start.elf<br \/>\n-rwxr-xr-x 1 root root      273 Apr 19 08:58 boot_enable_ssh.rc<br \/>\n-rwxr-xr-x 1 root root    16528 Jun  1 14:15 bootcode.bin<br \/>\n-rwxr-xr-x 1 root root      124 Apr 19 08:58 cmdline.txt<br \/>\n-rwxr-xr-x 1 root root       26 Apr 19 08:58 issue.txt<br \/>\n-rwxr-xr-x 1 root root  4195844 Jun  1 14:15 kernel.img<br \/>\n-rwxr-xr-x 1 root root  6194612 Jun  1 14:15 kernel_debug.img<br \/>\n-rwxr-xr-x 1 root root 16344532 Jun  1 14:15 kernel_emergency.img<br \/>\n-rwxr-xr-x 1 root root   314691 Jun  1 14:15 loader.bin<br \/>\n-rwxr-xr-x 1 root root  2047272 Jun  1 14:16 start.elf<br \/>\n<\/code><\/p>\n<p>You can then edit your \/etc\/fstab if you wish to have this mounted each time you boot. My \/etc\/fstab looks like this:<\/p>\n<p><code><br \/>\n\/dev\/mmcblk0p2\t\t\t\t\t\/\t\text4\tnoatime\t\t1 1<br \/>\n\/dev\/mmcblk0p1\t\t\t\t\t\/boot\t\tvfat\tnoatime\t\t1 2<br \/>\ndevpts\t\t\t\t\t\t\/dev\/pts\tdevpts\tgid=5,mode=620\t0 0<br \/>\ntmpfs\t\t\t\t\t\t\/dev\/shm\ttmpfs\tdefaults\t0 0<br \/>\nproc\t\t\t\t\t\t\/proc\t\tproc\tdefaults\t0 0<br \/>\nsysfs\t\t\t\t\t\t\/sys\t\tsysfs\tdefaults\t0 0<br \/>\n<\/code><\/p>\n<p>Now we need some items installed using yum:<\/p>\n<p><code>yum install wget git diffutils<\/code><\/p>\n<p>Now get the rpi-update util and make it executable:<\/p>\n<p><code>wget http:\/\/goo.gl\/1BOfJ -O \/usr\/bin\/rpi-update<br \/>\nchmod +x \/usr\/bin\/rpi-update<br \/>\n<\/code><\/p>\n<p>Now simply run:<\/p>\n<p><code>rpi-update<\/code><\/p>\n<p>Reboot and your on the latest RaspberryPi kernel code.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>It is possible to run the utility rpi-update (from here: https:\/\/github.com\/Hexxeh\/rpi-update) directly on RedSleeve Linux on a Raspberry Pi. First you need to mount the boot partition in the running system. RedSleeve already has a \/boot directory but it only &hellip; <a href=\"https:\/\/opensource.wrenhill.com\/?p=142\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[32],"tags":[35,33,34,37,36],"class_list":["post-142","post","type-post","status-publish","format-standard","hentry","category-software","tag-linux","tag-raspberrypi","tag-redsleeve","tag-rpi-update","tag-update"],"_links":{"self":[{"href":"https:\/\/opensource.wrenhill.com\/index.php?rest_route=\/wp\/v2\/posts\/142","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/opensource.wrenhill.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/opensource.wrenhill.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/opensource.wrenhill.com\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/opensource.wrenhill.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=142"}],"version-history":[{"count":8,"href":"https:\/\/opensource.wrenhill.com\/index.php?rest_route=\/wp\/v2\/posts\/142\/revisions"}],"predecessor-version":[{"id":155,"href":"https:\/\/opensource.wrenhill.com\/index.php?rest_route=\/wp\/v2\/posts\/142\/revisions\/155"}],"wp:attachment":[{"href":"https:\/\/opensource.wrenhill.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=142"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/opensource.wrenhill.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=142"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/opensource.wrenhill.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=142"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}