On Fri, Nov 18, 2016 at 10:06:53PM +0100, Matthieu Herrb wrote:
> the loongson 3A stuff seem to have broken booting my lemote yeeloong.
> The boot loader or the early kernel displays:
> 
>   "Initial setup done, switching console."
> 
> and then the machine hangs.
> 
> Do I need a new boot loader?

The message is printed by the kernel, and a new boot loader should not
be needed. Could you test the following patch?

Index: arch/mips64/mips64/pmap.c
===================================================================
RCS file: src/sys/arch/mips64/mips64/pmap.c,v
retrieving revision 1.94
diff -u -p -r1.94 pmap.c
--- arch/mips64/mips64/pmap.c   19 Oct 2016 08:28:20 -0000      1.94
+++ arch/mips64/mips64/pmap.c   19 Nov 2016 09:51:53 -0000
@@ -386,7 +386,7 @@ pmap_bootstrap(void)
                pmap_asid_info[i].pma_asid = MIN_USER_ASID + 1;
        }
 
-#ifdef CPU_MIPS64R2
+#if defined(CPU_MIPS64R2) && !defined(CPU_LOONGSON2)
        if (cp0_get_pagegrain() & PGRAIN_XIE)
                pg_xi = PG_XI;
 #endif

Reply via email to