您尚未登录。

楼主 # 2022-02-17 20:08:38

romanljw
会员
注册时间: 2021-07-29
已发帖子: 18
积分: 32.5

F1C100S通过SPI与其他MCU进行通讯以及eth重命名的问题

大佬们好,小白想向大家请教两个个问题。
问题1:
我想通过F1C100S的SPI接口与外部MCU进行通讯(初步想用python的spidev库完成通讯)。使用的是Deiban的bullseye系统。但是我在dev下面没有找到网上说的spi0.0或者类似的设备,但是在/sys/class/spi_master下面有spi0和spi1,请问是不是这两个。如果不是请问我应该如何配置,麻烦啦,谢谢大家。
我对设备树的配置如下,请大家过目:
dtsi文件中:

      
               spi0:spi@1c05000 {
			compatible = "allwinner,suniv-spi", "allwinner,sun8i-h3-spi";
			reg = <0x1c05000 0x1000>;
			interrupts = <0xa>;
			clocks = <&ccu CLK_BUS_SPI0>, <&ccu CLK_BUS_SPI0>;
			clock-names = "ahb", "mod";
  			resets = <&ccu RST_BUS_SPI0>;
			status = "disabled";
			#address-cells = <1>;
			#size-cells = <0>;						
		};

		spi1:spi@1c06000 {
			compatible = "allwinner,suniv-spi", "allwinner,sun8i-h3-spi";
			reg = <0x1c06000 0x1000>;
			interrupts = <0xb>;
			clocks = <&ccu CLK_BUS_SPI1>, <&ccu CLK_BUS_SPI1>;
			clock-names = "ahb", "mod";
			resets = <&ccu RST_BUS_SPI1>;
			status = "disabled";
			#address-cells = <1>;
			#size-cells = <0>;
			//bias-pull-up;			
		};		
  
                        spi0_pins: spi0-pins{
				pins = "PC0", "PC1", "PC2", "PC3";
				function = "spi0";
			};

			spi1_pins: spi1-pins{
				pins = "PA2","PA0","PA3","PA1";
				function = "spi1";
			};

dts文件中:

  
&spi0{
	pinctrl-names = "default";
	pinctrl-0 = <&spi0_pins>;
	status = "okay";
};

&spi1{
	pinctrl-names = "default";
	pinctrl-0 = <&spi1_pins>;
	status = "okay";
};

另外,我看到V3S的spi(https://www.kancloud.cn/lichee/lpi0/580147)是在设备树中加入:

&spi0 {
        pinctrl-names = "default";
        pinctrl-0 = <&spi0_pins>;
        status = "okay";
        #address-cells=<1>;
        #size-cells=<0>;
        spidev@0x00 {
                compatible = "spidev";
                spi-max-frequency = <100000000>;
                reg = <0>;
        };
};

我也尝试将dts文件做了相同修改:

&spi0{
	pinctrl-names = "default";
	pinctrl-0 = <&spi0_pins>;
	status = "okay";
	spidev@0 {
		compatible = "spidev";
		spi-max-frequency = <1200000>;
		reg = <0>;
	};
};

&spi1{
	pinctrl-names = "default";
	pinctrl-0 = <&spi1_pins>;
	status = "okay";
	spidev@0 {
		compatible = "spidev";
		spi-max-frequency = <1200000>;
		reg = <0>;
	};
};

但是启动后从[    0.927711]开始报错:

switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
Found U-Boot script /boot.scr
reading /boot.scr
280 bytes read in 14 ms (19.5 KiB/s)
## Executing script at 80c50000
reading suniv-f1c100s-licheepi-nano.dtb
8372 bytes read in 25 ms (326.2 KiB/s)
reading zImage
4216952 bytes read in 202 ms (19.9 MiB/s)
## Flattened Device Tree blob at 80c00000
   Booting using the fdt blob at 0x80c00000
   Loading Device Tree to 816fa000, end 816ff0b3 ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.7.1-licheepi-nano (romanljw@ubuntu) (gcc version 7.2.1 20171011 (Linaro GCC 7.2-2017.11), GNU ld (Linaro_Binutils-2017.11) 2.28.2.20170706) #4 Sun Oct 24 09:39:28 CST 2021
[    0.000000] CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=0005317f
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] OF: fdt: Machine model: Lichee Pi Nano
[    0.000000] Memory policy: Data cache writeback
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 16256
[    0.000000] Kernel command line: console=tty0 console=ttyS0,115200 panic=5 rootwait root=/dev/mmcblk0p2 rw
[    0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes, linear)
[    0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 55184K/65536K available (6144K kernel code, 226K rwdata, 1684K rodata, 1024K init, 233K bss, 10352K reserved, 0K cma-reserved, 0K highmem)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] random: get_random_bytes called from start_kernel+0x2a0/0x498 with crng_init=0
[    0.000049] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
[    0.000123] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000736] Console: colour dummy device 80x30
[    0.001132] printk: console [tty0] enabled
[    0.001221] Calibrating delay loop... 358.80 BogoMIPS (lpj=1794048)
[    0.050297] pid_max: default: 32768 minimum: 301
[    0.050744] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.050854] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.052683] CPU: Testing write buffer coherency: ok
[    0.054718] Setting up static identity map for 0x80100000 - 0x80100058
[    0.056091] devtmpfs: initialized
[    0.061907] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.062053] futex hash table entries: 256 (order: -1, 3072 bytes, linear)
[    0.062414] pinctrl core: initialized pinctrl subsystem
[    0.063915] thermal_sys: Registered thermal governor 'step_wise'
[    0.064999] NET: Registered protocol family 16
[    0.066866] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.068964] cpuidle: using governor menu
[    0.120681] SCSI subsystem initialized
[    0.121379] usbcore: registered new interface driver usbfs
[    0.121600] usbcore: registered new interface driver hub
[    0.121845] usbcore: registered new device driver usb
[    0.122426] pps_core: LinuxPPS API ver. 1 registered
[    0.122500] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.123038] Advanced Linux Sound Architecture Driver Initialized.
[    0.124763] clocksource: Switched to clocksource timer
[    0.154060] NET: Registered protocol family 2
[    0.155764] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
[    0.155945] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.156045] TCP bind hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.156110] TCP: Hash tables configured (established 1024 bind 1024)
[    0.156490] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.156617] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.157210] NET: Registered protocol family 1
[    0.159449] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.161167] Initialise system trusted keyrings
[    0.161860] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[    0.244313] Key type asymmetric registered
[    0.244428] Asymmetric key parser 'x509' registered
[    0.244652] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[    0.244861] io scheduler mq-deadline registered
[    0.244925] io scheduler kyber registered
[    0.247210] sun4i-usb-phy 1c13400.phy: Couldn't request ID GPIO
[    0.256625] suniv-f1c100s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    0.257403] suniv-f1c100s-pinctrl 1c20800.pinctrl: supply vcc-pe not found, using dummy regulator
[    0.439769] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    0.446749] printk: console [ttyS0] disabled
[    0.446982] 1c25000.serial: ttyS0 at MMIO 0x1c25000 (irq = 24, base_baud = 6250000) is a 16550A
[    0.851223] printk: console [ttyS0] enabled
[    0.858097] 1c25800.serial: ttyS2 at MMIO 0x1c25800 (irq = 25, base_baud = 6250000) is a 16550A
[    0.875548] SCSI Media Changer driver v0.25
[    0.881271] suniv-f1c100s-pinctrl 1c20800.pinctrl: supply vcc-pc not found, using dummy regulator
[    0.892708] ------------[ cut here ]------------
[    0.897616] WARNING: CPU: 0 PID: 1 at drivers/spi/spidev.c:736 spidev_probe+0xcc/0x1ac
[    0.905669] /soc/spi@1c05000/spidev@0: buggy DT: spidev listed directly in DT
[    0.912820] Modules linked in:
[    0.915970] CPU: 0 PID: 1 Comm: swapper Not tainted 5.7.1-licheepi-nano #4
[    0.922864] Hardware name: Allwinner suniv Family
[    0.927711] [<c010d604>] (unwind_backtrace) from [<c010ab60>] (show_stack+0x10/0x14)
[    0.935594] [<c010ab60>] (show_stack) from [<c0116438>] (__warn+0xac/0xd0)
[    0.942514] [<c0116438>] (__warn) from [<c01164c8>] (warn_slowpath_fmt+0x6c/0xb8)
[    0.950122] [<c01164c8>] (warn_slowpath_fmt) from [<c04704e4>] (spidev_probe+0xcc/0x1ac)
[    0.958330] [<c04704e4>] (spidev_probe) from [<c046bce8>] (spi_drv_probe+0x80/0xa4)
[    0.966109] [<c046bce8>] (spi_drv_probe) from [<c04222ec>] (really_probe+0x218/0x348)
[    0.973994] [<c04222ec>] (really_probe) from [<c042252c>] (driver_probe_device+0x5c/0x170)
[    0.982358] [<c042252c>] (driver_probe_device) from [<c0420728>] (bus_for_each_drv+0x54/0xb8)
[    0.990990] [<c0420728>] (bus_for_each_drv) from [<c0422058>] (__device_attach+0xc8/0x13c)
[    0.999351] [<c0422058>] (__device_attach) from [<c0421408>] (bus_probe_device+0x84/0x8c)
[    1.007630] [<c0421408>] (bus_probe_device) from [<c041e44c>] (device_add+0x62c/0x7d0)
[    1.015651] [<c041e44c>] (device_add) from [<c046c858>] (spi_add_device+0x90/0x14c)
[    1.023357] [<c046c858>] (spi_add_device) from [<c046d3cc>] (spi_register_controller+0x86c/0xae0)
[    1.032319] [<c046d3cc>] (spi_register_controller) from [<c046d670>] (devm_spi_register_controller+0x30/0x6c)
[    1.042343] [<c046d670>] (devm_spi_register_controller) from [<c0472844>] (sun6i_spi_probe+0x1a8/0x288)
[    1.051852] [<c0472844>] (sun6i_spi_probe) from [<c0423f9c>] (platform_drv_probe+0x48/0x98)
[    1.060320] [<c0423f9c>] (platform_drv_probe) from [<c04222ec>] (really_probe+0x218/0x348)
[    1.068692] [<c04222ec>] (really_probe) from [<c042252c>] (driver_probe_device+0x5c/0x170)
[    1.077056] [<c042252c>] (driver_probe_device) from [<c04227e8>] (device_driver_attach+0x58/0x60)
[    1.086017] [<c04227e8>] (device_driver_attach) from [<c0422870>] (__driver_attach+0x80/0xbc)
[    1.094584] [<c0422870>] (__driver_attach) from [<c042067c>] (bus_for_each_dev+0x70/0xb4)
[    1.102839] [<c042067c>] (bus_for_each_dev) from [<c0421658>] (bus_add_driver+0x150/0x1dc)
[    1.111207] [<c0421658>] (bus_add_driver) from [<c0423088>] (driver_register+0x74/0x108)
[    1.119392] [<c0423088>] (driver_register) from [<c0101da4>] (do_one_initcall+0x48/0x1c4)
[    1.127685] [<c0101da4>] (do_one_initcall) from [<c0900f10>] (kernel_init_freeable+0x144/0x1d8)
[    1.136496] [<c0900f10>] (kernel_init_freeable) from [<c06d19b4>] (kernel_init+0x8/0x110)
[    1.144737] [<c06d19b4>] (kernel_init) from [<c0100140>] (ret_from_fork+0x14/0x34)
[    1.152391] Exception stack(0xc3839fb0 to 0xc3839ff8)
[    1.157510] 9fa0:                                     00000000 00000000 00000000 00000000
[    1.165758] 9fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    1.173956] 9fe0: 00000000 00000000 00000000 00000000 00000013 00000000
[    1.180643] ---[ end trace 132e4235ecace684 ]---
[    1.186315] suniv-f1c100s-pinctrl 1c20800.pinctrl: supply vcc-pa not found, using dummy regulator
[    1.197698] ------------[ cut here ]------------
[    1.202441] WARNING: CPU: 0 PID: 1 at drivers/spi/spidev.c:736 spidev_probe+0xcc/0x1ac
[    1.210541] /soc/spi@1c06000/spidev@0: buggy DT: spidev listed directly in DT
[    1.217775] Modules linked in:
[    1.220876] CPU: 0 PID: 1 Comm: swapper Tainted: G        W         5.7.1-licheepi-nano #4
[    1.229204] Hardware name: Allwinner suniv Family
[    1.234007] [<c010d604>] (unwind_backtrace) from [<c010ab60>] (show_stack+0x10/0x14)
[    1.241888] [<c010ab60>] (show_stack) from [<c0116438>] (__warn+0xac/0xd0)
[    1.248864] [<c0116438>] (__warn) from [<c01164c8>] (warn_slowpath_fmt+0x6c/0xb8)
[    1.256467] [<c01164c8>] (warn_slowpath_fmt) from [<c04704e4>] (spidev_probe+0xcc/0x1ac)
[    1.264613] [<c04704e4>] (spidev_probe) from [<c046bce8>] (spi_drv_probe+0x80/0xa4)
[    1.272391] [<c046bce8>] (spi_drv_probe) from [<c04222ec>] (really_probe+0x218/0x348)
[    1.280335] [<c04222ec>] (really_probe) from [<c042252c>] (driver_probe_device+0x5c/0x170)
[    1.288707] [<c042252c>] (driver_probe_device) from [<c0420728>] (bus_for_each_drv+0x54/0xb8)
[    1.297333] [<c0420728>] (bus_for_each_drv) from [<c0422058>] (__device_attach+0xc8/0x13c)
[    1.305693] [<c0422058>] (__device_attach) from [<c0421408>] (bus_probe_device+0x84/0x8c)
[    1.313910] [<c0421408>] (bus_probe_device) from [<c041e44c>] (device_add+0x62c/0x7d0)
[    1.321926] [<c041e44c>] (device_add) from [<c046c858>] (spi_add_device+0x90/0x14c)
[    1.329690] [<c046c858>] (spi_add_device) from [<c046d3cc>] (spi_register_controller+0x86c/0xae0)
[    1.338663] [<c046d3cc>] (spi_register_controller) from [<c046d670>] (devm_spi_register_controller+0x30/0x6c)
[    1.348691] [<c046d670>] (devm_spi_register_controller) from [<c0472844>] (sun6i_spi_probe+0x1a8/0x288)
[    1.358206] [<c0472844>] (sun6i_spi_probe) from [<c0423f9c>] (platform_drv_probe+0x48/0x98)
[    1.366688] [<c0423f9c>] (platform_drv_probe) from [<c04222ec>] (really_probe+0x218/0x348)
[    1.375051] [<c04222ec>] (really_probe) from [<c042252c>] (driver_probe_device+0x5c/0x170)
[    1.383356] [<c042252c>] (driver_probe_device) from [<c04227e8>] (device_driver_attach+0x58/0x60)
[    1.392317] [<c04227e8>] (device_driver_attach) from [<c0422870>] (__driver_attach+0x80/0xbc)
[    1.400935] [<c0422870>] (__driver_attach) from [<c042067c>] (bus_for_each_dev+0x70/0xb4)
[    1.409209] [<c042067c>] (bus_for_each_dev) from [<c0421658>] (bus_add_driver+0x150/0x1dc)
[    1.417573] [<c0421658>] (bus_add_driver) from [<c0423088>] (driver_register+0x74/0x108)
[    1.425772] [<c0423088>] (driver_register) from [<c0101da4>] (do_one_initcall+0x48/0x1c4)
[    1.434018] [<c0101da4>] (do_one_initcall) from [<c0900f10>] (kernel_init_freeable+0x144/0x1d8)
[    1.442848] [<c0900f10>] (kernel_init_freeable) from [<c06d19b4>] (kernel_init+0x8/0x110)
[    1.451126] [<c06d19b4>] (kernel_init) from [<c0100140>] (ret_from_fork+0x14/0x34)
[    1.458774] Exception stack(0xc3839fb0 to 0xc3839ff8)
[    1.463855] 9fa0:                                     00000000 00000000 00000000 00000000
[    1.472101] 9fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    1.480336] 9fe0: 00000000 00000000 00000000 00000000 00000013 00000000
[    1.487007] ---[ end trace 132e4235ecace685 ]---
[    1.494010] libphy: Fixed MDIO Bus: probed
[    1.498544] usbcore: registered new interface driver rndis_wlan
[    1.504648] usbcore: registered new interface driver asix
[    1.510328] usbcore: registered new interface driver ax88179_178a
[    1.516680] usbcore: registered new interface driver cdc_ether
[    1.522693] usbcore: registered new interface driver net1080
[    1.528624] usbcore: registered new interface driver rndis_host
[    1.534702] usbcore: registered new interface driver cdc_subset
[    1.540888] usbcore: registered new interface driver zaurus
[    1.546766] usbcore: registered new interface driver cdc_ncm
[    1.552465] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.559091] ehci-platform: EHCI generic platform driver
[    1.564645] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    1.571027] ohci-platform: OHCI generic platform driver
[    1.576855] usbcore: registered new interface driver usb-storage
[    1.583213] usbcore: registered new interface driver option
[    1.589054] usbserial: USB Serial support registered for GSM modem (1-port)
[    1.597192] gadgetfs: USB Gadget filesystem, version 24 Aug 2004
[    1.603292] file system registered
[    1.606883] udc-core: couldn't find an available UDC - added [g_cdc] to list of pending drivers
[    1.615995] i2c /dev entries driver
[    1.622365] ssd1307fb 0-003c: Couldn't send I2C command.
[    1.629459] suniv-f1c100s-pinctrl 1c20800.pinctrl: supply vcc-pf not found, using dummy regulator
[    1.666107] sunxi-mmc 1c0f000.mmc: initialized, max. request size: 16384 KB
[    1.675805] usbcore: registered new interface driver usbhid
[    1.681443] usbhid: USB HID core driver
[    1.699925] NET: Registered protocol family 17
[    1.704555] Key type dns_resolver registered
[    1.709953] Loading compiled-in X.509 certificates
[    1.729595] usb_phy_generic usb_phy_generic.0.auto: supply vcc not found, using dummy regulator
[    1.740370] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[    1.746434] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 1
[    1.757415] hub 1-0:1.0: USB hub found
[    1.761491] hub 1-0:1.0: 1 port detected
[    1.768023] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[    1.783640] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[    1.790592] ALSA device list:
[    1.793618]   #0: Loopback 1
[    1.797381] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[    1.806188] cfg80211: failed to load regulatory.db
[    1.812204] Waiting for root device /dev/mmcblk0p2...
[    1.832907] mmc0: host does not support reading read-only switch, assuming write-enable
[    1.844418] mmc0: new high speed SDHC card at address aaaa
[    1.851753] mmcblk0: mmc0:aaaa SD32G 29.7 GiB
[    1.860405]  mmcblk0: p1 p2
[    1.940415] random: fast init done
[    2.076788] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    2.085176] VFS: Mounted root (ext4 filesystem) on device 179:2.
[    2.093618] devtmpfs: mounted
[    2.100636] Freeing unused kernel memory: 1024K
[    2.105396] Run /sbin/init as init process
[    2.204921] usb 1-1: new high-speed USB device number 2 using musb-hdrc
[    2.390491] rndis_host 1-1:1.0 eth0: register 'rndis_host' at usb-musb-hdrc.1.auto-1, RNDIS device, ac:4b:b3:b9:eb:e5
[    2.403829] option 1-1:1.2: GSM modem (1-port) converter detected
[    2.416407] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB0
[    2.425444] option 1-1:1.3: GSM modem (1-port) converter detected
[    2.437390] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB1
[    2.449293] option 1-1:1.4: GSM modem (1-port) converter detected
[    2.458814] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB2
[    2.627603] systemd[1]: System time before build time, advancing clock.
[    2.655057] systemd[1]: Failed to insert module 'autofs4': No such file or directory
[    2.686885] random: systemd: uninitialized urandom read (16 bytes read)
[    2.703758] systemd[1]: systemd 232 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD +IDN)
[    2.723316] systemd[1]: Detected architecture arm.

Welcome to Debian GNU/Linux 9 (stretch)!

[    2.766902] systemd[1]: Set hostname to <ubuntu>.
[    2.855786] random: systemd: uninitialized urandom read (16 bytes read)
[    3.214745] random: systemd-gpt-aut: uninitialized urandom read (16 bytes read)
[    3.946324] systemd[1]: Listening on Journal Socket (/dev/log).
[  OK  ] Listening on Journal Socket (/dev/log).
[    3.986130] systemd[1]: Listening on Syslog Socket.
[  OK  ] Listening on Syslog Socket.
[    4.026709] systemd[1]: Created slice User and Session Slice.
[  OK  ] Created slice User and Session Slice.
[    4.066440] systemd[1]: Listening on udev Kernel Socket.
[  OK  ] Listening on udev Kernel Socket.
[    4.106507] systemd[1]: Created slice System Slice.
[  OK  ] Created slice System Slice.
[    4.146686] systemd[1]: Reached target Slices.
[  OK  ] Reached target Slices.
[    4.185699] systemd[1]: dev-hugepages.mount: Couldn't determine result for ConditionVirtualization=!private-users, assuming failed: No such file or directory
[  OK  ] Listening on udev Control Socket.
[  OK  ] Listening on /dev/initctl Compatibility Named Pipe.
[  OK  ] Created slice system-serial\x2dgetty.slice.
[  OK  ] Started Dispatch Password Requests to Console Directory Watch.
[  OK  ] Reached target Swap.
[    4.330222] usb 1-1: USB disconnect, device number 2
[    4.335691] rndis_host 1-1:1.0 eth0: unregister 'rndis_host' usb-musb-hdrc.1.auto-1, RNDIS device
[    4.347875] option1 ttyUSB0: GSM modem (1-port) converter now disconnected from ttyUSB0
[    4.356334] option 1-1:1.2: device disconnected
[  OK      4.365589] option1 ttyUSB1: GSM modem (1-port) converter now disconnected from ttyUSB1
m] Created slice[    4.374710] option 1-1:1.3: device disconnected
 system-getty.slice.
[    4.382139] option1 ttyUSB2: GSM modem (1-port) converter now disconnected from ttyUSB2
[    4.390646] option 1-1:1.4: device disconnected
[  OK  ] Started Forward Password Requests to Wall Directory Watch.
[  OK  ] Reached target Encrypted Volumes.
[  OK  ] Reached target Paths.
         Mounting Debug File System...
[  OK  ] Listening on Journal Socket.
         Starting Remount Root and Kernel File Systems...
         Starting Load Kernel Modules...
         Starting Journal Service...
         Starting Create Static Device Nodes in /dev...
[  OK  ] Reached target Remote File Systems.
[  OK  ] Mounted Debug File System.
[  OK  ] Started Remount Root and Kernel File Systems.
         Starting Load/Save Random Seed...
         Starting udev Coldplug all Devices...
[  OK  ] Started Load Kernel Modules.
         Starting Apply Kernel Variables...
         Mounting Configuration File System...
[  OK  ] Started Load/Save Random Seed.
[  OK  ] Started Create Static Device Nodes in /dev.
[  OK  ] Mounted Configuration File System.
[  OK  ] Reached target Local File Systems (Pre).
[  OK  ] Reached target Local File Systems.
         Starting udev Kernel Device Manager...
[  OK  ] Started Apply Kernel Variables.
         Starting Raise network interfaces...
[    5.864950] usb 1-1: new high-speed USB device number 3 using musb-hdrc
[  OK  ] Started udev Kernel Device Manager.
[  OK  ] Started Journal Service.
         Starting Flush Journal to Persistent Storage...
[    7.759374] systemd-journald[96]: Received request to flush runtime journal from PID 1
[  OK  ] Started Flush Journal to Persistent Storage.
         Starting Create Volatile Files and Directories...
[  OK  ] Started Create Volatile Files and Directories.
         Starting Update UTMP about System Boot/Shutdown...
         Starting Network Time Synchronization...
[  OK  ] Started Raise network interfaces.
[  OK  ] Reached target Network.
[  OK  ] Started Update UTMP about System Boot/Shutdown.
[  OK  ] Started Network Time Synchronization.
[  OK  ] Reached target System Time Synchronized.
[  OK  ] Reached target Sound Card.
[  OK  ] Started udev Coldplug all Devices.
[  OK  ] Reached target System Initialization.
[  OK  ] Started Daily apt download activities.
[  OK  ] Started Daily apt upgrade and clean activities.
[  OK  ] Listening on D-Bus System Message Bus Socket.
[  OK  ] Reached target Sockets.
[  OK  ] Reached target Basic System.
[  OK  ] Started D-Bus System Message Bus.
         Starting OpenBSD Secure Shell server...
         Starting System Logging Service...
         Starting Login Service...
[  OK  ] Started Regular background program processing daemon.
[  OK  ] Started Daily Cleanup of Temporary Directories.
[  OK  ] Reached target Timers.
         Starting Permit User Sessions...
[  OK  ] Found device /dev/ttyS0.
[  OK  ] Started System Logging Service.
[  OK  ] Started Permit User Sessions.
[  OK  ] Started Getty on tty1.
[  OK  ] Started Serial Getty on ttyS0.
[  OK  ] Reached target Login Prompts.
[  OK  ] Started Login Service.
[  OK  ] Started OpenBSD Secure Shell server.
[  OK  ] Reached target Multi-User System.
[  OK  ] Reached target Graphical Interface.
         Starting Update UTMP about System Runlevel Changes...
[  OK  ] Started Update UTMP about System Runlevel Changes.
[   17.204969] usb 1-1: new high-speed USB device number 4 using musb-hdrc

Debian GNU/Linux 9 ubuntu ttyS0

ubuntu login: [   17.423040] rndis_host 1-1:1.0 eth0: register 'rndis_host' at usb-musb-hdrc.1.auto-1, RNDIS device, ac:4b:b3:b9:eb:e5
[   17.506860] option 1-1:1.2: GSM modem (1-port) converter detected
[   17.554075] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB0
[   17.608241] option 1-1:1.3: GSM modem (1-port) converter detected
[   17.655122] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB1
[   17.700383] option 1-1:1.4: GSM modem (1-port) converter detected
[   17.750270] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB2
[   20.043316] rndis_host 1-1:1.0 enxac4bb3b9ebe5: renamed from eth0
root
Password:
Last login: Wed Feb 16 14:06:09 UTC 2022 on ttyS0
Linux ubuntu 5.7.1-licheepi-nano #4 Sun Oct 24 09:39:28 CST 2021 armv5tejl

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
root@ubuntu:~# ls
frp  mydatabase.db  myprog.py
root@ubuntu:~# cd /dev
root@ubuntu:/dev# ls spi*
spidev0.0  spidev1.0
root@ubuntu:/dev#

可是观察dev下确实有了spidev0.0,spidev1.0。请问这样是否可以正常使用?
问题2:
在上面打出的log中有一句[   20.043316] rndis_host 1-1:1.0 enxac4bb3b9ebe5: renamed from eth0
请问下为啥系统会自动把我的eth0网卡重命名为enxac4bb3b9ebe5。我想要eth0,不想改名,请问应该如何处理。
我用的合宙的air724ug的4G模块,通过usb连接。网络使用正常。
请大家帮忙,在此拜谢。

离线

页脚

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

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