Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
Software for White Rabbit PTP Core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
32
Issues
32
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
CI / CD
CI / CD
Pipelines
Schedules
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
Software for White Rabbit PTP Core
Commits
75a43094
Commit
75a43094
authored
Sep 21, 2015
by
Grzegorz Daniluk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
flash: fix the flash sector size for SPEC
parent
ce992e44
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
flash.h
include/flash.h
+1
-1
sdbfs.README
tools/sdbfs.README
+5
-1
No files found.
include/flash.h
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
);
...
...
tools/sdbfs.README
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".
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