So, same thing happened to yaworski, and we figured out on gtalk what's going on and how to get around it.
First, by checking rawread / rawwrite commands, we figured out that it's faulty eMMC (in his case), causing nvflash to fail formatting it as a BCT partition (see nvflash --help and "rawdeviceread" and "rawdevicewrite" commands). If you're more experienced, you can use them to figure out where it fails, if it's not the first sector, then you can use the workaround (in yaworski's case if was somewhere around 200 - 300 th sector (4 kB per sector). Open up the flash.cfg file with configurations for the partitions, you should have something like this in there:
Code:
[partition]
name=BCT
id=2
type=boot_config_table
allocation_policy=sequential
filesystem_type=basic
size=3145728
file_system_attribute=0
partition_attribute=0
allocation_attribute=8
percent_reserved=0
[partition]
name=PT
id=3
type=partition_table
allocation_policy=sequential
filesystem_type=basic
size=4096
file_system_attribute=0
partition_attribute=0
allocation_attribute=8
percent_reserved=0
in which you're wasting 3 MB on BCT which is in fact less than 4 kB, so reduce BCT size to 4096 and a dummy FCK partition over the "bad area"
Code:
[partition]
name=BCT
id=2
type=boot_config_table
allocation_policy=sequential
filesystem_type=basic
size=4096
file_system_attribute=0
partition_attribute=0
allocation_attribute=8
percent_reserved=0
[partition]
name=PT
id=3
type=partition_table
allocation_policy=sequential
filesystem_type=basic
size=4096
file_system_attribute=0
partition_attribute=0
allocation_attribute=8
percent_reserved=0
[partition]
name=FCK
id=15
type=data
allocation_policy=sequential
filesystem_type=basic
size=4194304
file_system_attribute=0
partition_attribute=0
allocation_attribute=8
percent_reserved=0
After that, the --create command (with --odmdata specified) should work (or at least worked in yaworski's case).
Code:
nvflash --bct flash.bct --setbct --odmdata 0xXXXXXXXX --configfile flash.cfg --create --bl bootloader.bin --sbk 0xXXXXXXXX 0xXXXXXXXX 0xXXXXXXXX 0xXXXXXXXX
In the flash.cfg, I recommend removing "filename" attribute for every partition except EBT, and in EBT use ICS patched bootloader (which has fastboot), you can however specify recovery for SOS partition.
When the repartitioning finishes, dump and decrypt the bct from the tablet, then send "nvflash -r --go" to see PASS.
Anyway, several notes:
A) yaworsky used 40960 size for BCT, we weren't trying 4096
B) if the second sector is fauly, put the FCK partition between BCT and PT
C) expand the FCK partition to more than 8 MB (it's 4 MB in the sample config, su double it), if you are stuck in APX mode even after you flash the bootloader (faulty blocks over EBT).
D) if the first sector is faulty, then there is no go
The are no issues with the ROMs, as kernels will skip the FCK partitions (despite it's marked as data ufffff) In any case, as this is an issue with HW, I still recommend returning it for warranty, as it'll happen again sooner or later.