找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 3163|回复: 15

[N1盒子] n1装CoreELEC 20.0-Nexus又转投ARMBIAN折腾学习记录

[复制链接]
发表于 2023-3-17 13:01 | 显示全部楼层 |阅读模式
本帖最后由 nuzmz 于 2023-5-18 20:48 编辑

2023.3.17装CoreELEC 20.0-Nexus
1、n1连键鼠、hdmi电视,上电,设置Wi-Fi,记录分配的局域网地址。固件版本2.19,不用降级。
2、在coreelec官网下载支持s905d的固件(CoreELEC 20.0-Nexus 版本,可选择不同芯片),用balenaEtcher刷到u盘,根据device tree拷贝到u盘根目录,重命名为dtb.img。
3、剪断若干两芯microusb后,用一根nokia数据线和一根htc数据线做了双公头usb。十年前的线真堆料。
4、下载n1降级工具,装了USB_Burning_Too后面好像也用不着。win7笔记本连步骤1同Wi-Fi,打开n1降级工具,发现输了ip后直接退出来,多退几次才发现是因为没有装adb,补装。
5、降级工具选3进入线刷模式,按提示插上双公头usb,盒子重启,迅速插上u盘。u盘插到离HDMI较远的口,果然重启不成功。换到较近的口,顺利启动到coreelec的安装启动界面,插上蓝宝石遥控器,还好按键大体能用,只是关机后无法开机。收摊,周末再学。

2023.3.18充满玄学的armbian刷机过程
6、把N1CoreELEC接到43寸索尼大法,面临几个问题:声音小,暂时找不到设置的地方;找不到设置静态wired地址的地方;遥控器无法开机。因此中断了在N1上折腾CoreELEC的。在Openwrt、armbian、、rush极简固件摇摆了一阵,决定暂时投向armbian。
7、充满玄学的armbian刷机过程:
——昨天已经把CoreELEC装到了emmc,好像不能直接刷armbian,重启都停在“新一代家庭nas云盘”的ugly页面上;
——重点学习了“极限精简斐讯T1/N1 极客开发者强迫症福音6.25”、“斐讯天天链N1 官改v2.2线刷包,精简版,扩展功能可选”“【斐讯媒体盒N1】 【LiliN Mod】【官改固件】【FINAL】”等贴子
——把N1接到LG,古早thinpad装上USB_Burning_Tool_v2.1.3插上双公usb,因为无法用abd批处理开启线刷,只好尝试只用双公usb线刷,这才发现顺序很玄学:先按USB_Burning_Too的开始,再插N1的电源,停在“新一代家庭nas云盘”的ugly页面。先插N1的电源,也停在“新一代家庭nas”的ugly页面。脑洞突开,一手扶住电源头,候在电源口,一手悬停在触控板上,摆好姿势同时发力一插一按,居然成了。


——在rush极简固件里装了kodi20,ABM_arm_v3.3.4-Release,还没来得及尝试lazy-start.sh,就开始转向armbian了,只是因为不小心体验了一把百度网盘的加速券,不知道会不会被扣费。后续估计要花点时间学习怎么用armbian。

2023.3.19被某个帖子的dtb文件干扰了
8、安装armbian的版本:Armbian_5.77_Aml-s905_Ubuntu_bionic_default_5.0.2_20190401。刷到u盘后,需要修改uEnv.ini里的dtb_name=/dtb/meson-gxl-s905d-phicomm-n1.dtb 。

u盘启动后,用/boot/install.sh安装到emmc,拔掉u盘重启后出现“label=ROOT_EMMC does not exist”,根据“将 Armbian 写入 emmc 遇到【ALert!label=ROOT_EMMC does not exist】的解决方案”的帖子,解决办法为:
vim ./install.sh
将 55 行中:sed -e "s/ROOTFS/ROOT_EMMC/g"
改为
sed -e "s/LABEL=ROOTFS/\/dev\/mmcblk1p2/g"
重新执行install.sh即可。
9、本坛某贴提到刷u盘后要更换meson-gxl-s905d-phicomm-n1.dtb ,结果换了帖子的文件之后无法挂载根文件系统,后来保留img里的版本不变,终于能挂载进入系统了。

2023.3.20 终于装好了alist树立了一点信心
10、昨天刚开始用一键脚本:一键脚本 | AList文档 (nn.ci),没有下载速度,就在github下载alist传到/opt运行出现缺少glibc2.8,armbian里的是2.7,下了源文件编译了一个多小时都不成功。抱着尝试的心里又试了一次一键脚本,居然成功了。

可以接着来安个可道云。
11、调整插座,找了个小米智能插座给N1当开关,这样可以随时随地开关armbian、alist。






2023.3.30 换成了新版的armbian:Armbian_23.05.0_amlogic_s905d_jammy_5.15.104_server_2023.03.29 (3).img
12、由于想在armbian上折腾wifi热点,原来装的版本可能由于精简的原因无法用armbian-config来设置wifi热点,就换成了新版的armbian:Armbian_23.05.0_amlogic_s905d_jammy_5.15.104_server_2023.03.29。
13、今天下载github奇慢,幸好找到了一个加速器,新版armbian地址:https://ghproxy.com/https://gith ... r_2023.03.29.img.gz
14、用balenaEtcher-Portable-1.13.1把镜像烧到128g爱国者u盘上,插到N1的HDMI邻近U口,断电重启,顺利启动登录:root,1234.新版本不用改install.sh,也不用编译dtb,看来还是有改进。
15、终于可以用armbian-config了。关键能用hostapt来开启热点。
        ——apt update
        ——配置热点前要先把hostapd和dnsmq先装上。apt install hostapd,apt install dnsmq
        ——在armbian-config里选hotspot配置热点,省掉编辑好几个配置文件


2023.3.31用armbian-config安装samba,transmission,docker
16、配置了samba,但暂时还不能从windows10来访问,后面慢慢找原因,目前暂时不是很需要。
17、transmission的配置参考的文章:Armbian安装下载神器Transmission - 麦克斯和雪莉的部落阁 (haibara.cn)service transmission-daemon stop,vim /etc/transmission-daemon/settings.json,chmod -R 777 /home/share/downloads。美化WebUI
18、armbian 安装docker 简明教程-斐讯无线路由器以及其它斐迅网络设备-恩山无线论坛 - Powered by Discuz! (right.com.cn)。大体参照这篇教程安装docker,不过没有用docker阿里云镜像,好像速度也不会特别慢。


2023.4.1可道云准备:Armbian搭建LNMP环境
19、基本照着这篇文章来搭建LNMP,在安装php7.4时apt install php7.4-fpm php7.4-mysql php7.4-curl php7.4-gd php7.4-mbstring php7.4-xml php7.4-xmlrpc php7.4-zip php7.4-opcache php7.4-bcmath -y找不到软件包,下了php-7.4.0.tar.gz打算手动安装,在补装libxml2后,再试试apt install,居然成功了,是跟网络环境的关系吗?
Armbian搭建LNMP环境 - 麦克斯和雪莉的部落阁 (haibara.cn)

2023.5.16
20.安装Homeassistant
——严格遵照homeassistant官网的教程安装:https://www.home-assistant.io/in ... home-assistant-core
——This guide assumes that you already have an operating system setup and have installed Python 3.10 (including the package python3-dev) or newer.
——INSTALL DEPENDENCIES:Before you start, make sure your system is fully updated, all packages in this guide are installed with apt, if your OS does not have that, look for alternatives.
  1. apt-get update
  2. apt-get upgrade -y
复制代码
——Install the dependencies:
  1. apt-get install -y python3 python3-dev python3-venv python3-pip bluez libffi-dev libssl-dev libjpeg-dev zlib1g-dev autoconf build-essential libopenjp2-7 libtiff5 libturbojpeg0-dev tzdata
复制代码
The above-listed dependencies might differ or missing, depending on your system or personal use of Home Assistant.这些依赖先用核对一下系统里是否已装上,例如:
  1. dpkg -L python3-dev
复制代码
Add an account for Home Assistant Core called homeassistant. Since this account is only for running Home Assistant Core the extra arguments of -rm is added to create a system account and create a home directory.
  1. sudo useradd -rm homeassistant
复制代码
CREATE THE VIRTUAL ENVIRONMENT
First we will create a directory for the installation of Home Assistant Core and change the owner to the homeassistant account.
  1. sudo mkdir /srv/homeassistant
复制代码
Next up is to create and change to a virtual environment for Home Assistant Core. This will be done as the homeassistant account.
  1. sudo -u homeassistant -H -s
复制代码
Once you have activated the virtual environment (notice the prompt change to (homeassistant) homeassistant@raspberrypi:/srv/homeassistant $) you will need to run the following command to install a required Python package.
  1. python3 -m pip install wheel
复制代码
Once you have installed the required Python package, it is now time to install Home Assistant Core!
  1. pip3 install homeassistant==2023.5.3
复制代码
Start Home Assistant Core for the first time. This will complete the installation for you, automatically creating the .homeassistant configuration directory in the /home/homeassistant directory, and installing any basic dependencies.
  1. hass
复制代码
You can now reach your installation via the web interface on http://homeassistant.local:8123.
If this address doesn’t work you may also try http://localhost:8123 or http://X.X.X.X:8123 (replace X.X.X.X with your machines’ IP address).
When you run the hass command for the first time, it will download, install and cache the necessary libraries/dependencies. This procedure may take anywhere between 5 to 10 minutes. During that time, you may get a site cannot be reached error when accessing the web interface. This will only happen the first time. Subsequent restarts will be much faster.


20.安装之后让homeassistant开机启动:https://community.home-assistant ... sing-systemd/199497


21.安装HACS









本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

×
我的恩山、我的无线 The best wifi forum is right here.
发表于 2023-3-18 11:21 | 显示全部楼层
有简单的方法从19.5升级倒20吗?
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2023-3-18 12:29 | 显示全部楼层
论坛好像有人提过,直接把system.img换成新版的,还没试过
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2023-3-18 13:48 | 显示全部楼层
下载哪个呢?官网一共3种
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2023-3-18 20:02 | 显示全部楼层
CoreELEC-Amlogic-ng.arm-20.0-Nexus-Generic.img.gz,我是下载这个版本
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2023-3-20 08:32 | 显示全部楼层
我还以为你成功了~~

点评

感觉像小猪佩奇踩泥坑  详情 回复 发表于 2023-3-20 21:40
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2023-3-20 21:40 | 显示全部楼层
本帖最后由 nuzmz 于 2023-3-20 22:00 编辑
ysgogo001 发表于 2023-3-20 08:32
我还以为你成功了~~

感觉像小猪佩奇踩泥坑.
目前唯一成功的是ALIST。

我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2023-3-20 22:56 来自手机 | 显示全部楼层
还在找中意的系统,功能太多都不会啊
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2023-3-20 23:54 | 显示全部楼层
laotupizi 发表于 2023-3-20 22:56
还在找中意的系统,功能太多都不会啊

是要哪方面的系统?
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2023-3-21 15:31 | 显示全部楼层
nuzmz 发表于 2023-3-20 21:40
感觉像小猪佩奇踩泥坑.
目前唯一成功的是ALIST。

喜欢的是泥花飞溅的赶脚,哈哈哈
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2023-3-23 18:40 | 显示全部楼层
我刷了Fastnas系统,当NAS用挺爽

点评

是刷的https://www.right.com.cn/forum/thread-3641336-1-1.html这个帖子里的固件吗?  详情 回复 发表于 2023-5-17 17:17
我也试试看  详情 回复 发表于 2023-3-25 10:53
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2023-3-23 20:22 | 显示全部楼层
请教下楼主,怎么把corelelc20刷进emmc吗?我按论坛的方法搞不定啊

点评

能否参照“将 Armbian 写入 emmc 遇到【ALert!label=ROOT_EMMC does not exist】的解决方案”的帖子改./install.sh?  详情 回复 发表于 2023-3-25 10:53
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2023-3-25 10:53 | 显示全部楼层
wxjsy888 发表于 2023-3-23 20:22
请教下楼主,怎么把corelelc20刷进emmc吗?我按论坛的方法搞不定啊

能否参照“将 Armbian 写入 emmc 遇到【ALert!label=ROOT_EMMC does not exist】的解决方案”的帖子改./install.sh?
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2023-3-25 10:53 | 显示全部楼层
本帖最后由 nuzmz 于 2023-3-25 11:41 编辑
a79830 发表于 2023-3-23 18:40
我刷了Fastnas系统,当NAS用挺爽

我也试试看.alist也能挂载本地的存储
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2023-5-16 15:41 | 显示全部楼层
alist+homeassistant+transmission
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

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

本版积分规则

关闭

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

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

GMT+8, 2024-4-28 22:53

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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

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