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
6.26k stars 2.01k forks source link

请求适配SW799 #1326

Closed inoeud closed 1 year ago

inoeud commented 1 year ago

配置: 处理器 | RK3399, 双核 A72+四核 A53, 64 位, 1.8GHz 记忆 | 4 GB DDR3L 内存 存储 | 16 GB eMMC 5.1 无线技术 | 无线模块(AP6181/ BCM43362/1 wl0) 4G模块(YUGA CLM920) 捕获选项 | 与支持的移动设备建立蓝牙无线连接 连接 | USB 2.0 A 型 (×2) Type-C(usb3.0) RJ45 千兆以太网(RTL8211E) 音频接口(耳麦二合一)

OpenWrt、乌班图固件下载地址: http://files.kos.org.cn/%E7%91%9E%E8%8A%AF%E5%BE%AE/sw799/?C=M&O=D

安卓固件反编译提取 boot.dtb.txt boot.dts.txt

ophub commented 1 year ago

rk3399-sapphire-excavator.dtb rk3399-bozz.dtb 用的哪个dtb?

inoeud commented 1 year ago

rk3399-sapphire-excavator.dtb rk3399-bozz.dtb 用的哪个dtb?

不清楚(抱歉),我用的默认固件(小媳妇那个) root@orangepi-rk3399:/boot# uname -r 5.10.35-rockchip64

/boot/dtb-5.10.35-rockchip64/rockchip/rk3399-bozz.dtb 推测应该是rk3399-bozz.dtb

inoeud commented 1 year ago

missing environment variable: bootfile Retrieving file: pxelinux.cfg/default-arm-rk3399 Could not get PHY for ethernet@fe300000: addr -1 Could not get PHY for ethernet@fe300000: addr -1 Could not get PHY for ethernet@fe300000: addr -1 Could not get PHY for ethernet@fe300000: addr -1 No ethernet found.

ophub commented 1 year ago

现在你刷的这个固件可以正常使用吧

inoeud commented 1 year ago

现在你刷的这个固件可以正常使用吧 可以,但是在更新后会报错,无法启动 missing environment variable: bootfile Retrieving file: pxelinux.cfg/default-arm-rk3399 Could not get PHY for ethernet@fe300000: addr -1 Could not get PHY for ethernet@fe300000: addr -1 Could not get PHY for ethernet@fe300000: addr -1 Could not get PHY for ethernet@fe300000: addr -1 No ethernet found. 可是我已经在armbian-config里面冻结内核了? wifi似乎也无法使用(ap6236)

ophub commented 1 year ago

https://github.com/ophub/amlogic-s9xxx-armbian/releases/tag/Armbian_jammy_04.24.0239

下载试试

inoeud commented 1 year ago

https://github.com/ophub/amlogic-s9xxx-armbian/releases/tag/Armbian_jammy_04.24.0239

下载试试 下载中。 PS:搞错了,无线模块是ap6181

inoeud commented 1 year ago

RK3399大小核心似乎正确识别了,但A72的最高频只有1.8G这是啥原因?loader吗


Architecture:           aarch64
  CPU op-mode(s):       32-bit, 64-bit
  Byte Order:           Little Endian
CPU(s):                 6
  On-line CPU(s) list:  0-5
Vendor ID:              ARM
  Model name:           Cortex-A53
    Model:              4
    Thread(s) per core: 1
    Core(s) per socket: 4
    Socket(s):          1
    Stepping:           r0p4
    CPU max MHz:        1416.0000
    CPU min MHz:        408.0000
    BogoMIPS:           48.00
    Flags:              fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid
  Model name:           Cortex-A72
    Model:              2
    Thread(s) per core: 1
    Core(s) per socket: 2
    Socket(s):          1
    Stepping:           r0p2
    CPU max MHz:        1800.0000
    CPU min MHz:        408.0000
    BogoMIPS:           48.00
    Flags:              fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid
Vulnerabilities:        
  Itlb multihit:        Not affected
  L1tf:                 Not affected
  Mds:                  Not affected
  Meltdown:             Not affected
  Mmio stale data:      Not affected
  Retbleed:             Not affected
  Spec store bypass:    Vulnerable
  Spectre v1:           Mitigation; __user pointer sanitization
  Spectre v2:           Vulnerable
  Srbds:                Not affected
  Tsx async abort:      Not affected
inoeud commented 1 year ago

wifi正常使用,没问题

ophub commented 1 year ago

没dts源码,你反编译dtb改改吧,但是超频了会不稳定。

inoeud commented 1 year ago

没dts源码,你反编译dtb改改吧,但是超频了会不稳定。

了解。

inoeud commented 1 year ago

开机有一些关于usb和网卡的报错,这些能修复的吗?


[    1.049754] rk_gmac-dwmac fe300000.ethernet: cannot get clock clk_mac_speed

[   14.088250] OF: graph: no port node found in /i2c@ff3d0000/fusb302@22
[   14.092934] rkvdec ff660000.video-codec: Adding to iommu group 1
[   14.103373] brcmfmac: F1 signature read @0x18000000=0x1591a962
[   14.125972] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43362-sdio for chip BCM43362/1
[   14.1278

[   14.255160] usb 1-1: can't set config #1, error -71
[   14.257756] usb usb1-port1: disabled by hub (EMI?), re-enabling...
[   14.258419] usb 1-1: USB disconnect, device number 23
[   14.263405] systemd[1]: Finished Armbian leds state.
[   14.388218] zram: Added device: zram0
[   14.391027] zram: Added device: zram1
[   14.392083] zram: Added device: zram2
[   14.432736] brcmfmac: brcmf_c_process_clm_blob: no clm_blob available (err=-2), device may have limited channels available
[   14.434245] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM43362/1 wl0: Sep 18 2018 23:59:04 version 5.90.247 FWID 01-0

[   14.691987] usb 1-1: device descriptor read/64, error -71
[   14.703635] EXT4-fs (zram1): mounted filesystem without journal. Quota mode: none.
[   14.947958] usb 1-1: device descriptor read/64, error -71
[   15.184069] usb 1-1: new high-speed USB device number 25 using ehci-platform
[   15.744170] usb 1-1: device not accepting address 25, error -71
[   15.744861] usb usb1-port1: attempt power cycle
[   16.156182] usb 1-1: new high-speed USB device number 26 using ehci-platform
[   16.186740] usb 1-1: New USB device found, idVendor=1a40, idProduct=0101, bcdDevice= 1.11
[   16.187554] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[   16.188280] usb 1-1: Product: USB 2.0 Hub
[   16.190226] hub 1-1:1.0: USB hub found
[   16.191044] hub 1-1:1.0: 4 ports detected
[   16.296249] usb usb1-port1: disabled by hub (EMI?), re-enabling...
[   16.296858] usb 1-1: USB disconnect, device number 26
[   16.301492] hub 1-1:1.0: hub_ext_port_status failed (err = -71)
[   16.503208] systemd[1]: Finished Armbian memory supported logging.
[   16.529199] systemd[1]: Starting Journal Service...
[   16.576014] usb 1-1: new high-speed USB device number 27 using ehci-platform
[   16.674078] systemd[1]: Started Journal Service.
[   16.712307] systemd-journald[768]: Received client request to flush runtime journal.
[   16.824159] RPC: Registered named UNIX socket transport module.
[   16.824709] RPC: Registered udp transport module.
[   16.825135] RPC: Registered tcp transport module.
[   16.825549] RPC: Registered tcp NFSv4.1 backchannel transport module.
[   17.127973] usb 1-1: device not accepting address 27, error -71
[   17.258491] usb 1-1: new high-speed USB device number 28 using ehci-platform
[   17.412095] rd 0-5: Disabling EAS, schedutil is mandatory
[   17.425318] usb 1-1: unable to read config index 0 descriptor/all
[   17.425370] usb 1-1: can't read configurations, error -71
[   17.425511] usb usb1-port1: attempt power cycle
[   17.829023] rk_gmac-dwmac fe300000.ethernet eth0: Register MEM_TYPE_PAGE_POOL RxQ-0
[   17.831620] rk_gmac-dwmac fe300000.ethernet eth0: PHY [stmmac-0:00] driver [RTL8211E Gigabit Ethernet] (irq=POLL)
[   17.836003] usb 1-1: new high-speed USB device number 29 using ehci-platform
[   17.876842] usb 1-1: device descriptor read/8, error -71
[   18.017757] usb 1-1: device descriptor read/8, error -71
[   18.252150] usb 1-1: new high-speed USB device number 30 using ehci-platform
[   18.292700] usb 1-1: device descriptor read/8, error -71
[   18.444075] usb 1-1: device descriptor read/8, error -71
[   18.552180] usb usb1-port1: unable to enumerate USB device
ophub commented 1 year ago

这个板子是不是2.0的usb

ophub commented 1 year ago

u-boot使用的是其他开发版的,dtb是怎么来的呢?固件是哪个大佬分享的,问他要个dts源文件方便随时修改。

1Mirros commented 1 year ago

这个板子是不是2.0的usb

usb2.0 俩个,usb3.0 一个,还有一个usb3.0似乎没有引出来,或者是那个micro-b形状?

dts我已经上传了。在最上边。 https://github.com/ophub/amlogic-s9xxx-armbian/files/11306642/default.zip

d89f02999ac2bfbfecb6aab84c8d275 c1eda50e3f60723c74fbf4a3cd54d44 babf607af2b431acd047ded1ca675e8 mlogic-s9xxx-armbian/files/11306642/default.zip [图片]

啥ttl?好用么?

ophub commented 1 year ago

你那是个dtb反编译的文件,不是源码。 小改下局部可以,调整设置看着费劲。

inoeud commented 1 year ago

你那是个dtb反编译的文件,不是源码。 小改下局部可以,调整设置看着费劲。

w我想办法找找吧

inoeud commented 1 year ago

你那是个dtb反编译的文件,不是源码。 小改下局部可以,调整设置看着费劲。

禧云信息SW799 4G+16G 触摸屏7.1.2原版提取 链接:https://pan.baidu.com/s/10IkFVdMyH9QeE_JhFmuzog?pwd=fg3h 提取码:fg3h 据说是这个,还请看看。

ophub commented 1 year ago

这个是安卓系统的解包

Bixan commented 1 year ago

您好 这个固件在4G+8G的配置上下载失败 是什么原因呀

inoeud commented 1 year ago

这个是安卓系统的解包

boot.dts.txt 这是我从boot.img里面提取的dts,能力有限,只能做到这一步了。

inoeud commented 1 year ago

您好 这个固件在4G+8G的配置上下载失败 是什么原因呀

应该不至于吧?建议检查烧录姿势。

inoeud commented 1 year ago

有线网这块似乎有问题?不知道为啥,有时候会无故重启,已经遇到两次?不知道要如何查看重启原因。

Bixan commented 1 year ago

大佬 可以加入 AP6236无线模块的驱动吗

ophub commented 1 year ago

没有dts不好改,如果内核里有驱动,手动加载模块试试,可以在启动里加一个默认加载

Bixan commented 1 year ago

没有dts不好改,如果内核里有驱动,手动加载模块试试,可以在启动里加一个默认加载

好的

starskyzheng commented 1 year ago

sw799a 无hdmi的版本。系统烧录在sd卡,开机后有线网联不通,用 http://files.kos.org.cn/rockchip/sw799/Armbian_21.08.1_sw799_focal_current_5.10.60-linge.7z 是正常的。 板子没有hdmi,也看不出为啥会这样。

大佬,这儿有个dts,请问可以试试这个嘛? http://files.kos.org.cn/rockchip/sw799/%E5%8E%9F%E7%89%88%E5%8F%8D%E7%BC%96%E8%AF%91.dts

ophub commented 1 year ago

用你发的这个固件里的dtb更新了,你试试刚打包的这个:

https://github.com/ophub/amlogic-s9xxx-armbian/releases/download/Armbian_jammy_save_2023.06/Armbian_23.08.0_rockchip_sw799_jammy_6.1.35_2023.06.25.img.gz

starskyzheng commented 1 year ago

很奇怪,还是一样不行 ping的时候,笔记本网口和板子网口的灯都在闪,就是ping不通,nmap也不通

chamoyo commented 1 year ago

这块核心板马上就出新的双网口底板,有HDMI,有USB3,到时候再研究吧

hhhfsj commented 1 year ago

很奇怪,还是一样 打不通的时候,笔记本网口和板子网口的灯都闪,就是ping不通,nmap也不通

需禁用USB网卡(它那个4G模块是挂在USB下的)

67113513 commented 1 year ago

大佬还有AP6236能用的img包吗?好像不论那种ap6xxx,dts中都是配置ap6354,是brcm自动识别的吗?

PS:6236问题解决了,一开始根据树莓派的链接拷贝brcm43436,web上有无线菜单但是没有信号。后来看到armbian上配置的是brcm43436b0,把firmware拷贝过来就可以用了。但是网速太慢

whirly-eagle commented 1 year ago

大佬还有AP6236能用的img包吗?好像不论那种ap6xxx,dts中都是配置ap6354,是brcm自动识别的吗?

PS:6236问题解决了,一开始根据树莓派的链接拷贝brcm43436,web上有无线菜单但是没有信号。后来看到armbian上配置的是brcm43436b0,把firmware拷贝过来就可以用了。但是网速太慢

大佬,具体怎么做,我复制了firmware以后依然没有wifi

67113513 commented 1 year ago

大佬还有AP6236能用的img包吗?好像不论那种ap6xxx,dts中都是配置ap6354,是brcm自动识别的吗? PS:6236问题解决了,一开始根据树莓派的链接拷贝brcm43436,web上有无线菜单但是没有信号。后来看到armbian上配置的是brcm43436b0,把firmware拷贝过来就可以用了。但是网速太慢

大佬,具体怎么做,我复制了firmware以后依然没有wifi

好像是在/lib/firmware/brcm 目录下面创建链接,链接名称是根据dmesg中记录的系统需要的文件名称。

67113513 commented 1 year ago

SW799原版(非提取)固件+烧录软件+烧录方法 链接:https://pan.baidu.com/s/1hMptnVWtDfAKirZsfUqTDw 提取码:g2m1

大佬有没有源码可以分享,方便自己做定制。

pewee-live commented 1 year ago

烧录了以后有报错,然后就卡在这了进不去 命令行

image
dutong0321 commented 11 months ago

我来做个反馈,我的板子是SW7990K VER1.4(带核心板SW799A VER1.2) 模型:SW7990K VER1.4(带核心板SW799A VER1.2),之前烧6.X内核无法启动,今天烧写了Armbian_23.11.0_rockchip_sw799_bookworm_5.15.140_server_2023.12.01.img版本,已经成功了,非常感谢大佬的开源

ophub commented 11 months ago

好的,感谢反馈

heruigit commented 11 months ago

大佬,我的wifi时ap6212芯片,刷了最新的固件之后只有wifi没有蓝牙,请问这个能修改一下dtb么?我看dtb里面的好像是ap6354.

ophub commented 11 months ago

armbian-config 选项蓝牙,安装,重启

heruigit commented 11 months ago

armbian-config 选项蓝牙,安装,重启

试过了,重启之后用hciconfig -a 打印蓝牙信息为空😭

67113513 commented 11 months ago

拷贝对应的firmware到/lib/firmware/brcm目录下了吗

heruigit commented 10 months ago

拷贝对应的firmware到/lib/firmware/brcm目录下了吗

你好,我拷贝过去了,但是依旧无法启动蓝牙。我下了1月最新的包,但是看了下系统使用的dts,里面没有bluetooth相关的设备,请问你目前使用的是哪个版本的系统?

heruigit commented 10 months ago

反馈一下,修改了dtb中的serial@ff180000节点,主要是增加bluetooth节点。

    serial@ff180000 {
        compatible = "rockchip,rk3399-uart\0snps,dw-apb-uart";
        reg = <0x00 0xff180000 0x00 0x100>;
        clocks = <0x08 0x51 0x08 0x160>;
        clock-names = "baudclk\0apb_pclk";
        interrupts = <0x00 0x63 0x04 0x00>;
        reg-shift = <0x02>;
        reg-io-width = <0x04>;
        pinctrl-names = "default";
        pinctrl-0 = <0x3f 0x40 0x41>;
        status = "okay";
        bluetooth {
            compatible = "brcm,bcm43438-bt";
            clocks = <0xba 0x01>;
            clock-names = "lpo";
            device-wakeup-gpios = <0x87 0x1a 0x00>;
            host-wakeup-gpios = <0x22 0x04 0x00>;
            shutdown-gpios = <0x22 0x09 0x00>;
            max-speed = <4000000>;
            pinctrl-names = "default";
            pinctrl-0 = <0xc7 0xc8 0xc9>;
            vbat-supply = <0x16>;
            vddio-supply = <0x77>;
        };
    };

在pinctrl中增加

        bt {
            bt_host_wake_l: bt-host-wake-l {
                rockchip,pins = <0x00 0x04 0x00 0xb3>;
                phandle = <0xc7>;
            };

            bt_reg_on_h: bt-reg-on-h {
                rockchip,pins = <0x00 0x09 0x00 0xb3>;
                phandle = <0xc8>;
            };

            bt_wake_l: bt-wake-l {
                rockchip,pins = <0x02 0x1a 0x00 0xb3>;
                phandle = <0xc9>;
            };
        };

可以成功驱动蓝牙了。 image

ophub commented 10 months ago

@heruigit 测试好了,上传分享一个你修改的dtb文件。

DenisDangt commented 10 months ago

很奇怪,还是一样 打不通的时候,笔记本网口和板子网口的灯都闪,就是ping不通,nmap也不通

需禁用USB网卡(它那个4G模块是挂在USB下的)

大佬,怎么禁用usb网卡?

heruigit commented 10 months ago

@heruigit 测试好了,上传分享一个你修改的dtb文件。

@ophub

修改的diff:

root@armbian:~# diff new.txt origin.txt
681,693d680
<               bluetooth {
<                       compatible = "brcm,bcm43438-bt";
<                       clocks = <0xba 0x01>;
<                       clock-names = "ext_clock";
<                       device-wakeup-gpios = <0x87 0x1a 0x00>;
<                       host-wakeup-gpios = <0x22 0x04 0x00>;
<                       shutdown-gpios = <0x22 0x09 0x00>;
<                       max-speed = <4000000>;
<                       pinctrl-names = "default";
<                       pinctrl-0 = <0xc7 0xc9>;
<                       vbat-supply = <0x16>;
<                       vddio-supply = <0x77>;
<               };
2351,2362d2337
<
<               bt {
<                       bt_host_wake_l: bt-host-wake-l {
<                               rockchip,pins = <0x00 0x04 0x00 0xb3>;
<                               phandle = <0xc7>;
<                       };
<
<                       bt_wake_l: bt-wake-l {
<                               rockchip,pins = <0x02 0x1a 0x00 0xb3>;
<                               phandle = <0xc9>;
<                       };
<               };

修改之后的dts: new.txt 修改之后的dtb: new.zip

ophub commented 10 months ago

感谢分享,已经更新到仓库了。

EXIA18 commented 9 months ago

Armbian_23.11.0_rockchip_sw799_bookworm_5.15.140_server_2023.12.01.img 谁提供一下这个包

EXIA18 commented 9 months ago

我来做个反馈,我的板子是SW7990K VER1.4(带核心板SW799A VER1.2) 模型:SW7990K VER1.4(带核心板SW799A VER1.2),之前烧6.X内核无法启动,今天烧写了Armbian_23.11.0_rockchip_sw799_bookworm_5.15.140_server_2023.12.01.img版本,已经成功了,非常感谢大佬的开源

求这个包