The android kernel is using appended dtb by default, and store
ramdisk right after kernel & dtb.
So we needs to relocate ramdisk, and use atags to pass params.
Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com>
---
include/configs/kylin_rk3036.h | 23 +++
1 fi
After boot_ramdisk_high(), ramdisk would be relocated to
initrd_start & initrd_end, so use them instead of rd_start & rd_end.
Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com>
---
arch/arm/lib/bootm.c | 5 -
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git
We will save boot mode flag in grf's os_reg[0], if fastboot
requested or fastboot key pressed, try to enter fastboot mode
at preboot stage.
Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com>
---
board/kylin/kylin_rk3036/kylin_rk3036.c | 32
include/c
We are porting android to kylin board now.
This series could let it boot up with android's boot image.
Jeffy Chen (6):
common/image-fdt.c: Make boot_get_fdt() perform a check for Android
images
ARM: bootm: Try to use relocated ramdisk
rockchip: rk3036: Bind GPIO banks
rockchip: kylin
Add default android gpt partition table for kylin board.
Use "gpt write mmc 0 $partitions" to apply.
Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com>
---
include/configs/kylin_rk3036.h | 29 +
1 file changed, 29 insertions(+)
diff --git a
Android images don't have a fdt.
Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com>
---
common/image-fdt.c | 4
1 file changed, 4 insertions(+)
diff --git a/common/image-fdt.c b/common/image-fdt.c
index 5e4e5bd..41aaa0d 100644
--- a/common/image-fdt.c
+++ b/common/image-fdt.c
@@
Call dm_scan_fdt_node() in rk3036 pinctrl uclass binding.
Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com>
---
drivers/pinctrl/rockchip/pinctrl_rk3036.c | 8
1 file changed, 8 insertions(+)
diff --git a/drivers/pinctrl/rockchip/pinctrl_rk3036.c
b/drivers/pinctrl/ro
Android images don't have a fdt.
Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com>
Acked-by: Simon Glass <s...@chromium.org>
---
Changes in v2: None
common/image-fdt.c | 4
1 file changed, 4 insertions(+)
diff --git a/common/image-fdt.c b/common/image-fdt.c
index 5e4e
We are porting android to kylin board now.
This series could let it boot up with android's boot image.
Changes in v2:
Add comments.
Jeffy Chen (6):
common/image-fdt.c: Make boot_get_fdt() perform a check for Android
images
ARM: bootm: Try to use relocated ramdisk
rockchip: rk3036: Bind
After boot_ramdisk_high(), ramdisk would be relocated to
initrd_start & initrd_end, so use them instead of rd_start & rd_end.
Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com>
---
Changes in v2:
Add comments.
arch/arm/lib/bootm.c | 12 +++-
1 file changed, 11 in
Our chips may have different spl size and spl header, so
use imagename(passed by "mkimage -n") to select them now.
Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com>
---
tools/rkcommon.c | 69 ++--
tools
This reverts commit 10b4615f9d7e177ec7fe644fbb2616e0e0956f6e
Conflicts:
tools/rkcommon.h
Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com>
---
arch/arm/mach-rockchip/Kconfig| 15 ---
arch/arm/mach-rockchip/rk3036/Kconfig | 6 --
arch/arm/mach-ro
This series patch fix rockchip spl loader mkimage flow, use
imagename to select spl loader size & tag for different chip.
Jeffy Chen (3):
Revert "rockchip: Add max spl size & spl header configs"
rockchip: mkimage: use imagename to select spl hdr & spl size
rockch
We now using imagename to select rockchip's spl hdr & spl size.
Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com>
---
doc/README.rockchip | 8
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/doc/README.rockchip b/doc/README.rockchip
index 874441c..b455
Our chips may have different spl size and spl header, so
use imagename(passed by "mkimage -n") to select them now.
Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com>
---
Changes in v2: None
tools/rkcommon.c | 72 ++--
tools
This reverts commit 10b4615f9d7e177ec7fe644fbb2616e0e0956f6e
Conflicts:
tools/rkcommon.h
Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com>
---
Changes in v2:
- Fix some coding style
arch/arm/mach-rockchip/Kconfig| 15 ---
arch/arm/mach-rockchip/rk3036/K
This series patch fix rockchip spl loader mkimage flow, use
imagename to select spl loader size & tag for different chip.
Changes in v2:
- Fix some coding style
Jeffy Chen (3):
Revert "rockchip: Add max spl size & spl header configs"
rockchip: mkimage: use imagename to se
We now using imagename to select rockchip's spl hdr & spl size.
Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com>
Acked-by: Simon Glass <s...@chromium.org>
---
Changes in v2: None
doc/README.rockchip | 8
1 file changed, 4 insertions(+), 4 deletions(-)
Hi Simon,
On 2016-1-8 11:34, Simon Glass wrote:
Hi Jeffy,
On 4 January 2016 at 00:50, Jeffy Chen <jeffy.c...@rock-chips.com> wrote:
The android kernel is using appended dtb by default, and store
ramdisk right after kernel & dtb.
So we needs to relocate ramdisk, and use atags to p
Call dm_scan_fdt_node() in rk3036 pinctrl uclass binding.
Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com>
Acked-by: Simon Glass <s...@chromium.org>
---
Changes in v2: None
drivers/pinctrl/rockchip/pinctrl_rk3036.c | 8
1 file changed, 8 insertions(+)
diff --g
We will save boot mode flag in grf's os_reg[0], if fastboot
requested or fastboot key pressed, try to enter fastboot mode
at preboot stage.
Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com>
Acked-by: Simon Glass <s...@chromium.org>
---
Changes in v2: None
board/kylin/
The android kernel is using appended dtb by default, and store
ramdisk right after kernel & dtb.
So we needs to relocate ramdisk, and use atags to pass params.
Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com>
Acked-by: Simon Glass <s...@chromium.org>
---
Changes in v2
Add default android gpt partition table for kylin board.
Use "gpt write mmc 0 $partitions" to apply.
Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com>
Acked-by: Simon Glass <s...@chromium.org>
---
Changes in v2: None
include/configs/kylin_rk3036.h | 29 ++
-1-8 18:33, Jeffy Chen wrote:
We will save boot mode flag in grf's os_reg[0], if fastboot
requested or fastboot key pressed, try to enter fastboot mode
at preboot stage.
Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com>
Acked-by: Simon Glass <s...@chromium.org>
---
Changes in v
We will save boot mode flag in grf's os_reg[0], if fastboot
requested or fastboot key pressed, try to enter fastboot mode
at preboot stage.
Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com>
---
Changes in v3:
Use rockchip's legacy reboot mode definitions.
Changes in v2: None
board
After boot_ramdisk_high(), ramdisk would be relocated to
initrd_start & initrd_end, so use them instead of rd_start & rd_end.
Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com>
Acked-by: Simon Glass <s...@chromium.org>
---
Changes in v3: None
Changes in v2:
Add comm
Add default android gpt partition table for kylin board.
Use "gpt write mmc 0 $partitions" to apply.
Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com>
Acked-by: Simon Glass <s...@chromium.org>
---
Changes in v3: None
Changes in v2: None
include/confi
Android images don't have a fdt.
Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com>
Acked-by: Simon Glass <s...@chromium.org>
---
Changes in v3: None
Changes in v2: None
common/image-fdt.c | 4
1 file changed, 4 insertions(+)
diff --git a/common/image-fdt.c b/common/image
We are porting android to kylin board now.
This series could let it boot up with android's boot image.
Changes in v3:
Use rockchip's legacy reboot mode definitions.
Changes in v2:
Add comments.
Jeffy Chen (6):
common/image-fdt.c: Make boot_get_fdt() perform a check for Android
images
The android kernel is using appended dtb by default, and store
ramdisk right after kernel & dtb.
So we needs to relocate ramdisk, and use atags to pass params.
Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com>
Acked-by: Simon Glass <s...@chromium.org>
---
Changes in v3: No
Call dm_scan_fdt_node() in rk3036 pinctrl uclass binding.
Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com>
Acked-by: Simon Glass <s...@chromium.org>
---
Changes in v3: None
Changes in v2: None
drivers/pinctrl/rockchip/pinctrl_rk3036.c | 8
1 file changed, 8 inserti
The android kernel is using appended dtb by default, and store
ramdisk right after kernel & dtb.
So we needs to relocate ramdisk, and use atags to pass params.
Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com>
Acked-by: Simon Glass <s...@chromium.org>
---
Changes in v4: No
Android images don't have a fdt.
Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com>
Acked-by: Simon Glass <s...@chromium.org>
---
Changes in v4: None
Changes in v3: None
Changes in v2: None
common/image-fdt.c | 4
1 file changed, 4 insertions(+)
diff --git a/common/i
We will save boot mode flag in grf's os_reg[4], if fastboot
requested or fastboot key pressed, try to enter fastboot mode
at preboot stage.
Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com>
---
Changes in v4:
Remove unused reboot mode definitions.
Changes in v3:
Use rockchip's
Add default android gpt partition table for kylin board.
Use "gpt write mmc 0 $partitions" to apply.
Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com>
Acked-by: Simon Glass <s...@chromium.org>
---
Changes in v4: None
Changes in v3: None
Changes in v2: None
include/
After boot_ramdisk_high(), ramdisk would be relocated to
initrd_start & initrd_end, so use them instead of rd_start & rd_end.
Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com>
Acked-by: Simon Glass <s...@chromium.org>
---
Changes in v4: None
Changes in v3: None
Changes
We are porting android to kylin board now.
This series could let it boot up with android's boot image.
Changes in v4:
Remove unused reboot mode definitions.
Changes in v3:
Use rockchip's legacy reboot mode definitions.
Changes in v2:
Add comments.
Jeffy Chen (6):
common/image-fdt.c: Make
Call dm_scan_fdt_node() in rk3036 pinctrl uclass binding.
Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com>
Acked-by: Simon Glass <s...@chromium.org>
---
Changes in v4: None
Changes in v3: None
Changes in v2: None
drivers/pinctrl/rockchip/pinctrl_rk3036.c | 8
1 fil
Hi Simon,
On 2016-1-12 0:58, Simon Glass wrote:
Hi Jeffy,
On 8 January 2016 at 03:51, Jeffy Chen <jeffy.c...@rock-chips.com> wrote:
Hi Simon,
On 2016-1-8 11:34, Simon Glass wrote:
Hi Jeffy,
On 4 January 2016 at 00:50, Jeffy Chen <jeffy.c...@rock-chips.com> wrote:
The an
After boot_ramdisk_high(), ramdisk would be relocated to
initrd_start & initrd_end, so use them instead of rd_start & rd_end.
Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com>
Acked-by: Simon Glass <s...@chromium.org>
Reviewed-by: Tom Rini <tr...@konsulko.com>
fdt before decompress itself.
And we needs to relocate ramdisk, in case of been overwritten by
the new fdt.
We also split up bootm cmd to get BOOTM_STATE_RAMDISK, which is
not enabled in the default flow.
Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com>
---
Changes in v5:
Hi Tom,
On 2016-1-13 23:28, Tom Rini wrote:
On Wed, Jan 13, 2016 at 04:53:19PM +0800, Jeffy Chen wrote:
The android kernel is using appended dtb by default, and store
ramdisk right after kernel & dtb.
So we needs to relocate ramdisk, and use atags to pass params.
Signed-off-by: Jeffy
Hi Tom,
On 2016-1-13 23:21, Tom Rini wrote:
On Wed, Jan 13, 2016 at 04:53:15PM +0800, Jeffy Chen wrote:
Android images don't have a fdt.
Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com>
Acked-by: Simon Glass <s...@chromium.org>
---
Changes in v4: None
Changes in v3: None
C
Add default android gpt partition table for kylin board.
Use "gpt write mmc 0 $partitions" to apply.
Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com>
Acked-by: Simon Glass <s...@chromium.org>
Reviewed-by: Tom Rini <tr...@konsulko.com>
---
Changes in v5: None
Call dm_scan_fdt_node() in rk3036 pinctrl uclass binding.
Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com>
Acked-by: Simon Glass <s...@chromium.org>
Reviewed-by: Tom Rini <tr...@konsulko.com>
---
Changes in v5: None
Changes in v4: None
Changes in v3: None
Changes in
We will save boot mode flag in grf's os_reg[4], if fastboot
requested or fastboot key pressed, try to enter fastboot mode
at preboot stage.
Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com>
---
Changes in v5:
Change "grf" to local var.
Changes in v4:
Remove unused reboot
in v3:
Use rockchip's legacy reboot mode definitions.
Changes in v2:
Add comments.
Jeffy Chen (6):
ARM: bootm: Try to use relocated ramdisk
rockchip: rk3036: Bind GPIO banks
rockchip: kylin: Add default gpt partition table
rockchip: kylin: Enable boot with android boot image
rockchip: ky
There's a 64K reserved area at the end of the first 4M.
Store env there, so we can use fastboot to flash it.
Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com>
---
Changes in v5:
New patch.
Changes in v4: None
Changes in v3: None
Changes in v2: None
include/configs/kylin_rk3036.
Hi Tom,
On 2016-1-15 8:59, Tom Rini wrote:
On Fri, Jan 15, 2016 at 08:53:06AM +0800, Jeffy Chen wrote:
Hi Tom,
On 2016-1-15 0:22, Tom Rini wrote:
On Thu, Jan 14, 2016 at 10:31:34AM +0800, Jeffy Chen wrote:
Hi Tom,
On 2016-1-13 23:28, Tom Rini wrote:
On Wed, Jan 13, 2016 at 04:53:19PM
Hi Tom,
On 2016-1-15 0:22, Tom Rini wrote:
On Thu, Jan 14, 2016 at 10:31:34AM +0800, Jeffy Chen wrote:
Hi Tom,
On 2016-1-13 23:28, Tom Rini wrote:
On Wed, Jan 13, 2016 at 04:53:19PM +0800, Jeffy Chen wrote:
The android kernel is using appended dtb by default, and store
ramdisk right after
It may overflow in sparse_block_size_to_storage, use uint64_t instead in
the calculation.
Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com>
---
common/image-sparse.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/common/image-sparse.c b/common/image-sparse.c
We should count skipped blocks in when calculating write offset.
Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com>
---
common/image-sparse.c | 31 ---
1 file changed, 8 insertions(+), 23 deletions(-)
diff --git a/common/image-sparse.c b/common/image-sp
Hi Tom,
Sorry for being late..
On 2016-1-26 3:07, Tom Rini wrote:
On Fri, Jan 15, 2016 at 10:20:43AM +0800, Jeffy Chen wrote:
Hi Tom,
On 2016-1-15 8:59, Tom Rini wrote:
On Fri, Jan 15, 2016 at 08:53:06AM +0800, Jeffy Chen wrote:
Hi Tom,
On 2016-1-15 0:22, Tom Rini wrote:
On Thu, Jan 14
From: Lin Huang <h...@rock-chips.com>
emac may use dpll as clock parent, and it request the clock frequency
multiples of 50, so change ddr frequency to 400M.
Signed-off-by: Lin Huang <h...@rock-chips.com>
Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com>
---
arch/arm/ma
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.
Signed-off-by: Jeffy Chen
---
tools/imagetool.h | 1 +
tools/mkimage.c
out && \
cat firefly-rk3288/u-boot-dtb.bin >> out
This series add support of packing optional second level loader with
mkimage tool:
./tools/mkimage -n rk3399 -T rksd -d \
rk3399_ddr_800MHz_v1.24.bin:rk3399_miniloader_v1.19.bin out
Jeffy Chen (2):
rockchip: mkimage: s
Add documentation about packing optional second level boot-loader with
mkimage tool.
Signed-off-by: Jeffy Chen
---
doc/README.rockchip | 11 +++
1 file changed, 11 insertions(+)
diff --git a/doc/README.rockchip b/doc/README.rockchip
index 67c14006a3..39dc9c5e9f 100644
--- a/doc
The rc4 encoding should cover spl header as well, and the file_size
contains spl header too.
Signed-off-by: Jeffy Chen
---
Changes in v2: None
tools/rkimage.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/rkimage.c b/tools/rkimage.c
index ae50de55c9..1c5540b1c3
ta when needed as well.
Jeffy Chen (3):
rockchip: mkimage: support packing optional second level boot-loader
doc: rockchip: document packing second level loader with mkimage
rockchip: mkimage: fix wrong range of rc4 encoding for boot image
doc/README.rockchip | 11 +++
tools/imagetool.h
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 with 2KB alignment.
Signed-off-by: Jeffy Chen
---
Changes in v2:
Do rc4 encode for boot data when needed as well
Add documentation about packing optional second level boot-loader with
mkimage tool.
Signed-off-by: Jeffy Chen
---
Changes in v2: None
doc/README.rockchip | 11 +++
1 file changed, 11 insertions(+)
diff --git a/doc/README.rockchip b/doc/README.rockchip
index 67c14006a3..39dc9c5e9f
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 with 2KB alignment.
Signed-off-by: Jeffy Chen
Reviewed-by: Kever Yang
---
Changes in v4:
Remove unused variable
ize’.
Changes in v3:
Rule out hdr when checking spl size. (The bootrom would put hdr on stack.)
Changes in v2:
Do rc4 encode for boot data when needed as well.
Jeffy Chen (3):
rockchip: mkimage: support packing optional second level boot-loader
doc: rockchip: document packing secon
The rc4 encoding should cover spl header as well, and the file_size
contains spl header too.
Signed-off-by: Jeffy Chen
Reviewed-by: Kever Yang
---
Changes in v4: None
Changes in v3: None
Changes in v2: None
tools/rkimage.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
Add documentation about packing optional second level boot-loader with
mkimage tool.
Signed-off-by: Jeffy Chen
Reviewed-by: Kever Yang
---
Changes in v4: None
Changes in v3: None
Changes in v2: None
doc/README.rockchip | 11 +++
1 file changed, 11 insertions(+)
diff --git a/doc
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 with 2KB alignment.
Signed-off-by: Jeffy Chen
Reviewed-by: Kever Yang
---
Changes in v3:
Rule out hdr when
Add documentation about packing optional second level boot-loader with
mkimage tool.
Signed-off-by: Jeffy Chen
Reviewed-by: Kever Yang
---
Changes in v3: None
Changes in v2: None
doc/README.rockchip | 11 +++
1 file changed, 11 insertions(+)
diff --git a/doc/README.rockchip b/doc
cking spl size. (The bootrom would put hdr on stack.)
Changes in v2:
Do rc4 encode for boot data when needed as well.
Jeffy Chen (3):
rockchip: mkimage: support packing optional second level boot-loader
doc: rockchip: document packing second level loader with mkimage
rockchip: mkimage: fix wron
The rc4 encoding should cover spl header as well, and the file_size
contains spl header too.
Signed-off-by: Jeffy Chen
Reviewed-by: Kever Yang
---
Changes in v3: None
Changes in v2: None
tools/rkimage.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/rkimage.c b
69 matches
Mail list logo