Re: Toradex Colibri, problem with eboot
Dennis Semakin <[email protected]>
| Newsgroups | gmane.linux.ports.arm.general |
|---|---|
| Message-ID | <[email protected]> |
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. _______________________________________________ linux-arm mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-arm