Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Sami Nurmenniemi
u-boot-stm32
Commits
38988ff8
Commit
38988ff8
authored
Feb 08, 2013
by
Vladimir Skvortsov
Browse files
RT: 82124. Update default environment for SF2-DEV-KIT platform to
auto-boot Linux image located in SPI flash.
parent
4dfc5d77
Changes
2
Hide whitespace changes
Inline
Side-by-side
board/actel/sf2-dev-kit/board.c
View file @
38988ff8
...
...
@@ -43,7 +43,7 @@ int board_init(void)
int
checkboard
(
void
)
{
printf
(
"Board: SF2-DEV-KIT Rev %s,
www.emcraft.com
\n
"
,
printf
(
"Board: SF2-DEV-KIT Rev %s,
Microsemi
\n
"
,
CONFIG_SYS_BOARD_REV_STR
);
return
0
;
}
...
...
include/configs/sf2-dev-kit.h
View file @
38988ff8
...
...
@@ -56,10 +56,10 @@
/*
* This is a specific revision of the board
*/
#define CONFIG_SYS_BOARD_REV 0x1
A
#define CONFIG_SYS_BOARD_REV 0x1
#if (CONFIG_SYS_BOARD_REV!=0x1
A
)
#error CONFIG_SYS_BOARD_REV must be 1
A
#if (CONFIG_SYS_BOARD_REV!=0x1)
#error CONFIG_SYS_BOARD_REV must be
0x
1
#endif
/*
...
...
@@ -68,7 +68,7 @@
#define CONFIG_DISPLAY_CPUINFO 1
#define CONFIG_DISPLAY_BOARDINFO 1
#define CONFIG_SYS_BOARD_REV_STR "
A
"
#define CONFIG_SYS_BOARD_REV_STR "
1.0
"
/*
* Monitor prompt
...
...
@@ -271,6 +271,7 @@
#define CONFIG_BOOTARGS "m2s_platform=sf2-dev-kit "\
"console=ttyS1,115200 panic=10"
#define CONFIG_BOOTCOMMAND "run flashboot"
#define CONFIG_ENV_IMG_OFFSET 0x10000
/*
* Macro for the "loadaddr". The most optimal load address
...
...
@@ -288,7 +289,7 @@
"loadaddr=" MK_STR(UIMAGE_LOADADDR) "\0" \
"image=networking.uImage\0" \
"spiaddr=" MK_STR(CONFIG_ENV_IMG_OFFSET) "\0" \
"spisize=
40
0000\0" \
"spisize=
3F
0000\0" \
"spiprobe=sf probe " MK_STR(CONFIG_SPI_FLASH_BUS) "\0" \
"addip=setenv bootargs ${bootargs}" \
" ip=${ipaddr}:${serverip}:${gatewayip}:" \
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment