Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Beide Seiten der vorigen RevisionVorhergehende Überarbeitung
Nächste Überarbeitung
Vorhergehende Überarbeitung
software:linux:buildroot:zoom:image [2014-11-18 10:10] abajricsoftware:linux:buildroot:zoom:image [2019-09-24 11:35] (aktuell) ditaranto
Zeile 4: Zeile 4:
  
 <code> <code>
-$ sudo apt-get install binutils build-essential g++ make cmake git libncurses5-dev unzip screen+$ sudo apt-get install binutils build-essential g++ make cmake git libncurses5-dev unzip screen python
 </code> </code>
  
Zeile 38: Zeile 38:
 </code> </code>
  
-Folgendes Konfigurationsfile in den Ordner //config// kopieren: [[.:buildroot_zoom_defconfig | zoom_defconfig]].+Folgendes Konfigurationsfile in den Ordner //configs// kopieren: [[.:buildroot_zoom_defconfig | zoom_defconfig]].
  
 <code> <code>
Zeile 69: Zeile 69:
  
 <code> <code>
-setenv bootargs 'mem=32M console=ttyS2,115200n8 root=/dev/mmcblk0p2 rw rootwait ip=off'+setenv bootargs 'mem=32M console=ttyS2,115200n8 root=/dev/mmcblk0p2 ro rootwait ip=off'
 setenv bootcmd 'mmc rescan 0;fatload mmc 0 0xc0700000 uImage; bootm c0700000;' setenv bootcmd 'mmc rescan 0;fatload mmc 0 0xc0700000 uImage; bootm c0700000;'
 run bootcmd run bootcmd
Zeile 92: Zeile 92:
  
 Folgende Einstellungen müssen gemacht werden: Folgende Einstellungen müssen gemacht werden:
 +  * Device Drivers
 +    * GPIO Support
 +      * [*] /sys/class/gpio/... (sysfs interface)
   * Device Drivers   * Device Drivers
     * Generic Driver Options     * Generic Driver Options
Zeile 169: Zeile 172:
  
 tmpfs           /media/ram     tmpfs    mode=1777              0 tmpfs           /media/ram     tmpfs    mode=1777              0
 +tmpfs           /root          tmpfs    mode=1777              0
 +tmpfs           /var           tmpfs    mode=1777              0
 +</code>
 +
 +Speichern mit Ctrl+X, Y.
 +
 +
 +
 +<code>
 +$ sudo nano etc/inittab
 +</code>
 +
 +Die Datei solte, wie folgt, aussehen:
 +<code>
 +# /etc/inittab
 +#
 +# Copyright (C) 2001 Erik Andersen <andersen@codepoet.org>
 +#
 +# Note: BusyBox init doesn't support runlevels.  The runlevels field is
 +# completely ignored by BusyBox init. If you want runlevels, use
 +# sysvinit.
 +#
 +# Format for each entry: <id>:<runlevels>:<action>:<process>
 +#
 +# id        == tty to run on, or empty for /dev/console
 +# runlevels == ignored
 +# action    == one of sysinit, respawn, askfirst, wait, and once
 +# process   == program to run
 +
 +# Startup the system
 +null::sysinit:/bin/mount -t proc proc /proc
 +#null::sysinit:/bin/mount -o remount,rw / # REMOUNT_ROOTFS_RW
 +null::sysinit:/bin/mkdir -p /dev/pts
 +null::sysinit:/bin/mkdir -p /dev/shm
 +null::sysinit:/bin/mkdir -p /media/ram
 +null::sysinit:/bin/mount -a
 +null::sysinit:/bin/mkdir -p /tmp/etc 
 +null::sysinit:/bin/mkdir -p /var/run
 +null::sysinit:/bin/mkdir -p /var/lock
 +null::sysinit:/bin/mkdir -p /var/empty
 +null::sysinit:/bin/mkdir -p /var/log
 +null::sysinit:/bin/hostname -F /etc/hostname
 +# now run any rc scripts
 +::sysinit:/etc/init.d/rcS
 +
 +# Put a getty on the serial port
 +ttyS2::respawn:/sbin/getty -L  ttyS2 115200 vt100 # GENERIC_SERIAL
 +
 +# Stuff to do for the 3-finger salute
 +::ctrlaltdel:/sbin/reboot
 +
 +# Stuff to do before rebooting
 +null::shutdown:/etc/init.d/rcK
 +null::shutdown:/bin/umount -a -r
 +null::shutdown:/sbin/swapoff -a
 </code> </code>