找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888广告投放联系QQ68610888
广告投放联系QQ68610888广告投放联系QQ68610888
查看: 826|回复: 5

赚钱宝2代 nand 安装DIETPI 分享

[复制链接]
发表于 2025-3-22 14:59 | 显示全部楼层 |阅读模式
首先感谢论坛大佬,先驱们 探索和无私奉献  

昨天才买的赚钱宝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
deb https://mirrors.ustc.edu.cn/debian/ bullseye main non-free contrib
deb-src https://mirrors.ustc.edu.cn/debian/ bullseye main non-free contrib
deb-src https://mirrors.ustc.edu.cn/debian-security/ bullseye-security main
deb https://mirrors.ustc.edu.cn/debian/ bullseye-updates main non-free contrib
deb-src https://mirrors.ustc.edu.cn/debian/ bullseye-updates main non-free contrib
deb https://mirrors.ustc.edu.cn/debian/ bullseye-backports main non-free contrib
deb-src https://mirrors.ustc.edu.cn/debian/ bullseye-backports main non-free contrib
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  启动 随便折腾了。

dietpi安装资料  来自 http://erji.net/forum.php?mod=vi ... p;extra=&page=1  感谢 cqzhangjunhua 大神!!!









只谈技术、莫论政事!(点击见详情) | 互相尊重、友善交流、切勿过度反应、玻璃心。胡乱输入灌水等操作将会被封禁ID。
发表于 2025-3-22 16:04 | 显示全部楼层
随便折腾了。
只谈技术、莫论政事!(点击见详情) | 互相尊重、友善交流、切勿过度反应、玻璃心。胡乱输入灌水等操作将会被封禁ID。
回复

使用道具 举报

发表于 2025-3-27 20:22 | 显示全部楼层
升级完内核必须要安装dietpi吗?单纯想用2代做airprint服务器用

点评

升级到dietpi NAND的版本可以正常从nand启动,也可以自己试试  详情 回复 发表于 2025-3-27 23:07
只谈技术、莫论政事!(点击见详情) | 互相尊重、友善交流、切勿过度反应、玻璃心。胡乱输入灌水等操作将会被封禁ID。
回复

使用道具 举报

 楼主| 发表于 2025-3-27 23:07 | 显示全部楼层
dogreturn 发表于 2025-3-27 20:22
升级完内核必须要安装dietpi吗?单纯想用2代做airprint服务器用

升级到dietpi NAND的版本可以正常从nand启动,也可以自己试试
只谈技术、莫论政事!(点击见详情) | 互相尊重、友善交流、切勿过度反应、玻璃心。胡乱输入灌水等操作将会被封禁ID。
回复

使用道具 举报

发表于 2025-3-29 17:32 | 显示全部楼层
本帖最后由 dogreturn 于 2025-3-29 17:34 编辑

好的大佬,操作步骤里这一步可以解释一下吗?在这里就可以把上面 4. 做一次就行了。
这句话是说到这里再操作一下这一步吗?
4,把制作完成的 boot_old.img 写回 /dev/boot
dd if=boot_old.img of=/dev/boot
只谈技术、莫论政事!(点击见详情) | 互相尊重、友善交流、切勿过度反应、玻璃心。胡乱输入灌水等操作将会被封禁ID。
回复

使用道具 举报

发表于 2025-3-30 12:13 | 显示全部楼层
本帖最后由 dogreturn 于 2025-3-30 12:41 编辑

试验成功了,参照楼主的帖子,做完 apt dist-upgrade -y没有再继续安装dietpi,
接下来我按照这个帖子:https://blog.csdn.net/softbirding/article/details/125034854从第9步开始,跑到第11步时,需要的两个文件:hplip-3.21.2-plugin.run、hplip-3.21.2-plugin.run.asc从HP官网下载后上传到赚钱宝nand闪存里:https://developers.hp.com/hp-linux-imaging-and-printing/plugins
第13步如果打不开https://192.168.1.xxx:631,则到赚钱宝命令行输入:sudo cupsctl --remote-admin开启cpus远程访问;
实测按照以上步骤操作后,P1008远古打印机可以用nand闪存的赚钱宝开启airprint功能。
测试了几次下电重启赚钱宝,发现经常性的重启后发现不了airprint打印机,检查cups和avahi-daemon都是正常的,重启一下avahi-daemon服务又能发现airprint打印机了,所以在crontab里加入延迟重启avahi-daemon服务彻底解决:@reboot sleep 60 && systemctl restart avahi-daemon


只谈技术、莫论政事!(点击见详情) | 互相尊重、友善交流、切勿过度反应、玻璃心。胡乱输入灌水等操作将会被封禁ID。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

欢迎大家光临恩山无线论坛上一条 /2 下一条

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2026-8-23 21:33

Powered by Discuz! X3.5

© 2001-2026 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 电话:13506125623

快速回复 返回顶部 返回列表