50u1w4y
50u1w4y

Reputation: 121

mips firmware in mips debian: chroot Illegal instruction

I want to run a firmware in a debian emulation environment.

When I enter chroot command, I get error Illegal instruction.

But I think the architecture is the same, as I will show you as the follow. And I can run the bin/busybox directly, but I can't chroot to the dir with it as the bash.

here is the details:

the running details

The virtual environment for the firmware I created is debian stretch(9.11.0) mipsel.

Will it be because of the sub-architecture? For example, my machine is malta but the firmware actually runs in loongson. Can a program run in loongson run in malta? (Actually I don't know the firmware's environment, what I have is only the ubifs/ files.)

Upvotes: 1

Views: 1047

Answers (1)

50u1w4y
50u1w4y

Reputation: 121

Thank for @markgz's reply, I have solved this problem.

It is because I have an old cpu model(24kc).

You can choose the cpu model when you start the debian system with qemu-system-mipsel. After you choose a newer cpu model such as 74Kc, it works in my situation. Maybe this can help you too.

Upvotes: 1

Related Questions