You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
% vi Squint/mk/arm.mk # asssumes knowledge of vi editor
Modify the blank ARM_EXEC to this:
ARM_EXEC = /usr/bin/taskset -a -c 0
save the file
% export LD_LIBRARY_PATH=/usr/lib/arm-linux-gnueabihf
% make check; make clean; make check # first 'make check' has container related issues
(9) To run any code produced by Squint, use the RUN command defined by this alias:
% alias run="/usr/bin/taskset -a -c 0"
% run ELF/bezier-opt
(10) to get out of this container environment, type "exit" three times
(11) to get back into this environement after the first time, do this:
Press Ctrl-Alt-t
% vmc start termina
% lxc exec A32 su - bob
For some reason, if you don't use taskset to run all your code, the ARM OS container is very flaky.
Even when running with the taskset command, it will still fail from time to time.
This is a bug in the container that I don't know how to fix.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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
% vi Squint/mk/arm.mk # asssumes knowledge of vi editor
Modify the blank ARM_EXEC to this:
ARM_EXEC = /usr/bin/taskset -a -c 0
save the file
% export LD_LIBRARY_PATH=/usr/lib/arm-linux-gnueabihf
% make check; make clean; make check # first 'make check' has container related issues
(9) To run any code produced by Squint, use the RUN command defined by this alias:
% alias run="/usr/bin/taskset -a -c 0"
% run ELF/bezier-opt
(10) to get out of this container environment, type "exit" three times
(11) to get back into this environement after the first time, do this:
Press Ctrl-Alt-t
% vmc start termina
% lxc exec A32 su - bob
For some reason, if you don't use taskset to run all your code, the ARM OS container is very flaky.
Even when running with the taskset command, it will still fail from time to time.
This is a bug in the container that I don't know how to fix.
Beta Was this translation helpful? Give feedback.
All reactions