On Tue, May 29, 2012 at 4:01 PM, Paul Parsons <lost.dista...@yahoo.com> wrote: > --- On Tue, 29/5/12, wiseLYNX <wiselynx.na...@fastwebnet.it> wrote: >> > 1. Modify the SDG bootloader to provide >> "physmap-flash". >> > This is what I do; the SDG bootloader 1.2.5 source is >> available. >> >> where? I found only links to the sdgsystems site and to the >> site of >> someone called kmeaw, but it is not available anymore on >> both sites. > > http://sdgsystems.net/pub/ipaq/hx4700/src/ > >> > 2. Modify the Linux kernel to expect "ipaq". >> > This is probably the easier option. For example this >> patch >> > might work (I haven't tested it and it was derived from >> the >> > linux-3.4.0 sources): >> > >> > diff --git a/drivers/mtd/cmdlinepart.c >> b/drivers/mtd/cmdlinepart.c >> > index ddf9ec6..707eaf5 100644 >> > --- a/drivers/mtd/cmdlinepart.c >> > +++ b/drivers/mtd/cmdlinepart.c >> > @@ -320,7 +320,7 @@ static int >> parse_cmdline_partitions(struct mtd_info *master, >> > unsigned long offset; >> > int i; >> > struct cmdline_mtd_partition >> *part; >> > - const char *mtd_id = >> master->name; >> > + const char *mtd_id = "ipaq"; >> > >> > /* parse command line */ >> > if (!cmdline_parsed) >> >> I tried the latter, and it didn't work: same exact result >> :-( > > I may have got it wrong then. But the mismatched mtd-id > is an issue that needs to be addressed before the > CONFIG_MTD_CMDLINE_PARTS (cmdlinepart.c) driver will work > with the SDG bootloader. > > An alternative might be to override the command line with > the CONFIG_CMDLINE config option. > > _______________________________________________ > Angstrom-distro-users mailing list > Angstrom-distro-users@linuxtogo.org > http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/angstrom-distro-users
About bad commandline/broken/obsolete bootloaders: I was thinking you could use a first kernel booting an initramfs with kexecboot, then the commandline for the kexec'ed kernel could be read from a file (or mangled in the code as done for Zaurus). BTW it seems the issue is very old, as mentioned in the old bootmenu-images in oe-classic http://cgit.openembedded.org/openembedded/tree/recipes/initrdscripts/files/01-bootldr-buster.sh?h=org.openembedded.dev Cheers Andrea _______________________________________________ Angstrom-distro-users mailing list Angstrom-distro-users@linuxtogo.org http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/angstrom-distro-users