From: Jamey Hicks (jamey.hicks@compaq.com)
Date: Sun Mar 03 2002 - 22:23:31 EST
Thanks for the patch!
Jim Pick wrote:
>
> Hi,
>
> Loading of saved partitions has been broken for some time.
>
> In order to see this, create a params partition, and use
> "partition save". On reset, the partitions will be screwed
> up. Also, running "params eval" also screws it up.
>
> I like the feature of being able to set up custom partition tables,
> as it makes kernel hacking easier (eg. dual-booting).
>
> Here's a patch:
>
> Index: bootldr.c
> ===================================================================
> RCS file: /cvs/bootldr/bootldr.c,v
> retrieving revision 1.110
> diff -u -r1.110 bootldr.c
> --- bootldr.c 1 Mar 2002 20:59:11 -0000 1.110
> +++ bootldr.c 3 Mar 2002 22:49:06 -0000
> @@ -1886,6 +1886,7 @@
> (sizeof(struct BootldrFlashPartitionTable)
> + pt->npartitions * sizeof(struct FlashRegion));
> putLabeledWord("partition_table_size=", partition_table_size);
> + partition_table->npartitions = 0;
> for (i = 0; i < pt->npartitions; i++) {
> struct FlashRegion *partition = &pt->partition[i];
> btflash_define_partition(partition->name, partition->base, partition->size, partition->flags);
> @@ -2052,6 +2053,7 @@
> " partition show\r\n"
> " partition define <name> <base> <size> <flags>\r\n"
> " flags: 16 for JFFS2\r\n"
> + " partition delete\r\n"
> " partition save\r\n");
> }
> }
>
> Cheers,
>
> - Jim
This archive was generated by hypermail 2.1.5 : Fri Jan 17 2003 - 17:47:03 EST