Coder Social home page Coder Social logo

chip-arch-build's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

chip-arch-build's Issues

Audio output dies with write error -5, input/output error

This is awesome! I've got Arch running on my CHIP and nearly everything works great. Thanks!

The one thing I can't seem to get working is audio output. Most audio commands I've tried (play, mpg123, speaker-test) result in something similar to this:

$ sudo speaker-test -c 2
speaker-test 1.1.2

Playback device is default
Stream parameters are 48000Hz, S16_LE, 2 channels
Using 16 octaves of pink noise
Rate set to 48000Hz (requested 48000Hz)
Buffer size range from 128 to 131072
Period size range from 64 to 16384
Using max buffer size 131072
Periods = 4
was set period_size = 16384
was set buffer_size = 131072
 0 - Front Left
 1 - Front Right
Write error: -5,Input/output error
xrun_recovery failed: -5,Input/output error
Transfer failed: Input/output error

Modules look good:

$ lsmod | grep snd
snd_soc_core           92177  1 sun4i_codec
snd_pcm_dmaengine       2642  1 snd_soc_core
snd_pcm                54891  2 snd_soc_core,snd_pcm_dmaengine
snd_timer              14184  1 snd_pcm
snd                    39047  3 snd_soc_core,snd_timer,snd_pcm
soundcore               4434  1 snd

Devices look ok:

$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: sun4icodec [sun4i-codec], device 0: CDC PCM Codec-0 []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
$ dmesg | grep codec
[   19.100000] sun4i-codec 1c22c00.codec: Codec <-> 1c22c00.codec mapping ok
$ ll /dev/snd/
total 0
drwxr-xr-x 2 root root       60 Oct 27 15:52 by-path/
crw-rw---- 1 root audio 116,  2 Oct 27 15:52 controlC0
crw-rw---- 1 root audio 116,  4 Oct 27 15:52 pcmC0D0c
crw-rw---- 1 root audio 116,  3 Oct 27 15:52 pcmC0D0p
crw-rw---- 1 root audio 116,  1 Oct  9 17:26 seq
crw-rw---- 1 root audio 116, 33 Oct 27 15:52 timer

I've also unmuted "Power Amplifier" in alsamixer.

Everything looks pretty similar to their respective values under CHIPs Debian O/S.

Error while trying to flash Arch on CHIP

Loading SPL to the device
Uploading padded SPL to device memory
Uploading padded Uboot to device memory
Uploading Uboot flashing script image to device memory
Running Uboot with flashing script on device and waiting for fastboot
Flashing UBI image using fastboot
target reported max download size of 33554432 bytes
sending sparse 'UBI' 1/9 (30720 KB)...
OKAY [  2.067s]
writing 'UBI' 1/9...
FAILED (remote: error writing the image)
finished. total time: 2.240s
Flashing done, hopefully now the device will boot correctly to Arch
resuming boot...
OKAY [  0.000s]
finished. total time: 0.000s

Sorry, this should have been opened on your other repo. i'll close it now.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.