Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Discussion options

Important: after doing the installation below, make sure you log all
the way out of the container at the end of each session.

Here's what to do to install an AARCH32 OS container on
a Chromebook with an ARM processor:

(1) Go to "About CromeOS" in your settings and update ChromeOS
(2) Enable Linux on your Chromebook
Go to Settings->Advanced->Developers and enable Linux.
I recommend at least 4 GB for the Linux partition.
(3) Open a Linux terminal window.
The terminal program will be in a new "Linux apps" application
after installing Linux.
(4) Update your Linux to the latest version with these terminal commands:
% sudo apt update
% sudo apt full-upgrade
(5) Close the Linux terminal "all the way".
Make sure you are on your Chromebook homescreen with no apps running.
(6) Press Ctrl-Alt-t buttons simultaneously to open the Crostini shell, called "crosh"
(7) At the crosh command prompt type the following to set up the development environment:
% vmc start termina
% lxc launch images:debian/10/armhf A32
% lxc exec A32 bash
% sudo apt install build-essential
% sudo apt install git
% sudo apt install gdb
... now add a user named <your_name>...
% adduser bob
% exit
(8) log into the shell as a normal user, 'bob' as above, and clone Squint
% lxc exec A32 su - bob
% git clone https://github.com/HPCguy/Squint.git
% make clean; make; make check; make bench; make show_asm
(9) How to compile and run
% ./mc-so -o foo foo.c # compile your executable with optimizing compiler
% ./foo
% ./mc -o foo foo.c # compile with non-optimizing compiler
% ./foo
(10) to get out of this container environment, type "exit" three times
(11) to get back into this environment after the first time, do this:
Press Ctrl-Alt-t
% vmc start termina
% lxc exec A32 su - bob

You must be logged in to vote

Replies: 0 comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant
Morty Proxy This is a proxified and sanitized view of the page, visit original site.