Skip to content

EasyPi/alarmpi-image

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AlarmPi-Image

Build ArchLinuxARM Image for RaspberryPi

Image Info
ArchLinuxARM-rpi-latest.img.gz raspberry-pi
ArchLinuxARM-rpi-2-latest.img.gz raspberry-pi-2
ArchLinuxARM-rpi-3-latest.img.gz raspberry-pi-3

How It Works

Flash Image

  • Download image file
  • Inject SD-card to PC
  • Unmount filesystem
  • Run gunzip|dd command
  • Eject SD-card from PC
# For Pi0 and Pi1
gunzip -c ArchLinuxARM-rpi-latest.img.gz | dd of=/dev/mmcblk0 bs=4M

# For Pi2 and Pi3
gunzip -c ArchLinuxARM-rpi-2-latest.img.gz | dd of=/dev/mmcblk0 bs=4M

Expand Filesystem

  • Login via ssh (alarm:alarm)
  • Swith to root (root:root)
  • Recreate patition #2
  • Reboot system
  • Resize file system (/dev/mmcblk0p2)
fdisk /dev/mmcblk0
reboot
resize2fs /dev/mmcblk0p2

Additional Configurations

  • ssh
  • wifi
  • hostname
  • locale
  • timezone