Phytec中国的wiki
support@phytec.cn
热线:0755-61802110-803
vsftpd不能工作
BSP 16.x
这个版本的vsftpd在配置后,在客户端会有这样的报错
500 OOPS: cannot change directory:/var/lib/ftp ftp: Login failed
经过查找发现
https://bugs.alpinelinux.org/issues/3494
这似乎是一个bug。修复方法:
https://git.alpinelinux.org/cgit/aports/commit/?id=01e6a79f76e616857cb3958221e5110452f81f36
于是我们手动建立这个目录就没有问题了。
测试方法:
- 按照 在yocto中怎样为系统安装/删除软件 / yocto how to add/remove packages 的方法增加 vsftpd,然后编译,烧写。
- 在开发板中增加 /var/lib/ftp 目录。
- 修改 /etc/vsftpd.conf 的 anonymous_enable 为YES, 如下:
# run standalone listen=YES # Allow anonymous FTP? (Beware - allowed by default if you comment this out). anonymous_enable=YES <-- 只修改这一行为YES。 # # Uncomment this to allow local users to log in. local_enable=YES # # Uncomment this to enable any form of FTP write command. write_enable=YES
然后就可以用ftp客户端连接。
ftp指定用户登录设置:
1 /etc/vsftpd.conf中的登录配置如下
# Allow anonymous FTP? (Beware - allowed by default if you comment this out). anonymous_enable=NO # Uncomment this to allow local users to log in. local_enable=YES local_root=/tmp/ftp #ftp根目录, 可修改为其他, 默认是用户的home目录 # This option is examined if userlist_enable is activated. If you set this # setting to NO, then users will be denied login unless they are explicitly # listed in the file specified by userlist_file. When login is denied, the # denial is issued before the user is asked for a password. userlist_deny=NO # # If enabled, vsftpd will load a list of usernames, from the filename given by # userlist_file. If a user tries to log in using a name in this file, they # will be denied before they are asked for a password. This may be useful in # preventing cleartext passwords being transmitted. See also userlist_deny. userlist_enable=YES # You may specify an explicit list of local users to chroot() to their home # directory. If chroot_local_user is YES, then this list becomes a list of # users to NOT chroot(). chroot_list_enable=YES # (default follows) chroot_list_file=/etc/vsftpd.chroot_list # If set to YES, local users will be (by default) placed in a chroot() jail in # their home directory after login. Warning: This option has security # implications, especially if the users have upload permission, or shell access. # Only enable if you know what you are doing. Note that these security implications # are not vsftpd specific. They apply to all FTP daemons which offer to put # local users in chroot() jails. chroot_local_user=NO
然后, 在/etc/vsftpd.user_list 和 /etc/vsftpd.chroot_list(需创建) 文件中需要增加登录的用户名称
2 创建用户并设置用户密码
root@phyboard-segin-imx6ul-2:/# useradd -G ftp zcx # ftp登录用户需要加入ftp用户组 root@phyboard-segin-imx6ul-2:/# passwd zcx # 需要设置用户密码
3 创建ftp根目录, 然后重启ftp服务
root@phyboard-segin-imx6ul-2:/# mkdir /tmp/ftp root@phyboard-segin-imx6ul-2:/# chmod -R 777 /tmp/ftp root@phyboard-segin-imx6ul-2:/# systemctl restart vsftpd.service
扩展板信息
PEB-AV-01 HDMI Display Adapter
This is an adapter for populating on Mira or Wega
It provides an HDMI Interface
In some cases this Adapter can not be used in parallel with other Display Interfaces
PEB-AV-02 - LCD Display Adapter Glyn Displays Capacitive Touch
This is an LCD Display Adapter Glyn Displays Capacitive Touches
It is compatible to AV connector of Mira and Wega
PEB-AV-03 - Parallel LCD Display Adapter for AUO and Chi-Mai Displays with additional Resistive Touch AC058
This is an Parallel LCD Display Adapter for AUO and Chi-Mai Displays with additional Resistive Touch
It is compatible to AV connector of Mira and Wega
PEB-EVAL-01
This is the Default Debug Adapter for Wega and Mira.
It is populated on the expansion Port.
It is usually used within Kits which enables customers to use the RS232 which is the Default Kernel Output.
PEB-WLBT-01
Wifi/BLE Addon for PhyBoard Mira/ Wega
PEB-POW-01 Power Module for phyBOARD Wega
12v-24v to 5v converter
qtdemo源代码位置
qtdemo是由
meta-yogurt https://git.phytec.de/meta-yogurt 提供的
其中的bb文件可以看出代码位于
https://git.phytec.de/phyRDKDemo/
核心板固定柱子参数
品牌 | 型号 |
---|---|
ettinger | 06.75.056 |
https://www.ettinger.de/de/product/06.75.056
http://cn.element14.com/ettinger/06-75-056/pcb-support-snap-in-nylon-6-6/dp/2494555
https://www.ettinger.de/en/product/05.01.053
这个器件在国内被叫做
”PC板隔离柱 线路板PCB支架 电路板间隔柱 支撑柱 塑料间隔柱“
我们查到SO-5这个型号是可以用的。
也可以使用
”六角尼龙柱 单头尼龙螺柱螺丝 绝缘塑胶支柱 塑料隔离柱“
型号为M2.5*5+5的隔离柱,配合M2.5*6的螺丝,再加上M2.5的螺母
使用金属的隔离柱也是可以的,但要注意使用垫片以保护电路板。
关闭系统自带的framebuffer console
framebuffer console 类似在LCD/HDMI等屏幕上显示串口/ssh/telnet的登陆界面。
echo 0 > sys/class/vtconsole/vtcon1/bind
如果需要在yocto中修改,则推荐关闭内核的 Device Drivers->Graphics Support->Support for framebuffer devices->Framebuffer Console Support。
更多信息:https://www.kernel.org/doc/Documentation/fb/fbcon.txt
自动黑屏的问题
在关闭QT后,某些平台会自动关闭屏幕的背光,这个是由QT程序修改consoleblank而导致的。
echo -e "\033[9;0]" > /dev/tty1
1.修改LCD驱动,把关闭LCD控制器的函数变为空(不推荐) 2.修改vt.c中的blank_screen_t()函数,让其为空(在系统不需要使用关闭显示功能时推荐) 3.修改vt.c中的blankinterval,让其为0(系统可能需要使用关闭显示功能,而且希望系统上电后正常状态下不会关闭显示时 推 荐) 4.修改用户程序,加入设置blankinterval的代码(推荐)
Mira开发板用的电源插座的插头是什么型号?
Printed-circuit board connector - MC 1,5/ 2-ST-3,5 - 1840366
AK1550/2-3.5-GREEN