GTA02 NAND problem and devirginator

Leonardo Guardati leonardo at guardati.it
Wed Oct 30 11:37:49 CET 2013


AHi,

   I have a bricked GTA02v7 and the Debug Board v3.

I left it for quite some time and now I would like to
revive it.

I think there is a problem with the NAND Bad Block Table.

But also could be I have flashed something wrong in the past.

Anyway.

The phone boots, but the display never activates, and the dfu-utils
doesn't see the attached gta02.

Using the debug board I can see the serial console spitting bootloaders
messages.

The NOR bootloader (I'm quite sure I never flashed it, so it should be
the same shipped with the phone) says:


######### BEGIN console output ################


U-Boot 1.3.2-moko12 (May  9 2008 - 10:28:48)

I2C:   ready
DRAM:  128 MB
Flash:  2 MB
NAND:  Bad block table not found for chip 0
Bad block table not found for chip 0
256 MiB
Glamo core device ID: 0x3650, Revision 0x0002
USB:   S3C2410 USB Deviced 
mtdparts variable not set, see 'help mtdparts'
mtdparts variable not set, see 'help mtdparts'
mtdparts variable not set, see 'help mtdparts'
mtdparts variable not set, see 'help mtdparts'
mtdparts variable not set, see 'help mtdparts'
mtdparts variable not set, see 'help mtdparts'
T
 
 
 Qi Bootloader s3c2442  debbook master_b620068784d9a7c4 
                                                        2010-02-11T22:33:21+0100  Copyright (C) 2008 Openmoko, Inc.

                                                                                                                        Detected: Freerunner / GTA02, A6 PCB
                                                                                                                                                            Battery condition reasonable

                          Trying kernel: SD Card EXT2 P1 Kernel
                                                               no response
                                                                          block device init failed

                                                                                                  Trying kernel: SD Card EXT2 P2 Kernel
                                                                                                                                       block device init failed
 
 Trying kernel: SD Card EXT2 P3 Kernel
                                      block device init failed

                                                              Trying kernel: NAND Kernel
                                                                                             RAW open: +1024 512-byte blocks
                                                                                                                                    Found: "Openmoko GTA02 Bootmenu"
               Size: 1977 KiB
                                  RAW open: +1024 512-byte blocks
                                                                       Cmdline: loglevel=4 console=tty0 console=ttySAC2,115200 init=/sbin/init ro  mtdparts=physmap-flash:-(nor);neo1973-nand:0x00040000(qi),0x00040000(depr-ub-env),0x00820000(kernel),0x000a0000(depr),0x00040000(identity-ext2),0x0f680000(rootfs)  g_ether.dev_addr=00:1F:11:01:AC:69 g_ether.host_addr=00:1F:11:01:AC:6A rootfstype=jffs2 root=/dev/mtdblock6 qi-bootmenu-args="-i /dev/mtdblock6" lpj=498688 
                                                                                                                                                       Starting --->

      Uncompressing Linux... done, booting the kernel.


######### END console output ################


The "mtdparts variable not set, see 'help mtdparts'" lines appear after
some seconds.

Then the NAND flash bootloader starts; it is the Qi botloader.

Looks like it tries to boot, load the linux kernel and then....brick.


I've searched the wiki and found the "devirginator".

I managed to upload a uboot image (and the environment) on RAM using openocd
and run it...but it gives a strange error about usb (maybe is the reason why
dfu-util doesn't see it). Here what the uboot from RAM says:

######### BEGIN console output ################

U-Boot 1.3.2-moko12 (Dec 17 2008 - 00:49:17)

I2C:   ready
DRAM:  128 MB
Flash:  2 MB
NAND:  Bad block table not found for chip 0
Bad block table not found for chip 0
256 MiB
Glamo core device ID: 0x3650, Revision 0x0002
USB:   S3C2410 USB Deviced
mtdparts variable not set, see 'help mtdparts'
mtdparts variable not set, see 'help mtdparts'
mtdparts variable not set, see 'help mtdparts'
mtdparts variable not set, see 'help mtdparts'
mtdparts variable not set, see 'help mtdparts'
mtdparts variable not set, see 'help mtdparts'
ERROR: usbd_device_event_irq(), 613: (00000000,4) NULL device or device->bus
undefined instruction
pc : [<00000004>]          lr : [<33f88bcc>]
sp : 33ed8e9c  ip : 33f88bcc     fp : 34007f3c
r10: 34007f60  r9 : 34007f68     r8 : 33edbfdc
r7 : 00000004  r6 : 00000000     r5 : 00000003  r4 : 34007d14
r3 : 00000003  r2 : 00000000     r1 : 00000003  r0 : 34007d14
Flags: nzCv  IRQs off  FIQs off  Mode SVC_32
Resetting CPU ...


######### END console output ################



Also I cannot get to the uboot prompt (the NOR one or the RAM one), where I would issue the
various "nand" commands to erase nand and recreate the bad block table.

from wiki this should be the sequence:

nand bad
nand scrub
nand createbbt
dynpart
dynenv set u-boot_env
saveenv



Can anybody help me? I don't know how to get to the prompt of uboot.
Or maybe there is another solution to clear the nand and recreate
the bbt.


Greetings.

Leonardo



More information about the community mailing list