Hier nochmal die Schritte:
1. Uboot ändern, steht in den Docs
2. Build-Umgebung erstellen
Dann im Terminal
unset LD_LIBRARY_PATH # laut Wiki sinnvoll, hab ich selbst aber nicht gemacht.
sudo ln -sf /bin/bash /bin/sh
mkdir $HOME/spark
cd $HOME/spark
git clone git://gitorious.org/neutrino-hd/buildsystem-cs.git buildsystem-cs
cd buildsystem-cs
mkdir $HOME/download # Alternative 1
ln -s $HOME/download download # Alternative 1
mkdir download # Alternative 2
echo "PLATFORM=spark" > config
echo "MAINTAINER=Sparkatus" >> config # optinaler Nick
make preqs
make crosstool
make bootstrap
make printenv
make spark-system-usb
Neutrino- Quellen updaten und neu bauen:
make update-neutrino
make update-self
make clean
make bootstrap
make spark-system-usb
Seifes Script etwas für Spark im Bereich cp ... angepasst:
makespakusbimage.sh
Code: Alles auswählen
#!/bin/bash
#
# helper script to build a USB stick image
#
# (C) 2011 Stefan Seyfried
#     License: GPL v2
#
# * the kernel Image has to already exist in build_tmp
# * a rootfs (target minimal-system-pkgs or system-pkgs) has to
#   exist in build_tmp/install
#
# The image will have two partitions:
# * partition 1, fat16 ~256MB for the kernel + extras
# * partition 2, ext2, the root fs
#
# the size in million bytes, hopefully smaller than the USB stick ;)
SIZE=1000
# hack for people who don't have sbin in $PATH
if ! echo $PATH | grep -q /sbin; then
	PATH=/sbin:/usr/sbin:/usr/local/sbin:$PATH
	export PATH
fi
# create the empty image (sparse, to save time)
rm -f build_tmp/usb.img
dd if=/dev/zero of=build_tmp/usb.img bs=1 count=1 seek=$(($SIZE * 1000000 - 1))
# add partitions
parted build_tmp/usb.img mklabel msdos
parted -a none build_tmp/usb.img mkpart primary fat16 0 256
parted -a none build_tmp/usb.img mkpart primary ext2 256 $SIZE
mkdir -p build_tmp/usbstick/p1 build_tmp/usbstick/p2
sudo bash << EOF
# map the image so that we can mount see the partitions in the image
kpartx -v -a -p -usbstick- build_tmp/usb.img
# create the filesystems
mkdosfs   -n KERNEL  /dev/mapper/*-usbstick-1
mkfs.ext2 -L root-fs /dev/mapper/*-usbstick-2
# mount the partitions
mount /dev/mapper/*-usbstick-1 build_tmp/usbstick/p1
mount /dev/mapper/*-usbstick-2 build_tmp/usbstick/p2
# copy kernel...
cp build_tmp/sparksystem/p1/script.img build_tmp/usbstick/p1
cp build_tmp/sparksystem/p1/uImage build_tmp/usbstick/p1
# ...and rootfs
cp -a build_tmp/sparksystem/p2/. build_tmp/usbstick/p2
# create /dev/console for first boot
# sudo mknod -m 644 build_tmp/usbstick/p2/dev/console c 5 1
# unmount everything
umount build_tmp/usbstick/p*
# unbind the loop devices
kpartx -v -d -p -usbstick- build_tmp/usb.img
EOF
echo
echo "the usb boot image is now in build_tmp/usb.img"
echo
ls -l build_tmp/usb.img
echo
sudo dd if=build_tmp/usb.img of=/dev/sdX bs=1M (X durch euren Stick ersetzen)
Nach dem ersten Boot video.elf und audio.elf in /boot kopieren (sind im DietmarW Image zu finden)
oder auch hier
http://home.arcor.de/audioslyer/spark/video.elf
und
http://home.arcor.de/audioslyer/spark/audio.elf
Ihr solltet den Stick erst in der U-Boot Konsole testen, ob er erkannt wird.
Einfach usb start eingeben, siehe Beitrag weiter oben.
Viel Spass und danke an Seife für die klasse Arbeit,


 
 

 
  und einen DVB-C/T Tuner
 und einen DVB-C/T Tuner

 
  ich tippe dann einfach make spark und warte 11 Minuten.
  ich tippe dann einfach make spark und warte 11 Minuten.
 Insofern ist mir IRMP prinzipiell lieber, auch wenn ich zugebe, dass lirc natürlich auch seine Vorteile hat (einfaches anlernen z.B.).
 Insofern ist mir IRMP prinzipiell lieber, auch wenn ich zugebe, dass lirc natürlich auch seine Vorteile hat (einfaches anlernen z.B.).