20240531在飞凌的OK3588-C开发板上跑原厂的Buildroot测试ETH0接口【仅供参考】

20240531在飞凌的OK3588-C开发板上跑原厂的Buildroot测试ETH0接口
2024/5/31 20:28


root@rk3588-buildroot:/# ifconfig eth0 up
root@rk3588-buildroot:/# ifconfig eth1 up
root@rk3588-buildroot:/# ifconfig
root@rk3588-buildroot:/# 
root@rk3588-buildroot:/# ifconfig eth1 192.168.3.232
root@rk3588-buildroot:/# 
root@rk3588-buildroot:/# ifconfig
root@rk3588-buildroot:/# ping 192.168.3.85
rootroot@rootroot-ThinkBook-16-G5-IRH:~$ ping 192.168.3.232


由于ETH0/ETH1在莫名其妙的情况下被烧毁了!【都发烫了】
硬件花费了老鼻子劲才将ETH0修好。ETH1不想搞!
直接搬家的IPC的DTS上的gmac0,而不是飞凌原厂的DTS。因此本文仅供参考!
【后果/神奇的是,eth0变成eth1通了,但是摄像头找不到了!^_】

虽然可以PING通,但是只有黄色灯在闪烁,绿色灯没有亮,更不用说常亮了!

Z:\RK3588_IPC_SDK\sysdrv\source\kernel\arch\arm64\boot\dts\rockchip\rk3588-nvr-demo.dtsi
Z:\repo_RK3588_Buildroot20240508\kernel\arch\arm64\boot\dts\rockchip\rk3588-evb7-v11.dtsi
&dsi1_panel {
    power-supply = <&vcc3v3_lcd_n>;

    /*
     * because in hardware, the two screens share the reset pin,
     * so reset-gpios need only in dsi1 enable and dsi0 disabled
     * case.
     */

    //reset-gpios = <&gpio0 RK_PD3 GPIO_ACTIVE_LOW>;
    //pinctrl-names = "default";
    //pinctrl-0 = <&lcd_rst_gpio>;
};

&gmac0 {
    /* Use rgmii-rxid mode to disable rx delay inside Soc */
    phy-mode = "rgmii-rxid";
    clock_in_out = "output";

    snps,reset-gpio = <&gpio4 RK_PB3 GPIO_ACTIVE_LOW>;
    snps,reset-active-low;
    /* Reset time is 20ms, 100ms for rtl8211f */
    snps,reset-delays-us = <0 20000 100000>;

    pinctrl-names = "default";
    pinctrl-0 = <&gmac0_miim
             &gmac0_tx_bus2
             &gmac0_rx_bus2
             &gmac0_rgmii_clk
             &gmac0_rgmii_bus>;

    tx_delay = <0x44>;
    /* rx_delay = <0x4f>; */

    phy-handle = <&rgmii_phy0>;
    status = "okay";
};

&gmac1 {
    /* Use rgmii-rxid mode to disable rx delay inside Soc */
    phy-mode = "rgmii-rxid";
    clock_in_out = "output";

    snps,reset-gpio = <&gpio3 RK_PB7 GPIO_ACTIVE_LOW>;
    snps,reset-active-low;
    /* Reset time is 20ms, 100ms for rtl8211f */
    snps,reset-delays-us = <0 20000 100000>;

    pinctrl-names = "default";
    pinctrl-0 = <&gmac1_miim
             &gmac1_tx_bus2
             &gmac1_rx_bus2
             &gmac1_rgmii_clk
             &gmac1_rgmii_bus>;

    tx_delay = <0x43>;
    /* rx_delay = <0x3f>; */

    phy-handle = <&rgmii_phy>;
    status = "okay";
};


&i2s6_8ch {
    status = "okay";
};

&i2s7_8ch {
    status = "okay";
};

&mdio0 {
    rgmii_phy0: phy@1 {
        compatible = "ethernet-phy-ieee802.3-c22";
        reg = <0x1>;
    };
};

&mdio1 {
    rgmii_phy: phy@1 {
        compatible = "ethernet-phy-ieee802.3-c22";
        reg = <0x1>;
    };
};

&mipi_dcphy0 {
    status = "okay";
};


原始LOG:
root@rk3588-buildroot:/# 
root@rk3588-buildroot:/# 
root@rk3588-buildroot:/# 
root@rk3588-buildroot:/# 
root@rk3588-buildroot:/# ifconfig
lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:36 errors:0 dropped:0 overruns:0 frame:0
          TX packets:36 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:2608 (2.5 KiB)  TX bytes:2608 (2.5 KiB)

root@rk3588-buildroot:/#         
root@rk3588-buildroot:/# 
root@rk3588-buildroot:/# ifconfig -a
eth0      Link encap:Ethernet  HWaddr 16:B5:8E:1B:42:CB  
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          Interrupt:88 

eth1      Link encap:Ethernet  HWaddr 12:B5:8E:1B:42:CB  
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          Interrupt:140 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:38 errors:0 dropped:0 overruns:0 frame:0
          TX packets:38 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:2728 (2.6 KiB)  TX bytes:2728 (2.6 KiB)

root@rk3588-buildroot:/# 
root@rk3588-buildroot:/# 
root@rk3588-buildroot:/# ifconfig eth0 up
[   34.783304] rk_gmac-dwmac fe1c0000.ethernet eth0: no phy found
ifconfig: SIOCSIFFLAGS: No such device
[   34.783342] rk_gmac-dwmac fe1c0000.ethernet eth0: stmmac_open: Cannot attach to PHY (error: -19)
root@rk3588-buildroot:/# 
root@rk3588-buildroot:/# ifconfig eth1 up
[   42.914082] rk_gmac-dwmac fe1b0000.ethernet eth1: PHY [stmmac-0:01] driver [RTL8211F Gigabit Ethernet] (irq=POLL)
[   42.916074] dwmac4: Master AXI performs any burst length
[   42.916102] rk_gmac-dwmac fe1b0000.ethernet eth1: No Safety Features support found
[   42.916120] rk_gmac-dwmac fe1b0000.ethernet eth1: IEEE 1588-2008 Advanced Timestamp supported
[   42.916287] rk_gmac-dwmac fe1b0000.ethernet eth1: registered PTP clock
[   42.916649] rk_gmac-dwmac fe1b0000.ethernet eth1: configuring for phy/rgmii-rxid link mode
root@rk3588-buildroot:/# [   42.942947] rk_gmac-dwmac fe1b0000.ethernet eth1: Link is Up - 1Gbps/Full - flow control rx/tx
[   42.942978] IPv6: ADDRCONF(NETDEV_CHANGE): eth1: link becomes ready

root@rk3588-buildroot:/# 
root@rk3588-buildroot:/# ifconfig
eth1      Link encap:Ethernet  HWaddr 12:B5:8E:1B:42:CB  
          inet6 addr: fe80::10b5:8eff:fe1b:42cb/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:56 errors:0 dropped:0 overruns:0 frame:0
          TX packets:7 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:7871 (7.6 KiB)  TX bytes:586 (586.0 B)
          Interrupt:140 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:50 errors:0 dropped:0 overruns:0 frame:0
          TX packets:50 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:3448 (3.3 KiB)  TX bytes:3448 (3.3 KiB)

root@rk3588-buildroot:/# 
root@rk3588-buildroot:/# 
root@rk3588-buildroot:/# ifconfig eth1 192.168.3.232
root@rk3588-buildroot:/# 
root@rk3588-buildroot:/# ifconfig
eth1      Link encap:Ethernet  HWaddr 12:B5:8E:1B:42:CB  
          inet addr:192.168.3.232  Bcast:192.168.3.255  Mask:255.255.255.0
          inet6 addr: fe80::10b5:8eff:fe1b:42cb/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:533 errors:0 dropped:0 overruns:0 frame:0
          TX packets:16 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:79525 (77.6 KiB)  TX bytes:1328 (1.2 KiB)
          Interrupt:140 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:86 errors:0 dropped:0 overruns:0 frame:0
          TX packets:86 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:5608 (5.4 KiB)  TX bytes:5608 (5.4 KiB)

root@rk3588-buildroot:/# 
root@rk3588-buildroot:/# ping 192.168.3.85
PING 192.168.3.85 (192.168.3.85) 56(84) bytes of data.
64 bytes from 192.168.3.85: icmp_seq=1 ttl=64 time=0.514 ms
64 bytes from 192.168.3.85: icmp_seq=2 ttl=64 time=0.457 ms
64 bytes from 192.168.3.85: icmp_seq=3 ttl=64 time=0.451 ms
64 bytes from 192.168.3.85: icmp_seq=4 ttl=64 time=0.450 ms
64 bytes from 192.168.3.85: icmp_seq=5 ttl=64 time=0.423 ms
64 bytes from 192.168.3.85: icmp_seq=6 ttl=64 time=0.411 ms
64 bytes from 192.168.3.85: icmp_seq=7 ttl=64 time=0.451 ms
64 bytes from 192.168.3.85: icmp_seq=8 ttl=64 time=0.413 ms
64 bytes from 192.168.3.85: icmp_seq=9 ttl=64 time=0.541 ms
64 bytes from 192.168.3.85: icmp_seq=10 ttl=64 time=0.430 ms
64 bytes from 192.168.3.85: icmp_seq=11 ttl=64 time=0.412 ms
64 bytes from 192.168.3.85: icmp_seq=12 ttl=64 time=0.436 ms
64 bytes from 192.168.3.85: icmp_seq=13 ttl=64 time=0.415 ms
64 bytes from 192.168.3.85: icmp_seq=14 ttl=64 time=0.426 ms
64 bytes from 192.168.3.85: icmp_seq=15 ttl=64 time=0.455 ms
64 bytes from 192.168.3.85: icmp_seq=16 ttl=64 time=0.458 ms
64 bytes from 192.168.3.85: icmp_seq=17 ttl=64 time=0.429 ms
64 bytes from 192.168.3.85: icmp_seq=18 ttl=64 time=0.429 ms
64 bytes from 192.168.3.85: icmp_seq=19 ttl=64 time=0.542 ms
64 bytes from 192.168.3.85: icmp_seq=20 ttl=64 time=0.453 ms
64 bytes from 192.168.3.85: icmp_seq=21 ttl=64 time=0.460 ms
64 bytes from 192.168.3.85: icmp_seq=22 ttl=64 time=0.474 ms
64 bytes from 192.168.3.85: icmp_seq=23 ttl=64 time=0.469 ms
64 bytes from 192.168.3.85: icmp_seq=24 ttl=64 time=0.459 ms
64 bytes from 192.168.3.85: icmp_seq=25 ttl=64 time=0.460 ms
64 bytes from 192.168.3.85: icmp_seq=26 ttl=64 time=0.445 ms
64 bytes from 192.168.3.85: icmp_seq=27 ttl=64 time=0.456 ms
64 bytes from 192.168.3.85: icmp_seq=28 ttl=64 time=0.451 ms
64 bytes from 192.168.3.85: icmp_seq=29 ttl=64 time=0.444 ms
64 bytes from 192.168.3.85: icmp_seq=30 ttl=64 time=0.539 ms
64 bytes from 192.168.3.85: icmp_seq=31 ttl=64 time=0.452 ms
64 bytes from 192.168.3.85: icmp_seq=32 ttl=64 time=0.504 ms
64 bytes from 192.168.3.85: icmp_seq=33 ttl=64 time=0.461 ms
64 bytes from 192.168.3.85: icmp_seq=34 ttl=64 time=0.533 ms
64 bytes from 192.168.3.85: icmp_seq=35 ttl=64 time=0.417 ms
64 bytes from 192.168.3.85: icmp_seq=36 ttl=64 time=0.521 ms
64 bytes from 192.168.3.85: icmp_seq=37 ttl=64 time=0.455 ms
64 bytes from 192.168.3.85: icmp_seq=38 ttl=64 time=0.241 ms
64 bytes from 192.168.3.85: icmp_seq=39 ttl=64 time=0.427 ms
64 bytes from 192.168.3.85: icmp_seq=40 ttl=64 time=0.540 ms
64 bytes from 192.168.3.85: icmp_seq=41 ttl=64 time=0.530 ms
64 bytes from 192.168.3.85: icmp_seq=42 ttl=64 time=0.542 ms
64 bytes from 192.168.3.85: icmp_seq=43 ttl=64 time=0.441 ms
64 bytes from 192.168.3.85: icmp_seq=44 ttl=64 time=0.468 ms
64 bytes from 192.168.3.85: icmp_seq=45 ttl=64 time=0.413 ms
64 bytes from 192.168.3.85: icmp_seq=46 ttl=64 time=0.443 ms
64 bytes from 192.168.3.85: icmp_seq=47 ttl=64 time=0.557 ms
64 bytes from 192.168.3.85: icmp_seq=48 ttl=64 time=0.425 ms
64 bytes from 192.168.3.85: icmp_seq=49 ttl=64 time=0.435 ms
64 bytes from 192.168.3.85: icmp_seq=50 ttl=64 time=0.425 ms
64 bytes from 192.168.3.85: icmp_seq=51 ttl=64 time=0.423 ms
64 bytes from 192.168.3.85: icmp_seq=52 ttl=64 time=0.427 ms
64 bytes from 192.168.3.85: icmp_seq=53 ttl=64 time=0.423 ms
64 bytes from 192.168.3.85: icmp_seq=54 ttl=64 time=0.430 ms
64 bytes from 192.168.3.85: icmp_seq=55 ttl=64 time=0.430 ms
64 bytes from 192.168.3.85: icmp_seq=56 ttl=64 time=0.449 ms
64 bytes from 192.168.3.85: icmp_seq=57 ttl=64 time=0.429 ms
64 bytes from 192.168.3.85: icmp_seq=58 ttl=64 time=0.444 ms
64 bytes from 192.168.3.85: icmp_seq=59 ttl=64 time=0.428 ms
64 bytes from 192.168.3.85: icmp_seq=60 ttl=64 time=0.440 ms
64 bytes from 192.168.3.85: icmp_seq=61 ttl=64 time=0.535 ms
64 bytes from 192.168.3.85: icmp_seq=62 ttl=64 time=0.412 ms
64 bytes from 192.168.3.85: icmp_seq=63 ttl=64 time=0.440 ms
64 bytes from 192.168.3.85: icmp_seq=64 ttl=64 time=0.540 ms
64 bytes from 192.168.3.85: icmp_seq=65 ttl=64 time=0.450 ms
64 bytes from 192.168.3.85: icmp_seq=66 ttl=64 time=0.532 ms
64 bytes from 192.168.3.85: icmp_seq=67 ttl=64 time=0.414 ms
64 bytes from 192.168.3.85: icmp_seq=68 ttl=64 time=0.519 ms
64 bytes from 192.168.3.85: icmp_seq=69 ttl=64 time=0.434 ms
64 bytes from 192.168.3.85: icmp_seq=70 ttl=64 time=0.531 ms
64 bytes from 192.168.3.85: icmp_seq=71 ttl=64 time=0.427 ms
64 bytes from 192.168.3.85: icmp_seq=72 ttl=64 time=0.414 ms
64 bytes from 192.168.3.85: icmp_seq=73 ttl=64 time=0.521 ms
64 bytes from 192.168.3.85: icmp_seq=74 ttl=64 time=0.436 ms
64 bytes from 192.168.3.85: icmp_seq=75 ttl=64 time=0.535 ms
64 bytes from 192.168.3.85: icmp_seq=76 ttl=64 time=0.530 ms
64 bytes from 192.168.3.85: icmp_seq=77 ttl=64 time=0.393 ms
64 bytes from 192.168.3.85: icmp_seq=78 ttl=64 time=0.408 ms
64 bytes from 192.168.3.85: icmp_seq=79 ttl=64 time=0.404 ms
64 bytes from 192.168.3.85: icmp_seq=80 ttl=64 time=0.425 ms
64 bytes from 192.168.3.85: icmp_seq=81 ttl=64 time=0.404 ms
64 bytes from 192.168.3.85: icmp_seq=82 ttl=64 time=0.437 ms
64 bytes from 192.168.3.85: icmp_seq=83 ttl=64 time=0.413 ms
64 bytes from 192.168.3.85: icmp_seq=84 ttl=64 time=0.426 ms
64 bytes from 192.168.3.85: icmp_seq=85 ttl=64 time=0.426 ms
64 bytes from 192.168.3.85: icmp_seq=86 ttl=64 time=0.436 ms
64 bytes from 192.168.3.85: icmp_seq=87 ttl=64 time=0.442 ms
64 bytes from 192.168.3.85: icmp_seq=88 ttl=64 time=0.409 ms
64 bytes from 192.168.3.85: icmp_seq=89 ttl=64 time=0.427 ms
64 bytes from 192.168.3.85: icmp_seq=90 ttl=64 time=0.456 ms
64 bytes from 192.168.3.85: icmp_seq=91 ttl=64 time=0.458 ms
64 bytes from 192.168.3.85: icmp_seq=92 ttl=64 time=0.436 ms
64 bytes from 192.168.3.85: icmp_seq=93 ttl=64 time=0.434 ms
^C
--- 192.168.3.85 ping statistics ---
93 packets transmitted, 93 received, 0% packet loss, time 93222ms
rtt min/avg/max/mdev = 0.241/0.452/0.557/0.047 ms
root@rk3588-buildroot:/# 
root@rk3588-buildroot:/# 


viewpro@viewpro-ThinkBook-16-G5-IRH:~$ 
viewpro@viewpro-ThinkBook-16-G5-IRH:~$ ping 192.168.3.232
PING 192.168.3.232 (192.168.3.232) 56(84) bytes of data.
64 bytes from 192.168.3.232: icmp_seq=1 ttl=64 time=0.421 ms
64 bytes from 192.168.3.232: icmp_seq=2 ttl=64 time=0.400 ms
64 bytes from 192.168.3.232: icmp_seq=3 ttl=64 time=0.407 ms
64 bytes from 192.168.3.232: icmp_seq=4 ttl=64 time=0.411 ms
64 bytes from 192.168.3.232: icmp_seq=5 ttl=64 time=0.424 ms
64 bytes from 192.168.3.232: icmp_seq=6 ttl=64 time=0.409 ms
64 bytes from 192.168.3.232: icmp_seq=7 ttl=64 time=0.489 ms
64 bytes from 192.168.3.232: icmp_seq=8 ttl=64 time=0.418 ms
64 bytes from 192.168.3.232: icmp_seq=9 ttl=64 time=0.409 ms
64 bytes from 192.168.3.232: icmp_seq=10 ttl=64 time=0.408 ms
64 bytes from 192.168.3.232: icmp_seq=11 ttl=64 time=0.408 ms
64 bytes from 192.168.3.232: icmp_seq=12 ttl=64 time=0.408 ms
64 bytes from 192.168.3.232: icmp_seq=13 ttl=64 time=0.418 ms
64 bytes from 192.168.3.232: icmp_seq=14 ttl=64 time=0.405 ms
64 bytes from 192.168.3.232: icmp_seq=15 ttl=64 time=0.410 ms
64 bytes from 192.168.3.232: icmp_seq=16 ttl=64 time=0.407 ms
64 bytes from 192.168.3.232: icmp_seq=17 ttl=64 time=0.409 ms
64 bytes from 192.168.3.232: icmp_seq=18 ttl=64 time=0.411 ms
64 bytes from 192.168.3.232: icmp_seq=19 ttl=64 time=0.490 ms
64 bytes from 192.168.3.232: icmp_seq=20 ttl=64 time=0.413 ms
64 bytes from 192.168.3.232: icmp_seq=21 ttl=64 time=0.408 ms
64 bytes from 192.168.3.232: icmp_seq=22 ttl=64 time=0.421 ms
64 bytes from 192.168.3.232: icmp_seq=23 ttl=64 time=0.414 ms
64 bytes from 192.168.3.232: icmp_seq=24 ttl=64 time=0.405 ms
64 bytes from 192.168.3.232: icmp_seq=25 ttl=64 time=0.398 ms
64 bytes from 192.168.3.232: icmp_seq=26 ttl=64 time=0.410 ms
64 bytes from 192.168.3.232: icmp_seq=27 ttl=64 time=0.400 ms
64 bytes from 192.168.3.232: icmp_seq=28 ttl=64 time=0.424 ms
64 bytes from 192.168.3.232: icmp_seq=29 ttl=64 time=0.408 ms
64 bytes from 192.168.3.232: icmp_seq=30 ttl=64 time=0.413 ms
64 bytes from 192.168.3.232: icmp_seq=31 ttl=64 time=0.421 ms
64 bytes from 192.168.3.232: icmp_seq=32 ttl=64 time=0.410 ms
64 bytes from 192.168.3.232: icmp_seq=33 ttl=64 time=0.498 ms
64 bytes from 192.168.3.232: icmp_seq=34 ttl=64 time=0.420 ms
64 bytes from 192.168.3.232: icmp_seq=35 ttl=64 time=0.505 ms
64 bytes from 192.168.3.232: icmp_seq=36 ttl=64 time=0.452 ms
64 bytes from 192.168.3.232: icmp_seq=37 ttl=64 time=0.435 ms
64 bytes from 192.168.3.232: icmp_seq=38 ttl=64 time=0.408 ms
64 bytes from 192.168.3.232: icmp_seq=39 ttl=64 time=0.393 ms
64 bytes from 192.168.3.232: icmp_seq=40 ttl=64 time=0.391 ms
64 bytes from 192.168.3.232: icmp_seq=41 ttl=64 time=0.403 ms
64 bytes from 192.168.3.232: icmp_seq=42 ttl=64 time=0.409 ms
64 bytes from 192.168.3.232: icmp_seq=43 ttl=64 time=0.413 ms
64 bytes from 192.168.3.232: icmp_seq=44 ttl=64 time=0.401 ms
64 bytes from 192.168.3.232: icmp_seq=45 ttl=64 time=0.412 ms
64 bytes from 192.168.3.232: icmp_seq=46 ttl=64 time=0.441 ms
64 bytes from 192.168.3.232: icmp_seq=47 ttl=64 time=0.410 ms
64 bytes from 192.168.3.232: icmp_seq=48 ttl=64 time=0.400 ms
^C
--- 192.168.3.232 ping statistics ---
48 packets transmitted, 48 received, 0% packet loss, time 48139ms
rtt min/avg/max/mdev = 0.391/0.418/0.505/0.025 ms
viewpro@viewpro-ThinkBook-16-G5-IRH:~$ 

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:/a/665433.html

如若内容造成侵权/违法违规/事实不符,请联系我们进行投诉反馈qq邮箱809451989@qq.com,一经查实,立即删除!

相关文章

Linux CFS调度器之周期性调度器scheduler_tick函数

文章目录 前言一、简介二、源码分析2.1 scheduler_tick2.2 task_tick2.3 entity_tick2.4 check_preempt_tick2.5 resched_curr 参考资料 前言 Linux内核调度器主要是主调度器和周期性调度器&#xff0c;主调度器请参考&#xff1a;Linux 进程调度之schdule主调度器 一、简介 …

如何在IDEA中实现类似Linux命令那样的外部传参

【背景说明】 IDEA中执行一个程序时&#xff0c;如何就在程序一开始执行给传入你给的参数呢&#xff1f; 【说明】 public static void main(String[] args) throws Exception {} 说明&#xff1a;其实java中main方法里的args这个参数&#xff0c;就是用于接收外部传参的。…

C# 写一个简单的Windows Service的服务程序

项目创建及设定部分 使用VS2019创建项目&#xff0c;选择C# Service的选项 按照你喜欢的方式命名&#xff0c;我这边就默认了 添加安装服务&#xff0c;在Service1.cs[Design]中 在设计界面右击&#xff0c;选择如下的"Add Installer" 在出现的"ProjectInstall…

Ubuntu server 24 (Linux) Snort3 3.2.1.0 Guardian IPtables 联动实战 主动防御系统(ids+ips)

一 Snort3 安装配置&#xff0c;参考:Ubuntu server 24 安装配置 snort3 3.2.1.0 网络入侵检测防御系统 配置注册规则集-CSDN博客 二 安装主动防御程序Guardian 1 下载&#xff0c;解压 tar zxvf guardian-1.7.tar.gz cd guardian-1.7/ 2 配置 #拷贝文件 sudo cp guard…

如何从浅入深理解transformer?

前言 在人工智能的浩瀚海洋中&#xff0c;大模型目前无疑是其中一颗璀璨的明星。从简单的图像识别到复杂的自然语言处理&#xff0c;大模型在各个领域都取得了令人瞩目的成就。而在这其中&#xff0c;Transformer模型更是成为大模型技术的核心。 一、大模型的行业发展现状如…

docker删除所有容器

笔记 要使用 Docker 删除所有容器&#xff08;无论是停止的还是正在运行的&#xff09;&#xff0c;可以按照以下步骤操作&#xff1a; 1. **删除所有正在运行的容器**&#xff1a; 首先&#xff0c;您需要停止所有正在运行的容器。可以使用以下命令&#xff1a; dock…

官方正版 | FastCopy - Windows 上最快的文件复制&备份软件

『FastCopy 软件概述』 FastCopy 是一款高性能的文件复制和备份工具&#xff0c;专为 Windows 操作系统设计。它以其卓越的速度和丰富的功能&#xff0c;在用户中赢得了良好的声誉。以下是 FastCopy 的主要特点和优势&#xff1a; 速度优化&#xff1a;FastCopy 通过多线程、异…

c# - 运算符 << 不能应用于 long 和 long 类型的操作数

Compiler Error CS0019 c# - 运算符 << 不能应用于 long 和 long 类型的操作数 处理方法 特此记录 anlog 2024年5月30日

Day10:平面转换、渐变色

目标&#xff1a;使用位移、缩放、旋转、渐变效果丰富网页元素的呈现方式。 一、平面转换 1、简介 作用&#xff1a;为元素添加动态效果&#xff0c;一般与过渡配合使用。 概念&#xff1a;改变盒子在平面内的形态&#xff08;位移、旋转、缩放、倾斜&#xff09;。 平面转换…

工业安全智勇较量,赛宁网安工业靶场决胜工业网络攻防对抗新战场

2024年1月30日&#xff0c;工信部发布《工业控制系统网络安全防护指南》&#xff08;工信部网安〔2024〕14号&#xff09;&#xff0c;围绕安全管理、技术防护、安全运营、责任落实四方面提出安全防护要求&#xff0c;强调聚焦安全薄弱关键环节&#xff0c;强化技术应对策略&am…

说说你对单例模式的理解?如何实现?

一、是什么 单例模式&#xff08;Singleton Pattern&#xff09;&#xff1a;创建型模式&#xff0c;提供了一种创建对象的最佳方式&#xff0c;这种模式涉及到一个单一的类&#xff0c;该类负责创建自己的对象&#xff0c;同时确保只有单个对象被创建 在应用程序运行期间&am…

代码随想录算法训练营第四十四天|01 背包、动态规划:01背包理论基础(滚动数组)、416. 分割等和子集

01 背包 文档讲解&#xff1a;代码随想录 题目链接&#xff1a;46. 携带研究材料&#xff08;第六期模拟笔试&#xff09; 有n件物品和一个最多能背重量为w 的背包。第i件物品的重量是weight[i]&#xff0c;得到的价值是value[i] 。每件物品只能用一次&#xff0c;求解将哪些物…

Day-04python模块

一、模块 1-1 Python 自带模块 Json模块 处理json数据 {"key":"value"} json不是字典 本质是一个有引号的字符串数据 json注意点 {} 中的数据是字符串引号必须是双引号 使用json模块可以实现将json转为字典&#xff0c;使用字典的方法操作数据 。 或者将…

自动驾驶中的长尾问题

自动驾驶中的长尾问题 定义 长尾问题&#xff08;Long-Tail Problem&#xff09;是指在数据分布中&#xff0c;大部分的数据集中在少数类别上&#xff0c;而剩下的大多数类别却只有少量的数据。这种数据分布不平衡的现象在许多实际应用中广泛存在&#xff0c;特别是在自动驾驶…

自适应Q的容积卡尔曼滤波MATLAB例程|完整代码

前言 给出自适应容积卡尔曼滤波&#xff08;ACKF&#xff09;的MATLAB代码。 主要思想 通过自适应状态协方差Q来实现&#xff0c;得到了比传统方法更低的估计误差。适用于Q无法获取、估计不准、变化不定的情况&#xff0c;只有一个M文件&#xff0c;方便运行&#xff0c;保运…

一分钟学习数据安全——自主管理身份SSI基本概念

之前我们已经介绍过数字身份的几种模式。其中&#xff0c;分布式数字身份模式逐渐普及演进的结果就是自主管理身份&#xff08;SSI&#xff0c;Self-Sovereign Identity&#xff09;。当一个人能够完全拥有和控制其数字身份&#xff0c;而无需依赖中心化机构&#xff0c;这就是…

3D轻量化的三大应用解决方案

老子云平台https://www.laozicloud.com/ 为不同应用场景提供了三大解决方案。 01 单模型轻量化解决方案 数字化时代&#xff0c;越来越多的C2M定制、文旅、电商等行业&#xff0c;为了开拓市场&#xff0c;提升企业竞争力&#xff0c;开始把目光投向产品的3D展示交互。 单模…

Fragment后续

1.Fragment 生命周期 2.Fragment动态注册 2.1 activity package com.tiger.mystudyactivity;import android.graphics.Color; import android.os.Bundle; import android.util.TypedValue;import androidx.appcompat.app.AppCompatActivity; import androidx.viewpager.widge…

VirtualBox7.x下载安装CentOS7安装网络配置

1、VirtualBox7.x下载安装 1.1、VirtualBox7.x下载 1.1.1、去哪里下载&#xff1f; 一般我们去官方网站&#xff08;https://www.virtualbox.org/wiki/Downloads&#xff09;下载、但国内访问速率较慢&#xff0c;更有甚者下载速度仅仅只有0.1kb/s&#xff0c;极大的拖延了项…

环境变量 | 是不是必须配置?怎么配置?

本文基于mysql和python环境&#xff0c;简单介绍了“什么是环境变量”、“环境变量是不是必须配置”、“环境变量配置方法”及“常用环境变量 path ”。 1、什么是环境变量 释义&#xff1a;一般是指在操作系统中&#xff0c;用来指定操作系统运行环境的一些参数&#xff0c;…