Giter Site home page Giter Site logo

kyarr's Introduction

kyarr

Installation instructions

NanoPi NEO Air

Flash eMMC (from SD-booted system)

# dd if=nanopi-air-core-qte-sd4g-20161213.img of=/dev/mmcblk1 bs=1M
# apt-get install parted
# parted /dev/mmcblk1
(parted) print
(parted) resizepart 2 100%
(parted) quit
# resize2fs /dev/mmcblk1p2

Setup WiFi

# mount /dev/mmcblk1p2 /mnt/
# cd /etc/wpa_supplicant
# cp /etc/wpa_supplicant/wpa_supplicant.conf ./
# cat wpa_supplicant.conf
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={
        ssid="ESSID"
        psk="PASSWORD"
}
# umount /mnt/

Tools Installation

After removing SD card and rebooting into eMMC:

# apt-get install alsa-base
# timedatectl set-timezone Europe/Warsaw
# apt-get install dosfstools
# apt-get install avahi-daemontools

SD card management

Creating new partition map

Partition script clear.sfdisk:

label: dos
label-id: 0x6b797272
unit: sectors

start=8192, type=b

Where 0x6b797272 is a magic number of your choice. Apply partition script:

# sfdisk /dev/mmcblk1 < clear.sfdisk

Format partition:

# mkfs.vfat -n KYARR /dev/mmcblk1p1

Recording instructions

arecord -l

This gives:

**** List of CAPTURE Hardware Devices ****
card 1: sndhdmi [sndhdmi], device 0: SUNXI-HDMIAUDIO sndhdmi-0 []
Subdevices: 1/1
Subdevice #0: subdevice #0
card 2: Microphone [Logitech USB Microphone], device 0: USB Audio [USB Audio]
Subdevices: 1/1
Subdevice #0: subdevice #0

Then use -D hw:2,0 to record from card 2, device 0:

arecord --max-file-time 180 -D hw:2,0 -t wav -c 1 -r 44100 -f S16_LE --use-strftime /mnt/%Y-%m-%d/rec-%H%M%S-%v.wav

It will create new file every 180 seconds.

kyarr's People

Contributors

jfedyczak avatar

Watchers

James Cloos avatar  avatar

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.