Re: Toradex Colibri, problem with eboot

Marek Vasut <[email protected]>
Newsgroups gmane.linux.ports.arm.general
Organization Hack&Dev
Message-ID <[email protected]>
Dne St 2. prosince 2009 10:03:55 Dennis Semakin napsal(a):
> Hello
> 
> 01.12.09, 20:05, "Marek Vasut" <[email protected]>:
> > Dne Út 1. prosince 2009 14:15:57 Dennis Semakin napsal(a):
> >  > Hello
> >  >
> >  > When I try to write u-boot image on flash, there is an error:
> >  >
> >  > # dd if=u-boot.img of=/dev/mtdblock0
> >  > dd: writing '/dev/mtdblock0': Input/output error
> >  > 1+0 records in
> >  > 0+0 records out
> >  > #
> >  >
> >  > Maybe driver works uncorrectly?
> >
> >  Driver works well, maybe your mtd0 is read-only (that's how it is in
> > kernel by default).
> 
> That's right, by default mtd0 is read-only, and at first I've got error -
>  permission denied. Then I recompile kernel with some changes, here is a
>  code: In file linux/arch/arm/mach-pxa/colibri-pxa3xx.c
> 
> #if defined(CONFIG_MTD_NAND_PXA3xx) ||
>  defined(CONFIG_MTD_NAND_PXA3xx_MODULE) static struct mtd_partition
>  colibri_nand_partitions[] = {
>     {
>         .name = "bootloader",
>         .offset = 0,
>         .size = SZ_512K,
>         //.mask_flags = MTD_WRITEABLE, /* force read-only */ HERE IS MY
>  COMMENT },
>     {
>         .name = "kernel",
>         .offset = MTDPART_OFS_APPEND,
>         .size = SZ_4M,
>         .mask_flags = MTD_WRITEABLE, /* force read-only */
>     },
>     {
>         .name = "reserved",
>         .offset = MTDPART_OFS_APPEND,
>         .size = SZ_1M,
>         .mask_flags = MTD_WRITEABLE, /* force read-only */
>     },
>     {
>         .name = "fs",
>         .offset = MTDPART_OFS_APPEND,
>         .size = MTDPART_SIZ_FULL,
>     },
> };
> 
> After this I get error - input/output error.
> 
Then possibly contents of your /dev is messed up.

_______________________________________________
linux-arm mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.