Fix up the mirrors

Fix up the mirrors in the script since most people probably don't have access to
my build system and network... probably.
This commit is contained in:
Steev Klimaszewski
2015-05-12 15:50:45 -05:00
parent 2f617c231c
commit f8f48172ce
19 changed files with 96 additions and 105 deletions

24
bbb.sh
View File

@@ -29,8 +29,8 @@ export architecture="armhf"
# You may want to leave security.kali.org alone, but if you trust your local
# mirror, feel free to change this as well.
# After generating the rootfs, we set the sources.list to the default settings.
export mirror=http.kali.org
export security=security.kali.org
mirror=http.kali.org
security=security.kali.org
# Set this to use an http proxy, like apt-cacher-ng, and uncomment further down
# to unset it.
@@ -194,22 +194,24 @@ EOF
# You can load the github URL in a browser, and see what other branches you can
# try. Keep in mind if you do so, that you will likely want to comment out
# AUTO_BUILD so that you can configure the kernel!
git clone --depth 1 https://github.com/RobertCNelson/linux-dev -b am33x-v3.8 ${basedir}/kernel
git clone --depth 1 --branch am33x-v3.8 file:///root/sandbox/mirror/bbb.git ${basedir}/kernel
cd ${basedir}/kernel
git config user.name root
git config user.email none@none.no
export AUTO_BUILD=1
export LINUX_GIT=/root/sandbox/mirror/mainline.git
export CC=/root/gcc-arm-linux-gnueabihf-4.7/bin/arm-linux-gnueabihf-
rm tools/host_det.sh
wget https://raw.githubusercontent.com/RobertCNelson/stable-kernel/master/tools/host_det.sh -O tools/host_det.sh
./build_kernel.sh
mkdir -p ../patches
wget http://patches.aircrack-ng.org/mac80211.compat08082009.wl_frag+ack_v1.patch -O ../patches/mac80211.patch
cd ${basedir}/kernel/KERNEL
patch -p1 --no-backup-if-mismatch < ../../patches/mac80211.patch
patch -p1 --no-backup-if-mismatch < ${basedir}/../patches/mac80211.patch
cd ${basedir}/kernel
./tools/rebuild.sh
cp -v ${basedir}/kernel/deploy/3.8.*.zImage ${basedir}/bootp/zImage
cp -v ${basedir}/kernel/deploy/3.*.zImage ${basedir}/bootp/zImage
mkdir -p ${basedir}/bootp/dtbs
tar -xovf ${basedir}/kernel/deploy/3.8.*-dtbs.tar.gz -C ${basedir}/bootp/dtbs/
tar -xovf ${basedir}/kernel/deploy/3.8.*-modules.tar.gz -C ${basedir}/root/
tar -xovf ${basedir}/kernel/deploy/3.*-dtbs.tar.gz -C ${basedir}/bootp/dtbs/
tar -xovf ${basedir}/kernel/deploy/3.*-modules.tar.gz -C ${basedir}/root/
cd ${basedir}
# Create uEnv.txt file
@@ -250,9 +252,9 @@ EOF
rm -rf ${basedir}/root/lib/firmware
cd ${basedir}/root/lib
git clone https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git firmware
git clone file:///root/sandbox/mirror/linux-firmware.git firmware
rm -rf ${basedir}/root/lib/firmware/.git
tar -xovf ${basedir}/kernel/deploy/3.8.*-firmware.tar.gz -C ${basedir}/root/lib/firmware/
tar -xovf ${basedir}/kernel/deploy/3.*-firmware.tar.gz -C ${basedir}/root/lib/firmware/
cd ${basedir}
# Unused currently, but this script is a part of using the usb as an ethernet

View File

@@ -40,10 +40,8 @@ export architecture="armhf"
# You may want to leave security.kali.org alone, but if you trust your local
# mirror, feel free to change this as well.
# After generating the rootfs, we set the sources.list to the default settings.
#mirror=http.kali.org
#security=security.kali.org
mirror=192.168.11.44
security=192.168.11.44
mirror=http.kali.org
security=security.kali.org
# Set this to use an http proxy, like apt-cacher-ng, and uncomment further down
# to unset it.
@@ -185,7 +183,7 @@ EOF
# Kernel section. If you want to use a custom kernel, or configuration, replace
# them in this section.
git clone --depth 1 file:///root/sandbox/mirror/chromebook.git -b chromeos-3.10 ${basedir}/kernel
git clone --depth 1 https://chromium.googlesource.com/chromiumos/third_party/kernel -b chromeos-3.10 ${basedir}/kernel
cd ${basedir}/kernel
# Download the xhci firmware and build it in to the kernel so that USB booting
# will work in case someone generates their own USB booting image.

View File

@@ -179,7 +179,7 @@ mount $scriptp ${basedir}/script
echo "Rsyncing rootfs into image file"
rsync -HPavz -q ${basedir}/kali-$architecture/ ${basedir}/root/
cat << EOF > ${basedir}/etc/apt/sources.list
cat << EOF > ${basedir}/root/etc/apt/sources.list
deb http://http.kali.org/kali kali main non-free contrib
deb http://security.kali.org/kali-security kali/updates main contrib non-free
@@ -193,18 +193,17 @@ EOF
# Kernel section. If you want to use a custom kernel, or configuration, replace
# them in this section. Currently we're using 3.4, but there will be a switch to
# 3.8.
git clone --depth 1 http://chromium.googlesource.com/chromiumos/third_party/kernel.git -b chromeos-3.4 ${basedir}/kernel
git clone --depth 1 https://chromium.googlesource.com/chromiumos/third_party/kernel.git -b chromeos-3.8 ${basedir}/kernel
cd ${basedir}/kernel
cp ${basedir}/../kernel-configs/chromebook.config .config
cp ${basedir}/../kernel-configs/chromebook-3.8_wireless-3.4.config .config
export ARCH=arm
export CROSS_COMPILE=arm-linux-gnueabihf-
mkdir -p ../patches
wget http://patches.aircrack-ng.org/mac80211.compat08082009.wl_frag+ack_v1.patch -O ../patches/mac80211.patch
patch -p1 --no-backup-if-mismatch < ../patches/mac80211.patch
patch -p1 --no-backup-if-mismatch < ${basedir}/../patches/mac80211-3.4.patch
patch -p1 --no-backup-if-mismatch < ${basedir}/../patches/0001-exynos-drm-smem-start-len.patch
sed -i 's/CONFIG_ERROR_ON_WARNING=y/# CONFIG_ERROR_ON_WARNING is not set/g' .config
make -j $(grep -c processor /proc/cpuinfo)
make dtbs
make modules_install INSTALL_MOD_PATH=${basedir}/root
make WIFIVERSION="-3.4" -j $(grep -c processor /proc/cpuinfo)
make WIFIVERSION="-3.4" dtbs
make WIFIVERSION="-3.4" modules_install INSTALL_MOD_PATH=${basedir}/root
cat << __EOF__ > ${basedir}/kernel/arch/arm/boot/kernel-spring.its
/dts-v1/;
@@ -224,7 +223,7 @@ cat << __EOF__ > ${basedir}/kernel/arch/arm/boot/kernel-spring.its
};
fdt@1{
description = "exynos5250-spring.dtb";
data = /incbin/("exynos5250-spring.dtb");
data = /incbin/("dts/exynos5250-spring.dtb");
type = "flat_dt";
arch = "arm";
compression = "none";

View File

@@ -40,10 +40,8 @@ export architecture="armhf"
# You may want to leave security.kali.org alone, but if you trust your local
# mirror, feel free to change this as well.
# After generating the rootfs, we set the sources.list to the default settings.
#mirror=http.kali.org
#security=security.kali.org
mirror=192.168.11.44
security=192.168.11.44
mirror=http.kali.org
security=security.kali.org
# Set this to use an http proxy, like apt-cacher-ng, and uncomment further down
# to unset it.
@@ -185,7 +183,7 @@ EOF
# Kernel section. If you want to use a custom kernel, or configuration, replace
# them in this section.
git clone --depth 1 file:///root/sandbox/mirror/chromebook.git -b chromeos-3.8 ${basedir}/kernel
git clone --depth 1 https://chromium.googlesource.com/chromiumos/third_party/kernel -b chromeos-3.8 ${basedir}/kernel
cd ${basedir}/kernel
cp ${basedir}/../kernel-configs/chromebook-3.8.config .config
export ARCH=arm

View File

@@ -192,20 +192,18 @@ EOF
# Kernel section. If you want to use a custom kernel, or configuration, replace
# them in this section. Currently we're using 3.4, but there will be a switch to
# 3.8.
git clone --depth 1 http://chromium.googlesource.com/chromiumos/third_party/kernel.git -b chromeos-3.4 ${basedir}/kernel
git clone --depth 1 https://chromium.googlesource.com/chromiumos/third_party/kernel -b chromeos-3.8 ${basedir}/kernel
cd ${basedir}/kernel
cp ${basedir}/../kernel-configs/chromebook.config .config
cp ${basedir}/../kernel-configs/chromebook-3.8_wireless-3.4.config .config
export ARCH=arm
# Edit the CROSS_COMPILE variable as needed.
export CROSS_COMPILE=arm-linux-gnueabihf-
mkdir -p ../patches
#wget https://raw.github.com/offensive-security/kali-arm-build-scripts/master/patches/kali-wifi-injection-3.12.patch -O ../patches/mac80211.patch
wget http://patches.aircrack-ng.org/mac80211.compat08082009.wl_frag+ack_v1.patch -O ../patches/mac80211.patch
patch -p1 --no-backup-if-mismatch < ../patches/mac80211.patch
patch -p1 --no-backup-if-mismatch < ${basedir}/../patches/mac80211-3.4.patch
patch -p1 --no-backup-if-mismatch < ${basedir}/../patches/0001-exynos-drm-smem-start-len.patch
# sed -i 's/CONFIG_ERROR_ON_WARNING=y/# CONFIG_ERROR_ON_WARNING is not set/g' .config
make -j $(grep -c processor /proc/cpuinfo)
make dtbs
make modules_install INSTALL_MOD_PATH=${basedir}/root
make WIFIVERSION="-3.4" -j $(grep -c processor /proc/cpuinfo)
make WIFIVERSION="-3.4" dtbs
make WIFIVERSION="-3.4" modules_install INSTALL_MOD_PATH=${basedir}/root
cat << __EOF__ > ${basedir}/kernel/arch/arm/boot/kernel-snow.its
/dts-v1/;
@@ -225,7 +223,7 @@ cat << __EOF__ > ${basedir}/kernel/arch/arm/boot/kernel-snow.its
};
fdt@1{
description = "exynos5250-snow-rev4.dtb";
data = /incbin/("exynos5250-snow-rev4.dtb");
data = /incbin/("dts/exynos5250-snow-rev4.dtb");
type = "flat_dt";
arch = "arm";
compression = "none";
@@ -235,7 +233,7 @@ cat << __EOF__ > ${basedir}/kernel/arch/arm/boot/kernel-snow.its
};
fdt@2{
description = "exynos5250-snow-rev5.dtb";
data = /incbin/("exynos5250-snow-rev5.dtb");
data = /incbin/("dts/exynos5250-snow-rev5.dtb");
type = "flat_dt";
arch = "arm";
compression = "none";
@@ -266,7 +264,7 @@ mkdir ${basedir}/script/u-boot/
cat << EOF > ${basedir}/script/u-boot/boot.txt
setenv bootpart 3
setenv rootpart 2
setenv regen_ext2_bootargs 'setenv bootdev_bootargs root=/dev/\${devname}\${bootpart} quiet rootfstype=ext4 rootwait rw lsm.module_locking=0; run regen_all'
setenv regen_ext2_bootargs 'setenv bootdev_bootargs root=/dev/\${devname}\${bootpart} quiet rootfstype=ext4 rootwait rw lsm.module_locking=0'
setenv cros_bootfile /vmlinux.uimg
setenv extra_bootargs console=tty1
setenv mmc0_boot echo ERROR: Could not boot from USB or SD

View File

@@ -201,13 +201,11 @@ make fex2bin
./fex2bin ${basedir}/sunxi-boards/sys_config/a20/cubieboard2.fex ${basedir}/bootp/script.bin
cd ${basedir}/kernel
mkdir -p ../patches
wget http://patches.aircrack-ng.org/mac80211.compat08082009.wl_frag+ack_v1.patch -O ../patches/mac80211.patch
patch -p1 --no-backup-if-mismatch < ../patches/mac80211.patch
patch -p1 --no-backup-if-mismatch < ${basedir}/../patches/mac80211.patch
touch .scmversion
export ARCH=arm
export CROSS_COMPILE=arm-linux-gnueabihf-
make sun7i_defconfig
cp ${basedir}/../kernel-configs/sun7i.config .config
make -j $(grep -c processor /proc/cpuinfo) uImage modules
make modules_install INSTALL_MOD_PATH=${basedir}/root
cp arch/arm/boot/uImage ${basedir}/bootp

View File

@@ -184,11 +184,9 @@ EOF
# Kernel section. If you want to use a custom kernel, or configuration, replace
# them in this section.
git clone --depth 1 https://github.com/SolidRun/linux-linaro-stable-mx6.git ${basedir}/kernel
git clone --depth 1 -b linux-linaro-lsk-3.10.42-mx6 https://github.com/SolidRun/linux-linaro-stable-mx6.git ${basedir}/kernel
cd ${basedir}/kernel
mkdir -p ../patches
wget http://patches.aircrack-ng.org/mac80211.compat08082009.wl_frag+ack_v1.patch -O ../patches/mac80211.patch
patch -p1 --no-backup-if-mismatch < ../patches/mac80211.patch
patch -p1 --no-backup-if-mismatch < ${basedir}/../patches/mac80211.patch
touch .scmversion
export ARCH=arm
export CROSS_COMPILE=arm-linux-gnueabihf-
@@ -238,6 +236,7 @@ cd ${basedir}
# Unmount partitions
umount $rootp
umount $rootp
kpartx -dv $loopdevice
losetup -d $loopdevice

View File

@@ -186,9 +186,7 @@ EOF
# them in this section.
git clone --depth 1 https://github.com/rabeeh/linux.git ${basedir}/kernel
cd ${basedir}/kernel
mkdir -p ../patches
wget http://patches.aircrack-ng.org/mac80211.compat08082009.wl_frag+ack_v1.patch -O ../patches/mac80211.patch
patch -p1 --no-backup-if-mismatch < ../patches/mac80211.patch
patch -p1 --no-backup-if-mismatch < ${basedir}/../patches/mac80211.patch
touch .scmversion
export ARCH=arm
export CROSS_COMPILE=arm-linux-gnueabihf-

View File

@@ -30,9 +30,11 @@ unset CROSS_COMPILE
arm="abootimg cgpt fake-hwclock ntpdate vboot-utils vboot-kernel-utils uboot-mkimage"
base="kali-menu kali-defaults initramfs-tools usbutils"
desktop="xfce4 network-manager network-manager-gnome xserver-xorg-video-fbdev"
pth="passing-the-hash unicornscan winexe enum4linux polenum nfspy wmis nipper-ng jsql ghost-phisher uniscan lbd automater arachni bully inguma sslsplit dumpzilla recon-ng ridenum jd-gui"
tools="passing-the-hash winexe aircrack-ng hydra john sqlmap wireshark libnfc-bin mfoc"
services="openssh-server apache2"
extras="iceweasel wpasupplicant"
export packages="${arm} ${base} ${desktop} ${pth} armitage iceweasel metasploit wpasupplicant openssh-server"
export packages="${arm} ${base} ${desktop} ${tools} ${services} ${extras}"
export architecture="armhf"
# If you have your own preferred mirrors, set them here.
# You may want to leave security.kali.org alone, but if you trust your local
@@ -215,9 +217,7 @@ cd ${basedir}/kernel
touch .scmversion
export ARCH=arm
export CROSS_COMPILE=arm-linux-gnueabihf-
mkdir -p ../patches
wget http://patches.aircrack-ng.org/mac80211.compat08082009.wl_frag+ack_v1.patch -O ../patches/mac80211.patch
patch -p1 --no-backup-if-mismatch < ../patches/mac80211.patch
patch -p1 --no-backup-if-mismatch < ${basedir}/../patches/mac80211.patch
make mx51_efikamx_defconfig
make -j $(grep -c processor /proc/cpuinfo) uImage modules
make modules_install INSTALL_MOD_PATH=${basedir}/root

View File

@@ -195,13 +195,11 @@ make fex2bin
./fex2bin ${basedir}/sunxi-boards/sys_config/a10/mini-x.fex ${basedir}/bootp/script.bin
cd ${basedir}/kernel
mkdir -p ../patches
wget http://patches.aircrack-ng.org/mac80211.compat08082009.wl_frag+ack_v1.patch -O ../patches/mac80211.patch
patch -p1 --no-backup-if-mismatch < ../patches/mac80211.patch
patch -p1 --no-backup-if-mismatch < ${basedir}/../patches/mac80211.patch
touch .scmversion
export ARCH=arm
export CROSS_COMPILE=arm-linux-gnueabihf-
make sun4i_defconfig
cp ${basedir}/../kernel-configs/sun4i.config .config
make -j $(grep -c processor /proc/cpuinfo) uImage modules
make modules_install INSTALL_MOD_PATH=${basedir}/root
cp arch/arm/boot/uImage ${basedir}/bootp

View File

@@ -245,15 +245,14 @@ EOF
# Kernel section. If you want to use a custom kernel, or configuration, replace
# them in this section.
git clone --depth 1 https://github.com/hardkernel/linux.git -b odroid-3.8.y ${basedir}/kernel
#git clone --depth 1 https://github.com/hardkernel/linux.git -b odroid-3.8.y ${basedir}/kernel
git clone --depth 1 file:///root/sandbox/mirror/odroid.git -b odroid-3.8.y ${basedir}/kernel
cd ${basedir}/kernel
touch .scmversion
export ARCH=arm
# NOTE: 3.8 now works with a 4.8 compiler, 3.4 does not!
export CROSS_COMPILE=arm-linux-gnueabihf-
mkdir -p ../patches
wget http://patches.aircrack-ng.org/mac80211.compat08082009.wl_frag+ack_v1.patch -O ../patches/mac80211.patch
patch -p1 --no-backup-if-mismatch < ../patches/mac80211.patch
patch -p1 --no-backup-if-mismatch < ${basedir}/../patches/mac80211.patch
make odroidu_defconfig
make -j $(grep -c processor /proc/cpuinfo)
make modules_install INSTALL_MOD_PATH=${basedir}/root
@@ -274,7 +273,8 @@ mkimage -A arm -T script -C none -d ${basedir}/bootp/boot.txt ${basedir}/bootp/b
rm -rf ${basedir}/root/lib/firmware
cd ${basedir}/root/lib
git clone https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git firmware
#git clone https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git firmware
git clone file:///root/sandbox/mirror/linux-firmware.git firmware
rm -rf ${basedir}/root/lib/firmware/.git
cd ${basedir}

View File

@@ -227,9 +227,7 @@ EOF
# them in this section.
git clone --depth 1 https://github.com/hardkernel/linux.git -b odroidxu-3.4.y ${basedir}/kernel
cd ${basedir}/kernel
mkdir -p ../patches
wget http://patches.aircrack-ng.org/mac80211.compat08082009.wl_frag+ack_v1.patch -O ../patches/mac80211.patch
patch -p1 --no-backup-if-mismatch < ../patches/mac80211.patch
patch -p1 --no-backup-if-mismatch < ${basedir}/../patches/mac80211.patch
touch .scmversion
export ARCH=arm
export CROSS_COMPILE=arm-linux-gnueabihf-

View File

@@ -214,9 +214,7 @@ EOF
# them in this section.
git clone --depth 1 https://github.com/hardkernel/linux.git -b odroidxu3-3.10.y ${basedir}/kernel
cd ${basedir}/kernel
mkdir -p ../patches
wget http://patches.aircrack-ng.org/mac80211.compat08082009.wl_frag+ack_v1.patch -O ../patches/mac80211.patch
patch -p1 --no-backup-if-mismatch < ../patches/mac80211.patch
patch -p1 --no-backup-if-mismatch < ${basedir}/../patches/mac80211.patch
touch .scmversion
export ARCH=arm
export CROSS_COMPILE=arm-linux-gnueabihf-
@@ -313,6 +311,6 @@ if [ ${MACHINE_TYPE} == 'x86_64' ]; then
echo "Compressing kali-$1-odroidxu3.img"
pixz ${basedir}/kali-$1-odroidxu3.img ${basedir}/kali-$1-odroidxu3.img.xz
rm ${basedir}/kali-$1-odroidxu3.img
echo "Generating sha1sum for kali-$1-odroidxu.img.xz"
echo "Generating sha1sum for kali-$1-odroidxu3.img.xz"
sha1sum kali-$1-odroidxu3.img.xz > ${basedir}/kali-$1-odroidxu3.img.xz.sha1sum
fi

36
riot.sh
View File

@@ -39,6 +39,12 @@ extras="iceweasel wpasupplicant"
export packages="${arm} ${base} ${desktop} ${tools} ${services} ${extras}"
export architecture="armhf"
# If you have your own preferred mirrors, set them here.
# You may want to leave security.kali.org alone, but if you trust your local
# mirror, feel free to change this as well.
# After generating the rootfs, we set the sources.list to the default settings.
export mirror=http.kali.org
export security=security.kali.org
# Set this to use an http proxy, like apt-cacher-ng, and uncomment further down
# to unset it.
@@ -48,14 +54,14 @@ mkdir -p ${basedir}
cd ${basedir}
# create the rootfs - not much to modify here, except maybe the hostname.
debootstrap --foreign --arch $architecture kali kali-$architecture http://http.kali.org/kali
debootstrap --foreign --arch $architecture kali kali-$architecture http://$mirror/kali
cp /usr/bin/qemu-arm-static kali-$architecture/usr/bin/
LANG=C chroot kali-$architecture /debootstrap/debootstrap --second-stage
cat << EOF > kali-$architecture/etc/apt/sources.list
deb http://http.kali.org/kali kali main contrib non-free
deb http://security.kali.org/kali-security kali/updates main contrib non-free
deb http://$mirror/kali kali main contrib non-free
deb http://$security/kali-security kali/updates main contrib non-free
EOF
# Set hostname
@@ -181,22 +187,27 @@ cat << EOF >> ${basedir}/root/etc/securetty
ttymxc1
EOF
cat << EOF > ${basedir}/root/etc/apt/sources.list
deb http://http.kali.org/kali kali main non-free contrib
deb http://security.kali.org/kali-security kali/updates main contrib non-free
deb-src http://http.kali.org/kali kali main non-free contrib
deb-src http://security.kali.org/kali-security kali/updates main contrib non-free
EOF
# Uncomment this if you use apt-cacher-ng otherwise git clones will fail
#unset http_proxy
# Kernel section. If you want to use a custom kernel, or configuration, replace
# them in this section.
#
# Mainline-ish - 3.15.0-rc7 base with some i.MX and RIoTboard fixes on top.
git clone --depth 1 -b riotboard-dts4 git://github.com/selsinork/linux.git ${basedir}/kernel
git clone --depth 1 git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git ${basedir}/kernel
cd ${basedir}/kernel
mkdir -p ../patches
wget http://patches.aircrack-ng.org/mac80211.compat08082009.wl_frag+ack_v1.patch -O ../patches/mac80211.patch
patch -p1 --no-backup-if-mismatch < ../patches/mac80211.patch
patch -p1 --no-backup-if-mismatch < ${basedir}/../patches/mac80211.patch
touch .scmversion
export ARCH=arm
export CROSS_COMPILE=arm-linux-gnueabihf-
cp ${basedir}/../kernel-configs/riot.config
cp ${basedir}/../kernel-configs/riot.config .config
make -j $(grep -c processor /proc/cpuinfo)
make modules_install INSTALL_MOD_PATH=${basedir}/root
cp arch/arm/boot/zImage ${basedir}/bootp/
@@ -205,7 +216,8 @@ cd ${basedir}
rm -rf ${basedir}/root/lib/firmware
cd ${basedir}/root/lib
git clone --depth 1 https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git firmware
#git clone --depth 1 https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git firmware
git clone --depth 1 file:///root/sandbox/mirror/linux-firmware.git firmware
rm -rf ${basedir}/root/lib/firmware/.git
# Need some firmware from the kernel so..
cd ${basedir}/kernel
@@ -213,9 +225,9 @@ make modules_install INSTALL_MOD_PATH=${basedir}/root
cd ${basedir}
# Mainline u-boot with RIoTboard fixes on top
git clone -b embest-boards-fixes --depth 1 git://github.com/selsinork/u-boot.git
git clone --depth 1 git://git.denx.de/u-boot.git
cd u-boot
make riotboard_config
make riotboard_defconfig
make -j $(grep -c processor /proc/cpuinfo)
dd if=u-boot.imx of=$loopdevice bs=1024 seek=1
cd ${basedir}

View File

@@ -8,7 +8,7 @@ if [[ $# -eq 0 ]] ; then
exit 0
fi
basedir=`pwd`/rpitft-$1
basedir=`pwd`/rpi-tft-$1
# Package installations for various sections.
# This will build a minimal XFCE Kali system with the top 10 tools.
@@ -198,9 +198,7 @@ git clone --depth 1 https://github.com/raspberrypi/tools ${basedir}/tools
cd ${basedir}/kernel
git submodule init
git submodule update
mkdir -p ../patches
wget https://raw.github.com/offensive-security/kali-arm-build-scripts/master/patches/kali-wifi-injection-3.12.patch -O ../patches/mac80211.patch
patch -p1 --no-backup-if-mismatch < ../patches/mac80211.patch
patch -p1 --no-backup-if-mismatch < ${basedir}/../patches/kali-wifi-injection-3.12.patch
touch .scmversion
export ARCH=arm
export CROSS_COMPILE=${basedir}/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/arm-linux-gnueabihf-

11
rpi.sh
View File

@@ -192,22 +192,23 @@ EOF
# Kernel section. If you want to use a custom kernel, or configuration, replace
# them in this section.
git clone --depth 1 https://github.com/raspberrypi/linux -b rpi-3.12.y ${basedir}/kernel
git clone --depth 1 https://github.com/raspberrypi/linux -b rpi-3.18.y ${basedir}/kernel
git clone --depth 1 https://github.com/raspberrypi/tools ${basedir}/tools
cd ${basedir}/kernel
mkdir -p ../patches
wget https://raw.github.com/offensive-security/kali-arm-build-scripts/master/patches/kali-wifi-injection-3.12.patch -O ../patches/mac80211.patch
patch -p1 --no-backup-if-mismatch < ../patches/mac80211.patch
patch -p1 --no-backup-if-mismatch < ${basedir}/../patches/kali-wifi-injection-3.18.patch
touch .scmversion
export ARCH=arm
export CROSS_COMPILE=${basedir}/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/arm-linux-gnueabihf-
cp ${basedir}/../kernel-configs/rpi-3.12.config .config
cp ${basedir}/../kernel-configs/rpi-3.18.config .config
make -j $(grep -c processor /proc/cpuinfo)
make modules_install INSTALL_MOD_PATH=${basedir}/root
git clone --depth 1 https://github.com/raspberrypi/firmware.git rpi-firmware
cp -rf rpi-firmware/boot/* ${basedir}/bootp/
cp arch/arm/boot/zImage ${basedir}/bootp/kernel.img
mkdir ${basedir}/bootp/overlays/
cp arch/arm/boot/dts/bcm*.dtb ${basedir}/bootp/
cp arch/arm/boot/dts/*overlay*.dtb ${basedir}/bootp/overlays/
cd ${basedir}
# Create cmdline.txt file

View File

@@ -192,8 +192,7 @@ patch -p1 --no-backup-if-mismatch < ${basedir}/../patches/kali-wifi-injection-3.
touch .scmversion
export ARCH=arm
export CROSS_COMPILE=arm-linux-gnueabihf-
#cp ${basedir}/../kernel-configs/rpi-3.18.config .config
make bcm2709_defconfig
cp ${basedir}/../kernel-configs/rpi2-3.18.config .config
make -j $(grep -c processor /proc/cpuinfo)
make modules_install INSTALL_MOD_PATH=${basedir}/root
git clone --depth 1 https://github.com/raspberrypi/firmware.git rpi-firmware

View File

@@ -202,9 +202,7 @@ EOF
# them in this section.
git clone --depth 1 git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git ${basedir}/kernel
cd ${basedir}/kernel
mkdir -p ../patches
wget http://patches.aircrack-ng.org/mac80211.compat08082009.wl_frag+ack_v1.patch -O ../patches/mac80211.patch
patch -p1 --no-backup-if-mismatch < ../patches/mac80211.patch
patch -p1 --no-backup-if-mismatch < ${basedir}/../patches/mac80211.patch
touch .scmversion
export ARCH=arm
export CROSS_COMPILE=arm-linux-gnueabihf-

View File

@@ -200,11 +200,10 @@ EOF
# Kernel section. If you want to use a custom kernel, or configuration, replace
# them in this section.
git clone --depth 1 git://gitorious.org/utilite/utilite.git ${basedir}/kernel
# For now, use the 3.0 kernel. Latest kernel is 3.10, but needs a new u-boot.
git clone --branch utilite/devel --depth 1 https://github.com/utilite-computer/linux-kernel-3.0 ${basedir}/kernel
cd ${basedir}/kernel
mkdir -p ../patches
wget http://patches.aircrack-ng.org/mac80211.compat08082009.wl_frag+ack_v1.patch -O ../patches/mac80211.patch
patch -p1 --no-backup-if-mismatch < ../patches/mac80211.patch
patch -p1 --no-backup-if-mismatch < ${basedir}/../patches/mac80211.patch
cp ${basedir}/../kernel-configs/utilite.config .config
touch .scmversion
export ARCH=arm