Skip to content

Commit 99bf2f4

Browse files
committed
Add Raspbian stages
1 parent 5200b19 commit 99bf2f4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

77 files changed

+777
-0
lines changed

stage0/01-configure-apt/00-run.sh

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#!/bin/bash -e
2+
3+
install -m 644 files/sources.list ${ROOTFS_DIR}/etc/apt/
4+
install -m 644 files/raspi.list ${ROOTFS_DIR}/etc/apt/sources.list.d/
5+
6+
if [ -n "$APT_PROXY" ]; then
7+
install -m 644 files/51cache ${ROOTFS_DIR}/etc/apt/apt.conf.d/51cache
8+
sed ${ROOTFS_DIR}/etc/apt/apt.conf.d/51cache -i -e "s|APT_PROXY|${APT_PROXY}|"
9+
else
10+
rm -f ${ROOTFS_DIR}/etc/apt/apt.conf.d/51cache
11+
fi
12+
13+
on_chroot apt-key add - < files/raspberrypi.gpg.key
14+
on_chroot sh -e - << EOF
15+
apt-get update
16+
apt-get dist-upgrade -y
17+
EOF

stage0/01-configure-apt/files/51cache

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Acquire::http { Proxy "APT_PROXY"; };
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
-----BEGIN PGP PUBLIC KEY BLOCK-----
2+
Version: GnuPG v1.4.12 (GNU/Linux)
3+
4+
mQENBE/d7o8BCACrwqQacGJfn3tnMzGui6mv2lLxYbsOuy/+U4rqMmGEuo3h9m92
5+
30E2EtypsoWczkBretzLUCFv+VUOxaA6sV9+puTqYGhhQZFuKUWcG7orf7QbZRuu
6+
TxsEUepW5lg7MExmAu1JJzqM0kMQX8fVyWVDkjchZ/is4q3BPOUCJbUJOsE+kK/6
7+
8kW6nWdhwSAjfDh06bA5wvoXNjYoDdnSZyVdcYCPEJXEg5jfF/+nmiFKMZBraHwn
8+
eQsepr7r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24+
yVR7ERzA2w33hI0yZQrqO6pU9SRnHRxCFvGv6y+mXXXMRcmjZG7GiD6tQWeN/3wb
25+
EbAn5cg6CJ/Lk/BI4iRRfBX07LbYULCohlGkwBOkRo10T+Ld4vCCnBftCh5x2OtZ
26+
TOWRULxP36y2PLGVNF+q9pho98qx+RIxvpofQM/842ZycjPJvzgVQsW4LT91KYAE
27+
4TVf6JjwUM6HZDoiNcX6d7zOhNfQihXTsniZZ6rky287htsWVDNkqOi5T3oTxWUo
28+
m++/7s3K3L0zWopdhMVcgg6Nt9gcjzqN1c0gy55L/g==
29+
=mNSj
30+
-----END PGP PUBLIC KEY BLOCK-----
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
deb http://archive.raspberrypi.org/debian/ jessie main ui staging
2+
# Uncomment line below then 'apt-get update' to enable 'apt-get source'
3+
#deb-src http://archive.raspberrypi.org/debian/ jessie main ui
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
deb http://mirrordirector.raspbian.org/raspbian/ jessie main contrib non-free rpi
2+
# Uncomment line below then 'apt-get update' to enable 'apt-get source'
3+
#deb-src http://archive.raspbian.org/raspbian/ jessie main contrib non-free rpi

stage0/02-firmware/01-packages

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
raspberrypi-bootloader

stage0/prerun.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/bash -e
2+
if [ ! -d ${ROOTFS_DIR} ]; then
3+
bootstrap jessie ${ROOTFS_DIR} http://mirrordirector.raspbian.org/raspbian/
4+
fi

stage1/00-boot-files/00-run.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/bash -e
2+
3+
install -m 644 files/cmdline.txt ${ROOTFS_DIR}/boot/
4+
install -m 644 files/config.txt ${ROOTFS_DIR}/boot/
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
dwc_otg.lpm_enable=0 console=serial0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait

stage1/00-boot-files/files/config.txt

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
# For more options and information see
2+
# http://www.raspberrypi.org/documentation/configuration/config-txt.md
3+
# Some settings may impact device functionality. See link above for details
4+
5+
# uncomment if you get no picture on HDMI for a default "safe" mode
6+
#hdmi_safe=1
7+
8+
# uncomment this if your display has a black border of unused pixels visible
9+
# and your display can output without overscan
10+
#disable_overscan=1
11+
12+
# uncomment the following to adjust overscan. Use positive numbers if console
13+
# goes off screen, and negative if there is too much border
14+
#overscan_left=16
15+
#overscan_right=16
16+
#overscan_top=16
17+
#overscan_bottom=16
18+
19+
# uncomment to force a console size. By default it will be display's size minus
20+
# overscan.
21+
#framebuffer_width=1280
22+
#framebuffer_height=720
23+
24+
# uncomment if hdmi display is not detected and composite is being output
25+
#hdmi_force_hotplug=1
26+
27+
# uncomment to force a specific HDMI mode (this will force VGA)
28+
#hdmi_group=1
29+
#hdmi_mode=1
30+
31+
# uncomment to force a HDMI mode rather than DVI. This can make audio work in
32+
# DMT (computer monitor) modes
33+
#hdmi_drive=2
34+
35+
# uncomment to increase signal to HDMI, if you have interference, blanking, or
36+
# no display
37+
#config_hdmi_boost=4
38+
39+
# uncomment for composite PAL
40+
#sdtv_mode=2
41+
42+
#uncomment to overclock the arm. 700 MHz is the default.
43+
#arm_freq=800
44+
45+
# Uncomment some or all of these to enable the optional hardware interfaces
46+
#dtparam=i2c_arm=on
47+
#dtparam=i2s=on
48+
#dtparam=spi=on
49+
50+
# Uncomment this to enable the lirc-rpi module
51+
#dtoverlay=lirc-rpi
52+
53+
# Additional overlays and parameters are documented /boot/overlays/README
54+
55+
# Enable audio (loads snd_bcm2835)
56+
dtparam=audio=on

0 commit comments

Comments
 (0)