使用systemd修正CroeELEC的MAC地址
source link: https://blog.ihipop.info/2021/05/5315.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
使用systemd修正CroeELEC的MAC地址
-
Android版本的固件,可以通过uboot上keyman维护mac/mac_wifi等信息,参考
-
s905_autoscript 可以通过uboot-tools里面的mkimage制作,可以免拆机执行keyman的命令
-
但是CoreELEC不读取keyman里面的任何配置,所以一般都是直接加在s905_autoscript启动参数里面
-
但是由于CoreELEC内核处理的原因,wifi的MAC不从这里面读取,而内置的CYW43455芯片没有nvram,他们的做法是上传一个txt模拟nvram到内核,N1使用的是/usr/lib/firmware/brcm/nvram_ap6255.txt 写死了是00:90:4c:c5:12:38 这个dummy mac,所以改s905_autoscript的mac_wifi没有用
-
同样,蓝牙的MAC也是类似的问题
修改内核个,适配keyman或者动态修改nvram.txt内容,固件间不通用
-
用户态在网络启动之前读取自己uboot预设的环境变量设置设备MAC,把自己预设的变量保存到uboot也能让刷机后地址不变。
-
传统的服务管理器无法在网络开启之前正确设置mac地址
使用systemd+fw_setenv/fw_printenv
vim /storage/.config/system.d/[email protected]
确保fw_printenv能正常读取uboot的内容
然后我们把需要持久保存的的mac写入uboot的env
然后启用此服务即可
发布于 2021年05月24日2021年05月24日作者 ihipop分类 Fix Problems、MyOriginal
《使用systemd修正CroeELEC的MAC地址》上有2条评论
Recommend
-
71
旅行者 1 号轨道修正推进器在 37 年后再次点火
-
61
solidot新版网站常见问题,请点击这里查看。 Solidot 公告
-
21
-
35
-
54
陈莉君老师写在前面: "本学期给研一小鲜肉们上Linux内核课程,发现内核代码具有激活学生们潜质的功效。前一段时间贺东升同学对内核第一宏的分析,不仅在读者中产生共鸣,更重要的是贺同学内在沉睡的潜质被激活,而max()宏的...
-
71
-
5
-
6
《彩虹六号:围攻》修正银行关卡之绘制模型年前分享了以《彩虹六号:围攻》银行地图修正的方案,想进一步讨论制作3D对战地图的模拟及检视方法。最近在研究三转二的地图建制及游戏性,因此没有时间完成绘制以城中村为概念的对战地图,说来有些惭愧,当...
-
11
《彩虹六号:围攻》银行地图修正方案根据上一篇文章的内容,文中提出对于《彩虹六号:围攻》银行地图的种种评论,但评论总是虚幻的。所以本文根据这个基础提出银行地图的修正方案,会依照平面地图逐一探讨地图内容,原则上依然会依照着上篇空间类型分...
-
8
老周侃股:为刑法修正叫好 近日,第十三届全国人大常委会第二十四次会议审议通过了刑法修正案(十一)(以下简称“修正案”),并将于2021年3月1日起正式施行。其中,欺诈发行最高判15年,将对造假者构成更大震慑,对净化市场有利,...
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK