Last update at :2024-03-04,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
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 | # Used to build images./utils/dist_partimage.sh LOOPDEV=$(losetup -f)losetup $LOOPDEV ./dist/RPi-arm64-dist.imgpartprobe $LOOPDEVmkfs .vfat -n BOOT ${LOOPDEV}p1mkfs.btrfs -L ROOTFS ${LOOPDEV}p2 mount ${LOOPDEV}p1 ./dist/bootmount ${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
However, if you want to change some settings manually...
ご书文は うさぎ ですか?
Would you like some rabbit today?
Using Docker
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 buy virtual host, domain name space registration, Hong Kong server rental, enterprise virtual host, US virtual host purchase, US independent host, Hong Kong server, free space, proxy IP address, public network IP,
发表评论