by yossarian » Fri Jun 09, 2023 1:09 am
Micro SD and eMMC Creation
Replace sdX in the following instructions with the device name for the SD card as it appears on your computer. Use the provided micro SD to eMMC adapter card to install to eMMC.
Zero the beginning of the SD card or eMMC module:
$this->bbcode_second_pass_code('', 'dd if=/dev/zero of=/dev/sdX bs=1M count=8')
Partition the SD card with parted:
$this->bbcode_second_pass_code('', 'parted -s /dev/sdX mklabel msdos mkpart primary fat32 1MiB 256MiB set 1 boot on mkpart primary ext4 256MiB 100%')
Create the FAT and ext4 filesystems:
$this->bbcode_second_pass_code('', 'mkfs.vfat -n BOOT /dev/sdX1
mkfs.ext4 -L ROOT /dev/sdX2')
Mount the filesystems:
$this->bbcode_second_pass_code('', 'mkdir -p root
mount /dev/sdX2 root
mkdir -p root/boot
mount /dev/sdX1 root/boot')
Download and extract the root filesystem (as root, not via sudo):
$this->bbcode_second_pass_code('', 'wget https://storage.googleapis.com/archlinuxarm/ArchLinuxARM-odroid-n2plus-latest.tar.gz
bsdtar -xpf ArchLinuxARM-odroid-n2plus-latest.tar.gz -C root')
Write the bootloader:
$this->bbcode_second_pass_code('', 'dd if=root/boot/u-boot.bin of=/dev/sdX conv=fsync,notrunc bs=512 seek=1')
(Optional) Set the screen resolution for your monitor:
Open the file root/boot/boot.ini with a text editor.
Copy the desired resolution configuration into the hdmimode variable.
Save and close the file.
Unmount the partitions:
$this->bbcode_second_pass_code('', 'umount -R root')
Move the boot selector switch to MMC.
Insert the micro SD card or eMMC module into the device, connect ethernet, and apply 12V power.
Use the serial console or SSH to the IP address given to the board by your router.
Login as the default user alarm with the password alarm.
The default root password is root.
Initialize the pacman keyring and populate the Arch Linux ARM package signing keys:
$this->bbcode_second_pass_code('', 'pacman-key --init
pacman-key --populate archlinuxarm')