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
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
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 second lev
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
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 a
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
We now using imagename to select rockchip's spl hdr & spl size.
Signed-off-by: Jeffy Chen
---
doc/README.rockchip | 8
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/doc/README.rockchip b/doc/README.rockchip
index 874441c..b455f6f 100644
--- a/doc/README.rockc
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
This reverts commit 10b4615f9d7e177ec7fe644fbb2616e0e0956f6e
Conflicts:
tools/rkcommon.h
Signed-off-by: Jeffy Chen
---
arch/arm/mach-rockchip/Kconfig| 15 ---
arch/arm/mach-rockchip/rk3036/Kconfig | 6 --
arch/arm/mach-rockchip/rk3288/Kconfig | 6
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
---
tools/rkcommon.c | 69 ++--
tools/rkcommon.h | 32 +-
tools
This reverts commit 10b4615f9d7e177ec7fe644fbb2616e0e0956f6e
Conflicts:
tools/rkcommon.h
Signed-off-by: Jeffy Chen
---
Changes in v2:
- Fix some coding style
arch/arm/mach-rockchip/Kconfig| 15 ---
arch/arm/mach-rockchip/rk3036/Kconfig | 6 --
arch/arm/mach
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
Acked-by: Simon Glass
---
Changes in v2: None
doc/README.rockchip | 8
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/doc/README.rockchip b/doc/README.rockchip
inde
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
---
Changes in v2: None
tools/rkcommon.c | 72 ++--
tools/rkcom
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:
Add default android gpt partition table for kylin board.
Use "gpt write mmc 0 $partitions" to apply.
Signed-off-by: Jeffy Chen
---
include/configs/kylin_rk3036.h | 29 +
1 file changed, 29 insertions(+)
diff --git a/include/configs/kylin_rk3036.h b/inclu
Android images don't have a fdt.
Signed-off-by: Jeffy Chen
---
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
@@ -379,6 +379,10 @
Call dm_scan_fdt_node() in rk3036 pinctrl uclass binding.
Signed-off-by: Jeffy Chen
---
drivers/pinctrl/rockchip/pinctrl_rk3036.c | 8
1 file changed, 8 insertions(+)
diff --git a/drivers/pinctrl/rockchip/pinctrl_rk3036.c
b/drivers/pinctrl/rockchip/pinctrl_rk3036.c
index 581b096
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
---
board/kylin/kylin_rk3036/kylin_rk3036.c | 32
include/configs/kylin_rk3036.h
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
---
include/configs/kylin_rk3036.h | 23 +++
1 file changed, 23 insertions(+)
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
---
arch/arm/lib/bootm.c | 5 -
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/arch/arm/lib/bootm.c b/arch/arm/lib
Android images don't have a fdt.
Signed-off-by: Jeffy Chen
Acked-by: Simon Glass
---
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 5e4e5bd..41aaa0d 100644
--- a/common/image-fdt.c
+++ b/c
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:
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
---
Changes in v2:
Add comments.
arch/arm/lib/bootm.c | 12 +++-
1 file changed, 11 insertions(+), 1 deletion(-)
diff --gi
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
Acked-by: Simon Glass
---
Changes in v2: None
include/configs/kylin_rk3036.h
Add default android gpt partition table for kylin board.
Use "gpt write mmc 0 $partitions" to apply.
Signed-off-by: Jeffy Chen
Acked-by: Simon Glass
---
Changes in v2: None
include/configs/kylin_rk3036.h | 29 +
1 file changed, 29 insertions(+)
di
Call dm_scan_fdt_node() in rk3036 pinctrl uclass binding.
Signed-off-by: Jeffy Chen
Acked-by: Simon Glass
---
Changes in v2: None
drivers/pinctrl/rockchip/pinctrl_rk3036.c | 8
1 file changed, 8 insertions(+)
diff --git a/drivers/pinctrl/rockchip/pinctrl_rk3036.c
b/drivers/pinctrl
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
Acked-by: Simon Glass
---
Changes in v2: None
board/kylin/kylin_rk3036/kylin_rk3036.c
Hi Simon,
On 2016-1-8 11:34, Simon Glass wrote:
Hi Jeffy,
On 4 January 2016 at 00:50, 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 Simon,
On 2016-1-12 0:58, Simon Glass wrote:
Hi Jeffy,
On 8 January 2016 at 03:51, Jeffy Chen wrote:
Hi Simon,
On 2016-1-8 11:34, Simon Glass wrote:
Hi Jeffy,
On 4 January 2016 at 00:50, Jeffy Chen wrote:
The android kernel is using appended dtb by default, and store
ramdisk right
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
Acked-by: Simon Glass
---
Changes in v3: None
Changes in v2:
Add comments.
arch/arm/lib/bootm.c | 12 +++-
1 file cha
Add default android gpt partition table for kylin board.
Use "gpt write mmc 0 $partitions" to apply.
Signed-off-by: Jeffy Chen
Acked-by: Simon Glass
---
Changes in v3: None
Changes in v2: None
include/configs/kylin_rk3036.h | 29 +
1 file changed, 29
Android images don't have a fdt.
Signed-off-by: Jeffy Chen
Acked-by: Simon Glass
---
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-fdt.c
index 5e4e5bd..41aaa0d 100644
--- a/common/
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
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
Acked-by: Simon Glass
---
Changes in v3: None
Changes in v2: None
include/configs/kylin_rk3036.h
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
We should count skipped blocks in when calculating write offset.
Signed-off-by: Jeffy Chen
---
common/image-sparse.c | 31 ---
1 file changed, 8 insertions(+), 23 deletions(-)
diff --git a/common/image-sparse.c b/common/image-sparse.c
index dffe844..542a8c4 100644
It may overflow in sparse_block_size_to_storage, use uint64_t instead in
the calculation.
Signed-off-by: Jeffy Chen
---
common/image-sparse.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/common/image-sparse.c b/common/image-sparse.c
index 542a8c4..0c07976 100644
--- a
From: Lin Huang
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
Signed-off-by: Jeffy Chen
---
arch/arm/mach-rockchip/rk3036/sdram_rk3036.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion
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
---
Changes in v3:
Use rockchip's legacy reboot mode definitions.
Changes in v2: None
board/kylin/kylin_rk3036/kyli
Call dm_scan_fdt_node() in rk3036 pinctrl uclass binding.
Signed-off-by: Jeffy Chen
Acked-by: Simon Glass
---
Changes in v3: None
Changes in v2: None
drivers/pinctrl/rockchip/pinctrl_rk3036.c | 8
1 file changed, 8 insertions(+)
diff --git a/drivers/pinctrl/rockchip/pinctrl_rk3036
-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
Acked-by: Simon Glass
---
Changes in v2: None
board/kylin/kylin_rk3036/kylin_rk30
Call dm_scan_fdt_node() in rk3036 pinctrl uclass binding.
Signed-off-by: Jeffy Chen
Acked-by: Simon Glass
---
Changes in v4: None
Changes in v3: None
Changes in v2: None
drivers/pinctrl/rockchip/pinctrl_rk3036.c | 8
1 file changed, 8 insertions(+)
diff --git a/drivers/pinctrl
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
Acked-by: Simon Glass
---
Changes in v4: None
Changes in v3: None
Changes in v2:
Add comments.
arch/arm/lib/bootm.c | 12 +++
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-f
Add default android gpt partition table for kylin board.
Use "gpt write mmc 0 $partitions" to apply.
Signed-off-by: Jeffy Chen
Acked-by: Simon Glass
---
Changes in v4: None
Changes in v3: None
Changes in v2: None
include/configs/kylin_rk3036.h | 29 +++
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
Acked-by: Simon Glass
---
Changes in v4: None
Changes in v3: None
Changes in v2: None
include/con
Android images don't have a fdt.
Signed-off-by: Jeffy Chen
Acked-by: Simon Glass
---
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/image-fdt.c b/common/image-fdt.c
index 5e4e5bd..41aaa0d 1
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
---
Changes in v4:
Remove unused reboot mode definitions.
Changes in v3:
Use rockchip's legacy reboot mode d
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
Acked-by: Simon Glass
---
Changes in v4: None
Changes in v3: None
Changes in v2: None
common/image-fdt.c | 4
1
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
nges 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
ro
Add default android gpt partition table for kylin board.
Use "gpt write mmc 0 $partitions" to apply.
Signed-off-by: Jeffy Chen
Acked-by: Simon Glass
Reviewed-by: Tom Rini
---
Changes in v5: None
Changes in v4: None
Changes in v3: None
Changes in v2: None
include/configs/kylin_rk3
Call dm_scan_fdt_node() in rk3036 pinctrl uclass binding.
Signed-off-by: Jeffy Chen
Acked-by: Simon Glass
Reviewed-by: Tom Rini
---
Changes in v5: None
Changes in v4: None
Changes in v3: None
Changes in v2: None
drivers/pinctrl/rockchip/pinctrl_rk3036.c | 8
1 file changed, 8
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
---
Changes in v5:
Change "grf" to local var.
Changes in v4:
Remove unused reboot mode definitions.
Cha
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
---
Changes in v5:
New patch.
Changes in v4: None
Changes in v3: None
Changes in v2: None
include/configs/kylin_rk3036.h | 12
1 file ch
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
Acked-by: Simon Glass
Reviewed-by: Tom Rini
---
Changes in v5: None
Changes in v4: None
Changes in v3: None
Changes in v2:
Add
into 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
---
Changes in v5:
Remove dup CONFIG_SYS_BOOT_RAMDISK_HIG
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
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
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
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
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
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
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
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
69 matches
Mail list logo