Ağustos 13, 2008

GP2X F200 için Open2X kernel patch


GP2X F200 modelini Open2X çekirdeği ile açtığımda 64 MB olan NAND belleğin 32 MB ile sınırlı olduğunu farkettim.
Eğer üşenmeyip cross derleme ortamını kurup Open2X çekirdeğini derlemek isteyen var ise; buyrun size NAND'i 62 MB gösterecek patch.





Index: drivers/mtd/nand/mp2520f.c
===================================================================
--- drivers/mtd/nand/mp2520f.c (revision 321)
+++ drivers/mtd/nand/mp2520f.c (working copy)
@@ -70,7 +70,7 @@
* Define static partitions for the flash device.
*/

-#define NUM_PARTITIONS 5
+#define NUM_PARTITIONS 4
static struct mtd_partition partition_info[] = {
{
name: "U-Boot Bootloader",
@@ -87,10 +87,6 @@
offset: MTDPART_OFS_APPEND,
}, {
name: "Filesystem-A (YAFFS)",
- size: 0x1800000,
- offset: MTDPART_OFS_APPEND,
- }, {
- name: "Filesystem-B (YAFFS)",
size: MTDPART_SIZ_FULL,
offset: MTDPART_OFS_APPEND,
}
@@ -142,15 +138,11 @@
offset: MTDPART_OFS_APPEND,
}, {
name: "Filesystem",
- size: 0x1E00000, /* 30MB */
- offset: MTDPART_OFS_APPEND,
- }, {
- name: "Extend",
size: MTDPART_SIZ_FULL,
offset: MTDPART_OFS_APPEND,
}
};
-#define NUM_PARTITIONS 5
+#define NUM_PARTITIONS 4
#endif /* CONFIG_MTD_OPEN2X_SINGLE_PARTITION */
#endif /* 0 */

0 yorum: