Lima Ubuntu VM setup on Mac

Homebrew https://gitee.com/cunkai/HomebrewCN/blob/master/error.md Installation /bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)" Uninstallation /bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/HomebrewUninstall.sh)" Lima Lima launches Linux virtual machines with automatic file sharing and port forwarding (similar to WSL2). #…

How to run SPEC CPU2017 and disable checksum

1. Environment Preparation ​Install Dependencies: For Ubuntu/Debian (ARM cross-compilation example): sudo apt-get install gcc-aarch64-linux-gnu g++-aarch64-linux-gnu gfortran-aarch64-linux-gnu Ensure ulimit is set to unlimited: ulimit -s unlimited 2. Install SPEC CPU2017 ​Mount the ISO…

Enabling PAC and BTI on AArch64 for Linux

https://community.arm.com/arm-community-blogs/b/architectures-and-processors-blog/posts/enabling-pac-and-bti-on-aarch64 https://community.arm.com/arm-community-blogs/b/architectures-and-processors-blog/posts/p2-enabling-pac-and-bti-on-aarch64 https://community.arm.com/arm-community-blogs/b/architectures-and-processors-blog/posts/p3-enabling-pac-and-bti-on-aarch64 Source code for the examples can be found at https://gitlab.arm.com/pac-and-bti-blog/blog-example and the tag will be referenced with the "Tag" keyword before source examples. Certain versions of Arm…

Running arm64 docker container on x86

Make sure to install the packages mentioned in Multi-platform builds, which then will allows docker to leverage qemu, which then emulates the target cpu architecture. binfmt Use the tonistiigi/binfmt image to install QEMU…

A Quick and Easy Guide to tmux

https://hamvocke.com/blog/a-quick-and-easy-guide-to-tmux I love working with the command line. I think there’s hardly any more productive and versatile tool for a software developer than the terminal. The additional hacker/wizard/neckbeard kind of…

Everything I know about GNU toolchain

https://maskray.me/blog/2021-01-24-gnu-toolchain#:~:text=Main%20tools:%20as%20(%20gas/,make%20%2DC%20out/debug%20all As mainly an LLVM person, I occasionally contribute to GNU toolchain projects. This is sometimes for fun, sometimes for investigating why an (usually ancient) feature works in a particular…

How to compile coreutils / binutils for aarch64 in x64

Dockcross git clone https://github.com/dockcross/dockcross.git cd dockcross docker run --rm dockcross/linux-arm64> ./dockcross-linux-arm64 chmod +x ./dockcross-linux-arm64 mv ./dockcross-linux-arm64 ~/bin/ Coreutils / Binutils //Go to the repository diretory dockcross-linux-arm64 bash //In the docker…

How to launch ARM aarch64 VM with QEMU from scratch

https://futurewei-cloud.github.io/ARM-Datacenter/qemu/how-to-launch-aarch64-vm https://ww2.coastal.edu/mmurphy2/oer/qemu/aarch64 The below instructions will allow for bringing up an ARM VM from scratch. To launch an aarch64 VM we first need to install a few dependencies, including QEMU…