Difference between revisions of "Firmware Upgrade"

From Rockchip open source Document
Jump to: navigation, search
 
(20 intermediate revisions by the same user not shown)
Line 2: Line 2:
 
= Overall =
 
= Overall =
  
This guide provides information which will help you choose a ''firmware upgrade'' way on rockchip platform.
+
This guide provides information which will help you choose a ''firmware upgrade'' way.
  
 
 
 
 
 +
  
 
= MASKROM =
 
= MASKROM =
Line 15: Line 16:
  
 
*Avoid brick  
 
*Avoid brick  
*Simple, unified
+
*Simple  
  
 
Disadvantages:
 
Disadvantages:
Line 31: Line 32:
 
Rockchip mainline u-boot have support various upgrade ways, such as rockusb/fastboot/ums, each of them could be used.
 
Rockchip mainline u-boot have support various upgrade ways, such as rockusb/fastboot/ums, each of them could be used.
  
It could be entered by issuing "reboot ums/fastboot/rockusb" from linux, or add the [https://github.com/rockchip-linux/u-boot/blob/release/board/rockchip/kylin_rk3036/kylin_rk3036.c#L34 board-spefic key d][http://www.baidu.com/link?url=_UZbopMyRO2G6alYfvh26fna0HDdvzNCurKWn_qDDChmCPpXx9Sg8aIAQ9wZzgELTBjutHEls6tXyHKmARhH1FFDljz_NITwalJLiOZp-cgoO97JM-Rg4TAewXjwOVib etection][https://github.com/rockchip-linux/u-boot/blob/release/board/rockchip/kylin_rk3036/kylin_rk3036.c#L34  code].
+
It could be entered by issuing "reboot ums/fastboot/rockusb" from linux, <del>or add the&nbsp;[https://github.com/rockchip-linux/u-boot/blob/release/board/rockchip/kylin_rk3036/kylin_rk3036.c#L34 board-spefic key-detection ]code</del>
 +
 
 +
<small>(Common key detect support is added after 20171218, now the board can enter rockusb mode by pressing recovery key)</small>.
  
It's also possible to do network/usb-disk upgrade in u-boot, though you must be familiar with u-boot to use them.
+
It's also possible to do network/usb-disk upgrade in u-boot.
  
Belows are the&nbsp;''advantages''&nbsp;and disadvantages of using maskrom.
+
Belows are the&nbsp;''advantages''&nbsp;and disadvantages of using u-boot.
  
 
Advantages:
 
Advantages:
Line 52: Line 55:
  
 
&nbsp;
 
&nbsp;
 
 
  
 
= Linux =
 
= Linux =
Line 59: Line 60:
 
Both yocto and debian use deb as the package manager, so firmware upgrade could be done by deb&nbsp;installation.
 
Both yocto and debian use deb as the package manager, so firmware upgrade could be done by deb&nbsp;installation.
  
(SDK build scripts&nbsp;can pack kernel/u-boot in deb)
+
<small>(SDK build scripts&nbsp;can pack kernel/u-boot in deb)</small>
 
 
&nbsp;
 
  
 
Advantages:
 
Advantages:
  
 
*standard  
 
*standard  
*friendly to the users
+
*user-friendly  
  
 
Disadvantages:
 
Disadvantages:
Line 73: Line 72:
  
 
&nbsp;
 
&nbsp;
 +
  
 
= SD-Card Recovery =
 
= SD-Card Recovery =
  
By changing [https://github.com/rockchip-linux/u-boot/blob/release/include/configs/rockchip-common.h#L16 boot order] in u-boot, it's possible to let u-boot load kernel and rootfs from sd-card at first.
+
By changing [https://github.com/rockchip-linux/u-boot/blob/release/include/configs/rockchip-common.h#L16 boot order] in u-boot, it's possible to let u-boot load kernel and rootfs from sd-card&nbsp;first.
 
 
We could use it to create a sd-card recovery image.
 
 
 
When the board boot into sd-card, the init scripts in SD-Card can install [https://github.com/rockchip-linux/build kernel/u-boot&nbsp;deb]&nbsp; which will burn firmware to eMMC.
 
  
A sd-card recovery image could created by [https://github.com/rockchip-linux/meta-rockchip-initramfs meta-rockchip-initramfs].
+
We could use it to create a sd-card recovery image. When the board boot into sd-card, the init script run and install kernel/u-boot debian packages, which&nbsp;burn firmware to eMMC.
  
 
Advantages:
 
Advantages:
  
 
*Convenient  
 
*Convenient  
*Easy to&nbsp;customize, like a normal linux
 
  
 
Disadvantages:
 
Disadvantages:
Line 94: Line 89:
  
 
&nbsp;
 
&nbsp;
 
  
 
= Initramfs/Recovery =
 
= Initramfs/Recovery =
Line 100: Line 94:
 
Advantages:
 
Advantages:
  
*Easy to&nbsp;customize, like a normal linux
 
 
*Powerful  
 
*Powerful  
  
Line 106: Line 99:
  
 
*Slow  
 
*Slow  
 
&nbsp;
 
  
 
&nbsp;
 
&nbsp;

Latest revision as of 04:17, 21 December 2017

Overall

This guide provides information which will help you choose a firmware upgrade way.

 


MASKROM

MASKROM is the simplest way. 

Belows are the advantages and disadvantages of using maskrom.

Advantages:

  • Avoid brick
  • Simple

Disadvantages:

  • Need a maskrom key

Support update from

  • USB OTG

 

U-boot

Rockchip mainline u-boot have support various upgrade ways, such as rockusb/fastboot/ums, each of them could be used.

It could be entered by issuing "reboot ums/fastboot/rockusb" from linux, or add the board-spefic key-detection code

(Common key detect support is added after 20171218, now the board can enter rockusb mode by pressing recovery key).

It's also possible to do network/usb-disk upgrade in u-boot.

Belows are the advantages and disadvantages of using u-boot.

Advantages:

  • Common

Disadvantages:

  • Must be familiar with u-boot

Support update from

  • USB OTG
  • USB DISK
  • Network

 

Linux

Both yocto and debian use deb as the package manager, so firmware upgrade could be done by deb installation.

(SDK build scripts can pack kernel/u-boot in deb)

Advantages:

  • standard
  • user-friendly

Disadvantages:

  •  could be brick

 


SD-Card Recovery

By changing boot order in u-boot, it's possible to let u-boot load kernel and rootfs from sd-card first.

We could use it to create a sd-card recovery image. When the board boot into sd-card, the init script run and install kernel/u-boot debian packages, which burn firmware to eMMC.

Advantages:

  • Convenient

Disadvantages:

  • Slow

 

Initramfs/Recovery

Advantages:

  • Powerful

Disadvantages:

  • Slow