Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
ezynq
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Elphel
ezynq
Commits
d83008d2
Commit
d83008d2
authored
Jan 20, 2016
by
Oleg Dzhimiev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
changes for newer u-boot
parent
80f478a4
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
26 additions
and
21 deletions
+26
-21
install_uboot.sh
install_uboot.sh
+7
-6
Makefile
u-boot-tree/arch/arm/mach-zynq/Makefile
+3
-2
cpu.c
u-boot-tree/arch/arm/mach-zynq/cpu.c
+0
-0
spl.c
u-boot-tree/arch/arm/mach-zynq/spl.c
+12
-9
makeuboot
u-boot-tree/makeuboot
+4
-4
No files found.
install_uboot.sh
View file @
d83008d2
...
...
@@ -33,8 +33,8 @@ SCRIPTPATH=$(dirname "$SCRIPT")
UBOOT_TREE
=
"
$SCRIPTPATH
/u-boot-tree"
CONFIGS
=
"include/configs"
EZYNQ
=
"ezynq"
REPO_DIR_NAME
=
"u-boot
-xlnx
"
PATCH_NAME
=
"u-boot
-xlnx
.patch"
REPO_DIR_NAME
=
"u-boot"
PATCH_NAME
=
"u-boot.patch"
SUFFIX
=
".orig"
...
...
@@ -44,9 +44,9 @@ CROSS_COMPILE="arm-poky-linux-gnueabi-"
#COMPILE_PATH="/opt/poky/1.4.2/sysroots/x86_64-pokysdk-linux/usr/bin/armv7a-vfp-neon-poky-linux-gnueabi"
COMPILE_PATH
=
"/opt/poky/1.5.1/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi"
echo
"Step 1: Cloning
Xilinx's u-boot repository (master-next
branch)"
echo
"Step 1: Cloning
u-boot repository (master
branch)"
if
[
!
-d
"
$REPO_DIR_NAME
/.git"
]
;
then
git clone
-b
master
-next https://github.com/Xilinx/u-boot-xlnx
.git
"
$REPO_DIR_NAME
"
git clone
-b
master
git://git.denx.de/u-boot
.git
"
$REPO_DIR_NAME
"
else
echo
" Already there"
fi
...
...
@@ -54,7 +54,8 @@ fi
echo
"Step 2: Checking out u-boot version with the certain hash"
cd
"
$REPO_DIR_NAME
"
#git checkout 54fee227ef141214141a226efd17ae0516deaf32
git checkout 2a0536fa48db1fc5332e3cd33b846d0da0c8bc1e
#git checkout 2a0536fa48db1fc5332e3cd33b846d0da0c8bc1e
git checkout fa85e826c16b9ce1ad302a57e9c4b24db0d8b930
echo
"Step 3: Merging ezynq with u-boot"
...
...
@@ -115,7 +116,7 @@ fi
echo
"DONE.
FURTHER INSTRUCTIONS (TO GENERATE BOOT.BIN):
cd u-boot
-xlnx
cd u-boot
./makeuboot <target>
SUPPORTED TARGETS:
...
...
u-boot-tree/arch/arm/
cpu/armv7/
zynq/Makefile
→
u-boot-tree/arch/arm/
mach-
zynq/Makefile
View file @
d83008d2
...
...
@@ -15,12 +15,13 @@ obj-y += slcr.o
#use CONFIG_EZYNQ for the first (spl) u-boot pass or the only one (if spl building disabled)
ifeq
($(CONFIG_SPL),)
obj-$(CONFIG_EZYNQ)
+=
ezynq.o
obj-$(CONFIG_EZYNQ)
+=
ezynq.o
endif
ifneq
($(CONFIG_SPL_BUILD),)
obj-$(CONFIG_EZYNQ)
+=
ezynq.o
obj-$(CONFIG_EZYNQ)
+=
ezynq.o
endif
obj-y
+=
clk.o
obj-y
+=
lowlevel_init.o
AFLAGS_lowlevel_init.o
:=
-mfpu
=
neon
obj-$(CONFIG_SPL_BUILD)
+=
spl.o
u-boot-tree/arch/arm/
cpu/armv7/
zynq/cpu.c
→
u-boot-tree/arch/arm/
mach-
zynq/cpu.c
View file @
d83008d2
File moved
u-boot-tree/arch/arm/
cpu/armv7/
zynq/spl.c
→
u-boot-tree/arch/arm/
mach-
zynq/spl.c
View file @
d83008d2
...
...
@@ -4,11 +4,12 @@
* SPDX-License-Identifier: GPL-2.0+
*/
#include <common.h>
#include <debug_uart.h>
#include <spl.h>
#include <asm/io.h>
#include <asm/spl.h>
#include <asm/arch/hardware.h>
#include <asm/arch/spl.h>
#include <asm/arch/sys_proto.h>
#ifndef CONFIG_EZYNQ
...
...
@@ -23,27 +24,29 @@ DECLARE_GLOBAL_DATA_PTR;
void
board_init_f
(
ulong
dummy
)
{
/* Clear the BSS. */
memset
(
__bss_start
,
0
,
__bss_end
-
__bss_start
);
//
memset(__bss_start, 0, __bss_end - __bss_start);
/* Set global data pointer. */
gd
=
&
gdata
;
//
gd = &gdata;
#ifndef CONFIG_EZYNQ
ps7_init
();
#endif
preloader_console_init
();
arch_cpu_init
();
#ifdef CONFIG_EZYNQ
puts
(
"
Copying ps7_init.c/h from hw project is NOT REQUIRED
\n
"
);
#ifdef CONFIG_EZYNQ
puts
(
"
NOT REQUIRED: Copying ps7_init.c/h from hw project
\n
"
);
#endif
board_init_r
(
NULL
,
0
);
//
board_init_r(NULL, 0);
}
#ifdef CONFIG_SPL_BOARD_INIT
void
spl_board_init
(
void
)
{
preloader_console_init
();
board_init
();
}
#endif
u32
spl_boot_device
(
void
)
{
...
...
@@ -82,7 +85,7 @@ u32 spl_boot_device(void)
#ifdef CONFIG_SPL_MMC_SUPPORT
u32
spl_boot_mode
(
void
)
{
return
MMCSD_MODE_F
AT
;
return
MMCSD_MODE_F
S
;
}
#endif
...
...
u-boot-tree/makeuboot
View file @
d83008d2
...
...
@@ -16,19 +16,19 @@ fi
make clean
make
$1
make include/autoconf.mk
echo
"Running ezynqcfg.py for the first time - u-boot length is not known yet, generating arch/arm/
cpu/armv7/
zynq/ezynq.c"
ezynq/ezynqcfg.py
-c
include/autoconf.mk
--html
u-boot.html
-o
boot_head.bin
--html-mask
0x3ff
--lowlevel
arch
/arm/
cpu/armv7/
zynq/ezynq.c
echo
"Running ezynqcfg.py for the first time - u-boot length is not known yet, generating arch/arm/
mach-
zynq/ezynq.c"
ezynq/ezynqcfg.py
-c
include/autoconf.mk
--html
u-boot.html
-o
boot_head.bin
--html-mask
0x3ff
--lowlevel
arch
/arm/
mach-
zynq/ezynq.c
make
echo
"Running ezynqcfg.py for the second time - u-boot length is known and will be used in the RBL header"
echo
"Other files are already created, repeating it here just to remind their paths"
if
[
$(
cat
include/autoconf.mk
|
grep
"CONFIG_SPL=y"
)
]
;
then
if
[
$(
cat
.config
|
grep
"CONFIG_SPL=y"
)
]
;
then
UBOOT_FILE
=
"spl/u-boot-spl.bin"
else
UBOOT_FILE
=
"u-boot.bin"
fi
ezynq/ezynqcfg.py
-c
include/autoconf.mk
-o
boot_head.bin
--uboot
$UBOOT_FILE
--html
u-boot.html
--html-mask
0x3ff
--lowlevel
arch
/arm/
cpu/armv7/
zynq/ezynq.c
ezynq/ezynqcfg.py
-c
include/autoconf.mk
-o
boot_head.bin
--uboot
$UBOOT_FILE
--html
u-boot.html
--html-mask
0x3ff
--lowlevel
arch
/arm/
mach-
zynq/ezynq.c
cat
boot_head.bin
$UBOOT_FILE
>
boot.bin
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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