Hi,
If I use rkflashtool[1] I can dump the parameters from my firefly:
# ./rkflashtool p
rkflashtool: info: rkflashtool v5.2
rkflashtool: info: Detected RK3288...
rkflashtool: info: interface claimed
rkflashtool: info: reading parameters at offset 0x00000000
rkflashtool: info: size: 0x00000230
FIRMWARE_VER:4.4.2
MACHINE_MODEL:rk30sdk
MACHINE_ID:007
MANUFACTURER:RK30SDK
MAGIC: 0x5041524B
ATAG: 0x60000800
MACHINE: 3066
CHECK_MASK: 0x80
PWR_HLD: 0,0,A,0,1
#KERNEL_IMG: 0x62008000
#FDT_NAME: rk-kernel.dtb
#RECOVER_KEY: 1,1,0,20,0
CMDLINE:console=tty0 console=ttyS2 earlyprintk
root=/dev/block/mtd/by-name/linuxroot rw rootfstype=ext4 init=/sbin/init
initrd=0x62000000,0x00800000
mtdparts=rk29xxnand:0x00008000@0x00002000(resource),0x00008000@0x0000A000(boot),0x00002000@0x00012000(misc),0x0001a000@0x00014000(backup),-@0x0002e000(linuxroot)
My understanding is that the firefly has some eMMC memory on it[2] which
is partitioned. One of these partitions is named "parameter" and that's
what the "rkflashtool p" command is dumping out in the above output? If
I run "rkflashtool P" the command will read values from stdin and write
the "parameters" partition with whatever it reads (most people simply
redirect the contents of a file)?
Why are some of the lines commented out? Do I need to provide them to
"rdkflashtool P" if they're commented out?
Is it possible to repartition and/or rename the partitions by simply
changing the values from the above output and writing them back using
"rkflashtool P"? For example, the RK3288 has a first stage bootloader in
ROM which looks for a runs a second stage bootloader from the "boot"
partition(?). If I changed the name of the "boot" partition to "myboot",
would my device not be able to enter "loader mode"?
E.g.
# rkflashtool P
FIRMWARE_VER:4.4.2
MACHINE_MODEL:rk30sdk
MACHINE_ID:007
MANUFACTURER:RK30SDK
MAGIC: 0x5041524B
ATAG: 0x60000800
MACHINE: 3066
CHECK_MASK: 0x80
PWR_HLD: 0,0,A,0,1
CMDLINE:console=tty0 console=ttyS2 earlyprintk
root=/dev/block/mtd/by-name/linuxroot rw rootfstype=ext4 init=/sbin/init
initrd=0x62000000,0x00800000
mtdparts=rk29xxnand:0x00008000@0x00002000(resource),0x00008000@0x0000A000(myboot),0x00002000@0x00012000(misc),0x0001a000@0x00014000(backup),-@0x0002e000(linuxroot)
Best regards,
Trevor
[1]
https://github.com/linux-rockchip/rkflashtool.git
[2]
https://en.wikipedia.org/wiki/MultiMediaCard#eMMC