History log of /rk3399_rockchip-uboot/common/ (Results 76 – 100 of 5256)
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
253529d705-Sep-2023 Xuhui Lin <xuhui.lin@rock-chips.com>

common: spl: fit: Add spl_fit_tb.S dedicated to rv1106

1. Solve the problem that the different memory distribution between rv1106 and rv1126
causing different spl_fit_tb.S code to be required.
2.

common: spl: fit: Add spl_fit_tb.S dedicated to rv1106

1. Solve the problem that the different memory distribution between rv1106 and rv1126
causing different spl_fit_tb.S code to be required.
2. At present, only one spl_fit_tb.c code needs to be maintained. In the future, it is
possible to do dedicated thunderboot optimizations for different platforms.

Build from Gerrit 192219 patchset-18 with local additional configs based
on rv1106-spi-nor-tb_defconfig:
CONFIG_FIT_SIGNATURE=y
CONFIG_DM_CRYPTO=y
CONFIG_FIT_HW_CRYPTO=y
CONFIG_SPL_FIT_SIGNATURE=y
CONFIG_SPL_FIT_ROLLBACK_PROTECT=y
CONFIG_SPL_AB=y
CONFIG_RSA_N_SIZE=0x200
CONFIG_RSA_E_SIZE=0x10
CONFIG_RSA_C_SIZE=0x20
CONFIG_SPL_OPTEE=y
CONFIG_SPL_GZIP=y

Signed-off-by: Xuhui Lin <xuhui.lin@rock-chips.com>
Change-Id: I625de900a3012790f214a4d59d97187884eaf219

show more ...

b128183e13-Sep-2023 Joseph Chen <chenjh@rock-chips.com>

spl/uboot: Add build tag verbose

Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: I2f6c1b82545efd815bfa161c962743cf35d48b54

2d575f5b27-May-2023 Chen Shunqing <csq@rock-chips.com>

edid: provide drm_add_hdmi_modes func

Signed-off-by: Chen Shunqing <csq@rock-chips.com>
Change-Id: I3eff0ed4d411a2be46f657192fd8e95b51988daa

5905ccea11-Sep-2023 Rasmus Villemoes <rasmus.villemoes@prevas.dk>

UPSTREAM: fdt_support: add optional board_rng_seed() hook

A recurring theme on LKML is the boot process deadlocking due to some
process blocking waiting for random numbers, while the kernel's
Crypto

UPSTREAM: fdt_support: add optional board_rng_seed() hook

A recurring theme on LKML is the boot process deadlocking due to some
process blocking waiting for random numbers, while the kernel's
Cryptographic Random Number Generator (crng) is not initalized yet,
but that very blocking means no activity happens that would generate
the entropy necessary to finalize seeding the crng.

This is not a problem on boards that have a good hwrng (when the
kernel is configured to trust it), whether in the CPU or in a TPM or
elsewhere. However, that's far from all boards out there. Moreover,
there are consumers in the kernel that try to obtain random numbers
very early, before the kernel has had any chance to initialize any
hwrng or other peripherals.

Allow a board to provide a board_rng_seed() function, which is
responsible for providing a value to be put into the rng-seed property
under the /chosen node.

The board code is responsible for how to actually obtain those
bytes.

- One possibility is for the board to load a seed "file" from
somewhere (it need not be a file in a filesystem of course), and
then ensure that that the same seed file does not get used on
subsequent boots.

* One way to do that is to delete the file, or otherwise mark it as
invalid, then rely on userspace to create a new one, and living
with the possibility of not finding a seed file during some boots.

* Another is to use the scheme used by systemd-boot and create a new
seed file immediately, but in a way that the seed passed to the
kernel and the new (i.e. next) seed cannot be deduced from each
other, see the explanation at
https://lore.kernel.org/lkml/20190929090512.GB13049@gardel-login/
and the current code at
https://github.com/systemd/systemd/blob/main/src/boot/efi/random-seed.c

- The board may have an hwrng from which some bytes can be read; while
the kernel can also do that, doing it in U-Boot and providing a seed
ensures that even very early users in the kernel get good random
numbers.

- If the board has a sensor of some sort (temperature, humidity, GPS,
RTC, whatever), mixing in a reading of that doesn't hurt.

- etc. etc.

These can of course be combined.

The rng-seed property is mixed into the pool used by the linux
kernel's CRNG very early during boot. Whether it then actually
contributes towards the kernel considering the CRNG initialized
depends on whether the kernel has been configured with
CONFIG_RANDOM_TRUST_BOOTLOADER (nowadays overridable via the
random.trust_bootloader command line option). But that's for the BSP
developer to ultimately decide.

So, if the board needs to have all that logic, why not also just have
it do the actual population of /chosen/rng-seed in ft_board_setup(),
which is not that many extra lines of code?

I considered that, but decided handling this logically belongs in
fdt_chosen(). Also, apart from saving the board code from the few
lines of boilerplate, doing it in ft_board_setup() is too late for at
least some use cases. For example, I want to allow the board logic to
decide

ok, let's pass back this buffer and use that as seed, but also let's
set random.trust_bootloader=n so no entropy is credited.

This requires the rng-seed handling to happen before bootargs
handling. For example, during the very first boot, the board might not
have a proper seed file, but the board could still return (a hash of)
some CPU serial# or whatnot, so that at least no two boards ever get
the same seed - the kernel always mixes in the value passed in
rng-seed, but if it is not "trusted", the kernel would still go
through the same motions as it would if no rng-seed was passed before
considering its CRNG initialized. I.e., by returning that
unique-to-this-board value and setting random.trust_bootloader=n, the
board would be no worse off than if board_rng_seed() returned nothing
at all.

Signed-off-by: Rasmus Villemoes <rasmus.villemoes@prevas.dk>
(cherry picked from commit 6dca1d9ad38de9b7f9a44d2c6eaa6acf9be6c2c0)
Change-Id: I9838bccc384ff6d52505ed48815f8e599f0a7ee1
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>

show more ...

4024d9e507-Sep-2023 Joseph Chen <chenjh@rock-chips.com>

spl: fit: Not allow append fdt failed

Try the backup image when any image load fail.

Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: I310526f645b132a7c4a6bbdd3e6110619cf361a2

bf6a961902-Aug-2023 zhichao.guo <zhichao.guo@rock-chips.com>

common: android_ab: add support for IF_TYPE_SPINAND

- ab_update_root_partition() adds judgment to IF_TYPE_SPINAND.
It fixes a bug that the root part device is not set
when the interface type is

common: android_ab: add support for IF_TYPE_SPINAND

- ab_update_root_partition() adds judgment to IF_TYPE_SPINAND.
It fixes a bug that the root part device is not set
when the interface type is IF_TYPE_SPINAND.

- EFI partition uses UUID to set the root part device.
However, ENV partition does not use this interface type now. TODO.

Signed-off-by: zhichao.guo <zhichao.guo@rock-chips.com>
Change-Id: I3c1d972fc76c247739069bf467c9b1e074e8efe7

show more ...

7778b3e601-Aug-2023 William Wu <william.wu@rock-chips.com>

usb: hub: Add retry for usb scan device

Some USB3.0 Disks fails to accept new address if
run at high speed. Test on RK3568/RK3588 USB3.0
host port with USB2.0 Type-A plug to USB2.0 Type-A
receptacle

usb: hub: Add retry for usb scan device

Some USB3.0 Disks fails to accept new address if
run at high speed. Test on RK3568/RK3588 USB3.0
host port with USB2.0 Type-A plug to USB2.0 Type-A
receptacle connector, we can reproduce this problem
with the following USB3.0 Disks:

1. idVendor=0930, idProduct=1408, Manufacturer: TOSHIBA
2. idVendor=0951, idProduct=1666, Manufacturer: Kingston

With this patch, it tries to do port reset and scan
device again if device not accepting new address.

Test on RK3588 EVB with this patch:

=> usb start
starting USB...
Bus usb@fc000000: usb maximum-speed not found
Register 2000140 NbrPorts 2
Starting the controller
USB XHCI 1.10
Bus usb@fc800000: USB EHCI 1.00
Bus usb@fc840000: USB OHCI 1.0
Bus usb@fc880000: USB EHCI 1.00
Bus usb@fc8c0000: USB OHCI 1.0
Bus usb@fc400000: usb maximum-speed not found
Register 2000140 NbrPorts 2
Starting the controller
USB XHCI 1.10
scanning bus usb@fc000000 for devices... 1 USB Device(s) found
scanning bus usb@fc800000 for devices... 1 USB Device(s) found
scanning bus usb@fc840000 for devices... 1 USB Device(s) found
scanning bus usb@fc880000 for devices... 1 USB Device(s) found
scanning bus usb@fc8c0000 for devices... 1 USB Device(s) found
scanning bus usb@fc400000 for devices... Device not responding to set address.

USB device not accepting new address (error=80000000)
GUID Partition Table Header signature is wrong: 0x4B4F504D != 0x5452415020494645
2 USB Device(s) found
scanning usb for storage devices... 1 Storage Device(s) found

Change-Id: Ibf55ae213365e07f0c74979cd02331b8933737dd
Signed-off-by: William Wu <william.wu@rock-chips.com>

show more ...


/rk3399_rockchip-uboot/arch/arm/include/asm/arch-rockchip/rockchip_smccc.h
/rk3399_rockchip-uboot/arch/arm/mach-rockchip/board.c
/rk3399_rockchip-uboot/arch/arm/mach-rockchip/rk3528/rk3528.c
/rk3399_rockchip-uboot/arch/arm/mach-rockchip/rockchip_smccc.c
/rk3399_rockchip-uboot/arch/arm/mach-rockchip/rv1106/rv1106.c
/rk3399_rockchip-uboot/arch/arm/mach-rockchip/spl.c
/rk3399_rockchip-uboot/cmd/ddr_tool/stressapptest/stressapptest.c
usb_hub.c
/rk3399_rockchip-uboot/configs/rv1106-spi-nor_defconfig
/rk3399_rockchip-uboot/configs/rv1106_defconfig
/rk3399_rockchip-uboot/drivers/cpu/rockchip_amp.c
/rk3399_rockchip-uboot/drivers/misc/Makefile
/rk3399_rockchip-uboot/drivers/mtd/mtd_blk.c
/rk3399_rockchip-uboot/drivers/mtd/nand/spi/xtx.c
/rk3399_rockchip-uboot/drivers/phy/phy-rockchip-samsung-hdptx.c
/rk3399_rockchip-uboot/drivers/power/pmic/rk8xx_spi.c
/rk3399_rockchip-uboot/drivers/ram/rockchip/sdram_rv1126.c
/rk3399_rockchip-uboot/drivers/video/drm/rockchip_display.c
/rk3399_rockchip-uboot/drivers/video/drm/rockchip_display_helper.c
/rk3399_rockchip-uboot/drivers/video/drm/rockchip_rgb.c
/rk3399_rockchip-uboot/drivers/video/drm/rockchip_spl_display.c
/rk3399_rockchip-uboot/drivers/video/drm/rockchip_vop.c
/rk3399_rockchip-uboot/drivers/video/drm/rockchip_vop2.c
/rk3399_rockchip-uboot/drivers/video/drm/samsung_mipi_dcphy.c
/rk3399_rockchip-uboot/include/configs/rk3568_common.h
/rk3399_rockchip-uboot/include/linux/media-bus-format.h
/rk3399_rockchip-uboot/include/optee_include/OpteeClientInterface.h
/rk3399_rockchip-uboot/lib/optee_clientApi/OpteeClientInterface.c
d7e2b0ea24-Jul-2023 Xuhui Lin <xuhui.lin@rock-chips.com>

common: spl: fit: Update for rv1106 thunderboot

1. In consider of future use, open most of configs(about secureboot, rollback) in spl_fit_tb.c
2. Now spl thunderboot can pass mcu id parameter to spl

common: spl: fit: Update for rv1106 thunderboot

1. In consider of future use, open most of configs(about secureboot, rollback) in spl_fit_tb.c
2. Now spl thunderboot can pass mcu id parameter to spl_fit_standalone_release()
3. And spl_fit_standalone_release() can load multiple standalone firmwares

Build from Gerrit 192219 patchset-18 with local additional configs:
CONFIG_FIT_SIGNATURE=y
CONFIG_SPL_FIT_SIGNATURE=y
CONFIG_FIT_ROLLBACK_PROTECT=y
CONFIG_SPL_FIT_ROLLBACK_PROTECT=y
CONFIG_DM_CRYPTO=y
CONFIG_SPL_DM_CRYPTO=y
CONFIG_FIT_HW_CRYPTO=y
CONFIG_SPL_FIT_HW_CRYPTO=y
CONFIG_SPL_AB=y
CONFIG_RSA_N_SIZE=0x200
CONFIG_RSA_E_SIZE=0x10
CONFIG_RSA_C_SIZE=0x20
CONFIG_ROCKCHIP_META=y
CONFIG_SPL_MTD_SUPPORT=y

Signed-off-by: Xuhui Lin <xuhui.lin@rock-chips.com>
Change-Id: I0e0500eadb37c9b27cd4fc55fac04e3edfce2ac8

show more ...


/rk3399_rockchip-uboot/Kconfig
/rk3399_rockchip-uboot/arch/arm/dts/Makefile
/rk3399_rockchip-uboot/arch/arm/dts/rv1106-evb2.dts
/rk3399_rockchip-uboot/arch/arm/include/asm/arch-rockchip/fit.h
/rk3399_rockchip-uboot/arch/arm/include/asm/arch-rockchip/uimage.h
/rk3399_rockchip-uboot/arch/arm/mach-rockchip/board.c
/rk3399_rockchip-uboot/arch/arm/mach-rockchip/fit.c
/rk3399_rockchip-uboot/arch/arm/mach-rockchip/fit_nodes.sh
/rk3399_rockchip-uboot/arch/arm/mach-rockchip/resource_img.c
/rk3399_rockchip-uboot/arch/arm/mach-rockchip/rk3528/rk3528.c
/rk3399_rockchip-uboot/arch/arm/mach-rockchip/rk3568/rk3568.c
/rk3399_rockchip-uboot/arch/arm/mach-rockchip/rk3588/rk3588.c
/rk3399_rockchip-uboot/arch/arm/mach-rockchip/rv1106/rv1106.c
/rk3399_rockchip-uboot/arch/arm/mach-rockchip/rv1126/rv1126.c
/rk3399_rockchip-uboot/arch/arm/mach-rockchip/spl_pcie_ep_boot.c
/rk3399_rockchip-uboot/arch/arm/mach-rockchip/uimage.c
/rk3399_rockchip-uboot/cmd/cache.c
/rk3399_rockchip-uboot/cmd/ddr_tool/ddr_tool_mp.S
/rk3399_rockchip-uboot/cmd/ddr_tool/stressapptest/stressapptest.c
/rk3399_rockchip-uboot/cmd/ddr_tool/stressapptest/stressapptest.h
/rk3399_rockchip-uboot/cmd/mmc.c
/rk3399_rockchip-uboot/cmd/mtd.c
spl/spl_fit_tb_arm32.S
/rk3399_rockchip-uboot/configs/rk-amp.config
/rk3399_rockchip-uboot/configs/rk3308-amp.config
/rk3399_rockchip-uboot/configs/rk3588-ab.config
/rk3399_rockchip-uboot/configs/rk3588_defconfig
/rk3399_rockchip-uboot/configs/rv1106-emmc-tb_defconfig
/rk3399_rockchip-uboot/configs/rv1106-optee.config
/rk3399_rockchip-uboot/configs/rv1106-spi-nor-tb_defconfig
/rk3399_rockchip-uboot/configs/rv1106-spi-nor_defconfig
/rk3399_rockchip-uboot/configs/rv1106_defconfig
/rk3399_rockchip-uboot/configs/rv1126-spi-nor-tiny_defconfig
/rk3399_rockchip-uboot/drivers/clk/rockchip/clk_rk3399.c
/rk3399_rockchip-uboot/drivers/clk/rockchip/clk_rk3562.c
/rk3399_rockchip-uboot/drivers/clk/rockchip/clk_rk3568.c
/rk3399_rockchip-uboot/drivers/clk/rockchip/clk_rk3588.c
/rk3399_rockchip-uboot/drivers/core/root.c
/rk3399_rockchip-uboot/drivers/i2c/muxes/max96745.c
/rk3399_rockchip-uboot/drivers/input/key-uclass.c
/rk3399_rockchip-uboot/drivers/input/spl_adc_key.c
/rk3399_rockchip-uboot/drivers/mmc/dw_mmc.c
/rk3399_rockchip-uboot/drivers/mtd/nand/spi/Kconfig
/rk3399_rockchip-uboot/drivers/mtd/nand/spi/Makefile
/rk3399_rockchip-uboot/drivers/mtd/nand/spi/core.c
/rk3399_rockchip-uboot/drivers/mtd/nand/spi/dosilicon.c
/rk3399_rockchip-uboot/drivers/mtd/nand/spi/fmsh.c
/rk3399_rockchip-uboot/drivers/mtd/nand/spi/foresee.c
/rk3399_rockchip-uboot/drivers/mtd/nand/spi/gigadevice.c
/rk3399_rockchip-uboot/drivers/mtd/nand/spi/jsc.c
/rk3399_rockchip-uboot/drivers/mtd/nand/spi/skyhigh.c
/rk3399_rockchip-uboot/drivers/mtd/nand/spi/unim.c
/rk3399_rockchip-uboot/drivers/mtd/nand/spi/xincun.c
/rk3399_rockchip-uboot/drivers/mtd/spi/sf_internal.h
/rk3399_rockchip-uboot/drivers/mtd/spi/spi-nor-ids.c
/rk3399_rockchip-uboot/drivers/nvme/nvme.c
/rk3399_rockchip-uboot/drivers/pci/pcie_dw_rockchip.c
/rk3399_rockchip-uboot/drivers/phy/phy-rockchip-inno-usb2.c
/rk3399_rockchip-uboot/drivers/ram/rockchip/sdram_rv1126.c
/rk3399_rockchip-uboot/drivers/rkflash/sfc_nand.c
/rk3399_rockchip-uboot/drivers/rkflash/sfc_nor.c
/rk3399_rockchip-uboot/drivers/spi/soft_spi.c
/rk3399_rockchip-uboot/drivers/ufs/ufs.c
/rk3399_rockchip-uboot/drivers/video/drm/Kconfig
/rk3399_rockchip-uboot/drivers/video/drm/Makefile
/rk3399_rockchip-uboot/drivers/video/drm/max96745.c
/rk3399_rockchip-uboot/drivers/video/drm/panel-maxim-max96752f.c
/rk3399_rockchip-uboot/drivers/video/drm/panel-rohm-bu18rl82.c
/rk3399_rockchip-uboot/drivers/video/drm/phy-rockchip-samsung-hdptx-hdmi.c
/rk3399_rockchip-uboot/drivers/video/drm/rockchip_connector.h
/rk3399_rockchip-uboot/drivers/video/drm/rockchip_crtc.c
/rk3399_rockchip-uboot/drivers/video/drm/rockchip_crtc.h
/rk3399_rockchip-uboot/drivers/video/drm/rockchip_display.c
/rk3399_rockchip-uboot/drivers/video/drm/rockchip_display.h
/rk3399_rockchip-uboot/drivers/video/drm/rockchip_panel.c
/rk3399_rockchip-uboot/drivers/video/drm/rockchip_rgb.c
/rk3399_rockchip-uboot/drivers/video/drm/rockchip_vop.c
/rk3399_rockchip-uboot/drivers/video/drm/rockchip_vop2.c
/rk3399_rockchip-uboot/drivers/video/drm/rohm-bu18rl82.c
/rk3399_rockchip-uboot/env/envf.c
/rk3399_rockchip-uboot/examples/standalone/Makefile
/rk3399_rockchip-uboot/examples/standalone/README_rkspi.md
/rk3399_rockchip-uboot/examples/standalone/rkspi.c
/rk3399_rockchip-uboot/examples/standalone/rkspi.h
/rk3399_rockchip-uboot/include/configs/rv1126_common.h
/rk3399_rockchip-uboot/include/drm_modes.h
/rk3399_rockchip-uboot/include/linux/mtd/spinand.h
/rk3399_rockchip-uboot/include/max96745.h
/rk3399_rockchip-uboot/lib/rsa/rsa-sign.c
/rk3399_rockchip-uboot/lib/rsa/rsa-verify.c
/rk3399_rockchip-uboot/scripts/fit-core.sh
/rk3399_rockchip-uboot/tools/Makefile
61608a5b15-May-2023 Xuhui Lin <xuhui.lin@rock-chips.com>

common: bootm: Increase the size of CONFIG_SYS_BOOTM_LEN

For rk3588 qnx, boot.img is larger than 64MiB.
Increase the max size, in order to be compatible with various project needs.

Signed-off-by: X

common: bootm: Increase the size of CONFIG_SYS_BOOTM_LEN

For rk3588 qnx, boot.img is larger than 64MiB.
Increase the max size, in order to be compatible with various project needs.

Signed-off-by: Xuhui Lin <xuhui.lin@rock-chips.com>
Change-Id: I6f508121c8b58410f8ca941dac6ff95b63270d54

show more ...

2dd5b31b18-May-2023 Sandy Huang <hjc@rock-chips.com>

common: build edid at SPL

we need to parse EDID at SPL when enable HDMI support.

Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: Idbe7d69d2b8495c0a39629be09c964b1a0845c37

36c449fe17-May-2023 Joseph Chen <chenjh@rock-chips.com>

common: Add MP boot support

mp_boot build from: a5185c920.

Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: I8f8b2fe45ee87ad0a60e1dfd6f0950f052d4f1e7

2ee484fa12-May-2023 Joseph Chen <chenjh@rock-chips.com>

common: image: Print '/reserved-memory' regions after board fdt fixup

Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: I0512c8af34f0581f5e01f3dd8aa0fb1e3724fe1f

c760bbcd26-Apr-2023 Joseph Chen <chenjh@rock-chips.com>

common: board: Show cpu mpidr

Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: Id54ab8ce0feaf81b87fea56c9bd334d990b0b0db

de8fdf5026-Apr-2023 Joseph Chen <chenjh@rock-chips.com>

spl: print generic timer ticks

Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: Ib7a24b4ef8fb4d187faa6a028d133c291296e092

d5c241e918-Apr-2023 Jason Zhu <jason.zhu@rock-chips.com>

fastboot: sparse: Fix overflow when calculating chunk size

If a chunk was larger than 4GiB, then chunk_data_sz would overflow and
blkcnt would not be calculated correctly. Upgrade it to a u64 and ca

fastboot: sparse: Fix overflow when calculating chunk size

If a chunk was larger than 4GiB, then chunk_data_sz would overflow and
blkcnt would not be calculated correctly. Upgrade it to a u64 and cast
its multiplicands as well. Also fix bytes_written while we're at it.

Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
Change-Id: I57937bc5bc16265d2bc00ea33bd52ff5b7c2429d

show more ...

4c8e468b23-Sep-2022 Kever Yang <kever.yang@rock-chips.com>

rockchip: pcie-ep-boot: Add pcie ep boot function

This is test on rk3588 evb4/evb4v20.
Steps:
1. Init PCIe EP with:
BAR0: 32bit nonprefetchable, control area, at 0x3c000000
BAR2: 64bit prefetchable,

rockchip: pcie-ep-boot: Add pcie ep boot function

This is test on rk3588 evb4/evb4v20.
Steps:
1. Init PCIe EP with:
BAR0: 32bit nonprefetchable, control area, at 0x3c000000
BAR2: 64bit prefetchable, data area, at CONFIG_SPL_LOAD_FIT_ADDRESS
BAR4: EP wired register

2. Waiting for Linkup;
3. Wating for firmware and RUN command;
4. boot with RAM partition.

Test with RC function driver pcie-rkep.c in host side.

Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
Change-Id: I91e8a3e4159668d57c806663ad4faab93585e6d7

show more ...

4ab5af8c07-Apr-2023 Xuhui Lin <xuhui.lin@rock-chips.com>

common: fastboot: Add support for flashing idblock

Background:
- Before flashing, we need to get start and size from GPT.
But idblock is invisible in GPT.

Method:
- Set start and size for idblock

common: fastboot: Add support for flashing idblock

Background:
- Before flashing, we need to get start and size from GPT.
But idblock is invisible in GPT.

Method:
- Set start and size for idblock manually.

Result:
- You can use "fastboot flash idblock idblock.img" to accomplish
flashing idblock. idblock.img depends on file name, it's changeable.

How to pack idblock:
- Add IDB_PATH in the [OUTPUT] of rkbin/RKBOOT/rkxxMINIALL.bin
- Execute ./make.sh rkxx --spl-new under U-Boot repo.

Why no need to support for erase:
- Emmc have erase mode(need to align with maybe 1M), also have trim mode
(depends on EXT_CSD[264], OPTIMAL_TRIM_UNIT_SIZE, for emmc5.1, it should
be align with 8 sectors).
- Start of idblock is smaller than erase group size, can't align with
erase group.
- uboot.img, boot.img don't have problem above. And erase mode means more
better performance, so need to support erase.

Signed-off-by: Xuhui Lin <xuhui.lin@rock-chips.com>
Change-Id: I6db83f1aaa71820e5ad199322b9dde10dd3d187e

show more ...


/rk3399_rockchip-uboot/Kconfig
/rk3399_rockchip-uboot/arch/arm/cpu/armv7/start.S
/rk3399_rockchip-uboot/arch/arm/dts/rk3128-u-boot.dtsi
/rk3399_rockchip-uboot/arch/arm/dts/rk3128.dtsi
/rk3399_rockchip-uboot/arch/arm/dts/rk3528-u-boot.dtsi
/rk3399_rockchip-uboot/arch/arm/dts/rk3562-u-boot.dtsi
/rk3399_rockchip-uboot/arch/arm/dts/rk3588-u-boot.dtsi
/rk3399_rockchip-uboot/arch/arm/dts/rk3588s.dtsi
/rk3399_rockchip-uboot/arch/arm/include/asm/arch-rockchip/rk_meta.h
/rk3399_rockchip-uboot/arch/arm/include/asm/arch-rockchip/rockchip_smccc.h
/rk3399_rockchip-uboot/arch/arm/lib/crt0_64.S
/rk3399_rockchip-uboot/arch/arm/mach-rockchip/fit_args.sh
/rk3399_rockchip-uboot/arch/arm/mach-rockchip/fit_nodes.sh
/rk3399_rockchip-uboot/arch/arm/mach-rockchip/rk_meta.c
/rk3399_rockchip-uboot/arch/arm/mach-rockchip/rockchip_smccc.c
/rk3399_rockchip-uboot/cmd/pci.c
fb_mmc.c
/rk3399_rockchip-uboot/configs/rk312x-rkflash.config
/rk3399_rockchip-uboot/configs/rk3528_defconfig
/rk3399_rockchip-uboot/configs/rk3562_defconfig
/rk3399_rockchip-uboot/configs/rv1106-emmc-tb_defconfig
/rk3399_rockchip-uboot/configs/rv1106-spi-nor-tb_defconfig
/rk3399_rockchip-uboot/configs/rv1106-spi-nor_defconfig
/rk3399_rockchip-uboot/configs/rv1106_defconfig
/rk3399_rockchip-uboot/drivers/clk/rockchip/clk_rk3562.c
/rk3399_rockchip-uboot/drivers/clk/rockchip/clk_rk3588.c
/rk3399_rockchip-uboot/drivers/gpio/rk_gpio.c
/rk3399_rockchip-uboot/drivers/nvme/nvme.c
/rk3399_rockchip-uboot/drivers/power/pmic/rk8xx.c
/rk3399_rockchip-uboot/drivers/usb/dwc3/gadget.c
/rk3399_rockchip-uboot/drivers/usb/dwc3/io.h
/rk3399_rockchip-uboot/drivers/video/drm/dw_hdmi.c
/rk3399_rockchip-uboot/drivers/video/drm/dw_hdmi.h
/rk3399_rockchip-uboot/drivers/video/drm/dw_mipi_dsi2.c
/rk3399_rockchip-uboot/drivers/video/drm/max96755f.c
/rk3399_rockchip-uboot/drivers/video/drm/rockchip_crtc.h
/rk3399_rockchip-uboot/drivers/video/drm/rockchip_display.c
/rk3399_rockchip-uboot/drivers/video/drm/rockchip_dw_hdmi.c
/rk3399_rockchip-uboot/drivers/video/drm/rockchip_rgb.c
/rk3399_rockchip-uboot/drivers/video/drm/rockchip_vop.c
/rk3399_rockchip-uboot/drivers/video/drm/rockchip_vop.h
/rk3399_rockchip-uboot/drivers/video/drm/rockchip_vop2.c
/rk3399_rockchip-uboot/drivers/video/drm/rockchip_vop_reg.c
/rk3399_rockchip-uboot/drivers/video/drm/rohm-bu18tl82.c
/rk3399_rockchip-uboot/include/configs/rv1106_common.h
/rk3399_rockchip-uboot/include/configs/rv1126_common.h
/rk3399_rockchip-uboot/lib/avb/libavb/avb_sha512.c
/rk3399_rockchip-uboot/lib/avb/rk_avb_user/rk_avb_ops_user.c
9d3df7af28-Mar-2023 Joseph Chen <chenjh@rock-chips.com>

spl: fit: Print kernel image source information

Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: Ia1db2a585c119ee146b6f700e31635d90c883c6c

af296ce228-Mar-2023 Joseph Chen <chenjh@rock-chips.com>

common: fit: Add IH_OS_QNX as valid option

Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: I795433ffc22e60a26bd41a4349a15e70aa60da53

36e836f227-Feb-2023 Joseph Chen <chenjh@rock-chips.com>

android: avb: Support verify resource.img for locked device

The resource.img is from android boot/recovery or
resource partition.

The fit boot/recovery.img was already supported with
fit verify mec

android: avb: Support verify resource.img for locked device

The resource.img is from android boot/recovery or
resource partition.

The fit boot/recovery.img was already supported with
fit verify mechanism.

Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: I54243934b40325c08eefa4bacdee542ee8e81654

show more ...

6ea28a6c27-Feb-2023 Joseph Chen <chenjh@rock-chips.com>

rockchip: resource: Clean up and simplify

- merge resource_logo.c into resource_img.c
- remove android os init, it was moved to android_version_init()
- fit/uimage/android only pass resource blk to

rockchip: resource: Clean up and simplify

- merge resource_logo.c into resource_img.c
- remove android os init, it was moved to android_version_init()
- fit/uimage/android only pass resource blk to resource_img.c
- clean up resource_img.c

Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: I54d9b3142e8408e4cbe4e3cbe8dd8d41aa77039c

show more ...

ac0849ac28-Feb-2023 Joseph Chen <chenjh@rock-chips.com>

common: android: Add BCB offset init

This operation is moved from resource_img.c

Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: Ie357e6e6ecf92f5229c4ebd78761631a05f32437

c8d8636302-Mar-2023 Joseph Chen <chenjh@rock-chips.com>

spl: Make prebuilt program optional for kernel boot

Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: Id293e07d50cd3de4f175ea38b2c293c27d867894

74e3a81728-Feb-2023 Joseph Chen <chenjh@rock-chips.com>

common: board_r: Remove map mtd partition

This is done while bootdev is ready.

Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: Icde06cdd0d467e840543702b8a7fa741405e7058

6c8930af18-Feb-2023 cww <cww@rock-chips.com>

common: android_ab: support slc nand

Signed-off-by: cww <cww@rock-chips.com>
Change-Id: I13ebd185d58f52f65877951c3b9334d6b6c2923b


/rk3399_rockchip-uboot/arch/arm/dts/px30-u-boot.dtsi
/rk3399_rockchip-uboot/arch/arm/dts/px30.dtsi
/rk3399_rockchip-uboot/arch/arm/dts/rk3308-u-boot.dtsi
/rk3399_rockchip-uboot/arch/arm/dts/rk3308.dtsi
/rk3399_rockchip-uboot/arch/arm/dts/rk3528-u-boot.dtsi
/rk3399_rockchip-uboot/arch/arm/dts/rk3528.dtsi
/rk3399_rockchip-uboot/arch/arm/dts/rk3562-u-boot.dtsi
/rk3399_rockchip-uboot/arch/arm/dts/rk3568-u-boot.dtsi
/rk3399_rockchip-uboot/arch/arm/dts/rk3568.dtsi
/rk3399_rockchip-uboot/arch/arm/dts/rv1106-u-boot.dtsi
/rk3399_rockchip-uboot/arch/arm/dts/rv1126-u-boot.dtsi
/rk3399_rockchip-uboot/arch/arm/include/asm/arch-rockchip/rk_meta.h
/rk3399_rockchip-uboot/arch/arm/mach-rockchip/Kconfig
/rk3399_rockchip-uboot/arch/arm/mach-rockchip/rk3528/rk3528.c
/rk3399_rockchip-uboot/arch/arm/mach-rockchip/rk3562/rk3562.c
/rk3399_rockchip-uboot/arch/arm/mach-rockchip/rk_meta.c
/rk3399_rockchip-uboot/cmd/Kconfig
/rk3399_rockchip-uboot/cmd/Makefile
/rk3399_rockchip-uboot/cmd/ddr_tool/Kconfig
/rk3399_rockchip-uboot/cmd/ddr_tool/Makefile
/rk3399_rockchip-uboot/cmd/ddr_tool/ddr_dq_eye/Makefile
/rk3399_rockchip-uboot/cmd/ddr_tool/ddr_dq_eye/ddr_dq_eye.c
/rk3399_rockchip-uboot/cmd/ddr_tool/ddr_test/Makefile
/rk3399_rockchip-uboot/cmd/ddr_tool/ddr_test/ddr_test_px30.S
/rk3399_rockchip-uboot/cmd/ddr_tool/ddr_test/ddr_test_rk1808.S
/rk3399_rockchip-uboot/cmd/ddr_tool/ddr_test/ddr_test_rk3328.S
/rk3399_rockchip-uboot/cmd/ddr_tool/ddr_tool_common.c
/rk3399_rockchip-uboot/cmd/ddr_tool/ddr_tool_common.h
/rk3399_rockchip-uboot/cmd/ddr_tool/ddr_tool_mp.S
/rk3399_rockchip-uboot/cmd/ddr_tool/io_map.c
/rk3399_rockchip-uboot/cmd/ddr_tool/io_map.h
/rk3399_rockchip-uboot/cmd/ddr_tool/memtester/Makefile
/rk3399_rockchip-uboot/cmd/ddr_tool/memtester/memtester.c
/rk3399_rockchip-uboot/cmd/ddr_tool/memtester/memtester.h
/rk3399_rockchip-uboot/cmd/ddr_tool/memtester/sizes.h
/rk3399_rockchip-uboot/cmd/ddr_tool/memtester/tests.c
/rk3399_rockchip-uboot/cmd/ddr_tool/memtester/tests.h
/rk3399_rockchip-uboot/cmd/ddr_tool/memtester/types.h
/rk3399_rockchip-uboot/cmd/ddr_tool/stressapptest/Makefile
/rk3399_rockchip-uboot/cmd/ddr_tool/stressapptest/stressapptest.c
/rk3399_rockchip-uboot/cmd/ddr_tool/stressapptest/stressapptest.h
android_ab.c
/rk3399_rockchip-uboot/configs/rk3562_defconfig
/rk3399_rockchip-uboot/drivers/clk/rockchip/clk_rk3528.c
/rk3399_rockchip-uboot/drivers/misc/Makefile
/rk3399_rockchip-uboot/drivers/misc/rk3562-secure-otp.S
/rk3399_rockchip-uboot/drivers/mmc/rockchip_sdhci.c
/rk3399_rockchip-uboot/drivers/mmc/sdhci.c
/rk3399_rockchip-uboot/drivers/mtd/nand/spi/dosilicon.c
/rk3399_rockchip-uboot/drivers/pci/pcie_dw_rockchip.c
/rk3399_rockchip-uboot/drivers/phy/phy-rockchip-naneng-combphy.c
/rk3399_rockchip-uboot/drivers/power/charge_animation.c
/rk3399_rockchip-uboot/drivers/rng/rockchip_rng.c
/rk3399_rockchip-uboot/drivers/sysreset/sysreset-syscon-reboot.c
/rk3399_rockchip-uboot/drivers/sysreset/sysreset-uclass.c
/rk3399_rockchip-uboot/drivers/thermal/rockchip_thermal.c
/rk3399_rockchip-uboot/drivers/video/drm/phy-rockchip-samsung-hdptx-hdmi.c
/rk3399_rockchip-uboot/drivers/video/drm/rockchip_lvds.c
/rk3399_rockchip-uboot/drivers/video/drm/rockchip_vop2.c
/rk3399_rockchip-uboot/include/configs/rk3562_common.h
/rk3399_rockchip-uboot/include/dt-bindings/clock/rk3528-cru.h
/rk3399_rockchip-uboot/include/sdhci.h

12345678910>>...211