Skip to content

Commit 864cc63

Browse files
committed
docs/debug: remove whitespaces, add mising backticks, text alignment
1 parent 9fb4859 commit 864cc63

File tree

2 files changed

+70
-46
lines changed

2 files changed

+70
-46
lines changed

docs/debug/debian_kernel_rebuild.md

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ Copy .deb into sd card, boot and install:
2626
dpkg-i linux-image-3.16.36_1.3.custom_amd64.deb
2727
```
2828

29+
```
2930
vi /etc/modules
31+
```
3032

3133
add:
3234

@@ -81,25 +83,25 @@ echo 1 > value
8183
```
8284

8385
During coreboot-bios phase voltage rises to 1.2V.
84-
86+
8587
When OS boots into login propmt voltage drops back to 0.8V.
86-
88+
8789
5. Check `gpio17` `direction` and `value`:
8890

8991
```
9092
cd /sys/class/gpio
9193
echo 17 > export
9294
cd gpio17
93-
95+
9496
root@debian:/sys/class/gpio/gpio17# cat direction
9597
in
9698
root@debian:/sys/class/gpio/gpio17# cat value
9799
1
98100
```
99-
101+
100102
It claims to be an input in high state. But the voltage is still 0.8V so it is
101103
actually an output (?)
102-
104+
103105
> That's because gpios are configured by default as OD
104106
105107
6. Reboot again with those settings and check:
@@ -119,13 +121,13 @@ echo 1 > value
119121
root@debian:/sys/class/gpio/gpio17# cat value
120122
0
121123
```
122-
124+
123125
After reboot voltage on this pin is 0V, even if boot into other OS.
124126
Voltage on the rest of the pins is ~0.9V.
125-
126-
127+
128+
127129
After coldboot voltage is back at ~0.9V.
128-
130+
129131
### APU1 test
130132

131133
Voyage on USB stick, without gpio kernel module
@@ -134,15 +136,18 @@ Debian on SDcard, with gpio kernel module
134136
#### Pins as GPIO
135137

136138
1. Log into Debian, set pin17 as output with value = 0. Voltage = 0V.
137-
2. Reboot into Debian. Voltage = 0V for the entire time of reboot as well as in the OS.
138-
3. Reboot into Voyage. Voltage = 0V for the entire time of reboot as well as in the OS.
139+
2. Reboot into Debian. Voltage = 0V for the entire time of reboot as well as in
140+
the OS.
141+
3. Reboot into Voyage. Voltage = 0V for the entire time of reboot as well as in
142+
the OS.
139143

140144
#### Pins disabled
141145

142146
1. Log into Debian, set pin17 as output with value = 0. Voltage = 0V.
143147
2. Reboot into Debian. Voltage rises to 1.2V for the entire time of reboot but
144148
drops to 0 when login prompt appears (when gpio module is loaded ? it
145149
initialises pins as GPIOs).
146-
3. Reboot into Voyage. Voltage = 1.2V for the entire time of reboot as well as in the OS.
150+
3. Reboot into Voyage. Voltage = 1.2V for the entire time of reboot as well as
151+
in the OS.
147152

148153

docs/debug/sd_registers_bad.md

Lines changed: 53 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -3,77 +3,96 @@
33
BAD card acts like there is no card (logs `BAD from cold boot` vs `no card
44
and Card Detect tied to ground` are the same in terms of command flow)
55

6-
Results of below test are the same: GOOD appears in bootmenu after coldboot, BAD doesn't.
6+
Results of below test are the same: GOOD appears in bootmenu after coldboot,
7+
BAD doesn't.
78

89
SDHC registers values in release v4.0.1.1:
910

10-
```
11-
pci_write_config32(dev, 0xA4, 0x21FE32B2); //0b 0010 0001 1101 1110 0011 0010 1011 0010
12-
pci_write_config32(dev, 0xA8, 0x00000070); //0b 0000 0000 0000 0000 0000 0000 0111 0000
13-
pci_write_config32(dev, 0xB0, 0x01180C01); //0b 0000 0001 0001 1000 0000 1100 0000 0001
14-
pci_write_config32(dev, 0xD0, 0x0000078B); //0b 0000 0000 0000 0000 0000 0111 1000 1011
15-
```
11+
```
12+
pci_write_config32(dev, 0xA4, 0x21FE32B2); //0b 0010 0001 1101 1110 0011 0010 1011 0010
13+
pci_write_config32(dev, 0xA8, 0x00000070); //0b 0000 0000 0000 0000 0000 0000 0111 0000
14+
pci_write_config32(dev, 0xB0, 0x01180C01); //0b 0000 0001 0001 1000 0000 1100 0000 0001
15+
pci_write_config32(dev, 0xD0, 0x0000078B); //0b 0000 0000 0000 0000 0000 0111 1000 1011
16+
```
1617

1718
1. Change from `Removable card slot` to `Embedded slot for one device`
1819

19-
pci_write_config32(dev, 0xA4, 0x61FE32B2); //0b 0110 0001 1111 1110 0011 0010 1011 0010
20+
```
21+
pci_write_config32(dev, 0xA4, 0x61FE32B2); //0b 0110 0001 1111 1110 0011 0010 1011 0010
22+
```
2023

2124
2. Disable: Suspend/resume support, DMA support, High speed support, ADMA
2225
support, ADMA2 support, MMC8-bit support
2326

24-
pci_write_config32(dev, 0xA4, 0x210232B2); //0b 0010 0001 0000 0010 0011 0010 1011 0010
27+
```
28+
pci_write_config32(dev, 0xA4, 0x210232B2); //0b 0010 0001 0000 0010 0011 0010 1011 0010
29+
```
30+
2531

2632
3. Combination of 1. and 2. (disabled features and `embedded slot`)
2733

28-
pci_write_config32(dev, 0xA4, 0x610232B2); //0b 0110 0001 0000 0010 0011 0010 1011 0010
34+
```
35+
pci_write_config32(dev, 0xA4, 0x610232B2); //0b 0110 0001 0000 0010 0011 0010 1011 0010
36+
```
2937

3038
4. Disabled features and `Shared Bus Slot` instead:
3139

32-
pci_write_config32(dev, 0xA4, 0xA10232B2); //0b 1010 0001 0000 0010 0011 0010 1011 0010
40+
```
41+
pci_write_config32(dev, 0xA4, 0xA10232B2); //0b 1010 0001 0000 0010 0011 0010 1011 0010
42+
```
3343

3444
5. Disabled features + `TimeOut clock from internal`
3545

36-
pci_write_config32(dev, 0xA4, 0xA1023232); //0b 1010 0001 0000 0010 0011 0010 0011 0010
46+
```
47+
pci_write_config32(dev, 0xA4, 0xA1023232); //0b 1010 0001 0000 0010 0011 0010 0011 0010
48+
```
3749

3850
6. Change `TmoFreq` from 0x32 to 0x02:
3951

40-
pci_write_config32(dev, 0xA4, 0xA1023202); //0b 1010 0001 0000 0010 0011 0010 0000 0010
52+
```
53+
pci_write_config32(dev, 0xA4, 0xA1023202); //0b 1010 0001 0000 0010 0011 0010 0000 0010
54+
```
4155

4256
7. Disable features from `0xB0` register: Memory deep sleep mode, memory shutdown
4357
mode, Master Read prefetch:
4458

45-
pci_write_config32(dev, 0xB0, 0x01180000); //0b 0000 0001 0001 1000 0000 0000 0000 0000
59+
```
60+
pci_write_config32(dev, 0xB0, 0x01180000); //0b 0000 0001 0001 1000 0000 0000 0000 0000
61+
```
4662

4763
8. Force 3.3V:
4864

49-
pci_write_config32(dev, 0xD0, 0x0004078B); //0b 0000 0000 0000 0100 0000 0111 1000 1011
50-
65+
```
66+
pci_write_config32(dev, 0xD0, 0x0004078B); //0b 0000 0000 0000 0100 0000 0111 1000 1011
67+
```
5168

5269
9. SD Power pin disable:
5370

54-
pci_write_config32(dev, 0xD0, 0x0004070B);
71+
```
72+
pci_write_config32(dev, 0xD0, 0x0004070B);
73+
```
5574

56-
Voltage on TP27 drops from 3.3V to 0.25V
75+
Voltage on TP27 drops from 3.3V to 0.25V
5776

5877
10. Change driver strength value:
5978

60-
Initially `0xB8` register value was:
79+
Initially `0xB8` register value was:
6180

62-
```
63-
REGISTER B8 = 0x88000400
64-
```
65-
two first bytes are:
81+
```
82+
REGISTER B8 = 0x88000400
83+
```
84+
two first bytes are:
6685

67-
```
68-
Specifies the SN driver strength value for 3.3V.
69-
Specifies the SP driver strength value for 3.3V.
70-
```
86+
```
87+
Specifies the SN driver strength value for 3.3V.
88+
Specifies the SP driver strength value for 3.3V.
89+
```
7190

72-
changes:
91+
changes:
7392

74-
```
75-
pci_write_config32(dev, 0xB8, 0xFF000400);
76-
pci_write_config32(dev, 0xB8, 0xAA000400);
77-
pci_write_config32(dev, 0xB8, 0x55000400);
78-
pci_write_config32(dev, 0xB8, 0x00000400);
79-
```
93+
```
94+
pci_write_config32(dev, 0xB8, 0xFF000400);
95+
pci_write_config32(dev, 0xB8, 0xAA000400);
96+
pci_write_config32(dev, 0xB8, 0x55000400);
97+
pci_write_config32(dev, 0xB8, 0x00000400);
98+
```

0 commit comments

Comments
 (0)