summaryrefslogtreecommitdiffstats
path: root/arch/arm/lib/armlinux.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2011-04-01 14:21:29 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2011-04-04 16:27:59 +0200
commit973069dcaf94527ad7655368d47e5955db862f3b (patch)
treeeab7323d54cbb28cbb0ca41d70385d1ec0e078fb /arch/arm/lib/armlinux.c
parentf103a9843e480debba080cf4fab602bc751fbad8 (diff)
downloadbarebox-973069dcaf94527ad7655368d47e5955db862f3b.tar.gz
barebox-973069dcaf94527ad7655368d47e5955db862f3b.tar.xz
ARM: move bootu code to its own file
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/lib/armlinux.c')
-rw-r--r--arch/arm/lib/armlinux.c33
1 files changed, 0 insertions, 33 deletions
diff --git a/arch/arm/lib/armlinux.c b/arch/arm/lib/armlinux.c
index bb4bcd3c4f..ce1cc6bce3 100644
--- a/arch/arm/lib/armlinux.c
+++ b/arch/arm/lib/armlinux.c
@@ -231,36 +231,3 @@ void start_linux(void *adr, int swap, struct image_data *data)
kernel(0, armlinux_architecture, armlinux_bootparams);
}
-
-#ifdef CONFIG_CMD_BOOTU
-static int do_bootu(struct command *cmdtp, int argc, char *argv[])
-{
- void (*theKernel)(int zero, int arch, void *params) = NULL;
- int fd;
-
- if (argc != 2) {
- barebox_cmd_usage(cmdtp);
- return 1;
- }
-
- fd = open(argv[1], O_RDONLY);
- if (fd > 0)
- theKernel = (void *)memmap(fd, PROT_READ);
-
- if (!theKernel)
- theKernel = (void *)simple_strtoul(argv[1], NULL, 0);
-
- start_linux(theKernel, 0, NULL);
-
- return 1;
-}
-
-static const __maybe_unused char cmd_bootu_help[] =
-"Usage: bootu <address>\n";
-
-BAREBOX_CMD_START(bootu)
- .cmd = do_bootu,
- .usage = "bootu - start a raw linux image",
- BAREBOX_CMD_HELP(cmd_bootu_help)
-BAREBOX_CMD_END
-#endif /* CONFIG_CMD_BOOTU */