Cubieboard 3: Unterschied zwischen den Versionen
Epsrw1 (Diskussion | Beiträge) K (Zeilenumbrüche) |
Epsrw1 (Diskussion | Beiträge) (root fs auf sata) |
||
Zeile 21: | Zeile 21: | ||
= Setup (unabhängig vom Image)= | = Setup (unabhängig vom Image)= | ||
[http://www.cubieforums.com/index.php/topic,1146.0.html|cubie 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 == | == Alle evtl benötigten Perl Module installieren == |
Version vom 10. Juli 2014, 10:25 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.
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)
[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)
Digest::MD5
Blocking;
CGI
Color
Config;
configDB;
constant
Data::Dumper;
Date::Parse;
DBI;
Device::Firmata::Constants
Device::Firmata::Platform;
Device::Firmata::Protocol;
Device::SerialPort;
Device::SMBus;
Device::USB;
DevIo;
Digest::MD5
Encode
Error
Exporter
feature
File::Copy
GD;
GD;
Getopt::Std;
GPUtils
HiPi::Device::I2C;
HMConfig;
HMConfig;
HTTP::Cookies;
HTTP::Request;
HTTP::Request::Common;
HttpUtils;
IO::File;
IO::Handle;
IO::Select;
IO::Socket;
IO::Socket::INET;
IO::Socket::SSL;
JSON;
lib::OWNet;
Lirc::Client;
List::MoreUtils
LWP;
LWP::Simple;
LWP::UserAgent;
Mail::IMAPClient;
Math::Trig;
MaxCommon;
MIME::Base64;
MIME::Lite;
Net::FTP;
Net::Jabber;
Net::SMTP::SSL;
Net::Telnet;
ONKYOdb;
OW;
POSIX;
ProtoThreads;
Scalar::Util
SetExtensions
Switch;
Symbol
Sys::Hostname;
TcpServerUtils;
Text::CSV;
URI::Escape;
utf8;
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