准备材料:
项目路径:
GitHub
GitCode国内访问速度很快的"GitHub"但release的安装包什么的无法下载
文件 Armbian_25.02.0_amlogic_s905l3a_noble_6.12.13_server_2025.02.
里面的 25.02.0
是Armbian版本, s905l3a
是芯片版本, 6.12.13
是linux的内核版本, 根据自己实际的芯片下载
下载安装BalenaEtcher镜像烧写工具
注: 镜像下载完可以不用解压直接使用
-> U盘 -> 烧录reboot update
)Choose default system command shell:
1) bash
2) zsh
1 # 选择bash
Shell: BASH
Creating a new user account. Press <Ctrl-C> to abort
Please provide a username (eg. your first name): balabala # 设置用户balabala账号
Create user (balabala) password: ****** # 设置用户balabala密码
Repeat user (balabala) password: ****** # 重复balabala密码
...
Set user language based on your location? [Y/n]Y # 设置用户语言
At your location, more localer are possible:
1) bo_CN 4) ug_CN@latin
2) ug_CN 5) zh_CN.UTF-8
3) ug_CN@latin 6) Skip generating locales
Please enter your choice:5 # 选择中文语言
Generating locales: zh_CN.UTF-8
_ _ _ ___ ___
/_ _ _ _ __ | |__(_)__ _ _ _ / _ / __|
/ _ | '_| ' | '_ / _` | ' | (_) __
/_/ __| |_|_|_|_.__/___,_|_||_| ___/|___/
v25.02.0 for Aml.S905l3a running Armbian Linux 6.12.13-ophub
Packages: Ubuntu stable (noble)
IP addresses: (LAN) IPv4: 192.168.3.154 (WAN) 183.239.***.***
Performance:
Load: 44% Up time: 7 min
Memory usage: 9% of 1.89G
CPU temp: 40°C Usage of /: 4% of 57G
storage/: 29% of 510M
RX today: 2 KiB
Commands:
Configuration : armbian-config
Monitoring : htop
root@armbian:~#
armbian-apt
root@armbian:~# armbian-apt
[ STEPS ] Welcome to the Armbian source change script.
[ INFO ] Please select a [ noble ] mirror site.
┌──────┬───────────────────┬────────────────────────────────┐
│ ID │ Country/Region │ Mirror Site │
├──────┼───────────────────┼────────────────────────────────┤
│ 0 │ - │ Restore default source │
│ 1 │ China │ mirrors.tuna.tsinghua.edu │
│ 2 │ China │ mirrors.bfsu.edu │
│ 3 │ China │ mirrors.aliyun │
│ 4 │ Hongkong, China │ hk │
...
│ 20 │ Japan │ jp │
└──────┴───────────────────┴────────────────────────────────┘
[ OPTIONS ] Please Input ID: 2 # 我选择了mirrors.bfsu.edu的源
[ INFO ] Your selected source ID is: [ 2 ]
[ STEPS ] Start to change the source of the system: [ mirrors.bfsu.edu ]
[ INFO ] The system release is: [ noble ]
[ SUCCESS ] Change the source of the system successfully.
apt update
root@armbian:~# apt update # 更新列表
Get:1 mirrors.bfsu.edu/ubuntu-ports noble InRelease [256 kB]
Get:2 mirrors.bfsu.edu/ubuntu-ports noble-security InRelease [126 kB]
Get:3 mirrors.bfsu.edu/ubuntu-ports noble-updates InRelease [126 kB]
...
Get:23 mirrors.bfsu.edu/ubuntu-ports noble-backports/universe arm64 Packages [16.1 kB]
Fetched 187 MB in 36s (5,188 kB/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
36 packages can be upgraded. Run 'apt list --upgradable' to see them.
apt install apache2 -y
/var/www/html
目录下,html目录下的index.html修改后缀,不然每次访问机顶盒ip
都是访问index.htmlroot@armbian:~# armbian-install
[ STEPS ] Installing Armbian to internal eMMC...
[ STEPS ] Checking dependencies...
[ INFO ] Dependency check completed. Proceeding installation...
[ STEPS ] Initializing the environment...
[ INFO ] Use mainline u-boot: [ no ]
[ INFO ] Use ampart tool: [ yes ]
[ INFO ] Show all devices: [ no ]
[ INFO ] Internal eMMC : [ /dev/mmcblk2 ]
[ STEPS ] Start selecting device...
-----------------------------------------------------------------------------------------------------
ID SOC MODEL DTB
-----------------------------------------------------------------------------------------------------
301 s905x2 X96-Max-4GB,Tx5-Max meson-g12a-x96-max.dtb
302 s905x2 X96-Max-2GB,A95X-F2 meson-g12a-x96-max-rmii.dtb
303 s905x2 MECOOL-KM3-4G meson-g12a-sei510.dtb
304 s905l3a ♥,E900V22C-D,CM311-1a-CH,IP112H,B863AV3.1 meson-g12a-s905l3a-e900v22c.dtb
305 s905l3a ♥,CM311-1a-YST meson-g12a-s905l3a-cm311.dtb
306 s905l3a M401A,UNT403A,B863AV3.2-M meson-g12a-s905l3a-m401a.dtb
0 Other Customize Enter-custom-dtb-name
-----------------------------------------------------------------------------------------------------
[ OPTIONS ] Please Input ID: 304 # 我的机顶盒是CM311-1a-CH所以选择304
[ INFO ] Input Box ID: [ 304 ]
[ INFO ] Model Name: [ ♥,E900V22C-D,CM311-1a-CH,IP112H,B863AV3.1 ]
[ INFO ] FDTFILE: [ meson-g12a-s905l3a-e900v22c.dtb ]
[ INFO ] MAINLINE_UBOOT: [ ]
[ INFO ] BOOTLOADER_IMG: [ ]
[ INFO ] UBOOT_OVERLOAD: [ u-boot-e900v22c.bin ]
[ INFO ] NEED_OVERLOAD: [ yes ]
[ STEPS ] Which type of filesystem do you want for your root?
-----------------------------------------------
ID TYPE
-----------------------------------------------
1 ext4
2 btrfs
-----------------------------------------------
[ OPTIONS ] Please Input ID (1/2): 1 # 选择系统格式,一般都是ext4
[ INFO ] Input Type ID: [ 1 ]
[ INFO ] Type of filesystem: [ ext4 ]
[ STEPS ] Partitioning eMMC...
[ INFO ] Start backing up the default bootloader.
4+0 records in
4+0 records out
4194304 bytes (4.2 MB, 4.0 MiB) copied, 0.339601 s, 12.4 MB/s
[ STEPS ] Successfully partitioned internal eMMC with amaprt.
[ INFO ] Start create MBR and partittion.
[ 725.559467] mmcblk2:
[ 725.646379] mmcblk2: p1
[ 725.735320] mmcblk2: p1 p2
[ INFO ] 03. Write the mybox bootloader: [ /usr/lib/u-boot/mybox-bootloader.img ]
444+0 records in
444+0 records out
444 bytes copied, 0.0[ 725.748082] mmcblk2: p1 p2
0734977 s, 60.4 kB/s
8191+0 records in
8191+0 records out
4193792 bytes (4.2 MB, 4.0 [ 726.009661] mmcblk2: p1 p2
MiB) copied, 0.259703 s, 16.1 MB/s
[ STEPS ] Processing BOOTFS partition...
[ INFO ] Formatting BOOTFS partition...
mkfs.fat 4.2 (2021-01-31)
[ INFO ] Copying BOOTFS ...
[ INFO ] Update the [ ] file.
[ INFO ] Copy [ u-boot-e900v22c.bin ]
[ STEPS ] Start processing the rootfs partition...
[ INFO ] Formatting ROOTFS ...
[ 760.837447] EXT4-fs (mmcblk2p2): mounted filesystem 6a737033-1141-4674-8fd4-0e1e255ee38d r/w with ordered data mode. Quota mode: none.
[ INFO ] Copying ROOTFS ...
[ INFO ] Copying [ etc ] ...
[ INFO ] Copying [ home ] ...
[ INFO ] Copying [ opt ] ...
[ INFO ] Copying [ root ] ...
[ INFO ] Copying [ selinux ] ...
[ INFO ] Copying [ srv ] ...
[ INFO ] Copying [ usr ] ...
[ INFO ] Copying [ var ] ...
[ INFO ] Generate the new fstab file.
[ INFO ] Update parameters related to the releases file.
[ INFO ] Update the MAC address for the wireless network card.
[ 866.502123] EXT4-fs (mmcblk2p2): unmounting filesystem 6a737033-1141-4674-8fd4-0e1e255ee38d.
[ SUCCESS ] Installation successful. Run [ poweroff ], remove the installation media then re-insert the power supply to boot new system. # 安装成功。运行[poweroff],移除安装介质,然后重新插入电源以启动新系统。
root@armbian:~# poweroff
本文发布于:2025-04-07 03:32:00,感谢您对本站的认可!
本文链接:https://www.4u4v.net/it/1743967939584824.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
留言与评论(共有 0 条评论) |