您尚未登录。

#1 全志 SOC » 请问,nanopi neo 能驱动L298N模块吗? » 2024-05-06 17:16:35

sxlyq_666
回复: 0

网上没有搜到相关例子。谢谢。

#4 Re: 全志 SOC » lichee zero Kernel如何适配Ethernet » 2024-04-04 22:20:41

晕哥 说:

https://whycan.cn/t_336.html

4.13-y  驱动和设备树已经默认打开了以太网,

用 ifconfig eth0 up 打开

设置ip:
ifconfig eth0 192.168.1.99


为何配置了USB 串口之后,就找不到eth0了?

#5 Re: 全志 SOC » 加载了ch340驱动后,为什么网卡挂掉了 » 2024-04-04 15:45:51

marcus 说:

See 'systemctl status networking.service' for details

看起来像应用层的问题,看下失败原因。

执行了,但是看不出有用的信息。

关键是这个网卡的灯一直亮着比较诡异。

#6 Re: 全志 SOC » 如何向内核中添加ch340驱动? » 2024-04-04 15:44:52

marcus 说:

CONFIG_USB_SERIAL_CH341 这个宏没有选上,可以去config文件里面查,在哪个子菜单选项里面,然后打开就好了。


谢谢,已经弄好了。但是网卡eth0却找不到了。郁闷。

#8 Re: 全志 SOC » 求助 nanopi-neo2 全志H5 Linux 内核启动正常但是网络不通就帮助 » 2024-04-03 21:46:03

wugang0420 说:
我心飞翔 说:

设备树有没有添加网卡 ?

问题已经解决了,没来得及回复万分抱歉。问题源于,编译时多选了个phy 芯片导致的

 <*>   Realtek PHYs   

什么意思,是需要打开这个吗?还是不需要打开这个选项?

#9 Re: 全志 SOC » V3S没有出现eth0网卡 » 2024-04-03 21:25:11

mysteryli 说:

解决了 内核编译的menuconfig里搜索sun8i就找到了和网卡有关的驱动模块没打开


哥们,能说的再详细点吗?

#10 Re: 全志 SOC » 加载了ch340驱动后,为什么网卡挂掉了 » 2024-04-03 20:31:14

而且网口灯一直亮,就算没有插入网线。

#11 Re: 全志 SOC » 加载了ch340驱动后,为什么网卡挂掉了 » 2024-04-03 20:21:47

ls /sys/bus/mdio_bus/drivers -l
total 0
drwxr-xr-x 2 root root 0 Mar 17 18:22 'Generic 10G PHY'
drwxr-xr-x 2 root root 0 Mar 17 18:22 'Generic PHY'

#12 全志 SOC » 加载了ch340驱动后,为什么网卡挂掉了 » 2024-04-03 17:02:30

sxlyq_666
回复: 4

出现了如下错误提示:

[FAILED] Failed to start Raise network interfaces.
See 'systemctl status networking.service' for details

但是在uboot启动的时候,可以找到eth0的。

eth0: ethernet@1c30000

#13 Re: 全志 SOC » 如何向内核中添加ch340驱动? » 2024-04-03 09:15:51

marcus 说:

Makefile 里面加
obj-y += ch341.o

进一步的话也要修改 config 那个文件。

我在drivers/serial/目录下的Makefile文件中,发现是有该编译指令的,具体如下:,比较奇怪的是,为什么没有编译?谢谢。


obj-$(CONFIG_USB_SERIAL_AIRCABLE)               += aircable.o
obj-$(CONFIG_USB_SERIAL_ARK3116)                += ark3116.o
obj-$(CONFIG_USB_SERIAL_BELKIN)                 += belkin_sa.o
obj-$(CONFIG_USB_SERIAL_CH341)                  += ch341.o

#14 Re: 全志 SOC » 如何向内核中添加ch340驱动? » 2024-04-03 09:05:47

marcus 说:

Makefile 里面加
obj-y += ch341.o

进一步的话也要修改 config 那个文件。

是内核根目录下的 .config文件吗?

#15 Re: 全志 SOC » 如何向内核中添加ch340驱动? » 2024-04-02 17:47:42

我在drivers目录下,发现有ch341.c,但是没有ch341.o。

#16 全志 SOC » 如何向内核中添加ch340驱动? » 2024-04-02 17:37:16

sxlyq_666
回复: 6

在内核配置菜单中,没有看到340的驱动。

  --- USB Serial Converter support                                                                                                               │ │  
  │ │                                                                         [*]   USB Serial Console device support                                                                                                        │ │  
  │ │                                                                         [*]   USB Generic Serial Driver                                                                                                                │ │  
  │ │                                                                         < >   USB Serial Simple Driver                                                                                                                 │ │  
  │ │                                                                         < >   USB AIRcable Bluetooth Dongle Driver                                                                                                     │ │  
  │ │                                                                         < >   USB ARK Micro 3116 USB Serial Driver                                                                                                     │ │  
  │ │                                                                         < >   USB Belkin and Peracom Single Port Serial Driver                                                                                         │ │  
  │ │                                                                         < >   USB Winchiphead CH341 Single Port Serial Driver                                                                                          │ │  
  │ │                                                                         < >   USB ConnectTech WhiteHEAT Serial Driver                                                                                                  │ │  
  │ │                                                                         < >   USB Digi International AccelePort USB Serial Driver                                                                                      │ │  
  │ │                                                                         < >   USB CP210x family of UART Bridge Controllers                                                                                             │ │  
  │ │                                                                         < >   USB Cypress M8 USB Serial Driver                                                                                                         │ │  
  │ │                                                                         < >   USB Empeg empeg-car Mark I/II Driver                                                                                                     │ │  
  │ │                                                                         < >   USB FTDI Single Port Serial Driver                                                                                                       │ │  
  │ │                                                                         < >   USB Handspring Visor / Palm m50x / Sony Clie Driver                                                                                      │ │  
  │ │                                                                         < >   USB PocketPC PDA Driver                                                                                                                  │ │  
  │ │                                                                         < >   USB IR Dongle Serial Driver                                                                                                              │ │  
  │ │                                                                         < >   USB Inside Out Edgeport Serial Driver                                                                                                    │ │  
  │ │                                                                         < >   USB Inside Out Edgeport Serial Driver (TI devices)                                                                                       │ │  
  │ │                                                                         < >   USB Fintek F81232 Single Port Serial Driver                                                                                              │ │  
  │ │                                                                         < >   USB Fintek F81532/534 Multi-Ports Serial Driver                                                                                          │ │  
  │ │                                                                         < >   USB Garmin GPS driver                                                                                                                    │ │  
  │ │                                                                         < >   USB IPWireless (3G UMTS TDD) Driver                                                                                                      │ │  
  │ │                                                                         < >   USB Infinity USB Unlimited Phoenix Driver                                                                                                │ │  
  │ │                                                                         < >   USB Keyspan PDA Single Port Serial Driver                                                                                                │ │  
  │ │                                                                         < >   USB Keyspan USA-xxx Serial Driver                                                                                                        │ │  
  │ │                                                                         < >   USB KL5KUSB105 (Palmconnect) Driver                                                                                                      │ │  
  │ │                                                                         < >   USB KOBIL chipcard reader                                                                                                                │ │  
  │ │                                                                         < >   USB MCT Single Port Serial Driver                                                                                                        │ │  
  │ │                                                                         < >   USB Metrologic Instruments USB-POS Barcode Scanner Driver                                                                                │ │  
  │ │                                                                         < >   USB Moschip 7720 Serial Driver                                                                                                           │ │  
  │ │                                                                         < >   USB Moschip 7840/7820 USB Serial Driver                                                                                                  │ │  
  │ │                                                                         < >   USB Moxa UPORT Serial Driver                                                                                                             │ │  
  │ │                                                                         < >   USB Navman GPS device                                                                                                                    │ │  
  │ │                                                                         <*>   USB Prolific 2303 Single Port Serial Driver                                                                                              │ │  
  │ │                                                                         < >   USB Ours Technology Inc. OTi-6858 USB To RS232 Bridge Controller                                                                         │ │  
  │ │                                                                         < >   USB Qualcomm Auxiliary Serial Port Driver                                                                                                │ │  
  │ 

#17 Re: 全志 SOC » 修改了内核模块,添加支持usb serial converter模块 » 2024-04-02 11:47:05

晕哥 说:

不要从板上取电插入,先排除电源问题。

先插入,然后启动系统。仍然有这个问题,用lsusb命令查看得到:

/:  Bus 09.Port 1: Dev 1, Class=root_hub, Driver=musb-hdrc/1p, 480M
/:  Bus 08.Port 1: Dev 1, Class=root_hub, Driver=ohci-platform/1p, 12M
    |__ Port 1: Dev 2, If 0, Class=, Driver=, 12M
/:  Bus 07.Port 1: Dev 1, Class=root_hub, Driver=ohci-platform/1p, 12M
/:  Bus 06.Port 1: Dev 1, Class=root_hub, Driver=ohci-platform/1p, 12M
/:  Bus 05.Port 1: Dev 1, Class=root_hub, Driver=ehci-platform/1p, 480M
/:  Bus 04.Port 1: Dev 1, Class=root_hub, Driver=ehci-platform/1p, 480M
/:  Bus 03.Port 1: Dev 1, Class=root_hub, Driver=ehci-platform/1p, 480M
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=ohci-platform/1p, 12M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci-platform/1p, 480M

然后,ls /dev/ 命令,查看多了很多没有用的tty文件,如下图所示

tyb6               ptyq6  ptyv6  stdout  ttya6  ttyp6  ttyu6  ttyz6
ptyb7               ptyq7  ptyv7  tty     ttya7  ttyp7  ttyu7  ttyz7
ptyb8               ptyq8  ptyv8  tty0    ttya8  ttyp8  ttyu8  ttyz8
ptyb9               ptyq9  ptyv9  tty1    ttya9  ttyp9  ttyu9  ttyz9
ptyba               ptyqa  ptyva  tty10   ttyaa  ttypa  ttyua  ttyza
ptybb               ptyqb  ptyvb  tty11   ttyab  ttypb  ttyub  ttyzb
ptybc               ptyqc  ptyvc  tty12   ttyac  ttypc  ttyuc  ttyzc
ptybd               ptyqd  ptyvd  tty13   ttyad  ttypd  ttyud  ttyzd
ptybe               ptyqe  ptyve  tty14   ttyae  ttype  ttyue  ttyze
ptybf               ptyqf  ptyvf  tty15   ttyaf  ttypf  ttyuf  ttyzf
ptyc0               ptyr0  ptyw0  tty16   ttyb0  ttyq0  ttyv0  urandom
ptyc1               ptyr1  ptyw1  tty17   ttyb1  ttyq1  ttyv1  vcs
ptyc2               ptyr2  ptyw2  tty18   ttyb2  ttyq2  ttyv2  vcs1
ptyc3               ptyr3  ptyw3  tty19   ttyb3  ttyq3  ttyv3  vcs2
ptyc4               ptyr4  ptyw4  tty2    ttyb4  ttyq4  ttyv4  vcs3
ptyc5               ptyr5  ptyw5  tty20   ttyb5  ttyq5  ttyv5  vcs4
ptyc6               ptyr6  ptyw6  tty21   ttyb6  ttyq6  ttyv6  vcs5
ptyc7               ptyr7  ptyw7  tty22   ttyb7  ttyq7  ttyv7  vcs6
ptyc8               ptyr8  ptyw8  tty23   ttyb8  ttyq8  ttyv8  vcsa
ptyc9               ptyr9  ptyw9  tty24   ttyb9  ttyq9  ttyv9  vcsa1
ptyca               ptyra  ptywa  tty25   ttyba  ttyqa  ttyva  vcsa2
ptycb               ptyrb  ptywb  tty26   ttybb  ttyqb  ttyvb  vcsa3
ptycc               ptyrc  ptywc  tty27   ttybc  ttyqc  ttyvc  vcsa4
ptycd               ptyrd  ptywd  tty28   ttybd  ttyqd  ttyvd  vcsa5
ptyce               ptyre  ptywe  tty29   ttybe  ttyqe  ttyve  vcsa6
ptycf               ptyrf  ptywf  tty3    ttybf  ttyqf  ttyvf  watchdog
ptyd0               ptys0  ptyx0  tty30   ttyc0  ttyr0  ttyw0  watchdog0

#18 全志 SOC » 修改了内核模块,添加支持usb serial converter模块 » 2024-04-02 10:45:24

sxlyq_666
回复: 2

在USB插口,插入usb转rs485的头子,出现如下错误:

 sun4i-codec 1c22c00.codec: ASoC: /soc/codec-analog@01f015c0 not registered
[    1.764752] sun4i-codec 1c22c00.codec: Failed to register our card

请教如何解决?

#19 全志 SOC » 请问,编译Linux内核4.14版本的时候,出现ultiple definition of `yylloc'; 问题 » 2024-04-01 18:05:22

sxlyq_666
回复: 0

我打开了内核模块中的usb serial converter的功能,然后make sunxi_defconfig,然后make,就出现了这个问题。


请问,如何解决?

Multiple definition of `yylloc'; scripts/dtc/dtc-lexer.lex.o:(.bss+0x0): first defined here

#20 Re: 全志 SOC » 主线Linux用shell命令切换 OTG(分享)tiny200/licheepi nano|zero均可以使用 » 2024-03-29 21:30:31

@raspberryman

你好,请问,为何在nano  neo pi 下,只有这些信息,谢谢了。

1c02000.dma-controller/ 1c1d400.usb/            1c2b400.i2c/
1c0c000.lcd-controller/ 1c20800.pinctrl/        1c30000.ethernet/
1c0f000.mmc/            1c20c00.timer/          1c40000.gpu/
1c14000.eeprom/         1c20ca0.watchdog/       1c68000.spi/
1c19000.usb/            1c22800.i2s/            1ee0000.hdmi/
1c19400.phy/            1c22c00.codec/          1f00000.rtc/
1c1a000.usb/            1c25000.ths/            1f015c0.codec-analog/
1c1a400.usb/            1c28000.serial/         1f02c00.pinctrl/
1c1b000.usb/            1c28400.serial/         
1c1b400.usb/            1c28800.serial/ 

#21 Re: 全志 SOC » 请问,为何/dev/目录下面没有ttyUSB 相关文件? » 2024-03-19 13:53:22

执行命令 cat /proc/tty/drivers的结果中包含/dev/ttyUSB信息。

root@LIYANGQUN:~# cat /proc/tty/drivers   
/dev/tty             /dev/tty        5       0 system:/dev/tty
/dev/console         /dev/console    5       1 system:console
/dev/ptmx            /dev/ptmx       5       2 system
/dev/vc/0            /dev/vc/0       4       0 system:vtmaster
g_serial             /dev/ttyGS    245 0-3 serial
usbserial            /dev/ttyUSB   188 0-511 serial
acm                  /dev/ttyACM   166 0-255 serial
serial               /dev/ttyS       4 64-71 serial
pty_slave            /dev/pts      136 0-1048575 pty:slave
pty_master           /dev/ptm      128 0-1048575 pty:master
unknown              /dev/tty        4 1-63 console

#24 Re: 全志 SOC » 请问,为何/dev/目录下面没有ttyUSB 相关文件? » 2024-03-19 10:53:43

微凉VeiLiang 说:

你没插有usb转串口的设备就不会有/dev/ttyUSB0. 如果已经插了就 试下lsusb看看枚举是否成功

我查了一个u盘上去,也没有这个文件。但是lsusb可以看到。

#25 Re: 全志 SOC » 请问,为何/dev/目录下面没有ttyUSB 相关文件? » 2024-03-18 14:05:00

海石生风 说:

检查USB转串口芯片是否支持CDC,不支持就要安装该芯片的VCP驱动。

如CH340G芯片只支持VCP驱动,那么就要安装CH341SER驱动。

我现在有一个USB转485串口,连接modbus 温湿度。请问,有相关资料吗?谢谢。

#26 Re: 全志 SOC » 请问,为何/dev/目录下面没有ttyUSB 相关文件? » 2024-03-18 10:43:07

海石生风 说:

Linux默认支持CDC驱动,检查芯片是否支持,否则就需要安装厂商的VCP驱动。


用的是nanopi neo呀。 是否需要配置内核?内核中打开vcp驱动吗?谢谢。

#27 Re: 全志 SOC » V3s USB错误 Couldn't request ID GPIO » 2024-03-17 15:51:51

@kircar
请问大侠,linux4.14.111版本的该如何解决呢?谢谢。

#28 全志 SOC » lsusb执行结果只看到了这么些东西 » 2024-03-17 15:41:12

sxlyq_666
回复: 2
Bus 008 Device 001: ID 1d6b:0001  
Bus 005 Device 001: ID 1d6b:0002  
Bus 007 Device 001: ID 1d6b:0001  
Bus 004 Device 001: ID 1d6b:0002  
Bus 006 Device 001: ID 1d6b:0001  
Bus 003 Device 001: ID 1d6b:0002  
Bus 002 Device 001: ID 1d6b:0001  
Bus 001 Device 001: ID 1d6b:0002  
Bus 009 Device 001: ID 1d6b:0002

不知道啥意思啊

#29 Re: 全志 SOC » 请教F1C100S的 USB Host的kernel配置 » 2024-03-17 14:10:49

大牛好,我的dev目录下没有ttyUSB文件,是什么原因?

#32 全志 SOC » 编译u-boot的时候的问题 » 2024-03-15 17:34:15

sxlyq_666
回复: 0

参考了这篇文章进行uboot编译。
https://blog.csdn.net/qq_41839588/article/details/130000855?spm=1001.2014.3001.5502

uboot利用下面命令下载的:

git clone https://github.com/friendlyarm/u-boot.git -b sunxi-v2017.x --depth 1

执行了make nanopi-neo-deconfig命令
然后执行make命令,
出现了如下的错误提示:

board/sunxi/board.c:791:9: error: void value not ignored as it ought to be
     ret = eeprom_read(0x51, 0xfa, mac_addr, sizeof(mac_addr));

搜索了一下,也没有看到解决办法,请问该如何解决?

#34 全志 SOC » ARM 开发指令 对于嵌入式开发 重要吗 » 2024-02-22 20:27:48

sxlyq_666
回复: 2

如题。 我想在全志上面 ,直接运行ARM 指令编写的代码,可以吗

#36 Re: 全志 SOC » 有没有办法把SD卡中的uboot文件拷贝出来? » 2024-02-02 16:38:26

善思维 说:

拿读卡器读SD卡里uboot的分区

没有用啊,电脑看不到,无论windows还是ubuntu。

#37 Re: 全志 SOC » 【视频分享】制作荔枝派Zero开发板(全志V3s) TF/SD卡启动盘 » 2024-02-01 18:14:52

想把uboot文件从sd卡读出来,有什么好办法吗? 原来的包括源文件以及编译好的都格式化掉了。

#38 全志 SOC » 有没有办法把SD卡中的uboot文件拷贝出来? » 2024-02-01 17:43:02

sxlyq_666
回复: 7

虚拟机里面的被格式化掉了。系统崩了。

#39 全志 SOC » nanopi ttyS1和ttyS2串口接收到的数据时长时短 » 2024-01-30 16:38:07

sxlyq_666
回复: 1

而且内容是乱码,下面是串口设置的参数

stty -F /dev/ttyS1
speed 9600 baud; line = 0;
-brkint -imaxbel

请问,大概是什么地方出现问题了? 是DTS配置不对? 谢谢。

#40 Re: 全志 SOC » ubuntu 制作的rootfs的启动问题 » 2024-01-29 16:53:46

海石生风 说:

ttyN,N通常为1~6,是虚拟控制台,可按Ctrl + Alt + Fn 切换。Getty on tty1应该是rootfs生成时默认就有了。
有可能tty1就是指向的ttyS0,可以试下删除你添加的Getty on ttyS0


应该是多配了一个tty1文件,删除了,就可以了,但仍然提示

This system has been minimized by removing packages and content that are
not required on a system that users do not log into.

我现在重新给unmininimized下,试试看。

#41 Re: 全志 SOC » ubuntu 制作的rootfs的启动问题 » 2024-01-27 18:29:28

海石生风 说:

可以添加多个echo,先定位出问题的是哪个命令

另外,你的启动系统是systemd,然后又保留并使用了sysvinit?怎么搞这么复杂?

       Starting OpenBSD Secure Shell server...
         Starting Permit User Sessions...
[  OK  ] Finished Permit User Sessions.
[  OK  ] Started Getty on tty1.
[  OK  ] Started Getty on ttyS0.
[  OK  ] Started Serial Getty on ttyS0.
[  OK  ] Reached target Login Prompts.
[  OK  ] Finished Remove Stale Onli…ext4 Metadata Check Snapshots.
[  OK  ] Started Dispatcher daemon for systemd-networkd.

这是启动的最后几行文字,为什么会getty on tty1呢,没有配置过这个tty1啊。我现在的串口名字是ttyS0.
bootargs 参数如下:
setenv bootargs 'console=tty0 console=ttyS0,115200 panic=5 rootwait root=/dev/mmcblk1p2 rw rootfstype=ext4 earlyprintk rw vt.global_cursor_default=0'

#42 Re: 全志 SOC » ubuntu 制作的rootfs的启动问题 » 2024-01-27 18:22:13

海石生风 说:

可以添加多个echo,先定位出问题的是哪个命令

另外,你的启动系统是systemd,然后又保留并使用了sysvinit?怎么搞这么复杂?



另外,echo命令在何处增加呢? 谢谢。

#43 Re: 全志 SOC » ubuntu 制作的rootfs的启动问题 » 2024-01-27 18:19:40

海石生风 说:

可以添加多个echo,先定位出问题的是哪个命令

另外,你的启动系统是systemd,然后又保留并使用了sysvinit?怎么搞这么复杂?


我是参考网上资料,东一篇,西一篇搞的。我把这个删掉试试看。谢谢。

#44 Re: 全志 SOC » ubuntu 制作的rootfs的启动问题 » 2024-01-27 10:08:31

海石生风 说:

应该是启动脚本所使用的控制台(tty)不太对,试下换到/dev/tty1看看

谢谢提醒,我的配置配的是ttyS0,具体配置信息如下:
ln -s /lib/systemd/system/getty\@.service /etc/systemd/system/getty.target.wants/getty\@ttyS0.service

我们可以创建/etc/init/ttyS0.conf文件,并写入如下的内容:

    start on stopped rc or RUNLEVEL=[12345]
    stop on runlevel [!12345]
    respawn
    exec /sbin/getty -L 115200 ttyS0 vt102

把vt102后来去掉了。请问,是这里配置的原因吗?
另外,请问,如何切换到/dev/tty1呢?

#45 全志 SOC » ubuntu 制作的rootfs的启动问题 » 2024-01-26 21:36:20

sxlyq_666
回复: 8

启动后,发现下面错误提示:

elcome to Ubuntu 20.04.1 LTS (GNU/Linux 4.14.111-gec36a7d5-dirty armv7l)

* Documentation:  https://help.ubuntu.com
* Management:     https://landscape.canonical.com
* Support:        https://ubuntu.com/advantage

This system has been minimized by removing packages and content that are
not required on a system that users do not log into.

To restore this content, you can run the 'unminimize' command.

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

Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
applicable law.

-bash: cannot set terminal process group (337): Inappropriate ioctl for device
-bash: no job control in this shell


然后就死机了,请问怎么解决啊? 谢谢。

#47 全志 SOC » Kernel panic - not syncing: Requested init /linuxrc failed (error -2) » 2024-01-24 19:50:59

sxlyq_666
回复: 0

出现这个错误了。我将buildroot文件系统,改为了Ubuntu 20.04 制作的根文件系统,我直接将文件系统的所有文件解压缩到 sd卡上的第二个分区上面,
现在启动的时候,提示找不到 /linuxrc ,我用的启动参数为:

setenv bootargs 'console=tty0 console=ttyS0,115200 panic=5 rootwait root=/dev/mmcblk1p2 rw rootfstype=ext4 earlyprintk rw init=/linuxrc vt.global_cursor_default=0'

然后不停重启。如果把其中的init=/linux 去掉,则出现错误为:

tarting init: /sbin/init exists but couldn't execute it (error -8)
[    3.909914] Starting init: /bin/sh exists but couldn't execute it (error -8)

请大神帮忙指导以下,谢谢啦。

#48 Re: 全志 SOC » buildroot中怎么没有看到apt-get等命令 » 2024-01-22 16:23:51

@踩姑娘的小蘑菇
我想试一试ubuntu,有具体教程吗? 我不打算搞成镜像文件,我直接拷贝到sd卡上去,可以吗?

#49 全志 SOC » 如何安装ubuntu到nanopi上面? » 2024-01-10 17:40:44

sxlyq_666
回复: 0

友善提供的 不是ubuntu,而是GUN Linux内核。

谢谢。

#50 全志 SOC » buildroot中怎么没有看到apt-get等命令 » 2024-01-10 14:34:03

sxlyq_666
回复: 9

在make menuconfig 中也没有看到。

#51 全志 SOC » 为什么看不到ttyS2的名称 » 2024-01-10 12:02:25

sxlyq_666
回复: 0

ttyS2和另外一台电脑相连,可以发送数据,但是在开发板执行命令 cat /proc/interrupts 结果如下,看不到ttyS2的信息。

44:        771     GIC-0  32 Level     ttyS0
46:          4     GIC-0  34 Level   

当讲bootarg参数中的console改为console=ttyS2时,看到ttyS2的名字,却看不到ttyS0的名字,请问,是什么原因呢?

谢谢。
dmesg | grep ttyS的信息如下:

dmesg |grep ttyS
[    0.000000] Kernel command line: console=tty0 console=ttyS0,115200 panic=5 rootwait root=/dev/mmcblk1p2 rw rootfstype=ext4 earlyprintk rw init=/linuxrc vt.global_cursor_default=0
[    0.282565] console [ttyS0] disabled
[    0.302794] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 44, base_baud = 1500000) is a U6_16550A
[    1.002488] console [ttyS0] enabled
[    1.028684] 1c28400.serial: ttyS1 at MMIO 0x1c28400 (irq = 45, base_baud = 1500000) is a U6_16550A
[    1.058341] 1c28800.serial: ttyS2 at MMIO 0x1c28800 (irq = 46, base_baud = 1500000) is a U6_16550A
[    1.089951] 1c28c00.serial: ttyS3 at MMIO 0x1c28c00 (irq = 47, base_baud = 1500000) is a

#52 全志 SOC » 大牛,请教Nanopi neo 的uart2串口的问题 » 2023-11-25 21:35:49

sxlyq_666
回复: 0

按照网上的教程以及本站的相关资料,我修改了nano-pi相关的dts文件,配置了uart2的信息,其它的没有动,按照
https://cloud.tencent.com/developer/article/2311017?areaId=106001
这里的方式操作的。
但现在问题是
当我查看 /proc/interrupts 下面的信息的时候,只看到ttyS0的信息,而看不到ttyS1的信息,如下所示,而我看到别人的正常情况下,可以看到ttyS1之类信息的。

44:       3986     GIC-0  32 Level     ttyS0
45:       1782     GIC-0  33 Level   
46:        986     GIC-0  34 Level   
47:       1006     GIC-0  35 Level   

同时,目前,只有一根串口线,如何测试这个/dev/ttyS1或者S2串口是可用的?


谢谢。

#53 Re: 全志 SOC » 请教**F1C100S**--- ttyS1\ttyS2----串口配置完打开正常,发送数据接收不到问题 » 2023-11-25 21:26:54

@哇酷小二
大牛,您好,我的和楼主的一样,只有ttys0的名字,没有ttys1 和ttys2的名字,请问是什么原因呢,我用的是nano pi neo老板子。谢谢。

#54 Re: 全志 SOC » 为什么不用树莓派代替Nano Pi » 2023-11-03 09:59:15

leefei 说:

直接买一台pc,再雇个码农,节省的时间成本不是少多了嘛。搞开发,又不是受虐的。


显然,可以等技术成熟再用,枪打出头鸟,让出头鸟先尝试。

#55 全志 SOC » 为什么不用树莓派代替Nano Pi » 2023-10-28 16:07:03

sxlyq_666
回复: 5

节省的时间成本少多了。搞开发,又不是受虐的。

#56 Re: 全志 SOC » [已解决]荔枝派nano Archlinux 下编译 u-boot 求助 » 2023-10-28 15:36:10

for_work 说:

@海石生风
谢谢提醒,不过那个只是warning,真正的问题是libfdt_env.h 的conflicting types问题。最后用新版本的u-boot就都解决了。


请问,新版本的u-boot 是不是需要用哪个版本的gcc?谢谢。

#57 全志 SOC » 资料还是比较混乱,不知道现在H3芯片,用什么版本的软件 » 2023-10-28 13:50:31

sxlyq_666
回复: 0

例如,gcc 用4.9的还是6.0的
u-boot 用2017的还是2020的
内核时用3.14还是4.14还是6的版本的

#58 Re: 全志 SOC » 全志V3S[荔枝派zero](uboot+BSP内核+Buildroot)从0到1全套开发入门 » 2023-10-28 13:07:00

感谢楼主,请问,u_boot还需要额外的配置吗?我看很多资料还需要使用make menuconfig进行硬件参数的配置。另外,我用的是2017的u_boot,可以吗?而且,好像还需要打补丁。

#60 全志 SOC » 现在全志u-boot,内核以及文件系统编译 » 2023-10-28 11:22:50

sxlyq_666
回复: 1

有没有正规的,系统的,准确率比较好的文档资料?

#61 Re: 全志 SOC » V3S TF启动正常,但是USB无法工作的问题? » 2023-10-28 11:10:03

兄弟 ,您的 u-boot怎么编译的啊? 我的提示找不到zImage文件。

#63 全志 SOC » u-boot启动后无法找到镜像文件以文件系统 » 2023-10-28 10:24:10

sxlyq_666
回复: 1

u-boot、内核以及文件系统按照网上的教程重新编译了。而且,该TF卡之前用官方的img文件启动是没有问题的。按照进程将TF卡分为kernel区,FAT16,和文件系统,EXT4格式,然后使用梦里dd 将u-boot复制到 8k处,然后使用sudo cp命令将内核及文件系统拷贝到/dev/username/KERNEL分区。

u-boot中,在.h文件配置了启动参数。请问,如何找到这两个文件呢?谢谢。

启动过程及软硬件信息如下:

U-Boot SPL 2017.11 (Oct 27 2023 - 18:39:32)
DRAM: 256 MiB(408MHz)
CPU Freq: 408MHz
memory test: 1
Pattern 55aa  Writing...Reading...OK
Trying to boot from MMC1
Boot device: sd



U-Boot 2017.11 (Oct 27 2023 - 18:39:32 +0800) Allwinner Technology

CPU:   Allwinner H3 (SUN8I 1680)
Model: FriendlyElec NanoPi H3
DRAM:  256 MiB
CPU Freq: 1008MHz
MMC:   SUNXI SD/MMC: 0, SUNXI SD/MMC: 1
*** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
Net:   No ethernet found.
BOARD: nanopi-neo
starting USB...
No controllers found
Hit any key to stop autoboot:  0
** Unable to read file zImage **
** Unable to read file sun8i-v3s-licheepi-zero-dock.dtb **

#64 全志 SOC » Nano pi neo 3 串口问题 » 2023-09-09 20:19:45

sxlyq_666
回复: 0

我用上述代码,查看nano pi上可用的串口列表,但是,运行结果是什么都没有。

但是,我却可以用串口利用Xshell和nano pi相连,请问,是什么原因呢?  谢谢啊。

import serial.tools.list_ports as list_serial
# import time

port_list = list(list_serial.comports())
for x in range(0, len(port_list)):
    print(port_list[x][0], port_list[x][1])

#65 Re: 全志 SOC » Nano pi H3 的安装使用问题 » 2023-09-08 19:52:56

@sxlyq_666
也可以说是因为在其提供的官方百度网盘下,没有找到其文档所说的img文件。

#66 全志 SOC » Nano pi H3 的安装使用问题 » 2023-09-08 19:48:59

sxlyq_666
回复: 2

https://wiki.friendlyelec.com/wiki/index.php/NanoPi_NEO/zh
我按照上述文档,下载了相关镜像文件,friendlycore-xenial_3.4_armhf.tar文件,将其中的img文件烧录到sd卡上,但是却无法启动。
文档里面说的很粗糙,不知道是不是没有少些uboot的原因还是什么啊?

谢谢。

#67 Re: 全志 SOC » 请问大侠,我这个是什么型号啊? » 2023-09-08 09:47:27

sxlyq_666 说:

领导只知道是H3。https://whycan.com/files/members/12881/微信图片_20230907173227.jpg


大家说的都很对,确实是这个玩意儿。今天编译一下。

#68 Re: 全志 SOC » 请问大侠,我这个是什么型号啊? » 2023-09-07 17:53:38

哇酷小二 说:

反面是什么?

是这样的

_20230907175146.jpg

页脚

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

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