Orange pi arch linux

Saved searches

Use saved searches to filter your results more quickly

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.

A base image for installing ArchLinuxARM on the OrangePi Zero

nguiard/archlinux-orange-pi-zero

This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?

Sign In Required

Please sign in to use Codespaces.

Launching GitHub Desktop

If nothing happens, download GitHub Desktop and try again.

Launching GitHub Desktop

If nothing happens, download GitHub Desktop and try again.

Launching Xcode

If nothing happens, download Xcode and try again.

Launching Visual Studio Code

Your codespace will open once ready.

There was a problem preparing your codespace, please try again.

Latest commit

Git stats

Files

Failed to load latest commit information.

README.md

Arch Linux on OrangePi Zero

Here is a working SD card image for installing Arch Linux on an OrangePi Zero. It basically follows this excellent build guide but can save you a lot of time if you just want to get an image up an running, especially with getting the ethernet support to work.

The image is located here. (It is an unofficial image, not supported by ArchLinux, use at your own risk). Last build date: 2019-11-17.

You need an SD card of at least 2GB. You can resize the partition to use your whole SD card after installing.

Replace ‘sdX’ with the device corresponding to your SD card.

curl https://dl.ng3.io/opz/ArchLinuxARM-OrangePiZero-latest.img.xz | xzcat | sudo dd of=/dev/sdX bs=1M status=progress 

Download the image, check the checksum, and install the traditional way. SHA256:

3c248c8329391544c8ff958b10d5aaaf5fc9fec35e75ed57af2d1f93fa198bfc ArchLinuxARM-OrangePiZero-latest.img.xz 
$ wget https://dl.ng3.io/opz/ArchLinuxARM-OrangePiZero-latest.img.xz $ sha256sum ArchLinuxARM-OrangePiZero-latest.img.xz 3c248c8329391544c8ff958b10d5aaaf5fc9fec35e75ed57af2d1f93fa198bfc ArchLinuxARM-OrangePiZero-latest.img.xz $ xzcat ArchLinuxARM-OrangePiZero-latest.img.xz | sudo dd of=/dev/sdX bs=1M status=progress 

On Mac, use dd of=/dev/rdiskX bs=1m conv=sync (see why dd is slow on Mac).

Читайте также:  Linux kernel smp preempt

On Windows, use a tool like Etcher.

Resize the partition to use the whole SD card

Once the system is working, use fdisk /dev/mmcblk0 (fdisk) as root to resize the partition. Press d to delete the current partition, then press n to create a new partition, and press Enter 4 times to accept the defaults. fdisk will give you defaults that work and make the partition as big as possible. Then answer N when fdisk asks about removing the existing ext4 signature.

Finally press w to write the changes.

Reboot, and use resize2fs /dev/mmcblk0p1 as root to update the filesystem size. You’re done!

USB on Orange Pi expansion board

It has been reported that when using the «Orange Pi expansion board» (that adds 2 USB ports and other IO), the additional USB ports don’t work out of the box. A fix is proposed which consists in putting a sun8i-h2-plus-orangepi-zero-3usb.dtb in /boot/dtbs . This file is not installed by default, but is included in the default user directory for convenience, to save you troubleshooting time in case you want to use the expansion board. However, it is not part of the base ArchLinuxARM distribution which the current image is upon, and I cannot vouch for its validity. Use at your own risk.

Once your image is installed on the SD card you have booted the Orange Pi Zero, if you’re using ethernet, you can login via ssh:

$ ssh alarm@alarm or if this does not work $ ssh alarm@IP_ADDR 

This is not specific to this image and is the same procedure as for the general ArchLinuxARM. As a reminder, default password is alarm (for user alarm ) and root for superuser.

Feedbacks and comments are welcome.

Источник

maximtrp / Orange Pi PC + Arch Linux ARM.md

This guide is based on multiple guides as well as official instructions for the other boards found on the Internet:

I have gone through all these steps recently and got a working board with my favorite Arch Linux ARM. I hope it will be helpful for someone else.

Replace sdX with the device name for your SD card. Zero the beginning of the SD card:

sudo dd if=/dev/zero of=/dev/sdX bs=1M count=8

Run fdisk to partition the SD card:

At the fdisk prompt, delete old partitions and create a new one:

  1. Type o . This will clear out any partitions on the drive.
  2. Type p to list partitions. There should be no partitions left.
  3. Now type n , then p for primary, 1 for the first partition on the drive, 2048 for the first sector, and then press ENTER to accept the default last sector.
  4. Write the partition table and exit by typing w .
Читайте также:  Install kubectl on linux

Create the ext4 filesystem:

Download and extract the root filesystem:

wget http://os.archlinuxarm.org/os/ArchLinuxARM-armv7-latest.tar.gz sudo bsdtar -xpf ArchLinuxARM-armv7-latest.tar.gz -C /mnt sync

Install uboot-tools . In ArchLinux:

Create boot.txt file in /boot dir.

Paste the following contents into it:

if test -n $; then setenv bootpart $; else setenv bootpart 1; fi part uuid $ $:$ uuid setenv bootargs console=$ root=PARTUUID=$ rw rootwait if load $ $:$ $ /boot/zImage; then if load $ $:$ $ /boot/dtbs/$; then if load $ $:$ $ /boot/initramfs-linux.img; then bootz $ $:$ $; else bootz $ - $; fi; fi; fi 

Now create the boot script boot.scr :

sudo mkimage -A arm -O linux -T script -C none -n "U-Boot boot script" -d boot.cmd boot.scr

Clone U-Boot repo and checkout the latest tag (or the one you need):

git clone https://github.com/u-boot/u-boot cd u-boot git checkout v2023.04 -b tmp

Install the cross compiler for ARM EABI (in Arch Linux):

sudo pacman -S arm-none-eabi-gcc

Compile bootloader (you need to have setuptools Python package to be installed):

export CROSS_COMPILE=arm-none-eabi- export ARCH=arm make distclean make orangepi_pc_defconfig make
sudo dd if=u-boot-sunxi-with-spl.bin of=/dev/sdX bs=1024 seek=8

Insert the micro SD card into Orange Pi PC, connect Ethernet, and apply 5V 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:

su # Type in the password: root (by default) pacman-key --init pacman-key --populate archlinuxarm

Источник

Orange Pi OS(Arch)

Orange Pi OS(Arch) is the officially supported open-source operating system for Orange Pi. It provides Orange Pi OS(Arch) desktop for Orange Pi series development boards, keyboard PCs, and other PCs. It is pre-installed with commonly used boutique software, running fast, secure, and stable, with a beautiful interface and simple operation, making it an easy-to-use and easily expandable desktop operating system.

Features

Orange Pi OS(Arch) is an Arch-based Linux distribution that integrates all the advantages of Arch with rich, all-inclusive software and can easily perform many common Windows tasks by using compatible linux application. It is very easy to install, just open it, select what you want and click «Install». And, get most software completely free of charge.

Читайте также:  Linux check wifi adapter

Orange Pi OS(Arch) has multimedia support and supports multi-core CPUs. it supports command line installation and graphical installation; it is highly compatible with open-source graphics drivers.

Orange Pi OS(Arch) is user-friendly and suitable for both novice and experienced Linux users. For novice users, the graphical installation interface is quick and easy; for experienced Linux users, Orange Pi OS(Arch) provides advanced features to meet the individual needs of different users.

Orange Pi OS(Arch) focuses on privacy and security, and does not send any data to anyone, leaving it entirely up to the user to decide what to share. When there are updates to the system (including software), the system only indicates that an update is available, but does not automatically download, install and reboot in the background automatically. Also, Orange Pi OS(Arch) comes with default settings and, as with most Linux distributions, users can choose to configure, change, delete or replace any options they need.

Orange Pi OS(Arch) is an independently developed operating system based on Arch, which is known for its fast, powerful and lightweight distributions, giving users access to the latest software. For the latest software, Orange Pi OS(Arch) is tested and only released to users who want a stable system if there are no more problems. Also during testing, priority is given to security-related packages, even skipping tests to address the issue in order to provide security fixes as soon as possible.

Orange Pi OS(Arch) has sophisticated hardware recognition software. When selecting the desired language, you only need to start the regional settings, and the system also provides a special tool that automatically installs language packs for various programs. It is easy to manage languages and Locales in Orange Pi OS(Arch).

Orange Pi OS(Arch) can meet the needs of a wide variety of people. From home users to students and teachers, from programmers and developers to professionals, from art lovers and music lovers to multimedia professionals, etc., all can use the Orange Pi OS(Arch) for office, entertainment and study.

The UI design is comfortable, simple and beautiful. From the icons to the start menu to the desktop theme, every detail is carefully crafted to optimize the interface as a whole. At the same time, it conforms to users’ habits and is easy and convenient to operate.

For more information about Orange Pi OS(Arch), please click here : Orange Pi OS(Arch)

Источник

Оцените статью
Adblock
detector