##// END OF EJS Templates
.
burnbabyburn -
r314:0bf152b27784
parent child
Show More
@@ -243,6 +243,7 if [ -n "$SET_ARCH" ] ; then
243
243
244 #Raspberry setting grouped by board compability
244 #Raspberry setting grouped by board compability
245 if [ "$RPI_MODEL" = 0 ] || [ "$RPI_MODEL" = 1 ] || [ "$RPI_MODEL" = 1P ] ; then
245 if [ "$RPI_MODEL" = 0 ] || [ "$RPI_MODEL" = 1 ] || [ "$RPI_MODEL" = 1P ] ; then
246 echo "Setting settings for bcm2835 Raspberry PI boards"
246 REQUIRED_PACKAGES="${REQUIRED_PACKAGES} crossbuild-essential-armel"
247 REQUIRED_PACKAGES="${REQUIRED_PACKAGES} crossbuild-essential-armel"
247 KERNEL_DEFCONFIG=${KERNEL_DEFCONFIG:=bcmrpi_defconfig}
248 KERNEL_DEFCONFIG=${KERNEL_DEFCONFIG:=bcmrpi_defconfig}
248 UBOOT_CONFIG=${UBOOT_CONFIG:=rpi_defconfig}
249 UBOOT_CONFIG=${UBOOT_CONFIG:=rpi_defconfig}
@@ -251,12 +252,16 if [ -n "$SET_ARCH" ] ; then
251 CROSS_COMPILE=${CROSS_COMPILE:=arm-linux-gnueabi-}
252 CROSS_COMPILE=${CROSS_COMPILE:=arm-linux-gnueabi-}
252 fi
253 fi
253 if [ "$RPI_MODEL" = 2 ] || [ "$RPI_MODEL" = 3 ] || [ "$RPI_MODEL" = 3P ] ; then
254 if [ "$RPI_MODEL" = 2 ] || [ "$RPI_MODEL" = 3 ] || [ "$RPI_MODEL" = 3P ] ; then
255 echo "Setting settings for bcm2837 Raspberry PI boards"
254 REQUIRED_PACKAGES="${REQUIRED_PACKAGES} crossbuild-essential-armhf"
256 REQUIRED_PACKAGES="${REQUIRED_PACKAGES} crossbuild-essential-armhf"
255 KERNEL_DEFCONFIG=${KERNEL_DEFCONFIG:=bcm2709_defconfig}
257 KERNEL_DEFCONFIG=${KERNEL_DEFCONFIG:=bcm2709_defconfig}
256 RELEASE_ARCH=${RELEASE_ARCH:=armhf}
258 RELEASE_ARCH=${RELEASE_ARCH:=armhf}
257 KERNEL_IMAGE=${KERNEL_IMAGE:=kernel7.img}
259 KERNEL_IMAGE=${KERNEL_IMAGE:=kernel7.img}
258 CROSS_COMPILE=${CROSS_COMPILE:=arm-linux-gnueabihf-}
260 CROSS_COMPILE=${CROSS_COMPILE:=arm-linux-gnueabihf-}
259 fi
261 fi
262
263 echo "Setting Raspberry PI $RPI_MODEL specific configuration"
264
260 #Device specific configuration
265 #Device specific configuration
261 case "$RPI_MODEL" in
266 case "$RPI_MODEL" in
262 0)
267 0)
@@ -286,35 +291,6 if [ -n "$SET_ARCH" ] ; then
286 ;;
291 ;;
287 esac
292 esac
288
293
289 #Device specific configuration
290 # if [ "$RPI_MODEL" = 0 ] ; then
291 # DTB_FILE=${DTB_FILE:=bcm2708-rpi-0-w.dtb}
292 # fi
293 # if [ "$RPI_MODEL" = 1 ] ; then
294 # DTB_FILE=${DTB_FILE:=bcm2708-rpi-b.dtb}
295 # fi
296 # if [ "$RPI_MODEL" = 1P ] ; then
297 # DTB_FILE=${DTB_FILE:=bcm2708-rpi-b-plus.dtb}
298 # fi
299 # if [ "$RPI_MODEL" = 2 ] ; then
300 # DTB_FILE=${DTB_FILE:=bcm2709-rpi-2-b.dtb}
301 # UBOOT_CONFIG=${UBOOT_CONFIG:=rpi_2_defconfig}
302 # #Precompiled Kernel rpi2
303 # #COLLABORA_KERNEL=${COLLABORA_KERNEL:=3.18.0-trunk-rpi2}
304 # fi
305 # if [ "$RPI_MODEL" = 3 ] ; then
306 # DTB_FILE=${DTB_FILE:=bcm2710-rpi-3-b.dtb}
307 # UBOOT_CONFIG=${UBOOT_CONFIG:=rpi_3_32b_defconfig}
308 # fi
309 # if [ "$RPI_MODEL" = 3P ] ; then
310 # DTB_FILE=${DTB_FILE:=bcm2710-rpi-3-b.dtb}
311 # UBOOT_CONFIG=${UBOOT_CONFIG:=rpi_3_32b_defconfig}
312 # fi
313 # if [ -z "$RPI_MODEL" ] ; then
314 # echo "error: Raspberry Pi model $RPI_MODEL is not set!"
315 # exit 1
316 # fi
317
318 #end 32 bit
294 #end 32 bit
319 fi
295 fi
320 #SET_ARCH not set
296 #SET_ARCH not set
@@ -324,12 +300,14 else
324 fi
300 fi
325
301
326 # Check if the internal wireless interface is supported by the RPi model
302 # Check if the internal wireless interface is supported by the RPi model
327 if [ "$ENABLE_WIRELESS" = true ] && { [ "$RPI_MODEL" = 1 ] || [ "$RPI_MODEL" = 1P ] || [ "$RPI_MODEL" = 2 ] ; } ; then
303 if [ "$ENABLE_WIRELESS" = true ] ; then
328 echo "error: The selected Raspberry Pi model has no internal wireless interface"
304 if [ "$RPI_MODEL" = 1 ] || [ "$RPI_MODEL" = 1P ] || [ "$RPI_MODEL" = 2 ] ; then
329 exit 1
305 echo "error: The selected Raspberry Pi model has no internal wireless interface"
330 else
306 exit 1
331 echo "Raspberry Pi model"
307 else
332 fi
308 echo "Raspberry Pi model"
309 fi
310 fi
333
311
334 # Check if DISABLE_UNDERVOLT_WARNINGS parameter value is supported
312 # Check if DISABLE_UNDERVOLT_WARNINGS parameter value is supported
335 if [ -n "$DISABLE_UNDERVOLT_WARNINGS" ] ; then
313 if [ -n "$DISABLE_UNDERVOLT_WARNINGS" ] ; then
General Comments 0
Vous devez vous connecter pour laisser un commentaire. Se connecter maintenant