8260 console problems
Quoted 5 lines · In message <[email protected]> you wrote:
The code in the mbxboot directory is also used by (many) people that flash the kernel and initrd into rom. One of the nice things about this code is you can boot an image over a network for testing, and then flash the identical compressed bits when you get it working.
Yes, that's what we do with PPCBoot, too. You don't need the mbxboot stuff for this.
Quoted 7 lines
Quoted 1 line
Is there a good, urgent reason to _change_ the current state?
When I get a chance to step back and take a breath from the recent set of merges (yours are in the pipeline now :-), the
bd_infostuff is going to disappear and follow the new boot record method used by other PPC booters. That is the first major step to removing the whole variety of different boot loaders.
Seems I'm missing a bit of information here. Which "new boot record method" are you talking about? Where are things like this discussed? Is there any documentation available?
Quoted 6 lines
Quoted 4 lines
Right now the "kernel interface" is pretty well defined (starts at address 0, r3: ptr to
bd_info, r4: start of initrd or 0, r5: end of initrd, r6: start of command line, r7: end of command line). What are you going to change, and why?No one but 8xx uses that calling convention anymore. To standardize
Really? Isn't this still in use on 4xx, 8xx, and PREP? Ummm... I'm talking about 2.4.0 here; has this been changed sice?
Quoted 3 lines
new boot record method. Regardless of how a board and boot rom store and provide information, the code in the "boot" directory collects this into a standard format and presents it to the kernel.
That's OK for all those boards that come with any usable firmware; some others will be using PPCBoot, and it is our intention that you don't need any additional "glue" layer when booting with PPCBoot.
Wolfgang Denk
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: [email protected] Remember that Beethoven wrote his first symphony in C ...
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
Quoted 4 lines · Dan Malek
...the
bd_infostuff
is going to disappear and follow the new boot record method used by other PPC booters. That is the first major step to removing the whole variety of different boot loaders.
I support this, as long as the "new boot record method" is documented somewhere so that we can make ppcboot conform to it.
Quoted 5 lines
...The serial port goes through no less than three
different initializations (on the 8xx/8260) as new "layers" of software are brought up. In order for KGDB to work early in the kernel code, thembxboot/*tty.cfunctions create deep fifos and initialize the serial port in a way that the early kernel functions understand.
Isn't the "deep fifos" stuff done by "kgdb_map_scc()" as well?
Quoted 3 lines
You will
have to do the same thing in PPCBoot before calling the kernel for this to work.
This appears to work fine with ppcboot already, at least with my 8260 based system and the changes to the 8260 serial driver that I posted not that long ago (which adds support for kgdb, among other things). ppcboot uses single byte fifos. kgdb_map_scc() replaces these with "deep fifos".
Quoted 3 lines
Regardless of how a board and boot rom store
and provide information, the code in the "boot" directory collects this into a standard format and presents it to the kernel.
OK, this is fine, I support this - as long as this "standard format" is clearly defined somewhere (I suppose it will be simple enough to read the code) so that ppcboot can implement it and do the same "presentation" to the kernel, thus by-passing the "boot" directory code. If it is a well known standard, then maybe over time all ppc boot code from all manufacturers will implement it ("We support Linux"). And if it is the same as a lot of existing boot loaders use (as you suggest above), all the better because this will mean they support Linux without any work.
One thing that concerns me... Will the "new boot record method" be flexible and allow any sort of information to be passed through to Linux, for any part of Linux, not just the boot phase? For example, I might have a loadable module which requires information from the low level boot code, information which the boot phase of Linux doesn't care about. i.e. the structure and content of this "new boot record method" should not be fixed. It should be "extensible".
Real life example required... Our boards will all have an i2c serial eeprom, the contents of which will be read by the boot rom code, and possibly changed and/or re-formatted. I want to pass this information via the "new boot record method" up to Linux, which saves it somewhere for use by a loadable module (or modules). I currently place the info into the board information struct that ppcboot passes to Linux (it is, after all, board information :-). If I don't do it this way, then I will have to write code for Linux to do it (either at boot time, or in the init of the loadable module(s)) which is a duplication.
It boils down to this: some things belong in the boot code, and some things belong in Linux (a good example is configuring the memory controller for accessing SDRAM, vs configuring the MMU for accessing virtual memory). Once you decide that something belongs in the boot code, then a mechanism is required to communicate information about that "thing" up to Linux (another good example is the location of the Internal Memory Map - I am currently running my 8260 kernel with IMAP_ADDR defined as ((bd_t *)__res)->bi_immr_base).
I see the stuff in the "boot" directory in Linux as simply "glue" between the real boot code and Linux. It should be kept as small and as simple as possible. And boot code that conforms to the "standard boot record method", won't need the "glue".
Is anything I've said above in conflict with what you had in mind? Cheers!
Murray...
--
Murray Jensen, CSIRO Manufacturing Sci & Tech, Phone: +61 3 9662 7763
Locked Bag No. 9, Preston, Vic, 3072, Australia. Fax: +61 3 9662 7853
Internet: [email protected] (old address was [email protected])
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/