Re: Re-partitioning flash
Michael 'Mickey' Lauer <[email protected]> Sat, 25 Jun 2005 15:58:09 +0200
| Newsgroups | gmane.comp.handhelds.simpad.linux |
|---|---|
| Organization | Institute of Computer Science, University of Frankfurt |
| Message-ID | <[email protected]> |
Am Samstag, den 25.06.2005, 09:36 -0400 schrieb Albert Rybalkin: > Hello, > > I'm using hh bootloader on my SL4 (the version compiled for > 0.9.0-rc1 opensimpad build). It has the following partitions > defined in flash: > > 0x00000000-0x00040000 : "bootldr" > 0x00040000-0x01800000 : "root" > 0x01800000-0x02000000 : "home" > > I would like to get rid of /home partition and make root partition > occupy remaining space. I'm aware that I need to pass static partition > definition to the kernel. But do I need to change anything in the > bootloader? How does bootloader finds partitions in flash? Does it > just scans all flash or it has some parameters which statically > define partitions? Is it safe to assume that I can just drop > to boot> prompt, delete root and home partitions, then create one > large root partition, erase it and copy jffs2 image to it? In general, see linux/drivers/mtd/maps/sa1100.c bootldr passes in flash geometry parameters via kernel CMDline. You need to build a new bootldr if you want to change its idea of the geometry on that device or disable setting mtd params via cmdline in the kernel and adapt sa1100.c to use a static mapping that pleases you. -- Regards, Mickey. ------------------------------------------------------------------ Dipl.-Inf. Michael 'Mickey' Lauer <[email protected]> ------------------------------------------------------------------ ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click