Please make K2 Linux bootable without PeeMON again
Quoted 1 line · Tom Rini
Yes, but where is what I'm asking.
I don't understand this question.
Quoted 1 line
Right. And what's a good place to put them?
I don't think there is one answer that will satisfy everyone. Each booter should be able to put them where it wants and tell the kernel where that is.
Right now I put them in the memory belonging to my booter.
Quoted 2 lines
Okay. If I'm reading all of this your
bi_recsend up in the middle of where you're run from, yes?
Yes, and that's the way I want it.
Quoted 3 lines
This has the same problem that the wrapper
does in that it's possible to overwrite these, if you're run in a bad spot.
What do you mean by "if you're run in a bad spot"? My code is statically linked at 0x800000 and always runs there (this is all with translation disabled). I assume 8 MB is more than enough for the kernel.
Quoted 4 lines
No, I want to have the wrapper put the
bi_recsthere and suggest that other people who're doing bootloaders do likewise in 2.5, IF this makes sense as a good place to put them and they can't be overwriten by the kernel bss.
And why not instead give bootloader developers the freedom to put them elsewhere if they want to?
Quoted 7 lines
I've been thinking, and one of two things could happen, at least in the wrapper, we know mem size (Firmware, res data, magic). Or assume there's at least XX megs of ram on the system (I _think_ 16mb is the 'normal' min, but of course we have lots of systems breaking that rule).
What I'd like to see, and at least I think would be a good thing to figure out is a general 'safe' location to store these in.
Again, all this strikes me as unnecessary trouble. Just have the bootloader tell the kernel where the bi_recs are! If you are concerned that your current location for them could get overwritten by the kernel, just make your wrapper do the same thing my booter does: store them at the wrapper's end symbol, not the kernel's. Your wrapper runs at 0x800000 just like my booter, so I guess you are not expecting the kernel image to exceed 8 MB, so I don't see the problem.
MS
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
Quoted 11 lines · Michael Sokolov
Quoted 7 lines · Tom Rini
I've been thinking, and one of two things could happen, at least in the wrapper, we know mem size (Firmware, res data, magic). Or assume there's at least XX megs of ram on the system (I _think_ 16mb is the 'normal' min, but of course we have lots of systems breaking that rule).
What I'd like to see, and at least I think would be a good thing to figure out is a general 'safe' location to store these in.
Again, all this strikes me as unnecessary trouble. Just have the bootloader tell the kernel where the
bi_recsare!
Right. I think I confused you somewhere along the line. I want the kernel to be told the bi_recs are <someplace>. I just want to get what people think would be a good rule-of-thumb <someplace>. I take it you belive 8mb and change is a good rule-of-thumb location, yes?
--
Tom Rini (TR1265)
http://gate.crashing.org/~trini/
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/