| #
8af25352 |
| 17-Mar-2023 |
Zorro Liu <lyx@rock-chips.com> |
rockchip: boot mode: Support android cmd 'reboot quiescent'
Signed-off-by: Zorro Liu <lyx@rock-chips.com> Change-Id: I9c07c697817846d4f034b299b89787b728182bef
|
| #
50fd2129 |
| 10-Oct-2022 |
Joseph Chen <chenjh@rock-chips.com> |
rockchip: use 'download' command
It covers rockusb and rbrom download mode.
In case of rockusb is disabled.
Signed-off-by: Joseph Chen <chenjh@rock-chips.com> Change-Id: I7617aa459a5c2e79897b6f8c0
rockchip: use 'download' command
It covers rockusb and rbrom download mode.
In case of rockusb is disabled.
Signed-off-by: Joseph Chen <chenjh@rock-chips.com> Change-Id: I7617aa459a5c2e79897b6f8c0ae8bbcb319ef2a7
show more ...
|
| #
3d2521fc |
| 04-Jul-2022 |
Joseph Chen <chenjh@rock-chips.com> |
rockchip: board: fix boot mode if udisk boot
Udisk is init at the late boot_from_udisk(), but rockchip_get_boot_mode() actually only read once, we need to update boot mode according to udisk BCB.
S
rockchip: board: fix boot mode if udisk boot
Udisk is init at the late boot_from_udisk(), but rockchip_get_boot_mode() actually only read once, we need to update boot mode according to udisk BCB.
Signed-off-by: Joseph Chen <chenjh@rock-chips.com> Change-Id: I635b38f3fb431062a7325275b3cbdb3920e65d4b
show more ...
|
| #
7b85ff3e |
| 01-Jun-2022 |
Joseph Chen <chenjh@rock-chips.com> |
rockchip: boot_mode: Enter loader mode early than preboot stage
AMP boot is early than preboot stage.
Signed-off-by: Joseph Chen <chenjh@rock-chips.com> Change-Id: I8d0a77d8c686fafdeca072e626561255
rockchip: boot_mode: Enter loader mode early than preboot stage
AMP boot is early than preboot stage.
Signed-off-by: Joseph Chen <chenjh@rock-chips.com> Change-Id: I8d0a77d8c686fafdeca072e626561255765e69b0
show more ...
|
| #
42b70acc |
| 13-Oct-2021 |
Joseph Chen <chenjh@rock-chips.com> |
rockchip: boot mode: always read BCB recovery msg from misc.img
It fixes the U-disk upgrade failed to add "usbfwupdate" to kernel cmdline, because we only read BCB recovery msg once and it was ealie
rockchip: boot mode: always read BCB recovery msg from misc.img
It fixes the U-disk upgrade failed to add "usbfwupdate" to kernel cmdline, because we only read BCB recovery msg once and it was ealier than U-disk init.
boot log: dwmmc@fe2b0000: 1, dwmmc@fe2c0000: 2, sdhci@fe310000: 0 Bootdev(atags): mmc 0 MMC0: HS200, 200Mhz PartType: EFI boot mode: recovery (misc) FIT: No fdt blob boot mode: None // BCB read once here Android 11.0, Build 2021.7, v2 Found DTB in boot part ......
starting USB... // U-disk init ...... Boot from usb 0 // Upgrade U-disk was found Rockchip UBOOT DRM driver version: v1.0.1 VOP have 2 active VP ......
Fixes: (706ec1d419 rockchip: add get_bcb_recovery_msg() to record recovery msg)
Signed-off-by: Joseph Chen <chenjh@rock-chips.com> Change-Id: I297813d48a0f8d352b20984273f9db5960afa96e
show more ...
|
| #
a18cd24e |
| 07-May-2021 |
Joseph Chen <chenjh@rock-chips.com> |
rockchip: board: update cmdline according to PCBA recovery msg
PCBA test needs more permission.
Signed-off-by: Joseph Chen <chenjh@rock-chips.com> Change-Id: I9625ff0d2bd52545dbe408b1c52f3a83c20264
rockchip: board: update cmdline according to PCBA recovery msg
PCBA test needs more permission.
Signed-off-by: Joseph Chen <chenjh@rock-chips.com> Change-Id: I9625ff0d2bd52545dbe408b1c52f3a83c2026415
show more ...
|
| #
706ec1d4 |
| 07-May-2021 |
Joseph Chen <chenjh@rock-chips.com> |
rockchip: add get_bcb_recovery_msg() to record recovery msg
Signed-off-by: Joseph Chen <chenjh@rock-chips.com> Change-Id: Ifabd4c7d4700c17a16551bd8bdea02ea175b3802
|
| #
60f07e75 |
| 26-Apr-2021 |
Joseph Chen <chenjh@rock-chips.com> |
rockchip: fix missing "usbfwupdate" to kernel cmdline
We move sd/usbfwupdate flag from IDB to Android BCB from RK356x.
The desc->if_type is to be IF_TYPE_USB at late boot sequence, which results in
rockchip: fix missing "usbfwupdate" to kernel cmdline
We move sd/usbfwupdate flag from IDB to Android BCB from RK356x.
The desc->if_type is to be IF_TYPE_USB at late boot sequence, which results in missing "usbfwupdate" to kernel cmdline. So let's record update state in env "rk_fwupdate" for late use.
Signed-off-by: Joseph Chen <chenjh@rock-chips.com> Change-Id: I5c42f2dc232f37e7f9502f424b903ac542d12ebb
show more ...
|
| #
1d2b0919 |
| 15-Apr-2021 |
Jason Zhu <jason.zhu@rock-chips.com> |
rockchip: boot-mode: add sdfwupdate/usbfwupdate to bootargs
Adding sdfwupdate/usbfwupdate to bootargs depends on the android bcb of recovery which is "recovery\n--rk_fwupdate\n".
Signed-off-by: Jas
rockchip: boot-mode: add sdfwupdate/usbfwupdate to bootargs
Adding sdfwupdate/usbfwupdate to bootargs depends on the android bcb of recovery which is "recovery\n--rk_fwupdate\n".
Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com> Change-Id: I28d065e29b02b5116e82e6445801c47b28a4e8ba
show more ...
|
| #
0efe6414 |
| 01-Mar-2021 |
Tony Xu <tony.xu@rock-chips.com> |
rockchip: boot mode: add dfu boot mode
Signed-off-by: Tony Xu <tony.xu@rock-chips.com> Change-Id: I965982c71d37f4550be364f5fbcc9ae39b22e3d1
|
| #
666b2d1f |
| 20-Nov-2020 |
Joseph Chen <chenjh@rock-chips.com> |
rockchip: boot-mode: clean up rockchip_get_boot_mode()
Signed-off-by: Joseph Chen <chenjh@rock-chips.com> Change-Id: I4a11fa846a8fd74ecffe1ee0ac46ebdeaa2413a7
|
| #
ea8b124a |
| 19-Nov-2020 |
Joseph Chen <chenjh@rock-chips.com> |
rockchip: boot-mode: fix lost boot-mode from register
PH and PL is from boot mode register, reading once. PM is from misc.img and should be updated if BCB offset is changed. Return the boot mode acc
rockchip: boot-mode: fix lost boot-mode from register
PH and PL is from boot mode register, reading once. PM is from misc.img and should be updated if BCB offset is changed. Return the boot mode according to priority: PH > PM > PL.
Fixes: (3aaa96e8af rockchip: boot-mode: reinitialize static variable "boot_mode")
Signed-off-by: Joseph Chen <chenjh@rock-chips.com> Change-Id: Ibd577dd8ebfb0d4c36ac8b90e176d3b1103f347e
show more ...
|
| #
3aaa96e8 |
| 09-Nov-2020 |
Joseph Chen <chenjh@rock-chips.com> |
rockchip: boot-mode: reinitialize static variable "boot_mode"
Special handle: Once the BCB offset changes, reinitialize "boot_mode".
Background: 1. there are two Android BCB at the 0x00 and 0
rockchip: boot-mode: reinitialize static variable "boot_mode"
Special handle: Once the BCB offset changes, reinitialize "boot_mode".
Background: 1. there are two Android BCB at the 0x00 and 0x20 offset in misc.img to compatible legacy(0x20) SDK. 2. android_bcb_msg_sector_offset() is for android image: return 0x20 if image version < 10, otherwise 0x00. 3. If not android image, BCB at 0x20 is the valid one.
U-Boot can support booting both FIT & Android image, if FIT boot flow enters here early than Android, the "boot_mode" is set as BOOT_MODE_RECOVERY according to BCB at 0x20 offset. After that, this function always return static variable "boot_mode" as BOOT_MODE_RECOVERY even android(>=10) boot flow enter here.
Signed-off-by: Joseph Chen <chenjh@rock-chips.com> Change-Id: I0ed05ba1b18447a58d3faff37ac50ecc79fab374
show more ...
|
| #
77827e2e |
| 23-Jul-2020 |
Joseph Chen <chenjh@rock-chips.com> |
rockchip: boot_mode: short the message
Signed-off-by: Joseph Chen <chenjh@rock-chips.com> Change-Id: I471943cc4c1598af5d56e95eea010fc3eaef9578
|
| #
36aa04d9 |
| 07-Jul-2020 |
Joseph Chen <chenjh@rock-chips.com> |
rockchip: boot_mode: add maskrom download for "reboot loader"
Fallback to maskrom download mode if rockusb command failed.
Signed-off-by: Joseph Chen <chenjh@rock-chips.com> Change-Id: Iccfa8745aea
rockchip: boot_mode: add maskrom download for "reboot loader"
Fallback to maskrom download mode if rockusb command failed.
Signed-off-by: Joseph Chen <chenjh@rock-chips.com> Change-Id: Iccfa8745aeac800b1e048e0301147424cd2e9478
show more ...
|
| #
1a4f6af8 |
| 02-Mar-2020 |
Joseph Chen <chenjh@rock-chips.com> |
Merge branch 'next-dev' into thunder-boot
|
| #
d04ada6c |
| 07-Jan-2020 |
Joseph Chen <chenjh@rock-chips.com> |
rockchip: clean boot_mode.c and boot_rkimg.c
Clean the code into where it belongs to.
Signed-off-by: Joseph Chen <chenjh@rock-chips.com> Change-Id: Ia034b8c3d8b264796db72c7bf44bab95811ecb77
|
| #
b8dc613c |
| 19-Nov-2019 |
Joseph Chen <chenjh@rock-chips.com> |
Merge branch 'next-dev' into thunder-boot
|
| #
0ed06f16 |
| 21-Oct-2019 |
Joseph Chen <chenjh@rock-chips.com> |
rockchip: support boot from U-disk
- The U-disk boot is only supported from U-Boot, the earlier preloader doesn't support it; - MMC1(SD) has higher priority than U-disk; - Always boot into recover
rockchip: support boot from U-disk
- The U-disk boot is only supported from U-Boot, the earlier preloader doesn't support it; - MMC1(SD) has higher priority than U-disk; - Always boot into recovery mode and deliver "usbfwupdate" to cmdline; - Usb driver may depend on clock/regulator init, so behind of them; - Suggest to add ./dts/kern.dtb file to promise the kernel dtb always to be loaded successfully even the native images are all damaged.
Change-Id: Ibbb2a061a727752277ac1b80abf362de5d94cca2 Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
show more ...
|
| #
2b2ef886 |
| 08-Aug-2019 |
Joseph Chen <chenjh@rock-chips.com> |
rockchip: boot_mode: remove unused recovery env set
Change-Id: I50920f3b24f37d5bea123c7166eb4ed9e17c7b1e Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
|
| #
47e67a81 |
| 08-Jul-2019 |
Joseph Chen <chenjh@rock-chips.com> |
rockchip: boot mode: remove "recovery" partition lookup for recovery mode
Since we have unified android and linux image format that "recovery" partition is necessary, we remove partition lookup when
rockchip: boot mode: remove "recovery" partition lookup for recovery mode
Since we have unified android and linux image format that "recovery" partition is necessary, we remove partition lookup when recovery mode is required.
Anyway, there is no recovery partition in A/B system and recovery ramdisk has been moved to boot.img, and adding this judgment code is a little mess.
Change-Id: I9f590f464a14ac25855b8a9487c55cec8d353890 Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
show more ...
|
| #
0abc5d19 |
| 28-Jun-2019 |
Jason Zhu <jason.zhu@rock-chips.com> |
rockchip: board: test the bootdev if the bootdev is error
Test the bootdev if the bootdev is error which passed by pre-loader. Run the devtype_num_set to get correct dev_desc.
Change-Id: I5a6f7cd99
rockchip: board: test the bootdev if the bootdev is error
Test the bootdev if the bootdev is error which passed by pre-loader. Run the devtype_num_set to get correct dev_desc.
Change-Id: I5a6f7cd996032a649b2a8fe821314265f00a0091 Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
show more ...
|
| #
c664909e |
| 30-Apr-2019 |
Joseph Chen <chenjh@rock-chips.com> |
rockchip: board: add and use conosle hotkey interface
Change-Id: I9c7b3ce75b9b7652cdd60d0d94d55d34f0a7011e Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
|
| #
da051cc8 |
| 08-Mar-2019 |
Joseph Chen <chenjh@rock-chips.com> |
rockchip: add ctrl+f hotkey to enter fastboot mode
Change-Id: I1f0a98793307b5a261958fe8c29da3271f2d8e4e Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
|
| #
ba70cc53 |
| 22-Jan-2019 |
Joseph Chen <chenjh@rock-chips.com> |
rockchip: boot_mode: fix enter recovery mode failed
enter recovery mode when recovery key is pressed but usb is absent.
Change-Id: I4e29d657e6c42f04db1076a2eaed23974e375404 Signed-off-by: Joseph Ch
rockchip: boot_mode: fix enter recovery mode failed
enter recovery mode when recovery key is pressed but usb is absent.
Change-Id: I4e29d657e6c42f04db1076a2eaed23974e375404 Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
show more ...
|