Skip to content

Commit

Permalink
Use newest version of Raspian, updated to jessie.
Browse files Browse the repository at this point in the history
Taking care of systemd
  • Loading branch information
Rafiot committed Jul 30, 2014
1 parent fa87f0d commit 4801a65
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 9 deletions.
9 changes: 7 additions & 2 deletions fs/etc/rc.local
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
#
# By default this script does nothing.

clean(){
systemctl poweroff
}

# Print the IP address
_IP=$(hostname -I) || true
if [ "$_IP" ]; then
Expand All @@ -19,12 +23,13 @@ fi

if [ -e /dev/sda ]; then
if [ -e /dev/sdb ]; then
trap clean EXIT TERM INT
cd /opt/groomer
/usr/sbin/led &
# avoid possibe misuse
# avoid possible misuse
/sbin/ifconfig eth0 down
./init.sh
/sbin/shutdown -P -h now
systemctl poweroff
fi
fi

Expand Down
2 changes: 1 addition & 1 deletion get_shell.exp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

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" \
-drive file=[lindex $argv 0],index=0,media=disk \
-monitor telnet:localhost:4444,server,nowait \
Expand Down
2 changes: 1 addition & 1 deletion mount_image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ PARTITION_BOOT='/dev/sdd1'

# If you use the img
##### Debian
IMAGE='2014-01-07-wheezy-raspbian.img'
IMAGE='2014-06-20-wheezy-raspbian.img'
OFFSET_ROOTFS=$((122880 * 512))
OFFSET_BOOT=$((8192 * 512))
##### Arch
Expand Down
4 changes: 2 additions & 2 deletions resize_img.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ Add empty space to the image

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
=====================

> fdisk 2014-01-07-wheezy-raspbian.img
> fdisk 2014-06-20-wheezy-raspbian.img
Command (m for help): *p*

Expand Down
5 changes: 3 additions & 2 deletions tests/run.exp
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,16 @@

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" \
-drive file=[lindex $argv 1],index=0,media=disk \
-drive file=[lindex $argv 2],index=1,media=disk \
-drive file=[lindex $argv 0],index=2,media=disk \
-serial stdio -soundhw all -nographic \
-chardev stdio,id=mon0 -mon chardev=mon0,mode=readline \
-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"

Expand Down
2 changes: 1 addition & 1 deletion tests/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# 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))

IMAGE_VFAT_NORM="testcase.vfat"
Expand Down

0 comments on commit 4801a65

Please sign in to comment.