From a983859291e29e2cfe26df8e00814b546d865b5c Mon Sep 17 00:00:00 2001 From: Amaury Pouly Date: Mon, 26 Sep 2016 21:22:21 +0100 Subject: imx233: add capability to boot OF or updater instead of Rockbox This commit adds the necessary code in the dualboot stub (bootloader) to let rockbox control the boot process. In particular, rockbox can now choose if the next boot will be normal (boot rockbox or OF on magic key), to OF or to updater. The intents (to be added in follow-up commits) are: 1) Let the user more easily reboot to the OF. On some targets it is not trivial, especially in USB mode. 2) Automatically reboot to updater when the user drop firmware.sb at the root of the drive (currently, the user needs to do that in OF USB mode) 3) Document this OF magic Change-Id: I86df651dec048c318c6a22de74abb8c6b41aa9ad --- rbutil/mkimxboot/dualboot/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'rbutil/mkimxboot/dualboot/Makefile') diff --git a/rbutil/mkimxboot/dualboot/Makefile b/rbutil/mkimxboot/dualboot/Makefile index 7abd381b2d..b80233226a 100644 --- a/rbutil/mkimxboot/dualboot/Makefile +++ b/rbutil/mkimxboot/dualboot/Makefile @@ -2,8 +2,8 @@ CC=gcc LD=ld OC=objcopy PREFIX?=arm-elf-eabi- -REGS_PATH=../../../firmware/target/arm/imx233/regs -CFLAGS=-mcpu=arm926ej-s -std=gnu99 -I. -I$(REGS_PATH) -nostdlib -ffreestanding -fomit-frame-pointer -O +IMX233_PATH=../../../firmware/target/arm/imx233 +CFLAGS=-mcpu=arm926ej-s -std=gnu99 -I. -I$(IMX233_PATH) -nostdlib -ffreestanding -fomit-frame-pointer -O # Edit the following variables when adding a new target. # mkimxboot.c also needs to be edited to refer to these # To add a new target x you need to: -- cgit v1.2.3