Re: Strange restore behaviour (using reflash)

From: Dave Pegler (dwp@cambridgebroadband.com)
Date: Tue Feb 11 2003 - 10:34:50 EST

  • Next message: Philip Blundell: "Re: Strange restore behaviour (using reflash)"

    Just a follow-up on this one:

    > It appears that the bootldr is not managing to pass partition
    > information into Linux for some reason, and the kernel is falling back
    > to its compiled-in defaults. Do you have "mtdparts=..." in the kernel
    > command line as reported by dmesg?
    >
    > p.

    Looks like the mtd map for the iPAQ is set in stone so it doesn't
    matter what partition information is passed to the kernel from the
    bootldr:

    ~ # cat /proc/cmdline
    mtdparts=ipaq:0x00040000@0x00000000(bootldr)ro,0x01F80000@0x00040000(root),0x00040000@0x01FC0000(asset) noinitrd root=/dev/mtdblock1 init=/linuxrc console=ttySA0 rootfstype=jffs2

    ~/kernel/drivers/mtd/maps/ipaq-flash.c

    #ifdef CONFIG_IPAQ_H3XXX
    static unsigned long h3xxx_max_flash_size = 0x02000000;
    static struct mtd_partition h3xxx_partitions[] = {
            {
                    name: "H3XXX boot firmware",
                    size: 0x00040000,
                    offset: 0,
                    mask_flags: MTD_WRITEABLE, /* force read-only */
            }, {
                    name: "H3XXX root jffs2",
                    size: MTDPART_SIZ_FULL,
                    offset: 0x00040000,
            }
    };

    Is there anyway of overiding this one.

    Dave



    This archive was generated by hypermail 2.1.5 : Tue Feb 11 2003 - 09:37:05 EST