您尚未登录。

#1 Re: RISC-V » 避坑指南-国产wifi蓝牙芯片W800/W801/W806的GPIO速度很慢 » 2022-12-22 19:38:00

@iamseer
避免16位指令直接关掉c扩展不是更快?

#2 Re: RISC-V » 避坑指南-国产wifi蓝牙芯片W800/W801/W806的GPIO速度很慢 » 2022-12-19 19:03:16

@xiao_fang
因为ch582的flash只能在20m主频及以下0等待,等待周期太长了,追求速度得扔到ram运行。

#4 全志 SOC » XR829的蓝牙HFP该如何入门使用 » 2022-06-17 22:58:15

梦程
回复: 0

最近在研究T113+XR829的开发,通过查看Yuzuki大佬的D1s-Nezha开发板,发现XR829有一组pcm接口,好像可以做蓝牙HFP,请问这方面该如何入手开发,有没有参考资料之类的,目前手里只有个datasheet,不知道如何下手了。

#5 Re: 全志 SOC » T113 RTL8189驱动挂载失败 » 2022-06-16 18:19:56

折腾了一下发现是rtl8189的驱动有点小问题,打了个patch就能识别了

diff --git a/os_dep/linux/os_intfs.c b/os_dep/linux/os_intfs.c
index 801e126..76ebff1 100644
--- a/os_dep/linux/os_intfs.c
+++ b/os_dep/linux/os_intfs.c
@@ -21,6 +21,7 @@ MODULE_LICENSE("GPL");
 MODULE_DESCRIPTION("Realtek Wireless Lan Driver");
 MODULE_AUTHOR("Realtek Semiconductor Corp.");
 MODULE_VERSION(DRIVERVERSION);
+MODULE_IMPORT_NS(VFS_internal_I_am_really_a_filesystem_and_am_NOT_a_driver);
 
 /* module param defaults */
 int rtw_chip_version = 0x00;
diff --git a/os_dep/linux/rtw_cfgvendor.c b/os_dep/linux/rtw_cfgvendor.c
index 886d7a3..d07cbe6 100644
--- a/os_dep/linux/rtw_cfgvendor.c
+++ b/os_dep/linux/rtw_cfgvendor.c
@@ -1748,8 +1748,10 @@ static const struct wiphy_vendor_command rtw_vendor_cmds[] = {
 		.flags = WIPHY_VENDOR_CMD_NEED_WDEV | WIPHY_VENDOR_CMD_NEED_NETDEV,
 		.doit = rtw_cfgvendor_gscan_get_capabilities,
 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 3, 0))
-		.policy = VENDOR_CMD_RAW_DATA,
+               .policy = VENDOR_CMD_RAW_DATA,
+               .maxattr = 1
 #endif
+
 	},
 	{
 		{

然后记得MQ-R的引脚和MQ-DUAL的不一样 要改一下设备树

	rfkill: rfkill@0 {
		compatible    = "allwinner,sunxi-rfkill";
		chip_en;
		power_en;
		pinctrl-0 = <&wlan_pins_a>;
		pinctrl-names = "default";
		status        = "disabled";

		wlan: wlan@0 {
			compatible    = "allwinner,sunxi-wlan";
			clock-names = "32k-fanout1";
			clocks = <&ccu CLK_FANOUT1_OUT>;
			wlan_busnum    = <0x1>;
			wlan_regon    = <&pio PG 12 GPIO_ACTIVE_HIGH>;
			wlan_hostwake  = <&pio PG 10 GPIO_ACTIVE_HIGH>;
			/*wlan_power    = "VCC-3V3";*/
			/*wlan_power_vol = <3300000>;*/
			/*interrupt-parent = <&pio>;
			interrupts = < PG 10 IRQ_TYPE_LEVEL_HIGH>;*/
			wakeup-source;

		};

		bt: bt@0 {
			compatible    = "allwinner,sunxi-bt";
			pinctrl-0 = <&wlan_pins_a>;
			pinctrl-names = "default";
			clock-names = "32k-fanout1";
			clocks = <&ccu CLK_FANOUT1_OUT>;
			/*bt_power_num = <0x01>;*/
			/*bt_power      = "axp803-dldo1";*/
			/*bt_io_regulator = "axp803-dldo1";*/
			/*bt_io_vol = <3300000>;*/
			/*bt_power_vol = <330000>;*/
			bt_rst_n      = <&pio PG 15 GPIO_ACTIVE_LOW>;
			status        = "okay";
		};
	};

	btlpm: btlpm@0 {
		compatible  = "allwinner,sunxi-btlpm";
		uart_index  = <0x1>;
		bt_wake     = <&pio PG 14 GPIO_ACTIVE_HIGH>;
		bt_hostwake = <&pio PG 13 GPIO_ACTIVE_HIGH>;
		status      = "okay";
	};

最后来个成功的log

Starting syslogd: OK
Starting klogd: OK
Running sysctl: OK
Populating /dev using udev: [    2.803465] udevd[1082]: starting version 3.2.11
[    2.827674] random: udevd: uninitialized urandom read (16 bytes read)
[    2.838221] random: udevd: uninitialized urandom read (16 bytes read)
[    2.845604] random: udevd: uninitialized urandom read (16 bytes read)
[    2.877616] udevd[1084]: starting eudev-3.2.11
[    3.286062] 8189fs: loading out-of-tree module taints kernel.
[    3.307545] RTL871X: module init start
[    3.311867] RTL871X: rtl8189fs v4.3.24.8_22657.20170607
[    3.358075] RTL871X: HW EFUSE
[    3.361739] RTL871X: hal_com_config_channel_plan chplan:0x20
[    3.546884] RTL871X: rtw_regsty_chk_target_tx_power_valid return _FALSE for band:0, path:0, rs:0, t:-1
[    3.558479] RTL871X: rtw_ndev_init(wlan0) if1 mac_addr=94:a4:08:c1:33:fb
[    3.568532] RTL871X: module init ret=0

#6 全志 SOC » T113 RTL8189驱动挂载失败 » 2022-06-15 10:18:47

梦程
回复: 4

我在尝试用MQ-R(T113)通过rtl8189上网,但是通过buildroot编译出来的似乎不能正常挂载,请教大佬们该如何解决。
Buildroot:https://github.com/mangopi-sbc/buildroot-d1x-t113

启动日志如下:

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.4.61 (darren@darren-ubuntu18) (arm-linux-gnueabi-gcc (Linaro GCC 7.2-2017.11) 7.2.1 20171011, GNU ld (Linaro_Binutils-2017.11) 2.28.2.20170706) #1 SMP PREEMPT Tue Jun 14 23:36:02 CST 2022
[    0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d
[    0.000000] CPU: div instructions available: patching division code
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt: Machine model: sun8iw20
[    0.000000] printk: bootconsole [earlycon0] enabled
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] cma: Reserved 8 MiB at 0x47800000
[    0.000000] On node 0 totalpages: 32512
[    0.000000]   Normal zone: 256 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 32512 pages, LIFO batch:7
[    0.000000] psci: probing for conduit method from DT.
[    0.000000] psci: PSCIv1.0 detected in firmware.
[    0.000000] psci: Using standard PSCI v0.2 function IDs
[    0.000000] psci: MIGRATE_INFO_TYPE not supported.
[    0.000000] psci: SMC Calling Convention v1.0
[    0.000000] percpu: Embedded 15 pages/cpu s30796 r8192 d22452 u61440
[    0.000000] pcpu-alloc: s30796 r8192 d22452 u61440 alloc=15*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 32256
[    0.000000] Kernel command line: earlyprintk=sunxi-uart,0x02500000 clk_ignore_unused initcall_debug=0 console=ttyS0,115200 loglevel=8 root=/dev/mmcblk0p5  init=/sbin/init partitions=ext4 cma=8M  gpt=1 androidboot.hardware=sun8iw20p1 boot_type=1 androidboot.boot_type=1 gpt=1 uboot_message=2018.05(05/20/2022-05:59:29) disp_reserve=522240,0x448ed000 androidboot.dramsize=128
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes, linear)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 106952K/130048K available (7168K kernel code, 352K rwdata, 2448K rodata, 1024K init, 177K bss, 14904K reserved, 8192K cma-reserved)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[    0.000000] rcu: Preemptible hierarchical RCU implementation.
[    0.000000]  Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] random: get_random_bytes called from start_kernel+0x248/0x3d0 with crng_init=0
[    0.000000] arch_timer: cp15 timer(s) running at 24.00MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[    0.000006] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.008018] Switching to timer-based delay loop, resolution 41ns
[    0.014195] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.023961] Console: colour dummy device 80x30
[    0.028460] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[    0.038832] pid_max: default: 32768 minimum: 301
[    0.043582] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.050919] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.059296] CPU: Testing write buffer coherency: ok
[    0.064542] /cpus/cpu@0 missing clock-frequency property
[    0.069869] /cpus/cpu@1 missing clock-frequency property
[    0.075222] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.081495] Setting up static identity map for 0x40100000 - 0x40100060
[    0.088182] rcu: Hierarchical SRCU implementation.
[    0.093476] smp: Bringing up secondary CPUs ...
[    0.099251] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.099405] smp: Brought up 1 node, 2 CPUs
[    0.109224] SMP: Total of 2 processors activated (96.00 BogoMIPS).
[    0.115421] CPU: All CPU(s) started in SVC mode.
[    0.120547] devtmpfs: initialized
[    0.135811] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    0.144024] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.153879] futex hash table entries: 512 (order: 3, 32768 bytes, linear)
[    0.161148] pinctrl core: initialized pinctrl subsystem
[    0.167761] NET: Registered protocol family 16
[    0.173810] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.219566] rtc_ccu: sunxi ccu init OK
[    0.225738] ccu: sunxi ccu init OK
[    0.229597] r_ccu: sunxi ccu init OK
[    0.283205] iommu: Default domain type: Translated
[    0.289550] sunxi iommu: irq = 24
[    0.294030] SCSI subsystem initialized
[    0.298181] usbcore: registered new interface driver usbfs
[    0.303778] usbcore: registered new interface driver hub
[    0.309560] usbcore: registered new device driver usb
[    0.314764] mc: Linux media interface: v0.10
[    0.319378] videodev: Linux video capture interface: v2.00
[    0.326112] sunxi-msgbox-amp 3003000.msgbox: invalid resource
[    0.333293] Advanced Linux Sound Architecture Driver Initialized.
[    0.340097] Bluetooth: Core ver 2.22
[    0.343854] NET: Registered protocol family 31
[    0.348304] Bluetooth: HCI device and connection manager initialized
[    0.354710] Bluetooth: HCI socket layer initialized
[    0.359604] Bluetooth: L2CAP socket layer initialized
[    0.364723] Bluetooth: SCO socket layer initialized
[    0.369935] pwm module init!
[    0.374460] input: sunxi-keyboard as /devices/virtual/input/input0
[    0.382133] clocksource: Switched to clocksource arch_sys_counter
[    0.397615] sun8iw20-pinctrl pio: initialized sunXi PIO driver
[    0.417602] thermal_sys: Registered thermal governor 'user_space'
[    0.417609] thermal_sys: Registered thermal governor 'power_allocator'
[    0.424495] NET: Registered protocol family 2
[    0.435993] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[    0.444448] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.452143] TCP bind hash table entries: 1024 (order: 1, 8192 bytes, linear)
[    0.459214] TCP: Hash tables configured (established 1024 bind 1024)
[    0.465774] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.472363] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.479567] NET: Registered protocol family 1
[    0.486631] Initialise system trusted keyrings
[    0.491312] workingset: timestamp_bits=30 max_order=15 bucket_order=0
[    0.506541] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.547408] Key type asymmetric registered
[    0.551526] Asymmetric key parser 'x509' registered
[    0.556465] io scheduler mq-deadline registered
[    0.560999] io scheduler kyber registered
[    0.565114] atomic64_test: passed
[    0.570120] [DISP]disp_module_init
[    0.574228] disp 5000000.disp: Adding to iommu group 0
[    0.579996] [DISP] disp_init,line:2386:
[    0.580001] smooth display screen:0 type:1 mode:4
[    0.604904] do not get the node of hdmi
[    0.609070] display_fb_request,fb_id:0
[    0.617859] Freeing logo buffer memory: 512K
[    0.622774] disp_al_manager_apply ouput_type:1
[    0.627358] [DISP] lcd_clk_config,line:732:
[    0.627370] disp 0, clk: pll(144000000),clk(144000000),dclk(24000000) dsi_rate(144000000)
[    0.627370]      clk real:pll(288000000),clk(288000000),dclk(48000000) dsi_rate(0)
[    0.632776] [DISP]disp_module_init finish
[    0.647881] sun8iw20-pinctrl pio: pio supply vcc-pd not found, using dummy regulator
[    0.653373] sunxi_sid_init()551 - insmod ok
[    0.664072] pwm-regulator: supplied by regulator-dummy
[    0.670799] sun8iw20-pinctrl pio: pio supply vcc-pe not found, using dummy regulator
[    0.678991] uart uart0: get regulator failed
[    0.683357] uart uart0: uart0 supply uart not found, using dummy regulator
[    0.690572] uart0: ttyS0 at MMIO 0x2500000 (irq = 34, base_baud = 1500000) is a SUNXI
[    0.698468] sw_console_setup()1808 - console setup baud 115200 parity n bits 8, flow n
[    0.706474] printk: console [ttyS0] enabled
[    0.706474] printk: console [ttyS0] enabled
[    0.715372] printk: bootconsole [earlycon0] disabled
[    0.715372] printk: bootconsole [earlycon0] disabled
[    0.726673] sun8iw20-pinctrl pio: pio supply vcc-pg not found, using dummy regulator
[    0.735725] uart uart3: get regulator failed
[    0.740499] uart uart3: uart3 supply uart not found, using dummy regulator
[    0.748562] uart3: ttyS3 at MMIO 0x2500c00 (irq = 35, base_baud = 1500000) is a SUNXI
[    0.758420] misc dump reg init
[    0.764979] libphy: Fixed MDIO Bus: probed
[    0.769855] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.777208] sunxi-ehci: EHCI SUNXI driver
[    0.782076] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.789039] sunxi-ohci: OHCI SUNXI driver
[    0.794180] usbcore: registered new interface driver uas
[    0.800215] usbcore: registered new interface driver usb-storage
[    0.807022] usbcore: registered new interface driver ums-alauda
[    0.813750] usbcore: registered new interface driver ums-cypress
[    0.820498] usbcore: registered new interface driver ums-datafab
[    0.827290] usbcore: registered new interface driver ums_eneub6250
[    0.834270] usbcore: registered new interface driver ums-freecom
[    0.841019] usbcore: registered new interface driver ums-isd200
[    0.847711] usbcore: registered new interface driver ums-jumpshot
[    0.854579] usbcore: registered new interface driver ums-karma
[    0.861149] usbcore: registered new interface driver ums-onetouch
[    0.868073] usbcore: registered new interface driver ums-realtek
[    0.874849] usbcore: registered new interface driver ums-sddr09
[    0.881532] usbcore: registered new interface driver ums-sddr55
[    0.888215] usbcore: registered new interface driver ums-usbat
[    0.894813] usbcore: registered new interface driver idmouse
[    0.901932] sunxi_gpadc_init,2151, success
[    0.906917] sunxi_gpadc_setup: get channel scan data failed
[    0.913456] input: sunxi-gpadc0 as /devices/virtual/input/input1
[    0.921437] sunxi-rtc 7090000.rtc: errata__fix_alarm_day_reg_default_value(): ALARM0_DAY_REG=0, set it to 1
[    0.933535] sunxi-rtc 7090000.rtc: registered as rtc0
[    0.939324] sunxi-rtc 7090000.rtc: setting system clock to 1970-01-01T00:00:04 UTC (4)
[    0.948215] sunxi-rtc 7090000.rtc: sunxi rtc probed
[    0.954153] i2c /dev entries driver
[    0.958181] IR NEC protocol handler initialized
[    0.963702] sun8iw20-pinctrl pio: pio supply vcc-pb not found, using dummy regulator
[    0.972668] sunxi-rc-recv 7040000.s_cir: sunxi_irrx_resource_get: get ir protocol failed
[    0.981785] Registered IR keymap rc_map_sunxi
[    0.986848] rc rc0: sunxi-ir as /devices/platform/soc@3000000/7040000.s_cir/rc/rc0
[    0.995555] rc rc0: lirc_dev: driver sunxi-rc-recv registered at minor = 0, raw IR receiver, no transmitter
[    1.006688] input: sunxi-ir as /devices/platform/soc@3000000/7040000.s_cir/rc/rc0/s_cir_rx
[    1.016976] sunxi cedar version 1.1
[    1.021086] sunxi-cedar 1c0e000.ve: Adding to iommu group 0
[    1.027386] VE: failed to get alias ve id
[    1.027386]
[    1.033535] VE: sunxi_cedar_probe power-domain init!!!
[    1.039268] VE: install start!!!
[    1.039268]
[    1.044827] VE: cedar-ve the get irq is 41
[    1.044827]
[    1.051288] VE: ve_debug_proc_info:(ptrval), data:(ptrval), lock:(ptrval)
[    1.051288]
[    1.060556] VE: install end!!!
[    1.060556]
[    1.065629] VE: sunxi_cedar_probe
[    1.070911] sunxi-wdt 20500a0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    1.080070] Bluetooth: HCI UART driver ver 2.3
[    1.085054] Bluetooth: HCI UART protocol H4 registered
[    1.090800] Bluetooth: HCI UART protocol BCSP registered
[    1.096733] Bluetooth: XRadio Bluetooth LPM Mode Driver Ver 1.0.10
[    1.103960] [XR_BT_LPM] bluesleep_probe: bt_wake polarity: 1
[    1.110346] [XR_BT_LPM] bluesleep_probe: host_wake polarity: 1
[    1.116880] [XR_BT_LPM] bluesleep_probe: wakeup source is disabled!
[    1.116880]
[    1.125533] [XR_BT_LPM] bluesleep_probe: uart_index(1)
[    1.134495] sunxi-mmc 4020000.sdmmc: SD/MMC/SDIO Host Controller Driver(v4.21 2021-11-18 10:02)
[    1.144447] sunxi-mmc 4020000.sdmmc: ***ctl-spec-caps*** 8
[    1.150673] sunxi-mmc 4020000.sdmmc: No vmmc regulator found
[    1.157013] sunxi-mmc 4020000.sdmmc: No vqmmc regulator found
[    1.163430] sunxi-mmc 4020000.sdmmc: No vdmmc regulator found
[    1.169843] sunxi-mmc 4020000.sdmmc: No vd33sw regulator found
[    1.176401] sunxi-mmc 4020000.sdmmc: No vd18sw regulator found
[    1.182938] sunxi-mmc 4020000.sdmmc: No vq33sw regulator found
[    1.189440] sunxi-mmc 4020000.sdmmc: No vq18sw regulator found
[    1.196459] sunxi-mmc 4020000.sdmmc: Got CD GPIO
[    1.201897] sunxi-mmc 4020000.sdmmc: set cd-gpios as 24M fail
[    1.208606] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 0Hz bm PP pm UP vdd 21 width 1 timing LEGACY(SDR12) dt B
[    1.219738] sunxi-mmc 4020000.sdmmc: no vqmmc,Check if there is regulator
[    1.239867] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[    1.264264] sunxi-mmc 4020000.sdmmc: detmode:gpio irq
[    1.269924] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[    1.272816] sunxi-mmc 4021000.sdmmc: SD/MMC/SDIO Host Controller Driver(v4.21 2021-11-18 10:02)
[    1.284685] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[    1.291399] sunxi-mmc 4021000.sdmmc: ***ctl-spec-caps*** 8
[    1.305109] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[    1.308874] sunxi-mmc 4021000.sdmmc: No vmmc regulator found
[    1.323374] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[    1.326695] sunxi-mmc 4021000.sdmmc: No vqmmc regulator found
[    1.344646] sunxi-mmc 4021000.sdmmc: No vdmmc regulator found
[    1.351051] sunxi-mmc 4021000.sdmmc: No vd33sw regulator found
[    1.357568] sunxi-mmc 4021000.sdmmc: No vd18sw regulator found
[    1.364084] sunxi-mmc 4021000.sdmmc: No vq33sw regulator found
[    1.370585] sunxi-mmc 4021000.sdmmc: No vq18sw regulator found
[    1.377119] sunxi-mmc 4021000.sdmmc: Cann't get pin bias hs pinstate,check if needed
[    1.386541] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 0Hz bm PP pm UP vdd 21 width 1 timing LEGACY(SDR12) dt B
[    1.388518] mmc0: host does not support reading read-only switch, assuming write-enable
[    1.397679] sunxi-mmc 4021000.sdmmc: no vqmmc,Check if there is regulator
[    1.411189] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing SD-HS(SDR25) dt B
[    1.425750] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 50000000Hz bm PP pm ON vdd 21 width 1 timing SD-HS(SDR25) dt B
[    1.426688] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[    1.437539] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 50000000Hz bm PP pm ON vdd 21 width 4 timing SD-HS(SDR25) dt B
[    1.460700] mmc0: new high speed SDHC card at address aaaa
[    1.461588] sunxi-mmc 4021000.sdmmc: detmode:manually by software
[    1.468146] mmcblk0: mmc0:aaaa SC16G 14.8 GiB
[    1.475006] usbcore: registered new interface driver usbhid
[    1.484920] usbhid: USB HID core driver
[    1.489225] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[    1.489691] exFAT: Version 1.3.0
[    1.505756] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[    1.506503] usbcore: registered new interface driver snd-usb-audio
[    1.524327] sunxi-mmc 4021000.sdmmc: card claims to support voltages below defined range
[    1.533857] GPT:Primary header thinks Alt. header is not at the end of the disk.
[    1.536281] [AUDIOCODEC][sunxi_codec_parse_params][2412]:digital_vol:0, lineout_vol:26, mic1gain:31, mic2gain:31 pa_msleep:120, pa_level:1, pa_pwr_level:1
[    1.536281]
[    1.542435] GPT:626727 != 31116287
[    1.559485] [AUDIOCODEC][sunxi_codec_parse_params][2448]:adcdrc_cfg:0, adchpf_cfg:1, dacdrc_cfg:0, dachpf:0
[    1.563303] GPT:Alternate GPT header not at the end of the disk.
[    1.574525] [AUDIOCODEC][sunxi_internal_codec_probe][2609]:codec probe finished
[    1.580662] GPT:626727 != 31116287
[    1.590127] debugfs: Directory '203034c.dummy_cpudai' with parent 'audiocodec' already present!
[    1.592697] GPT: Use GNU Parted to correct GPT errors.
[    1.592777]  mmcblk0: p1 p2 p3 p4 p5
[    1.602654] [SNDCODEC][sunxi_card_init][583]:card init finished
[    1.619467] sunxi-codec-machine 2030340.sound: 2030000.codec <-> 203034c.dummy_cpudai mapping ok
[    1.630611] input: audiocodec sunxi Audio Jack as /devices/platform/soc@3000000/2030340.sound/sound/card0/input3
[    1.642819] [SNDCODEC][sunxi_card_dev_probe][836]:register card finished
[    1.651134] sunxi-rpaf-dsp soc@3000000:rpaf-dsp@203034c: register device finished!
[    1.659649] sunxi-rpaf-dsp soc@3000000:rpaf-dsp@203034c: [rpaf_dsp0] probe finished!
[    1.668340] [SNDCODEC][sunxi_hs_init_work][259]:resume-->report switch
[    1.672576] rpmsg_hifi 3003000.msgbox.sunxi,dsp-msgbox.1.257: id:sunxi,dsp-msgbox new channel: 0x1 -> 0x101!
[    1.686951] rpmsg_hifi 3003000.msgbox.sunxi,dsp-msgbox.1.257: rpmsg hifi[0] client driver is probed
[    1.699190] NET: Registered protocol family 10
[    1.704217] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing SD-HS(SDR25) dt B
[    1.704326] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 50000000Hz bm PP pm ON vdd 21 width 1 timing SD-HS(SDR25) dt B
[    1.716711] Segment Routing with IPv6
[    1.731529] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 50000000Hz bm PP pm ON vdd 21 width 4 timing SD-HS(SDR25) dt B
[    1.732338] NET: Registered protocol family 17
[    1.748508] Bluetooth: RFCOMM TTY layer initialized
[    1.754059] Bluetooth: RFCOMM socket layer initialized
[    1.759896] Bluetooth: RFCOMM ver 1.11
[    1.764141] 8021q: 802.1Q VLAN Support v1.8
[    1.768996] mmc1: new high speed SDIO card at address 0001
[    1.769546] Registering SWP/SWPB emulation handler
[    1.780885] Loading compiled-in X.509 certificates
[    1.805677] sunxi-i2c sunxi-i2c3: sunxi-i2c3 supply twi not found, using dummy regulator
[    1.815614] sunxi-i2c sunxi-i2c3: probe success
[    1.863421] get ehci0-controller wakeup-source is fail.
[    1.869383] sunxi ehci0-controller don't init wakeup source
[    1.875755] [sunxi-ehci0]: probe, pdev->name: 4101000.ehci0-controller, sunxi_ehci: 0xc0c797e8, 0x:c886d000, irq_no:3a
[    1.887792] [sunxi-ehci0]: Not init ehci0
[    1.892695] get ohci0-controller wakeup-source is fail.
[    1.898675] sunxi ohci0-controller don't init wakeup source
[    1.904945] [sunxi-ohci0]: probe, pdev->name: 4101400.ohci0-controller, sunxi_ohci: 0xc0c79a78
[    1.914610] [sunxi-ohci0]: Not init ohci0
[    1.919480] get ehci1-controller wakeup-source is fail.
[    1.925452] sunxi ehci1-controller don't init wakeup source
[    1.931714] [sunxi-ehci1]: probe, pdev->name: 4200000.ehci1-controller, sunxi_ehci: 0xc0c79d08, 0x:c8877000, irq_no:3c
[    1.943950] sunxi-ehci 4200000.ehci1-controller: 4200000.ehci1-controller supply hci not found, using dummy regulator
[    1.957410] sunxi-ehci 4200000.ehci1-controller: EHCI Host Controller
[    1.964714] sunxi-ehci 4200000.ehci1-controller: new USB bus registered, assigned bus number 1
[    1.974682] sunxi-ehci 4200000.ehci1-controller: irq 60, io mem 0x04200000
[    2.012150] sunxi-ehci 4200000.ehci1-controller: USB 2.0 started, EHCI 1.00
[    2.020826] hub 1-0:1.0: USB hub found
[    2.025116] hub 1-0:1.0: 1 port detected
[    2.030357] get ohci1-controller wakeup-source is fail.
[    2.036376] sunxi ohci1-controller don't init wakeup source
[    2.042634] [sunxi-ohci1]: probe, pdev->name: 4200400.ohci1-controller, sunxi_ohci: 0xc0c79f98
[    2.052548] sunxi-ohci 4200400.ohci1-controller: 4200400.ohci1-controller supply hci not found, using dummy regulator
[    2.064862] sunxi-ohci 4200400.ohci1-controller: OHCI Host Controller
[    2.072174] sunxi-ohci 4200400.ohci1-controller: new USB bus registered, assigned bus number 2
[    2.082084] sunxi-ohci 4200400.ohci1-controller: irq 61, io mem 0x04200400
[    2.136834] random: fast init done
[    2.157007] hub 2-0:1.0: USB hub found
[    2.161270] hub 2-0:1.0: 1 port detected
[    2.168116] sun8iw20-pinctrl pio: pin PB6 already requested by 2502c00.twi; cannot claim for pio:38
[    2.178357] sun8iw20-pinctrl pio: pin-38 (pio:38) status -22
[    2.184718] ERR: id gpio_request failed
[    2.191359] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[    2.202535] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[    2.209993] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[    2.212170] clk: Not disabling unused clocks
[    2.219696] cfg80211: failed to load regulatory.db
[    2.224436] ALSA device list:
[    2.233182]   #0: audiocodec
[    2.236414] alloc_fd: slot 0 not NULL!
[    2.249058] EXT4-fs (mmcblk0p5): mounted filesystem with ordered data mode. Opts: (null)
[    2.258253] VFS: Mounted root (ext4 filesystem) readonly on device 179:5.
[    2.268614] devtmpfs: mounted
[    2.273632] Freeing unused kernel memory: 1024K
[    2.322303] Run /sbin/init as init process
[    2.463111] EXT4-fs (mmcblk0p5): re-mounted. Opts: (null)
Starting syslogd: OK
Starting klogd: OK
Running sysctl: OK
Populating /dev using udev: [    2.786337] udevd[1083]: starting version 3.2.11
[    2.806417] random: udevd: uninitialized urandom read (16 bytes read)
[    2.814977] random: udevd: uninitialized urandom read (16 bytes read)
[    2.822344] random: udevd: uninitialized urandom read (16 bytes read)
[    2.854364] udevd[1084]: starting eudev-3.2.11
[    3.258841] 8189fs: loading out-of-tree module taints kernel.
[    3.269759] 8189fs: module uses symbol (kernel_read) from namespace VFS_internal_I_am_really_a_filesystem_and_am_NOT_a_driver, but does not import it.
[    3.285134] 8189fs: Unknown symbol kernel_read (err -22)
done
Saving random seed: OK
Starting system message bus: done
Starting iptables: OK
Starting network: OK
Starting sntp: sntp 4.2.8p15@1.3728-o Tue Jun 14 15:12:05 UTC 2022 (1)
pool.ntp.org lookup error Temporary failure in name resolution
FAIL
Starting ntpd: OK
[    8.772175] random: crng init done
[    8.775990] random: 6 urandom warning(s) missed due to ratelimiting
ssh-keygen: generating new host keys: RSA DSA ECDSA ED25519
Starting sshd: OK
Starting vsftpd: OK
Starting swupdate: OK

Welcome to MangoPi Dual

报错的位置应该是

[    3.258841] 8189fs: loading out-of-tree module taints kernel.
[    3.269759] 8189fs: module uses symbol (kernel_read) from namespace VFS_internal_I_am_really_a_filesystem_and_am_NOT_a_driver, but does not import it.
[    3.285134] 8189fs: Unknown symbol kernel_read (err -22)

buildroot里面选的是

 
Symbol: BR2_PACKAGE_RTL8189FS [=y]   
  │ Type  : bool  
  │ Prompt: rtl8189fs 
  │   Location: 
  │     -> Target packages     
  │       -> Hardware handling  
  │   Defined at package/rtl8189fs/Config.in:1     
  │   Depends on: BR2_LINUX_KERNEL [=y]   
  │                                          

#7 Openwrt/LEDE/AR9331/MT7688/RT5350 » openwrt移植了glinet的xe300,发现过不了编译 » 2021-03-25 22:15:50

梦程
回复: 0

我从glinet官网的仓库把xe300的dts和io配置参数移植到openwrt官方仓库,编译的时候显示找不到dts,这个问题该怎么解决
gl

glinet仓库地址:https://github.com/gl-inet/openwrt/tree/openwrt-19.07.7/target/linux/ath79/dts

移植的文件gl2

#9 全志 SOC » 荔枝派nano f1c编译完内核写入flash 无法启动 » 2021-03-25 21:38:10

梦程
回复: 1

使用荔枝派官方的uboot编译好了,可以启动,轮到启动kernel的时候就一直卡住重启。

uboot
uboot改了启动地址
#define CONFIG_BOOTCOMMAND   "sf probe 0 50000000; "                           \
                             "sf read 0x80C00000 0x100000 0x4000; "  \
                             "sf read 0x80008000 0x110000 0x400000; " \
                             "bootz 0x80008000 - 0x80C00000"

flash型号是xt25f128,在uboot中已经修改,kernel的.config使用的是http://dl.sipeed.com/LICHEE/Nano/SDK/config 官方的这个,增加了jffs2支持,其他都没有修改
请问该如何解决不能进入kernel启动流程的问题?

页脚

工信部备案:粤ICP备20025096号 Powered by FluxBB

感谢为中文互联网持续输出优质内容的各位老铁们。 QQ: 516333132, 微信(wechat): whycan_cn (哇酷网/挖坑网/填坑网) service@whycan.cn