Without this patch, it always returns the last partition when
"idx" is larger than the last partititon.
Change-Id: I1d126861327c02cab7dd8cc00dd0800651f7da3c
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
The disk part size is defined as number of blocks in partition rather
than bytes.So delete "<< 9".
Change-Id: I4428e5965c6456fcc69fb601d18a97fc48210617
Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
- for some platform without storage, pre-loader passes partition info by atags.
- search order: mmc/nand -> atags
Change-Id: Ie2699e217999e4772168c96de3b16c084241891e
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
The print "invalid parameter" is confused, make it clear to show this is
a warning from RKPARM partition table.
Change-Id: I1381dd6e60d963f1f233d08c8527495b6ca6101c
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
The last partition with size '-' use all remain size.
Change-Id: Id91302d89927ac01c1975c8798c59543314689cd
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
Do not re-use the partition table for 'mmc 1' from the partition
table of 'mmc 0', update the table if the device number changed.
Change-Id: I03b8509749d079ded6a0e0a87929be21732399fb
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
The 'next' will be NULL if next ',' is not found, and access to
'*next' will end with "Synchronous Abort" in 64 bit system because
the memory space is reserved for Trust area.
Change-Id: Id8ee9d6f7815977d7c5996d67a3b72feb74d00cf
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
If the param has no data, the cmdline is NULL, and system get abort:
"Synchronous Abort" handler, esr 0x96000010
Change-Id: Ia52594073287d55a7fd0b35b66d87ffe7f880fea
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
delete unused "initrd=0x...,0x...", this for compatible
with legacy parameter.txt.
Change-Id: I9eb79578196ae4537b65e57a2776fdf0225de488
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
remove unused "initrd=0x...,0x...", this for compatible
with legacy parameter.txt.
Change-Id: I7d9c5708a6b183479ac5980a90067cff8f0872de
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Need to reserver first 4MB for EMMC while use the addr directly for NAND.
Change-Id: I5c6309e41a9c287388cb6c0ff7ba5b1ef9ff29bf
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
blk_dread returns negtive error code or blocks number
that read successfully.
Change-Id: I0f2afe98cfb64fe8e83a065fa64b91481856f5be
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Rockchip parameter parameter is a partition type like cmdline partition,
widely used in rockchip legacy system.
Change-Id: I107748733c4cfed22f3a2ef8716033211eafdf7c
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>