Skip to content

Commit

Permalink
Remove version numbers from all setup scripts; fix docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
Eleanor Saitta committed Oct 9, 2015
1 parent 1120f8e commit 91e1b13
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 16 deletions.
21 changes: 8 additions & 13 deletions README_initial_setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ Create a new image from scratch
* Unpack it:

```
unzip 2015-02-16-raspbian-wheezy.zip
unzip 2015-05-05-raspbian-wheezy.zip
mv 2015-05-05-raspbian-wheezy.zip raspbian-wheezy.zip
```

Prepare the base image
Expand All @@ -26,12 +27,6 @@ It will be used for the build environment and the final image.

* [Add empty space to the image](resize_img.md)

* Edit `mount_image.sh` and change the `IMAGE` variable accordingly

```
IMAGE='2015-02-16-raspbian-wheezy.img'
```

* Chroot in the image

```
Expand Down Expand Up @@ -64,8 +59,8 @@ Setup two images
* Create two separate images: one will be used to build the deb packages that are not available in wheezy

```
mv 2015-02-16-raspbian-wheezy.img BUILDENV_2015-02-16-raspbian-wheezy.img
cp BUILDENV_2015-02-16-raspbian-wheezy.img FINAL_2015-02-16-raspbian-wheezy.img
mv raspbian-wheezy.img BUILDENV-raspbian-wheezy.img
cp BUILDENV-raspbian-wheezy.img FINAL-raspbian-wheezy.img
```

Build environment specifics
Expand All @@ -74,7 +69,7 @@ Build environment specifics
* Create a symlink to the build image

```
ln -s BUILDENV_2015-02-16-raspbian-wheezy.img 2015-02-16-raspbian-wheezy.img
ln -s BUILDENV-raspbian-wheezy.img raspbian-wheezy.img
```

* Chroot in the image
Expand Down Expand Up @@ -147,8 +142,8 @@ Final image specifics
* Change the link to the image

```
rm 2015-02-16-raspbian-wheezy.img
ln -s FINAL_2015-02-16-raspbian-wheezy.img 2015-02-16-raspbian-wheezy.img
rm raspbian-wheezy.img
ln -s FINAL-raspbian-wheezy.img -raspbian-wheezy.img
```

* Chroot in the image
Expand Down Expand Up @@ -210,7 +205,7 @@ Write the image on a SD card
*WARNING*: Make sure you write on the right filesystem

```
sudo dd bs=4M if=FINAL_2015-02-16-raspbian-wheezy.img of=/dev/<FILESYSTEM>
sudo dd bs=4M if=FINAL-raspbian-wheezy.img of=/dev/<FILESYSTEM>
```

Run the tests
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='2015-02-16-raspbian-wheezy.img'
IMAGE='raspbian-wheezy.img'
OFFSET_ROOTFS=$((122880 * 512))
OFFSET_BOOT=$((8192 * 512))
##### Arch
Expand Down
2 changes: 1 addition & 1 deletion tests/run.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 140801-kernel -cpu arm1176 -m 256 -M versatilepb \
spawn qemu-system-arm -kernel kernel-qemu -cpu arm1176 -m 256 -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 \
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://pub.phyks.me/respawn/mypersonaldata/public/2014-05-20-11-08-01/

IMAGE='../2015-02-16-raspbian-wheezy.img'
IMAGE='../raspbian-wheezy.img'
OFFSET_ROOTFS=$((122880 * 512))

IMAGE_VFAT_NORM="testcase.vfat"
Expand Down

0 comments on commit 91e1b13

Please sign in to comment.