From c1f26915fcfe70e2356075f75ed1d039cac9ce39 Mon Sep 17 00:00:00 2001 From: Calin Crisan Date: Sat, 5 Mar 2016 18:15:12 +0200 Subject: [PATCH] raspberrypi3: added wifi support --- board/raspberrypi3/config.txt | 2 ++ board/raspberrypi3/postscript.sh | 17 ++++++++++++++++- configs/raspberrypi3_defconfig | 2 ++ 3 files changed, 20 insertions(+), 1 deletion(-) mode change 120000 => 100755 board/raspberrypi3/postscript.sh diff --git a/board/raspberrypi3/config.txt b/board/raspberrypi3/config.txt index d10dfdaaca..5177d740c9 100644 --- a/board/raspberrypi3/config.txt +++ b/board/raspberrypi3/config.txt @@ -4,3 +4,5 @@ gpu_mem=128 gpu_mem_256=128 gpu_mem_512=128 disable_camera_led=0 +device_tree=bcm2710-rpi-3-b.dtb + diff --git a/board/raspberrypi3/postscript.sh b/board/raspberrypi3/postscript.sh deleted file mode 120000 index 6ecd231555..0000000000 --- a/board/raspberrypi3/postscript.sh +++ /dev/null @@ -1 +0,0 @@ -../raspberrypi/postscript.sh \ No newline at end of file diff --git a/board/raspberrypi3/postscript.sh b/board/raspberrypi3/postscript.sh new file mode 100755 index 0000000000..44bc28289c --- /dev/null +++ b/board/raspberrypi3/postscript.sh @@ -0,0 +1,16 @@ +#!/bin/sh + +RPI_FW_DIR=$TARGET/../images/rpi-firmware + +# copy System.map +cp $TARGET/../build/linux-*/System.map $TARGET/System.map + +cp $BOARD_DIR/config.txt $BOOT_DIR +cp $BOARD_DIR/cmdline.txt $BOOT_DIR +cp $BOARD_DIR/fwupdater.gz $BOOT_DIR +cp $IMG_DIR/zImage $BOOT_DIR/kernel.img +cp $IMG_DIR/bcm2710-rpi-3-b.dtb $BOOT_DIR +cp $RPI_FW_DIR/bootcode.bin $BOOT_DIR +cp $RPI_FW_DIR/start.elf $BOOT_DIR +cp $RPI_FW_DIR/fixup.dat $BOOT_DIR + diff --git a/configs/raspberrypi3_defconfig b/configs/raspberrypi3_defconfig index 67f5488c66..efdec8656d 100644 --- a/configs/raspberrypi3_defconfig +++ b/configs/raspberrypi3_defconfig @@ -29,6 +29,8 @@ BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION="https://github.com/raspberrypi/linux/a BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="board/raspberrypi3/kernel.config" BR2_LINUX_KERNEL_ZIMAGE=y +BR2_LINUX_KERNEL_DTS_SUPPORT=y +BR2_LINUX_KERNEL_INTREE_DTS_NAME="bcm2710-rpi-3-b" BR2_PACKAGE_BUSYBOX_CONFIG="board/common/busybox-1.22.x.config" BR2_PACKAGE_BUSYBOX_SHOW_OTHERS=y BR2_PACKAGE_MOTIONEYE=y