Reputation: 121
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 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
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