9
0
Fork 0
Commit Graph

3315 Commits

Author SHA1 Message Date
Wolfram Sang 788312ae29 add alternating mechanism and flash scripts for ipe337
- add scripts to flash kernel & environment from U-Boot
 - add mechanism to check which of the two kernels to boot
 - add script to initialize the ageing partition
 - cosmetic changes to the init-scripts
2008-02-15 11:38:31 +01:00
Marc Kleine-Budde 2ddf98f348 remove leftover Makefile entries
This patch removed leftover Makefile entries from
commit "d59c600c656d08410ea862c582fbd77432c3ca47". They should
have been reverted, but somehow survived

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2008-01-24 11:50:14 +01:00
Wolfram Sang 43ff909fb2 [IPE337] refreshed defconfig
Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
2008-01-24 11:07:34 +01:00
Wolfram Sang e18ff815e3 [IPE337] Better support for multiple revision
Changed bool into choice

Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
2008-01-24 11:06:54 +01:00
Wolfram Sang a119fc273b Make board IPE337 revision 2 selectable for .config
A new menu "Board options" is introduced, where one can select if the board
is a rev.2 (= 40Mhz)

Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
2008-01-23 20:44:32 +01:00
Enrik Berkhan 35fd1e8f5b Fix/Adapt settings for version 2 of IPE337
Signed-Off-By: Enrik Berkhan <Enrik.Berkhan@ge.com>
2008-01-23 12:13:23 +01:00
Enrik Berkhan 9f27a5f068 Enable blackfin boot rom boot modes
Signed-Off-By: Enrik Berkhan <Enrik.Berkhan@ge.com>
2008-01-23 12:13:23 +01:00
Enrik Berkhan 0449be2dc1 Only change ADVERTISE_ALL bit
Signed-Off-By: Enrik Berkhan <Enrik.Berkhan@ge.com>
2008-01-23 12:13:23 +01:00
Enrik Berkhan e02f84dd0b Fix typo in commands/Makefile to allow inclusion of mem write commands
Signed-Off-By: Enrik Berkhan <Enrik.Berkhan@ge.com>
2008-01-23 12:13:23 +01:00
Enrik Berkhan bd0aed0ae0 Avoid memtest at scratch address
When the tested address equals the scratch location, memtest will fail.

Signed-Off-By: Enrik Berkhan <Enrik.Berkhan@ge.com>
2008-01-23 12:13:23 +01:00
Marc Kleine-Budde 5c2afd89e1 [sandbox] fix read for buffers of zero length
This patch fixes the read function for the linux sandbox if a buffer
of zero length should be read. The error handling introduced in
6574529bb5 detects a false positive if the
length is zero.

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2008-01-02 21:48:31 +01:00
Robert Schwebel 85bacf61f6 pcm038: fix default environment wrt. ip address
The boot script doesn't honour the ip= parameter when booting from flash
only.

Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
2007-12-17 19:50:41 +01:00
Robert Schwebel 37443467a5 pcm038: add flash timing initialization
Add init code for the CS0 flash timing registers. These values are not
optimized yet, they are more or less copied from the Windows CE
installation.

Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
2007-12-17 19:50:41 +01:00
Marc Kleine-Budde 2e8e082fd3 version to rc4-git
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2007-11-30 10:03:03 +01:00
Marc Kleine-Budde 049063e2ad remove -isystem with empty argument
This patch removes the "-isystem $(gccincdir)" from the
arch/*/Makefile because gccindir is empty.

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2007-11-29 20:03:37 +01:00
Marc Kleine-Budde 1c6d34ac68 version bump to -rc3
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2007-11-29 13:56:46 +01:00
Marc Kleine-Budde 984dd939ba [pcm038] remove alternate partition from environment
This patch removes the alternate partition from the default environment.

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2007-11-29 10:48:52 +01:00
Marc Kleine-Budde f6f9065213 [sandbox] new defconfig
regenerated sandbox' defconfig

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2007-11-29 10:46:55 +01:00
Marc Kleine-Budde 6574529bb5 [sandbox] add error handling to read
This patch adds propper error handling to the linux' read functions.

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2007-11-29 10:22:50 +01:00
Marc Kleine-Budde aff35bbe09 improved codingstyle
this patch improves the codingstyle

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2007-11-29 10:22:49 +01:00
Marc Kleine-Budde f94dae59d7 improved codingstyle
This patch improved the codingstyle

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2007-11-29 10:22:49 +01:00
Marc Kleine-Budde 4da1393c0c [sandbox] added ^\q to exit uboot
This patch adds the possibility to exit u-boot in sandbox mode by
pressing ^\q.

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2007-11-29 10:22:49 +01:00
Marc Kleine-Budde 66bdf91279 [sparse] define functions static, use NULL as NULL pointer
fixes:
arch/sandbox/board/hostfile.c:32:9: warning: symbol 'hf_read' was not declared. Should it be static?
arch/sandbox/board/hostfile.c:43:9: warning: symbol 'hf_write' was not declared. Should it be static?

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2007-11-29 10:22:49 +01:00
Marc Kleine-Budde c27f282cc3 [sparse] declare functions static
this fixes:
arch/sandbox/board/clock.c:28:10: warning: symbol 'linux_clocksource_read' was not declared. Should it be static?

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2007-11-29 10:22:48 +01:00
Marc Kleine-Budde a69f6b6836 [sparse] declare functions static
this fixes:
arch/sandbox/board/hostfile.c:32:9: warning: symbol 'hf_read' was not declared. Should it be static?
arch/sandbox/board/hostfile.c:43:9: warning: symbol 'hf_write' was not declared. Should it be static?

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2007-11-29 10:22:48 +01:00
Marc Kleine-Budde cefc190b1b [sparse] declare functions static, use NULL as NULL pointer
this fixes:
fs/fs.c:210:6: warning: symbol 'files' was not declared. Should it be static?
fs/fs.c:212:6: warning: symbol 'get_file' was not declared. Should it be static?
fs/fs.c:227:6: warning: symbol 'put_file' was not declared. Should it be static?
fs/fs.c:248:5: warning: symbol 'dir_is_empty' was not declared. Should it be static?
fs/fs.c:613:41: warning: Using plain integer as NULL pointer

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2007-11-29 10:22:47 +01:00
Marc Kleine-Budde f0e65e3cf6 [sparse] use NULL for nullpointer
fixes:
lib/parameter.c:108:19: warning: Using plain integer as NULL pointer

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2007-11-29 10:22:47 +01:00
Marc Kleine-Budde 17e0a74ed3 [sparse] don't return sth in a void function
fixed
include/stdio.h:23:2: warning: returning void-valued expression

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2007-11-29 10:22:47 +01:00
Marc Kleine-Budde 039248654a [sandbox] fix stdin and stdout fd for sandbox console
u_boot_register_console uses the wrong filedescriptors for in and out
the are swapped. This patch fixes this problem and uses fileno instead.

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2007-11-29 10:22:47 +01:00
Marc Kleine-Budde dbfef6fb63 [sandbox] HACK: add variable _SDA_BASE_ to main, to please linker
This patch is a _CRUDE_HACK_ the linker complains about the missing
symbol _SDA_BASE_ on powerpc, so git it to him to please him and
finally link the sandbx.

LD      uboot
/usr/lib/gcc/powerpc-linux-gnu/4.2.3/../../../../lib/crt1.o:(.rodata+0x0): undefined reference to `_SDA_BASE_'

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2007-11-29 10:22:47 +01:00
Marc Kleine-Budde ebe11c4f22 [sandbox] add ELF_{ARCH,FORMAT} for powerpc
This patch adds the needed ELF_{ARCH,FORMAT} for the sandbox on powerpc

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2007-11-29 10:22:46 +01:00
Marc Kleine-Budde fb56fffbcb [sandbox] add propper sandbox detection
This patch adds a __SANDBOX__ define to identify compiling for the
sandbox.
When building for sandbox, don't use sync() workaround.

Fixes this error for sandbox on PPC:

CC      common/memsize.o
common/memsize.c:30:38: error: asm/io.h: No such file or directory
common/memsize.c: In function 'get_ram_size':
common/memsize.c:51: warning: implicit declaration of function 'sync'

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2007-11-29 10:22:46 +01:00
Marc Kleine-Budde b7e74539f8 [pcm038] check before update if server is alive
With this patch it's checked if the server is alive before erasing the flash

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2007-11-28 10:56:11 +01:00
Marc Kleine-Budde b5aa55445f [pcm038] fix defaultenv
The partitions have to activated already in init, not in boot.

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2007-11-28 10:55:22 +01:00
Marc Kleine-Budde be57231bc8 [sandbox] use C99 initializers
This patch uses C99 initializers to initialize the timeout in linux_tstc()

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2007-11-28 10:05:47 +01:00
Marc Kleine-Budde 66671b505f [pcm038] regenerate defconfig
This patch regenerates pcm038s defconfig

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2007-11-28 09:52:19 +01:00
Robert Schwebel e75fbbea2a pcm038: add default environment
Add a default environment for the phyCORE-i.MX27.

Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2007-11-28 09:40:36 +01:00
Robert Schwebel 675ff8ef8c [imx] make frequency output nicer
Make the frequency output a little bit nicer

From: Robert Schwebel <r.schwebel@pengutronix.de>

Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
2007-11-28 09:04:57 +01:00
Robert Schwebel d86ba7d308 remove gpio debug output for imx
Remove a bogus debug output in the gpio initialization code for i.MX.

Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
2007-11-28 09:03:27 +01:00
Robert Schwebel 7067e21f3f cleanup do_bootm_linux()
This patch cleans up the do_bootm_linux() function. It removes most of
the uggly ifdefery and replaces it by a sane function optimizing
structure.

Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
2007-11-28 09:03:27 +01:00
Robert Schwebel 4ee1303b43 pcm038: coding style fixes
Some coding style fixes for pcm038.

Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2007-11-28 09:01:19 +01:00
Robert Schwebel 9ad74946ce pcm038: fixup hardware init sequence
The i.MX27 can only run at 200 MHz ARM core frequency when being powered
by 1.2 V. Fix init sequence to reflect this behaviour.

Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
2007-11-28 09:01:19 +01:00
Marc Kleine-Budde ed09032929 Fix partition definition
This patch fixed the partition definition for the pcm038 baseboard.

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2007-11-28 09:01:19 +01:00
Robert Schwebel f8e7e8eeba fixed CONFIG_BOOT_PARAMS
Fixed CONFIG_BOOT_PARAMS location

Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
2007-11-28 09:01:19 +01:00
Marc Kleine-Budde 7b2a8252bd [cat] use define for buffer size not hardcoded value
With this patch a define is used for the buffer size not a hardcoded value
in two places in the node.

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2007-11-28 08:27:38 +01:00
Marc Kleine-Budde 7a8a0b323e add emacs' temp files to .gitignore
This patch adds emacs temporary and backup files to .gitignore.

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2007-11-28 08:26:19 +01:00
Marc Kleine-Budde 57bb3cd90d don't against link libgcc
We don't want to link against libgcc.

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2007-11-28 08:21:02 +01:00
Marc Kleine-Budde fdac93e784 [ipe337] fixed environment
hush parser has problems with undefined vars
thanks to Enrik Bernkhan for spotting this

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2007-11-27 23:30:45 +01:00
Marc Kleine-Budde e68ac6368d Revert "separating memory commands"
This reverts commit d59c600c65.

Conflicts:

	commands/Makefile
	common/Kconfig
	common/Makefile

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2007-11-27 23:19:55 +01:00
Robert Schwebel 397274e04f add todo topic
Adds a todo issue.

Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
2007-11-27 21:34:05 +01:00