Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,738,603 Members 41,117 Now Online
XDA Developers Android and Mobile Development Forum

[Q] GTAB NVFLASH issues.

Tip us?
 
JEFFSGTP
Old
#11  
Junior Member - OP
Thanks Meter 5
Posts: 20
Join Date: Nov 2009
rajeewp, FIRST ..>THANK-YOU FOR THE HELP, I SHOULD HAVE SAID IT EARLIER!!!

2. I could not find a file called partition.txt. the only thing I can find that has what I think your talking about is the gtablet.cfg file it contains:

Code:
Select Code
[device]
type=nand
instance=0

[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
filename=part2.img

[partition]
name=PT
id=3
type=partition_table
allocation_policy=sequential
filesystem_type=basic
size=131072
file_system_attribute=0
partition_attribute=0
allocation_attribute=8
percent_reserved=0
filename=part3.img

[partition]
name=EBT
id=4
type=data
allocation_policy=sequential
filesystem_type=basic
size=2097152
file_system_attribute=0
partition_attribute=0
allocation_attribute=8
percent_reserved=0
filename=part4.img

[partition]
name=MBT
id=5
type=data
allocation_policy=sequential
filesystem_type=basic
size=131072
file_system_attribute=0
partition_attribute=0
allocation_attribute=8
percent_reserved=0
filename=part5.img

[partition]
name=BLO
id=6
type=data
allocation_policy=sequential
filesystem_type=basic
size=4194304
file_system_attribute=0
partition_attribute=0
allocation_attribute=8
percent_reserved=0
filename=part6.img

[partition]
name=MSC
id=7
type=data
allocation_policy=sequential
filesystem_type=yaffs2
size=16777216
file_system_attribute=0
partition_attribute=0
allocation_attribute=0x10
percent_reserved=0
filename=part7.img

[partition]
name=OGO
id=8
type=data
allocation_policy=sequential
filesystem_type=yaffs2
size=33554432
file_system_attribute=0
partition_attribute=0
allocation_attribute=0x10
percent_reserved=0
filename=part8.img

[partition]
name=SOS
id=9
type=data
allocation_policy=sequential
filesystem_type=basic
size=16777216
file_system_attribute=0
partition_attribute=0
allocation_attribute=8
percent_reserved=0
filename=part9.img

[partition]
name=LNX
id=10
type=data
allocation_policy=sequential
filesystem_type=basic
size=16777216
file_system_attribute=0
partition_attribute=0
allocation_attribute=8
percent_reserved=0
filename=part10.img

[partition]
name=APP
id=11
type=data
allocation_policy=sequential
filesystem_type=yaffs2
size=209715200
file_system_attribute=0
partition_attribute=0
allocation_attribute=0x10
percent_reserved=0
filename=system.img

[partition]
name=CAC
id=12
type=data
allocation_policy=sequential
filesystem_type=yaffs2
size=0xFFFFFFFFFFFFFFFF
file_system_attribute=0
partition_attribute=0
allocation_attribute=0x10
percent_reserved=0
IS THAT WHAT YOU WERE WANTING ME TO FIND?
 
rajeevvp
Old
(Last edited by rajeevvp; 12th February 2014 at 03:47 AM.)
#12  
Senior Member
Thanks Meter 406
Posts: 1,315
Join Date: Aug 2010
Location: Bangalore
Quote:
Originally Posted by JEFFSGTP View Post
Ok so in theory if I don't care about anything on it, I can do something like this in NVFLASH
Code:
Select Code
 nvflash.exe -r --format_partition 1 --format_partition 2 --format_partition 3-- format_partition 4 --format_partition 5 --format_partition 6 --format_partition 7 --format_partition 8 --format_partition 9 --format_partition 10 --format_partition 11 --format_partition 12
No, that command-line wouldn't be right for 2 reasons:
1. The -r flag stands for "resume" --ie. send additional commands to an already running bootloader (run previously with the --bl filename.bin command). So, without a previous --bl filename.bin command, a command lines containing a -r flag will appear to "hang" the nvflash command. You'll have to reboot the gtablet and begin from scratch.

2. For some strange reason, there is no partition #1. NAND-flash partitions on the gTablet start at #2 and end at between #12 and #14 (that we've seen on this board).

Once you're certain about your partitions (note that this can be added to/reduced/reordered by the specific nvflash package--see the filename.cfg file for partition layout), you can put these commands into a batch file to wipe the NAND-flash:
Code:
Select Code
@echo off
.\nvflash --bl bootloader.bin --format_partition 2 [other partitions] --go
There is also a --format_all flag that you can use in combination with --configfile, but, I've never tried it out.
Quote:
Also how long should it take to complete an indvidual part. right now I have it doing the original you posted 7, 8, 12 I think it was. its been on 7 from several minutes now...my experience is cmd usually is faster than that.
It should finish in seconds. Does it say something like:
Code:
Select Code
...
downloading bootloader -- load address: 0x108000 entry point: 0x108000
sending file: bootloader.bin
  928940/928940 bytes sent
bootloader.bin sent successfully
waiting for bootloader to initialize
bootloader downloaded successfully
...
Formatting partition 7 please wait.. done!
Formatting partition 8 please wait.. done!
Formatting partition 12 please wait.. done!


---------- Post added at 08:59 AM ---------- Previous post was at 08:44 AM ----------

Quote:
Originally Posted by JEFFSGTP View Post
2. I could not find a file called partition.txt.
It should be in the same directory as the nvflash executable.

Quote:
the only thing I can find that has what I think your talking about is the gtablet.cfg file it contains:
...
IS THAT WHAT YOU WERE WANTING ME TO FIND?
That looks like bekit's standard gtablet.cfg. If this is what you used to do the full nvflash, then

1. reboot the tablet into APX mode again and
2. run this command:
Code:
Select Code
C:\SOME\PATH> .\nvflash --bl bootloader.bin --format_partition 7 --format_partition 8 --format_partition 12 --go
See if you can get into recovery mode with Power and Vol +.
 
striker59
Old
#13  
Member
Thanks Meter 11
Posts: 84
Join Date: Jun 2011
Location: Katy, TX
You guys are way past my knowledge, I will bow out. I only gave my limited opinion because no one was responding. Good luck and I'll follow this thread to see how your problem is resolved.

Sent from my VEGAn-TAB using xda app-developers app
The Following User Says Thank You to striker59 For This Useful Post: [ Click to Expand ]
 
JEFFSGTP
Old
#14  
Junior Member - OP
Thanks Meter 5
Posts: 20
Join Date: Nov 2009
Quote:
Originally Posted by striker59 View Post
You guys are way past my knowledge, I will bow out. I only gave my limited opinion because no one was responding. Good luck and I'll follow this thread to see how your problem is resolved.

Sent from my VEGAn-TAB using xda app-developers app
I would be remiss if I didn't say THANKYOU to you as well, i appreciate your help/ideas as well.

haven't had time to do this yet, will report back when I do rajeewp!
The Following User Says Thank You to JEFFSGTP For This Useful Post: [ Click to Expand ]
 
MickeyMix
Old
#15  
Junior Member
Thanks Meter 0
Posts: 3
Join Date: Apr 2008
Location: Deltona
Question Well did this fix it or what? No one ever complete's with a solution.

Well did this fix it or what? No one ever complete's with a solution.



Quote:
Originally Posted by JEFFSGTP View Post
I would be remiss if I didn't say THANKYOU to you as well, i appreciate your help/ideas as well.

haven't had time to do this yet, will report back when I do rajeewp!
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes