NAND Kernel partition vanished

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

NAND Kernel partition vanished

gai boger

Hello,

  It seems that the partition name "Kernel" in the nand no longer exists. Using dfu-util, it doesn't recognize the name, and when I use
dfu-util -a 3
then it says it writes to an "UNDEFINED" partition, and at the u-boot it says that I'm writing to the "rootfs" partition.

How do I fix this and does this matter at all for the phone to find the kernel file?

Thanks,

Gai


_______________________________________________
support mailing list
[hidden email]
https://lists.openmoko.org/mailman/listinfo/support
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: NAND Kernel partition vanished

Timo Juhani Lindfors
gai boger <[hidden email]> writes:
> It seems that the partition name "Kernel" in the nand no longer
> exists. Using dfu-util, it doesn't recognize the name, and when I
> use dfu-util -a 3 then it says it writes to an "UNDEFINED"
> partition, and at the u-boot it says that I'm writing to the
> "rootfs" partition.

Have you read http://docs.openmoko.org/trac/ticket//2348 ?

> How do I fix this and does this matter at all for the phone to find
> the kernel file?

Probably not.

_______________________________________________
support mailing list
[hidden email]
https://lists.openmoko.org/mailman/listinfo/support
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: NAND Kernel partition vanished

Joachim Ott-2
In reply to this post by gai boger
On 11 October 2010 13:21, gai boger <[hidden email]> wrote:
>   It seems that the partition name "Kernel" in the nand no longer exists.
> Using dfu-util, it doesn't recognize the name, and when I use
> dfu-util -a 3
> then it says it writes to an "UNDEFINED" partition, and at the u-boot it
> says that I'm writing to the "rootfs" partition.
>
> How do I fix this and does this matter at all for the phone to find the
> kernel file?

Can you still boot the system in nand? If yes, check dmesg output for 2 things:

The kernel commandline should look similar to this:

[    0.000000] Kernel command line: rootfstype=jffs2
root=/dev/mtdblock6 console=ttySAC2,115200 console=tty0 loglevel=4
regular_boot mtdparts=physmap-flash:-(nor);neo1973-nand:0x00040000(u-boot),0x00040000(u-boot_env),0x00800000(kernel),0x000a0000(splash),0x00040000(factory),0x0f6a0000(rootfs)

And somewhat later:

[    1.300000] 6 cmdlinepart partitions found on MTD device neo1973-nand
[    1.305000] Creating 6 MTD partitions on "neo1973-nand":
[    1.305000] 0x000000000000-0x000000040000 : "u-boot"
[    1.305000] 0x000000040000-0x000000080000 : "u-boot_env"
[    1.305000] 0x000000080000-0x000000880000 : "kernel"
[    1.310000] 0x000000880000-0x000000920000 : "splash"
[    1.315000] 0x000000920000-0x000000960000 : "factory"
[    1.315000] 0x000000960000-0x000010000000 : "rootfs"

Maybe you u-boot environment is damaged?

_______________________________________________
support mailing list
[hidden email]
https://lists.openmoko.org/mailman/listinfo/support
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: NAND Kernel partition vanished

jluis
In reply to this post by gai boger
A Dilluns 11 Octubre 2010 13:21:55, gai boger va escriure:
> It seems that the partition name "Kernel" in the nand no longer exists.
> Using dfu-util, it doesn't recognize the name, and when I use dfu-util -a
> 3

NOR u-boot never had a partition named "Kernel" it is named "kernel".

The link posted by Timo has information to workaround the bug 2348 if you are
suffering it.

_______________________________________________
support mailing list
[hidden email]
https://lists.openmoko.org/mailman/listinfo/support
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

RE: NAND Kernel partition vanished

gai boger
In reply to this post by Timo Juhani Lindfors

> gai boger <[hidden email]> writes:
> > It seems that the partition name "Kernel" in the nand no longer
> > exists. Using dfu-util, it doesn't recognize the name, and when I
> > use dfu-util -a 3 then it says it writes to an "UNDEFINED"
> > partition, and at the u-boot it says that I'm writing to the
> > "rootfs" partition.
>
> Have you read http://docs.openmoko.org/trac/ticket//2348 ?

I read it and that doesn't seem to be the problem nor the solution.
 
 
 
> Can you still boot the system in nand? If yes, check dmesg output for 2 things:
>
> The kernel commandline should look similar to this:
>
> [ 0.000000] Kernel command line: rootfstype=jffs2
> root=/dev/mtdblock6 console=ttySAC2,115200 console=tty0 loglevel=4
> regular_boot mtdparts=physmap-flash:-(nor);neo1973-nand:0x00040000(u-boot),0x00040000(u-boot_env),0x00800000(kernel),0x000a0000(splash),0x00040000(factory),0x0f6a0000> > (rootfs)
>

> And somewhat later:
>  
> [ 1.300000] 6 cmdlinepart partitions found on MTD device neo1973-nand
> [ 1.305000] Creating 6 MTD partitions on "neo1973-nand":
> [ 1.305000] 0x000000000000-0x000000040000 : "u-boot"
> [ 1.305000] 0x000000040000-0x000000080000 : "u-boot_env"
> [ 1.305000] 0x000000080000-0x000000880000 : "kernel"
> [ 1.310000] 0x000000880000-0x000000920000 : "splash"
> [ 1.315000] 0x000000920000-0x000000960000 : "factory"
> [ 1.315000] 0x000000960000-0x000010000000 : "rootfs"
>  
> Maybe you u-boot environment is damaged?

The dmesg output does appear when I'm using the SHR-unstable.
 
It seems that the problem is apparent only with the NOR u-boot and I've tried several ways and I can't flash a new kernel to the NAND.
 
Forgive me if I hadn't done my homework and looked throughly through the wiki pages but is there a way to flash a new kernel to the NAND through a distribution working on the SD card?
 

_______________________________________________
support mailing list
[hidden email]
https://lists.openmoko.org/mailman/listinfo/support
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: NAND Kernel partition vanished

Joachim Ott-2
On 12 October 2010 20:18, gai boger <[hidden email]> wrote:
> ...
> It seems that the problem is apparent only with the NOR u-boot and I've
> tried several ways and I can't flash a new kernel to the NAND.
>
> Forgive me if I hadn't done my homework and looked throughly through the
> wiki pages but is there a way to flash a new kernel to the NAND through a
> distribution working on the SD card?

That's my favorite way of flashing a new kernel:

flash_eraseall /dev/mtd3
nandwrite -p /dev/mtd3 kermel_image

Use mtd6 for flashing a new rootfs. With dfu-util it's way too slow.

_______________________________________________
support mailing list
[hidden email]
https://lists.openmoko.org/mailman/listinfo/support
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

RE: NAND Kernel partition vanished

gai boger
> On 12 October 2010 20:18, gai boger <[hidden email]> wrote:

> > ...
> > It seems that the problem is apparent only with the NOR u-boot and I've
> > tried several ways and I can't flash a new kernel to the NAND.
> >
> > Forgive me if I hadn't done my homework and looked throughly through the
> > wiki pages but is there a way to flash a new kernel to the NAND through a
> > distribution working on the SD card?
>
> That's my favorite way of flashing a new kernel:
>
> flash_eraseall /dev/mtd3
> nandwrite -p /dev/mtd3 kermel_image
>
> Use mtd6 for flashing a new rootfs. With dfu-util it's way too slow.

I eventually managed to flash the kernel through dfu-util on windows.
 
 
Thank you for your help.

_______________________________________________
support mailing list
[hidden email]
https://lists.openmoko.org/mailman/listinfo/support
Loading...