Use newest version of Raspian, updated to jessie.

Taking care of systemd
pull/10/head
Raphaël Vinot 2014-07-30 21:50:42 +02:00
parent fa87f0deba
commit 4801a65557
6 changed files with 15 additions and 9 deletions

View File

@ -11,6 +11,10 @@
# #
# By default this script does nothing. # By default this script does nothing.
clean(){
systemctl poweroff
}
# Print the IP address # Print the IP address
_IP=$(hostname -I) || true _IP=$(hostname -I) || true
if [ "$_IP" ]; then if [ "$_IP" ]; then
@ -19,12 +23,13 @@ fi
if [ -e /dev/sda ]; then if [ -e /dev/sda ]; then
if [ -e /dev/sdb ]; then if [ -e /dev/sdb ]; then
trap clean EXIT TERM INT
cd /opt/groomer cd /opt/groomer
/usr/sbin/led & /usr/sbin/led &
# avoid possibe misuse # avoid possible misuse
/sbin/ifconfig eth0 down /sbin/ifconfig eth0 down
./init.sh ./init.sh
/sbin/shutdown -P -h now systemctl poweroff
fi fi
fi fi

View File

@ -2,7 +2,7 @@
set timeout -1 set timeout -1
spawn qemu-system-arm -kernel tests/140509-kernel -cpu arm1176 -m 256 -M versatilepb \ spawn qemu-system-arm -kernel tests/140730-kernel -cpu arm1176 -m 256 -M versatilepb \
-append "root=/dev/sda2 panic=1 rootfstype=ext4 rw console=ttyAMA0 console=ttyS0" \ -append "root=/dev/sda2 panic=1 rootfstype=ext4 rw console=ttyAMA0 console=ttyS0" \
-drive file=[lindex $argv 0],index=0,media=disk \ -drive file=[lindex $argv 0],index=0,media=disk \
-monitor telnet:localhost:4444,server,nowait \ -monitor telnet:localhost:4444,server,nowait \

View File

@ -31,7 +31,7 @@ PARTITION_BOOT='/dev/sdd1'
# If you use the img # If you use the img
##### Debian ##### Debian
IMAGE='2014-01-07-wheezy-raspbian.img' IMAGE='2014-06-20-wheezy-raspbian.img'
OFFSET_ROOTFS=$((122880 * 512)) OFFSET_ROOTFS=$((122880 * 512))
OFFSET_BOOT=$((8192 * 512)) OFFSET_BOOT=$((8192 * 512))
##### Arch ##### Arch

View File

@ -3,12 +3,12 @@ Add empty space to the image
Add 2Gb Add 2Gb
> dd if=/dev/zero bs=1024k count=2048 >> 2014-01-07-wheezy-raspbian.img > dd if=/dev/zero bs=1024k count=2048 >> 2014-06-20-wheezy-raspbian.img
Expand partition size Expand partition size
===================== =====================
> fdisk 2014-01-07-wheezy-raspbian.img > fdisk 2014-06-20-wheezy-raspbian.img
Command (m for help): *p* Command (m for help): *p*

View File

@ -2,7 +2,7 @@
set timeout -1 set timeout -1
spawn qemu-system-arm -kernel 140509-kernel -cpu arm1176 -m 256 -M versatilepb \ spawn qemu-system-arm -kernel 140730-kernel -cpu arm1176 -m 200 -M versatilepb \
-append "root=/dev/sdc2 panic=1 rootfstype=ext4 ro console=ttyAMA0 console=ttyS0" \ -append "root=/dev/sdc2 panic=1 rootfstype=ext4 ro console=ttyAMA0 console=ttyS0" \
-drive file=[lindex $argv 1],index=0,media=disk \ -drive file=[lindex $argv 1],index=0,media=disk \
-drive file=[lindex $argv 2],index=1,media=disk \ -drive file=[lindex $argv 2],index=1,media=disk \
@ -10,7 +10,8 @@ spawn qemu-system-arm -kernel 140509-kernel -cpu arm1176 -m 256 -M versatilepb \
-serial stdio -soundhw all -nographic \ -serial stdio -soundhw all -nographic \
-chardev stdio,id=mon0 -mon chardev=mon0,mode=readline \ -chardev stdio,id=mon0 -mon chardev=mon0,mode=readline \
-chardev socket,id=mon1,host=localhost,port=4444,server,nowait \ -chardev socket,id=mon1,host=localhost,port=4444,server,nowait \
-mon chardev=mon1,mode=control,pretty=on -mon chardev=mon1,mode=control,pretty=on \
-vnc 0.0.0.0:1
expect "reboot: System halted" expect "reboot: System halted"

View File

@ -2,7 +2,7 @@
# http://xecdesign.com/qemu-emulating-raspberry-pi-the-easy-way/ # http://xecdesign.com/qemu-emulating-raspberry-pi-the-easy-way/
IMAGE='../2014-01-07-wheezy-raspbian.img' IMAGE='../2014-06-20-wheezy-raspbian.img'
OFFSET_ROOTFS=$((122880 * 512)) OFFSET_ROOTFS=$((122880 * 512))
IMAGE_VFAT_NORM="testcase.vfat" IMAGE_VFAT_NORM="testcase.vfat"