[U-Boot] [PATCH v1 5/6] rockchip: kylin: Enable boot with android boot image

2016-01-04 Thread Jeffy Chen
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

[U-Boot] [PATCH v1 2/6] ARM: bootm: Try to use relocated ramdisk

2016-01-04 Thread Jeffy Chen
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

[U-Boot] [PATCH v1 6/6] rockchip: kylin: Check fastboot request

2016-01-04 Thread Jeffy Chen
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

[U-Boot] [PATCH v1 0/6] rockchip: kylin: Boot with android boot image

2016-01-04 Thread Jeffy Chen
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

[U-Boot] [PATCH v1 4/6] rockchip: kylin: Add default gpt partition table

2016-01-04 Thread Jeffy Chen
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

[U-Boot] [PATCH v1 1/6] common/image-fdt.c: Make boot_get_fdt() perform a check for Android images

2016-01-04 Thread Jeffy Chen
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 @@

[U-Boot] [PATCH v1 3/6] rockchip: rk3036: Bind GPIO banks

2016-01-04 Thread Jeffy Chen
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

[U-Boot] [PATCH v2 1/6] common/image-fdt.c: Make boot_get_fdt() perform a check for Android images

2016-01-08 Thread Jeffy Chen
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

[U-Boot] [PATCH v2 0/6] rockchip: kylin: Boot with android boot image

2016-01-08 Thread Jeffy Chen
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

[U-Boot] [PATCH v2 2/6] ARM: bootm: Try to use relocated ramdisk

2016-01-08 Thread Jeffy Chen
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

[U-Boot] [PATCH v1 2/3] rockchip: mkimage: use imagename to select spl hdr & spl size

2015-11-26 Thread Jeffy Chen
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

[U-Boot] [PATCH v1 1/3] Revert "rockchip: Add max spl size & spl header configs"

2015-11-26 Thread Jeffy Chen
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

[U-Boot] [PATCH v1 0/3] Fix rockchip spl loader mkimage flow

2015-11-26 Thread Jeffy Chen
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

[U-Boot] [PATCH v1 3/3] rockchip: doc: add imagename

2015-11-26 Thread Jeffy Chen
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

[U-Boot] [PATCH v2 2/3] rockchip: mkimage: use imagename to select spl hdr & spl size

2015-11-26 Thread Jeffy Chen
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

[U-Boot] [PATCH v2 1/3] Revert "rockchip: Add max spl size & spl header configs"

2015-11-26 Thread Jeffy Chen
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

[U-Boot] [PATCH v2 0/3] Fix rockchip spl loader mkimage flow

2015-11-26 Thread Jeffy Chen
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

[U-Boot] [PATCH v2 3/3] rockchip: doc: add imagename

2015-11-26 Thread Jeffy Chen
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(-)

Re: [U-Boot] [PATCH v1 5/6] rockchip: kylin: Enable boot with android boot image

2016-01-08 Thread Jeffy Chen
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

[U-Boot] [PATCH v2 3/6] rockchip: rk3036: Bind GPIO banks

2016-01-08 Thread Jeffy Chen
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

[U-Boot] [PATCH v2 6/6] rockchip: kylin: Check fastboot request

2016-01-08 Thread Jeffy Chen
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/

[U-Boot] [PATCH v2 5/6] rockchip: kylin: Enable boot with android boot image

2016-01-08 Thread Jeffy Chen
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

[U-Boot] [PATCH v2 4/6] rockchip: kylin: Add default gpt partition table

2016-01-08 Thread Jeffy Chen
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 ++

Re: [U-Boot] [PATCH v2 6/6] rockchip: kylin: Check fastboot request

2016-01-12 Thread Jeffy Chen
-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

[U-Boot] [PATCH v3 6/6] rockchip: kylin: Check fastboot request

2016-01-12 Thread Jeffy Chen
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

[U-Boot] [PATCH v3 2/6] ARM: bootm: Try to use relocated ramdisk

2016-01-12 Thread Jeffy Chen
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

[U-Boot] [PATCH v3 4/6] rockchip: kylin: Add default gpt partition table

2016-01-12 Thread Jeffy Chen
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

[U-Boot] [PATCH v3 1/6] common/image-fdt.c: Make boot_get_fdt() perform a check for Android images

2016-01-12 Thread Jeffy Chen
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

[U-Boot] [PATCH v3 0/6] rockchip: kylin: Boot with android boot image

2016-01-12 Thread Jeffy Chen
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

[U-Boot] [PATCH v3 5/6] rockchip: kylin: Enable boot with android boot image

2016-01-12 Thread Jeffy Chen
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

[U-Boot] [PATCH v3 3/6] rockchip: rk3036: Bind GPIO banks

2016-01-12 Thread Jeffy Chen
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

[U-Boot] [PATCH v4 5/6] rockchip: kylin: Enable boot with android boot image

2016-01-13 Thread Jeffy Chen
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

[U-Boot] [PATCH v4 1/6] common/image-fdt.c: Make boot_get_fdt() perform a check for Android images

2016-01-13 Thread Jeffy Chen
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

[U-Boot] [PATCH v4 6/6] rockchip: kylin: Check fastboot request

2016-01-13 Thread Jeffy Chen
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

[U-Boot] [PATCH v4 4/6] rockchip: kylin: Add default gpt partition table

2016-01-13 Thread Jeffy Chen
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/

[U-Boot] [PATCH v4 2/6] ARM: bootm: Try to use relocated ramdisk

2016-01-13 Thread Jeffy Chen
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

[U-Boot] [PATCH v4 0/6] rockchip: kylin: Boot with android boot image

2016-01-13 Thread Jeffy Chen
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

[U-Boot] [PATCH v4 3/6] rockchip: rk3036: Bind GPIO banks

2016-01-13 Thread Jeffy Chen
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

Re: [U-Boot] [PATCH v1 5/6] rockchip: kylin: Enable boot with android boot image

2016-01-11 Thread Jeffy Chen
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

[U-Boot] [PATCH v5 1/6] ARM: bootm: Try to use relocated ramdisk

2016-01-13 Thread Jeffy Chen
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>

[U-Boot] [PATCH v5 4/6] rockchip: kylin: Enable boot with android boot image

2016-01-13 Thread Jeffy Chen
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:

Re: [U-Boot] [PATCH v4 5/6] rockchip: kylin: Enable boot with android boot image

2016-01-13 Thread Jeffy Chen
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

Re: [U-Boot] [PATCH v4 1/6] common/image-fdt.c: Make boot_get_fdt() perform a check for Android images

2016-01-13 Thread Jeffy Chen
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

[U-Boot] [PATCH v5 3/6] rockchip: kylin: Add default gpt partition table

2016-01-13 Thread Jeffy Chen
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

[U-Boot] [PATCH v5 2/6] rockchip: rk3036: Bind GPIO banks

2016-01-13 Thread Jeffy Chen
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

[U-Boot] [PATCH v5 5/6] rockchip: kylin: Check fastboot request

2016-01-13 Thread Jeffy Chen
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

[U-Boot] [PATCH v5 0/6] rockchip: kylin: Boot with android boot image

2016-01-13 Thread Jeffy Chen
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

[U-Boot] [PATCH v5 6/6] rockchip: kylin: Store env in emmc

2016-01-13 Thread Jeffy Chen
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.

Re: [U-Boot] [PATCH v4 5/6] rockchip: kylin: Enable boot with android boot image

2016-01-14 Thread Jeffy Chen
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

Re: [U-Boot] [PATCH v4 5/6] rockchip: kylin: Enable boot with android boot image

2016-01-14 Thread Jeffy Chen
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

[U-Boot] [PATCH] fastboot: sparse: fix sparse blocks calculation

2016-02-03 Thread Jeffy Chen
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

[U-Boot] [PATCH] fastboot: sparse: fix chunk write offset calculation

2016-02-02 Thread Jeffy Chen
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

Re: [U-Boot] [PATCH v4 5/6] rockchip: kylin: Enable boot with android boot image

2016-02-01 Thread Jeffy Chen
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

[U-Boot] [PATCH] rockchip: rk3036: change ddr frequency to 400M

2016-02-16 Thread Jeffy Chen
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

[PATCH 1/2] rockchip: mkimage: support packing optional second level boot-loader

2019-12-05 Thread Jeffy Chen
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

[PATCH 0/2] mkimage/rockchip: support packing optional second level boot-loader

2019-12-05 Thread Jeffy Chen
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

[PATCH 2/2] doc: rockchip: document packing second level loader with mkimage

2019-12-05 Thread Jeffy Chen
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

[PATCH v2 3/3] rockchip: mkimage: fix wrong range of rc4 encoding for boot image

2019-12-05 Thread Jeffy Chen
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

[PATCH v2 0/3] mkimage/rockchip: support packing optional second level boot-loader

2019-12-05 Thread Jeffy Chen
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

[PATCH v2 1/3] rockchip: mkimage: support packing optional second level boot-loader

2019-12-05 Thread Jeffy Chen
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

[PATCH v2 2/3] doc: rockchip: document packing second level loader with mkimage

2019-12-05 Thread Jeffy Chen
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

[PATCH v4 1/3] rockchip: mkimage: support packing optional second level boot-loader

2019-12-26 Thread Jeffy Chen
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

[PATCH v4 0/3] mkimage/rockchip: support packing optional second level boot-loader

2019-12-26 Thread Jeffy Chen
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

[PATCH v4 3/3] rockchip: mkimage: fix wrong range of rc4 encoding for boot image

2019-12-26 Thread Jeffy Chen
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

[PATCH v4 2/3] doc: rockchip: document packing second level loader with mkimage

2019-12-26 Thread Jeffy Chen
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

[PATCH v3 1/3] rockchip: mkimage: support packing optional second level boot-loader

2019-12-26 Thread Jeffy Chen
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

[PATCH v3 2/3] doc: rockchip: document packing second level loader with mkimage

2019-12-26 Thread Jeffy Chen
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

[PATCH v3 0/3] mkimage/rockchip: support packing optional second level boot-loader

2019-12-26 Thread Jeffy Chen
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

[PATCH v3 3/3] rockchip: mkimage: fix wrong range of rc4 encoding for boot image

2019-12-26 Thread Jeffy Chen
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