您尚未登录。

#1 Re: 全志 SOC » f1c100s 荔枝派nano测试声卡功能 遇到的问题 spi flash 启动 » 2018-06-22 10:58:29

晕哥 说:

多谢 @fly_to_bluesky 分享!

可以详细列出来调用了哪些命令吗?
这样方便后来到这个帖子的同学参考.


直接把我保存好的文件发到这里:

https://whycan.com/files/members/961/asound.zip

下载解压后 直接restore就可以了

我上面提供的镜像里面已经有lsz 和 lrz工具,可以通过串口使用zmodern传进去。

#2 Re: 全志 SOC » f1c100s 荔枝派nano测试声卡功能 遇到的问题 spi flash 启动 » 2018-06-21 12:26:19

@晕哥,非常感谢,问题已经解决了,确实是我的配置问题。
  amixer list 打出来大家看看。

Simple mixer control 'ADC FM volume',0
  Capabilities: volume volume-joined
  Playback channels: Mono
  Capture channels: Mono
  Limits: 0 - 7
  Mono: 0 [0%]
Simple mixer control 'ADC INPUT GAIN control',0
  Capabilities: volume volume-joined
  Playback channels: Mono
  Capture channels: Mono
  Limits: 0 - 7
  Mono: 0 [0%]
Simple mixer control 'ADC MIC Boost AMP en',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]
Simple mixer control 'ADC MIC Boost AMP gain control',0
  Capabilities: volume volume-joined
  Playback channels: Mono
  Capture channels: Mono
  Limits: 0 - 7
  Mono: 0 [0%]
Simple mixer control 'ADC PA speed select',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'ADC mixer mute for FML',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'ADC mixer mute for FMR',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'ADC mixer mute for left ouput',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'ADC mixer mute for linein',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'ADC mixer mute for mic',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]
Simple mixer control 'ADC mixer mute for right ouput',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'COS slop time control for Anti-pop',0
  Capabilities: volume volume-joined
  Playback channels: Mono
  Capture channels: Mono
  Limits: 0 - 3
  Mono: 1 [33%]
Simple mixer control 'LINEIN GAIN control',0
  Capabilities: volume volume-joined
  Playback channels: Mono
  Capture channels: Mono
  Limits: 0 - 7
  Mono: 0 [0%]
Simple mixer control 'MICIN GAIN control',0
  Capabilities: volume volume-joined
  Playback channels: Mono
  Capture channels: Mono
  Limits: 0 - 7
  Mono: 3 [43%]
Simple mixer control 'dac digital volume',0
  Capabilities: volume volume-joined
  Playback channels: Mono
  Capture channels: Mono
  Limits: 0 - 63
  Mono: 0 [0%]
Simple mixer control 'dac: left analog output mixer en',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'dac: left chanle en',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]
Simple mixer control 'dac: left hpout to right hpout',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'dac: left mixer mute: FM',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'dac: left mixer mute: left dac',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]
Simple mixer control 'dac: left mixer mute: linein',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'dac: left mixer mute: mic',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'dac: left mixer mute: right dac',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]
Simple mixer control 'dac: left mute',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]
Simple mixer control 'dac: right analog output mixer en',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'dac: right chanel en',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]
Simple mixer control 'dac: right hpout to left hpout',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'dac: right mixer mute: FM',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'dac: right mixer mute: left dac',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]
Simple mixer control 'dac: right mixer mute: linein',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'dac: right mixer mute: mic',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'dac: right mixer mute: right dac',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]
Simple mixer control 'dac: right mute',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]
Simple mixer control 'head phone power',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]
Simple mixer control 'head phone volume',0
  Capabilities: volume volume-joined
  Playback channels: Mono
  Capture channels: Mono
  Limits: 0 - 63
  Mono: 63 [100%]
Simple mixer control 'hp left source select: 0-dac, 1-mixer',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'hp right source select: 0-dac, 1-mixer',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]

amixer 参数调整后不能自动保存的,需要特别保存一下。
alsactl store -f /var/lib/alsa/asound.state

重启后alsactl restore -f /var/lib/alsa/asound.state

#4 Re: 全志 SOC » f1c100s 荔枝派nano测试声卡功能 遇到的问题 spi flash 启动 » 2018-06-19 10:07:21

@晕哥,昨天启动的问题已经搞定了。
   是我rootfs的地址错误了,修改正确了,就能正常启动了。


   现在就是声卡不能正常录音,我使用alsamix配置了mic 开启,还是不能正常录音。

#5 全志 SOC » f1c100s 荔枝派nano测试声卡功能 遇到的问题 spi flash 启动 » 2018-06-14 17:01:53

fly_to_bluesky@126.com
回复: 27

刚开始我实现主线的uboot和主线的内核发现dts中缺少很多设备,根本没法使用,只能简单测试一下。

后来转向了 BSP kernel

使用@晕哥 提供的 f1c100s_c600sdk_16M_micropython.bin 启动发现有一个声卡,但是该镜像文件系统中没有alsa工具。

为了简便处理,我直接把晕哥这个镜像中的rootfs更换成我的带有alsa工具的rootfs。
替换rootfs后的镜像如下:
https://whycan.com/files/members/961/f1c100.rar



发现 aplay能使用的  rootfs中的 /usr下已经有一个400HZ的测试音频,但是发现arecord 不能录音不知道内核默认是line in 还是 mic 我两个都测试了没有声音,大家一起测试解决问题。

#6 Re: 全志 SOC » @assert 大神移植全志官方f1c100s linux bsp 到licheepi nano » 2018-06-13 17:30:53

晕哥,我使用了你的SPI FLASH 镜像能发现一个声卡。
但是我自己编译的解析dtb的时候出错了。

uboot是主线的,kernel是你提供的bsp里面的,dts也是 bsp kernel里面的,rootfs是我确定能用的一个,已经把alsa工具集放进去了。

使用的交叉编译环境为 (Linaro GCC 7.2-2017.11)

启动过程中出问题了,
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
SF: Detected w25q128bv with page size 256 Bytes, erase size 4 KiB, total 16 MiB
device 0 offset 0x100000, size 0x4000
SF: 16384 bytes @ 0x100000 Read: OK
device 0 offset 0x110000, size 0x400000
SF: 4194304 bytes @ 0x110000 Read: OK
## Flattened Device Tree blob at 80c00000
   Booting using the fdt blob at 0x80c00000
   reserving fdt memory region: addr=81000000 size=10000
   Loading Device Tree to 816f7000, end 816ffeec ... OK
fdt_find_or_add_subnode: chosen: FDT_ERR_BADSTRUCTURE
ERROR: /chosen node create failed
- must RESET the board to recover.

能请您帮我分析一下嘛!

页脚

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

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