[PATCH] MTD: bcm63xxpart: handle Broadcom partition order

Jonas Gorski jonas.gorski at gmail.com
Fri Apr 27 09:07:02 EDT 2012


On 27 April 2012 14:56, Artem Bityutskiy <dedekind1 at gmail.com> wrote:
> On Thu, 2012-04-19 at 13:15 +0200, Jonas Gorski wrote:
>> The original Broadcom partition order has the root fs in front of the
>> kernel, which resulted in miscalculated partition sizes.
>> Detect when such an image is on the flash and also reorder the partitions
>> accordingly.
>>
>> Signed-off-by: Jonas Gorski <jonas.gorski at gmail.com>
>
> Unrilated, but would someone from bcm community take a look at this
> compilation problem:
>
> In file included from /home/dedekind/git/l2-mtd/arch/mips/include/asm/mach-bcm63xx/gpio.h:4:0,
>                 from /home/dedekind/git/l2-mtd/arch/mips/include/asm/gpio.h:4,
>                 from include/linux/gpio.h:36,
>                 from drivers/mtd/maps/gpio-addr-flash.c:16:
> /home/dedekind/git/l2-mtd/arch/mips/include/asm/mach-bcm63xx/bcm63xx_gpio.h: In function 'bcm63xx_gpio_count':
> /home/dedekind/git/l2-mtd/arch/mips/include/asm/mach-bcm63xx/bcm63xx_gpio.h:10:2: error: implicit declaration of function 'bcm63xx_get_cpu_id' [-Werror=implicit-function-declaration]
> /home/dedekind/git/l2-mtd/arch/mips/include/asm/mach-bcm63xx/bcm63xx_gpio.h:11:7: error: 'BCM6358_CPU_ID' undeclared (first use in this function)
> /home/dedekind/git/l2-mtd/arch/mips/include/asm/mach-bcm63xx/bcm63xx_gpio.h:11:7: note: each undeclared identifier is reported only once for each function it appears in
> /home/dedekind/git/l2-mtd/arch/mips/include/asm/mach-bcm63xx/bcm63xx_gpio.h:13:7: error: 'BCM6338_CPU_ID' undeclared (first use in this function)
> /home/dedekind/git/l2-mtd/arch/mips/include/asm/mach-bcm63xx/bcm63xx_gpio.h:15:7: error: 'BCM6345_CPU_ID' undeclared (first use in this function)
> /home/dedekind/git/l2-mtd/arch/mips/include/asm/mach-bcm63xx/bcm63xx_gpio.h:17:7: error: 'BCM6368_CPU_ID' undeclared (first use in this function)
> /home/dedekind/git/l2-mtd/arch/mips/include/asm/mach-bcm63xx/bcm63xx_gpio.h:19:7: error: 'BCM6348_CPU_ID' undeclared (first use in this function)

There's already a patch for that waiting to be applied:

http://patchwork.linux-mips.org/patch/3351/

Regards
Jonas



More information about the linux-mtd mailing list