Installation DreamPlug: Unterschied zwischen den Versionen

Aus Info-Theke
Zur Navigation springen Zur Suche springen
 
(19 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 1: Zeile 1:
=Minicom einstellen=
[[Kategorie:Host]]
 
* [[Installation u-boot]]
 
==Minicom einstellen==
Als root:
Als root:
* minicom starten:
* Wenn beim Start "/dev/modem nicht gefunden", dann:
<pre>
cd /dev
ln -s ttyUSB0 modem
</pre>
* Strg-A O
<pre>
<pre>
Einstellungen zum seriellen Anschluss:
Einstellungen zum seriellen Anschluss:
Zeile 11: Zeile 22:
     | G - Software Flow Control    : Nein                                  |
     | G - Software Flow Control    : Nein                                  |
</pre>
</pre>
=Links=
=Links=
* [[http://blog.davideaves.com/archives/2011/03/21/installing_debian_gnulinux_6_0_1_squeeze_on_the_dreamplug/| Debian squeeze für Dreamplug]]
* [[http://blog.davideaves.com/archives/2011/03/21/installing_debian_gnulinux_6_0_1_squeeze_on_the_dreamplug/| Debian squeeze für Dreamplug]]
Zeile 17: Zeile 29:
* [[ftp://ftp.debian.org/debian/dists/squeeze/main/installer-armel/current/images/kirkwood/netboot/marvell/sheevaplug/uInitrd| Debian uInitRd]]
* [[ftp://ftp.debian.org/debian/dists/squeeze/main/installer-armel/current/images/kirkwood/netboot/marvell/sheevaplug/uInitrd| Debian uInitRd]]


=Installation auf USB-Stick=
==Installation auf USB-Stick==
==Download==
===Download===
<pre>
<pre>
DIR=/data/dreamplug
DIR=/data/dreamplug
Zeile 49: Zeile 61:
DEV=sdc
DEV=sdc


mount /dev/${DEV}1
mkfs.vfat -F 16 -n udream_boot /dev/${DEV}1
mkfs.vfat -F 32 -n udream_boot /dev/${DEV}1
mkfs.ext4 -L udream_squeeze /dev/${DEV}2
mkfs.ext4 -L udream_squeeze /dev/${DEV}2


Zeile 56: Zeile 67:
cd $DIR
cd $DIR
cp debian/uInitrd /media/trg
cp debian/uInitrd /media/trg
cp cp google/uImage /media/trg
umount /media/trg
umount /media/trg
</pre>
Mehr ist nicht nötig für Debian netboot.


mount -o noatime /dev/${DEV}2 /media/trg
tar --directory /media/trg -xzf google/rootfs/dreamplug_debian_v0.2.tar.gz
cp debian/u
umount /media/trg
</pre>
==Dreamplug von USB-Stick booten==
==Dreamplug von USB-Stick booten==
<pre>
<pre>
Zeile 68: Zeile 77:
</pre>
</pre>


Orginaleinstellungen uboot:
Funktionierende Einstellungen uboot:
<pre>
<pre>
version
version
Zeile 74: Zeile 83:
Marvell-DreamPlug
Marvell-DreamPlug


printenv
setenv many_args '1 2 3 4 ...'
bootcmd=setenv ethact egiga0; ${x_bootcmd_ethernet}; setenv ethact egiga1; ${x_bootcmd_ethernet}; ${x_bootcmd_usb}; ;
 
bootdelay=3
baudrate=115200
baudrate=115200
x_bootcmd_ethernet=ping 192.168.2.1
x_bootcmd_usb=usb start
x_bootcmd_usb=usb start
x_bootcmd_kernel=fatload usb 0 0x6400000 uImage
x_bootcmd_kernel=fatload usb 0 0x6400000 uImage
x_bootargs=console=ttyS0,115200
x_bootargs=console=ttyS0,115200
x_bootargs_root=root=/dev/sda2 rootdelay=10
ethact=egiga0
ethact=egiga0
ethaddr=F0:AD:4E:00:8E:8B
ethaddr=F0:AD:4E:00:8E:8B
eth1addr=F0:AD:4E:00:8E:8C
eth1addr=F0:AD:4E:00:8E:8C
x_bootargs_root=root=/dev/sdc2 rootdelay=10
y_bc_usb=usb start
y_bc_kernel=fatload usb 0 0x6400000 uImage
y_ba_root=root=/dev/sdc2 rootdelay=10
y_ba=console=ttyS0,115200
help=bc is bootcommand, ba is bootarg
y_s_eth=setenv ethact egiga0; ${x_bootcmd_ethernet}; setenv ethact egiga1; ${x_bootcmd_ethernet};
y_boot=${y_bc_usb}; ${y_bc_kernel}; setenv bootargs ${y_ba} ${y_ba_root}; bootm 0x6400000;
x_boot=run y_s_eth; ${x_bootcmd_usb}; ${x_bootcmd_kernel}; setenv bootargs ${x_bootargs} ${x_bootargs_root}; bootm 0x6400000;
bootcmd=run x_boot
y_boot2=run y_s_eth; usb start; run y_boot
y_bc_eth=192.168.178.3
ipaddr=192.168.178.17
x_bootcmd_ethernet=ping 192.168.178.3
bootdelay=10
stdin=serial
stdin=serial
stdout=serial
stdout=serial
stderr=serial
stderr=serial
</p>
</pre>
<p>
Start von USB (Debian Netzinstallation):
<pre>
usb start
fatload usb 2:1 0x00800000 /uImage
fatload usb 2:1 0x01100000 /uInitrd
setenv bootargs 'console=ttyS0,115200n8 base-installer/initramfs-tools/driver-policy=most'
bootm 0x00800000 0x01100000
</pre>
 
===Module und Firmware anpassen===
<pre>
mount /dev/${DEV}2 /media/trg
cd $DIR
cp -a google/rootfs/all/lib/modules/* /media/trg/lib/modules
cp -a google/rootfs/all/lib/firmware/* /media/trg/lib/firmware
vi /media/trg/etc/fstab
</pre>
===Von USB booten===
<pre>
usb start
fatload usb 2:1 0x00800000 /uImage
fatload usb 2:1 0x01100000 /uInitrd
setenv bootargs 'console=ttyS0,115200 root=/dev/sdc2 rootdelay=10'
bootm 0x6400000
</pre>
Version 2:
<pre>
usb start
usb start
fatload usb 0:1 0x00800000 /uImage
fatload usb 0 0x00800000 /uImage.3.4.4
fatload usb 1 0x6400000 uImage
setenv bootargs 'console=ttyS0,115200 root=/dev/sdc2 rootdelay=10'
bootm 0x00800000
</pre>
Version alt:
<pre>
setenv bootcmd_usb 'usb start; fatload usb 2:1 0x00800000 /uImage'
setenv bootargs_console 'console=ttyS0,115200'
setenv bootargs_root 'root=/dev/sdc2 rootdelay=10'
setenv bootcmd 'setenv bootargs ${bootargs_console} ${bootargs_root}; run bootcmd_usb; bootm 0x6400000'
run bootcmd_usb
setenv bootargs '${bootargs_console} ${bootargs_root}'
bootm 0x6400000
</pre>
 
== WLan aktivieren ==
/etc/modprobe.d/blacklist.conf (excerpt):
<pre>
# guruplug wireless *client* modules
blacklist libertas
blacklist libertas_sdio
</pre>
/etc/network/interfaces:
<pre>
auto uap0
iface uap0 inet static
        pre-up modprobe uap8xxx
        post-up /etc/network/guruplug-wl-conf.sh start
        post-down /etc/network/guruplug-wl-conf.sh stop
        address 192.168.7.3
        netmask 255.255.255.0
</pre>
<pre>
FN=/etc/network/guruplug-wl-conf.sh
cat <<'EOS' >$FN
#!/bin/sh
 
SSID="regina-regio"
PW="some_password"
CH=5
 
PATH=/sbin:/bin:/usr/sbin:/usr/bin
 
case "$1" in
        start) 
                set -x -e
                uaputl sys_cfg_radio_ctl 0              # radio on
                uaputl sys_cfg_channel $CH              # set channel
                uaputl sys_cfg_ssid $SSID              # set SSID
                uaputl sys_cfg_protocol 32              # WPA2
                uaputl sys_cfg_cipher 8 8              # AES CCMP / AES CCMP
                uaputl sys_cfg_wpa_passphrase $PW      # set password
                uaputl bss_start                        # start the BSS
                set +x
                exit 0
                ;;
 
        stop) 
                set -x
                uaputl bss_stop                # stop the BSS
                uaputl sys_cfg_radio_ctl 1      # radio off
                set +x
                exit 0
                ;;
 
        status)
                echo "--------------------------------------------------------------------------"
                uaputl sys_info                # display system info
                uaputl sta_list                # display list of clients
                echo "--------------------------------------------------------------------------"
                exit 0
                ;;
esac
 
exit 1
EOS
chmod uog+x $FN
</pre>
 
==Bootimage erstellen==
<pre>
mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n "Linux" -d vmlinuz-3.2.0-0.bpo.2-kirkwood uImage
mkimage -A arm -O linux -T ramdisk -C none -a 0 -e 0 -n initramfs -d initrd.img-3.2.0-0.bpo.2-kirkwood uInitrd
</pre>
 
== Neuen Kernel installieren ==
* Download von sheeva-3.4.4-Modules.tar.gz + sheeva-3.4.4-System.map + dream-3.4.4-uImage http://www.xilka.com/sheeva/kernel
<pre>
KVer=3.4.4
tar x -C / --overwrite -zf sheeva-$KVer-Modules.tar.gz
cp sheeva-$KVer-System.map dream-$KVer-uImage /boot/
depmod -eF /boot/sheeva-$KVer-System.map $KVer
</pre>
 
== Datenträger ==
* /dev/sdd8: LABEL="wd1_data" UUID="6f6d161c-cd65-4d02-84fb-96212fd125e8" TYPE="ext4"
* /dev/sda2: LABEL="dreamv8_fs" UUID="26c4d755-bac1-4c6d-8419-6608fa25bf21" SEC_TYPE="ext2" TYPE="ext3"
* /dev/sda1: SEC_TYPE="msdos" LABEL="dreamv8_kr" UUID="510F-E85E" TYPE="vfat"
* /dev/sdc1: SEC_TYPE="msdos" LABEL="udream_boot" UUID="C004-8ED1" TYPE="vfat"
* /dev/sdc2: LABEL="udream_squeeze" UUID="ba61484c-bdad-4e1b-8811-2077cb7cce0f" TYPE="ext4"
* /dev/sdd2: LABEL="w1_squeeze" UUID="86f0517f-8c0c-4a4a-b84a-7b4813c09cbd" TYPE="ext4"
* /dev/sdd6: LABEL="wd1_swap" UUID="349862c4-7c5b-441a-91c4-3c7f9e4af8b9" TYPE="swap"

Aktuelle Version vom 21. Juli 2012, 10:49 Uhr


Minicom einstellen[Bearbeiten]

Als root:

  • minicom starten:
  • Wenn beim Start "/dev/modem nicht gefunden", dann:
cd /dev
ln -s ttyUSB0 modem
  • Strg-A O
Einstellungen zum seriellen Anschluss:
    | A - Serieller Anschluss      : /dev/ttyUSB0                           |
    | B - Pfad zur Lockdatei       : /var/lock                              |
    | C - Programm zur Rufannahme  :                                        |
    | D - Programm zum Wählen      :                                        |
    | E - Bps/Par/Bits             : 115200 8N1                             |
    | F - Hardware Flow Control    : Nein                                   |
    | G - Software Flow Control    : Nein                                   |

Links[Bearbeiten]

Installation auf USB-Stick[Bearbeiten]

Download[Bearbeiten]

DIR=/data/dreamplug
mkdir $DIR
cd $DIR
mkdir google debian
cd debian
wget ftp://ftp.debian.org/debian/dists/squeeze/main/installer-armel/current/images/kirkwood/netboot/marvell/sheevaplug/uInitrd
cd ../google
for file in dream_burn_spi.tar.bz2 linux-2.6.33.6.tar.bz2 dreamplug_debian_v0.2.zip.001 \
    dreamplug_debian_v0.2.zip.002 "Set Up A Debian File System In DreamPlug v0.2-20110519.pdf" \
    uImage "DreamPlug User Guide_US_v1.1.pdf"  uImage_2.6.33.7 ; do
 wget http://dreamplug.googlecode.com/files/$file
done
mkdir rootfs
cd rootfs
cat ../dreamplug_debian_v0.2.zip.001 ../dreamplug_debian_v0.2.zip.002 >debian_rootfs.zip
unzip debian_rootfs.zip
rm debain_rootfs.zip
cd $DIR

USB-Stick einrichten[Bearbeiten]

Zwei Partitionen: 50 Spuren (280 MB) FAT32, 3GByte ext4

   Device Boot      Start         End      Blocks   Id  System
/dev/sdc1               1          50       69376    c  W95 FAT32 (LBA)
/dev/sdc2              51        2781     3845248   83  Linux
</p>
# ======= Warnung: Falsche Definition von DEV zerstört ein Laufwerk ==========
DEV=sdc

mkfs.vfat -F 16 -n udream_boot /dev/${DEV}1
mkfs.ext4 -L udream_squeeze /dev/${DEV}2

mount /dev/${DEV}1 /media/trg
cd $DIR
cp debian/uInitrd /media/trg
cp cp google/uImage /media/trg
umount /media/trg

Mehr ist nicht nötig für Debian netboot.

Dreamplug von USB-Stick booten[Bearbeiten]

minicom

Funktionierende Einstellungen uboot:

version
U-Boot 2011.06-02334-g8f495d9-dirty (May 31 2011 - 02:06:26)
Marvell-DreamPlug

setenv many_args '1 2 3 4 ...'

baudrate=115200
x_bootcmd_usb=usb start
x_bootcmd_kernel=fatload usb 0 0x6400000 uImage
x_bootargs=console=ttyS0,115200
ethact=egiga0
ethaddr=F0:AD:4E:00:8E:8B
eth1addr=F0:AD:4E:00:8E:8C
x_bootargs_root=root=/dev/sdc2 rootdelay=10
y_bc_usb=usb start
y_bc_kernel=fatload usb 0 0x6400000 uImage
y_ba_root=root=/dev/sdc2 rootdelay=10
y_ba=console=ttyS0,115200
help=bc is bootcommand, ba is bootarg
y_s_eth=setenv ethact egiga0; ${x_bootcmd_ethernet}; setenv ethact egiga1; ${x_bootcmd_ethernet};
y_boot=${y_bc_usb}; ${y_bc_kernel}; setenv bootargs ${y_ba} ${y_ba_root}; bootm 0x6400000;
x_boot=run y_s_eth; ${x_bootcmd_usb}; ${x_bootcmd_kernel}; setenv bootargs ${x_bootargs} ${x_bootargs_root}; bootm 0x6400000;
bootcmd=run x_boot
y_boot2=run y_s_eth; usb start; run y_boot
y_bc_eth=192.168.178.3
ipaddr=192.168.178.17
x_bootcmd_ethernet=ping 192.168.178.3
bootdelay=10
stdin=serial
stdout=serial
stderr=serial

Start von USB (Debian Netzinstallation):

usb start
fatload usb 2:1 0x00800000 /uImage
fatload usb 2:1 0x01100000 /uInitrd
setenv bootargs 'console=ttyS0,115200n8 base-installer/initramfs-tools/driver-policy=most'
bootm 0x00800000 0x01100000

Module und Firmware anpassen[Bearbeiten]

mount /dev/${DEV}2 /media/trg
cd $DIR
cp -a google/rootfs/all/lib/modules/* /media/trg/lib/modules
cp -a google/rootfs/all/lib/firmware/* /media/trg/lib/firmware
vi /media/trg/etc/fstab

Von USB booten[Bearbeiten]

usb start
fatload usb 2:1 0x00800000 /uImage
fatload usb 2:1 0x01100000 /uInitrd
setenv bootargs 'console=ttyS0,115200 root=/dev/sdc2 rootdelay=10'
bootm 0x6400000

Version 2:

usb start
fatload usb 0 0x00800000 /uImage.3.4.4
setenv bootargs 'console=ttyS0,115200 root=/dev/sdc2 rootdelay=10'
bootm 0x00800000

Version alt:

setenv bootcmd_usb 'usb start; fatload usb 2:1 0x00800000 /uImage'
setenv bootargs_console 'console=ttyS0,115200'
setenv bootargs_root 'root=/dev/sdc2 rootdelay=10'
setenv bootcmd 'setenv bootargs ${bootargs_console} ${bootargs_root}; run bootcmd_usb; bootm 0x6400000'
run bootcmd_usb
setenv bootargs '${bootargs_console} ${bootargs_root}'
bootm 0x6400000

WLan aktivieren[Bearbeiten]

/etc/modprobe.d/blacklist.conf (excerpt):

# guruplug wireless *client* modules
blacklist libertas
blacklist libertas_sdio

/etc/network/interfaces:

auto uap0
iface uap0 inet static
        pre-up modprobe uap8xxx
        post-up /etc/network/guruplug-wl-conf.sh start
        post-down /etc/network/guruplug-wl-conf.sh stop
        address 192.168.7.3
        netmask 255.255.255.0
FN=/etc/network/guruplug-wl-conf.sh
cat <<'EOS' >$FN
#!/bin/sh

SSID="regina-regio"
PW="some_password"
CH=5

PATH=/sbin:/bin:/usr/sbin:/usr/bin

case "$1" in
        start)  
                set -x -e
                uaputl sys_cfg_radio_ctl 0              # radio on
                uaputl sys_cfg_channel $CH              # set channel
                uaputl sys_cfg_ssid $SSID               # set SSID
                uaputl sys_cfg_protocol 32              # WPA2
                uaputl sys_cfg_cipher 8 8               # AES CCMP / AES CCMP
                uaputl sys_cfg_wpa_passphrase $PW       # set password
                uaputl bss_start                        # start the BSS
                set +x
                exit 0
                ;;

        stop)   
                set -x
                uaputl bss_stop                 # stop the BSS
                uaputl sys_cfg_radio_ctl 1      # radio off
                set +x
                exit 0
                ;;

        status) 
                echo "--------------------------------------------------------------------------"
                uaputl sys_info                 # display system info
                uaputl sta_list                 # display list of clients
                echo "--------------------------------------------------------------------------"
                exit 0
                ;;
esac

exit 1
EOS
chmod uog+x $FN

Bootimage erstellen[Bearbeiten]

mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n "Linux" -d vmlinuz-3.2.0-0.bpo.2-kirkwood uImage
mkimage -A arm -O linux -T ramdisk -C none -a 0 -e 0 -n initramfs -d initrd.img-3.2.0-0.bpo.2-kirkwood uInitrd

Neuen Kernel installieren[Bearbeiten]

KVer=3.4.4
tar x -C / --overwrite -zf sheeva-$KVer-Modules.tar.gz
cp sheeva-$KVer-System.map dream-$KVer-uImage /boot/
depmod -eF /boot/sheeva-$KVer-System.map $KVer

Datenträger[Bearbeiten]

  • /dev/sdd8: LABEL="wd1_data" UUID="6f6d161c-cd65-4d02-84fb-96212fd125e8" TYPE="ext4"
  • /dev/sda2: LABEL="dreamv8_fs" UUID="26c4d755-bac1-4c6d-8419-6608fa25bf21" SEC_TYPE="ext2" TYPE="ext3"
  • /dev/sda1: SEC_TYPE="msdos" LABEL="dreamv8_kr" UUID="510F-E85E" TYPE="vfat"
  • /dev/sdc1: SEC_TYPE="msdos" LABEL="udream_boot" UUID="C004-8ED1" TYPE="vfat"
  • /dev/sdc2: LABEL="udream_squeeze" UUID="ba61484c-bdad-4e1b-8811-2077cb7cce0f" TYPE="ext4"
  • /dev/sdd2: LABEL="w1_squeeze" UUID="86f0517f-8c0c-4a4a-b84a-7b4813c09cbd" TYPE="ext4"
  • /dev/sdd6: LABEL="wd1_swap" UUID="349862c4-7c5b-441a-91c4-3c7f9e4af8b9" TYPE="swap"