1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-12-26 01:18:58 +02:00

Flash mapping fixes from sn9, thanks

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@13090 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
florian 2008-11-01 16:06:06 +00:00
parent 26879160c0
commit 401bc38762
2 changed files with 24 additions and 18 deletions

View File

@ -239,16 +239,19 @@ static __init int rdc_board_setup(void)
rdc_flash_parts[1].name = "rootfs"; rdc_flash_parts[1].name = "rootfs";
rdc_flash_parts[1].offset = 0x100000; rdc_flash_parts[1].offset = 0x100000;
rdc_flash_parts[1].size = rdc_map_info.size - 0x140000; rdc_flash_parts[1].size = rdc_map_info.size - 0x140000;
rdc_flash_parts[2].name = "config"; rdc_flash_parts[2].name = "linux";
rdc_flash_parts[2].offset = rdc_map_info.size - 0x40000; rdc_flash_parts[2].offset = 0;
rdc_flash_parts[2].size = 0x10000; rdc_flash_parts[2].size = rdc_map_info.size - 0x40000;
rdc_flash_parts[3].name = "productinfo"; rdc_flash_parts[3].name = "config";
rdc_flash_parts[3].offset = rdc_map_info.size - 0x30000; rdc_flash_parts[3].offset = rdc_map_info.size - 0x40000;
rdc_flash_parts[3].size = 0x10000; rdc_flash_parts[3].size = 0x10000;
rdc_flash_parts[4].name = "bootloader"; rdc_flash_parts[4].name = "productinfo";
rdc_flash_parts[4].offset = rdc_map_info.size - 0x20000; rdc_flash_parts[4].offset = rdc_map_info.size - 0x30000;
rdc_flash_parts[4].size = 0x20000; rdc_flash_parts[4].size = 0x10000;
rdc_flash_data.nr_parts = 5; rdc_flash_parts[5].name = "bootloader";
rdc_flash_parts[5].offset = rdc_map_info.size - 0x20000;
rdc_flash_parts[5].size = 0x20000;
rdc_flash_data.nr_parts = 6;
} }
#endif #endif
return platform_add_devices(rdc321x_devs, ARRAY_SIZE(rdc321x_devs)); return platform_add_devices(rdc321x_devs, ARRAY_SIZE(rdc321x_devs));

View File

@ -239,16 +239,19 @@ static __init int rdc_board_setup(void)
rdc_flash_parts[1].name = "rootfs"; rdc_flash_parts[1].name = "rootfs";
rdc_flash_parts[1].offset = 0x100000; rdc_flash_parts[1].offset = 0x100000;
rdc_flash_parts[1].size = rdc_map_info.size - 0x140000; rdc_flash_parts[1].size = rdc_map_info.size - 0x140000;
rdc_flash_parts[2].name = "config"; rdc_flash_parts[2].name = "linux";
rdc_flash_parts[2].offset = rdc_map_info.size - 0x40000; rdc_flash_parts[2].offset = 0;
rdc_flash_parts[2].size = 0x10000; rdc_flash_parts[2].size = rdc_map_info.size - 0x40000;
rdc_flash_parts[3].name = "productinfo"; rdc_flash_parts[3].name = "config";
rdc_flash_parts[3].offset = rdc_map_info.size - 0x30000; rdc_flash_parts[3].offset = rdc_map_info.size - 0x40000;
rdc_flash_parts[3].size = 0x10000; rdc_flash_parts[3].size = 0x10000;
rdc_flash_parts[4].name = "bootloader"; rdc_flash_parts[4].name = "productinfo";
rdc_flash_parts[4].offset = rdc_map_info.size - 0x20000; rdc_flash_parts[4].offset = rdc_map_info.size - 0x30000;
rdc_flash_parts[4].size = 0x20000; rdc_flash_parts[4].size = 0x10000;
rdc_flash_data.nr_parts = 5; rdc_flash_parts[5].name = "bootloader";
rdc_flash_parts[5].offset = rdc_map_info.size - 0x20000;
rdc_flash_parts[5].size = 0x20000;
rdc_flash_data.nr_parts = 6;
} }
#endif #endif
return platform_add_devices(rdc321x_devs, ARRAY_SIZE(rdc321x_devs)); return platform_add_devices(rdc321x_devs, ARRAY_SIZE(rdc321x_devs));