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.45k stars 1.74k forks source link

我有个x96 air 2g +16G wifi rtl8189ftv的盒子,请问下这个能否刷入emmc #105

Closed lx7741 closed 2 years ago

lx7741 commented 2 years ago

我使用x96 air的dtb-100可以跑起来,但是一直报rtl871x错误。 使用x96 max+刷入emmc无法启动。 微信图片_20220209184328 微信图片_20220209184336

ophub commented 2 years ago

可以

lx7741 commented 2 years ago

请问下,如果是5.10以上版本的内核,刷入emmc没有uboot,这个要使用哪个版本的uboot呢?还有那个错误要如何解决呢?

ophub commented 2 years ago

试试

meson-sm1-x96-air-1000.dtb
meson-sm1-x96-air-100.dtb
lx7741 commented 2 years ago

试试meson-sm1-x96-air-1000.dtb

好的,我试试。那刷emmc要怎么刷入呢?需不需要更新uboot?armbian-install no还是直接armbian-install?谢谢!!!

ophub commented 2 years ago

https://github.com/ophub/amlogic-s9xxx-armbian/blob/35c5f283b398d8e67c12c031ee3781348aba87b6/build-armbian/common-files/files/usr/sbin/armbian-install#L117

你参照58行,写一个59,DBT改成你测试可以使用的。因为缺少反馈,这个设备虽然在支持列表里,但是一直没给他添加专用编号。你测试好了反馈下,我添加一下安装序号进去。

armbian-install

lx7741 commented 2 years ago

meson-sm1-x96-air-100.dtb 我就是用的这个会报rtl错误,应该是wifi模块型号不一样,但是wifi可以使用。。

lx7741 commented 2 years ago

58:Ugoos X3(OverClock):s905x3:meson-sm1-ugoos-x3-oc.dtb:u-boot-ugoos-x3.bin:NA:NA:4C@2208Mhz,2(Cube)/4(Pro,Plus)GB Mem,1Gb Net,Wifi

你参照58行,写一个59,DBT改成你测试可以使用的。因为缺少反馈,这个设备虽然在支持列表里,但是一直没给他添加专用编号。你测试好了反馈下,我添加一下安装序号进去。

armbian-install

可是我没有他专用的X96 u-boot,这个地方我要填写什么呢?

ophub commented 2 years ago

https://github.com/unifreq/linux-5.10.y/commit/b68d61dcf9f274825a2b9330131829679cb81300

Add rtl8189fs driver的驱动f大最近添加的,但是缺少在x96 air中的使用反馈,在b860p里可以使用。

ophub commented 2 years ago

可是我没有他专用的X96 u-boot,这个地方我要填写什么呢?

cat /etc/ophub-release

这里写的就是你当前盒子启动的配置,你先修改/boot/uEnv.txt ,从usb启动,如果可以正常启动,就对了,你在安装脚本里添加59序号,后面就写这里的文件,其中dtb改成你测试的。

lx7741 commented 2 years ago

可是我没有他专用的X96 u-boot,这个地方我要填写什么呢?

cat /etc/ophub-release

这里写的就是你当前盒子启动的配置,你先修改/boot/uEnv.txt ,从usb启动,如果可以正常启动,就对了,你在安装脚本里添加59序号,后面就写这里的文件,其中dtb改成你测试的。

好的,谢谢大佬!!我试试!!

ophub commented 2 years ago

你稍等我给你写个试试

lx7741 commented 2 years ago

你稍等我给你写个试试

好的!!

ophub commented 2 years ago

我只修改了dtb文件,其他的u-boot你看看使用的什么,你可以拿s905x3的x96max的固件修改uEnv.txt,并从usb启动测试。

59:X96 Air:s905x3:meson-sm1-x96-air-1000.dtb:u-boot-x96maxplus.bin:/lib/u-boot/x96maxplus-u-boot.bin.sd.bin:/lib/u-boot/hk1box-bootloader.img:4C@2100Mhz,4GB Mem,1Gb Net
lx7741 commented 2 years ago

我只修改了dtb文件,其他的u-boot你看看使用的什么,你可以拿s905x3的x96max的固件修改uEnv.txt,并从usb启动测试。

59:X96 Air:s905x3:meson-sm1-x96-air-1000.dtb:u-boot-x96maxplus.bin:/lib/u-boot/x96maxplus-u-boot.bin.sd.bin:/lib/u-boot/hk1box-bootloader.img:4C@2100Mhz,4GB Mem,1Gb Net

收到!谢谢大佬!

lx7741 commented 2 years ago

我试了下,在USB上跑是可以的,一旦刷入emmc后开机动画都没了,u-boot启动报错,网络也没了。只能短接重新刷android固件。

ophub commented 2 years ago
59:X96 Air:s905x3:meson-sm1-x96-air-1000.dtb:u-boot-x96maxplus.bin:NA:NA:4C@2100Mhz,4GB Mem,1Gb Net

那就去掉主线写入的这个,再试一下

lx7741 commented 2 years ago
59:X96 Air:s905x3:meson-sm1-x96-air-1000.dtb:u-boot-x96maxplus.bin:NA:NA:4C@2100Mhz,4GB Mem,1Gb Net

那就去掉主线写入的这个,再试一下

好的,我试试!

ophub commented 2 years ago

你试的是哪一个内核呢?5.4还是5.10

lx7741 commented 2 years ago

你试的是哪一个内核呢?5.4还是5.10

5.10内核

ophub commented 2 years ago

好的

lx7741 commented 2 years ago

59:X96 Air:s905x3:meson-sm1-x96-air-1000.dtb:u-boot-x96maxplus.bin:NA:NA:4C@2100Mhz,4GB Mem,1Gb Net 使用这个后,开机logo没了,直接黑屏,插入U盘可以进入系统。 就是无法进入emmc。请问下logo没了,是什么原因呢? 还有最新的rebuild拷贝文件权限好像有问题,我这边改成使用cp -rf -p

lx7741 commented 2 years ago

我的问题跟https://github.com/ophub/amlogic-s9xxx-armbian/issues/95 差不多,使用mbian_20.10_Arm-64_bullseye_current_5.9.0.img.xz:可以刷入emmc,但是重启网络有时候没有,所以才升级版本试试。。

ophub commented 2 years ago

你的盒子是百兆的? USB启动使用的是meson-sm1-x96-max-plus-100m.dtb的文件,写入emmc时由安装脚本修改为使用千兆的dtb

lx7741 commented 2 years ago

你的盒子是百兆的? USB启动使用的是meson-sm1-x96-max-plus-100m.dtb的文件,写入emmc时由安装脚本修改为使用千兆的dtb

也是不行,我换了千兆的dtb也是黑屏,u-boot能否输出debug信息?

ophub commented 2 years ago

我是说你换成百兆的,你的盒子不是千兆的吧

lx7741 commented 2 years ago

早上试了下,使用Armbian_22.02.0_Aml_s905x3_bullseye_5.4.180_2022.02.22.2200.img包可以刷入emmc 脚本为 59:X96 Air:s905x3:meson-sm1-x96-air-100.dtb:NA:NA:NA:4C@2100Mhz,2GB Mem,100 Net,,Wifi 但是一直刷新rtl871x的wifi错误。我的wifi模块是rtl8189ftv好像跟rtl8189fs有点区别,我使用5.10.92内核(armbian,编译的Odroid HC4)没有报这个错误,好像f大的内核没有这个驱动。5.10的内核刷入emmc无法启动。(PS:我改了下刷入脚本,参考install-aml.sh脚本改的,改完以后刷入emmc会显示logo) armbian-install.zip

ophub commented 2 years ago
FDTFILE="meson-sm1-x96-air-100.dtb"
UBOOT_OVERLOAD="u-boot-x96max.bin"
MAINLINE_UBOOT="x96max-u-boot.bin.sd.bin"
# armbian-install
59:X96 Air:s905x3:meson-sm1-x96-air-100.dtb:u-boot-x96max.bin:x96max-u-boot.bin.sd.bin:NA:4C@2100Mhz,2GB Mem,100M Net,Wifi

你使用5.10的固件,修改下 /boot/uEnv.txt 为 meson-sm1-x96-air-100.dtb,安装脚本里对应修改你的59序号为这3个,试试USB能否启动,写入emmc能否使用。

你5.4写入emmc可以使用,说明dtb是正确的。现在只要找到对应的u-boot即可

lx7741 commented 2 years ago

我最早就是这个配置,但是没有用MAINLINE_BOOT,用的自带的android bootloader,启动黑屏。 我等下试试使用mainline_uboot看看。还有使用f大的5.4内核,进入desktop后,鼠标键盘无法使用

lx7741 commented 2 years ago
FDTFILE="meson-sm1-x96-air-100.dtb"
UBOOT_OVERLOAD="u-boot-x96max.bin"
MAINLINE_UBOOT="x96max-u-boot.bin.sd.bin"
# armbian-install
59:X96 Air:s905x3:meson-sm1-x96-air-100.dtb:u-boot-x96max.bin:x96max-u-boot.bin.sd.bin:NA:4C@2100Mhz,2GB Mem,100M Net,Wifi

你使用5.10的固件,修改下 /boot/uEnv.txt 为 meson-sm1-x96-air-100.dtb,安装脚本里对应修改你的59序号为这3个,试试USB能否启动,写入emmc能否使用。

你5.4写入emmc可以使用,说明dtb是正确的。现在只要找到对应的u-boot即可

使用这个配置可以启动5.10版本,启动没有logo,eth0网卡没有识别。

ophub commented 2 years ago

你是接的显示器使用?把盒子用网线接入有线网络,你从路由器里面找一下armbian设备的ip,从其他电脑使用ssh访问这个盒子试试

lx7741 commented 2 years ago

你是接的显示器使用?把盒子用网线接入有线网络,你从路由器里面找一下armbian设备的ip,从其他电脑使用ssh访问这个盒子试试

我是接的显示器使用,我盒子接入的有线网络。

ophub commented 2 years ago

你的意思是5.4的可以用?5.10的没有网络?

lx7741 commented 2 years ago

你的意思是5.4的可以用?5.10的没有网络?

5.10要刷入MAINLINE_UBOOT="x96max-u-boot.bin.sd.bin" 导致开机logo没有,网络没有,如果是5.4版本的话,是不需要刷入MAINLINE_UBOOT="x96max-u-boot.bin.sd.bin"这个,我还原了android的bootloader以后,5.10开机显示logo后就黑屏,所以应该是android的bootloader不能启动5.10的内核?

ophub commented 2 years ago

这个主线不是必须的,可以去掉,有boot下的u-boot即可。

lx7741 commented 2 years ago

这个主线不是必须的,可以去掉,有boot下的u-boot即可

那现象就是5.10加载不起来,一直黑屏,boot下的u-boot我再换换试试。。

ophub commented 2 years ago

安卓的不能直接用。 你先还原成安卓原系统。删除MAINLINE_UBOOT试试。你可以给/boot/u-boot对应的文件改名为u-boot.ext。你如果在windows下手动复制的话可能会丢失执行权限。 chmod +x u-boot.ext

lx7741 commented 2 years ago

安卓的不能直接用。 你先还原成安卓原系统。删除MAINLINE_UBOOT试试 我就是用的android原系统的,开机显示x96 air logo的那个bootloader,不是用hk1的那个

ophub commented 2 years ago
# armbian-install
59:X96 Air:s905x3:meson-sm1-x96-air-100.dtb:u-boot-x96max.bin:NA:NA:4C@2100Mhz,2GB Mem,100M Net,Wifi
lx7741 commented 2 years ago
# armbian-install
59:X96 Air:s905x3:meson-sm1-x96-air-100.dtb:u-boot-x96max.bin:NA:NA:4C@2100Mhz,2GB Mem,100M Net,Wifi

这个u-boot我替换上去也是黑屏。

ophub commented 2 years ago

黑屏说明HDMI驱动不对,但是不代表盒子不工作,其他电脑ssh访问这个盒子可以不?去路由器里看他的IP,如果可以ssh访问的话再解决HDMI驱动的问题。

lx7741 commented 2 years ago

黑屏说明HDMI驱动不对,但是不代表盒子不工作,其他电脑ssh访问这个盒子可以不?去路由器里看他的IP,如果可以ssh访问的话再解决HDMI驱动的问题。

我试了SSH也不行,路由器中就没有连接成功

ophub commented 2 years ago

u-boot-x96maxplus.bin

u-boot-s905x2-s922.bin

这两个你试过没

lx7741 commented 2 years ago

u-boot-x96maxplus.bin 这个你试过没

试过了。也是不行。 我现在使用5.4内核,就是为什么开机一直输出 微信图片_20220223191648 这个能不能关掉,或者屏蔽掉呢?

ophub commented 2 years ago

armbian-config 关掉无线

dinhchinh82 commented 2 years ago

@lx7741 have you got success with your x96 ar 2g+16G wifi RTL8189FTV yet?

As you know, I also got same issue with you.

@ophub There are 2 big issues with this box:

  1. Unable to boot from eMMC after flashing using armbian-install
  2. The Ethernet did not work stability.
ophub commented 2 years ago

It seems that dtb and u-boot are not suitable

dinhchinh82 commented 2 years ago

@ophub could you suggest any other solution to try? I already tried some solutions you suggest but still unable to boot from eMMC.

The strange point here is the box could boot from USB but after flashing to eMMC, it is unable to boot.

so my idea is how to flash the content to eMMC with same default setting when boot by USB?

ophub commented 2 years ago

If the 5.4 kernel is used to write emmc and it cannot be started, it means that the box locks the bootloader and does not allow writing, and can only be used on usb/tf/sd external devices

lx7741 commented 2 years ago

@lx7741 have you got success with your x96 ar 2g+16G wifi RTL8189FTV yet?

As you know, I also got same issue with you.

@ophub There are 2 big issues with this box:

  1. Unable to boot from eMMC after flashing using armbian-install
  2. The Ethernet did not work stability.

I use 5.4 kernel

ophub commented 2 years ago

If the configuration you write to the box is exactly the same as the configuration that was started by the usb, and the write cannot be used, it means that it is a locked area and can only be used on the usb.