Install Debian arm64-bit operating system on Raspberry Pi: RPi-arm64

888u

Last update at :2024-02-06,Edit by888u

RPi-arm64

  • Build a Debian ARM64-based operating system for Raspberry Pi 3.
  • Project address: https: //github.com/UMRnInside/RPi-arm64
  • Currently supported:
    • Stage 1: Download, prepare, and compile the kernel
    • Stage 2: Use debootstrap to build the root file system
    • Stage 3: Install bootcode and VideoCore libs
    • Stage 4: Offline operations (such as adding users)

Pre-built version download address: Baidu Cloud


Manual construction

  • Please execute as Root user.
# Used to build images ./utils/dist_partimage.sh LOOPDEV=$(losetup -f) losetup $LOOPDEV ./dist/RPi-arm64-dist.img partprobe $LOOPDEV mkfs.vfat -n BOOT ${LOOPDEV}p1 mkfs.btrfs -L ROOTFS ${LOOPDEV}p2 mount ${LOOPDEV}p1 ./dist/boot mount ${LOOPDEV}p2 ./dist/rootfs # Stage 1 ./stage1/prepare_kernel.sh ./stage1/build_kernel.sh # Stage 2 # Optional: Set MIRROR to the mirror site you use #MIRROR="http://mirrors.ustc.edu.cn/debian/" ./stage2/root_debootstrap.sh ./stage2/install_kernel.sh ./stage2/enable_openssh.sh # firmware-brcm80211 is a non-free package # firmware-brcm80211 will be obtained from archive.raspberrypi.org # Set FWURL to change the source of this package #FWURL=http://example.org/firmware-brcm80211_all.deb ./stage2/enable_nonfree.sh ./stage2/install_firmware_brcm.sh # Optional: support armhf/armel #./stage2/enable_armhf.sh #./stage2/enable_armel.sh # Stage 3 ./stage3/bootcode_install.sh ./stage3/kernel_install.sh ./stage3/create_bootconf.sh ./stage3/create_fstab.sh # Stage 4 # Set root password and add new user ./stage4/passwd_root.sh ./stage4/adduser.sh pi # If you need hotspot ./stage4/setup_hostapd.sh # If you need Ethernet access ./stage4/interface_dhcp.sh # If you are building an image, you may need to deploy the file system auto-extender ./stage4/deploy_init_resizer.sh

The dawn of automation

  • ./build.sh
  • Have a cup of tea, but a cup of coffee will do too
  • However, if you want to change some settings manually...

  • cp rpi3_defconfig config
  • Edit config as needed
  • ./build.sh
  • Have a cup of tea/coffee/coke...
  • ご书文は うさぎ ですか?

    Would you like some rabbit today?

    Using Docker

  • cp rpi3_defconfig config
  • Edit config as needed
  • ./build_docker.sh
  • Parameters

    Read the README.md in each stage, or carefully read the default configuration: rpi3_defconfig

    Original text

    https://raspberrypi.club/d/5-rpi-arm64-debian-arm64

    Recommended site search: How to bind a domain name to a server, vps US server, Henan virtual host, European server, Hong Kong vps host rental Tencent cloud server, PHP space rental, free US host Wanwang space management, virtual host ranking,

    p>

    Install Debian arm64-bit operating system on Raspberry Pi: RPi-arm64

    All copyrights belong to 888u unless special state
    取消
    微信二维码
    微信二维码
    支付宝二维码