您尚未登录。

#1 Re: 全志 SOC » 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot) » 2019-01-26 17:43:33

@晕哥
晕哥这次我终于调试好v3s的esp8089的驱动了呢
(1)下载源码 https://github.com/al177/esp8089
修改Makefile,修改如下的内容:
KVERS_UNAME = 4.13.16-licheepi-zero+
KVERS_ARCH = arm
KBUILD ?=/home/gec/v3s/linux4.13-y/linux
modules:
    $(MAKE) ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- -C $(KBUILD) M=$(SRC_DIR)
然后直接在文件夹内make 即可生成esp8089.ko文件
(2)参考RTL8723bs的配置方法
a.wpa_supplicant-2.6交叉编译
使用wpa_supplicant与wpa_cli相关的工具测试wifi

(1)1. libnl交叉编译
下载:https://www.infradead.org/~tgr/libnl/files/libnl-1.1.4.tar.gz

解压:tar zxvf libnl-1.1.4.tar.gz
          cd libnl-1.1.4/
配置
./configure --prefix=/mnt/nfsroot/frank.yu/android-O/factorytest/wifi/out
删除:(这一步一定不能忘记)
rm lib/libnl.a
可能导致编译报错(编译出错Relocations in generic ELF (EM: 62))
编译:make CC=arm-linux-gnueabihf-gcc AR=aarch64-linux-gnu-ar LD=arm-linux-gnueabihf-ld
          make install
(2)openssl-1.0.0交叉编译
下载:https://www.openssl.org/source/old/1.0.1/openssl-1.0.1s.tar.gz

解压:tar -xzvf  openssl-1.0.0.tart.gz
配置:

./config no-asm shared --prefix=/mnt/nfsroot/frank.yu/android-O/factorytest/wifi/out

修改makfile:

(1)修改交叉编译器
CC= gcc
AR= ar $(ARFLAGS) r
RANLIB= /usr/bin/ranlib
NM= nm

修改为:
CC=arm-linux-gnueabihf-gcc
AR= arm-linux-gnueabihf-ar $(ARFLAGS) r
RANLIB= arm-linux-gnueabihf-gcc-ranlib
NM= arm-linux-gnueabihf-gcc-nm
(2)去掉里面的-m64



make make install
备注:
no-asm是在交叉编译过程中不使用汇编代码代码加速编译过程.原因是它的汇编代码是对arm格式不支持的。我试过了,如果没有这个参数,你的交叉编译一定出错。shared生成动态连接库。prefix=路径  就是你的安装目录。

3. wpa_supplicant交叉编译

下载:http://hostap.epitest.fi/releases/wpa_supplicant-2.6.tar.gz

解压:tar -zxvf wpa_supplicant-2.6.tar.gz
           cd  wpa_supplicant-2.6/wpa_supplicant

拷贝配置:
          cp defconfig .config

修改.config
(-O后面不能有空格)
CC=arm-linux-gnueabihf-gcc -L/mnt/nfsroot/frank.yu/android-O/factorytest/wifi/out/lib
CFLAGS += -I/mnt/nfsroot/frank.yu/android-O/factorytest/wifi/out/include
LIBS += -L/mnt/nfsroot/frank.yu/android-O/factorytest/wifi/out/lib

makefile修改:(这里是为了生成静态链接的bin文件)
wpa_supplicant: $(BCHECK) $(OBJS) $(EXTRA_progs)
    $(Q)$(LDO) $(LDFLAGS) -o wpa_supplicant $(OBJS) $(LIBS) $(EXTRALIBS)
    @$(E) "  LD " $@

修改为
wpa_supplicant: $(BCHECK) $(OBJS) $(EXTRA_progs)
    $(Q)$(LDO) --static $(LDFLAGS) -o wpa_supplicant $(OBJS) $(LIBS) $(EXTRALIBS) -lm -lpthread
    @$(E) "  LD " $@

wpa_cli: $(OBJS_c)
    $(Q)$(LDO) $(LDFLAGS) -o wpa_cli $(OBJS_c) $(LIBS_c)
    @$(E) "  LD " $@

修改为
wpa_cli: $(OBJS_c)
    $(Q)$(LDO) --static $(LDFLAGS) -o wpa_cli $(OBJS_c) $(LIBS_c)
    @$(E) "  LD " $@

编译:
make
即可生成静态链接的wpa_supplicant/wpa_cli工具,不需要依赖其他的库文件。

工具wpa_cli ,wpa_passphrase,wpa_supplicant拷贝进开发板的/bin 目录





三,在开发板中设置
(1)insmod esp8089.ko

然后输入ifconfig wlan0 up命令启动wlan0

(3)建立 /etc/wpa_supplicant.conf 文件:
#可有可无,没有的话无法用wpa_cli terminate来关闭wpa_supplicant
ctrl_interface=/var/run/wpa_supplicant
# 确保只有root用户能读取WPA的配置,可有可无,尤其是在嵌入式设备上
ctrl_interface_group=0
# 使用wpa_supplicant来扫描和选择AP,也可以设置成0或2,但只有1才能正确工作
ap_scan=1
#设置需要链接上的网络信息
network={
    ssid="unicompy1F"
    scan_ssid=1
    key_mgmt=WPA-EAP WPA-PSK IEEE8021X NONE
    pairwise=TKIP CCMP
    group=CCMP TKIP WEP104 WEP40
    psk="unicomp#38468350"
    priority=5
}
(4)输入命令wpa_supplicant -B -d -i wlan0 -c /etc/wpa_supplicant.conf
使用这个命令来链接上wifi
测试wlan0:            udhcpc -i wlan0

补充:运维常用linux命令整理
1.临时添加
1 route add default gw 192.168.1.4
2.永久添加
12 vim /etc/sysconfig/networkGATEWAY=192.168.1.4

(5)配置网络ping通外网部分了

一.手动测试是否成功加载网卡驱动,可执行如下命令:ifconfig eth0 192.168.1.218 up
二。以下是在配置好内核以及成功加载网卡的前提下实现能够自动配置网络,能够ping通的步骤
(1)修改 /etc/network/interfaces
即vi /etc/network/interfaces后添加如下语句:
auto lo
iface lo inet loopback

auto wlan0
iface wlan0 inet static
address 192.168.1.218    # 3 你要变化的IP地址
gateway 192.168.1.251   (该网关最好需要设置成跟电脑的网关一致,我这里是 192.168.1.251,跟路由器设置相关)
netmask 255.255.255.0

(2)vi  /etc/resolv.conf
添加以下语句
nameserver 127.0.0.1
nameserver 202.96.134.33
nameserver 114.114.114.114

(3)为了能够实现自动开机设置
nameserver 127.0.0.1
nameserver 202.96.134.33
nameserver 114.114.114.114
可以  vi   /etc/init.d/rcS
然后添加以下三句即可:
echo "nameserver 127.0.0.1" > /etc/resolv.conf
echo "nameserver 202.96.134.33" >> /etc/resolv.conf
echo "nameserver 114.114.114" >> /etc/resolv.conf

之后就可以直接ping通了!!!

#3 Re: 全志 SOC » 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot) » 2019-01-24 16:07:32

@晕哥
晕哥,请问下我该怎么解决一下这个问题呢,我最近使用dd if=u-boot-sunxi-with-spl.bin of=/dev/sdb bs=1024 seek=8
然后虚拟机就一直卡住不动了,换了几张sd卡也是存在类似的问题,重装过虚拟机和VMware也还是没能够解决这个问题,请问晕哥我该怎么解决呢?

#4 Re: 全志 SOC » 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot) » 2019-01-21 13:07:48

@晕哥
晕哥,请问下在v3s下的esp8089需要 ESP8089 reset via GPIO 几的呢,我这边reset GPIO 0时出现如下的情况:
eagle sdio can not power up!

#5 Re: 全志 SOC » 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot) » 2019-01-17 09:30:15

@晕哥
晕哥,我在 https://github.com/al177/esp8089 下载了一份esp8089的驱动源码,想进行编译时,
root@ubuntu:~/v3s/linux4.13-y/linux# make -j4 ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- modules M=../esp8089 CONFIG_ESP8089=m
make[1]: *** No rule to make target '../esp8089/esp_debug.o', needed by '../esp8089/esp8089.o'.  Stop.
Makefile:1512: recipe for target '_module_../esp8089' failed
make: *** [_module_../esp8089] Error 2

想请问下晕哥,是不是我的命令有问题了,还是有其他可以参考的关于esp8089驱动编译和使用的帖子呢?

#6 Re: 全志 SOC » Lichee PI V3S W25Q128 启动入坑 » 2019-01-14 09:07:12

@晕哥
晕哥,我的flash型号是:MX25L25645

#7 Re: 全志 SOC » Lichee PI V3S W25Q128 启动入坑 » 2019-01-11 18:46:58

@晕哥
晕哥,请问下以下这个结构体是在哪个文件的呢?因为我现在使用的flash型号不在上面显示,需要修改下这个文件:
static const struct spi_device_id m25p_ids[] = {
        /*
        * Allow non-DT platform devices to bind to the "spi-nor" modalias, and
        * hack around the fact that the SPI core does not provide uevent
        * matching for .of_match_table
        */
        {"spi-nor"},

        /*
        * Entries not used in DTs that should be safe to drop after replacing
        * them with "spi-nor" in platform data.
        */
        {"s25sl064a"},  {"w25x16"},     {"m25p10"},     {"m25px64"},

        /*
        * Entries that were used in DTs without "jedec,spi-nor" fallback and
        * should be kept for backward compatibility.
        */
        {"at25df321a"}, {"at25df641"},  {"at26df081a"},
        {"mx25l4005a"}, {"mx25l1606e"}, {"mx25l6405d"}, {"mx25l12805d"},
        {"mx25l25635e"},{"mx66l51235l"},
        {"n25q064"},    {"n25q128a11"}, {"n25q128a13"}, {"n25q512a"},
        {"s25fl256s1"}, {"s25fl512s"},  {"s25sl12801"}, {"s25fl008k"},
        {"s25fl064k"},
        {"sst25vf040b"},{"sst25vf016b"},{"sst25vf032b"},{"sst25wf040"},
        {"m25p40"},     {"m25p80"},     {"m25p16"},     {"m25p32"},
        {"m25p64"},     {"m25p128"},
        {"w25x80"},     {"w25x32"},     {"w25q32"},     {"w25q32dw"},
        {"w25q80bl"},   {"w25q128"},    {"w25q256"},

        /* Flashes that can't be detected using JEDEC */
        {"m25p05-nonjedec"},    {"m25p10-nonjedec"},    {"m25p20-nonjedec"},
        {"m25p40-nonjedec"},    {"m25p80-nonjedec"},    {"m25p16-nonjedec"},
        {"m25p32-nonjedec"},    {"m25p64-nonjedec"},    {"m25p128-nonjedec"},

        /* Everspin MRAMs (non-JEDEC) */
        { "mr25h256" }, /* 256 Kib, 40 MHz */
        { "mr25h10" },  /*   1 Mib, 40 MHz */
        { "mr25h40" },  /*   4 Mib, 40 MHz */

        { },
};

#8 Re: 全志 SOC » V3S 移植了qt5.4 程序触摸没有反应 » 2019-01-10 16:43:47

@晕哥
晕哥,我使用qt5.4.1的程序发现点击触摸屏没有反应
(1)执行命令/opt/tslib/bin/ts_calibrate的结果如下
xres = 480, yres = 272
Took 4 samples...
Top left : X = 2996 Y = 1998
Took 4 samples...
Top right : X = 2695 Y = 2492
Took 3 samples...
Bot right : X = 2126 Y =  696
Took 4 samples...
Bot left : X = 2409 Y = 2423
Took 2 samples...
Center : X = 3125 Y = 1692
677.600098 -0.102749 -0.087760
527.730103 -0.127696 -0.027290
Calibration constants: 44407200 -6733 -5751 34585320 -8368 -1788 65536
(2)执行cat /dev/input/event1命令
我点击触摸屏会有一些乱码出现呢
(3)cat /etc/profile的结果如下
export PATH=/bin:/sbin:/usr/bin:/usr/sbin

if [ "$PS1" ]; then
        if [ "`id -u`" -eq 0 ]; then
                export PS1='# '
        else
                export PS1='$ '
        fi
fi

export PAGER='/bin/more '
export EDITOR='/bin/vi'

# Source configuration files from /etc/profile.d
for i in /etc/profile.d/*.sh ; do
        if [ -r "$i" ]; then
                . $i
        fi
        unset i
done
source /etc/init.d/rcS

#tslib configure
export TSLIB_ROOT=/opt/tslib
export TSLIB_TSDEVICE=/dev/input/event1
export TSLIB_CALIBFILE=/etc/pointercal
export TSLIB_CONFFILE=$TSLIB_ROOT/etc/ts.conf
export TSLIB_PLUGINDIR=$TSLIB_ROOT/lib/ts
export TSLIB_FBDEVICE=/dev/fb0
export TSLIB_CONSOLEDEVICE=none
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$TSLIB_ROOT/lib

#qt-4.8.7
export TSLIB_CONSOLEDEVICE=none
export TSLIB_FBDEVICE=/dev/fb0
export TSLIB_TSDEVICE=/dev/input/event1
export TSLIB_CONFFILE=/opt/tslib/etc/ts.conf
export TSLIB_PLUGINDIR=/opt/tslib/lib/ts
export TSLIB_CALIBFILE=/etc/pointercal
export LD_LIBRARY_PATH=/lib:/usr/lib:/opt/tslib/lib:/home/gec/v3s/qt5.4.1-arm/lib
export PATH=/bin:/sbin:/usr/bin/:/usr/sbin:/opt/tslib/bin
export QT_QPA_PLATFORM_PLUGIN_PATH=/home/gec/v3s/qt5.4.1-arm/plugins
export QT_QPA_PLATFORM=linuxfb:tty=/dev/fb0
export QT_QPA_FONTDIR=/home/gec/v3s/qt5.4.1-arm/lib/fonts
export QT_QPA_GENERIC_PLUGINS=tslib:$TSLIB_TSDEVICE
export QWS_MOUSE_PROTO=Tslib:/dev/input/event1
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opti/tslib/lib:/home/gec/v3s/qt5.4.1-arm/lib:/usr/lib
(3)可是我运行qt程序时就没有反应了输出结果:
# ./music_download
QTsLibMouseHandler "tslib" "/dev/input/event1"

请晕哥帮忙分析下。

#9 Re: 全志 SOC » 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot) » 2019-01-09 15:08:59

@晕哥
晕哥,我应该在哪个文件修改下我的底层的播放函数呢?

#10 Re: 全志 SOC » 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot) » 2019-01-09 15:06:39

@晕哥
晕哥,我使用pc机windows下的qt能够播放音乐的,在ubantu上还没试过是否能够播放

#11 Re: 全志 SOC » 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot) » 2019-01-09 14:42:33

@晕哥
晕哥,我还发现了一个问题,不知是不是这个问题导致了无法使用 libqtmedia_audioengine 的呢?
我在调用aplay 11.wav是出现了not enough memory的错误,而我我也使用tinyplay来播放.wav文件:
# aplay 11.wav
Playing WAVE '11.wav' : Signed 16 bit Little Endian, Rate 22050 Hz, Mono
aplay: set_params:1437: not enough memory
请问这个问题我可以怎么解决呢?

#12 Re: 全志 SOC » 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot) » 2019-01-09 14:35:08

@晕哥
晕哥,我刚才在下载下来的库中的文件中使用命令find . -name *alsa* ,发现如下结果:
root@ubuntu:/mnt/hgfs/shareubantu/licheepi/qt_test/qtmultimedia-opensource-src-5.4.1# find . -name *alsa*
./config.tests/alsa
./config.tests/alsa/alsa.pro
./config.tests/alsa/alsatest.cpp
./src/plugins/alsa
./src/plugins/alsa/alsa.json
./src/plugins/alsa/alsa.pro
./src/plugins/alsa/qalsaaudiodeviceinfo.cpp
./src/plugins/alsa/qalsaaudiodeviceinfo.h
./src/plugins/alsa/qalsaaudioinput.cpp
./src/plugins/alsa/qalsaaudioinput.h
./src/plugins/alsa/qalsaaudiooutput.cpp
./src/plugins/alsa/qalsaaudiooutput.h
./src/plugins/alsa/qalsaplugin.cpp
./src/plugins/alsa/qalsaplugin.h
是不是说libqtmedia_audioengine底层是调用alsa的呢?

#13 Re: 全志 SOC » 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot) » 2019-01-09 14:27:50

@晕哥
晕哥,想问下如何查看libqtmedia_audioengine底层是用哪个库的呢?是不是有一些命令可以查到呢?这个我不太会请晕哥指点下。

#14 Re: 全志 SOC » 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot) » 2019-01-09 14:18:01

@晕哥
晕哥,我在对v3s运行qt时出现了以下信息导致我无法播放网络的音乐:
defaultServiceProvider::requestService(): no service found for - "org.qt-project.qt.mediaplayer"
针对这个信息我从网上重新编译了一个libqtmedia_audioengine.so放到板子和电脑上重新对工程编译,板子还是不能播放网络音乐,请问下这个我该怎么解决呢?

#15 Re: 全志 SOC » 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot) » 2019-01-09 11:08:37

@晕哥
晕哥你的意思是不是apt-get remove gcc然后重新安装一遍呢?

#16 Re: 全志 SOC » 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot) » 2019-01-09 10:26:07

@晕哥
晕哥,我这几天想重新编译配置内核时出现了错误,百度上也没有明确的解答,想请问下晕哥应该怎么解决这个问题呢?
以下是我在make ARCH=arm menuconfig后出现的错误:
root@ubuntu:~/v3s/linux4.13-y/linux# make ARCH=arm licheepi_zero_defconfig
  HOSTCC  scripts/kconfig/zconf.tab.o
In file included from scripts/kconfig/zconf.tab.c:2466:0:
scripts/kconfig/zconf.lex.c_shipped: In function ‘yy_get_next_buffer’:
scripts/kconfig/zconf.lex.c_shipped:971:16: error: ‘EINTR’ undeclared (first use in this function)
   if( errno != EINTR) \
                ^
scripts/kconfig/zconf.lex.c_shipped:1615:3: note: in expansion of macro ‘YY_INPUT’
   YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]),
   ^~~~~~~~
scripts/kconfig/zconf.lex.c_shipped:971:16: note: each undeclared identifier is reported only once for each function it appears in
   if( errno != EINTR) \
                ^
scripts/kconfig/zconf.lex.c_shipped:1615:3: note: in expansion of macro ‘YY_INPUT’
   YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]),
   ^~~~~~~~
In file included from scripts/kconfig/zconf.tab.c:2468:0:
scripts/kconfig/confdata.c: In function ‘conf_split_config’:
scripts/kconfig/confdata.c:921:17: error: ‘ENOENT’ undeclared (first use in this function); did you mean ‘E_NOT’?
    if (errno != ENOENT) {
                 ^~~~~~
                 E_NOT
scripts/kconfig/confdata.c: In function ‘conf_set_all_new_symbols’:
scripts/kconfig/confdata.c:1144:13: error: ‘ERANGE’ undeclared (first use in this function); did you mean ‘E_RANGE’?
     errno = ERANGE;
             ^~~~~~
             E_RANGE
scripts/Makefile.host:118: recipe for target 'scripts/kconfig/zconf.tab.o' failed
make[1]: *** [scripts/kconfig/zconf.tab.o] Error 1
Makefile:547: recipe for target 'licheepi_zero_defconfig' failed
make: *** [licheepi_zero_defconfig] Error 2

#17 Re: 全志 SOC » 【视频分享】制作荔枝派Zero开发板(全志V3s) TF/SD卡启动盘 » 2019-01-08 16:51:44

@晕哥
晕哥,我的U盘ext4分区是7G,根文件系统rootfs.rar大小是144M

#18 Re: 全志 SOC » 【视频分享】制作荔枝派Zero开发板(全志V3s) TF/SD卡启动盘 » 2019-01-08 16:32:04

@晕哥
晕哥,我昨天发现了我可能是我的跟文件太大的原因,在拷贝时出现错误了,我对sd卡覆盖拷贝多一次时,又可以正常运行了。请问下这个是什么原因导致的呢?有时我也发现了md5码会出现跟原来的不一致。

#19 Re: 全志 SOC » 【视频分享】制作荔枝派Zero开发板(全志V3s) TF/SD卡启动盘 » 2019-01-08 10:22:46

@晕哥
晕哥,不知是不是我使用完命令gparted重新分配好分区之后,我使用df命令,出现如下显示:
/dev/sdb2         867520       888    805348   1% /media/gec/40c75af8-c51e-46dc-a621-bf1f59fa18e7
/dev/sdb1          65390         6     65384      1% /media/gec/88EE-55E4

以前我烧写前重新分区后,/de/sdb1的情况是0%的,但是这几次都一直是1%,换了两张卡都是这种显示,不知是不是这个影响了我烧写内核时出现错误,跑不起来的原因呢?

#20 Re: 全志 SOC » 【视频分享】制作荔枝派Zero开发板(全志V3s) TF/SD卡启动盘 » 2019-01-07 21:07:25

@晕哥
晕哥,我查看了下init 和sh 都有执行权限以及他们的md5码都与拷贝的相同,但是刚才重新拷贝一次之后出现了如下错误:
Setting up a 480x272 lcd console (overscan 0x0)
dotclock: 10000kHz = 10000kHz: (1 * 3MHz * 20) / 6
In:    serial@01c28000
Out:   serial@01c28000
Err:   serial@01c28000
Net:   No ethernet found.
starting USB...
No controllers found
Hit any key to stop autoboot:  0
reading zImage
3962304 bytes read in 205 ms (18.4 MiB/s)
reading sun8i-v3s-licheepi-zero-dock.dtb
411349 bytes read in 44 ms (8.9 MiB/s)
## Flattened Device Tree blob at 41800000
   Booting using the fdt blob at 0x41800000
   Loading Device Tree to 42dfa000, end 42dffe4f ... OK
fdt_find_or_add_subnode: memory: FDT_ERR_BADSTRUCTURE
ERROR: arch-specific fdt fixup failed
- must RESET the board to recover.

FDT creation failed! hanging...### ERROR ### Please RESET the board ###

这个又是什么错误来的?

#21 Re: 全志 SOC » 【视频分享】制作荔枝派Zero开发板(全志V3s) TF/SD卡启动盘 » 2019-01-07 20:55:25

@晕哥
晕哥,我查看了下对应的那两个文件是有执行权限的,但是我想问下怎么可以查看到md5码呢?

#22 Re: 全志 SOC » 【视频分享】制作荔枝派Zero开发板(全志V3s) TF/SD卡启动盘 » 2019-01-07 20:19:08

@晕哥
晕哥,我换了两张8G的tft卡,重新烧了一遍还是出现刚才那个问题,之前使用的是1G的tft卡,想问下v3s开发板对tft卡的容量也有要求的呢?还是由其他问题引起的呢?

#23 Re: 全志 SOC » 【视频分享】制作荔枝派Zero开发板(全志V3s) TF/SD卡启动盘 » 2019-01-07 16:54:59

@晕哥
晕哥,我之前配置好的内核和根文件系统,之前烧进tft卡能够跑起来,但是现在我重新烧了之后,一直出现如下问题,解决不了,请晕哥帮忙分析下原因:
egulator

[    1.284498] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[    1.290342] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 3
[    1.299464] hub 3-0:1.0: USB hub found
[    1.303332] hub 3-0:1.0: 1 port detected
[    1.309655] using random self ethernet address
[    1.314111] using random host ethernet address
[    1.319705] usb0: HOST MAC 6a:d5:57:40:e4:d4
[    1.324025] usb0: MAC 0e:cd:1a:52:8f:7c
[    1.328015] g_cdc gadget: CDC Composite Gadget, version: King Kamehameha Day 2008
[    1.335495] g_cdc gadget: g_cdc ready
[    1.341732] sun4i-codec 1c22c00.codec: Codec <-> 1c22c00.codec mapping ok
[    1.350212] sun6i-rtc 1c20400.rtc: setting system clock to 1970-01-01 00:00:15 UTC (15)
[    1.358525] vcc5v0: disabling
[    1.361499] ALSA device list:
[    1.364463]   #0: V3s Audio Codec
[    1.369788] EXT4-fs (mmcblk0p2): couldn't mount as ext3 due to feature incompatibilities
[    1.379157] EXT4-fs (mmcblk0p2): couldn't mount as ext2 due to feature incompatibilities
[    1.406827] EXT4-fs (mmcblk0p2): recovery complete
[    1.411647] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    1.419913] VFS: Mounted root (ext4 filesystem) on device 179:2.
[    1.439708] devtmpfs: mounted
[    1.443910] Freeing unused kernel memory: 1024K
[    1.468423] Starting init: /sbin/init exists but couldn't execute it (error -5)
[    1.477461] Starting init: /bin/sh exists but couldn't execute it (error -5)
[    1.484519] Kernel panic - not syncing: No working init found.  Try passing init= option to kernel. See Linux Documentation/admin-guide/init.rst for guidance.
[    1.498672] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.13.16-licheepi-zero+ #14
[    1.506055] Hardware name: Allwinner sun8i Family
[    1.510793] [<c010e4c4>] (unwind_backtrace) from [<c010b21c>] (show_stack+0x10/0x14)
[    1.518537] [<c010b21c>] (show_stack) from [<c066afdc>] (dump_stack+0x84/0x98)
[    1.525764] [<c066afdc>] (dump_stack) from [<c011b568>] (panic+0xdc/0x248)
[    1.532643] [<c011b568>] (panic) from [<c067d9f0>] (kernel_init+0x100/0x110)
[    1.539688] [<c067d9f0>] (kernel_init) from [<c0107578>] (ret_from_fork+0x14/0x3c)
[    1.547262] Rebooting in 5 seconds..

#24 Re: 全志 SOC » 各位大神,全志Allwinner V3s用mplayer播放mp3没声音,要怎么做才能有声音? » 2019-01-04 14:44:45

@晕哥
晕哥,请问下如果使用buildroot的话,因为我是个新手,对这个使用不是特别的熟悉,有没有一些参考的网址来学习下如何使用的呢?

#25 Re: 全志 SOC » 各位大神,全志Allwinner V3s用mplayer播放mp3没声音,要怎么做才能有声音? » 2019-01-04 11:48:36

@晕哥
晕哥请问下,在v3s上移植mplayer1.3.0时,我在编译时遇到了如下的错误,不知道该怎么解决?
我是参考这个网址来进行配置的:http://www.cnblogs.com/guanglun/p/9141791.html

ffmpeg/libavcodec/libavcodec.a(pngdec.o): In function `decode_text_chunk.isra.4':
pngdec.c:(.text+0x20c): undefined reference to `inflateInit_'
pngdec.c:(.text+0x26c): undefined reference to `inflate'
pngdec.c:(.text+0x2a4): undefined reference to `inflateEnd'
pngdec.c:(.text+0x4d8): undefined reference to `inflateEnd'
ffmpeg/libavcodec/libavcodec.a(pngdec.o): In function `decode_frame_common.isra.6':
pngdec.c:(.text+0x1048): undefined reference to `inflate'
ffmpeg/libavcodec/libavcodec.a(pngdec.o): In function `decode_frame_apng':
pngdec.c:(.text+0x354c): undefined reference to `inflateInit_'
pngdec.c:(.text+0x35c4): undefined reference to `inflateEnd'
ffmpeg/libavcodec/libavcodec.a(rscc.o): In function `rscc_decode_frame':
rscc.c:(.text+0x2f8): undefined reference to `uncompress'
rscc.c:(.text+0x514): undefined reference to `uncompress'
ffmpeg/libavcodec/libavcodec.a(screenpresso.o): In function `screenpresso_decode_frame':
screenpresso.c:(.text+0x90): undefined reference to `uncompress'
ffmpeg/libavcodec/libavcodec.a(tdsc.o): In function `tdsc_decode_frame':
tdsc.c:(.text+0x74): undefined reference to `uncompress'
collect2: error: ld returned 1 exit status
Makefile:747: recipe for target 'mplayer' failed
make: *** [mplayer] Error 1


下面是我的配置选项:
./configure --enable-cross-compile --host-cc=gcc --cc=arm-linux-gnueabihf-gcc --as=arm-linux-gnueabihf-as --ar=arm-linux-gnueabihf-ar --ranlib=arm-linux-gnueabihf-ranlib --target=arm-linux --disable-dvdread --disable-win32dll --enable-fbdev --disable-mencoder --disable-live --disable-mp3lame --disable-armv5te  --enable-alsa --extra-cflags="-I /usr/local/alsa/build/include" --extra-ldflags="-L /usr/local/alsa/build/lib "

之后make就出现上面的错误了。

#26 Re: 全志 SOC » 请问全志V3s使用荔枝派最新的 linux 4.13-y 分支,如何支持声卡? » 2018-12-28 10:33:49

@晕哥
晕哥,请问下是不是如果开发板没有接显示屏的话,执行cat /dev/urandom > /dev/fb0会出现如下的错误的呢?

            cat: write error: No space left on device

因为我订购的屏幕暂时还没到货,我是没有接显示屏来执行该语句的,所以想请问下晕哥这是配置出错了还是没有接显示屏引起的呢?

#27 Re: 全志 SOC » 请问全志V3s使用荔枝派最新的 linux 4.13-y 分支,如何支持声卡? » 2018-12-28 00:06:58

@晕哥
前面我都uboot传递了480*272的屏幕参数。但是我的内核配置存在问题,所以我之后linux4.13-y使用了默认配置make ARCH=arm licheepi_zero_defconfig,重新编译一次,又神奇的出现了fb0了。

#28 Re: 全志 SOC » 请问全志V3s使用荔枝派最新的 linux 4.13-y 分支,如何支持声卡? » 2018-12-27 17:27:56

@晕哥
晕哥,谢谢指导,确实我配置完uboot里的LCD启动之后,加上内核的配置simple framebuffer之后,再次启动内核,就出现了/dev/fb0了

#29 Re: 全志 SOC » 请问全志V3s使用荔枝派最新的 linux 4.13-y 分支,如何支持声卡? » 2018-12-27 15:22:36

@晕哥
晕哥是不是说要能够使用显示屏的话,就首先需要在uboot里面设置启动,否则的话是没办法仅仅靠linux内核配置去配置framebuffer的呢?

#30 Re: 全志 SOC » 请问全志V3s使用荔枝派最新的 linux 4.13-y 分支,如何支持声卡? » 2018-12-27 14:28:29

@晕哥
晕哥,下面是我的内核启动时的信息:

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.13.16-44688-g507bd15-dirty (root@ubuntu) (gcc version 5.4.0 20160609 (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.9)) #8 SMP Wed Dec 26 21:43:03 PST 2018
[    0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d
[    0.000000] CPU: div instructions available: patching division code
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt: Machine model: Lichee Pi Zero with Dock
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] percpu: Embedded 16 pages/cpu @c3de6000 s33868 r8192 d23476 u65536
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 15883
[    0.000000] Kernel command line: console=ttyS0,115200 panic=5 mtdparts=spi32766.0:1M(uboot),64k(dtb),4M(kernel),-(rootfs) rootwait root=/dev/mmcblk0p2 earlyprintk rw  vt.global_cursor_default=0
[    0.000000] PID hash table entries: 256 (order: -2, 1024 bytes)
[    0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Memory: 54464K/64036K available (5120K kernel code, 370K rwdata, 1300K rodata, 1024K init, 253K bss, 9572K reserved, 0K cma-reserved, 0K highmem)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xc4000000 - 0xff800000   ( 952 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xc3e89000   (  62 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0xc0008000 - 0xc0600000   (6112 kB)
[    0.000000]       .init : 0xc0800000 - 0xc0900000   (1024 kB)
[    0.000000]       .data : 0xc0900000 - 0xc095cb40   ( 371 kB)
[    0.000000]        .bss : 0xc0962f2c - 0xc09a2514   ( 254 kB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] Hierarchical RCU implementation.
[    0.000000]  RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=1.
[    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] arch_timer: cp15 timer(s) running at 24.00MHz (virt).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[    0.000008] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.000020] Switching to timer-based delay loop, resolution 41ns
[    0.000210] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000459] Console: colour dummy device 80x30
[    0.000495] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[    0.000510] pid_max: default: 32768 minimum: 301
[    0.000639] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000655] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.001251] CPU: Testing write buffer coherency: ok
[    0.001618] /cpus/cpu@0 missing clock-frequency property
[    0.001639] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.002077] Setting up static identity map for 0x40100000 - 0x40100060
[    0.002255] Hierarchical SRCU implementation.
[    0.002747] smp: Bringing up secondary CPUs ...
[    0.002762] smp: Brought up 1 node, 1 CPU
[    0.002771] SMP: Total of 1 processors activated (48.00 BogoMIPS).
[    0.002778] CPU: All CPU(s) started in SVC mode.
[    0.003494] devtmpfs: initialized
[    0.006559] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    0.006852] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.006878] futex hash table entries: 256 (order: 2, 16384 bytes)
[    0.007038] pinctrl core: initialized pinctrl subsystem
[    0.007921] random: get_random_u32 called from bucket_table_alloc+0xf0/0x23c with crng_init=0
[    0.008062] NET: Registered protocol family 16
[    0.008538] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.009616] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.009634] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.022704] SCSI subsystem initialized
[    0.023365] usbcore: registered new interface driver usbfs
[    0.023434] usbcore: registered new interface driver hub
[    0.023509] usbcore: registered new device driver usb
[    0.023792] pps_core: LinuxPPS API ver. 1 registered
[    0.023803] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.023825] PTP clock support registered
[    0.024055] Advanced Linux Sound Architecture Driver Initialized.
[    0.025226] clocksource: Switched to clocksource arch_sys_counter
[    0.035974] NET: Registered protocol family 2
[    0.036552] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.036586] TCP bind hash table entries: 1024 (order: 1, 8192 bytes)
[    0.036610] TCP: Hash tables configured (established 1024 bind 1024)
[    0.036746] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    0.036795] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    0.037008] NET: Registered protocol family 1
[    0.037697] RPC: Registered named UNIX socket transport module.
[    0.037717] RPC: Registered udp transport module.
[    0.037723] RPC: Registered tcp transport module.
[    0.037729] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.039808] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[    0.048590] NFS: Registering the id_resolver key type
[    0.048644] Key type id_resolver registered
[    0.048652] Key type id_legacy registered
[    0.049636] random: fast init done
[    0.049969] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    0.049986] io scheduler noop registered
[    0.049993] io scheduler deadline registered
[    0.050220] io scheduler cfq registered (default)
[    0.050232] io scheduler mq-deadline registered
[    0.050239] io scheduler kyber registered
[    0.054864] sun8i-v3s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    0.122000] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    0.125455] console [ttyS0] disabled
[    0.145685] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 36, base_baud = 1500000) is a U6_16550A
[    0.727268] console [ttyS0] enabled
[    0.732426] libphy: Fixed MDIO Bus: probed
[    0.736624] CAN device driver interface
[    0.741092] dwmac-sun8i 1c30000.ethernet: PTP uses main clock
[    0.746965] dwmac-sun8i 1c30000.ethernet: No regulator found
[    0.752679] dwmac-sun8i 1c30000.ethernet: Will use internal PHY
[    0.758714] dwmac-sun8i 1c30000.ethernet: Current syscon value is not the default 148000 (expect 38000)
[    0.768288] dwmac-sun8i 1c30000.ethernet: Chain mode enabled
[    0.773945] dwmac-sun8i 1c30000.ethernet: No HW DMA feature register supported
[    0.781187] dwmac-sun8i 1c30000.ethernet: Normal descriptors
[    0.786853] dwmac-sun8i 1c30000.ethernet: RX Checksum Offload Engine supported
[    0.794068] dwmac-sun8i 1c30000.ethernet: COE Type 2
[    0.799039] dwmac-sun8i 1c30000.ethernet: TX Checksum insertion supported
[    0.806024] libphy: stmmac: probed
[    0.811249] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.817908] ehci-platform: EHCI generic platform driver
[    0.823425] ehci-platform 1c1a000.usb: EHCI Host Controller
[    0.829104] ehci-platform 1c1a000.usb: new USB bus registered, assigned bus number 1
[    0.837068] ehci-platform 1c1a000.usb: irq 26, io mem 0x01c1a000
[    0.865247] ehci-platform 1c1a000.usb: USB 2.0 started, EHCI 1.00
[    0.872418] hub 1-0:1.0: USB hub found
[    0.876369] hub 1-0:1.0: 1 port detected
[    0.880823] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.887115] ohci-platform: OHCI generic platform driver
[    0.892666] ohci-platform 1c1a400.usb: Generic Platform OHCI controller
[    0.899409] ohci-platform 1c1a400.usb: new USB bus registered, assigned bus number 2
[    0.907345] ohci-platform 1c1a400.usb: irq 27, io mem 0x01c1a400
[    0.980326] hub 2-0:1.0: USB hub found
[    0.984148] hub 2-0:1.0: 1 port detected
[    0.991300] usbcore: registered new interface driver usb-storage
[    0.998539] input: 1c22800.lradc as /devices/platform/soc/1c22800.lradc/input/input0
[    1.007617] sun6i-rtc 1c20400.rtc: rtc core: registered rtc-sun6i as rtc0
[    1.014413] sun6i-rtc 1c20400.rtc: RTC enabled
[    1.019182] i2c /dev entries driver
[    1.024017] IR NEC protocol handler initialized
[    1.028675] IR RC5(x/sz) protocol handler initialized
[    1.033726] IR RC6 protocol handler initialized
[    1.038278] IR JVC protocol handler initialized
[    1.042804] IR Sony protocol handler initialized
[    1.047429] IR SANYO protocol handler initialized
[    1.052127] IR Sharp protocol handler initialized
[    1.056834] IR MCE Keyboard/mouse protocol handler initialized
[    1.062658] IR XMP protocol handler initialized
[    1.068020] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    1.135249] sunxi-mmc 1c0f000.mmc: base:0xc41f8000 irq:23
[    1.185265] mmc0: host does not support reading read-only switch, assuming write-enable
[    1.193404] mmc0: new SD card at address 88f7
[    1.198331] sunxi-mmc 1c10000.mmc: base:0xc41fc000 irq:24
[    1.204841] usbcore: registered new interface driver usbhid
[    1.210509] usbhid: USB HID core driver
[    1.215107] mmcblk0: mmc0:88f7 SU01G 943 MiB 
[    1.221775] sun4i-codec 1c22c00.codec: ASoC: /soc/codec-analog@01c23000 not registered
[    1.229824] sun4i-codec 1c22c00.codec: Failed to register our card
[    1.236327]  mmcblk0: p1 p2
[    1.244429] NET: Registered protocol family 17
[    1.249040] can: controller area network core (rev 20170425 abi 9)
[    1.255358] NET: Registered protocol family 29
[    1.259804] can: raw protocol (rev 20170425)
[    1.264071] can: broadcast manager protocol (rev 20170425 t)
[    1.269770] can: netlink gateway (rev 20170425) max_hops=1
[    1.275560] Key type dns_resolver registered
[    1.279969] Registering SWP/SWPB emulation handler
[    1.290645] usb_phy_generic usb_phy_generic.0.auto: usb_phy_generic.0.auto supply vcc not found, using dummy regulator
[    1.302087] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[    1.307935] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 3
[    1.317008] hub 3-0:1.0: USB hub found
[    1.320903] hub 3-0:1.0: 1 port detected
[    1.328664] sun4i-codec 1c22c00.codec: Codec <-> 1c22c00.codec mapping ok
[    1.339014] sun6i-rtc 1c20400.rtc: setting system clock to 1970-01-01 00:34:38 UTC (2078)
[    1.347538] vcc5v0: disabling
[    1.350513] ALSA device list:
[    1.353477]   #0: V3s Audio Codec
[    1.359650] EXT4-fs (mmcblk0p2): couldn't mount as ext3 due to feature incompatibilities
[    1.369063] EXT4-fs (mmcblk0p2): couldn't mount as ext2 due to feature incompatibilities
[    1.484547] EXT4-fs (mmcblk0p2): recovery complete
[    1.492110] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    1.500321] VFS: Mounted root (ext4 filesystem) on device 179:2.
[    1.508222] devtmpfs: mounted
[    1.512362] Freeing unused kernel memory: 1024K
[    1.683684] EXT4-fs (mmcblk0p2): re-mounted. Opts: data=ordered
mount: mounting /dev/sda1 on /mnt/udisk failed: No such file or directory
Starting logging: OK
Initializing random number generator... done.
Starting network: OK

Welcome to Buildroot
buildroot login: root
# ls /dev/

#31 Re: 全志 SOC » 请问全志V3s使用荔枝派最新的 linux 4.13-y 分支,如何支持声卡? » 2018-12-27 14:08:27

@晕哥
晕哥,现在我的板子上没有/dev/fb0,我配置了很久都没能配置出来,不知是不是v3s的lcd配置需要哪些步骤呢?

#32 Re: 全志 SOC » 请问全志V3s使用荔枝派最新的 linux 4.13-y 分支,如何支持声卡? » 2018-12-27 13:59:03

@晕哥
晕哥,我想问下,我应该如何配置linx 4.13-y分支的内核才能够配置出显示屏编写程序所用到的fb0呢?想问下具体的内核配置参考步骤呢?

#33 Re: 全志 SOC » lichee zero Kernel如何适配Ethernet » 2018-12-26 17:33:41

@晕哥
晕哥,感谢你提醒,我设置了下DNS,不过我需要根据我电脑网络的配置的网关来配置,可能是路由器的问题我电脑的网关是192.168.1.215,而不是通常的192.168.1.1,设置好之后我能够成功ping通百度了。

以下是我的网络配置步骤:
一.手动测试是否成功加载网卡驱动,可执行如下命令:ifconfig eth0 192.168.1.218 up
二。以下是在配置好内核以及成功加载网卡的前提下实现能够自动配置网络,能够ping通的步骤
(1)修改 /etc/network/interfaces 即vi /etc/network/interfaces后添加如下语句:
     auto lo
     iface lo inet loopback

     auto eth0
     iface eth0 inet static
     address 192.168.1.218    # 3 你要变化的IP地址
     gateway 192.168.1.251   (该网关最好需要设置成跟电脑的网关一致,我这里是 192.168.1.251,跟路由器设置相关)
     netmask 255.255.255.0

(2)vi  /etc/resolv.conf
添加以下语句
nameserver 127.0.0.1
nameserver 202.96.134.33
nameserver 114.114.114.114

(3)为了能够实现自动开机设置
nameserver 127.0.0.1
nameserver 202.96.134.33
nameserver 114.114.114.114
可以  vi   /etc/init.d/rcS
然后添加以下三句即可:
nameserver 127.0.0.1
nameserver 202.96.134.33
nameserver 114.114.114.114

之后就可以直接ping通了!!!

#34 Re: 全志 SOC » lichee zero Kernel如何适配Ethernet » 2018-12-26 16:53:13

@晕哥
晕哥,试了上面的DNS配置,发现还是不行,仍然出现ping: bad address 'www.baidu.com'的问题

#35 Re: 全志 SOC » lichee zero Kernel如何适配Ethernet » 2018-12-26 16:34:25

@晕哥
晕哥,我在配置v3s的网络时,出现了ping www.baidu.com时出现这个问题
          # ping www.baidu.com
             ping: bad address 'www.baidu.com'
以下是我的开发板设置的情况:
(1)# ifconfig
          eth0      Link encap:Ethernet  HWaddr 02:01:45:C6:B7:38 
          inet addr:192.168.1.218  Bcast:0.0.0.0  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1921 errors:0 dropped:9 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:125331 (122.3 KiB)  TX bytes:0 (0.0 B)
          Interrupt:38

           lo        Link encap:Local Loopback 
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:12 errors:0 dropped:0 overruns:0 frame:0
          TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:920 (920.0 B)  TX bytes:920 (920.0 B)
(2)  # route
          Kernel IP routing table
          Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
          default         192.168.1.1     0.0.0.0         UG    0      0        0 eth0
          192.168.1.0     *               255.255.255.0   U     0      0        0 eth0

请晕哥帮忙分析下,为何我能够ping通虚拟机,虚拟机能够ping通百度,但是不能ping通百度呢?

#36 Re: 全志 SOC » 请问全志V3s使用荔枝派最新的 linux 4.13-y 分支,如何支持声卡? » 2018-12-25 18:40:30

@晕哥
晕哥,我刚才尝试了一下,tinyplay成功了,成功的步骤我总结了一下:
一。tinyplay移植
(1) git clone https://github.com/tinyalsa/tinyalsa.git
(2)把所有Makefile的 CC行都改成这样: 
              CC = $(CROSS_COMPILE)gcc
(3)把所有Makefile的改为
             CROSS_COMPILE = arm-linux-gnueabihf-gcc;
       使用的是静态链接,当然前提是要在电脑上安装了 :
            arm-linux-gnueabihf-gcc,
安装方法:sudo apt-get install gcc-arm-linux-gnueabihf
(4)在tinyalsa文件内执行make命令
(5)接着在arm板上移植步骤如下:
1.将tinyalsa/utils/下的tinycap  tinymix  tinypcminfo 和tinyplay 复制到开发板的/bin目录下;
2.将tinyalsa/src下的libtinyalsa.so.1   libtinyalsa.so   
   libtinyalsa.so.1.1.1拷贝到开发板的/lib即可。
(6)运行tinymix 来调节音量
         tinymix set 1 63
         tinymix set 2 1
         tinymix contents
(7)在这个之前我是已经将alsa移植过一次,不知这个会不会有影响,目前还没有测试过。

#37 Re: 全志 SOC » 请问全志V3s使用荔枝派最新的 linux 4.13-y 分支,如何支持声卡? » 2018-12-25 17:33:59

@晕哥
晕哥,在进行tinyalsa移植时,具体的移植过程是不是跟alsa库那样要移植对应的文件和文件夹到开发板对应的文件夹中呢?具体我想请教下晕哥这个tinyalsa的移植过程是怎么样呢?

#38 Re: 全志 SOC » 请问全志V3s使用荔枝派最新的 linux 4.13-y 分支,如何支持声卡? » 2018-12-25 16:51:32

@晕哥
晕哥大神,请问下我使用了linux 4.13-y分支的内核,编译成功之后能够挂载u盘,也能够提示有声卡了,但是还是存在一个问题,当我使用移植好的alsa时,

          输入命令:aplay 11.wav时,
          系统提示:aplay:set_params:1437:not enough memory

这个问题我该怎么解决呢?

#40 Re: 全志 SOC » f1c100s 荔枝派nano测试声卡功能 遇到的问题 spi flash 启动 » 2018-12-25 09:34:46

@晕哥
晕哥,在使用C600的套路里面我遇到了几个问题呢,不知道怎么解决,请大神分析下:
1.单独编译linux3.10时,想提取出dtb和zImage文件,但是make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- dtbs -j4,之后出现了错误:
      include/linux/compiler-gcc.h:106:1: fatal error: linux/compiler-gcc7.h: No such file or directory
      #include gcc_header(__GNUC__)
      这个我尝试安装了gcc7.0还是没能解决。

2.为什么按照C600的套路我,我把镜像下载到板子之中,输入cat /proc/asound/cards之后还是提示no soundcards
   请问下这个问题是不是跟我没有将alsa库移植进系统有关呢?

3.晕哥我还想请教下在C600的套路里面我想修改根文件系统,但是不知在哪个地方可以修改根文件系统?

#41 Re: 全志 SOC » f1c100s 荔枝派nano测试声卡功能 遇到的问题 spi flash 启动 » 2018-12-24 15:43:35

@晕哥
晕哥你好,目前我按照C600的套路来,我能得到的dtb文件是sunivw1p1-evb.dtb,但是没有能够得到suniv-f1c100s-licheepi-nano.dtb;因为之前用的是linux4.19和打上补丁后就能够得到suniv-f1c100s-licheepi-nano.dtb,现在使用linux3.10就没办法得到了,这个问题我该怎么解决呢?

#42 Re: 全志 SOC » f1c100s 荔枝派nano测试声卡功能 遇到的问题 spi flash 启动 » 2018-12-24 09:13:34

@晕哥
晕哥,我想问下按照C600的套路,配置时输入:./build.sh config ,之后出现
All available boards:
   0. aw_w01
   1. aw_w02
   2. evb
   3. qc
对于荔枝派f1c100这块板子需要选择哪个选项的呢?

#44 Re: 全志 SOC » f1c100s 荔枝派nano测试声卡功能 遇到的问题 spi flash 启动 » 2018-12-21 17:29:27

@晕哥
晕哥,想问下我按照上面的C600的套路,因为上面的C600的帖子上没有配置声卡的问题,是不是说C600的套路里的默认声卡配置已经能够实现在f1c100s上发出声音的了?

#45 Re: 全志 SOC » f1c100s 荔枝派nano测试声卡功能 遇到的问题 spi flash 启动 » 2018-12-21 17:02:04

@晕哥
晕哥在官网上面没有呢,目前我的情况是在linux 4.19 上 make ARCH=arm menuconfig 后,到了选择sound card 时就不知选择哪个驱动和声卡才能够适应荔枝派nano的使用呢?想请教下晕哥,我该如何选择呢,或者是如果在linux3.10里我应该选择哪个声卡配置呢?

#47 Re: 全志 SOC » f1c100s 荔枝派nano测试声卡功能 遇到的问题 spi flash 启动 » 2018-12-21 16:41:00

@fly_to_bluesky
我想请教您一个问题,就是我在linux4.19的内核配置中应该怎么配置才能够配置好荔枝派nano的测试声卡呢?
我怎么配置都配置不出你的镜像中:
                        #cat /proc/asound/cards
                          0  [audiocodec     ]:   audiocodec  -   audiocodec 
                                                          audiocodec 
而我配来配去都没有出现这个声卡的信息,下面是我的声卡信息:
                       #cat /proc/asound/cards
                          0  [Dummy    ] : Dummy     - Dummy   
                                                   Dummy  1
                          1  [Loopback  ] : Loopback   -  Loopback 
                                                   Loopback  1
                          2   [VirMIDI    ] : VirMIDI  -  VirMIDI 
                                                    Virtual MIDI  Card 1
想请教下我的内核需要怎么配置的呢?还是需要自己编写驱动的呢?

页脚

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

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