Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Software for White Rabbit PTP Core
Manage
Activity
Members
Labels
Plan
Issues
39
Issue boards
Milestones
Wiki
Code
Merge requests
5
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Projects
Software for White Rabbit PTP Core
Commits
75a43094
Commit
75a43094
authored
9 years ago
by
Grzegorz Daniluk
Browse files
Options
Downloads
Patches
Plain Diff
flash: fix the flash sector size for SPEC
parent
ce992e44
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/flash.h
+1
-1
1 addition, 1 deletion
include/flash.h
tools/sdbfs.README
+5
-1
5 additions, 1 deletion
tools/sdbfs.README
with
6 additions
and
2 deletions
include/flash.h
+
1
−
1
View file @
75a43094
...
...
@@ -11,7 +11,7 @@
#include
"types.h"
#define FLASH_BLOCKSIZE
512
#define FLASH_BLOCKSIZE
65536
/* Flash interface functions */
void
flash_init
(
void
);
...
...
This diff is collapsed.
Click to expand it.
tools/sdbfs.README
+
5
−
1
View file @
75a43094
...
...
@@ -30,6 +30,10 @@ To create the filesystem image: "gensdbfs tools/sdbfs /tmp/sdb-wrpc.bin"
(please note that empty files have no data to be stored, so no space is
wasted on disk for them and the output file is short).
To create the flash filesystem image, don't forget about setting the sector
size. For flash chip on SPEC card, it is 64k:
gensdbfs -b 65536 tools/sdbfs /tmp/sdb-wrpc.bin
To check: "sdb-read -l /tmp/sdb-wrpc.bin":
46696c6544617461:2e202020 @ 00000000-0000037f .
...
...
@@ -56,4 +60,4 @@ The next boot of lm32 will show it found the files:
file 0x63616c69 @ 768, name calibration
To read the flash: "tools/flash-read 0 320 > /tmp/flash.bin",
and then check the flash image file: "sdb-read -l /tmp/flash.bin".
\ No newline at end of file
and then check the flash image file: "sdb-read -l /tmp/flash.bin".
This diff is collapsed.
Click to expand it.
Preview
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!
Save comment
Cancel
Please
register
or
sign in
to comment