1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-08-21 07:28:38 +03:00
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8738 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
florian 2007-09-11 06:32:05 +00:00
parent 244de87d18
commit 64f35b6ef8

View File

@ -1,7 +1,5 @@
/* /*
* $Id$ * Copyright (C) 2007 Eugene Konev <ejka@openwrt.org>
*
* Copyright (C) 2007 OpenWrt.org
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by
@ -18,7 +16,7 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
* *
* TI AR7 flash partition table. * TI AR7 flash partition table.
* Based on ar7 map by Felix Fietkau. * Based on ar7 map by Felix Fietkau <nbd@openwrt.org>
* *
*/ */
@ -45,10 +43,11 @@ static int create_mtd_partitions(struct mtd_info *master,
struct ar7_bin_rec header; struct ar7_bin_rec header;
unsigned int offset, len; unsigned int offset, len;
unsigned int pre_size = master->erasesize, post_size = 0, unsigned int pre_size = master->erasesize, post_size = 0,
root_offset = 0xe0000; unsigned int root_offset = 0xe0000;
int retries = 10; int retries = 10;
printk("Parsing AR7 partition map...\n"); printk(KERN_INFO "Parsing AR7 partition map...\n");
ar7_parts[0].name = "loader"; ar7_parts[0].name = "loader";
ar7_parts[0].offset = 0; ar7_parts[0].offset = 0;
@ -98,7 +97,7 @@ static int create_mtd_partitions(struct mtd_info *master,
root_offset &= ~(u32)0xff; root_offset &= ~(u32)0xff;
break; break;
default: default:
printk("Unknown magic: %08x\n", header.checksum); printk(KERN_WARNING "Unknown magic: %08x\n", header.checksum);
break; break;
} }
@ -136,5 +135,5 @@ static int __init ar7_parser_init(void)
module_init(ar7_parser_init); module_init(ar7_parser_init);
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
MODULE_AUTHOR("Felix Fietkau, Eugene Konev"); MODULE_AUTHOR("Felix Fietkau <nbd@openwrt.org>, Eugene Konev <ejka@openwrt.org>");
MODULE_DESCRIPTION("MTD partitioning for TI AR7"); MODULE_DESCRIPTION("MTD partitioning for TI AR7");