summaryrefslogtreecommitdiffstats
path: root/scripts
Commit message (Collapse)AuthorAgeFilesLines
* OMAP4_USBboot: Change output text formattingVicente Bergas2014-03-241-8/+9
| | | | | | | | | | | The basic console used for USBboot has two different formattings, one for text coming from the host and another for text coming from the target. This change makes both formattings readable regardless of the console background color. Signed-off-by: Vicente Bergas <vicencb@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/misc'Sascha Hauer2014-03-071-1/+0
|\ | | | | | | | | Conflicts: common/environment.c
| * scripts/kwboot: Remove redundant assignmentAlexander Shiyan2014-02-171-1/+0
| | | | | | | | | | Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/marvell'Sascha Hauer2014-03-071-2/+3
|\ \ | | | | | | | | | | | | Conflicts: arch/arm/dts/Makefile
| * | scripts/kwbimage: Fix resource leak in image_create_payload()Alexander Shiyan2014-02-041-2/+2
| | | | | | | | | | | | | | | Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | scripts/kwbimage: Fix resource leak in image_create()Alexander Shiyan2014-02-041-0/+1
| |/ | | | | | | | | Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/imx-image'Sascha Hauer2014-03-071-1/+3
|\ \ | | | | | | | | | | | | Conflicts: arch/arm/dts/Makefile
| * | ARM: i.MX: Add include directories to imximage targetSascha Hauer2014-02-131-1/+3
| |/ | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | defaultenv: Add boot option for DFUSascha Hauer2014-02-281-0/+68
| | | | | | | | | | | | | | | | | | | | | | DFU is for device firmware upgrade, but for development purposes it's sometmes useful to just start a kernel vie DFU. This adds a boot option for doing this and also the corresponding counterpart on the host. With this it's possible to boot a system with: scripts/dfuboot.sh -k linuximage -d dtb -c "root=ubi0:root ubi.mtd=ubi rootfstype=ubifs ignore_loglevel" Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | make: Add bbenv-y target to generate default environment filesSascha Hauer2014-02-211-0/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds a target to generate environment files from directories. These are compiled into the barebox binary. use it as: bbenv-$(CONFIG_SOMETHING) += my-environment The directory containing the files to compile into the binary should be named my-environment. This can be accessed in C code later as: extern unsigned char __bbenv_my_environment_start[]; extern unsigned char __bbenv_my_environment_end[]; Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | make: Add wildcard rules for compressed filesSascha Hauer2014-02-181-0/+18
| | | | | | | | | | | | To simplify generating compressed files. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | defaultenv: simplify env dependenciesSascha Hauer2014-02-181-2/+10
|/ | | | | | | | | | Finding out whether to rebuild the environment is a difficult task since we have to track all files in a directory. Instead of trying this, just rebuild the environment during every build and only if it differs to the last one overwrite the target. This way make only sees a change when the environment is changed. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/misc'Sascha Hauer2014-02-031-2/+2
|\
| * Make generated variables staticAlexander Shiyan2014-02-031-2/+2
| | | | | | | | | | Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/imx'Sascha Hauer2014-02-031-7/+32
|\ \ | | | | | | | | | | | | Conflicts: arch/arm/boards/dmo-mx6-realq7/lowlevel.c
| * | scripts: fix_size: check magicSascha Hauer2014-01-311-7/+32
| |/ | | | | | | | | | | | | | | Instead of passing the offset to the fix_size tool check the image to fixup for a valid header so that only recognized files are fixed up. This makes the usage of this tool safer. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | scripts: imx-usb-loader: Fix memory leakAlexander Shiyan2014-01-291-1/+4
| | | | | | | | | | Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | scripts: kwbimage: fix imagebuild on 32bit host systemMichael Grzeschik2014-01-271-8/+8
|/ | | | | | | | | | We have to use strtoul to run the tool working on 32bit systems. Otherwise it will generate signed numbers for strings representing values with the 32nd bit set. Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de> Acked-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* scripts: add kernel-install-target to gitignoreAlexander Aring2013-12-091-0/+1
| | | | | Signed-off-by: Alexander Aring <alex.aring@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/x86'Sascha Hauer2013-12-063-3/+5
|\
| * Makefile: Align "DTB" string to othersAlexander Shiyan2013-11-111-1/+1
| | | | | | | | | | Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * scripts: Add fix_size & kernel-install to .gitignoreAlexander Shiyan2013-11-111-0/+2
| | | | | | | | | | Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * scripts/setupmbr: fix documentationThomas Petazzoni2013-11-111-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The documentation says setupmbr should be used with the image named 'barebox', but it should instead be done with the 'barebox.bin' image. Attempting to use setupmbr on the ELF barebox image simply fails: $ ./scripts/setupmbr/setupmbr -s 32 -m ./barebox -d disk.img No MBR signature found barebox image seems not valid: Bad MBR signature Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/omap-devicetree-prepare'Sascha Hauer2013-12-061-0/+3
|\ \
| * | Make: introduce obj-pbl-ySascha Hauer2013-11-251-0/+3
| | | | | | | | | | | | | | | | | | For compiling object files both in the regular binary and the pbl. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | Merge branch 'for-next/misc'Sascha Hauer2013-12-068-26/+107
|\ \ \ | | | | | | | | | | | | | | | | Conflicts: scripts/Makefile
| * | | scripts: bareboxcrc32 as host and target userspacetoolMichael Grzeschik2013-12-045-19/+89
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds the crc32 command to be build as host and optionally as target tool. Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | scripts: kwbimage: fix mis-sized payloadSebastian Hesselbarth2013-11-181-3/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Image payload size should always be a multiple of 4 bytes. This fixes mis-sized image payload by allocating payload buffer as multiple of 4 but load true filesize into the payload buffer. Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | scripts: kwboot: fix missing soh initializationSebastian Hesselbarth2013-11-181-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Xmodem blocks should start with SOH but kwboot never sets the first block byte. This fixes kwboot's Xmodem block initialization and sets first block byte to SOH. Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | imx-usb-loader: Fix signed/unsigned arguments for printfAlexander Shiyan2013-11-111-4/+4
| | |/ | |/| | | | | | | | | | | | | | | | | | | "%i" in format string requires a signed integer. "%d" in format string requires a signed integer. Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | Merge branch 'for-next/imx'Sascha Hauer2013-12-062-0/+8
|\ \ \ | |_|/ |/| |
| * | scripts: imx-image: Add i.MX25 supportSascha Hauer2013-11-272-0/+8
| |/ | | | | | | | | | | | | The i.MX25 works like the i.MX51, just add the SoC magic and the USB product id. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* / scripts: fix kernel-install-target configAlexander Aring2013-11-201-1/+1
|/ | | | | Signed-off-by: Alexander Aring <alex.aring@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* kernel-install: Add missing error messagesSascha Hauer2013-11-051-2/+10
| | | | | | | In some cases kernel-install can fail without printing anything. Add error messages for these cases. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* add kernel-install tool for bootloader SpecSascha Hauer2013-10-142-0/+1401
| | | | | | | | | | | | This adds a tool for installing kernels according to the bootloader spec. systemd already has a similar tool, but it is limited to installing kernels on the currently running system. The barebox kernel-install tool instead can also be used to install kernels on removable media on a development host for cross development. It is compiled in two variants, as 'kernel-install' for the host and as 'kernel-install-target' using $CROSS_COMPILE. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/socfpga'Sascha Hauer2013-10-073-0/+289
|\ | | | | | | | | Conflicts: scripts/Makefile
| * scripts: Add Altera SoCFPGA mkimage supportSascha Hauer2013-09-233-0/+289
| | | | | | | | | | | | | | | | | | | | The Altera SoCFPGAs expect a simple header for their first stage loaders. This adds a tool to generate images for the SoCFPGAs. The header is either embedded into the image or optionally prepended to the image. In this case code is added to jump over the image header. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/omap'Sascha Hauer2013-10-071-16/+43
|\ \
| * | scripts/omap_signGP: add getoptSascha Hauer2013-09-271-16/+43
| |/ | | | | | | | | | | | | Instead of using positional arguments add proper getopt support. This also adds a help text. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | scripts/bareboxenv: Make locally used functions staticSascha Hauer2013-09-301-6/+6
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | scripts: Move omap4_usbboot to its own directorySascha Hauer2013-09-277-5/+7
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | scripts/Makefile: implement targetprogs-ySascha Hauer2013-09-271-5/+8
| | | | | | | | | | | | | | | | | | | | using obj-y for targetprogs only works until only a single program is compiled. Adding the second one will end up in the linker trying to link both together. Add targetprogs-y to fix this. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | scripts/Makefile: cleanupSascha Hauer2013-09-271-10/+10
| | | | | | | | | | | | | | Sort so that we have the object files on top, sorted by hostprogs-y and then subdir-y. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | add fix size toolsJean-Christophe PLAGNIOL-VILLARD2013-09-182-0/+82
|/ | | | | | | | | this will allow to write the size of barebox at an offset of the binary this is needed for ARM when using relocated binary Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/mvebu'Sascha Hauer2013-09-051-0/+3
|\
| * ARM: mvebu: introduce multi image supportSascha Hauer2013-08-161-0/+3
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/misc'Sascha Hauer2013-09-051-1/+1
|\ \
| * | small tweeks to build system for compatibility on MacOS XDarren Garnier2013-09-031-1/+1
| |/ | | | | | | | | Signed-off-by: Darren Garnier <dgarnier@reinrag.net> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* / imx-image: Align image sizeSascha Hauer2013-08-151-3/+13
|/ | | | | | | Several boot modes on i.MX can't cope with partial pages or non word aligned image lengths, so align the size to 4k. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/misc'Sascha Hauer2013-08-051-1/+1
|\