您尚未登录。

#1 Re: Nuvoton N32905/N32926/NUC972/N9H20/N9H26/N9H30 » 云联芯NUC980设备树折腾-从点灯开始 » 2023-01-17 09:27:08

email10000 说:

楼主,看了您适配了屏幕ili9341, 请教 内核和设备树是如何配置的呢?

您可以移植建议您用linux 5.10内核,新唐官方有为nuc980提供的,您可以看下视频:

https://www.bilibili.com/video/BV1SW4y1M7yg/?spm_id_from=333.999.0.0

#2 Re: Nuvoton N32905/N32926/NUC972/N9H20/N9H26/N9H30 » 云联芯NUC980设备树折腾-从点灯开始 » 2023-01-17 09:19:09

munababy 说:

大佬好,我正在学习这个片子的开启设备树的功能,不得要领,内核启动失败,大佬是否方便分享下,uboot环境文件具体内容和Nuwrite中烧写各个映像文件的具体地址?万分感谢。

我做过几期的nuc980的设备树视频,不知是否对您有用:https://space.bilibili.com/33499294/channel/seriesdetail?sid=2262881

#3 Re: Nuvoton N32905/N32926/NUC972/N9H20/N9H26/N9H30 » 云联芯NUC980设备树折腾-从点灯开始 » 2022-04-30 20:23:03

大佬好,请问下,您的led0的设备树中:
gpios = <&gpio 0x20 1>;     
里面的0x20代表的哪个引脚,谢谢大佬
另外请问大佬,后面的1是什么意思?

#4 Re: 全志 SOC » 请教一下f1c100s 外接st7789 但是驱动不生效的问题 » 2022-04-23 23:08:19

xsran 说:

@romanljw

我也是参考了这个大佬的文章进行配置的, A31我也打开了,但是我现在完全没有fbtft的信息输出。

linux kernel 如果是4.x的话我记得好像不用改gpio的获取方式这些,直接把初始化部分改掉就可以了,但是5.16的话需要按照大佬的方式把gpio申请这些都改掉。其他版本我没有试过

#5 Re: 全志 SOC » 请教一下f1c100s 外接st7789 但是驱动不生效的问题 » 2022-04-23 19:36:08

1. 要根据不同厂家的初始化代码,修改drivers/staging/fbtft/fb_st7789v.c中的static int init_display(struct fbtft_par *par)函数的初始化代码,尽管都是st7789,但是不同店家的初始化代码不一样,会出现颜色错误的问题。
2. 设备树我也是这么配的,但是不知道你的kerel中开启了spi没有,由于FC1000S的SPI中有一个BUG,因此我们在开启SPI驱动的时候必须选择A31(Device Drivers -> SPI support),并且kernel中7789的驱动也要编写进去。
3. 即使没有链接屏幕,但是启动的log中也是有fbtft的信息的,我这里显示如下:

[    0.933460] fbtft_of_value: width = 240
[    0.937440] fbtft_of_value: height = 320
[    0.941393] fbtft_of_value: buswidth = 8
[    0.945324] fbtft_of_value: debug = 0
[    0.949058] fbtft_of_value: rotate = 0
[    0.952829] fbtft_of_value: fps = 30

4. 硬件接线我是这么接的:
LCD -- F1C
SCL -- CLK
SDA -- MOSI
RES -- PE9
DC -- PE4
CS -- CS
BLK -- 空
5. 推荐参考大佬的设置:
https://www.cnblogs.com/twzy/p/15160836.html
6. 其他的我不懂了

#6 Re: 全志 SOC » 有用人F1C100s外接W5500实现以太网吗 » 2022-04-12 21:17:49

romanljw 说:

@狼狼
您好,我按照您的方法,系统没有认出w5500芯片,我使用的是linux 5.7的系统,debian 10.0的rootfs,请问您知道是什么原因吗?

我试了下w5500在linux 4.15版本下就可以用,相同的配置在linux 5.7下就不能用,请问大佬们是什么原因?

#7 Re: 全志 SOC » 有用人F1C100s外接W5500实现以太网吗 » 2022-04-12 19:25:16

@狼狼
您好,我按照您的方法,系统没有认出w5500芯片,我使用的是linux 5.7的系统,debian 10.0的rootfs,请问您知道是什么原因吗?

#8 全志 SOC » F1C100S通过SPI与其他MCU进行通讯以及eth重命名的问题 » 2022-02-17 20:08:38

romanljw
回复: 0

大佬们好,小白想向大家请教两个个问题。
问题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连接。网络使用正常。
请大家帮忙,在此拜谢。

#9 Re: 全志 SOC » 全志V3S debian系统 内存不足 » 2022-02-09 11:02:59

各位大佬,请问下应该如何打开swap,小白一个见笑了

#10 Re: 全志 SOC » 求教F1C100S与合宙PCIE模块通过USB连接原理图应该如何画 » 2022-01-16 09:28:23

你的f1c100s芯片上全部电源都上了吗?之前我也遇到相同问题,不开usb一切正常,开了usb芯片不断重启( https://whycan.com/viewtopic.php?id=7279 ),后来我把芯片的全部电源都弄上就没在出现这个问题。之前图省事觉得3V电源音视频的,不用就不要了,后来补上就OK了

#11 Re: 全志 SOC » F1c100s构建linux系统后进入python3无法导入sqlite3 » 2022-01-11 21:22:48

已经解决了,换了一个版本的buildroot就可以了

#12 全志 SOC » F1c100s构建linux系统后进入python3无法导入sqlite3 » 2022-01-11 07:58:36

romanljw
回复: 1

各类大佬,小弟遇上一个问题,使用荔枝派nano,自己构建系统:
1. bootloader用的官方的;
2. 系统用的是主线linux 5.7内核
3. buildroot使用的是2021.02.04版本
在buildroot中打开了python3,但是使用的时候进入python3执行import sqlite3显示:
ModuleNotFoundError: No module named 'sqlite3'
不知道是什么原因,请大佬看看如何解决?
附buildroot中python3的配置:
配置

#13 Re: 全志 SOC » 请教一下,自己画 F1C100s,AVCC 是否是必须的? » 2021-12-22 07:53:19

血的教训啊,一定要连上的。我之前遇到设备树开启usb后无法启动的问题(传送门: https://whycan.com/t_7279.html ),后来把电源连齐全了,一切都好了。

#14 Re: 全志 SOC » 求教F1C100S与合宙PCIE模块通过USB连接原理图应该如何画 » 2021-10-21 08:06:55

这里的是启动时候显示的,反复重启,这里我只粘贴了重启一次的代码,后面始终重复。还请大佬们受累帮忙分析下

U-Boot SPL 2018.01-05676-g00188782ee (Apr 08 2018 - 16:10:25)
DRAM: 32 MiB
Trying to boot from MMC1


U-Boot 2018.01-05676-g00188782ee (Apr 08 2018 - 16:10:25 +0800) Allwinner Technology

CPU:   Allwinner F Series (SUNIV)
Model: Lichee Pi Nano
DRAM:  32 MiB
MMC:   SUNXI SD/MMC: 0
SF: unrecognized JEDEC id bytes: 00, 00, 00
*** Warning - spi_flash_probe_bus_cs() failed, using default environment

Setting up a 480x272 lcd console (overscan 0x0)
In:    serial@1c25000
Out:   serial@1c25000
Err:   serial@1c25000
Net:   No ethernet found.
starting USB...
No controllers found
Hit any key to stop autoboot:  0
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
6537 bytes read in 25 ms (254.9 KiB/s)
reading zImage
4023992 bytes read in 201 ms (19.1 MiB/s)
## Flattened Device Tree blob at 80c00000
   Booting using the fdt blob at 0x80c00000
   Loading Device Tree to 80e61000, end 80e65988 ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.2.0-licheepi-nano (romanljw@ubuntu) (gcc version 7.2.1 20171011 (Linaro GCC 7.2-2017.11)) #8 Thu Oct 21 07:44:57 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: 8128
[    0.000000] Kernel command line: console=tty0 console=ttyS0,115200 panic=5 rootwait root=/dev/mmcblk0p2 rw
[    0.000000] Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Memory: 22700K/32768K available (6144K kernel code, 241K rwdata, 1556K rodata, 1024K init, 228K bss, 10068K 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+0x254/0x42c with crng_init=0
[    0.000041] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
[    0.000101] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000526] Console: colour dummy device 80x30
[    0.000888] printk: console [tty0] enabled
[    0.000975] Calibrating delay loop... 358.80 BogoMIPS (lpj=1794048)
[    0.050242] pid_max: default: 32768 minimum: 301
[    0.050577] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.050637] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.052059] CPU: Testing write buffer coherency: ok
[    0.054000] Setting up static identity map for 0x80100000 - 0x80100058
[    0.055900] devtmpfs: initialized
[    0.060381] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.060523] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.060856] pinctrl core: initialized pinctrl subsystem
[    0.062709] NET: Registered protocol family 16
[    0.064046] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.065723] cpuidle: using governor menu
[    0.109596] SCSI subsystem initialized
[    0.110362] usbcore: registered new interface driver usbfs
[    0.110581] usbcore: registered new interface driver hub
[    0.110787] usbcore: registered new device driver usb
[    0.111240] pps_core: LinuxPPS API ver. 1 registered
[    0.111309] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.111823] Advanced Linux Sound Architecture Driver Initialized.
[    0.113255] clocksource: Switched to clocksource timer
[    0.139378] NET: Registered protocol family 2
[    0.140702] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes)
[    0.140857] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.140933] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.140991] TCP: Hash tables configured (established 1024 bind 1024)
[    0.141285] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.141380] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.141909] NET: Registered protocol family 1
[    0.144190] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.146046] Initialise system trusted keyrings
[    0.146634] workingset: timestamp_bits=30 max_order=13 bucket_order=0
[    0.166131] Key type asymmetric registered
[    0.166230] Asymmetric key parser 'x509' registered
[    0.166425] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[    0.166489] io scheduler mq-deadline registered
[    0.166521] io scheduler kyber registered
[    0.168186] sun4i-usb-phy 1c13400.phy: Couldn't request ID GPIO
[    0.176286] suniv-f1c100s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    0.337164] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    0.342053] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pe not found, using dummy regulator
[    0.343745] printk: console [ttyS0] disabled
[    0.364047] 1c25000.serial: ttyS0 at MMIO 0x1c25000 (irq = 22, base_baud = 6250000) is a 16550A
[    0.747810] printk: console [ttyS0] enabled
[    0.755144] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pd not found, using dummy regulator
[    0.771283] SCSI Media Changer driver v0.25
[    0.777316] libphy: Fixed MDIO Bus: probed
[    0.781671] usbcore: registered new interface driver rndis_wlan
[    0.787884] usbcore: registered new interface driver asix
[    0.793526] usbcore: registered new interface driver ax88179_178a
[    0.799753] usbcore: registered new interface driver cdc_ether
[    0.805808] usbcore: registered new interface driver net1080
[    0.811594] usbcore: registered new interface driver rndis_host
[    0.817766] usbcore: registered new interface driver cdc_subset
[    0.823923] usbcore: registered new interface driver zaurus
[    0.829683] usbcore: registered new interface driver cdc_ncm
[    0.835459] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.842002] ehci-platform: EHCI generic platform driver
[    0.847536] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.853888] ohci-platform: OHCI generic platform driver
[    0.859505] usbcore: registered new interface driver usb-storage
[    0.865963] usbcore: registered new interface driver option
[    0.871666] usbserial: USB Serial support registered for GSM modem (1-port)
[    0.879669] udc-core: couldn't find an available UDC - added [g_cdc] to list of pending drivers
[    0.888815] i2c /dev entries driver
[    0.893912] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pf not found, using dummy regulator
[    0.931740] sunxi-mmc 1c0f000.mmc: initialized, max. request size: 16384 KB
[    0.940874] usbcore: registered new interface driver usbhid
[    0.946631] usbhid: USB HID core driver
[    0.963528] NET: Registered protocol family 17
[    0.968151] Key type dns_resolver registered
[    0.974723] Loading compiled-in X.509 certificates
[    0.988886] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pd not found, using dummy regulator
[    1.000246] sun4i-backend 1e60000.display-backend: Couldn't find matching frontend, frontend features disabled
[    1.011061] sun4i-drm display-engine: bound 1e60000.display-backend (ops 0xc0737d54)
[    1.020040] sun4i-drm display-engine: bound 1c0c000.lcd-controller (ops 0xc07369ac)
[    1.027889] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[    1.034580] [drm] No driver support for vblank timestamp query.
[    1.042021] [drm] Initialized sun4i-drm 1.0.0 20150629 for display-engine on minor 0
[    1.187617] mmc0: host does not support reading read-only switch, assuming write-enable
[    1.190755] mmc0: new high speed SDHC card at address aaaa
[    1.195325] mmcblk0: mmc0:aaaa SD32G 29.7 GiB
[    1.211624] Console: switching to colour frame buffer device 100x30
[    1.214435]  mmcblk0: p1 p2
[    1.316714] sun4i-drm display-engine: fb0: sun4i-drmdrmfb frame buffer device
[    1.334733] usb_phy_generic usb_phy_generic.0.auto: usb_phy_generic.0.auto supply vcc not found, using dummy regulator

U-Boot SPL 2018.01-05676-g00188782ee (Apr 08 2018 - 16:10:25)
DRAM: 32 MiB
Trying to boot from MMC1


U-Boot 2018.01-05676-g00188782ee (Apr 08 2018 - 16:10:25 +0800) Allwinner Technology

CPU:   Allwinner F Series (SUNIV)
Model: Lichee Pi Nano
DRAM:  32 MiB
MMC:   SUNXI SD/MMC: 0
SF: unrecognized JEDEC id bytes: 00, 00, 00
*** Warning - spi_flash_probe_bus_cs() failed, using default environment

Setting up a 480x272 lcd console (overscan 0x0)
In:    serial@1c25000
Out:   serial@1c25000
Err:   serial@1c25000
Net:   No ethernet found.
starting USB...
No controllers found
Hit any key to stop autoboot:  0
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
6537 bytes read in 25 ms (254.9 KiB/s)
reading zImage
4023992 bytes read in 202 ms (19 MiB/s)
## Flattened Device Tree blob at 80c00000
   Booting using the fdt blob at 0x80c00000
   Loading Device Tree to 80e61000, end 80e65988 ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.2.0-licheepi-nano (romanljw@ubuntu) (gcc version 7.2.1 20171011 (Linaro GCC 7.2-2017.11)) #8 Thu Oct 21 07:44:57 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: 8128
[    0.000000] Kernel command line: console=tty0 console=ttyS0,115200 panic=5 rootwait root=/dev/mmcblk0p2 rw
[    0.000000] Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Memory: 22700K/32768K available (6144K kernel code, 241K rwdata, 1556K rodata, 1024K init, 228K bss, 10068K 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+0x254/0x42c with crng_init=0
[    0.000043] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
[    0.000105] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000534] Console: colour dummy device 80x30
[    0.000896] printk: console [tty0] enabled
[    0.000987] Calibrating delay loop... 358.80 BogoMIPS (lpj=1794048)
[    0.050246] pid_max: default: 32768 minimum: 301
[    0.050580] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.050640] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.052062] CPU: Testing write buffer coherency: ok
[    0.054006] Setting up static identity map for 0x80100000 - 0x80100058
[    0.055909] devtmpfs: initialized
[    0.060419] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.060562] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.060894] pinctrl core: initialized pinctrl subsystem
[    0.062704] NET: Registered protocol family 16
[    0.064052] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.065747] cpuidle: using governor menu
[    0.109596] SCSI subsystem initialized
[    0.110355] usbcore: registered new interface driver usbfs
[    0.110572] usbcore: registered new interface driver hub
[    0.110782] usbcore: registered new device driver usb
[    0.111242] pps_core: LinuxPPS API ver. 1 registered
[    0.111309] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.111830] Advanced Linux Sound Architecture Driver Initialized.
[    0.113264] clocksource: Switched to clocksource timer
[    0.139419] NET: Registered protocol family 2
[    0.140726] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes)
[    0.140887] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.140959] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.141013] TCP: Hash tables configured (established 1024 bind 1024)
[    0.141317] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.141415] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.141932] NET: Registered protocol family 1
[    0.144214] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.146083] Initialise system trusted keyrings
[    0.146673] workingset: timestamp_bits=30 max_order=13 bucket_order=0
[    0.166255] Key type asymmetric registered
[    0.166357] Asymmetric key parser 'x509' registered
[    0.166552] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[    0.166617] io scheduler mq-deadline registered
[    0.166650] io scheduler kyber registered
[    0.168332] sun4i-usb-phy 1c13400.phy: Couldn't request ID GPIO
[    0.176424] suniv-f1c100s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    0.337278] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    0.342194] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pe not found, using dummy regulator
[    0.343888] printk: console [ttyS0] disabled
[    0.364189] 1c25000.serial: ttyS0 at MMIO 0x1c25000 (irq = 22, base_baud = 6250000) is a 16550A
[    0.747937] printk: console [ttyS0] enabled
[    0.755273] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pd not found, using dummy regulator
[    0.771404] SCSI Media Changer driver v0.25
[    0.777413] libphy: Fixed MDIO Bus: probed
[    0.781766] usbcore: registered new interface driver rndis_wlan
[    0.787987] usbcore: registered new interface driver asix
[    0.793635] usbcore: registered new interface driver ax88179_178a
[    0.799858] usbcore: registered new interface driver cdc_ether
[    0.805914] usbcore: registered new interface driver net1080
[    0.811698] usbcore: registered new interface driver rndis_host
[    0.817874] usbcore: registered new interface driver cdc_subset
[    0.824020] usbcore: registered new interface driver zaurus
[    0.829772] usbcore: registered new interface driver cdc_ncm
[    0.835547] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.842096] ehci-platform: EHCI generic platform driver
[    0.847641] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.853994] ohci-platform: OHCI generic platform driver
[    0.859611] usbcore: registered new interface driver usb-storage
[    0.866060] usbcore: registered new interface driver option
[    0.871760] usbserial: USB Serial support registered for GSM modem (1-port)
[    0.879770] udc-core: couldn't find an available UDC - added [g_cdc] to list of pending drivers
[    0.888909] i2c /dev entries driver
[    0.893991] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pf not found, using dummy regulator
[    0.931809] sunxi-mmc 1c0f000.mmc: initialized, max. request size: 16384 KB
[    0.940937] usbcore: registered new interface driver usbhid
[    0.946695] usbhid: USB HID core driver
[    0.963570] NET: Registered protocol family 17
[    0.968191] Key type dns_resolver registered
[    0.974766] Loading compiled-in X.509 certificates
[    0.988861] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pd not found, using dummy regulator
[    1.000203] sun4i-backend 1e60000.display-backend: Couldn't find matching frontend, frontend features disabled
[    1.010994] sun4i-drm display-engine: bound 1e60000.display-backend (ops 0xc0737d54)
[    1.019968] sun4i-drm display-engine: bound 1c0c000.lcd-controller (ops 0xc07369ac)
[    1.027814] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[    1.034511] [drm] No driver support for vblank timestamp query.
[    1.041964] [drm] Initialized sun4i-drm 1.0.0 20150629 for display-engine on minor 0
[    1.187867] mmc0: host does not support reading read-only switch, assuming write-enable
[    1.191211] mmc0: new high speed SDHC card at address aaaa
[    1.195678] mmcblk0: mmc0:aaaa SD32G 29.7 GiB
[    1.211973] Console: switching to colour frame buffer device 100x30
[    1.214845]  mmcblk0: p1 p2
[    1.317009] sun4i-drm display-engine: fb0: sun4i-drmdrmfb frame buffer device
[    1.334974] usb_phy_generic usb_phy_generic.0.auto: usb_phy_generic.0.auto supply vcc not found, using dummy regulator

#15 Re: 全志 SOC » 求教F1C100S与合宙PCIE模块通过USB连接原理图应该如何画 » 2021-10-21 07:59:29

@阿黄
我后来把它改成独立供电了,还是重启。T_T

#16 Re: 全志 SOC » 求教F1C100S与合宙PCIE模块通过USB连接原理图应该如何画 » 2021-10-21 07:58:40

哇酷小二 说:

F1C 重启吗?
F1C 重启先检查电源问题,这个很重要。

我不开启usb的情况下,就不会重启,每次一使能usb就出现反复重启的情况了。感觉不是电源的问题。

#17 全志 SOC » 求教F1C100S与合宙PCIE模块通过USB连接原理图应该如何画 » 2021-10-20 19:07:32

romanljw
回复: 6

各位大佬,有个问题希望大家指教。
我想使用F1C100S中usb直接连接合宙Air724模块,模块如下所示:
724.jpg
我想实现的功能是合宙与F1C100s通过usb在板子上布线直接连接。
我的原理图的usb部分是这么画的
Air720.png
f1c100s.png
实际做出来是这样的:
.png
我是用的是论坛中大佬提供的支持usb的linux5.2内核的代码,但是发现下载到tf卡启动后,当上电加载内核的时候,反复重启,我想是不是可能跟PE2的接线问题有关(这个PE2我看很多原理图上都连接到usb接口的usb_id上。但是我的板子和合宙模块是直接拉线连接的,没有usb_id)
我在测试的时候,把PE2也尝试了直接接地,但是依旧在加载到内核的时候反复重启。不知道大佬们能不能指导下,应该如何修改。
在此谢过了。
另外,我做好的linux系统直接下载到licheepi nano上没有问题,初步觉得可以排除软件的问题。
还请大家指教,再次谢过

#18 Re: 全志 SOC » f1c100s linux 5.2 USB已完美驱动,host+device完美运行 » 2021-07-29 17:55:33

请教下,为啥我下载了5.2的linux,使用make后没有编译设备树?

页脚

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

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