A while back I wrote a program that checks if the machine I’m running the program on is little or big endian. In order to check that the program recognizes a big endian machine, I needed to setup such a machine, and run my program on it. This is how:
-
Go to https://people.debian.org/~aurel32/qemu/mips/, download debian_squeeze_mips or debian_whezzy_mips , and vmlinux-3.2.0.4-5kc-malta to your machine.
- In order to copy your files to the big endian machine:
sudo mount -o loop /home/<your_user>/floppy /mnt/tmpThen copy your files to
/mnt/tmp. - In order to start the machine:
qemu-system-mips64 -M malta -kernel vmlinux-2.6.32-5-5kc-malta -hda debian_squeeze_mips_standard.qcow2 -append "root=/dev/sda1 console=tty0" -drive file=/home/<your_user>/floppy,if=floppy,format=raw,index=0or (depends if you downloded squeeze or wheezy):
qemu-system-mips64 -M malta -kernel vmlinux-3.2.0-4-5kc-malta -hda debian_wheezy_mips_standard.qcow2 -append "root=/dev/sda1 console=tty0" -drive file=/home/<your_user>/floppy,if=floppy,format=raw,index=0The password of root is root.
- Mount the floppy:
modprobe floppy mount -t ext2 /dev/fd0 /mnt/floppyThen just
cdto/mnt/floppy, transfer your files from there to the machine and use them.