inindev / odroid-m1

debian arm64 linux for the odroid m1
GNU General Public License v3.0
17 stars 2 forks source link
arm arm64 debian device-tree linux m1 nvme odroid odroid-m1 rk3568

odroid-m1

Stock Debian ARM64 Linux for the ODROID-M1

This stock Debian ARM64 Linux image is built directly from official packages using the Debian Debootstrap utility, see: https://github.com/inindev/odroid-m1/blob/main/debian/make_debian_img.sh#L119

Being an unmodified Debian build, patches are directly available from the Debian repos using the stock apt package manager, see: https://github.com/inindev/odroid-m1/blob/main/debian/make_debian_img.sh#L348-L358

If you want to run true up-stream Debian Linux on your ARM64 device, this is the way to do it.



debian bookworm setup


1. download image

wget https://github.com/inindev/odroid-m1/releases/download/v12.0.2/odroid-m1_bookworm-1202.img.xz


2. determine the location of the target micro sd card


3. in the case above, substitute 'a' for 'X' in the command below (for /dev/sda)

sudo sh -c 'xzcat odroid-m1_bookworm-1202.img.xz > /dev/sdX && sync'

when the micro sd has finished imaging, eject and use it to boot the odroid m1 to finish setup


4. login account

user: debian
pass: debian


5. take updates

sudo apt update
sudo apt upgrade


6. create account & login as new user

sudo adduser youruserid
echo '<youruserid> ALL=(ALL) NOPASSWD: ALL' | sudo tee /etc/sudoers.d/<youruserid>
sudo chmod 440 /etc/sudoers.d/<youruserid>


7. lockout and/or delete debian account

sudo passwd -l debian
sudo chsh -s /usr/sbin/nologin debian
sudo deluser --remove-home debian
sudo rm /etc/sudoers.d/debian


8. change hostname (optional)

sudo nano /etc/hostname
sudo nano /etc/hosts



installing on m.2 ssd /dev/nvme0n1 media


1. while booted from mmc, download and copy the image file on to the ssd media

wget https://github.com/inindev/odroid-m1/releases/download/v12.0.2/odroid-m1_bookworm-1202.img.xz
sudo sh -c 'xzcat odroid-m1_bookworm-1202.img.xz > /dev/nvme0n1 && sync'


2. remove mmc media and reboot



building debian bookworm arm64 for the odroid m1 from scratch


The build script builds native arm64 binaries and thus needs to be run from an arm64 device such as a raspberry pi4 running a 64 bit arm linux. The initial build of this project used a debian arm64 raspberry pi4, but now uses an odroid m1 running stock debian bookworm arm64.


1. clone the repo

git clone https://github.com/inindev/odroid-m1.git
cd odroid-m1


2. run the debian build script

cd debian
sudo sh make_debian_img.sh


3. the output if the build completes successfully

mmc_2g.img.xz