ophub / amlogic-s9xxx-armbian

Support for Armbian in Amlogic, Rockchip and Allwinner boxes. Support a311d, s922x, s905x3, s905x2, s912, s905d, s905x, s905w, s905, s905l, rk3588, rk3568, rk3399, rk3328, h6, etc.
GNU General Public License v2.0
5.41k stars 1.72k forks source link

phicomm T1 支持写入emmc,有线、无线和蓝牙都可以正常使用 #522

Closed xiaopangzia closed 1 year ago

xiaopangzia commented 1 year ago

Armbian_22.08.0_Aml_s912-m8s_jammy_5.15.62_server_2022.08.28.img.gz ? choice 206? has desktop version?

ophub commented 1 year ago

No firmware for T1

birdxs commented 1 year ago

Armbian_22.11.0_Aml_s905d_bullseye_5.10.149_server_2022.10.19.img I found the firmware for phicomm N1 can be used for phicomm T1 after replace the dtb file. It can also be written to emmc.

ophub commented 1 year ago

Which dtb file are you using on the phicomm T1?

birdxs commented 1 year ago

T1可用dtb、u-boot下载链接: https://pan.baidu.com/s/1iYKAX8n1ij0vocunoWlEww 本帖隐藏的内容 提取码 x46e 期待大佬更新适配T1的固件,那样就可以直接写入U盘刷机了,不需要替换了。

ophub commented 1 year ago

https://github.com/ophub/amlogic-s9xxx-armbian/blob/main/build-armbian/common-files/bootfs/dtb/amlogic/meson-gxm-q201.dtb

https://github.com/ophub/amlogic-s9xxx-armbian/blob/main/build-armbian/amlogic-u-boot/overload/u-boot-s905x-s912.bin

meson-gxm-q201.dtb u-boot-s905x-s912.bin 你网盘里的这两个文件都是固件里带有的文件,这个组合在phicomm T1上可以正常使用? 5.10.y/5.15.y两个系列的固件都可以写入emmc使用吗?

birdxs commented 1 year ago

https://github.com/ophub/amlogic-s9xxx-armbian/blob/main/build-armbian/common-files/bootfs/dtb/amlogic/meson-gxm-q201.dtb

https://github.com/ophub/amlogic-s9xxx-armbian/blob/main/build-armbian/amlogic-u-boot/overload/u-boot-s905x-s912.bin

meson-gxm-q201.dtb u-boot-s905x-s912.bin 你网盘里的这两个文件都是固件里带来的文件,这个组合在phicomm T1上可以正常使用? 5.10.y/5.15.y两个系列的固件都可以写入emmc使用吗?

我下载你提供的dtb、bin文件查看HASH值与我使用的不一样。 之前我直接用大佬编译的s912固件用于T1,dtb使用固件内提供的meson-gxm-q201.dtb,发现首次启动后以太网、无线网均无法使用。使用恩山网友提供的固件Armbian_21.08.1_Arm-64_bullseye_current_5.9.0可以用于T1,故提取恩山网友分享的可用于T1的固件内dtb、bin替换到你编译的N1固件(Armbian_22.11.0_Aml_s905d_bullseye_5.10.149_server_2022.10.19),发现可以用于T1,也可以写入emmc,目前只测试了5.10.149内核,还没测试5.15.y内核。

ophub commented 1 year ago

你试一下用他的bin,用我固件里的dtb这个组合可以不,判断一下是不是dtb可以用,先看一下有线网络,再看无线。

birdxs commented 1 year ago

你试一下用他的bin,用我固件里的dtb这个组合可以不,判断一下是不是dtb可以用,先看一下有线网络,再看无线。

好的,我再测试一下,不过需要再等等,目前手里缺USB扩展坞。T1就一个u口,需要扩展一下才能连接U盘+键盘。。。

ophub commented 1 year ago

好的👌

ophub commented 1 year ago

Snip20221107_1

我下载了你网盘里的bin和dtb文件进行了sha256sum比较,发现这个bin文件是完全一样的同一个文件。

dtb不一样是正常的,你的固件是5.9.0的内核,我的是5.15.y的内核,所以这个文件的dts源码有差异是正常的。这个文件是公版文件,和别的特定盒子的dtb不同,他一般不做特殊修改,而是作为基础文件被别的dts文件include后path使用。 所以我仓库里的bin文件是可以使用的,只是你的这个dtb可能150大佬在原来的kernel库里做了什么添加或修改?

你下载s912-m8s固件(不是s912,后面有个-m8s的值),内核5.10的,你猜直接就可以使用,你试试。这个固件的配置信息和你用的5.9.0的完全一样。比如: Armbian_22.11.0_Aml_s912-m8s_jammy_5.10.153_server_2022.11.07.img.gz

https://github.com/ophub/amlogic-s9xxx-armbian/blob/670a7a2894e23f0fc1c6eae7e333eb7612ba0f2d/build-armbian/common-files/rootfs/etc/amlogic_model_database.conf#L42

你再比较下这2个bin文件: sha256sum u-boot-s905x-s912.bin

cjh19831115 commented 1 year ago

我按照birdx的做法,下载了bullseye中n1的固件,正常运行,有线、Wi-Fi都可正常使用,就是开机一段时间负载有点高 ! 截屏2022-11-11 12 41 30

ophub commented 1 year ago

你是N1还是T1?用的哪个配置? meson-gxm-q201.dtb u-boot-s905x-s912.bin 这个组合?

cjh19831115 commented 1 year ago

我的是T1,下载s905d固件(N1),然后替换你说的2个文件。

ophub commented 1 year ago

@cjh19831115

你是改了/boot/uEnv.txt的值为meson-gxm-q201.dtb,然后复制了u-boot-s905x-s912.bin为u-boot.ext吧?

这两个文件是使用的固件自带的还是从第三方下载后替换的?

cjh19831115 commented 1 year ago

是改了/boot/uEnv.txt的值为meson-gxm-q201.dtb,然后将下载的u-boot-s905x-s912.bin,直接替换包里的u-boot-s905x-s912.bin,其他没有变动

cjh19831115 commented 1 year ago

使用@birdx提供的u-boot-s905x-s912.bin和meson-gxm-q201.dtb

ophub commented 1 year ago

@cjh19831115

你下载5.10的s912-m8s固件(不是s912,后面有个-m8s的值),不用改什么,直接使用试一下

https://github.com/ophub/amlogic-s9xxx-armbian/releases/tag/Armbian_Aml_jammy_11.11.0828

birdxs commented 1 year ago

@cjh19831115

你下载5.10的s912-m8s固件(不是s912,后面有个-m8s的值),不用改什么,直接使用试一下

https://github.com/ophub/amlogic-s9xxx-armbian/releases/tag/Armbian_Aml_jammy_11.11.0828

买的USB扩展坞终于到了。中午简单测试了下,直接写入u盘,不修改任何配置 Armbian_22.11.0_Aml_s912-m8s_bullseye_5.10.155_server_2022.11.20.img.gz 5.10内核:有线正常,无线连不上,armbian-config提示not found

Armbian_22.11.0_Aml_s912-m8s_bullseye_5.15.79_server_2022.11.20.img.gz 5.15内核:有线连不上,无线正常,armbian-config正常

ophub commented 1 year ago

5.15固件里少一个u-boot文件。usb启动后,可以自己添加一下,重启试试

cd /boot
cp -f u-boot-s905x-s912.bin u-boot.ext
sync && reboot
birdxs commented 1 year ago

5.15固件里少一个u-boot文件。usb启动后,可以自己添加一下,重启试试

cd /boot
cp -f u-boot-s905x-s912.bin u-boot.ext
sync && reboot

最新测试Armbian_22.11.0_Aml_s912-m8s_bullseye_5.10.155_server_2022.11.21.img固件,无线、有线均正常。 O大,请问T1的蓝牙能解决吗?执行apt install bluez安装蓝牙驱动 执行apt install pulseaudio-module-bluetooth安装pulseaudio组件 还是无法驱动蓝牙

root@armbian:~# sudo apt install pulseaudio-module-bluetooth^C
root@armbian:~# apt install bluez^C
root@armbian:~# dmesg |grep -i bluetoo
[   22.332435] Bluetooth: Core ver 2.22
[   22.345377] Bluetooth: Starting self testing
[   22.373432] Bluetooth: ECDH test passed in 18146 usecs
[   22.386378] Bluetooth: SMP test passed in 4423 usecs
[   22.392461] Bluetooth: Finished self testing
[   22.405967] Bluetooth: HCI device and connection manager initialized
[   22.412443] Bluetooth: HCI socket layer initialized
[   22.418422] Bluetooth: L2CAP socket layer initialized
[   22.424240] Bluetooth: SCO socket layer initialized
[   23.382312] systemd[1]: Reached target Bluetooth.
[ 3477.570895] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[ 3477.572729] Bluetooth: BNEP filters: protocol multicast
[ 3477.577633] Bluetooth: BNEP socket layer initialized
root@armbian:~# hciconfig -a
hci0:   Type: Primary  Bus: SDIO
BD Address: 00:00:00:00:00:00  ACL MTU: 0:0  SCO MTU: 0:0
DOWN
RX bytes:0 acl:0 sco:0 events:0 errors:0
TX bytes:0 acl:0 sco:0 commands:0 errors:0
Features: 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
Packet type: DM1 DH1 HV1
Link policy:
Link mode: SLAVE ACCEPT
ophub commented 1 year ago

在armbian-config里安装蓝牙支持。 T1的蓝牙芯片是什么

birdxs commented 1 year ago

在armbian-config里安装蓝牙支持。 T1的蓝牙芯片是什么

O大,T1的蓝牙芯片具体型号没找到,没找到拆解相关帖子。 恩山的两个帖子提到了 https://www.right.com.cn/forum/forum.php?mod=viewthread&tid=356749 说T1无线模块是AW-CM256SM,蓝牙芯片是CYW43455 https://www.right.com.cn/forum/forum.php?mod=redirect&goto=findpost&ptid=8246203&pid=17307047 这个帖子提到了修复思路,不知道如何修改DTB

ophub commented 1 year ago

meson-gxm-phicomm-t1.dtb.zip

下载解压缩成dtb后缀,上传到/boot/dtb/amlogic目录下 修改/boot/uEnv.txt里的值为这个名字,保存重启试试

birdxs commented 1 year ago

meson-gxm-phicomm-t1.dtb.zip

下载解压缩成dtb后缀,上传到/boot/dtb/amlogic目录下 修改/boot/uEnv.txt里的值为这个名字,保存重启试试

成功驱动蓝牙,感谢大佬

root@armbian:~# hciconfig -a
hci1:   Type: Primary  Bus: SDIO
        BD Address: 00:00:00:00:00:00  ACL MTU: 0:0  SCO MTU: 0:0
        DOWN
        RX bytes:0 acl:0 sco:0 events:0 errors:0
        TX bytes:0 acl:0 sco:0 commands:0 errors:0
        Features: 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
        Packet type: DM1 DH1 HV1
        Link policy:
        Link mode: SLAVE ACCEPT

hci0:   Type: Primary  Bus: UART
        BD Address: xx:xx:xx:xx:AF:E2(蓝牙地址正常)  ACL MTU: 1021:8  SCO MTU: 64:1
        UP RUNNING
        RX bytes:3826 acl:0 sco:0 events:346 errors:0
        TX bytes:62497 acl:0 sco:0 commands:346 errors:0
        Features: 0xbf 0xfe 0xcf 0xfe 0xdb 0xff 0x7b 0x87
        Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
        Link policy: RSWITCH SNIFF
        Link mode: SLAVE ACCEPT
        Name: 'armbian'
        Class: 0x000000
        Service Classes: Unspecified
        Device Class: Miscellaneous,
        HCI Version: 4.2 (0x8)  Revision: 0xfc
        LMP Version: 4.2 (0x8)  Subversion: 0x6119
        Manufacturer: Broadcom Corporation (15)
ophub commented 1 year ago

好的,我随后提交到f大的仓库,以后t1使用专用dtb:meson-gxm-phicomm-t1.dtb

目前是有线、无线、蓝牙都可以正常使用了吧?

birdxs commented 1 year ago

好的,我随后提交到f大的仓库,以后t1使用专用dtb:meson-gxm-phicomm-t1.dtb

目前是有线、无线、蓝牙都可以正常使用了吧?

是的,目前我这边测试有线、无线、蓝牙均正常了。感谢各位大佬辛勤付出!

tfnhui commented 1 year ago

请问各位大神 T1 5.10内核 直接用 没有网络 应该要替换哪些文件

ophub commented 1 year ago

几分钟前刚替换了pr,目前的内核里没有这个文件。你从我仓库下载这个dtb上传到你的固件/boot/dtb/amlogic里,修改/boot/uEnv.txt测试下。

https://github.com/ophub/amlogic-s9xxx-armbian/tree/main/build-armbian/common-files/bootfs/dtb/amlogic

ophub commented 1 year ago

这个T1网上的文章,有的说是百兆,有的说是千兆,他的有线网卡究竟是千兆还是百兆呢?

tfnhui commented 1 year ago

谢谢大佬
我使用的这个 Armbian_22.11.0_Aml_s912_bullseye_5.10.156 /boot/uEnv.txt 改成了 meson-gxm-phicomm-t1.dtb 文件也放进去了 但是好像还是没网 图片链接 i.postimg.cc/P5QKtrx0/IMG-20221126-223608.jpg

ophub commented 1 year ago

这个dtb是5.15内核的,按说5.10也能用啊。先改回meson-gxm-q201.dtb,你更新到5.15内核试试

tfnhui commented 1 year ago

谢谢 5.15 有网了 没替换文件 我只改了 /boot/uEnv.txt 改成了 meson-gxm-phicomm-t1.dtb

我再试试

tfnhui commented 1 year ago

不懂就问 嘿嘿 5.15 和 5.10 有什么区别呢

ophub commented 1 year ago

5.10内核必须使用u-boot 5.15内核可以不使用u-boot,是可选项

tfnhui commented 1 year ago

额。刷了今天的5.10 WIFI正常 有线还是不正常, 请问大佬有群么

只改了 /boot/uEnv.txt 改成了 meson-gxm-phicomm-t1.dtb

ophub commented 1 year ago

在USB中测试下5.10的固件,启动后,除了修改uEnv.txt外,再手动复制这个文件

cd /boot
cp -f u-boot-p212.bin u-boot.ext
sync && reboot

重启后看看是否正常。

birdxs commented 1 year ago

这个T1网上的文章,有的说是百兆,有的说是千兆,他的有线网卡究竟是千兆还是百兆呢?

T1是百兆,N1是千兆

tfnhui commented 1 year ago

请问 大佬 你后期编译的固件 我是不是只要 armbian-update 更新就行?

ophub commented 1 year ago

内核更新(这个几乎每周有新内核,可以追新,也可以不更新):armbian-update 脚本更新(这个更新频率不高,主要是发现脚本有bug会修复):armbian-sync

这2个即可

tfnhui commented 1 year ago

反馈一下 我装着东西呢 就经常自动重启了 不知道啥原因呢

tfnhui commented 1 year ago

大佬 您好
IMG_20221129_144536

5.10的 我有线一直不行 今天的版本也测试了 我除了 改了uEnv.txt 改成了 meson-gxm-phicomm-t1.dtb 其它还需要改吗

ophub commented 1 year ago

你下载5.15的试试

tfnhui commented 1 year ago

您好 5.15 是OK的 就是有时候会自动重启 ,不知道是不是硬件的问题 我想安装5.10 试试

ophub commented 1 year ago

5.10多了u-boot,不一定适合你的盒子。不适配时是副作用。

tfnhui commented 1 year ago

请问一下 大佬 bullseye 和 jammy 使用有区别吗 哪个更稳定呢

ophub commented 1 year ago

bullseye是基于debian,以稳定为本。 jammy是基于ubuntu,以追新为本。

稳定性一般和执腾的姿势和频率成正比,一会是惊喜,一会是惊吓。

kinkir commented 1 year ago

前面发的Armbian_22.11.0_Aml_s912-m8s_bullseye_5.10.155_server_2022.11.21.img这个没得下载了?也想试下

QAWEI commented 1 year ago

我刷了5.15 lan没办法法DHCP不知道为啥,我想弄单臂主路由

891921269 commented 1 year ago

你好,请问斐讯t1盒子的armbian固件是没有声音么?我刷的是Armbian_23.02.0_amlogic_s912-m8s_jammy_6.1.3_server_2023.01.05.img

gfourdx commented 1 year ago

@cjh19831115

你下载5.10的s912-m8s固件(不是s912,后面有个-m8s的值),不用改什么,直接使用试一下

https://github.com/ophub/amlogic-s9xxx-armbian/releases/tag/Armbian_Aml_jammy_11.11.0828

请问大佬, s912和s912-m8s有什么区别,对于T1来说建议用哪个?这个对T1来说有区别吗?