• Illegal instrunction while running debootstrap

    From Michael Krylov@21:1/5 to All on Wed Apr 25 23:30:01 2018
    Hello,

    I was trying to debootstrap Debian stretch on a MIPS machine, and
    apparently it fails with "Illegal instruction" error.

    Would you please tell me what is missing in my proceessor? It's a
    Mediatek MT7628ANN SoC, here goes cat /proc/cpuinfo output:

    root@OpenWrt:/mnt/sda2# cat /proc/cpuinfo
    system type : MediaTek MT7628AN ver:1 eco:2
    machine : TP-Link TL-MR3420 v5
    processor : 0
    cpu model : MIPS 24KEc V5.5
    BogoMIPS : 385.84
    wait instruction : yes
    microsecond timers : yes
    tlb_entries : 32
    extra interrupt vector : yes
    hardware watchpoint : yes, count: 4, address/irw mask: [0x0ffc, 0x0ffc, 0x0ffb, 0x0ffb]
    isa : mips1 mips2 mips32r1 mips32r2
    ASEs implemented : mips16 dsp
    shadow register sets : 1
    kscratch registers : 0
    package : 0
    core : 0
    VCED exceptions : not available
    VCEI exceptions : not available


    I was trying both mips and mipsel release, but it seems like mipsel is
    the correct one (at least ELF architecture ID is the same). Is it
    possible to run any Debian release on this machine?

    Thanks in advance!

    -----BEGIN PGP SIGNATURE-----

    iQEzBAABCAAdFiEEq9zNqT9shXHTn/gRzNfc0dbmrQAFAlrg8w0ACgkQzNfc0dbm rQA75wf7BM2+su4mnxqDUEiEMykllFZaMOx9LxOCzVdbE7o9D3quHJt1JhoJqPEj PxwAPc8p7e5xyX5lL5cIkCRZuWcBoYCESlwDYI+hHU3d2KUF/C4MkGhZALYdLNsE VEiZ1thZt1PyJ9U6LHBcA4MBpqCPTT99e5TZJqv1GqWTj17YAlFN4DiCOJvP6+iZ vJ9o/bKxSrKYeJoi52xJudv1uvw80n+crXx5FGywHt+ra3DsxZSO/XHsimQ2fUS2 KK2y2qnikJcfdgWxQHUmG1gS8JONHRcw/yRPTT7KxLuE/hd07Lsp9bxdN8tEAf7H 9MxqsW74QLua36ctuHFMttrrz/DldA==
    =k0jC
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From James Cowgill@21:1/5 to Michael Krylov on Thu Apr 26 00:00:01 2018
    Hi,

    On 25/04/18 22:28, Michael Krylov wrote:
    Hello,

    I was trying to debootstrap Debian stretch on a MIPS machine, and
    apparently it fails with "Illegal instruction" error.

    Would you please tell me what is missing in my proceessor? It's a
    Mediatek MT7628ANN SoC, here goes cat /proc/cpuinfo output:

    root@OpenWrt:/mnt/sda2# cat /proc/cpuinfo
    system type : MediaTek MT7628AN ver:1 eco:2
    machine : TP-Link TL-MR3420 v5
    processor : 0
    cpu model : MIPS 24KEc V5.5

    Does your kernel have FPU emulation enabled? 24KEc does not have an FPU
    so the kernel will need to emulate it. Usually the stock OpenWRT kernels
    are compiled without it and will not run Debian.

    I was trying both mips and mipsel release, but it seems like mipsel is
    the correct one (at least ELF architecture ID is the same). Is it
    possible to run any Debian release on this machine?

    mipsel should work for you.

    James

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Michael Krylov@21:1/5 to James Cowgill on Thu Apr 26 00:20:02 2018
    Indeed it doesn't have CONFIG_MIPS_FPU_EMULATOR enabled in
    kernel config.

    Thanks!

    On Wed, Apr 25, 2018 at 10:51:18PM +0100, James Cowgill wrote:
    Hi,

    On 25/04/18 22:28, Michael Krylov wrote:
    Hello,

    I was trying to debootstrap Debian stretch on a MIPS machine, and apparently it fails with "Illegal instruction" error.

    Would you please tell me what is missing in my proceessor? It's a
    Mediatek MT7628ANN SoC, here goes cat /proc/cpuinfo output:

    root@OpenWrt:/mnt/sda2# cat /proc/cpuinfo
    system type : MediaTek MT7628AN ver:1 eco:2
    machine : TP-Link TL-MR3420 v5
    processor : 0
    cpu model : MIPS 24KEc V5.5

    Does your kernel have FPU emulation enabled? 24KEc does not have an FPU
    so the kernel will need to emulate it. Usually the stock OpenWRT kernels
    are compiled without it and will not run Debian.

    I was trying both mips and mipsel release, but it seems like mipsel is
    the correct one (at least ELF architecture ID is the same). Is it
    possible to run any Debian release on this machine?

    mipsel should work for you.

    James

    -----BEGIN PGP SIGNATURE-----

    iQEzBAABCAAdFiEEq9zNqT9shXHTn/gRzNfc0dbmrQAFAlrg/h4ACgkQzNfc0dbm rQDmnwf+KYHWjcYJVFlg/RPlD1BHObR2yl2Ie9cZGdBGCtTDIGGgjPlMGTCDUE6N ysjh9fVYvj+BfJasYDqgPHUjHi3MvXDuI163oYGL6qokZ3eL3JSo27L5oQxKSwjL 2yL2qeWirl/ms0PPxZ79EoPByelQO228dUx3bVYO35jI2Kh7LnktvMgfq5dD2q60 ByTvY9KDFM5NxpSRvGQ8lwL4GPWd55EGWOHkN8e8dIoZOCjkET2OuZX8FaUfD30Z or4X1MrpU80KQ/FlCKBkLm8QgQIhz14+v51fYDziOyX14C+ii1pzGubOEUWpuwhA OOZMi165sakh5ImI4bmgWqoQR1oSwA==
    =owjY
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)