Quantcast
Channel: Armbian news
Viewing all 486 articles
Browse latest View live

Nanopi Neo 2


Using W1-Wire on more than one GPIO

$
0
0

Hello,

 

I decided to monitor some temperature stuff at home and used few ds18b20 w1 sensors and they work, but due to some cable limitation and number of the sensors at same point they failed. I decided to test with 10 meters CAT5 FTP cable, changed pull up resistor to 4KO  and 3 ds18b20 work at 10m cable on 3.3V, If I add one more they all fail.

I switched volatage to 5V and all good, but I wondering is it possible to initialize w1 bus on another GPIO?

After I google that and so some reading, people achieve that on raspberry but they patched the kernel somehow.

 

Any idea how can that be done on armbian?

Armbian running Skype

$
0
0

 

With USB camera and Bluetooth headset, mouse and keyboard.

Orange pi zero crashing during update/upgrade

$
0
0

Howdy,

 

I set up a new OrangePi Zero with the Legacy 3.4.113 Ubuntu Xenial. I was able to get wifi working however when I try to do a sudo-apt get update or upgrade it freezes and crashes.  I am using a 32gb Samsung Evo. Cpu temp is hovering around 57 C with no load.

 

Any tips besides reinstalling the image?

Device Tree Overlays info and help?

$
0
0

I have an orange pi lite and I'm building my (dev 4.10) image using the Armbian tools.

 

So far I figured out how to enable the DT overlays located in /boot/dtb/overlays by editing the armbianEnv.txt file and adding

overlays=sun8i-h3-uart1 sun8i-h3-uart2 sun8i-h3-uart3 sun8i-h3-i2c0 sun8i-h3-spi0-spidev

This now enables the various uart, i2c and spi ports I wish to use and that works.

 

I'm trying to now set up a ADS7846 Touch controller using DTB

 

I have copied the file from https://raw.githubusercontent.com/raspberrypi/linux/rpi-4.4.y/arch/arm/boot/dts/overlays/ads7846-overlay.dts and run

dtc -I dts -O dtb ads7846-overlay.dts -o /boot/dtb/overlays/ads7846-overlay.dtbo   

and changed overlays in armbianEnv.txt to

overlays=sun8i-h3-uart1 sun8i-h3-uart2 sun8i-h3-uart3 sun8i-h3-i2c0 sun8i-h3-spi0-spidev ads7846-overlay

and rebooted.

ads7846-overlay doesn't work and according to the information https://github.com/raspberrypi/firmware/blob/master/boot/overlays/README there is supposed to be extra params supplied as part of the dt load

 

How do I add the settings?

 

Thanks

Andrew

Kernel 4.1 or newer for Orange Pi PC

$
0
0

Has anyone been able to get kernel 4.????  to work on an orange Pi Pc?

orange pi zero led

$
0
0

hey guys,

 

led folder is missing from /sys/class/

and even in /sys/class/gpio_sw/

 

led is included in fex file.

can anyone tell how does linux load configuration from fex to orange pi ?

Kodi crash on startup


Orange Pi Zero Mainline NetworkManager WLAN AP

$
0
0

Had some free time to toy around with Orange Pi Zero

 

Used a image "Armbian_5.26_Orangepizero_Ubuntu_xenial_dev_4.10.0.img" build with  'compile.sh BRANCH=dev BOARD=orangepizero KERNEL_ONLY=no PROGRESS_DISPLAY=plain RELEASE=xenial BUILD_DESKTOP=no'

- which should not do anything special ?

 

1) First steps

- run upgrades and normal tweaking (changed hostname, disabled ipv6, changed ntp, changed time-zone, generated correct locale)

 

2) Ensure that WLAN0 is working as client

- using 'nmtui' created a new connection to my desktop WLAN router

- disabled auto connect from eth0

- reboot with serial connection

- run example speedtest-cli to see that the driver do work

 

3) Removed the client profile and redo the eth0 for auto connection

 

4) I used these lines to create the sample profile but them afterwards tweaked it around with nmtui 'edit profile'

nmcli c add type wifi ifname wlan0 con-name ap-wlan0 autoconnect no ssid zmserver
nmcli connection modify ap-wlan0 802-11-wireless.mode ap 802-11-wireless.band bg ipv4.method shared
nmcli connection modify ap-wlan0 wifi-sec.key-mgmt wpa-psk
nmcli connection modify ap-wlan0 wifi-sec.psk "password"
nmcli connection up ap-wlan0

Key points here are 802-11-wireless.mode ap and shared

- shared means that network manager creates "internet-connection sharing" like MacOS and Windows wizards

- you cannot give dns-server or any other setting while using the shared - selection

 

Ensure that the "automatically connect" is selected to make sure that the connection is started when booted

 

5)

 

I do have the basic nat lines enabled with 'iptables-persistent'

sh -c "echo 1 > /proc/sys/net/ipv4/ip_forward"

iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
iptables -A FORWARD -i eth0 -o wlan0 -m state --state RELATED,ESTABLISHED -j ACCEPT
iptables -A FORWARD -i wlan0 -o eth0 -j ACCEPT

6)

 

Actual profile

root@iothub1:/etc/NetworkManager/system-connections# more AP
[connection]
id=AP
uuid=8e0bb6d9-52f9-4000-bbfa-d49db6790598
type=wifi
interface-name=wlan0
permissions=
secondaries=
timestamp=1487425840

[wifi]
band=bg
channel=1
mac-address-blacklist=
mac-address-randomization=0
mode=ap
seen-bssids=12:42:13:81:F5:29;
ssid=IotHub1

[wifi-security]
group=
key-mgmt=wpa-psk
pairwise=
proto=
psk=iothub123

[ipv4]
dns-search=
method=shared

[ipv6]
addr-gen-mode=stable-privacy
dns-search=
method=ignore

Some output

# nmcli d
DEVICE  TYPE      STATE      CONNECTION
eth0    ethernet  connected  Wired connection 1
wlan0   wifi      connected  AP
lo      loopback  unmanaged  --

# nmcli c
NAME                UUID                                  TYPE             DEVICE
AP                  8e0bb6d9-52f9-4000-bbfa-d49db6790598  802-11-wireless  wlan0
Wired connection 1  b9e400ce-f567-3f12-b459-366adc05a7f2  802-3-ethernet   eth0

# ifconfig
eth0      Link encap:Ethernet  HWaddr 02:42:13:81:f5:29
          inet addr:192.168.88.206  Bcast:192.168.88.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:45505 errors:0 dropped:0 overruns:0 frame:0
          TX packets:28178 errors:0 dropped:0 overruns:0 carrier:0
          collisions:20 txqueuelen:1000
          RX bytes:66887562 (66.8 MB)  TX bytes:2051800 (2.0 MB)

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:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

wlan0     Link encap:Ethernet  HWaddr 12:42:13:81:f5:29
          inet addr:10.42.0.1  Bcast:10.42.0.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:27567 errors:0 dropped:0 overruns:0 frame:0
          TX packets:44475 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:1901813 (1.9 MB)  TX bytes:67699829 (67.6 MB)

# iwconfig wlan0
wlan0     IEEE 802.11  Mode:Master  Tx-Power=20 dBm
          Retry short limit:7   RTS thr:off   Fragment thr:off
          Power Management:off

7)

 

Does it work ==> YES

Is it fast ==> NO

Is it realiable ==> DO NOT KNOW

Feb 18 16:25:35 iothub1 wpa_supplicant[706]: wlan0: AP-STA-DISCONNECTED 78:45:61:ee:43:47
Feb 18 16:25:35 iothub1 kernel: [ 1723.628815] ieee80211 phy0: vif 0: set_key cmd 1
Feb 18 16:25:35 iothub1 wpa_supplicant[706]: Device is trying to offload WPS Probe Response while not supporting this
Feb 18 16:25:38 iothub1 wpa_supplicant[706]: Device is trying to offload WPS Probe Response while not supporting this
Feb 18 16:25:38 iothub1 wpa_supplicant[706]: wlan0: AP-STA-CONNECTED 78:45:61:ee:43:47
Feb 18 16:25:38 iothub1 kernel: [ 1726.789198] ieee80211 phy0: vif 0: set_key cmd 0
Feb 18 16:25:38 iothub1 kernel: [ 1726.789213] ieee80211 phy0: CCMP_PAIRWISE keylen=16!
Feb 18 16:25:38 iothub1 dnsmasq-dhcp[902]: DHCPREQUEST(wlan0) 10.42.0.153 78:45:61:ee:43:47
Feb 18 16:25:38 iothub1 dnsmasq-dhcp[902]: DHCPACK(wlan0) 10.42.0.153 78:45:61:ee:43:47 ideapad
Feb 18 16:26:07 iothub1 kernel: [ 1755.102706] sunxi-mmc 1c10000.mmc: smc 1 err, cmd 53, RD DCE !!
Feb 18 16:26:07 iothub1 kernel: [ 1755.109460] sunxi-mmc 1c10000.mmc: data error, sending stop command

OrangePi Zero - GPIO question

$
0
0

Hi,

 

I have probably trivial question related to GPIO on Orange Pi Zero.

 

So - I have a switch there connected ot 3.3V and then to GPIO (pin 12 on Zero).

What I want to do is just to read GPIO state. When button pressed it goes to high state - normally.

 

On RaspberryPi and Odroid C1 that works fine just using basic code with wiringpi2 or eventually wiringpi.

So I tried the same on Zero compiling wiring for H3/H2. 

My code is basic in Python:

import time
import wiringpi
import pyA20 as GPIO

cykl = 1
wiringpi.wiringPiSetupGpio #or wiringPiSetup()
wiringpi.pinMode(1,0)
while cykl == 1 :
 do_call = wiringpi.digitalRead(1)
 if do_call:
   print 'pressed'
 time.sleep(0.05)

On other arm machines it works.

 

Did I missed something with ZERO? 

I do not have any error - but so far I never got change of the state to 1. I assume in mapping PIN 12 is GPIO1 or eventually GPIO7.

Is this correct?

 

I think I have missed something there - probably very basic.....

 

Thanks in advance for help....

 

Michal

qemu not detected - xenial env in systemd-nspawn

$
0
0

Hi,

I'm trying to compile an Armbian image for OdroidC2 with btrfs rootfs, I created an Ubuntu Xenial container with systemd-nspawn as building environment.

The building process reports these errors:

ERROR in function prepare_partitions debootstrap-ng.sh:374 err
Unable to find free loop device  err
Process terminated  info
ERROR in function unmount_on_exit debootstrap-ng.sh:525 err
debootstrap-ng was interrupted  err
Process terminated  info

I've done a little search and found that there are no loop device in a default container and that's impossible to create a new one with:

mknod /dev/loop0 b 7 0

The answer is:

mknod: /dev/loop0: Operation not permitted

So I tried to boot the container with the option --capability=CAP_MKNOD but the answer remains the same.

 

Finally the question: there is anyone who have built Armbian in a systemd container successfully?

 

[OT]

I add another error during build process (I don't know if it is caused by the previous error)

update-binfmts: warning: qemu-arm not in database of installed binary formats.
update-binfmts: exiting due to previous errors
update-binfmts: warning: qemu-aarch64 not in database of installed binary formats.
update-binfmts: exiting due to previous errors

This cause many issues when executing ARM binary later in the process.

[/OT]

Seeking fellows for Ed-tech project

$
0
0

Hi all, I've been working on a project in educational technology for some time now, and it's been about three months since I started looking into arm-linux and Armbian. About me

 

Goal:

sub-$100 computers with 11"or better display. Modular, easy to repair. Successor to OLPC. We will do it better.

Backstory:

I was with an NGO teaching English and Maths to underprivileged kids in North-East India, and I found that progress was startlingly slow. We were able to spend only two hours a week with these kids, and it was simply not enough. I was aware at the time of apps like Duolingo which were extremely effective due to fact that the student can self-learn on theit OWN TIME.

 

So I started developing an Arduino based audio based English teaching device, which quickly became an STM32 project. Then I saw that Allwinner SOCs were going for $4.50, which could provide these kids with a fully working computer. Now I'm at a junction where I need teemmates and/or advice.

 

Progress:

* Fully running, most peripherals working

* Localization tested and working in LibreOffice and Firefox, but buggy in Armbian Desktop layer (missing translations)

* Wide display compatibility (HDMI/Composite/VGA combination) for less than $3 achieved

 

Challenges:

* Funding (I have two possible solutions, PM me for details)

* Teammates for forming a company

 

Main point of this post:

I'm looking for anyone interested in such a project, for co-founding an ed-tech startup. We will probably be working as a non-profit, and most of the large offices will be in developing countries (cutting costs without compromising on living situation). The areas of expertise that this movement is currently lacking:

 

* A qualified Electronics Engineer who specializes in PCB and hardware

* Public Relations and Marketing person(s)

* Educators who are willing to raise awareness in the education space, and want to use computers in their classrooms

* Someone with proven business experience

 

People of any nationality may apply (visa allows NGO employment in foreign most countries). Please PM me if you fit the bill.

Ffmpeg latest version on armbian

$
0
0

Hi,

for my project I need to stream a video from IP camera and add some text from sensors into the final video.

 

From armbian console I have installed ffmpeg (apt-get install ffmpeg)..

 

The program works except the text is not included into streamed video:

 

Example:

 

ffserver.conf

HTTPPort 8090
HTTPBindAddress 0.0.0.0
MaxHTTPConnections 2000
MaxClients 1000
MaxBandwidth 10000
CustomLog -

<Feed monitoring1.ffm>
File /tmp/monitoring1.ffm
FileMaxSize 50M
ACL allow 127.0.0.1
ACL allow 192.168.0.0 192.168.255.255
</Feed>

<Stream monitoring1.mjpg>
Feed monitoring1.ffm
Format mpjpeg
VideoCodec mjpeg
VideoFrameRate 22
VideoBufferSize 80
VideoSize 720x264
NoAudio
</Stream>


# Redirect index.html to the appropriate site

<Redirect index.html>
URL http://www.ffmpeg.org/
</Redirect>

Then I start a simple example as:

ffmpeg -i rtsp://mpv.cdn3.bigCDN.com:554/bigCDN/definst/mp4:bigbuckbunnyiphone_400.mp4 -vf drawtext="fontfile=/home/projekt/StreamTest/DejaVuSans.ttf: \
text='TEST TEST': fontcolor=white: fontsize=36: box=1: boxcolor=black@0.5: \
boxborderw=5: x=(w-text_w)/2: y=(h-text_h)/2" -codec:a copy http://localhost:8090/monitoring1.ffm

In Armbian console I get:

 

  
root@orangepipc:/home/projekt/StreamTest# ./test.sh
ffmpeg version 3.2.2-1~bpo8+1 Copyright (c) 2000-2016 the FFmpeg developers
  built with gcc 4.9.2 (Debian 4.9.2-10)
  configuration: --prefix=/usr --extra-version='1~bpo8+1' --toolchain=hardened --libdir=/usr/lib/arm-linux-gnueabihf --incdir=/usr/include/arm-linux-gnueabihf --enable-gpl --disable-stripping --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --disable-libebur128 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libiec61883 --enable-libopencv --enable-frei0r --enable-libx264 --enable-chromaprint --enable-shared
  libavutil      55. 34.100 / 55. 34.100
  libavcodec     57. 64.101 / 57. 64.101
  libavformat    57. 56.100 / 57. 56.100
  libavdevice    57.  1.100 / 57.  1.100
  libavfilter     6. 65.100 /  6. 65.100
  libavresample   3.  1.  0 /  3.  1.  0
  libswscale      4.  2.100 /  4.  2.100
  libswresample   2.  3.100 /  2.  3.100
  libpostproc    54.  1.100 / 54.  1.100
[rtsp @ 0xb7a0a280] UDP timeout, retrying with TCP
Input #0, rtsp, from 'rtsp://mpv.cdn3.bigCDN.com:554/bigCDN/definst/mp4:bigbuckbunnyiphone_400.mp4':
  Metadata:
    title           : http/9aaa4066-cs.mi-cdn.io/streaming/streams/flash/bigbuckbunnyiphone_400.mp4
  Duration: 00:09:56.46, start: 0.000000, bitrate: N/A
    Stream #0:0: Audio: aac (LC), 48000 Hz, stereo, fltp
    Stream #0:1: Video: h264 (Constrained Baseline), yuv420p(progressive), 320x180, 24 tbr, 90k tbn, 180k tbc
[tcp @ 0xb7a11ca0] Connection to tcp://localhost:8090 failed (Connection refused), trying next address
    Last message repeated 1 times
[swscaler @ 0xb7a61d10] deprecated pixel format used, make sure you did set range correctly
Output #0, ffm, to 'http://localhost:8090/monitoring1.ffm':
  Metadata:
    title           : http/9aaa4066-cs.mi-cdn.io/streaming/streams/flash/bigbuckbunnyiphone_400.mp4
    creation_time   : now
    encoder         : Lavf57.56.100
    Stream #0:0: Video: mjpeg, yuvj420p(pc), 720x264, q=2-31, 64 kb/s, 24 fps, 1000k tbn, 22 tbc
    Metadata:
      encoder         : Lavc57.64.101 mjpeg
    Side data:
      cpb: bitrate max/min/avg: 128000/0/64000 buffer size: 655360 vbv_delay: -1
Stream mapping:
  Stream #0:1 -> #0:0 (h264 (native) -> mjpeg (native))
Press [q] to stop, [?] for help
[mjpeg @ 0xb7b0f760] rc buffer underflowkB time=00:00:00.77 bitrate= 720.9kbits/s dup=0 drop=1 speed=1.51x
    Last message repeated 8 times
[mjpeg @ 0xb7b0f760] rc buffer underflowkB time=00:00:01.27 bitrate= 720.9kbits/s dup=0 drop=2 speed=1.24x
    Last message repeated 6 times
Past duration 0.719322 too large
[mjpeg @ 0xb7b0f760] rc buffer underflow
Past duration 0.795326 too large
[mjpeg @ 0xb7b0f760] rc buffer underflow
Past duration 0.893318 too large
[mjpeg @ 0xb7b0f760] rc buffer underflow
    Last message repeated 1 times
[mjpeg @ 0xb7b0f760] rc buffer underflowkB time=00:00:01.77 bitrate= 739.4kbits/s dup=0 drop=3 speed=1.15x
    Last message repeated 8 times
[mjpeg @ 0xb7b0f760] rc buffer underflowkB time=00:00:02.18 bitrate= 750.9kbits/s dup=0 drop=3 speed=1.06x
    Last message repeated 3 times
frame=   53 fps= 23 q=31.4 Lsize=     224kB time=00:00:02.36 bitrate= 776.3kbits/s dup=0 drop=4 speed=1.04x
video:217kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 3.163595%
Exiting normally, received signal 2.
root@orangepipc:/home/projekt/StreamTest#

 

This is the result of "streamed" video but without embedded text 'TEST TEST'

 

Dmbrw.jpg

 

Does anyone know what could be wrong? or how to get latest version of Ffmpeg?

 

 

 

 

Orange PI Zero: wifi drivers (5.25)

$
0
0
Hello.
I updated my system to 5.25 version, and ralink usb wifi stopped working. As i can see, there is no drivers (mt7601Usta), but drivers exists at system.
I tried to download drivers and complied it, but it didn't help me.
Does anybody use wifi ralink dongles on orange pi zero 5.25 (3.4.113 debian) ?
 

Lirc Reconfigure

$
0
0

Hi All,

 

I use ARMBIAN 5.25 stable Ubuntu 16.04.2 LTS 3.4.113-sun8i on Nano Pi Neo Air and I try : 
dpkg-reconfigure lirc
 
I select my remote and then my transmitter nicely :)
 
After configure, I have this error:
ls: cannot access '/lib/modules/3.4.113-sun8i/kernel/drivers/staging/media/lirc': No such file or directory
 
I tried :
apt-get install lirc-modules-source
 
But It has no installation candidate...
Do someone know how can I do ?
 
Best Regards

NanoHat PCM5102A for Nano Pi NEO Air

$
0
0

I received NanoPi NEO and NEO Air boards along with the NanoHat PCM5102a that FriendlyArm is selling: http://www.friendlyarm.com/index.php?route=product/product&product_id=169

It's a good quality audio stereo out addon board compatible with NEO and NEO Air.

 

I got it working with Armbian on NEO Air!

 

I adapted commits from FA's repo to match Armbian's tree and get that DAC working, (original commits here: https://github.com/friendlyarm/h3_lichee/search?utf8=%E2%9C%93&q=pcm5102a+&type=Commits). 

 

Add these to 'userpatches/kernel/sun8i-default`: https://gist.github.com/Simon-L/c8c119c86d7d3fe4316387c3ae818379

Add this config to 'userpatches' to have the driver built-in: https://gist.github.com/Simon-L/56bf6a3ec423e37973ee0da0bc16979f

Then run './compile.sh'

 

The fex file also needs to be modified, you can use this one: https://gist.github.com/Simon-L/f0c88190814f0f482773e81512e56553

 

This should be all that's needed!

Test it with 'aplay /usr/share/sounds/alsa/Noise.wav'

and install madplay if you want to try with mp3 files.

 

Can I safely share the content of the /boot folder and expect it to work for user copy-pasting it to the /boot folder on their sdcard? It has the kernel and the fex which are the only files the process has modified.

Obviously you'd still have to trust me :)

 

I'm trying to turn this into a more straightforward way. Do I need to commit to modify defconfig and .fex file or is it supported in userpatches/ folder as well?

 

There is one issue reported in syslog that doesn't seem to prevent it from working, here's the relevant part of the log:

[    1.598532] pcm5102a_probe
[    1.607823] asoc: snddaudio <-> pri_dai mapping ok
[    1.610531] ------------[ cut here ]------------
[    1.610583] WARNING: at fs/sysfs/dir.c:508 sysfs_add_one+0x8c/0xac()
[    1.610604] sysfs: cannot create duplicate filename '/devices/platform/snddaudio'
[    1.610625] Modules linked in:
[    1.610694] [<c0016a20>] (unwind_backtrace+0x0/0xe8) from [<c0617cc0>] (dump_stack+0x20/0x24)
[    1.610742] [<c0617cc0>] (dump_stack+0x20/0x24) from [<c0029750>] (warn_slowpath_common+0x5c/0x74)
[    1.610788] [<c0029750>] (warn_slowpath_common+0x5c/0x74) from [<c00297a8>] (warn_slowpath_fmt+0x40/0x48)
[    1.610833] [<c00297a8>] (warn_slowpath_fmt+0x40/0x48) from [<c017aab8>] (sysfs_add_one+0x8c/0xac)
[    1.610877] [<c017aab8>] (sysfs_add_one+0x8c/0xac) from [<c017acb8>] (create_dir+0x70/0xc4)
[    1.610917] [<c017acb8>] (create_dir+0x70/0xc4) from [<c017b0bc>] (sysfs_create_dir+0xc4/0xe4)
[    1.610965] [<c017b0bc>] (sysfs_create_dir+0xc4/0xe4) from [<c0306bf0>] (kobject_add_internal+0xdc/0x1d0)
[    1.611013] [<c0306bf0>] (kobject_add_internal+0xdc/0x1d0) from [<c0306ef8>] (kobject_add+0x78/0x90)
[    1.611064] [<c0306ef8>] (kobject_add+0x78/0x90) from [<c03b0078>] (device_add+0xf8/0x578)
[    1.611114] [<c03b0078>] (device_add+0xf8/0x578) from [<c03b4208>] (platform_device_add+0x110/0x16c)
[    1.611161] [<c03b4208>] (platform_device_add+0x110/0x16c) from [<c03b47a4>] (platform_device_register+0x30/0x34)
[    1.611214] [<c03b47a4>] (platform_device_register+0x30/0x34) from [<c08f6f94>] (sunxi_snddaudio0_init+0x54/0xa4)
[    1.611263] [<c08f6f94>] (sunxi_snddaudio0_init+0x54/0xa4) from [<c000867c>] (do_one_initcall+0xa8/0x164)
[    1.611313] [<c000867c>] (do_one_initcall+0xa8/0x164) from [<c08d1a74>] (kernel_init+0x168/0x254)
[    1.611364] [<c08d1a74>] (kernel_init+0x168/0x254) from [<c000f1b0>] (kernel_thread_exit+0x0/0x8)
[    1.611455] ---[ end trace bd16a9742f20e8dd ]---
[    1.611481] ------------[ cut here ]------------
[    1.611509] WARNING: at lib/kobject.c:198 kobject_add_internal+0x180/0x1d0()
[    1.611533] kobject_add_internal failed for snddaudio with -EEXIST, don't try to register things with the same name in the same directory.
[    1.611560] Modules linked in:
[    1.611601] [<c0016a20>] (unwind_backtrace+0x0/0xe8) from [<c0617cc0>] (dump_stack+0x20/0x24)
[    1.611644] [<c0617cc0>] (dump_stack+0x20/0x24) from [<c0029750>] (warn_slowpath_common+0x5c/0x74)
[    1.611686] [<c0029750>] (warn_slowpath_common+0x5c/0x74) from [<c00297a8>] (warn_slowpath_fmt+0x40/0x48)
[    1.611732] [<c00297a8>] (warn_slowpath_fmt+0x40/0x48) from [<c0306c94>] (kobject_add_internal+0x180/0x1d0)
[    1.611778] [<c0306c94>] (kobject_add_internal+0x180/0x1d0) from [<c0306ef8>] (kobject_add+0x78/0x90)
[    1.611825] [<c0306ef8>] (kobject_add+0x78/0x90) from [<c03b0078>] (device_add+0xf8/0x578)
[    1.611870] [<c03b0078>] (device_add+0xf8/0x578) from [<c03b4208>] (platform_device_add+0x110/0x16c)
[    1.611915] [<c03b4208>] (platform_device_add+0x110/0x16c) from [<c03b47a4>] (platform_device_register+0x30/0x34)
[    1.611962] [<c03b47a4>] (platform_device_register+0x30/0x34) from [<c08f6f94>] (sunxi_snddaudio0_init+0x54/0xa4)
[    1.612007] [<c08f6f94>] (sunxi_snddaudio0_init+0x54/0xa4) from [<c000867c>] (do_one_initcall+0xa8/0x164)
[    1.612052] [<c000867c>] (do_one_initcall+0xa8/0x164) from [<c08d1a74>] (kernel_init+0x168/0x254)
[    1.612098] [<c08d1a74>] (kernel_init+0x168/0x254) from [<c000f1b0>] (kernel_thread_exit+0x0/0x8)
[    1.612125] ---[ end trace bd16a9742f20e8de ]---

Any hint? The codec still works fine. There is no control in alsamixer.

 

Thanks to @tkaiser and @Igor for their help on IRC.

[Nano PI Neo Air] Mic / Audio Out

$
0
0
Hi All,
 
I'm trying to use mic and line-out on nano pi neo air.
 
I did this regarding to topics I found :
apt-get install pulse-audio
pulseaudio -D
 
I tried some modifications in this file without succeed for the moment :
/etc/pulse/daemon.conf
 
I use alsamixer to check volume control but I have no sound when I do :
speaker-test -c4 -l1 -twav
 
Does analog audio or mic input are avaliable on nano pi neo air ?
 
Best Regards

Permissions Problem on 5.25

$
0
0

Hello, I'm using OPI Lite with 5.25 armbian and there is a little problem with the permissions:

 

root@orangepilite:~/Raws/libjpeg/jpeg-8c# ./configure
-bash: ./configure: Permission denied
root@orangepilite:~/Raws/libjpeg/jpeg-8c# sudo ./configure
sudo: ./configure: command not found
root@orangepilite:~/Raws/libjpeg/jpeg-8c# ls | grep configure
configure
configure.ac
 
 
That appeared to me twice, first time i compile and install nodejs and npm was not recognized like a command (ask for permissions after use sudo just said command not found), this is my second hit to that problem, trying to compile libjpeg. I try to gi to root owners for that folder, same results, I try to cp the files and then compile it, same results and so on and so on.
 
Can someone explain me from where these problems are coming?

Wifi with dhd on armbian 5.25 bananapim2p

$
0
0

Hi there,

Recently you helped me to setup a WiFI AP on Armbian and a bananapim2p board: https://forum.armbian.com/index.php/topic/2395-access-point-mode-with-ap6212-on-armbian-521/

 

The current problem I am facing: the dhd module on armbian 5.25 does not on my bananapim2p boards.

To be precise:
I have one bananapi m2p where the dhd module loads perfectly on armbian 5.25, I created an image of this board's emmc and flashed the emmc of two different m2p boards.

The dhd config file looks like:

cat /etc/modprobe.d$ cat /etc/modprobe.d/dhd.conf
options dhd op_mode=2 firmware_path=/lib/firmware/ap6212/fw_bcm43438a0_apsta.bin

With the modprobe configuration the m2p boards hang on boot (raising network interface ...) and boot perfectly if a remove the module configuration.

I am also not able to manually load the dhd module:
 

[  363.081480] dhd_wifi_platform_load: Enter
[  363.978718] dhd_conf_set_chiprev: chip=0xa9a6, chiprev=1
[  363.978999] dhd_conf_set_conf_path_by_nv_path: config_path=/lib/firmware/ap6212/config.txt
[  363.979090] dhd_conf_read_config: Ignore config file /lib/firmware/ap6212/config.txt
[  363.982876] dhd_attach(): thread:dhd_watchdog_thread:57e started
[  363.983230] dhd_attach(): thread:dhd_dpc:57f started
[  363.983286] dhd_dpc_thread: set dpc_cpucore 0 from config.txt
[  363.983559] dhd_attach(): thread:dhd_rxf:580 started
[  363.983637] dhd_deferred_work_init: work queue initialized
[  363.984789] dhd_conf_read_config: Ignore config file /lib/firmware/ap6212/config.txt
[  363.984862] dhd_conf_set_fw_name_by_chip: firmware_path=/lib/firmware/ap6212/fw_bcm43438a1.bin
[  363.984915] dhdsdio_download_firmware: set use_rxchain 0
[  363.984952] dhdsdio_download_firmware: set txglomsize 40
[  363.987065] dhdsdio_download_code_file: Open firmware file failed /lib/firmware/ap6212/fw_bcm43438a1.bin
[  363.987123] _dhdsdio_download_firmware: dongle image file download failed
[  363.987251] dhd_bus_start: failed to download firmware /lib/firmware/ap6212/fw_bcm43438a1.bin
[  363.987300] dhdsdio_probe: dhd_bus_start failed
[  363.987413] dhd_wlfc_deinit():3301, Already disabled!
[  364.040146] dhd_detach(): thread:dhd_watchdog_thread:57e terminated OK
[  364.040219] dhd_detach(): thread:dhd_rxf:580 terminated OK
[  364.040240] dhd_dpc_thread: Unexpected up_cnt 0
[  364.040282] dhd_detach(): thread:dhd_dpc:57f terminated OK
[  364.080411] dhd_os_prealloc: failed to alloc memory, section: 7, size: 0bytes
[  376.080202] dhd_wifi_platform_load_sdio: sdio_register_driver timeout or error
[  376.081002] dhd_module_init: Failed to load the driver, try cnt 0
[  376.081147] dhd_module_init: Failed to load driver max retry reached**
[  376.081189] dhd_module_init: Exit err=-62

Do you have any idea how I could further debug this issue?
It would be great if I could give back to the amazing armbian project, by helping to fix this issue - in case anybody else faces similar issues.

 

Issue using swap

$
0
0

i've noticed swap is not being used on my armbian system (in this case, it is a Banana Pi R1).  I tried to dig deeper and spent several hours looking into a cause and cannot find any way to resolve.

 

I updated everything yesterday to ensure there was no issue with a known bug in a previous package.

 

$ uname -a
Linux raspberrypi 4.9.7-sunxi #1 SMP Thu Feb 2 01:52:06 CET 2017 armv7l GNU/Linux
 
I have my swap located on a 2.5" HD that is attached.  It is on the /u01 mounted partition as a swap file.  I tried creating a second just to eliminate that is a file issue (using mkswap) and trying to activate it.   Both files will activate and show in use, but % swap always remains 0.
 
$ ls -l /u01/swap*
-rw------- 1 root root 1048576000 Apr 13  2016 /u01/swap
-rw-r--r-- 1 root root 1073741824 Feb 19 11:11 /u01/swap2
 
 $ free
             total       used       free     shared    buffers     cached
Mem:       1022748    1000784      21964      20600      12948     802580
-/+ buffers/cache:     185256     837492
Swap:      1023996          0    1023996
 
 
# cat /proc/sys/vm/swappiness
60
 
 
 sysctl -n vm.swappiness 
60
 
# swapon
NAME      TYPE  SIZE USED PRIO
/u01/swap file 1000M   0B   -1
 
 
Yesterday I was getting processes killed because of out of memory.  The system refuses to use the swap.

 

Viewing all 486 articles
Browse latest View live