Git Product home page Git Product logo

archlinux_r2s's Introduction

ArchLinux on NanoPi R2S

Install to a micro SD card

  1. Zero the beginning of the SD card:

    dd if=/dev/zero of=/dev/sdx bs=1M count=16
  2. Start fdisk to partition the micro SD card:

    fdisk /dev/sdx
    1. type o.
    2. type p.
    3. type n, then p for primary, 1 for first partition on the drive, 32768 for the first sector.
    4. type w.
  3. Create the ext4 filesystem:

    mkfs.ext4 /dev/sdx1
  4. Mount the filesystem:

    mkdir root
    mount /dev/sdx1 root
  5. Download and extract the root filesystem (as root, not via sudo):

    wget http://os.archlinuxarm.org/os/ArchLinuxARM-aarch64-latest.tar.gz
    bsdtar -xpf ArchLinuxARM-aarch64-latest.tar.gz -C root
  6. extract r2s kernel images.

    bsdtar -xpf kernel-r2s.tar.xz -C root
  7. Unmount the partition:

    umount root
  8. Write bootloader.

    Prebuilt binaries are in bootloader directory.

    dd if=idbloader.bin of=/dev/sdx seek=64 conv=notrunc
    dd if=uboot.img of=/dev/sdx seek=16384 conv=notrunc
    dd if=trust.bin of=/dev/sdx seek=24576 conv=notrunc

    These files are built from armbian sources.

  9. 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 fault root password is root.

    Make sshd_config to PermitRootLogin yes for root login from ssh.

  10. Remove useless kernel.

    Don't pacman -Syu before replace linux-aarch64.

    pacman -R linux-aarch64

    Replace kernel to packaged version. Prebuilt packages from https://github.com/sakapoko/linux-r2s/releases

    pacman -U linux-r2s-5.11.1.arch1-2-aarch64.pkg.tar.xz --overwrite '/usr/lib/modules/*','/boot/*'
    pacman -U linux-r2s-5.11.1.arch1-2-aarch64.pkg.tar.xz
  11. Edit extlinux.conf

    Edit /boot/extlinux/extlinux.conf Change fdt and root partition if you need.

    R2S or Neo3

    label linux
       kernel /boot/Image
       initrd /boot/initramfs-linux.img
       fdt /boot/dtbs/rockchip/rk3328-nanopi-r2-rev02.dtb
       append console=ttyS2,1500000 earlycon=uart8250,mmio32,0xff130000 rw root=/dev/mmcblk0p1 rootwait rootfstype=ext4 coherent_pool=1M ethaddr=${ethaddr} serial=${serial#}

    R4S

    label linux
        kernel /boot/Image
        initrd /boot/initramfs-linux.img
       fdt /boot/dtbs/rockchip/rk3399-nanopi-r4s.dtb
       append console=ttyS2,1500000 earlycon=uart8250,mmio32,0xff1a0000 rw root=/dev/mmcblk1p1 rootwait rootfstype=ext4 coherent_pool=1M

    MAC Address cannot be specified from uboot on R4S.

  12. Initialize the pacman keyring and populate the Arch Linux ARM package signing keys:

    pacman-key --init
    pacman-key --populate archlinuxarm
  13. system up to date

    pacman -Syu
  14. Configuration OS settings.

    localegen, localtime and so on.

Reference

archlinux_r2s's People

Stargazers

cfp avatar

Watchers

Shuji Sakagami avatar

archlinux_r2s's Issues

nanopi r2s sshd problem

Hi!
I tried your build for friendlyelec nanopi r2s. Everything goes fine until step #9.
Device received IP address from DHCP. I successfully pinged it, but no ssh.
I tried nmap. Device is up, but 0 ports opened.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.