Raspberry Pi_Kor_17.8 system kernel 및 firmware upgrade


Published Book on Amazon


All of IOT

Starting with the Latest Raspberry Pi from Beginner to Advanced – Volume 1

All of IOT

Starting with the Latest Raspberry Pi from Beginner to Advanced – Volume 2


출판된 한글판 도서


최신 라즈베리파이(Raspberry Pi)로 시작하는 사

물인터넷(IOT)의 모든 것 – 초보에서 고급까지 (상)

최신 라즈베리파이(Raspberry Pi)로 시작하는 사

물인터넷(IOT)의 모든 것 – 초보에서 고급까지 (하)


Original Book Contents


17.8   system kernel firmware upgrade

 

Raspberry Pi 시스템의 kernel firm ware는 오류를 수정하거나, 시스템 성능을 개선하거나, 추가적인 기능 제공을 위해서 지속적으로upgrade되고 있다. Raspberry Pi 시스템을 설치한 이후에 일정한 시간이 경과하면, 현재 설치되어 있는 시스템은 최신 version의 시스템과 내용이 다를 수 있다. 또한 특정 응용 프로그램이 최신 version의 시스템을 기초로 개발된 경우는 이전 version의 시스템에 해당 프로그램을 사용하면 오류가 발생할 수도 있다. 따라서 때때로 kernel firmware upgrade하는 작업이 필요하다.

 

이러한 작업을 위해서 사용하는 것이 "rpi-update" 명령이다.

 

[명령 형식]

[option] rpi-update

 

[명령 개요]

    Raspberry Pi firmware upgrade 한다.

    user 권한    -- super user.

 

[상세 설명]

    해당 명령의 실행이 끝나면 시스템을 reboot해야 한다.

 

[주요 option]

UPDATE_SELF

By default, rpi-update will attempt to update itself each time it is run. You can disable this behavior by:

SKIP_BACKUP

Set it equal to a non-zero value and it will avoids making backup of /boot and /lib/modules on first run.

PRUNE_MODULES

Allows you to delete unused module directories when doing an update. Set it equal to a non-zero value and it will remove all modules except the latest installed:

 


 

[사용 Example]

다음은 firmware upgrade하는 작업을 실행한 사례이다.

 

pi@raspberrypi ~ $ sudo rpi-update

*** Raspberry Pi firmware updater by Hexxeh, enhanced by AndrewS and Dom

 *** Performing self-update

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current

                                 Dload  Upload   Total   Spent    Left  Speed

100  9823  100  9823    0     0   6924      0  0:00:01  0:00:01 --:--:--  9364

 *** Relaunching after update

 *** Raspberry Pi firmware updater by Hexxeh, enhanced by AndrewS and Dom

 *** We're running for the first time

 *** Backing up files (this will take a few minutes)

 *** Remove old firmware backup

 *** Backing up firmware

 *** Remove old modules backup

 *** Backing up modules 3.18.7+

 *** Downloading specific firmware revision (this will take a few minutes)

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current

                                 Dload  Upload   Total   Spent    Left  Speed

100   168    0   168    0     0    184      0 --:--:-- --:--:-- --:--:--   243

100 46.1M  100 46.1M    0     0   330k      0  0:02:22  0:02:22 --:--:--  180k

 *** Updating firmware

 *** Updating kernel modules

 *** depmod 3.18.13+

 *** depmod 3.18.13-v7+

 *** Updating VideoCore libraries

 *** Using HardFP libraries

 *** Updating SDK

 *** Running ldconfig

 *** Storing current firmware revision

 *** Deleting downloaded files

 *** Syncing changes to disk

 *** If no errors appeared, your firmware was successfully updated to 8521fd34c8f66b6d109acce943f6e25ec93ec005

 *** A reboot is needed to activate the new firmware

 

 

 

Leave a Reply