像艺术品般的全志S3开发板,修改一代所有不足,打造完美S3开发板
...但是有一个幸福的烦恼, wifi账号密码不能保存, 下次启动又得重新手动设置.
-------------------------------
以下是站长@晕哥 添加:
小智开发板QQ交流群: 202900925
淘宝淘宝链接: https://item.taobao.com/item.htm?id=607207528669
离线
wpa_cli -i wlan0 add_network
wpa_cli set_network 0 ssid 'myhome'
wpa_cli set_network 0 psk '13800138000'
wpa_cli set_network 0 scan_ssid 1
wpa_cli set_network 0 priority 1
上面的命令执行结果都是 OK, 到下面这个就是 FAIL
wpa_cli -i wlan0 save_config
离线
然后我新建了一个 /usr/bin/start_wifi.sh 文件:
/bin/echo 'add_network' | /sbin/wpa_cli ###添加网络
/bin/echo 'set_network 0 ssid "myhome"' | /sbin/wpa_cli ###设置ssid
/bin/echo 'set_network 0 psk "13800138000"' | /sbin/wpa_cli ###设置密码
/bin/echo 'enable_network 0' | /sbin/wpa_cli ###使能上面设置的网络
/sbin/udhcpc -i wlan0 ###获取IP
然后设置执行属性: chmod +x /usr/bin/start_wifi.sh
每次开机之后, 只要执行 start_wifi.sh 就可以了, 哈哈哈哈哈哈哈哈哈.....
然后想安装哪个软件, 就可以安装哪个软件了.
离线
顶,我也买了,收藏
离线
内存使用率怎么样?
离线
店主给的固件已经安装好了 vncserver, 但是我运行之后, vncviewer连上去之后, 什么窗口都没有:
离线
修改 ~/.vnc/xstartup 文件, 添加下面粗体字一行
#!/bin/sh
# Uncomment the following two lines for normal desktop:
# unset SESSION_MANAGER
# exec /etc/X11/xinit/xinitrc[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
startlxde &
x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
x-window-manager &
然后再运行 vncserver, 貌似没问题了:
跑个 firefox 试一试:
哎哟, 居然汉字全部是方框框.
离线
装上中文字体: apt-get install ttf-wqy-microhei ttf-wqy-zenhei
终于可以了.
参考: http://einverne.github.io/post/2015/10/install-fonts-under-linux.html
离线
顶顶顶
离线
牛啊,挖坑网都能跑,这点内存
离线
内存使用率怎么样?
跑了vnc桌面之后,free命令显示:
root@SmallWit:~# free
total used free shared buffers cached
Mem: 120472 103572 16900 6852 888 47072
-/+ buffers/cache: 55612 64860
Swap: 262140 4352 257788
跑了 firefox 之后:
root@SmallWit:~# free
total used free shared buffers cached
Mem: 120472 118412 2060 108 180 35808
-/+ buffers/cache: 82424 38048
Swap: 262140 77568 184572
前面忘记告诉大家密码了
终端登录账号 root, 密码 smallwit
vnc 登录密码 smallwit
ntp时钟同步软件安装与使用:
apt-get install ntp -y
ntpdate
date
装上了 NTP 之后, 系统会自动同步服务器时间, 这样firefox 不会出现证书错误了:
离线
牛啊,挖坑网都能跑,这点内存
root@SmallWit:~# free
total used free shared buffers cached
Mem: 120472 118412 2060 108 180 35808
-/+ buffers/cache: 82424 38048
Swap: 262140 77568 184572
基本靠 swap 撑着了, 交换数据量太大, 整个系统CPU动不动就 100%
离线
好玩, 墙贴流明, 晚点也去下单买一个,跟着大家玩。
离线
感谢楼主分享, 我也来试一试自动联网, 保存密码.
首先安装网络管理包: apt-get install network-manager -y
root@SmallWit:~# apt-get install network-manager -y
Reading package lists... Done
Building dependency tree
Reading state information... Done
network-manager is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
然后执行:
systemctl restart NetworkManager.service
接着执行nmtui配网, 设置ssid和密码:
按上面激活后, 重启就可以保存wifi账号密码了,
感谢 @assert 大神的指点!
离线
要是能跑个游戏模拟器就更好玩了 手动斜眼笑 一切皆有可能
离线
看是否考虑搞点大内存的板子来玩?现在DDR3颗粒很便宜
歪朵拉开源硬件: https://widora.cn
淘宝: https://widora.taobao.com/
离线
当时看国外的C.H.I.P 就有一个感触,虽然主控只是个R8,但内存直接干到512MB,能做不少事情,可玩性极高。
接下来的问题只有两个:
1、内存颗粒价格 (不是问题)
2、layout (不是问题)
歪朵拉开源硬件: https://widora.cn
淘宝: https://widora.taobao.com/
离线
当时看国外的C.H.I.P 就有一个感触,虽然主控只是个R8,但内存直接干到512MB,能做不少事情,可玩性极高。
接下来的问题只有两个:
1、内存颗粒价格 (不是问题)
2、layout (不是问题)
唯一的问题就是资料太缺乏和全志不开源,之前想做H6玩,带PCIE接口,可玩性更高,但是开源资料实在是太少了,凭我出个H6肯定推不起来,如果大家一起都出H6资料很快会完善起来。
离线
唯一的问题就是资料太缺乏和全志不开源,之前想做H6玩,带PCIE接口,可玩性更高,但是开源资料实在是太少了,凭我出个H6肯定推不起来,如果大家一起都出H6资料很快会完善起来。
H6官方给过我完整标案资料,47.3GB,大部分是SDK和安卓那一坨。
A40i的 65.6GB。更大
最近编辑记录 mango (2019-11-26 00:02:38)
歪朵拉开源硬件: https://widora.cn
淘宝: https://widora.taobao.com/
离线
膜拜各位大佬...
强贴mark
离线
把晕哥的配网方法get到了,下面装一个游戏模拟器试一试.
root@SmallWit:~# sudo apt install mame
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
libasyncns0 libcaca0 libdirectfb-1.2-9 libflac8 libjson-c2 libogg0
libportmidi0 libpulse0 libsdl-ttf2.0-0 libsdl1.2debian libsndfile1
libvorbis0a libvorbisenc2 mess-data
Suggested packages:
pulseaudio gnome-video-arcade mame-extra mame-tools
The following NEW packages will be installed:
libasyncns0 libcaca0 libdirectfb-1.2-9 libflac8 libjson-c2 libogg0
libportmidi0 libpulse0 libsdl-ttf2.0-0 libsdl1.2debian libsndfile1
libvorbis0a libvorbisenc2 mame mess-data
0 upgraded, 15 newly installed, 0 to remove and 0 not upgraded.
Need to get 21.9 MB/22.3 MB of archives.
After this operation, 113 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://ftp.cn.debian.org/debian/ jessie/main libjson-c2 armhf 0.11-4 [22.8 kB]
Get:2 http://ftp.cn.debian.org/debian/ jessie/main libasyncns0 armhf 0.8-5 [11.2 kB]
Get:3 http://ftp.cn.debian.org/debian/ jessie/main libdirectfb-1.2-9 armhf 1.2.10.0-5.1 [951 kB]
2% [3 libdirectfb-1.2-9 504 kB/951 kB 53%] 84.5 kB/s 4min 13s[ 260.468931] brcmfmac: brcmf_p2p_send_action_frame: Unknown Frame: category 0xa, action 0x8
Get:4 http://ftp.cn.debian.org/debian/ jessie/main libflac8 armhf 1.3.0-3 [81.4 kB]
Err http://ftp.cn.debian.org/debian/ jessie/main libvorbis0a armhf 1.3.4-2
404 Not Found
Err http://ftp.cn.debian.org/debian/ jessie/main libvorbisenc2 armhf 1.3.4-2
404 Not Found
Get:5 http://ftp.cn.debian.org/debian/ jessie/main libsndfile1 armhf 1.0.25-9.1+deb8u1 [209 kB]
Get:6 http://ftp.cn.debian.org/debian/ jessie/main libpulse0 armhf 5.0-13 [221 kB]
Get:7 http://ftp.cn.debian.org/debian/ jessie/main libsdl1.2debian armhf 1.2.15-10+b1 [165 kB]
Get:8 http://ftp.cn.debian.org/debian/ jessie/main libsdl-ttf2.0-0 armhf 2.0.11-3 [16.9 kB]
Get:9 http://ftp.cn.debian.org/debian/ jessie/main libportmidi0 armhf 1:184-2.2 [
居然这么多404错误:
2% [3 libdirectfb-1.2-9 504 kB/951 kB 53%] 84.5 kB/s 4min 13s[ 260.468931] brcmfmac: brcmf_p2p_send_action_frame: Unknown Frame: category 0xa, action 0x8
Get:4 http://ftp.cn.debian.org/debian/ jessie/main libflac8 armhf 1.3.0-3 [81.4 kB]
Err http://ftp.cn.debian.org/debian/ jessie/main libvorbis0a armhf 1.3.4-2
404 Not Found
Err http://ftp.cn.debian.org/debian/ jessie/main libvorbisenc2 armhf 1.3.4-2
404 Not Found
Get:5 http://ftp.cn.debian.org/debian/ jessie/main libsndfile1 armhf 1.0.25-9.1+deb8u1 [209 kB]
Get:6 http://ftp.cn.debian.org/debian/ jessie/main libpulse0 armhf 5.0-13 [221 kB]
Get:7 http://ftp.cn.debian.org/debian/ jessie/main libsdl1.2debian armhf 1.2.15-10+b1 [165 kB]
Get:8 http://ftp.cn.debian.org/debian/ jessie/main libsdl-ttf2.0-0 armhf 2.0.11-3 [16.9 kB]
Get:9 http://ftp.cn.debian.org/debian/ jessie/main libportmidi0 armhf 1:184-2.2 [18.5 kB]
Get:10 http://ftp.cn.debian.org/debian/ jessie/non-free mess-data all 0.154-3.1 [6447 kB]
Get:11 http://ftp.cn.debian.org/debian/ jessie/non-free mame armhf 0.154-3.1 [13.6 MB]
47% [11 mame 2195 kB/13.6 MB 16%] 87.9 kB/s 2min 11s[ 310.235993] EXT4-fs (mmcblk0p2): error count since last fsck: 1
[ 310.241954] EXT4-fs (mmcblk0p2): initial error at time 1574131551: ext4_find_entry:1451: inode 46140
[ 310.251082] EXT4-fs (mmcblk0p2): last error at time 1574131551: ext4_find_entry:1451: inode 46140
47% [11 mame 2195 kB/13.6 MB 16%][ 320.532399] brcmfmac: brcmf_p2p_send_action_frame: Unknown Frame: category 0xa, action 0x8
97% [11 mame 13.2 MB/13.6 MB 97%][ 380.514009] brcmfmac: brcmf_p2p_send_action_frame: Unknown Frame: category 0xa, action 0x8
Fetched 21.8 MB in 2min 9s (169 kB/s)
E: Failed to fetch http://ftp.cn.debian.org/debian/pool/main/libv/libvorbis/libvorbis0a_1.3.4-2_armhf.deb 404 Not Found
E: Failed to fetch http://ftp.cn.debian.org/debian/pool/main/libv/libvorbis/libvorbisenc2_1.3.4-2_armhf.deb 404 Not Found
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
root@SmallWit:~# [ 440.542492] brcmfmac: brcmf_p2p_send_action_frame: Unknown Frame: category 0xa, action 0x8
[ 500.518067] brcmfmac: brcmf_p2p_send_action_frame: Unknown Frame: category 0xa, action 0x8
[ 560.505640] brcmfmac: brcmf_p2p_send_action_frame: Unknown Frame: category 0xa, action 0x8
[ 620.516166] brcmfmac: brcmf_p2p_send_action_frame: Unknown Frame: category 0xa, action 0x8
[ 680.566069] brcmfmac: brcmf_p2p_send_action_frame: Unknown Frame: category 0xa, action 0x8
[ 740.565626] brcmfmac: brcmf_p2p_send_action_frame: Unknown Frame: category 0xa, action 0x8
[ 800.538913] brcmfmac: brcmf_p2p_send_action_frame: Unknown Frame: category 0xa, action 0x8
root@SmallWit:~# sudo apt-get update
Ign http://ftp.cn.debian.org jessie InRelease
Get:1 http://ftp.cn.debian.org jessie Release.gpg [1652 B]
Get:2 http://ftp.cn.debian.org jessie Release [77.3 kB]
Get:3 http://ftp.cn.debian.org jessie/main Sources [7063 kB]
吓得我赶紧 apt-get update
离线
debian8,梦回2015
离线
debian8,梦回2015
嗯, 是有点老了, 反正是学习嘛,无所谓.
看到一个好帖了, https://whycan.cn/t_3231.html#p27942
https://www.maketecheasier.com/enable-autologin-lightdm/
修改这个文件: /etc/lightdm/lightdm.conf
autologin-guest=false autologin-user=root autologin-user-timeout=0
就可以自动启动到桌面了
离线
太棒了, 原来可以不用另外安装 vncserver, 自带了 Xvnc, 所以 6楼/7楼的操作(手动运行vncserver命令)是多余的
https://whycan.cn/t_3287.html#p28402
只要修改 /etc/lightdm/lightdm.conf 最末即可:
[VNCServer]
enabled=true
command=Xvnc -rfbauth /etc/vncpasswd
port=5900
width=1024
height=768
depth=24
记得先用命令手动设置一下密码, 保存到 /etc/vncpasswd:
vncpasswd /etc/vncpasswd
这样, 开机就可以自动运行 vnc 服务了, 不用再手动开启.
参考: https://wiki.archlinux.org/index.php/LightDM vnc 部分
离线
root@SmallWit:~# sudo apt-get install xrdp
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
xrdp
0 upgraded, 1 newly installed, 0 to remove and 116 not upgraded.
Need to get 200 kB of archives.
After this operation, 1475 kB of additional disk space will be used.
Get:1 http://ftp.cn.debian.org/debian/ jessie/main xrdp armhf 0.6.1-2 [200 kB]
Fetched 200 kB in 1s (166 kB/s)
Selecting previously unselected package xrdp.
dpkg: warning: files list file for package 'libgomp1:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libatomic1:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libpython-dev:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libubsan0:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'linux-libc-dev:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libpython-stdlib:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libasan1:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libpython2.7:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libgcc-4.9-dev:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libsqlite3-0:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libexpat1-dev:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libpython2.7-dev:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libpython2.7-minimal:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libc6-dev:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libapt-pkg4.12:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libusb-0.1-4:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libpython2.7-stdlib:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libpcap0.8:armhf' missing; assuming package has no files currently installed
(Reading database ... 43257 files and directories currently installed.)
Preparing to unpack .../xrdp_0.6.1-2_armhf.deb ...
Unpacking xrdp (0.6.1-2) ...
Processing triggers for systemd (215-17+deb8u6) ...
Processing triggers for man-db (2.7.0.2-5) ...
Setting up xrdp (0.6.1-2) ...
insserv: warning: script 'wifi.sh' missing LSB tags and overrides
[ 3555.749462] brcmfmac: brcmf_p2p_send_action_frame: Unknown Frame: category 0xa, action 0x8
Processing triggers for systemd (215-17+deb8u6) ...
root@SmallWit:~#
root@SmallWit:~#
root@SmallWit:~#
root@SmallWit:~# service xrdp restart
root@SmallWit:~#
运行安装并启动xrdp服务:
sudo apt-get install xrdp -y
service xrdp restart
完全OK!
离线
用尽各种办法, 控制台还是没有办法自动登录, 总是要输入账号密码
离线
wpa_cli -i wlan0 add_network
wpa_cli set_network 0 ssid 'myhome'
wpa_cli set_network 0 psk '13800138000'
wpa_cli set_network 0 scan_ssid 1
wpa_cli set_network 0 priority 1上面的命令执行结果都是 OK, 到下面这个就是 FAIL
wpa_cli -i wlan0 save_config
请问下,我用 wpa_cli 写了好几个 ssid到 /etc/wpa_supplicant.conf
我现在如何连接指定的 ssid 呢?
离线