Booting 2.3.48 (devel) kernel problems?
Quoted 1 line · Michael Schmitz
So the framebuffer got mapped from OF but not from BootX.
I think it worked with OF because we inherit from OF SDR1 and, by luck, OF page tables are high enough in memory to not have been damaged by the kernel. When booting via BootX, that's not the case.
We should not try to access the framebuffer from identify_machine() and MMU_Init() unless it was mapped with a BAT in head.S (for debugging purposes). In normal cases, it will get mapped via map_bootx_text called from setup_arch() and can be used beyond that point.
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
Benjamin Herrenschmidt } I think it worked with OF because we inherit from OF SDR1 and, by luck, Benjamin Herrenschmidt } OF page tables are high enough in memory to not have been damaged by the
yes, 2.3.48 works with 3400-OF
there are three things so far:
-OF complains past the standart
ok
copying OF device tree ...done
about:
Initialising fake screen
Failed to get address
but lets linux make its way
-in something like mutt in aterm, colours and fonts scramble for their rights at the bottom of the window with a very useless result, a bit annoying.
-pcmcia compiles with:
i82365.c:110: warning: do_scan' defined but not used i82365.c:553: warning: test_irq' defined but not used i82365.c:737: warning: add_socket' defined but not used i82365.c:748: warning: add_pcic' defined but not used i82365.c:1499: warning: init_i82365' defined but not used i82365.c:1543: warning: exit_i82365' defined but not used but gets massive pci problems, so no driver is loaded.
greetings
Claus
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
Quoted 11 lines
Quoted 2 lines
So the framebuffer got mapped from OF but not from BootX.
I think it worked with OF because we inherit from OF SDR1 and, by luck, OF page tables are high enough in memory to not have been damaged by the kernel. When booting via BootX, that's not the case.
We should not try to access the framebuffer from
identify_machine()andMMU_Init()unless it was mapped with a BAT inhead.S(for debugging purposes). In normal cases, it will get mapped viamap_bootx_textcalled fromsetup_arch()and can be used beyond that point.
In his own words :-)
------------------------------------8<-----------------------------------
- make sure setting the display BAT in arch/ppc/mm/init.c (MMU_Init) is
commented out, this is a hack and need some alignement tricks to work in all cases. It should already be in #if 0/#endif
- in arch/ppc/kernel/pmac_setup.c, comment out the content of the
function pmac_progress. (Or change pmac_init() so that it sets ppc_md.progress to NULL, and set it to pmac_progress only pmac_setup_arch()).
The problem is that pmac_progress will try to print to the framebuffer at a time where it's not mapped (MMU_Init). ------------------------------------8<-----------------------------------
Or, in a diff:
ppc/kernel/pmac_setup.c renamed from ppc/kernel/pmac_setup.c.org +4 -0
@@ -229,6 +229,10 @@struct device_node *cpu;int *fp; +#ifdef CONFIG_BOOTX_TEXT + ppc_md.progress = pmac_progress; +#endif +/* Set loops_per_sec to a half-way reasonable value, for use until calibrate_delay gets called. */ cpu =find_type_devices ("cpu" );
@@ -687,7 +691,7 @@ ppc_ide_md.io_base = _IO_BASE;/* actually too early for this :-(
*/
#endif
#ifdef CONFIG_BOOTX_TEXT
- ppc_md.progress = pmac_progress;
+ ppc_md.progress = NULL;
#endif
if (ppc_md.progress) ppc_md.progress("pmac_init(): exit", 0);
Just unconfiguring BOOTX_TEXT would have done the same trick I guess.
Michael
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/