Cubieboard 3: Unterschied zwischen den Versionen

Aus FHEMWiki
K (Anleitung zum Umziehen von Nand auf SATA angepasst)
Zeile 67: Zeile 67:
Dann bitte wieder mit obiger Anleitung anfangen...
Dann bitte wieder mit obiger Anleitung anfangen...


== Setup (unabhängig vom Image) ==
=== Setup (Lubuntu) ===


[http://www.cubieforums.com/index.php/topic,1146.0.html|cubie setup overview]
[http://www.cubieforums.com/index.php/topic,1146.0.html|cubie setup overview]
Zeile 75: Zeile 75:


=== Root Filesystem auf SATA Festplatte umziehen ===
=== Root Filesystem auf SATA Festplatte umziehen ===
Das braucht man, wenn man schon komplett eine Installation im Nand vom Cubietruck hat, und später mal eine Platte nachrüstet:
Moving Rootfs From Nandflash To Hard Drive (improves performance)
Moving Rootfs From Nandflash To Hard Drive (improves performance)
http://docs.cubieboard.org/tutorials/ct1/installation/moving_rootfs_from_nandflash_to_hard_drive
http://docs.cubieboard.org/tutorials/ct1/installation/moving_rootfs_from_nandflash_to_hard_drive
Zeile 81: Zeile 83:
http://www.cubieforums.com/index.php/topic,1147.0.html
http://www.cubieforums.com/index.php/topic,1147.0.html


 
* #fdisk -l
Prepare the drive for rootfs
* Choose the drive you want to make changes to (e.g. sda):
 
* #fdisk /dev/sda
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
* 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
list all available drives
* #mkfs.ext4 /dev/sda1
Quote
* Copying Rootfs
 
* We assume that, /dev/sda is the hard drive we want to install
    #fdisk -l
* $sudo su - root
 
* #dd if=/dev/nandb of=/dev/sda1 bs=1M
 
* Changing Boot Parameters
Choose the drive you want to make changes to (e.g. sda):
* $sudo su - root
 
* #mount /dev/nanda /mnt
Quote
* #nano /mnt/uEnv.txt
 
* Change the contents of uEnv.txt to (nur diese eine Zeile verändern!)
    #fdisk /dev/sda
** nand_root=/dev/sda1
 
* #sync
 
* #umount /mnt
use "p" (print partition of a drive), "d" delete a partition or "n" (create new partition). The partition should be of type "83"
* #reboot
 
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





Version vom 5. November 2014, 03:36 Uhr

Todo: Bis auf die Links ist diese Seite insgesamt dringend überarbeitungsbedürftig und ungepflegt


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.

Anmerkung zur Stromversorgung: Dem Cubietruck liegt ein Stromkabel bei. USB-DC 4mmx1,7mm; selbiges braucht man zwingend wenn man eine SSD an den Cubietruck anschließt. Wenn man selbiges nicht vorhat, kann man den Cubietruck auch über die miniUSB Buchse mit Strom versorgen (aber nur dann!)

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

Installation für Igors Image

  • Image runterladen, entpacken
  • Mit beiliegendem Programm (ist im Archiv mit dabei) und SD Kartenleser auf SD Karte bringen
  • Cubietruck mit fertiger microSD Karte booten (vorher Netzwerkkabel einstecken)
  • Mit Putty einloggen, sobald die LED-Lichtorgel erloschen ist
  • Benutzername: root
  • Passwort: 1234
  • Passwort ändern
  • chmod +x nand-install.sh
  • evtl. kurz warten, könnte sein, dass der Cubietruck nochmal einen Neustart hinlegt. Keine Ahnung warum, kann ich aber bei meinen 2 reproduzieren)
  • ./nand-install.sh
  • Mit y bestätigen
  • Cubietruck bootet (SD Karte drinnen lassen)

Jetzt gibt es zwei Möglichkeiten:

  • Alles in den Nand Speicher installieren
    • nochmal ./nand-install.sh ausführen,
    • wenn fertig Return drücken, SD raus
    • unten weiterlesen...
  • Das ganze Image auf eine angeschlossene SSD/HDD zu installieren (das meiste davon ist von Betateilchen!)
    • wir haben 1x nand-install.sh ausgeführt (siehe oben...)
    • chmod +x sata-install.sh
    • mit fdisk eine Partition anlegen
    • ./sata-install.sh
    • den gewünschten Reboot bitte MIT eingelegter SD Karte machen (unnötig, wenn man 2x das nand-install.sh ausgeführt hat, was aber recht lange dauert)
    • # Zeiger auf das rootfs in Richtung SSD Platte verbiegen
    • mkdir test
    • mount /dev/nand1 test
    • cd test
    • cp uEnv.txt uEnv.txt.backup
    • nano uEnv.txt
    • Zeile nand_root ändern in:
    • nand_root=/dev/sda1 rootwait
    • Strg+O (zum speichern)
    • Strg+X (zum beenden)
    • cd ..
    • umount test
    • Reboot ohne SD Karte...

Bei Problemen

Wenn es nach obiger Anleitung nicht funktioniert, dann hat vermutlich das Igor Image im Nand nicht die erforderlichen Dateien angelegt. In dem Fall bleiben alle Lichter einfach aus...

Lösung:

Vorher muss mit den Phoenix Tools z.B. Lubuntu installiert werden. Das ist hier beschrieben. Noch ein Tipp: Wenn man mit den Phonix Tools nicht weiter kommt (also das Flashen nicht anläuft), am Rechner einen anderen USB Port nehmen. Imho sind die Phoenix Tools ein Musterbeispiel an gesammelten Merkwürdigkeiten... Ach ja, kein Update der PhoenixTools machen, das geht komplett in die Hose (Stand: 4.11.2014)

Dann bitte wieder mit obiger Anleitung anfangen...

Setup (Lubuntu)

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

Das braucht man, wenn man schon komplett eine Installation im Nand vom Cubietruck hat, und später mal eine Platte nachrüstet:

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

  • #fdisk -l
  • Choose the drive you want to make changes to (e.g. sda):
  • #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
  • #mkfs.ext4 /dev/sda1
  • Copying Rootfs
  • We assume that, /dev/sda is the hard drive we want to install
  • $sudo su - root
  • #dd if=/dev/nandb of=/dev/sda1 bs=1M
  • Changing Boot Parameters
  • $sudo su - root
  • #mount /dev/nanda /mnt
  • #nano /mnt/uEnv.txt
  • Change the contents of uEnv.txt to (nur diese eine Zeile verändern!)
    • nand_root=/dev/sda1
  • #sync
  • #umount /mnt
  • #reboot


Links

  • Forumsartikel und HowTo um slovenia´s (Igor Pecovnik) Image zu installieren
  • "Notizzettel" zur Einrichtung Igor-Image auf Cubietruck: Beitrag
  • Für Fhem beim Igor-Image zusätzlich notwendige Perl-Module: Beitrag