解决drive_cmd: status=0x51问题

本文记录了一次解决CentOS系统启动时报出Buffer I/O error on device hda2等问题的经历,通过更换硬件未解决问题,最终调整BIOS设置中的S.M.A.R.T.功能解决了硬盘错误。
在一台机器上安装centos,带的是IDE的宽排线的并口硬盘。

安装好后,能运行。装了数据库,丢失了数据。
系统启动时,报了一系列这样的错误:
Buffer I/O error on device hda2
Buffer I/O error on device dm-1
后面还附带了某个扇区的丢失。

用命令:dmesg查看,最下面有:
hdc: drive_cmd: status=0x51 { DriveReady SeekComplete Error }
hdc: drive_cmd: error=0x04 { DriveStatusError }
ide: failed opcode was: 0xb0

于是google一番,有几个判断,1、数据排线问题;2、硬盘坏扇道了。
换了两根新的排线,测试,问题依旧。
换了一个新硬盘测试,问题依旧。

又google一番,国内国外,英文论坛,百够不得其解。
回家,睡觉,想...

是否BIOS里面某项默认的设置不对?
第二天测试BIOS关于硬盘这块设置的更改。启动时发现屏幕上报了个错误:
S.M.A.R.T capability disabled
于是在Advanced BIOS Features里找到这项打开之,呵呵,要下拉窗口才看得到。bios里下拉,头一次。难怪有的老外讲找不到这项,还以为主板没有。

重启,再dmesg,正常!

附:HDD S.M.A.R.T. Capability(硬盘S.M.A.R.T.能力)
选项:Enabled,Disabled
SMART(Self-Monitoring, Analysis and Reporting Technology,自动监测、分析和报告技术)是一种硬盘保护技术,开启后能实时的监控硬盘的工作状态,报告应该可能会出现的问题隐患。打开这项目有利于提高对硬盘的保护,提高系统的可靠性。
#include "global.h" #include "robot.h" #include "motor.h" #include "comm.h" /** * 动作模式 * * 0X11: (清扫车/单行清扫车)完成一次往返清扫; * 0X12: (清扫车/单行清扫车)回到行起点; * 0X13: (清扫车/单行清扫车)停机; * 0X14: (清扫车/单行清扫车)回到行终点; * */ extern void uplink_report_yc(void); static uint32_t time; static uint8_t cur_cmd; static uint8_t get_local_cmd(void) { return robot_cmd_get(); } static uint8_t get_remote_cmd(void) { uint8_t cmd = 0x00; if (g_robot.yk_task_on) { g_robot.yk_task_on = false; cmd = g_robot.yk_cmd; } return cmd; } void robot_run_auto(void) { uint8_t local_cmd = get_local_cmd(); uint8_t remote_cmd = get_remote_cmd(); if (getTick() < 3000) { return; } if (local_cmd != ROBOT_CMD_NONE) { kprintf("local cmd: %d\r\n", local_cmd); } if (remote_cmd != 0x00) { kprintf("remote cmd: 0x%02X\r\n", remote_cmd); } if (g_robot.sweeper.sensor_start && g_robot.sweeper.sensor_end) { g_robot.warn.sweeperStartSensor = 1; g_robot.warn.sweeperEndSensor = 1; g_SystemErrorCode = ERR_SENSOR_BASE; if (g_motor_data.is_run) { motor_setStatus(MOTOR_STA_STOP); } return; } switch (g_robot.status) { case ROBOT_STA_SP: if (g_robot.sweeper.is_run) { g_robot.sweeper.is_run = false; g_robot.time_pre_task = getElapsedTime(time) / (1000 * 60); uplink_report_yc(); } // 低电压禁止启动 if (g_robot.sweeper.bat_u < 250) return; if ((local_cmd == ROBOT_CMD_FORWARD) || (local_cmd == ROBOT_CMD_BACKWARD) || (remote_cmd == 0x11) // 完成一次往返清扫 || (remote_cmd == 0x14)) // 回到行终点 { motor_setStatus(MOTOR_STA_FORWARD); robot_setStatus(ROBOT_STA_SP_TO_EP); if ((local_cmd == ROBOT_CMD_FORWARD) || (local_cmd == ROBOT_CMD_BACKWARD)) { cur_cmd = 0x11; } else if ((remote_cmd == 0x11) || (remote_cmd == 0x14)) { cur_cmd = remote_cmd; } g_robot.sweeper.is_run = true; time = getTick(); } break; case ROBOT_STA_SP_TO_EP: if ((g_robot.sweeper.sensor_end) || (local_cmd == ROBOT_CMD_STOP) || (remote_cmd == 0x13)) // 停机 { robot_setStatus(ROBOT_STA_STOP); if (remote_cmd == 0x13) { cur_cmd = remote_cmd; } break; } if (motor_getStatus() != MOTOR_STA_RUN) { motor_setStatus(MOTOR_STA_FORWARD); } break; case ROBOT_STA_EP_TO_SP: if ((g_robot.sweeper.sensor_start) || (local_cmd == ROBOT_CMD_STOP) || (remote_cmd == 0x13)) // 停机 { robot_setStatus(ROBOT_STA_STOP); if (remote_cmd == 0x13) { cur_cmd = remote_cmd; } break; } if (motor_getStatus() != MOTOR_STA_RUN) { motor_setStatus(MOTOR_STA_BACKWARD); } break; case ROBOT_STA_EP: if ((local_cmd == ROBOT_CMD_BACKWARD) || (remote_cmd == 0x12) // 回到行起点 || (cur_cmd == 0x11) // 完成一次往返清扫 ) { motor_setStatus(MOTOR_STA_BACKWARD); robot_setStatus(ROBOT_STA_EP_TO_SP); if (local_cmd == ROBOT_CMD_BACKWARD) { cur_cmd = 0x12; } else if (remote_cmd == 0x12) { cur_cmd = remote_cmd; } } break; case ROBOT_STA_STOP: if (g_motor_data.is_run) { motor_setStatus(MOTOR_STA_STOP); } else { if (g_robot.sweeper.sensor_start && !g_robot.sweeper.sensor_end) { robot_setStatus(ROBOT_STA_SP); } else if (!g_robot.sweeper.sensor_start && g_robot.sweeper.sensor_end) { robot_setStatus(ROBOT_STA_EP); } else { if ((local_cmd == ROBOT_CMD_FORWARD) || (remote_cmd == 0x14)) // 回到行终点 { robot_setStatus(ROBOT_STA_SP_TO_EP); } else if ((local_cmd == ROBOT_CMD_BACKWARD) || (remote_cmd == 0x12)) // 回到行起点 { robot_setStatus(ROBOT_STA_EP_TO_SP); } } } break; default: break; } }只解释这段代码,不要给新的
12-23
// SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause) /* * IPQ5424 RDP466 board device tree source * * Copyright (c) 2020-2021 The Linux Foundation. All rights reserved. * Copyright (c) 2022-2024 Qualcomm Innovation Center, Inc. All rights reserved. */ /dts-v1/; #include "ipq5424-rdp-common.dtsi" #ifdef __IPQ_MEM_PROFILE_512_MB__ #include "ipq5424-512MB-default-memory.dtsi" #else #include "ipq5424-default-memory.dtsi" #endif / { model = "Qualcomm Technologies, Inc. IPQ5424 RDP466"; compatible = "qcom,ipq5424-rdp466", "qcom,ipq5424"; soc@0 { tlmm: pinctrl@1000000 { qup_spi1_default: qup-spi1-default-state { qup_spi1_clk { pins = "gpio45"; function = "spi10"; drive-strength = <8>; bias-disable; }; qup_spi1_cs { pins = "gpio46"; function = "spi1_cs"; drive-strength = <8>; bias-disable; }; qup_spi1_miso { pins = "gpio47"; function = "spi10"; drive-strength = <8>; bias-disable; }; qup_spi1_mosi { pins = "gpio48"; function = "spi10"; drive-strength = <8>; bias-disable; }; }; audio_pins_pri: audio_pinmux_pri { mux_1 { pins = "gpio36"; function = "audio_pri"; drive-strength = <8>; bias-pull-down; }; mux_2 { pins = "gpio37"; function = "audio_pri"; drive-strength = <8>; bias-pull-down; }; mux_3 { pins = "gpio38"; function = "audio_pri"; drive-strength = <8>; bias-pull-down; }; mux_4 { pins = "gpio39"; function = "audio_pri"; drive-strength = <8>; bias-pull-down; }; }; }; qupv3: geniqup@1ac0000 { i2c0: i2c@1a88000 { pinctrl-0 = <&qup_i2c0_default>; pinctrl-names = "default"; status = "disabled"; }; spi0: spi@1a90000 { pinctrl-0 = <&qup_spi0_default>; pinctrl-names = "default"; status = "okay"; flash@0 { compatible = "spansion,s25fs128s1", "jedec,spi-nor"; #address-cells = <1>; #size-cells = <1>; reg = <0>; spi-max-frequency = <50000000>; }; }; spi1: spi@1a94000 { pinctrl-0 = <&qup_spi1_default>; pinctrl-names = "default"; status = "disabled"; spidev1: spi@0 { compatible = "qti,spidev"; reg = <0>; spi-max-frequency = <9600000>; }; }; }; leds { compatible = "gpio-leds"; pinctrl-0 = <&gpio_leds_default>; pinctrl-names = "default"; led-0 { color = <LED_COLOR_ID_GREEN>; function = LED_FUNCTION_WLAN; gpios = <&tlmm 42 GPIO_ACTIVE_HIGH>; linux,default-trigger = "phy0tx"; default-state = "off"; }; }; wsi: wsi { id = <0>; num_chip = <3>; chip_info = <0 2 1 2>, <1 2 2 0>, <2 2 0 1>; status = "okay"; }; mdio@90000 { /* GPIO40 is for port 1 QCA81XX PHY */ /* GPIO28 is for port 2 QCA81XX PHY */ /* GPIO18 is for QCA8386 switch */ phy-reset-gpio = < &tlmm 40 GPIO_ACTIVE_LOW &tlmm 28 GPIO_ACTIVE_LOW &tlmm 18 GPIO_ACTIVE_LOW >; ethernet-phy@4 { reg = <8>; compatible ="ethernet-phy-ieee802.3-c45"; }; ethernet-phy@5 { reg = <12>; compatible ="ethernet-phy-ieee802.3-c45"; }; switch0@10 { ports { port@0 { reg = <0>; label = "cpu"; ethernet = <&gmac2>; dsa-tag-protocol = "qca_8021q"; }; }; }; }; ess-instance { #ifdef __CONFIG_IO_COHERENCY__ dma-coherent; #endif ess-switch@3a000000 { #ifdef __CONFIG_IO_COHERENCY__ dma-coherent; #endif switch_cpu_bmp = <0x1>; /* cpu port bitmap */ switch_lan_bmp = <0xc>; /* lan port bitmap */ switch_wan_bmp = <0x2>; /* wan port bitmap */ switch_mac_mode = <0xd>; /* mac mode for uniphy instance0*/ switch_mac_mode1 = <0xd>; /* mac mode for uniphy instance1*/ qcom,port_phyinfo { port@0 { port_id = <1>; phy_address = <8>; ethernet-phy-ieee802.3-c45; }; port@1 { port_id = <2>; phy_address = <12>; ethernet-phy-ieee802.3-c45; }; }; }; ess-switch1@1 { #ifdef __CONFIG_IO_COHERENCY__ dma-coherent; #endif link-polling-required = <0>; fdb_sync = "interrupt"; link-intr-gpio = <&tlmm 41 GPIO_ACTIVE_HIGH>; }; }; dp1 { device_type = "network"; compatible = "qcom,nss-dp"; #ifdef __CONFIG_IO_COHERENCY__ dma-coherent; #endif qcom,id = <1>; reg = <0x3A500000 0x4000>; qcom,mactype = <1>; local-mac-address = [000000000000]; qcom,phy-mdio-addr = <8>; qcom,link-poll = <1>; phy-mode = "usxgmii"; }; dp2 { device_type = "network"; compatible = "qcom,nss-dp"; #ifdef __CONFIG_IO_COHERENCY__ dma-coherent; #endif qcom,id = <2>; reg = <0x3A504000 0x4000>; qcom,mactype = <1>; local-mac-address = [000000000000]; qcom,phy-mdio-addr = <12>; qcom,link-poll = <1>; phy-mode = "usxgmii"; }; gmac2:dp3 { device_type = "network"; compatible = "qcom,nss-dp"; #ifdef __CONFIG_IO_COHERENCY__ dma-coherent; #endif qcom,id = <3>; reg = <0x3a001400 0x200>; qcom,mactype = <0>; local-mac-address = [000000000000]; qcom,mht-dev = <1>; qcom,is_switch_connected = <1>; phy-mode = "sgmii"; qcom,ppe-offload-disabled = <1>; }; /* EDMA host driver configuration for the board */ edma@3ab00000 { #ifdef __CONFIG_IO_COHERENCY__ dma-coherent; #endif qcom,txdesc-ring-start = <4>; /* Tx desc ring start ID */ qcom,txdesc-rings = <16>; /* Total number of Tx desc rings to be provisioned */ qcom,mht-txdesc-rings = <12>; /* Extra Tx desc rings to be provisioned for MHT SW ports */ qcom,txcmpl-ring-start = <4>; /* Tx complete ring start ID */ qcom,txcmpl-rings = <16>; /* Total number of Tx complete rings to be provisioned */ qcom,mht-txcmpl-rings = <12>; /* Extra Tx complete rings to be provisioned for mht sw ports. */ qcom,rxfill-ring-start = <4>; /* Rx fill ring start ID */ qcom,rxfill-rings = <4>; /* Total number of Rx fill rings to be provisioned */ qcom,rxdesc-ring-start = <20>; /* Rx desc ring start ID */ qcom,rxdesc-rings = <4>; /* Total number of Rx desc rings to be provisioned */ qcom,rx-page-mode = <0>; /* Rx fill ring page mode */ qcom,tx-map-priority-level = <1>; /* Tx priority level per port */ qcom,rx-map-priority-level = <1>; /* Rx priority level per core */ qcom,ppeds-num = <4>; /* Number of PPEDS nodes */ /* PPE-DS node format: <Rx-fill Tx-cmpl Rx Tx Queue-base Queue-count> */ qcom,ppeds-map = <1 1 1 1 32 8>, /* PPEDS Node #0 ring and queue map */ <2 2 2 2 40 8>, /* PPEDS Node #1 ring and queue map */ <3 3 3 3 48 8>, /* PPEDS Node #2 ring and queue map */ <0 0 0 0 56 8>; /* PPEDS Node #3 ring and queue map */ qcom,txdesc-map = <4 5 6 7>, /* Port1 per-core Tx ring map */ <8 9 10 11>, /* Port2 per-core Tx ring map */ <12 13 14 15>, /* MHT-Port1 per-core Tx ring map */ <16 17 18 19>, /* MHT-Port2 per-core Tx ring map */ <20 21 22 23>, /* MHT-Port3 per-core Tx ring map */ <24 25 26 27>, /* MHT-Port4 per-core Tx ring map */ <28 29 30 31>; /* Used only for packets from VP */ qcom,txdesc-fc-grp-map = <1 2 3 4 5 6>; /* Per GMAC flow control group map */ qcom,rxfill-map = <4 5 6 7>; /* Per-core Rx fill ring map */ qcom,rxdesc-map = <20 21 22 23>; /* Per-core Rx desc ring map */ qcom,rx-queue-start = <0>; /* Rx queue start */ qcom,rx-ring-queue-map = <0 8 16 24>, /* Priority 0 queues per-core Rx ring map */ <1 9 17 25>, /* Priority 1 queues per-core Rx ring map */ <2 10 18 26>, /* Priority 2 queues per-core Rx ring map */ <3 11 19 27>, /* Priority 3 queues per-core Rx ring map */ <4 12 20 28>, /* Priority 4 queues per-core Rx ring map */ <5 13 21 29>, /* Priority 5 queues per-core Rx ring map */ <6 14 22 30>, /* Priority 6 queues per-core Rx ring map */ <7 15 23 31>; /* Priority 7 queues per-core Rx ring map */ interrupts = <0 286 4>, /* Tx complete ring id #4 IRQ info */ <0 287 4>, /* Tx complete ring id #5 IRQ info */ <0 288 4>, /* Tx complete ring id #6 IRQ info */ <0 289 4>, /* Tx complete ring id #7 IRQ info */ <0 290 4>, /* Tx complete ring id #8 IRQ info */ <0 291 4>, /* Tx complete ring id #9 IRQ info */ <0 292 4>, /* Tx complete ring id #10 IRQ info */ <0 293 4>, /* Tx complete ring id #11 IRQ info */ <0 294 4>, /* Tx complete ring id #12 IRQ info */ <0 295 4>, /* Tx complete ring id #13 IRQ info */ <0 296 4>, /* Tx complete ring id #14 IRQ info */ <0 297 4>, /* Tx complete ring id #15 IRQ info */ <0 298 4>, /* Tx complete ring id #16 IRQ info */ <0 299 4>, /* Tx complete ring id #17 IRQ info */ <0 300 4>, /* Tx complete ring id #18 IRQ info */ <0 301 4>, /* Tx complete ring id #19 IRQ info */ <0 270 4>, /* Rx desc ring id #20 IRQ info */ <0 271 4>, /* Rx desc ring id #21 IRQ info */ <0 272 4>, /* Rx desc ring id #22 IRQ info */ <0 273 4>, /* Rx desc ring id #23 IRQ info */ <0 314 4>, /* Misc error IRQ info */ <0 278 4>, /* RxFill ring id #4 IRQ info */ <0 279 4>, /* RxFill ring id #5 IRQ info */ <0 280 4>, /* RxFill ring id #6 IRQ info */ <0 281 4>, /* RxFill ring id #7 IRQ info */ <0 283 4>, /* PPEDS Node #0(TxComp ring id #1) TxComplete IRQ info */ <0 251 4>, /* PPEDS Node #0(Rx Desc ring id #1) Rx Desc IRQ info */ <0 275 4>, /* PPEDS Node #0(RxFill Desc ring id #1) Rx Fill IRQ info */ <0 284 4>, /* PPEDS Node #1(TxComp ring id #2) TxComplete IRQ info */ <0 252 4>, /* PPEDS Node #1(Rx Desc ring id #2) Rx Desc IRQ info */ <0 276 4>, /* PPEDS Node #1(RxFill Desc ring id #2) Rx Fill IRQ info */ <0 285 4>, /* PPEDS Node #2(TxComp ring id #3) TxComplete IRQ info */ <0 253 4>, /* PPEDS Node #2(Rx Desc ring id #3) Rx Desc IRQ info */ <0 277 4>, /* PPEDS Node #2(RxFill Desc ring id #3) Rx Fill IRQ info */ <0 282 4>, /* PPEDS Node #3(TxComp ring id #0) TxComplete IRQ info */ <0 250 4>, /* PPEDS Node #3(Rx Desc ring id #0) Rx Desc IRQ info */ <0 274 4>, /* PPEDS Node #3(RxFill Desc ring id #0) Rx Fill IRQ info */ <0 302 4>, /* MHT port Tx complete ring id #20 IRQ info */ <0 303 4>, /* MHT port Tx complete ring id #21 IRQ info */ <0 304 4>, /* MHT port Tx complete ring id #22 IRQ info */ <0 305 4>, /* MHT port Tx complete ring id #23 IRQ info */ <0 306 4>, /* MHT port Tx complete ring id #24 IRQ info */ <0 307 4>, /* MHT port Tx complete ring id #25 IRQ info */ <0 308 4>, /* MHT port Tx complete ring id #26 IRQ info */ <0 309 4>, /* MHT port Tx complete ring id #27 IRQ info */ <0 310 4>, /* MHT port Tx complete ring id #28 IRQ info */ <0 311 4>, /* MHT port Tx complete ring id #29 IRQ info */ <0 312 4>, /* MHT port Tx complete ring id #30 IRQ info */ <0 313 4>; /* MHT port Tx complete ring id #31 IRQ info */ }; }; }; &pcm { pinctrl-0 = <&audio_pins_pri>; pinctrl-names = "primary"; status = "disabled"; }; &pwm { pinctrl-0 = <&pwm_default_state>; pinctrl-names = "default"; }; &qpic_bam { status = "okay"; }; &qpic_nand { status = "okay"; }; &pcie0 { perst-gpio = <&tlmm 25 GPIO_ACTIVE_LOW>; pcie0_rp { reg = <0 0 0 0 0>; }; }; &pcie1 { perst-gpio = <&tlmm 28 GPIO_ACTIVE_LOW>; pcie1_rp { reg = <0 0 0 0 0>; }; }; &pcie2_phy { status = "okay"; }; &pcie2 { status = "okay"; perst-gpio = <&tlmm 31 GPIO_ACTIVE_LOW>; pcie2_rp { reg = <0 0 0 0 0>; qcom,mhi@2 { reg = <0 0 0 0 0>; boot-args = <0x2 0x4 0xFF 0x3 0x0 0x0 /* MX Rail, Invalid GPIO, Drive strength 0x3 */ 0x5 0x4 0x34 0x3 0x0 0x16 /* CX Rail, GPIO52, Drive strength 0x3, CPR1_fuse 0x0, CPR0_fuse 0x16 */ 0x0 0x4 0x0 0x0 0x0 0x0>; /* End of arguments */ memory-region = <&qcn9224_pcie2>, <&mhi_region2>; qcom,board_id = <0x29>; qcom,wsi = <&wsi>; qcom,wsi_index = <1>; }; }; }; &pcie3_phy { status = "okay"; }; &pcie3 { status = "okay"; perst-gpio = <&tlmm 34 GPIO_ACTIVE_LOW>; pcie3_rp { reg = <0 0 0 0 0>; qcom,mhi@3 { reg = <0 0 0 0 0>; boot-args = <0x2 0x4 0xFF 0x3 0x0 0x0 /* MX Rail, Invalid GPIO, Drive strength 0x3 */ 0x5 0x4 0x34 0x3 0x0 0x16 /* CX Rail, GPIO52, Drive strength 0x3, CPR1_fuse 0x0, CPR0_fuse 0x16 */ 0x0 0x4 0x0 0x0 0x0 0x0>; /* End of arguments */ memory-region = <&qcn9224_pcie3>, <&mhi_region3>; qcom,board_id = <0x28>; qcom,wsi = <&wsi>; qcom,wsi_index = <2>; }; }; }; &reg_update { secure-reg = <0x00610a08 0x80>, /* aggr_noc_pcie2 */ <0x00610b08 0x80>; /* aggr_noc_pcie3 */ }; &qusb_phy_1 { status = "okay"; }; &usb2 { status = "okay"; }; &qusb_phy_0 { status = "okay"; }; &ssphy_0 { status = "okay"; }; &usb3 { status = "okay"; }; &q6v5_wcss { status = "okay"; }; #if !defined(__RPROC_DISABLE_MPD_SUPPORT__) &userpd_1 { status = "okay"; }; #endif &qcn9224_pcie2 { status = "okay"; }; &qcn9224_pcie3 { status = "okay"; }; #if defined(__MHI_BUS_RESERVED_DMA_POOL__) &mhi_region2 { status = "okay"; }; &mhi_region3 { status = "okay"; }; #endif &tlmm { gpio_leds_default: gpio-leds-default-state { pins = "gpio42"; function = "gpio"; drive-strength = <8>; bias-pull-down; }; pcie0_default_state: pcie0-default-state { perst-n-pins { pins = "gpio25"; function = "gpio"; drive-strength = <8>; bias-pull-up; output-low; }; }; pcie1_default_state: pcie1-default-state { perst-n-pins { pins = "gpio28"; function = "gpio"; drive-strength = <8>; bias-pull-up; output-low; }; }; pcie2_default_state: pcie2-default-state { perst-n-pins { pins = "gpio31"; function = "gpio"; drive-strength = <8>; bias-pull-up; output-low; }; }; pcie3_default_state: pcie3-default-state { perst-n-pins { pins = "gpio34"; function = "gpio"; drive-strength = <8>; bias-pull-up; output-low; }; }; pwm_default_state: pwm-default-state { pins = "gpio10"; function = "pwm0"; drive-strength = <8>; }; qspi_default_state: qspi-default-state { qspi_clock { pins = "gpio5"; function = "qspi_clk"; drive-strength = <8>; bias-pull-down; }; qspi_cs { pins = "gpio4"; function = "qspi_cs"; drive-strength = <8>; bias-pull-up; }; qspi_data { pins = "gpio0", "gpio1", "gpio2", "gpio3"; function = "qspi_data"; drive-strength = <8>; bias-pull-down; }; }; qup_spi0_default: qup-spi0-default-state { qup_spi0_clk { pins = "gpio6"; function = "spi0_clk"; drive-strength = <8>; bias-pull-down; }; qup_spi0_cs { pins = "gpio7"; function = "spi0_cs"; drive-strength = <8>; bias-pull-up; }; qup_spi0_miso { pins = "gpio8"; function = "spi0_miso"; drive-strength = <8>; bias-pull-down; }; qup_spi0_mosi { pins = "gpio9"; function = "spi0_mosi"; drive-strength = <8>; bias-pull-down; }; }; qup_uart1_default: qup-uart1-default-state { qup_uart1_tx: tx-pins { pins = "gpio44"; function = "uart1_tx"; drive-strength = <8>; bias-pull-down; }; qup_uart1_rx: rx-pins { pins = "gpio43"; function = "uart1_rx"; drive-strength = <8>; bias-pull-up; }; }; sdc_default_state: sdc-default-state { clk-pins { pins = "gpio5"; function = "sdc_clk"; drive-strength = <8>; bias-disable; }; cmd-pins { pins = "gpio4"; function = "sdc_cmd"; drive-strength = <8>; bias-pull-up; }; data-pins { pins = "gpio0", "gpio1", "gpio2", "gpio3"; function = "sdc_data"; drive-strength = <8>; bias-pull-up; }; }; qup_i2c0_default: qup-i2c0-default-state { qup_i2c0_scl { pins = "gpio14"; function = "i2c0_scl"; drive-strength = <8>; bias-disable; }; qup_i2c0_sda { pins = "gpio15"; function = "i2c0_sda"; drive-strength = <8>; bias-disable; }; }; }; &mlo_global_mem0 { status = "okay"; }; &wifi0 { qcom,rproc = <&q6v5_wcss>; qcom,tgt-mem-mode = <0>; memory-region = <&q6_region>, <&q6_region>; qcom,wsi = <&wsi>; qcom,wsi_index = <0>; qcom,board_id = <0x11>; hw_link_id = <0 0>; status = "okay"; }; &wifi3 { hremote_node = <&qcn9224_pcie2>; board_id = <0x29>; hw_link_id = <1 0>; status = "okay"; }; &wifi4 { hremote_node = <&qcn9224_pcie3>; board_id = <0x28>; hw_link_id = <2 0>; status = "okay"; }; 这是厂商示例的DTS,你就告诉我该把这些代码放这个dts的哪个节点下面怎么改,另外不要sleep功能,另外人家这function不也直接使用了具体名称吗?
最新发布
12-31
#These are properties serialized from an IA installer for use with an IA uninstaller. #Fri Jul 25 16:39:02 CST 2025 CHOSEN_INSTALL_FEATURE_2=INTERFACE CHOSEN_INSTALL_SET=Full CHOSEN_INSTALL_FEATURE_1=SERVER IA_UPGRADE_BASE_VERSION= DB_USER=system IA_RESPONSEFILE_PATH= CHOSEN_INSTALL_BUNDLE_LIST=SERVER,INTERFACE,DEPLOY,KSTUDIO,KDTS ENCODING="GBK" HAS_PERMISSION=true CHOSEN_INSTALL_BUNDLE_5=KDTS CHOSEN_INSTALL_BUNDLE_4=KSTUDIO CHOSEN_INSTALL_BUNDLE_3=DEPLOY CHOSEN_INSTALL_BUNDLE_2=INTERFACE CHOSEN_INSTALL_BUNDLE_1=SERVER DEPENDENCY_STATUS=success -fileOverwrite_E\\\:\\\\KingBase\\\\KESRealPro\\\\V009R001C002B0014\\\\install\\\\LICENSE_EN=\u662F DEPENDENCY_REPORT= IS_EMPTY=true EMPTY_STRING= EXTRACTOR_DIR=F\:\\ AM_scram-sha-256=1 CACLS_EXECUTE_STDERR= MAC_CHEWABLE= WIN_START_MENU=C\:\\Users\\Administrator\\AppData\\Roaming\\Microsoft\\Windows\\Start Menu CACLS_EXECUTE_EXITCODE=0 WIN_WINDOWS=C\:\\Windows MACX_USER_APPLICATIONS= SKIP_UNINSTALL=false CASE-SENSITIVE=0 IA_UPGRADE_BASE_LOCATION= -fileOverwrite_E\\\:\\\\KingBase\\\\KESRealPro\\\\V009R001C002B0014\\\\Uninstall\\\\Uninstaller.lax=\u662F INSTALLER_JDK_HOME= INITDB_STDOUT=\nC\:\\Users\\Administrator\\AppData\\Local\\Temp\\I1753431910\\Windows>set dir\=E\:\\KingBase\\KESRealPro\\V009R001C002B0014 \n\nC\:\\Users\\Administrator\\AppData\\Local\\Temp\\I1753431910\\Windows>set user\=system \n\nC\:\\Users\\Administrator\\AppData\\Local\\Temp\\I1753431910\\Windows>set pass\=KingBaseSuncere2025 \n\nC\:\\Users\\Administrator\\AppData\\Local\\Temp\\I1753431910\\Windows>set data\=E\:\\KingBase\\data \n\nC\:\\Users\\Administrator\\AppData\\Local\\Temp\\I1753431910\\Windows>set encoding\="GBK" \n\nC\:\\Users\\Administrator\\AppData\\Local\\Temp\\I1753431910\\Windows>set port\=54321 \n\nC\:\\Users\\Administrator\\AppData\\Local\\Temp\\I1753431910\\Windows>set mode\="oracle" \n\nC\:\\Users\\Administrator\\AppData\\Local\\Temp\\I1753431910\\Windows>set block_size\="8" \n\nC\:\\Users\\Administrator\\AppData\\Local\\Temp\\I1753431910\\Windows>set case-insensitive\="yes" \n\nC\:\\Users\\Administrator\\AppData\\Local\\Temp\\I1753431910\\Windows>set authenticate\="scram-sha-256" \n\nC\:\\Users\\Administrator\\AppData\\Local\\Temp\\I1753431910\\Windows>set custom\= \n\nC\:\\Users\\Administrator\\AppData\\Local\\Temp\\I1753431910\\Windows>call "E\:\\KingBase\\KESRealPro\\V009R001C002B0014"\\install\\script\\initdb.bat system KingBaseSuncere2025 "E\:\\KingBase\\KESRealPro\\V009R001C002B0014" "E\:\\KingBase\\data" 54321 "GBK" "8" "oracle" "yes" "scram-sha-256" "" 1>>"E\:\\KingBase\\KESRealPro\\V009R001C002B0014"\\install\\Logs\\init.log 2>&1 \n AM_sm4=0 AM_sm3=0 ENCODING_EXECUTE_STDERR= SYSTEM_DRIVE_ROOT=C\:\\ PROGRAMS_DIR_32=C\:\\Program Files (x86) USER_INPUT_BLOCK16_RESULT=0 IS_EMPTY_VARIABLE_NAME=IS_EMPTY IS_CONTAIN_BLANK=CONTAIN_BLANK SYSTEM_32=C\:\\Windows\\SysWOW64 VARIABLE_NAME=AuthenticateMethod -fileOverwrite_E\\\:\\\\KingBase\\\\KESRealPro\\\\V009R001C002B0014\\\\install\\\\script\\\\vcredist_x64.exe=\u662F CHOSEN_INSTALL_FEATURE_NUM=5 CASE-INSENSITIVE=1 INSTALL_SUCCESS=SUCCESS CONTAIN_BLANK=false INSTALL_DRIVE_ROOT=E\:\\ MVLICENSE_STDOUT=\u5220\u9664\u6587\u4EF6 - E\:\\KingBase\\KESRealPro\\V009R001C002B0014\\Server\\bin\\license.dat\n1\n NULL= CASEINSENSITIVE_EXECUTE_EXITCODE=0 DEPENDENCY_FAILURES= UNIX_USR_LOCAL_BIN= CREAT_FOLDER_STDERR= CASEINSENSITIVE="yes" FREE_DISK_SPACE_MEGABYTES=55226 INSTALLER_JAVA_EXECUTABLE=E\:\\KingBase\\KESRealPro\\V009R001C002B0014\\install\\jre\\bin\\java.exe FREEDISK_SPACE=55226 ENCRYPT_VARIABLE_NAME2=DB_PASS2 ENCRYPT_VARIABLE_NAME1=DB_PASS WIN_PROGRAMS_MENU=C\:\\Users\\Administrator\\AppData\\Roaming\\Microsoft\\Windows\\Start Menu\\Programs -fileOverwrite_E\\\:\\\\KingBase\\\\KESRealPro\\\\V009R001C002B0014\\\\Uninstall\\\\resource\\\\iawin32.dll=\u662F SPACE_EXITCODE=0 FREE_DISK_SPACE_BYTES=57909161984 ia.mac.invoked.user= KB_LICENSE_PATH=$USER_MAGIC_FOLDER_3$$/$Server$/$bin$/$license.dat STARTUP=C\:\\Users\\Administrator\\AppData\\Roaming\\Microsoft\\Windows\\Start Menu\\Programs\\Startup DATABASE_MODE_MYSQL=0 FREE_DISK_SPACE_KILOBYTES=56551916 ENCRYPT_MODE=ENCODE -fileOverwrite_E\\\:\\\\KingBase\\\\KESRealPro\\\\V009R001C002B0014\\\\install\\\\LICENSE_ZH=\u662F DEFAULT_CONSOLE_CUSTOM=\ WIN_QUICK_LAUNCH_BAR=C\:\\Users\\Administrator\\AppData\\Roaming\\Microsoft\\Internet Explorer\\Quick Launch\\ DISK_VAR=FREEDISK_SPACE EXECUTE_STDOUT_2=20250725 AM_scram-sm3=0 PRODUCT_NAME=KingbaseES V9 USER_HOME=C\:\\Users\\Administrator EXECUTE_FILE_TARGET=E\:\\KingBase\\KESRealPro\\V009R001C002B0014\\install\\script\\sysctl.bat -fileOverwrite_E\\\:\\\\KingBase\\\\KESRealPro\\\\V009R001C002B0014\\\\Uninstall\\\\resource\\\\remove.exe=\u662F -fileOverwrite_E\\\:\\\\KingBase\\\\KESRealPro\\\\V009R001C002B0014\\\\install\\\\script\\\\initdb.bat=\u662F OUTPUT_VARIABLE=EXECUTE_STDOUT_2 KSPATH_STDOUT=\n\u6210\u529F\: \u6307\u5B9A\u7684\u503C\u5DF2\u5F97\u5230\u4FDD\u5B58\u3002\n\u5220\u9664\u6587\u4EF6 - C\:\\Users\\Administrator\\AppData\\Local\\Temp\\I1753431910\\Windows\\temp.txt\n\u5220\u9664\u6587\u4EF6 - C\:\\Users\\Administrator\\AppData\\Local\\Temp\\I1753431910\\Windows\\tmp.txt\n\u5220\u9664\u6587\u4EF6 - C\:\\Users\\Administrator\\AppData\\Local\\Temp\\I1753431910\\Windows\\tmp1.txt\n SPACE_STDERR= INSTALLER_TITLE=KingbaseES V9 \u5B89\u88C5\u7A0B\u5E8F DEVELOPER_DISK_SPACE_ADDITIONAL= KSPATH_EXECUTE_EXITCODE=0 CHOSEN_INSTALL_FEATURE_LIST=SERVER,INTERFACE,DEPLOY,KSTUDIO,KDTS UNIX_OPT= VCREDIST_NAME=Microsoft Visual C++ 2013 Redistributable (x64) - 12.0.40664 -fileOverwrite_E\\\:\\\\KingBase\\\\KESRealPro\\\\V009R001C002B0014\\\\install\\\\script\\\\unregister.bat=\u662F UNIX_USR_BIN= INITDB_STDERR= USER_MAGIC_FOLDER_25= BLOCK_SIZE="8" USER_MAGIC_FOLDER_24= USER_MAGIC_FOLDER_23= USER_MAGIC_FOLDER_22= USER_MAGIC_FOLDER_21= USER_MAGIC_FOLDER_20= ENCODING_EXECUTE_EXITCODE=0 SYSCTL_EXITCODE=0 -fileOverwrite_E\\\:\\\\KingBase\\\\KESRealPro\\\\V009R001C002B0014\\\\Uninstall\\\\resource\\\\invoker.exe=\u662F USER_SELECTED_DATA_FOLDER=E\:\\KingBase\\data WIN_COMMON_START_MENU=C\:\\ProgramData\\Microsoft\\Windows\\Start Menu DB_ENCODING_GB2312=0 -fileOverwrite_E\\\:\\\\KingBase\\\\KESRealPro\\\\V009R001C002B0014\\\\Uninstall\\\\resource\\\\win64_32_x64.exe=\u662F BLOCKSIZE_EXECUTE_EXITCODE=0 USER_INPUT_BLOCK8_RESULT=1 USER_MAGIC_FOLDER_19= CURRENT_DATE=202507250430 WIN_COMMON_STARTUP=C\:\\ProgramData\\Microsoft\\Windows\\Start Menu\\Programs\\StartUp USER_MAGIC_FOLDER_18= ENOUGH_SPACE_VARIABLE_NAME=HAS_ENOUGHSPACE CHOSEN_INSTALL_FEATURE_LIST_LONG=\u6570\u636E\u5E93\u670D\u52A1\u5668,\u63A5\u53E3,\u6570\u636E\u5E93\u90E8\u7F72\u5DE5\u5177,\u6570\u636E\u5E93\u5F00\u53D1\u7BA1\u7406\u5DE5\u5177,\u6570\u636E\u5E93\u8FC1\u79FB\u5DE5\u5177 PROGRAMS_DIR=C\:\\Program Files USER_MAGIC_FOLDER_17= USER_MAGIC_FOLDER_16= KSPATH_EXECUTE_STDERR= USER_MAGIC_FOLDER_15= USER_MAGIC_FOLDER_14= FREE_DISK_SPACE_GIGABYTES=53 USER_MAGIC_FOLDER_13= USER_MAGIC_FOLDER_12=C\:\\Users\\Administrator\\AppData\\Roaming\\Microsoft\\Windows\\Start Menu\\Programs\\KingbaseES V9 USER_MAGIC_FOLDER_11=C\:\\Users\\Administrator\\AppData\\Roaming\\Microsoft\\Windows\\Start Menu\\Programs\\KingbaseES V9\\Client Tools DO_NOT_INSTALL=Do Not Install USER_MAGIC_FOLDER_10= MVLICENSE_STDERR= DOLLAR=$ WIN_COMMON_PROGRAMS_MENU=C\:\\ProgramData\\Microsoft\\Windows\\Start Menu\\Programs USER_SHORTCUTS=C\:\\Users\\Administrator\\AppData\\Roaming\\Microsoft\\Windows\\Start Menu\\Programs\\KingbaseES V9 CONTAIN_SPACE_CHAR_VARIABLE_NAME=CONTAIN_SPACECHAR MVLICENSE_EXITCODE=0 PRODUCT_ID=42935a12-1f08-11b2-8349-8bb7aaf645eb COMMA=, INSTALLER_MERGE_MODULE= REQUIRE_SPACE=5581 SYSCTL_STDERR$='system' \u4E0D\u662F\u5185\u90E8\u6216\u5916\u90E8\u547D\u4EE4\uFF0C\u4E5F\u4E0D\u662F\u53EF\u8FD0\u884C\u7684\u7A0B\u5E8F\n\u6216\u6279\u5904\u7406\u6587\u4EF6\u3002\n DEPENDENCY_SUCCESSES= DEFAULT_CONSOLE_CUSTOM_NAME=DEFAULT_CONSOLE_CUSTOM FONTS=C\:\\Windows\\Fonts USER_INPUT_BLOCK32_RESULT=0 INITCUSTOM= REGISTER_STDERR$='system' \u4E0D\u662F\u5185\u90E8\u6216\u5916\u90E8\u547D\u4EE4\uFF0C\u4E5F\u4E0D\u662F\u53EF\u8FD0\u884C\u7684\u7A0B\u5E8F\n\u6216\u6279\u5904\u7406\u6587\u4EF6\u3002\n REQUIRED_DISK_SPACE_MEGABYTES=3282 IS_VCREDIST_EXISTS=true INSTALLER_JAVA_DOT_HOME=E\:\\KingBase\\KESRealPro\\V009R001C002B0014\\install\\jre MODE_EXECUTE_STDERR= DESKTOP=C\:\\Users\\Administrator\\Desktop JAVA_HOME=E\:\\KingBase\\KESRealPro\\V009R001C002B0014\\install\\jre IA_8DOT3_FILENAMECREATION_STATE=False SYSTEM=C\:\\Windows\\system32 BLOCKSIZE_EXECUTE_STDERR= -fileOverwrite_E\\\:\\\\KingBase\\\\KESRealPro\\\\V009R001C002B0014\\\\install\\\\script\\\\sysctl.bat=\u662F AuthenticateMethod_EXECUTE_EXITCODE=0 -fileOverwrite_E\\\:\\\\KingBase\\\\KESRealPro\\\\V009R001C002B0014\\\\install\\\\script\\\\clearPath.bat=\u662F -fileOverwrite_E\\\:\\\\KingBase\\\\KESRealPro\\\\V009R001C002B0014\\\\install\\\\script\\\\register.bat=\u662F HAS_ENOUGHSPACE=true MAC_APPLE_MENU= REQUIRED_DISK_SPACE_KILOBYTES=3360850 DB_ENCODING_DEFAULT=0 REGISTER_STDOUT=The beginning of Register Kingbase ES.\nRunning register.bat...\nRegister Kingbase ES Finish.\n \\=$prop.file.separator$ CACLS_EXECUTE_STDOUT= MAC_CONTROL_PANELS= MODE="oracle" DATABASE_MODE_PG=0 CONTAIN_SPACECHAR=false REQUIRED_DISK_SPACE_BYTES=3441510982 OS_ENCODING_GBK=true USER_MAGIC_FOLDER_9= CHOSEN_INSTALL_BUNDLE_NUM=5 USER_MAGIC_FOLDER_8= DB_ENCODING_UTF8=0 USER_MAGIC_FOLDER_7= DB_ENCODING_GBK=1 USER_MAGIC_FOLDER_6= USER_MAGIC_FOLDER_5= USER_MAGIC_FOLDER_4=E\:\\KingBase\\KESRealPro\\V009R001C002B0014\\install IA_CUSTOM_CODE_ZIP_SIZE=0 USER_MAGIC_FOLDER_3=E\:\\KingBase\\KESRealPro\\V009R001C002B0014 USER_MAGIC_FOLDER_2=E\:\\KingBase\\install USER_MAGIC_FOLDER_1=E\:\\KingBase REGISTER_EXITCODE=0 AuthenticateMethod_EXECUTE_STDERR= -fileOverwrite_E\\\:\\\\KingBase\\\\KESRealPro\\\\V009R001C002B0014\\\\Uninstall\\\\resource\\\\iawin64_x64.dll=\u662F AuthenticateMethod="scram-sha-256" USER_INSTALL_DIR=E\:\\KingBase ;=$prop.path.separator$ CREAT_FOLDER_EXITCODE=0 \:=$prop.path.separator$ DB_ENCODING_GB18030=0 OS400_INSTALL_DIR=/KingbaseES V9 OVERWRITE_IA_CHMOD=false FOLDER=$USER_SELECTED_DATA_FOLDER$ TEMP_DIR=C\:\\Users\\Administrator\\AppData\\Local\\Temp IA_INSTALLER_OPTIONS=true /=$prop.file.separator$ MAC_EXTENSIONS= SYSCTL_STDOUT=The beginning of Start Kingbase ES.\nRunning sysctl.bat...\n\nSERVICE_NAME\: kingbase9_R1_instance \n TYPE \: 10 WIN32_OWN_PROCESS \n STATE \: 2 START_PENDING \n (STOPPABLE, PAUSABLE, ACCEPTS_SHUTDOWN)\n WIN32_EXIT_CODE \: 0 (0x0)\n SERVICE_EXIT_CODE \: 0 (0x0)\n CHECKPOINT \: 0x0\n WAIT_HINT \: 0xea60\n PID \: 16120\n FLAGS \: \nStart Kingbase ES Complete.\n LINK_ROOT_PATH=$USER_MAGIC_FOLDER_3$ DB_PASS2=S2luZ0Jhc2VTdW5jZXJlMjAyNQ\=\= INPUT_VARIABLE=$DB_USER$ FORMAT=yyyyMMdd MAC_PREFERENCES= REQUIRED_SPACE=100 IA_CLASSPATH= DB_PORT=54321 DATABASE_MODE_ORACLE=1 SHORTCUT_NAME=\u5FEB\u6377\u65B9\u5F0F -fileOverwrite_E\\\:\\\\KingBase\\\\KESRealPro\\\\V009R001C002B0014\\\\install\\\\script\\\\setPath.bat=\u662F INITDB_EXITCODE=0 PRODUCT_VERSION_NUMBER=9.1.0.14 HAS_PERMISSION_VARIABLE_NAME=HAS_PERMISSION CASEINSENSITIVE_EXECUTE_STDERR= CHOSEN_INSTALL_BUNDLE_LIST_LONG=\u6570\u636E\u5E93\u670D\u52A1\u5668,\u63A5\u53E3,\u6570\u636E\u5E93\u90E8\u7F72\u5DE5\u5177,\u6570\u636E\u5E93\u5F00\u53D1\u7BA1\u7406\u5DE5\u5177,\u6570\u636E\u5E93\u8FC1\u79FB\u5DE5\u5177 MACX_DOCK= PROGRAMS_DIR_64=C\:\\Program Files REQUIRED_DISK_SPACE_GIGABYTES=3 CREAT_FOLDER_STDOUT= UNIX_USER_HOME=C\:\\Users\\Administrator EXTRACTOR_EXECUTABLE=F\:\\KINGBASE.EXE DB_PASS=S2luZ0Jhc2VTdW5jZXJlMjAyNQ\=\= IA_GLOBAL_REG_LOCATION=C\:\\Program Files\\Zero G Registry\\.com.zerog.registry.xml SYSTEM_64=C\:\\Windows\\system32 WIN_COMMON_DESKTOP=C\:\\Users\\Public\\Desktop CHOSEN_INSTALL_FEATURE_5=KDTS IA_INSTALLER_STATUS=SUCCESS CHOSEN_INSTALL_FEATURE_4=KSTUDIO MODE_EXECUTE_EXITCODE=0 =\ CHOSEN_INSTALL_FEATURE_3=DEPLOY
07-26
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值