首先感谢论坛大佬,先驱们 探索和无私奉献
昨天才买的赚钱宝2代 nand,之前也没了解过emmc和nand的区别 ,误打误撞就此就行吧。
废话不多说 首先 刷 icebee250 大佬的armbian
https://www.right.com.cn/forum/thread-4137698-1-1.html
一定要设定时间 才能 做APT-GET UPDATE
然后 按照 achaoge 大佬的指导
以下步骤可以完成内核的升级,前提都是在刷了楼主的Armbian基础上进行:
1,安装 abootimg 软件,这个软件可以用来打包 Android 的boot.img,赚钱宝是通过读取这个启动的。
apt-get install abootimg
2,用 dd 命令复制出 /dev/boot 分区,以备 abootimg 用,其实主要是看看 bootigm.cfg 文件。
dd if=/dev/boot of=boot_old.img
[
修正:有的赚钱宝是nand 的,需要在 initramfs 里面添加 nand 驱动(aml_nftl_dev),添加方法
- echo 'aml_nftl_dev' >> /etc/initramfs-tools/modules
- dpkg-reconfigure linux-image-aml-s805
[color=rgb(51, 102, 153) !important]复制代码
]
3,用 abootimg 命令重新生成 boot_old.img
abootimg -u boot_old.img -k /boot/uImage -r /boot/initrd.img-3.10.108
4,把制作完成的 boot_old.img 写回 /dev/boot
dd if=boot_old.img of=/dev/boot
5,重启看效果。
如果不修改,直接 upgrade 会卡88% 改完直接可以直接升级
更换 nano /etc/apt/sources.list
apt update 后有可能需要安装密匙
显示:
Err:2 https://mirrors.ustc.edu.cn/debian buster InRelease
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 648ACFD622F3D138 NO_PUBKEY 0E98404D386FA1D9 NO_PUBKEY DCC9EFBF77E11517
Err:3 https://mirrors.ustc.edu.cn/debian buster-updates InRelease
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 648ACFD622F3D138 NO_PUBKEY 0E98404D386FA1D9
Err:4 https://mirrors.ustc.edu.cn/debian buster-backports InRelease
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 648ACFD622F3D138 NO_PUBKEY 0E98404D386FA1D9
Err:5 https://mirrors.ustc.edu.cn/debian-security buster/updates InRelease
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 112695A0E562B32A NO_PUBKEY 54404762BBB6E853
解决方法:输入以下命令
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 648ACFD622F3D138
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 0E98404D386FA1D9
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys DCC9EFBF77E11517
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 112695A0E562B32A
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 54404762BBB6E853
自己看需要那个换那个,还有就是 时间如果没有设定到现在的时间也安装不了密匙。 更新 apt dist-upgrade -y 验证升级
一旦升级过程完成,重启你的机器,并输入下面的命令检测版本:
lsb_release -a
root@amlogic:~# lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 10 (buster)
Release: 10
Codename: buster
表示升级完成。
在这里就可以把上面 4. 做一次就行了。 安装DietPi nano /etc/hosts
172.67.170.219 dietpi.com
104.21.28.141 dietpi.com
172.67.212.135 www.rutracker.org
172.65.229.194 www.deepl.com
199.232.174.132 deb.debian.org
199.232.142.132 deb.debian.org
146.75.114.132 deb.debian.org
151.101.78.132 deb.debian.org
151.101.110.132 deb.debian.org
185.199.111.133 raw.githubusercontent.com
185.199.110.133 raw.githubusercontent.com
185.199.108.133 raw.githubusercontent.com
182.43.124.6 raw.githubusercontent.com
185.199.109.133 raw.githubusercontent.com
185.199.108.133 user-images.githubusercontent.com
185.199.108.133 avatars2.githubusercontent.com
185.199.108.133 avatars1.githubusercontent.com
151.101.110.132 httpredir.debian.org
151.101.194.132 security.debian.org
会自动安装 直到进入画面说 没有启动分区是否继续安装,选继续。 提示一:
Please select the Git branch the installer should use:
master : Stable release branch (recommended)
beta : Public beta testing branch
dev : Unstable development branch
选择:master : Stable release branch (recommended)
按Ok
提示二:
Please enter your name. This will be used to identify the image creator within credits banner.
You can add your contact information as well for end users.
NB: An entry is required.
输入:用户名,按Ok。
提示三:
Please enter the name or URL of the pre-image you installed on this system, prior to running this script. This will
be used to identify the pre-image credits.
EG: Debian, Raspberry Pi OS Lite, Armbian or "forum.odroid.com/viewtopic.php?t=123456" etc.
NB: An entry is required.
输入:Debian, 按Ok。
提示四:
Please select the current device this is being installed on:
- NB: Select "Generic device" if not listed.
- "Core devices": Fully supported by DietPi, offering full GPU acceleration + Kodi support.
- "Limited support devices": No GPU acceleration guaranteed.
在ARM的下拉列表中选:最后的 : Generic device,按Ok。
提示五:
Please select an option:
0 : I do not require WiFi functionality, skip related package install.
1 : I require WiFi functionality, install related packages.
选择:0 : I do not require WiFi functionality, skip related package install。按Ok。
提示六:
Please select a Debian version to install on this system.
Currently installed: buster (ID: 5)
6 : Bullseye (current stable release, recommended)
7 : Bookworm (testing, if you want to live on bleeding edge)
选择:6 : Bullseye (current stable release, recommended)。按Ok。
当出现以下提示,表示安装完成。
/lib/modules:
total 4.0K
drwxr-xr-x 3 root root 4.0K Jun 1 2018 3.14.29
[ OK ] DietPi-PREP | Completed, disk can now be saved to .img for later use, or, reboot system to start first run of DietPi.
[ OK ] DietPi-PREP | To create an .img file, you can "poweroff" and run the following command from the host/external DietPi system:
- bash -c "$(curl -sSfL https://raw.githubusercontent.co ... mages/dietpi-imager)"
root@amlogic:/home#
重新启动前的准备工作
nano /etc/hosts
172.67.170.219 dietpi.com
104.21.28.141 dietpi.com
172.67.212.135 www.rutracker.org
172.65.229.194 www.deepl.com
199.232.174.132 deb.debian.org
199.232.142.132 deb.debian.org
146.75.114.132 deb.debian.org
151.101.78.132 deb.debian.org
151.101.110.132 deb.debian.org
185.199.111.133 raw.githubusercontent.com
185.199.110.133 raw.githubusercontent.com
185.199.108.133 raw.githubusercontent.com
182.43.124.6 raw.githubusercontent.com
185.199.109.133 raw.githubusercontent.com
185.199.108.133 user-images.githubusercontent.com
185.199.108.133 avatars2.githubusercontent.com
185.199.108.133 avatars1.githubusercontent.com
151.101.110.132 httpredir.debian.org
151.101.194.132 security.debian.org 保存退出 拔电重启 打开PuTTY软件,并在地址栏输入DietPi的地址,点击打开
注意:
第一次登录DietPi,用户名:root 登录密码:dietpi
就此 核心也更新好了,也是从nand启动的。 软件很多,我主要安装 squezzelite 和 roon bridge NAA 其他没有尝试,如果安装出现错误,大部分是访问解析错误。 需要在hosts更新dns 或者换个时间试试。
至此可以从nand 启动 随便折腾了。
|