Index of /pkgsrc/ec2-aarch64/

NameLast ModifiedSizeType
../ -  Directory
All/2021-Nov-12 20:21:16-  Directory
QEMU_EFI.fd.xz2021-Nov-12 10:45:260.9Mapplication/x-xz
README.txt2021-Nov-12 15:16:342.8Ktext/plain; charset=utf-8
ovmf_vars.fd.xz2021-Nov-12 10:45:1211.1Kapplication/x-xz
pkg-bootstrap-ec2.tar.gz2021-Nov-12 10:00:2030.5Mapplication/x-gtar-compressed
pkg-bootstrap-ec2.tar.md52021-Nov-12 10:36:060.1Kapplication/octet-stream
pkg-bootstrap-ec2.tar.sha2562021-Nov-12 10:35:490.1Kapplication/octet-stream
*********************************************

       __|  __|_  )
       _|  (     /   Amazon Linux 2 AMI
      ___|\___|___|

*********************************************

pkgsrc-2021Q3 Binary packages compiled on 
M1 Mac under qemu-system-aarch64 


pkgsrc packages were built on a vanilla aarch64 qcow2 image as it came from Amazon 

https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/amazon-linux-2-virtual-machine.html 
https://cdn.amazonlinux.com/os-images/2.0.20211005.0/kvm-arm64/

I have installed additionally the "Development Tools"  (you will need the gcc-lib libraries) 
There all come from the native EC2 yum repo 

yum groupinstall "Development Tools"
yum install libgudev1 libgudev-devel 

PKGSRC HOWTO use
----------------

- Download the pkg-bootstrap-ec2.tar.gz and extract in usr 

sha256 checksum of pkg-bootstrap-ec2.tar.gz c7b391323b6ebb89380dc957856cee64da64a071e37d141e47d6e37aca53a064  
md5 checkum of pkg-bootstrap-ec2.tar.gz     8f3794a3bf7e7d213e8657bd06ea2698  

cd /usr
wget http://45.76.81.249/pkgsrc/ec2-aarch64/pkg-bootstrap-ec2.tar.gz 
tar -zxvf pkg-bootstrap-ec2.tar.gz 

- If you wish to install a package just define the PKG_PATH variable as follows
  (if we have bash shell) 
  (as root) 

# export PKG_PATH=http://45.76.81.249/pkgsrc/ec2-aarch64/All 
# /usr/pkg/sbin/pkg_add firefox91  
# /usr/pkg/sbin/pkg_add ioquake3   

- Or you can use the wonderful pkgin (bundled in the bootsrap) 
  Add the following line to /usr/pkg/etc/pkgin/repositories.conf 

http://45.76.81.249/pkgsrc/ec2-aarch64/All

- Then update the cache 

/usr/pkg/bin/pkgin avail 

- You can install a package like so 

/usr/pkg/bin/pkgin search quake 

/usr/pkg/bin/pkgin install xxxxxxxxx 

..... etc 

If you are comfortable with pkgsrc you can update your $PATH 

/usr/pkg/bin  and /usr/pkg/sbin  



QEMU experimental on-premise run  
--------------------------------

I run the EC2 aarch64 instance on qemu-system-aarch64 with -hvf acceleration on the M1 Mac
For this you obviously need to compile qemu on the M1 mac with the hvf support 

Here is the configuration loader I use

qemu-system-aarch64 \
-M virt,highmem=off \
-accel hvf \
-cpu cortex-a72  \
-m 4G \
-device ramfb \
-device qemu-xhci \
-device usb-kbd \
-device usb-mouse \
-device usb-tablet \
-device intel-hda -device hda-duplex \
-device virtio-blk,drive=system \
-drive if=none,id=system,media=cdrom,file=seed.iso \
-device usb-storage,drive=drive \
-drive if=none,id=drive,format=qcow2,file=disk.img \
-drive file=ovmf_vars.fd,if=pflash,index=1 \
-net nic,model=virtio \
-net user,hostfwd=tcp::2222-:22,hostfwd=tcp::3333-:3333 \
-device virtio-rng-pci \
-bios QEMU_EFI.fd


If you need the QEMU_EFI.fd and ovmf_vars.fd you can download them from me

wget http://45.76.81.249/pkgsrc/ec2-aarch64/ovmf_vars.fd.xz
wget http://45.76.81.249/pkgsrc/ec2-aarch64/QEMU_EFI.fd.xz


Webserver 1.0