https://bugzilla.novell.com/show_bug.cgi?id=411068
User bugproxy@us.ibm.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=411068#c7
--- Comment #7 from LTC BugProxy
IIRC load-base isn't set by addnote (yet), so you can't know how far to offset to accommodate it. You can guess (or override the default with the NOTE) but at that point you're no better off than the mainline patch.
In the addnote code, load-base is set to 0x4000 (16kB): --- #define N_DESCR 6 unsigned int descr[N_DESCR] = { 0xffffffff, /* real-mode = true */ 0x00c00000, /* real-base, i.e. where we expect OF to be */ 0xffffffff, /* real-size */ 0xffffffff, /* virt-base */ 0xffffffff, /* virt-size */ 0x4000, /* load-base */ }; .. for (i = 0; i < N_DESCR; ++i, ns += 4) PUT_32BE(ns, descr[i]); .. /* write back */ lseek(fd, (long) 0, SEEK_SET); i = write(fd, buf, n); --- The PUT_32BE fills up the buf array, that is, then, used to write the information to the bootloader file. So, unless it is also set in another place, the load-base value is manipulated at addnote.
In theory 4k alignment is adequate, but I think in practice you'd be best to align to a 1Mb boundary.
In fact, load-base is 4k aligned in addnote.c.
You can set load-base to (IIRC) any address that is: * 1Mb aligned * Inside the RMR (usually 128Mb) * Allows room for real-size, RTAS and the decompressed kernel, above OF and below RTAS.
Here, I have some questions. RMR is the total amount of memory available for the partition? How can I know the RMR total size? How memory is partitioned here? I mean, in what order things are positioned? OF -> bootloader -> RTAS -> uncompressed kernel? How can I get/manipulate the limits of each of them? Regards, Luiz. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.