Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U-Boot
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Fork
U-Boot
Commits
d0dcb7c4
Commit
d0dcb7c4
authored
8 years ago
by
Jonas Höglund
Browse files
Options
Downloads
Patches
Plain Diff
Add ddr3 values in nand binary
parent
1dd34b5b
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
mediatek_uimake.sh
+14
-1
14 additions, 1 deletion
mediatek_uimake.sh
with
14 additions
and
1 deletion
mediatek_uimake.sh
100644 → 100755
+
14
−
1
View file @
d0dcb7c4
#!/bin/bash
mediatek
=
$1
if
[
!
$1
]
;
then
echo
"Pass the path to mediatek/Uboot as an argument"
exit
-1
fi
DDR_CHIP
=
DEFAULT_DDR3_2048M
CFG_ENV_IS
=
IN_NAND
cp
mt7621_stage_L2.bin uboot_a.bin
cp
mt7621_stage_L2.bin uboot_a.bin
$mediatek
/mt7621_ddr.sh uboot_a.bin uboot_a.bin
$mediatek
/mt7621_ddr_param.txt
$DDR_CHIP
$CFG_ENV_IS
echo
"0 10"
|xxd
-r
|dd
bs
=
1
count
=
1
seek
=
38
of
=
uboot_a.bin
conv
=
notrunc
echo
"0 11"
|xxd
-r
|dd
bs
=
1
count
=
1
seek
=
39
of
=
uboot_a.bin
conv
=
notrunc
echo
"0 11"
|xxd
-r
|dd
bs
=
1
count
=
1
seek
=
39
of
=
uboot_a.bin
conv
=
notrunc
chmod
777 uboot_a.bin
chmod
777 uboot_a.bin
...
@@ -12,7 +24,8 @@ echo "$(((bytes + 4095)/4096))"
...
@@ -12,7 +24,8 @@ echo "$(((bytes + 4095)/4096))"
dd
if
=
u-boot.bin
of
=
uboot_a.bin
bs
=
1
count
=
$count
seek
=
$((
((
bytes
+
4095
)/
4096
)
*
4096
-
64
))
conv
=
notrunc
dd
if
=
u-boot.bin
of
=
uboot_a.bin
bs
=
1
count
=
$count
seek
=
$((
((
bytes
+
4095
)/
4096
)
*
4096
-
64
))
conv
=
notrunc
/home/kenjo/proj/inteno/mediatek/Uboot/tools/mkimage
-A
mips
-T
standalone
-C
none
\
echo
"
$mkimage
/tools/mkimage"
$mediatek
/tools/mkimage
-A
mips
-T
standalone
-C
none
\
-a
0xA0200000
-e
0xa0200000
\
-a
0xA0200000
-e
0xa0200000
\
-n
"NAND Flash Image"
\
-n
"NAND Flash Image"
\
-r
DDR3
-s
16
-t
256
-u
32
\
-r
DDR3
-s
16
-t
256
-u
32
\
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment