raspberry-pi-os icon indicating copy to clipboard operation
raspberry-pi-os copied to clipboard

Big Endian?

Open allenbarnett5 opened this issue 5 years ago • 1 comments
trafficstars

I was wondering if it was possible to run the Pi in big-endian mode? I have some software I maintain and occasionally get patches for supporting it on big-endian machines. I don't have a good way to test such changes (other than a QEMU MIPS VM which is very, very slow). The ARM can run either way. But can the Pi itself? RPi OS looks like it might be simple enough to try a few experiments with, anyway.

You can build Linux for ARM in big endian mode, but it seems like in the latest kernel (indeed since 4.14 or so), it really expects the board to initialize the processor in to big endian mode. So, I suspect this isn't going to work.

What do you think?

Thanks, Allen

allenbarnett5 avatar Apr 25 '20 21:04 allenbarnett5

The CPU execution model discussed here may be helpful to you.

stefanJi avatar Jul 02 '20 15:07 stefanJi