Cubieboard 3: Unterschied zwischen den Versionen

Aus FHEMWiki
Zur Navigation springen Zur Suche springen
(root fs auf sata)
(Liste überarbeitet)
Zeile 97: Zeile 97:




{{Randnotiz|RNTyp=y|RNText=Im Moment ist die Liste noch völlig unbrauchbar. Jetzt müssen wir alles, was nicht ein Perl Modul ist, rauswerfen ;)}}
{{Randnotiz|RNTyp=y|RNText=Im Moment ist die Liste noch völlig unbrauchbar. Jetzt müssen wir alles, was nicht ein Perl Modul ist, rauswerfen ;) }}
 
edit: ich schlage vor, alles was als fertiges paket zu kriegen ist NICHT über cpan zu holen, da cpan für laien etwas umständlich ist. epsrw1
 
{{Randnotiz|RNTyp=y|RNText='''edit:''' kursiv-text sehe ich als löschkandidat, kann bitte jemand korrekturlesen und rauslöschen. epsrw1}}
 
Digest::MD5
Digest::MD5


Zeile 118: Zeile 123:
DBI;
DBI;


Device::Firmata::Constants
Device::Firmata


''Device::Firmata::Constants
Device::Firmata::Platform;
Device::Firmata::Platform;
Device::Firmata::Protocol;
Device::Firmata::Protocol;
'' ->Device::Firmata komplett benötigt


Device::SerialPort;
Device::SerialPort;
Zeile 132: Zeile 138:
DevIo;
DevIo;


Digest::MD5
''Digest::MD5
'' ->standardmäßig vorhanden (?)


Encode
Encode
Zeile 139: Zeile 146:


Exporter
Exporter
feature


File::Copy
File::Copy
GD;


GD;
GD;
Zeile 153: Zeile 156:


HiPi::Device::I2C;
HiPi::Device::I2C;
HMConfig;


HMConfig;
HMConfig;
Zeile 162: Zeile 163:
HTTP::Request;
HTTP::Request;


HTTP::Request::Common;
''HTTP::Request::Common;
'' -->HTTP::Request komplett


HttpUtils;
''HttpUtils;
'' -->fhem-datei


IO::File;
IO::File;
Zeile 174: Zeile 177:
IO::Socket;
IO::Socket;


IO::Socket::INET;
''IO::Socket::INET;
 
IO::Socket::SSL;
IO::Socket::SSL;
'' -->IO::Socket komplett


JSON;
JSON;
Zeile 188: Zeile 191:
LWP;
LWP;


LWP::Simple;
''LWP::Simple;
 
LWP::UserAgent;
LWP::UserAgent;
'' --> LWP komplett. besser über apt-get da installation automatisch. über cpan etwas umständlich für laien.


Mail::IMAPClient;
Mail::IMAPClient;
Zeile 196: Zeile 199:
Math::Trig;
Math::Trig;


MaxCommon;
''MaxCommon;
'' -->fhem-file


MIME::Base64;
MIME::Base64;
Zeile 210: Zeile 214:
Net::Telnet;
Net::Telnet;


ONKYOdb;
''POSIX;
 
'' -->immer vorhanden (?)
OW;
 
POSIX;


ProtoThreads;
ProtoThreads;
Zeile 220: Zeile 221:
Scalar::Util
Scalar::Util


SetExtensions
''SetExtensions
'' -->fhem ?


Switch;
Switch;
Zeile 234: Zeile 236:
URI::Escape;
URI::Escape;


utf8;
''utf8;
'' --> immer vorhanden


XML::Simple;
XML::Simple;

Version vom 10. Juli 2014, 10:53 Uhr

Work in progress

Beim Cubieboard 3, auch Cubietruck genannt, handelt es sich um einen Einplatinencomputer. Das Herz des Rechners ist ein Allwinner A20. Wer mehr dazu lesen möchte kann dies auf der entsprechenden Wikipedia Seite machen.

Zur Zeit dürfte der Cubietruck das leistungsfähigste Einplatinensystem sein. Nur mit fhem alleine ist das System vermutlich reichlich unterfordert. Dank des SATA Anschlusses steht aber dem Einsatz als kleiner Server für das Heimnetzwerk nichts entgegen.


Emblem-question-yellow.svgDer Artikel soll später Installskripte für fhem auf dem Cubietruck beinhalten. Sozusagen ein all in one fhem Setup. Es spricht auf dem Cubietruck nichts dagegen nicht einfach alle Perl Module, die irgendein fhem Modul braucht, gleich am Anfang zu installieren. Gleiches gilt letztlich für Software wie Alsa, mplayer etc. Zu guter letzt sollten gleich noch die passende Rechte gesetzt werden...


Images - Qual der Wahl

Im Gegensatz zum Raspberry Pi gibt es kein "offizielles" Linux für den Cubietruck.

Zur Zeit (10.07.2014) ist das Image von Slovenia das Einzige, welches das Onboard Bluetooth Device nutzen kann

Spezielle Anpassungen für die unterschiedlichen Images

hier fehlt noch Text

Setup (unabhängig vom Image)

setup overview

[http://docs.cubieboard.org/tutorials/ct1/installation/moving_rootfs_from_nandflash_to_hard_drive |Topic: The ULTIMATE Cubietruck set-up guide]

Root Filesystem auf SATA Festplatte umziehen

Moving Rootfs From Nandflash To Hard Drive (improves performance) http://docs.cubieboard.org/tutorials/ct1/installation/moving_rootfs_from_nandflash_to_hard_drive

There is also this thread which uses Tar and is said to be better than dd for doing this: http://www.cubieforums.com/index.php/topic,1147.0.html


Prepare the drive for rootfs

The drive must have a primary partition (for example with 10 GByte) formated with filesystem "ext4". You can use the Linaro user interface DISK app, gparted or use the following shell commands

list all available drives Quote

   #fdisk -l


Choose the drive you want to make changes to (e.g. sda):

Quote

   #fdisk /dev/sda


use "p" (print partition of a drive), "d" delete a partition or "n" (create new partition). The partition should be of type "83"

Format the partition for rootfs with EXT4 filesystem Quote

   #mkfs.ext4 /dev/sda1


Copying Rootfs

We assume that, /dev/sda is the hard drive we want to install

Quote

   $sudo su - root
   #dd if=/dev/nandb of=/dev/sda1 bs=1M


Changing Boot Parameters Quote

   $sudo su - root
   #mount /dev/nanda /mnt
   #vi /mnt/uEnv.txt


Change the contents of uEnv.txt to Quote

   root@cubietruck:~# cat /mnt/uEnv.txt
   console=tty0
   extraargs=console=ttyS0,115200 hdmi.audio=EDID:0 disp.screen0_output_mode=EDID:1280x720p50 rootwait panic=10 rootfstype=ext4 rootflags=discard
   nand_root=/dev/sda1


   #sync
   #umount /mnt
   #reboot


Alle evtl benötigten Perl Module installieren

(In der Bearbeitungsansicht ist es eine schöne Liste)


Emblem-question-yellow.svgIm Moment ist die Liste noch völlig unbrauchbar. Jetzt müssen wir alles, was nicht ein Perl Modul ist, rauswerfen ;)


edit: ich schlage vor, alles was als fertiges paket zu kriegen ist NICHT über cpan zu holen, da cpan für laien etwas umständlich ist. epsrw1

Emblem-question-yellow.svgedit: kursiv-text sehe ich als löschkandidat, kann bitte jemand korrekturlesen und rauslöschen. epsrw1


Digest::MD5

Blocking;

CGI

Color

Config;

configDB;

constant

Data::Dumper;

Date::Parse;

DBI;

Device::Firmata

Device::Firmata::Constants Device::Firmata::Platform; Device::Firmata::Protocol; ->Device::Firmata komplett benötigt

Device::SerialPort;

Device::SMBus;

Device::USB;

DevIo;

Digest::MD5 ->standardmäßig vorhanden (?)

Encode

Error

Exporter

File::Copy

GD;

Getopt::Std;

GPUtils

HiPi::Device::I2C;

HMConfig;

HTTP::Cookies;

HTTP::Request;

HTTP::Request::Common; -->HTTP::Request komplett

HttpUtils; -->fhem-datei

IO::File;

IO::Handle;

IO::Select;

IO::Socket;

IO::Socket::INET; IO::Socket::SSL; -->IO::Socket komplett

JSON;

lib::OWNet;

Lirc::Client;

List::MoreUtils

LWP;

LWP::Simple; LWP::UserAgent; --> LWP komplett. besser über apt-get da installation automatisch. über cpan etwas umständlich für laien.

Mail::IMAPClient;

Math::Trig;

MaxCommon; -->fhem-file

MIME::Base64;

MIME::Lite;

Net::FTP;

Net::Jabber;

Net::SMTP::SSL;

Net::Telnet;

POSIX; -->immer vorhanden (?)

ProtoThreads;

Scalar::Util

SetExtensions -->fhem ?

Switch;

Symbol

Sys::Hostname;

TcpServerUtils;

Text::CSV;

URI::Escape;

utf8; --> immer vorhanden

XML::Simple;

Programme die auf keinem fhem Rechner fehlen sollten

apt-get install gcc

apt-get install dpkg-dev

apt-get source perl

sudo cpan

install CPAN

reload cpan

sudo cpan install YAML

sudo apt-get install git-core

apt-get install libdbi-perl libdbd-mysql-perl

Rechteanpassung

Links

  • Forumsartikel und HowTo um slovenia´s (Igor Pecovnik) Image zu installieren