|
|
|
Re: Toradex Colibri, problem with eboot | |
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
|
Dne St 2. prosince 2009 10:03:55 Dennis Semakin napsal(a):
> Hello
>
> 01.12.09, 20:05, "Marek Vasut" <marek.vasut@xxxxxxxxx>:
> > 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
linux-arm@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/linux-arm
[Linux ARM] [Linux ARM MSM] [Linux ARM Kernel] [Fedora ARM] [IETF Annouce] [Security] [Bugtraq] [Linux] [Linux OMAP] [Linux MIPS] [ECOS] [Asterisk Internet PBX] [Linux API]
![]() |
![]() |