As usual, entering recovery depends on Misc partition content.
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: Ic3c2d13e4b087c0408989edf435ef27a44cac5d7
When enable DEBUG, dump soc clk before use kernel dtb, so that
we can get the clock status in U-Boot before load and use
kernel dtb.
Change-Id: Iee4244bde4ddd8ec1207f1c7cf6942c5b4e8f876
Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
So that the other drivers don't need to include arm-smccc.h
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: If6638ecf2d4a9e6b33a04215df40c19314a764cc
Traceback (most recent call last):
File "./scripts/mkbootimg", line 234, in <module>
main()
File "./scripts/mkbootimg", line 224, in main
args = parse_cmdline()
File "./scripts/mkbootimg", line 210, in parse_cmdline
return parser.parse_args()
File "/usr/lib/python2.7/argparse.py", line 1690, in parse_args
args, argv = self.parse_known_args(args, namespace)
File "/usr/lib/python2.7/argparse.py", line 1722, in parse_known_args
namespace, args = self._parse_known_args(args, namespace)
File "/usr/lib/python2.7/argparse.py", line 1928, in _parse_known_args
start_index = consume_optional(start_index)
File "/usr/lib/python2.7/argparse.py", line 1868, in consume_optional
take_action(action, args, option_string)
File "/usr/lib/python2.7/argparse.py", line 1780, in take_action
argument_values = self._get_values(action, argument_strings)
File "/usr/lib/python2.7/argparse.py", line 2220, in _get_values
value = self._get_value(action, arg_string)
File "/usr/lib/python2.7/argparse.py", line 2249, in _get_value
result = type_func(arg_string)
File "./scripts/mkbootimg", line 172, in parse_os_patch_level
assert m > 0 and m <= 12
AssertionError
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: I625717d27b9e807c4a2afee6b38eca9750ee4e41
This reverts commit 888e59c91d.
The same mode may have different picture aspect ratio.
Some TV modes support only one of picture aspect ratios.
If the picture aspect ratio of this mode do not match in
the whitelist, the mode will be unavailable.
While HWC can make kernel don't report the picture
aspect ratios by ioctl, which avoids the judgment of the
picture aspect ratio in the whitelist.Some TVS will not
suffer from a loss of resolution.
Change-Id: I1c9b3f3ff9286ac5fcf8443d5d7544e2cd0cd0f2
Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
Crypto-v1 needs flush_dcache() for SHA, this avoids the warning
message "CACHE: Misaligned operation at range ...".
Change-Id: Ie766af60db83ec1f290103c2059863fa50d0a0ad
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
If have define USE_ARCH_MEMSET/USE_ARCH_MEMCPY,it don't need
to realize memset/memcpy for rk_atags whit TPL.
Change-Id: I464f364edf711573dbad61302ff9e01f3a0edbf2
Signed-off-by: YouMin Chen <cym@rock-chips.com>
The variable "s" is passed as NULL(i.e 0) When g_dnl_set_serialnumber()
is called from hdelete_r() originally.
The memory 0~1M is secure for ATF on rockchip arm64 platforms,
so the strncpy() accesses 0 address and causes a data-abort.
This issue occurs on deleting env "serial#".
Change-Id: Idbf76d26809ab8b195ff4f8193e2eeac99692289
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Some SoC may missing this config, this is need by all the SoC, so set it
at higher level.
Change-Id: I16e935635cce61d02d6641992483baf98f9fe71b
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
Because the UART2 IOs are mux with SDcard, in order to use SDCard,
we need to use UART5(on evb RPi connector) instead of UART2M0
Change-Id: Ibeab51636eb748f389d9211193c0b5682c266c9e
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
Regulator uclass takes over this job, avoid to init twice.
Change-Id: Idea56143bd7008742936d3bbe1ebadb00c683a47
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Need to pass androidboot.force_normal_boot=1 instead of
skip_initramfs when A/B supporting dynamic partition.
Change-Id: I1748690d04d4ef16e121d8dc88f69745a3cbb77d
Signed-off-by: Dayao Ji <jdy@rock-chips.com>
According to rkcommon.h, when back to bootrom from ddr
initializing, the next payload size is defined RK_MAX_BOOT_SIZE,
which is 512KB.
So we disable some cmd module here.
Current u-boot-dtb.bin is 508KB.
Change-Id: I1ff97907c19fd33f428627a6de66ec790514599a
Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
sync from linux kernel develop-3.10:
"ARM: dts: rk1108: increase sdmmc's drive strength to 8ma"
(sha1: 90ac5cb61aabf2e344c10b4c55954d6a3f41bd55)
Change-Id: Ifd38ced2b0a9cada25e9348f455454c9edbc7bd8
Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
Rockchip platforms defines BCB message at the 16KB offset of
misc partition while the Google defines it at 0x0 offset.
From Android-Q, the 0x0 offset is mandary on Google VTS, so this
patch is a compatibility according to android image 'os_version'.
Android os version >= 10 is at 0x0 offset, otherwise at 16KB offset.
Change-Id: I54a7674e2dc2e0c29fc624f17b4453663c9ea462
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Rockchip platforms defines BCB message at the 16KB offset of
misc partition while the Google defines it at 0x0 offset.
From Android-Q, the 0x0 offset is mandary on Google VTS.
Change-Id: Iac36d421ed605684353c30bfe0e9982bdd5de065
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>