Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TX8 MAX盒子使用KVM虚拟机安装OpenWrt #500

Closed
Fengke6 opened this issue Aug 18, 2022 · 87 comments
Closed

TX8 MAX盒子使用KVM虚拟机安装OpenWrt #500

Fengke6 opened this issue Aug 18, 2022 · 87 comments
Labels
documentation Improvements or additions to documentation new box Research Fills in the Blanks support This need is supported

Comments

@Fengke6
Copy link

Fengke6 commented Aug 18, 2022

虚拟机安装时出现标题报错,无法进行。

@ophub
Copy link
Owner

ophub commented Aug 18, 2022

什么虚拟机?
英文的意思是按任意键继续

@Fengke6
Copy link
Author

Fengke6 commented Aug 18, 2022

安装f大VM版openwrt时

@ophub
Copy link
Owner

ophub commented Aug 18, 2022

截图,是点开始安装的时候?这个错误多点几次就好了,有时候开始安装点击的时候是失败,多点几次

@Fengke6
Copy link
Author

Fengke6 commented Aug 18, 2022

按照f大教程里的步骤,用的远程安装

@ophub
Copy link
Owner

ophub commented Aug 18, 2022

你这表述不知道你在操作哪步
描述你操作到哪一步了,截取图片包含你的上下步骤,

@Fengke6
Copy link
Author

Fengke6 commented Aug 18, 2022

Uploading IMG_20220818_165729.jpg…

1 similar comment
@Fengke6
Copy link
Author

Fengke6 commented Aug 18, 2022

Uploading IMG_20220818_165729.jpg…

@ophub
Copy link
Owner

ophub commented Aug 18, 2022

你发的图片一个也看不见

Snip20220818_2

@Fengke6
Copy link
Author

Fengke6 commented Aug 18, 2022

网络问题吧,就是按照f大步骤一步一步来的,点击开始安装时出现标题

@ophub
Copy link
Owner

ophub commented Aug 18, 2022

多点几次。什么盒子?

@Fengke6
Copy link
Author

Fengke6 commented Aug 18, 2022

多点。什么盒子?

TX8 MAX 芯片S912,安装对应210,蓝牙不能用,WiFi可以用

@ophub
Copy link
Owner

ophub commented Aug 18, 2022

这是千兆盒子?你的蓝牙是什么芯片?
210的蓝牙是qca9377

https://www.gearbest.com/tv-box-mini-pc/pp_636787.html
是这个盒子?我查了下是千兆有线。你查查他的蓝牙芯片是什么。

@Fengke6
Copy link
Author

Fengke6 commented Aug 18, 2022

210蓝牙是什么? 这款https://www.tanix-box.com/download-view/tx8-max-firmware-3gb-16gb32gb-9377-android-7-1-2-full-image-beta/ WiFi/BT:9377 ram 3G ROM 32G 安装选择的Nexbox A95X A2

@ophub
Copy link
Owner

ophub commented Aug 18, 2022

9377应该是可以使用的啊,a2上使用这个dtb蓝牙无线都可以使用,你稍等我给你整个dtb你试试

你现在系统里的内核版本是哪个?

@Fengke6
Copy link
Author

Fengke6 commented Aug 18, 2022

我重启了还是不行

@Fengke6
Copy link
Author

Fengke6 commented Aug 18, 2022

9377应该是可以使用的啊,a2上使用dtb蓝牙等我都可以使用,你给你整个dtb你

你现在系统里的内核版本是哪个?

内核是5.15.61

@Fengke6
Copy link
Author

Fengke6 commented Aug 18, 2022

IMG_20220818_165729

@ophub
Copy link
Owner

ophub commented Aug 18, 2022

你上图的错误就是他说明文档里的 5.3 EFI 启动失败,我也有遇到,多点几次开始安装,我点了四五次报错,多点几次才安装开始

添加了9377蓝牙,你试试:meson-gxm-tx8-max.dtb.zip

下载并解压缩这个文件,得到meson-gxm-tx8-max.dtb
把他上传到/boot/dtb/amlogic目录里
然后修改/boot/uEnv.txt文件,把里面的dtb名字改为这个meson-gxm-tx8-max.dtb
保存并重启:sync && reboot

重启后看看蓝牙是否启动:dmesg | grep Blue*
截图反馈下

@Fengke6
Copy link
Author

Fengke6 commented Aug 18, 2022

dmesg | grep Blue*

root@armbian:~# dmesg | grep Blue*
[ 10.903072] Bluetooth: Core ver 2.22
[ 10.909079] Bluetooth: Starting self testing
[ 10.932175] Bluetooth: ECDH test passed in 16774 usecs
[ 10.949518] Bluetooth: SMP test passed in 5524 usecs
[ 10.949582] Bluetooth: Finished self testing
[ 10.953362] Bluetooth: HCI device and connection manager initialized
[ 10.953381] Bluetooth: HCI socket layer initialized
[ 10.953390] Bluetooth: L2CAP socket layer initialized
[ 10.953427] Bluetooth: SCO socket layer initialized
[ 11.085018] Bluetooth: HCI UART driver ver 2.3
[ 11.085039] Bluetooth: HCI UART protocol H4 registered
[ 11.085044] Bluetooth: HCI UART protocol BCSP registered
[ 11.090744] Bluetooth: HCI UART protocol LL registered
[ 11.105552] Bluetooth: HCI UART protocol ATH3K registered
[ 11.105683] Bluetooth: HCI UART protocol Three-wire (H5) registered
[ 11.117065] Bluetooth: HCI UART protocol Intel registered
[ 11.136230] Bluetooth: HCI UART protocol Broadcom registered
[ 11.147543] Bluetooth: HCI UART protocol QCA registered
[ 11.152432] Bluetooth: HCI UART protocol AG6XX registered
[ 11.157860] Bluetooth: HCI UART protocol Marvell registered
[ 11.176437] Bluetooth: hci0: setting up ROME/QCA6390
[ 11.390782] Bluetooth: hci0: Frame reassembly failed (-84)
[ 11.390830] Bluetooth: hci0: Frame reassembly failed (-84)
[ 11.591200] systemd[1]: Reached target Bluetooth Support.
[ 13.709300] Bluetooth: hci0: command 0xfc00 tx timeout
[ 21.816131] Bluetooth: hci0: Reading QCA version information failed (-110)
[ 21.828823] Bluetooth: hci0: Retry BT power ON:0
[ 22.047613] Bluetooth: hci0: Frame reassembly failed (-84)
[ 24.375986] Bluetooth: hci0: command 0xfc00 tx timeout
[ 32.485954] Bluetooth: hci0: Reading QCA version information failed (-110)
[ 32.487220] Bluetooth: hci0: Retry BT power ON:1
[ 32.704024] Bluetooth: hci0: Frame reassembly failed (-84)
[ 32.704088] Bluetooth: hci0: Frame reassembly failed (-84)
[ 35.045964] Bluetooth: hci0: command 0xfc00 tx timeout
[ 43.149331] Bluetooth: hci0: Reading QCA version information failed (-110)
[ 43.150618] Bluetooth: hci0: Retry BT power ON:2
[ 43.364349] Bluetooth: hci0: Frame reassembly failed (-84)
[ 45.712646] Bluetooth: hci0: command 0xfc00 tx timeout
[ 53.815936] Bluetooth: hci0: Reading QCA version information failed (-110)

@ophub
Copy link
Owner

ophub commented Aug 18, 2022

meson-gxm-tx8-max.dtb.zip

我修改了一下,你下载这个,解压缩,覆盖原文件/boot/dtb/amlogic/meson-gxm-tx8-max.dtb

保存并重启:sync && reboot

重启后看看蓝牙是否启动:dmesg | grep Blue*
截图反馈下

@xcray
Copy link

xcray commented Aug 18, 2022

不会是qcow2.xz没有解压吧?

@Fengke6
Copy link
Author

Fengke6 commented Aug 18, 2022

确实没有解压.7Z格式

@ophub
Copy link
Owner

ophub commented Aug 18, 2022

阿门,这都让你猜到了。
上面的第二个编译的dtb能不能激活蓝牙?

@Fengke6
Copy link
Author

Fengke6 commented Aug 18, 2022

介子-gxm-tx8-max.dtb.zip

我修改了,你下载了这个,解压缩,覆盖原文件/boot/dtb/amlogic/meson-gxm-tx8-max.dtb

保存并重启:sync && reboot

重启后查看蓝牙是否启动:dmesg | grep Blue* 截图反馈

root@armbian:# dmesg | grep Blue*
root@armbian:
# dmesg | grep Blue*
root@armbian:~#

没输出是不是OK了

@Fengke6
Copy link
Author

Fengke6 commented Aug 18, 2022

阿门,这都让你猜到了 。

以前刷F大的都不解压,这次教程里也没说,我就直接传了。
解压后重建虚拟系统,还是这样。不过我发现重置虚拟系统刚启动时,按esc,会调到KVM设置界面

@ophub
Copy link
Owner

ophub commented Aug 18, 2022

不可能没输出啊,哪怕错误信息也得输出吧
armbian-config --- Network --- BT Install
你进入这个,选择蓝牙,安装,试试看看

@Fengke6
Copy link
Author

Fengke6 commented Aug 18, 2022

2

@Fengke6
Copy link
Author

Fengke6 commented Aug 18, 2022

捕获

@ophub
Copy link
Owner

ophub commented Aug 18, 2022

你先试试蓝牙

虚拟机这个要一步步截图,看看你哪步不对。

@Fengke6
Copy link
Author

Fengke6 commented Aug 18, 2022

你先试试蓝牙

虚拟机这个要步骤截图,看看你哪一步不对。

安装BT后 输入dmesg | grep Blue* 还重启了,跟刚才一样没输出

@ophub
Copy link
Owner

ophub commented Aug 18, 2022

恭喜恭喜,KVM环境是通过armbian-software安装的?还是依次按照教程复制粘贴的?

@Fengke6
Copy link
Author

Fengke6 commented Aug 18, 2022

用的教程力度,然后用的X11,没装桌面环境

@xcray
Copy link

xcray commented Aug 18, 2022

要不你有空的时候用usb试试OpenWrt,看看这个固件的蓝牙能不能用,a2的用户反馈是可以用的。

https://github.com/ophub/amlogic-s9xxx-openwrt/releases/tag/OpenWrt_Aml_lede_08.17.1311

老大,这个镜像里没有蓝牙必备的bluez,尝试安装的话提示内核模块版本不匹配。。。难道只能自己再重新编译一个?
翻了翻文档,感觉一时半会儿的搞不明白。

@ophub
Copy link
Owner

ophub commented Aug 19, 2022

你也是一个tx8 max盒子?还是a2呢?

@xcray
Copy link

xcray commented Aug 19, 2022

你也是一个tx8 max盒子?还是a2呢?

只有tx8 max和a2用的镜像里有bluez?我以为所有的镜像根系统都基本一样呢。
我的是m401a/cm311-1a,之前尝试openwrt来着,发现除了自己编译外都没办法安装bluez,就放弃转armbian了。

@xcray
Copy link

xcray commented Aug 19, 2022

阿门,这都让你猜到了 。

以前刷F大的都不解压,这次教程里也没说,我就直接传了。 解压后重建虚拟系统,还是这样。不过我发现重置虚拟系统刚启动时,按esc,会调到KVM设置界面

不解压也能行?
我参考f大教程装了hassos,第一次没解压,问题和你开始一样,然后解压重建虚拟机直接就起来了。
顺便说一下,感觉o大已经把系统里的脚本整理好了,armbian-software安装kvm后几乎所有设置都是正好的,直接建虚拟机就行。

@ophub
Copy link
Owner

ophub commented Aug 19, 2022

https://github.com/unifreq/linux-5.15.y/blob/08bc1167099a545afdaee0fade8de320ba3e27ea/arch/arm64/boot/dts/amlogic/meson-gxl-s905x-tbee.dts#L23

有些芯片要在dtb里面添加,比如qca9377蓝牙是这样添加,tbee就是在meson-gxl-s905x-p212.dtb的原型上添加了这个蓝牙即可使用

@Fengke6
Copy link
Author

Fengke6 commented Aug 19, 2022

阿门,这都让你猜到了 。

以前刷F大的都不解压,这次教程里也没说,我就直接传了。 解压后重建虚拟系统,还是这样。不过我发现重置虚拟系统刚启动时,按esc,会调到KVM设置界面

不解压也能行? 我参考f大教程装了hassos,第一次没解压,问题和你开始一样,然后解压重建虚拟机直接就起来了。 顺便说一下,感觉o大已经把系统里的脚本整理好了,armbian-software安装kvm后几乎所有设置都是正好的,直接建虚拟机就行。

你说的是对的用o大armbian-software安装的kvm,不用安装X11字库,会自动建立bv0虚拟网卡(要reboot才能使用)。

@Fengke6
Copy link
Author

Fengke6 commented Aug 19, 2022

捕获
这种情况怎么解决_

@ophub
Copy link
Owner

ophub commented Aug 19, 2022

看你的name最后一个词 openwrt

@xcray
Copy link

xcray commented Aug 19, 2022

有些芯片要在dtb里面添加,比如qca9377蓝牙是这样添加,tbee就是在meson-gxl-s905x-p212.dtb的原型上添加了这个蓝牙即可使用

这个我理解只是把蓝牙硬件驱动起来,bluez还是必须得有的吧?除了编译固件时把它选进去,后期安装好像还是会因为内核模块版本问题受阻?

@Fengke6
Copy link
Author

Fengke6 commented Aug 19, 2022

明白了,正确的命令是virsh start openwrt要去掉vm_

@ophub
Copy link
Owner

ophub commented Aug 19, 2022

驱动有了,在armbian-config 里安装蓝牙即可使用

@xcray
Copy link

xcray commented Aug 19, 2022

驱动有了,在armbian-config 里安装蓝牙即可使用

老大,刚才说的是openwrt。。。armbian里面我已经学会了,openwrt里面搞不定。如果openwrt里面能搞定蓝牙的话,就值得试试了。

@Fengke6
Copy link
Author

Fengke6 commented Aug 19, 2022

驱动有了,在armbian-config 里安装蓝牙即可使用

我试下给你答复

@ophub
Copy link
Owner

ophub commented Aug 19, 2022

ophub/amlogic-s9xxx-openwrt@4c107bf

https://github.com/ophub/amlogic-s9xxx-openwrt/blob/ff9955112c9e1e75897ba628d2eaa089ba82e864/make#L531-L534

a2这个qca9377蓝牙,无线,有线都可用

@Fengke6
Copy link
Author

Fengke6 commented Aug 19, 2022

@Fengke6
Copy link
Author

Fengke6 commented Aug 19, 2022

ophub/amlogic-s9xxx-openwrt@4c107bf
https://github.com/ophub/amlogic-s9xxx-openwrt/blob/ff9955112c9e1e75897ba628d2eaa089ba82e864/make#L531-L534

用天最后那个dbt,更新驱动后能用了。 蓝牙000

dmesg | grep Blue*
[ 9.855537] Bluetooth: Core ver 2.22
[ 9.868921] Bluetooth: Starting self testing
[ 9.900982] Bluetooth: ECDH test passed in 12122 usecs
[ 9.908189] Bluetooth: SMP test passed in 3884 usecs
[ 9.911384] Bluetooth: Finished self testing
[ 9.935194] Bluetooth: HCI device and connection manager initialized
[ 9.941508] Bluetooth: HCI socket layer initialized
[ 9.946302] Bluetooth: L2CAP socket layer initialized
[ 9.951389] Bluetooth: SCO socket layer initialized
[ 9.988292] Bluetooth: HCI UART driver ver 2.3
[ 9.993508] Bluetooth: HCI UART protocol H4 registered
[ 10.002511] Bluetooth: HCI UART protocol BCSP registered
[ 10.002705] Bluetooth: HCI UART protocol LL registered
[ 10.012953] Bluetooth: HCI UART protocol ATH3K registered
[ 10.013121] Bluetooth: HCI UART protocol Three-wire (H5) registered
[ 10.035251] Bluetooth: HCI UART protocol Intel registered
[ 10.043794] Bluetooth: HCI UART protocol Broadcom registered
[ 10.043898] Bluetooth: HCI UART protocol QCA registered
[ 10.043903] Bluetooth: HCI UART protocol AG6XX registered
[ 10.043960] Bluetooth: HCI UART protocol Marvell registered
[ 10.044835] Bluetooth: hci0: setting up ROME/QCA6390
[ 10.253940] Bluetooth: hci0: Frame reassembly failed (-84)
[ 10.540287] Bluetooth: hci0: QCA Product ID :0x00000008
[ 10.540307] Bluetooth: hci0: QCA SOC Version :0x00000023
[ 10.540311] Bluetooth: hci0: QCA ROM Version :0x00000302
[ 10.540316] Bluetooth: hci0: QCA Patch Version:0x00000111
[ 10.540325] Bluetooth: hci0: QCA controller version 0x00230302
[ 10.540332] Bluetooth: hci0: QCA Downloading qca/rampatch_00230302.bin
[ 10.540540] Bluetooth: hci0: QCA Failed to request file: qca/rampatch_0023030 2.bin (-2)
[ 10.540546] Bluetooth: hci0: QCA Failed to download patch (-2)
[ 19.997314] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[ 20.000434] Bluetooth: BNEP filters: protocol multicast
[ 20.005150] Bluetooth: BNEP socket layer initialized
[ 20.027730] Bluetooth: hci0: setting up ROME/QCA6390
[ 20.240656] Bluetooth: hci0: Frame reassembly failed (-84)
[ 20.509788] Bluetooth: hci0: QCA Product ID :0x00000008
[ 20.511649] Bluetooth: hci0: QCA SOC Version :0x00000023
[ 20.516862] Bluetooth: hci0: QCA ROM Version :0x00000302
[ 20.522137] Bluetooth: hci0: QCA Patch Version:0x00000111
[ 20.527542] Bluetooth: hci0: QCA controller version 0x00230302
[ 20.533280] Bluetooth: hci0: QCA Downloading qca/rampatch_00230302.bin
[ 20.548774] Bluetooth: hci0: QCA Failed to request file: qca/rampatch_0023030 2.bin (-2)
[ 20.556601] Bluetooth: hci0: QCA Failed to download patch (-2)
[ 125.687237] Bluetooth: hci0: Frame reassembly failed (-84)
[ 156.315866] Bluetooth: hci0: setting up ROME/QCA6390
[ 156.531487] Bluetooth: hci0: Frame reassembly failed (-84)
[ 156.803633] Bluetooth: hci0: QCA Product ID :0x00000008
[ 156.806918] Bluetooth: hci0: QCA SOC Version :0x00000023
[ 156.811955] Bluetooth: hci0: QCA ROM Version :0x00000302
[ 156.817291] Bluetooth: hci0: QCA Patch Version:0x00000111
[ 156.822646] Bluetooth: hci0: QCA controller version 0x00230302
[ 156.828428] Bluetooth: hci0: QCA Downloading qca/rampatch_00230302.bin
[ 156.844457] Bluetooth: hci0: QCA Failed to request file: qca/rampatch_0023030 2.bin (-2)
[ 156.852400] Bluetooth: hci0: QCA Failed to download patch (-2)

@ophub
Copy link
Owner

ophub commented Aug 19, 2022

你怎么更新的驱动,armbian-config里面添加蓝牙后就可以了?

那我向F大的内核库里提交一个你的专用dtb吧?

@ophub
Copy link
Owner

ophub commented Aug 19, 2022

你拆机看看蓝牙芯片是什么,qca9377在其他dtb添加的时候都正常识别了

@Fengke6
Copy link
Author

Fengke6 commented Aug 19, 2022

你拆机看看蓝牙芯片是什么,qca9377在其他dtb添加的时候都正常识别了

拆机这会不现实,身边没工具。反正蓝牙能用了,让f大添加到库里吧。。。。我删那条评论是输错命令了,刚又测试了下没问题。

@ophub
Copy link
Owner

ophub commented Aug 19, 2022

meson-gxm-tx8-max.dtb.zip

我忘了最后一个是怎么改的了,你试试是不是这个代码生成的。
解压缩后,覆盖同名文件

@Fengke6
Copy link
Author

Fengke6 commented Aug 19, 2022

蓝牙
捕获00
捕获001
捕获002
捕获003

这是更换[meson-gxm-tx8-max.dtb.zip]并重启的测试结果

@ophub ophub added documentation Improvements or additions to documentation support This need is supported labels Aug 20, 2022
@ophub
Copy link
Owner

ophub commented Aug 20, 2022

内核我提交给f大的仓库了。
安装列表里211是新添加的TX8 MAX盒子,以后再生成的固件将含有这个选项。
你的新设备发现及测试反馈我记入贡献者名单了。

@ophub
Copy link
Owner

ophub commented Aug 20, 2022

你的KVM安装和蓝牙都完美解决了,这个帖子关闭了。

@ophub ophub closed this as completed Aug 20, 2022
@Fengke6
Copy link
Author

Fengke6 commented Aug 21, 2022

你的KVM安装和蓝牙都完美解决了,这个帖子关闭了。

O第威武

@ophub ophub added the new box Research Fills in the Blanks label Feb 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation new box Research Fills in the Blanks support This need is supported
Projects
None yet
Development

No branches or pull requests

3 participants