November 11, 2019, 09:48:30 pm

News:

Have you visited the Allwinner Chipset wiki? - http://linux-sunxi.org/


Buster, Xenial and Bionic - updated 6.7.2019

Started by slovenia, December 24, 2013, 03:23:11 pm

Previous topic - Next topic

castalla

Quote from: reolee on July 05, 2014, 12:17:33 am
want to set up bluetooth soundbar, but can't find asound.conf


You can simply create an asound.conf in /etc

I have BT working using an external bt dongle.   Setting up pairing was a pain  I'd be interested to hear what procedure you are using to pair and trust the audio device.

Jono

Hi, I installed the CTDebian_2.3_wheezy_hdmi.zip image on my CubieTruck (I have revision A).
And interface eth0 does not work properly.

I tried setting and obtain the address automatically and installed manually.
Useless, the network does not work.
That portion of the log loading

[    0.000000] Linux version 3.4.96-sun7i+ (root@cubiedev) (gcc version 4.7.2 (Debian 4.7.2-5) ) #2 SMP PREEMPT Tue Jul 1 22:28:28 CEST 2014
[    0.000000] CPU: ARMv7 Processor [410fc074] revision 4 (ARMv7), cr=10c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] sunxi: Allwinner A20 (AW1651/sun7i) detected.
[    0.000000] Kernel command line: console=ttyS0,115200 root=/dev/mmcblk0p1 rootwait loglevel=8 panic=10 rootfstype=ext4 sunxi_ve_mem_reserve=0 sunxi_g2d_mem_reserve=0 sunxi_no_mali_mem_reserve sunxi_fb_mem_reserve=16 hdmi.audio=EDID:0 disp.screen0_output_mode=EDID:1280x720p60 panic=10 consoleblank=0



[    1.728980] sunxi_emac Using mii phy on PortA
[    1.746768] sunxi_emac Using MAC from SID: 02:96:0a:02:f2:2a
[    1.758547] emac_init fetch emac using configuration failed

sunxi_emac ?
This driver seems to be designed for Cubieboard 2 100 mb lan?
[    1.766763] gmac driver is disabled
WWWHAT? And why is that?
How to deal with it?
Thanks!

reolee

Quote from: castalla on July 05, 2014, 05:31:56 am
Quote from: reolee on July 05, 2014, 12:17:33 am
want to set up bluetooth soundbar, but can't find asound.conf


You can simply create an asound.conf in /etc

I have BT working using an external bt dongle.   Setting up pairing was a pain  I'd be interested to hear what procedure you are using to pair and trust the audio device.


Follow this article:
http://linuxcommando.blogspot.com/2013/11/how-to-connect-to-bluetooth.html

I use jabra solemate mini and mpd to play music,  It looks like paired and trusted, but I can't make any sound through bluetooth.

castalla

Quote from: reolee on July 05, 2014, 06:28:57 am
Quote from: castalla on July 05, 2014, 05:31:56 am
Quote from: reolee on July 05, 2014, 12:17:33 am
want to set up bluetooth soundbar, but can't find asound.conf


You can simply create an asound.conf in /etc

I have BT working using an external bt dongle.   Setting up pairing was a pain  I'd be interested to hear what procedure you are using to pair and trust the audio device.


Follow this article:
http://linuxcommando.blogspot.com/2013/11/how-to-connect-to-bluetooth.html

I use jabra solemate mini and mpd to play music,  It looks like paired and trusted, but I can't make any sound through bluetooth.


Thanks for the link

I use bt with squeezelite where you can specify the audio device (eg. BOOM).

Here's the asound.conf that I use - you will need to edit it:

pcm.!default {
type plug
slave.pcm "hw:0,0"
}

ctl.dmixer {
type hw
card 0
}

pcm.BOOM {
    type plug
    slave {
        pcm {
            type bluetooth
            device 10:B7:F6:00:46:40
            profile "auto"
        }   
    }   

    hint {
        show on
        description "Bluetooth BOOM audio output device"
    }   
}

ctl.BOOM {
   type bluetooth
}


You also need audio.conf  which is located in /etc/bluetooth

# Configuration file for the audio service

# This section contains options which are not specific to any
# particular interface
[General]

Enable=Source,Sink,Media,Socket
Master=true
SCORouting=PCM
AutoConnect=true

# Switch to master role for incoming connections (defaults to true)
#Master=true

# If we want to disable support for specific services
# Defaults to supporting all implemented services
#Disable=Control,Source

# SCO routing. Either PCM or HCI (in which case audio is routed to/from ALSA)
# Defaults to HCI
#SCORouting=PCM

# Automatically connect both A2DP and HFP/HSP profiles for incoming
# connections. Some headsets that support both profiles will only connect the
# other one automatically so the default setting of true is usually a good
# idea.
#AutoConnect=true

# Headset interface specific options (i.e. options which affect how the audio
# service interacts with remote headset devices)
[Headset]

# Set to true to support HFP, false means only HSP is supported
# Defaults to true
HFP=true

# Maximum number of connected HSP/HFP devices per adapter. Defaults to 1
MaxConnected=1

# Set to true to enable use of fast connectable mode (faster page scanning)
# for HFP when incomming call starts. Default settings are restored after
# call is answered or rejected. Page scan interval is much shorter and page
# scan type changed to interlaced. Such allows faster connection initiated
# by a headset.
FastConnectable=false

# Just an example of potential config options for the other interfaces
#[A2DP]
#SBCSources=1
#MPEG12Sources=0


discopig

I love this image, it's much more stable than others out there and I love how minimalistic it is.

vanfanel

SLOVENIA: can you please do this very simple thing I asked and update kernel?
Just uncomment line 1074 in https://github.com/dan-and/linux-sunxi/blob/dan-3.4.96/drivers/video/sunxi/disp/dev_fb.c

Will take you a second!

Can you do it, please? I've been asking this very very simple fix for a month now..  :'(


JustACat

Quote from: vanfanel on July 06, 2014, 03:19:42 pm
SLOVENIA: can you please do this very simple thing I asked and update kernel?


It is done already in last update (v2.3 / 2.7.2014):
http://www.igorpecovnik.com/2013/12/24/cubietruck-debian-wheezy-sd-card-image/#new
"disp_vsync kernel patch" is not it?
https://github.com/igorpecovnik/Cubietruck-Debian/commit/830a4d10a8ba18b4202f77798bd56969b3a7bb9b

PS: if I misunderstand something - sorry, I'm a newb...

vanfanel

JustACat: thanks for pointing it out! Yes, it seems to be done already!!! Thanks, Slovenia! :)
Is there a way to update the system (kernel, boot scripts) to the latest version from within the OS?
I spent some time finetunning the default system and I'd like to save some time...

slovenia

Quote from: vanfanel on July 07, 2014, 06:19:58 am
JustACat: thanks for pointing it out! Yes, it seems to be done already!!! Thanks, Slovenia! :)
Is there a way to update the system (kernel, boot scripts) to the latest version from within the OS?
I spent some time finetunning the default system and I'd like to save some time...


Kernel upgrade is fairly simple - uncompress it to the / and you are done after reboot. If you use my system, otherwise some fine tuning might be necessary - editing uEnv.txt.

The rest only manual: down-clock, Updated hostapd, bashrc, Onboard Bluetooth finally works - latest loading script file, ...

Build script and setup scripts are not important, since you already have running system.
Debian and Ubuntu images with kernel 3.4.110, 4.3.3, 4.4
http://www.armbian.com

vanfanel

Thanks, Slovenia!! Kernel updated!!
However, I need MALI kernel-space drivers updated. Your kernel is using r3p0 which is OLD.
Could you update to r3p2, please??

Here's a kernel three with r3p2-01rel2:

https://github.com/ssvb/linux-sunxi/tree/20140116-mali-r3p2-01rel2

can you update to that kernel's MALI kernel-space driver, please?

konsul_by

Hello everyone. Sorry for my english. Such problem: put this distribution. Put the script https://github.com/igorpecovnik/Debian-micro-home-server. Everything is OK. But after a reboot does not work ISPConfig 3 panel. Does not work IP any by http:// servername:8080. website which I put through the panel also does not work. All other services are working. What can be done? how to fix?

slovenia

Quote from: konsul_by on July 11, 2014, 11:27:15 am
Hello everyone. Sorry for my english. Such problem: put this distribution. Put the script https://github.com/igorpecovnik/Debian-micro-home-server. Everything is OK. But after a reboot does not work ISPConfig 3 panel. Does not work IP any by http:// servername:8080. website which I put through the panel also does not work. All other services are working. What can be done? how to fix?


Have you disabled ramlog before running the script?

disable Ramlog (service ramlog disable;reboot) before running install. Ramlog is default in my Cubieboard Debian.
Debian and Ubuntu images with kernel 3.4.110, 4.3.3, 4.4
http://www.armbian.com

konsul_by

Quote from: slovenia on July 11, 2014, 12:20:34 pm
Quote from: konsul_by on July 11, 2014, 11:27:15 am
Hello everyone. Sorry for my english. Such problem: put this distribution. Put the script https://github.com/igorpecovnik/Debian-micro-home-server. Everything is OK. But after a reboot does not work ISPConfig 3 panel. Does not work IP any by http:// servername:8080. website which I put through the panel also does not work. All other services are working. What can be done? how to fix?


Have you disabled ramlog before running the script?

disable Ramlog (service ramlog disable;reboot) before running install. Ramlog is default in my Cubieboard Debian.

No, ramlog not blocked. Thanks for the tip, I will try with v2.4 / 11.7.2014

wkeith

Thank you for your work on this image and particularly for making your build scripts available.  I have learned a lot from fiddling with them.  If you don't mind, I have a few questions:

The patches at lines 86 to 90 are commented out.  Does this mean that the upstream sources already have these patches?  Do I need to enable them the first time I run the build script?

What about the make command at line 130 which is also commented out?

I often get loop errors which I think you have said is a known problem.  I can get round this by restarting the script at the point it failed but have you found a better way? Or is this fixed in your 2.4 release?

And a couple of suggestions:

I suggest you remove the ntpdate package.  Ntpdate conflicts with ntpd as both try to bind the same port. Ntpdate usually wins.  Ntpdate is unnecessary because the debian ntpd resets time on every restart  (-g flag in /etc/default/ntp)

disable_led.sh does not work on CB2 because leds are configured differently.  The CB2 settings are:
        echo 0 > /sys/class/leds/green:ph20:led1/brightness
        echo 0 > /sys/class/leds/blue:ph21:led2/brightness
An if statement to detect the board version could be used to set the right config.

Finally. I'm keen to look at changes to your latest build script but version 2.4 changes are not yet showing on github.  Could you update the repo when you have a minute?

Thanks

Keith

soundcheck

Hi there.

Perhaps I missed something.

Why has the the CPU freq been downgraded now from 1200 to 1010Mhz max?

I did figure out now that the hardwarelimit as reported by cpufreq-info is reported 1010Mhz. 1200 would have been a slight overclocking.



Thx.

Cheers