Skip to content

Instantly share code, notes, and snippets.

@RichardWithnell
Last active August 2, 2017 20:56
Show Gist options
  • Save RichardWithnell/50a505b9104fb4c425d1 to your computer and use it in GitHub Desktop.
Save RichardWithnell/50a505b9104fb4c425d1 to your computer and use it in GitHub Desktop.
MPTCP Raspberry Pi
git clone http://github.com/richardwithnell/mptcp-rpi
make mrproper
# 64 Bit
# export CCPREFIX=/home/richard/Software/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/arm-linux-gnueabihf-
# 32 Bit
export CCPREFIX=/home/richard/Software/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/arm-linux-gnueabihf-
make ARCH=arm CROSS_COMPILE=$CCPREFIX bcmrpi_defconfig
make ARCH=arm CROSS_COMPILE=$CCPREFIX menuconfig
make -j3 ARCH=arm CROSS_COMPILE=$CCPREFIX
mkdir -p ../mnt/fat32
mkdir -p ../mnt/ext4
sudo mount /dev/sdb1 ../mnt/fat32
sudo mount /dev/sdb2 ../mnt/ext4
make ARCH=arm CROSS_COMPILE=$CCPREFIX INSTALL_MOD_PATH=../mnt/ext4 modules
sudo make ARCH=arm CROSS_COMPILE=$CCPREFIX INSTALL_MOD_PATH=../mnt/ext4 modules_install
sudo cp ../mnt/fat32/kernel.img ../mnt/fat32/kernel-backup.img
sudo cp arch/arm/boot/Image ../mnt/fat32/kernel.img
sudo umount ../mnt/fat32
sudo umount ../mnt/ext4
git clone http://github.com/richardwithnell/mptcp-rpi
make mrproper
# 64 Bit
# export CCPREFIX=/home/richard/Software/raspberrypi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/arm-linux-gnueabihf-
# 32 Bit
export CCPREFIX=/home/richard/Software/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/arm-linux-gnueabihf-
make ARCH=arm CROSS_COMPILE=$CCPREFIX bcm2709_defconfig
make ARCH=arm CROSS_COMPILE=$CCPREFIX menuconfig
make -j3 ARCH=arm CROSS_COMPILE=$CCPREFIX
mkdir -p ../mnt/fat32
mkdir -p ../mnt/ext4
sudo mount /dev/sdb1 ../mnt/fat32
sudo mount /dev/sdb2 ../mnt/ext4
make ARCH=arm CROSS_COMPILE=$CCPREFIX INSTALL_MOD_PATH=../mnt/ext4 modules
sudo make ARCH=arm CROSS_COMPILE=$CCPREFIX INSTALL_MOD_PATH=../mnt/ext4 modules_install
sudo cp ../mnt/fat32/kernel7.img ../mnt/fat32/kernel7-backup.img
sudo cp arch/arm/boot/Image ../mnt/fat32/kernel7.img
sudo umount ../mnt/fat32
sudo umount ../mnt/ext4
@reedog117
Copy link

Do you have any similar instructions for RPi3?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment