Difference between revisions of "Firmware Upgrade"
Line 34: | Line 34: | ||
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, though you must be familiar with u-boot to use them. | ||
− | |||
− | |||
Belows are the ''advantages'' and disadvantages of using maskrom. | Belows are the ''advantages'' and disadvantages of using maskrom. | ||
Line 68: | Line 66: | ||
Disadvantages: | Disadvantages: | ||
− | * could brick | + | * could be brick |
+ | |||
+ | | ||
= SD-Card Recovery = | = SD-Card Recovery = | ||
Line 75: | Line 75: | ||
We could use it to create a sd-card recovery image. | 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 deb] which will burn firmware to eMMC. | When the board boot into sd-card, the init scripts in SD-Card can install [https://github.com/rockchip-linux/build kernel/u-boot deb] 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]. | A sd-card recovery image could created by [https://github.com/rockchip-linux/meta-rockchip-initramfs meta-rockchip-initramfs]. | ||
− | |||
− | |||
Advantages: | Advantages: | ||
Line 98: | Line 94: | ||
See [https://github.com/rockchip-linux/meta-rockchip-initramfs meta-rockchip-initramfs]. | See [https://github.com/rockchip-linux/meta-rockchip-initramfs meta-rockchip-initramfs]. | ||
− | |||
− | |||
Advantages: | Advantages: |
Revision as of 06:13, 25 October 2017
Overall
This guide provides information which will help you choose a firmware upgrade way on rockchip platform.
MASKROM
MASKROM is the simplest way.
Belows are the advantages and disadvantages of using maskrom.
Advantages:
- Avoid brick
- Simple, unified
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.
It's also possible to do network/usb-disk upgrade in u-boot, though you must be familiar with u-boot to use them.
Belows are the advantages and disadvantages of using maskrom.
Advantages:
- Common
Disadvantages:
- Must be familiar with u-boot
Support update from
- USB OTG
- USB DISK
- Network
Linux
Our SDK build scripts have support pack deb for kernel/u-boot and both yocto and debian coudl deb as the package manager,
So firmware upgrade could be done by deb installation.
Advantages:
- standard
- friendly to the users
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 at 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 kernel/u-boot deb which will burn firmware to eMMC.
A sd-card recovery image could created by meta-rockchip-initramfs.
Advantages:
- Convenient
- Easy to customize, like a normal linux
Disadvantages:
- Slow
Initramfs
Advantages:
- Easy to customize, like a normal linux
- Powerful
Disadvantages:
- Slow