Installation DreamPlug: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Keine Bearbeitungszusammenfassung |
|||
| Zeile 114: | Zeile 114: | ||
fatload usb 2:1 0x00800000 /uImage | fatload usb 2:1 0x00800000 /uImage | ||
fatload usb 2:1 0x01100000 /uInitrd | fatload usb 2:1 0x01100000 /uInitrd | ||
setenv bootargs console=ttyS0,115200n8 base-installer/initramfs-tools/driver-policy=most | setenv bootargs 'console=ttyS0,115200n8 base-installer/initramfs-tools/driver-policy=most' | ||
bootm 0x00800000 0x01100000 | bootm 0x00800000 0x01100000 | ||
</pre> | </pre> | ||
| Zeile 127: | Zeile 127: | ||
</pre> | </pre> | ||
===Von USB booten=== | ===Von USB booten=== | ||
Version 2: | |||
<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 alt: | |||
<pre> | <pre> | ||
setenv bootcmd_usb 'usb start; fatload usb 2:1 0x00800000 /uImage' | setenv bootcmd_usb 'usb start; fatload usb 2:1 0x00800000 /uImage' | ||
setenv bootargs_console 'console=ttyS0,115200' | setenv bootargs_console 'console=ttyS0,115200' | ||
setenv bootargs_root 'root=/dev/sdc2 rootdelay=10' | setenv bootargs_root 'root=/dev/sdc2 rootdelay=10' | ||
setenv bootcmd 'setenv bootargs ${bootargs_console} ${bootargs_root}; run bootcmd_usb; bootm | setenv bootcmd 'setenv bootargs ${bootargs_console} ${bootargs_root}; run bootcmd_usb; bootm 0x6400000' | ||
run bootcmd_usb | run bootcmd_usb | ||
setenv bootargs '${bootargs_console} ${bootargs_root}' | setenv bootargs '${bootargs_console} ${bootargs_root}' | ||
bootm | bootm 0x6400000 | ||
</pre> | </pre> | ||
==Bootimage erstellen== | |||
<pre> | <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 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 | 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> | </pre> | ||
Version vom 15. Juli 2012, 11:07 Uhr
Minicom einstellen
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
Installation auf USB-Stick
Download
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
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
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 ...'
printenv
bootdelay=3
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
x_bootcmd_ethernet=ping 192.168.7.3
ipaddr=192.168.7.17
y_bc_usb=usb start
y_bc_kernel=fatload usb 0 0x6400000 uImage
y_ba_root=root=/dev/sdc2 rootdelay=10
y_bc_eth=ping 192.168.7.3
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;
stdin=serial
stdout=serial
stderr=serial
bootcmd=run y_boot
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
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
Version 2:
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 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
Bootimage erstellen
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