Support packing optional second level boot-loader:
$ ./tools/mkimage -n rk3399 -T rksd -d \
rk3399_ddr_800MHz_v1.24.bin:rk3399_miniloader_v1.19.bin out -v
Adding Image rk3399_ddr_800MHz_v1.24.bin
Size 116492(pad to 116736)
Adding Image rk3399_miniloader_v1.19.bin
Size 88060(pad to 88064)
Image Type: Rockchip RK33 (SD/MMC) boot image
Init Data Size: 116736 bytes
Boot Data Size: 88064 bytes
Mainly parse init file and boot file from datafile option, copy them to
the image, and padding each one to 2KB boundary.
NOTE:
I don't know much about rknand.c, and there's no way to verify it now.
The output image is unchanged though (with a few extra padding).
Haven't got any feedback from upstream yet...But whatever, let's do this!
Change-Id: I0ce98a44634cfcd8acfe9a3e2cfbe3ee0107fba4
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
It's not friendly to handle the fail event in a bootcmd list,
let's handle this in C function.
Entering rockusb/fastboot mode after verified-boot failed.
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: Ib617582e1cc386f5c30abe1a8bbd2b5f353c0e49
Maybe user need to do some job when bootcmd failed, they
could override it.
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: I1c32c1ad37700e66d45fe033fbfa46d3f350205d
Require sha256 and rsa2048 for all images to be signed.
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: I5c74f811fe5c49a2552a5a059c200a0d35f210cb
User maybe not want to set a fixed address, leave it to U-Boot.
This is a compatible method for different board and platforms.
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: I01accbc0f116856276610bfaea8de2f7e1275bb0
Muilt image bootflow requires ramdisk as a mandory component,
so that we have to pack a empty ramdisk into multi image at
some time.
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: I551ae832fbc68514ead0a3337148593e3113394f
- Initial gd->bd->bi_dram[] for arm32.
- Add a configure to enable/disable SPL D-cache.
- Please make sure CONFIG_SPL_SYS_MALLOC_F_LEN is large
enough for TLB and bd_t buffer while enabling dcache
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: I85f2169fe44b44e16edb15a9538df516037e9823
Sometimes we need low power test in spl. Update the config
to allow this.
Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
Change-Id: I0c7d035cb55e06980d1c2fd28ceef5adee4d7197
In some cases it is necessary to read the keyboard in early phases of
U-Boot. Update the config to allow this.
Signed-off-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
Change-Id: I0f166e55c84c9f10ced9e4580e6b7c7a6f980a79
- tftp: download image.
- tftpbootm: download and bootm the aosp/uImage/FIT Image.
- tftpflash: download and flash the Image to partition.
rename "tftpboot" to "tftp" since there are so many tftpxxx commands,
the "tftp" cmd can't be recoganize as "tftpboot" by CLI shell.
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: I0128cd41a8fc9105016ae0417241348eb4a6f637
Implement it to support CLI command:
- Android: bootm [aosp addr]
- FIT: bootm [fit addr]
- uImage: bootm [uimage addr]
Purpose:
- The original bootm command args require fdt addr on AOSP,
which is not flexible on rockchip boot/recovery.img.
- Take Android/FIT/uImage image into sysmem management to avoid image
memory overlap.
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: I4ef3f1b0307f2e061105ee29307051202445c9e9
Avoid dead nested when android_bootloader_boot_kernel() is called
in board_do_bootm(), this bootflow maybe:
CLI command "bootm" => do_bootm() => board_do_bootm() =>
android_bootloader_boot_kernel() => do_bootm().
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: I441d91c986921008752d403a72b7bfa57140d7c8
some rockchip Soc platform just like rk3368, only have one crtc and
multi connector, we must consider the following pattern:
1. only connect lcd panel
-> show logo at lcd panel
2. connect lcd panel and hdmi, and the resolution is different
-> show uboot logo at mipi panel
-> show kernel logo at mipi panel
-> show android logo at hdmi panel
3. connect lcd panel and hdmi, and the solution is same.
-> show logo at lcd panel and hdmi panel at the same time,the path is:
crtc -> hdmi->hdmi panel
|-> mipi/edp/... -> lcd panel
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: I7fb8452ddd128ba70ba18f288500e71c1f03ca8b
1. We bind all serial nodes including UART debug node from kernel dtb.
2. On some rockchip platforms, UART debug and SDMMC pin are multiplex.
Without this, iomux is switched from SDMMC => UART debug at this time.
3. We may switch to UART debug iomux after SDMMC boot failed to print log.
fixes: (503458d core: device: allow serial node bind from kernel dtb)
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: I286ad49f6c5a7e083d205560a4a16e16ded6b83f
- clean init_resource_list();
- support create resource list and read file from memory
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: If308c1dc6f43d0250d81cfa6fb0898d59efe8975
Require sha256 and rsa2048 for all images to be signed.
Use u-boot.dtb to be included as fdt component since the
u-boot.dtb contains the "/signature" information of U-Boot
proper.
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: I1a3ac5f323730b7ef52afd883110d41179740f4f