aboutsummaryrefslogtreecommitdiff
path: root/board/raspberrypi/post-image.sh
Commit message (Collapse)AuthorAgeFilesLines
* board/raspberrypi: update firmware option to use 64-bit modeGravatar J. Tang2018-06-301-2/+2
| | | | | | | | | | As per latest Raspberry Pi firmware documentation, the option 'arm_control' has been deprecated in favor of 'arm_64bit'. Fixes https://bugs.busybox.net/show_bug.cgi?id=11111. Signed-off-by: Jason Tang <tang@jtang.org> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* raspberrypi: post-image.sh fix gpu_mem optionGravatar Gaël PORTAY2017-10-211-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | The gpu_mem option is not using the proper option argument which causes sed to fail. + case "${arg}" in + gpu_mem=ome/gportay/output-rpi3-qtwe/images + sed -e '/^ome/gportay/output-rpi3-qtwe/images=/s,=.*,=ome/gportay/output-rpi3-qtwe/images,' -i /home/gportay/output-rpi3-qtwe/images/rpi-firmware/config.txt sed: -e expression #1, char 8: extra characters after command + case "${arg}" in + gpu_mem=ome/gportay/output-rpi3-qtwe/images + sed -e '/^ome/gportay/output-rpi3-qtwe/images=/s,=.*,=ome/gportay/output-rpi3-qtwe/images,' -i /home/gportay/output-rpi3-qtwe/images/rpi-firmware/config.txt sed: -e expression #1, char 8: extra characters after command The issue comes from the use of $1 instead of $arg to extract the gpu_mem value. $1 is the $(BINARIES_DIR) which leads to a sed expression error. Also, it adds the error flag to the shell script to prevent from such situation and terminate the build in error. Signed-off-by: Gaël PORTAY <gael.portay@savoirfairelinux.com> Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* raspberrypi: post-image.sh add new gpu_mem optionGravatar Gaël PORTAY2017-09-271-1/+6
| | | | | | | | The amount of GPU memory can be set using the new option --gpu_mem_XXX (where XXX is the total amount of memory available on the board). Signed-off-by: Gaël PORTAY <gael.portay@savoirfairelinux.com> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
* board/raspberrypi/post-image.sh: add multi arg supportGravatar Erik Stromdahl2017-09-271-19/+23
| | | | | | | | | Add possibility to supply multiple arguments to post-image.sh Signed-off-by: Erik Stromdahl <erik.stromdahl@gmail.com> [Arnout: indent esac, suggested by Gaël PORTAY] Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
* configs: add raspberrypi3 64bits defconfigGravatar Gaël PORTAY2017-05-041-0/+20
| | | | | | | | | | | | This configuration builds a 64bit image for RaspberryPi 3. The size of the ext4 filesystem has to be extended to fit the large amount (~60MB) of kernel modules enabled in the defconfig. [Peter: drop gcc version selection / glibc, explain ext4 size requirement] Signed-off-by: Gaël PORTAY <gael.portay@savoirfairelinux.com> Tested-by: Ricardo Martincoski <ricardo.martincoski@gmail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* board: raspberrypi: don't generate a marked kernelGravatar Baruch Siach2017-01-261-5/+0
| | | | | | | | | We no longer use the marked kernel. Cc: Peter Seiderer <ps.report@gmx.net> Signed-off-by: Baruch Siach <baruch@tkos.co.il> Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* raspberrypi3: fix serial console (load pi3-miniuart-bt overlay)Gravatar Peter Seiderer2016-09-181-0/+13
| | | | | | | | | | - enable BR2_PACKAGE_RPI_FIRMWARE_INSTALL_DTB_OVERLAYS in raspberrypi3_defconfig - add copy of rpi-firmware/overlays directory to boot partition in genimage-raspberrypi3.cfg - enhance post-image.sh script to add 'dtoverlay=pi3-miniuart-bt' on request - add BR2_ROOTFS_POST_SCRIPT_ARGS="--add-pi3-miniuart-bt-overlay" in raspberrypi3_defconfig Signed-off-by: Peter Seiderer <ps.report@gmx.net> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* configs/raspberrypi*: update them to use genimageGravatar Gustavo Zacarias2015-12-311-0/+22
Update the raspberrypi and raspberrypi2 configs to use genimage directly to build the image. Update the documentation to reflect this, and drop the volatile rootfs option since it doesn't make much sense and it's not easily integrated with the genimage configurations. Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>