FreeCalypso > hg > freecalypso-tools
annotate loadtools/scripts/c155.init @ 718:098fea21ba13
doc/Host-tools-overview: tiffs-mkfs description updated
The first version of tiffs-mkfs did not include a journal file in the created
FFS, expecting the firmware to create it on first boot. All historical
firmwares prior to a recent FC fix (2020-05) contain a bug in that code path,
thus images made with the first version of tiffs-mkfs were only acceptable to
very recent FC firmwares. tiffs-mkfs has now been extended to include an empty
journal in the created FFS, thus the restriction of working with recent fw only
has been lifted.
| author | Mychaela Falconia <falcon@freecalypso.org> |
|---|---|
| date | Sun, 23 Aug 2020 04:55:02 +0000 |
| parents | 35d3f4c26b96 |
| children |
| rev | line source |
|---|---|
|
493
35d3f4c26b96
loadtools/scripts/c155.init: WS=4 setting matching official fw
Mychaela Falconia <falcon@freecalypso.org>
parents:
0
diff
changeset
|
1 # Set WS=4 for both nCS0 and nCS1, matching what the official C155/156 fw sets |
|
0
e7502631a0f9
initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
2 |
|
493
35d3f4c26b96
loadtools/scripts/c155.init: WS=4 setting matching official fw
Mychaela Falconia <falcon@freecalypso.org>
parents:
0
diff
changeset
|
3 w16 fffffb00 00A4 |
|
35d3f4c26b96
loadtools/scripts/c155.init: WS=4 setting matching official fw
Mychaela Falconia <falcon@freecalypso.org>
parents:
0
diff
changeset
|
4 w16 fffffb02 00A4 |
|
0
e7502631a0f9
initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
5 |
|
e7502631a0f9
initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
6 # We need to switch the CS4/ADD22 pin from its default function of CS4 |
|
e7502631a0f9
initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
7 # to the needed ADD22, to access the 8 MiB of flash. Compal's C155/156 |
|
e7502631a0f9
initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
8 # in-flash boot code does this setting, but let's do it ourselves too. |
|
e7502631a0f9
initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
9 |
|
e7502631a0f9
initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
10 w16 fffef006 0008 |
|
e7502631a0f9
initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
11 |
|
e7502631a0f9
initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
12 # We don't mess with the FFFF:FB10 register on C155/156, i.e., we |
|
e7502631a0f9
initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
13 # leave the "enable boot ROM" setting established by compalstage. |
|
e7502631a0f9
initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
14 # Unlike C139, C155 and C156 phones do have working flash mapping |
|
e7502631a0f9
initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
15 # at 0x03000000, so we use that. |
