Difference between revisions of "Firmware Upgrade"
(13 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | |||
= Overall = | = Overall = | ||
Line 6: | Line 5: | ||
| | ||
+ | |||
= MASKROM = | = MASKROM = | ||
Line 16: | Line 16: | ||
*Avoid brick | *Avoid brick | ||
− | *Simple | + | *Simple |
Disadvantages: | Disadvantages: | ||
Line 25: | Line 25: | ||
*USB OTG | *USB OTG | ||
− | |||
− | |||
| | ||
Line 34: | 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-detection ]code | + | It could be entered by issuing "reboot ums/fastboot/rockusb" from linux, <del>or add the [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>. | |
− | Belows are the ''advantages'' and disadvantages of using | + | It's also possible to do network/usb-disk upgrade in u-boot. |
+ | |||
+ | Belows are the ''advantages'' and disadvantages of using u-boot. | ||
Advantages: | Advantages: | ||
Line 61: | Line 61: | ||
<small>(SDK build scripts can pack kernel/u-boot in deb)</small> | <small>(SDK build scripts can pack kernel/u-boot in deb)</small> | ||
− | |||
− | |||
Advantages: | Advantages: | ||
*standard | *standard | ||
− | * | + | *user-friendly |
Disadvantages: | Disadvantages: | ||
Line 74: | Line 72: | ||
| | ||
− | |||
− | |||
= 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 | + | 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 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. | 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. | ||
Line 87: | Line 83: | ||
*Convenient | *Convenient | ||
− | |||
Disadvantages: | Disadvantages: | ||
*Slow | *Slow | ||
− | |||
− | |||
| | ||
Line 101: | Line 94: | ||
Advantages: | Advantages: | ||
− | |||
*Powerful | *Powerful | ||
Line 107: | Line 99: | ||
*Slow | *Slow | ||
− | |||
− | |||
| |
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