Chip-cn-dat/allwinner-dat/D1-S-dat/2025-08-08-14-46-21.png
... ...
Binary files /dev/null and b/Chip-cn-dat/allwinner-dat/D1-S-dat/2025-08-08-14-46-21.png differ
Chip-cn-dat/allwinner-dat/D1-S-dat/D1-S-dat.md
... ...
@@ -95,5 +95,11 @@ misc
95 95
96 96
![](2025-08-07-12-39-31.png)
97 97
98
+
99
+## SD Card
100
+
101
+![](2025-08-08-14-46-21.png)
102
+
103
+
98 104
## ref
99 105
Chip-cn-dat/allwinner-dat/F133-dat/F133-dat.md
... ...
@@ -3,6 +3,8 @@
3 3
4 4
- [[allwinner-dat]] - [[allwinner-D1-dat]]
5 5
6
+- [[allwinner-sdk-dat]]
7
+
6 8
D1S == F133 == C906
7 9
8 10
F133 is essentially a rebranded D1s, also known as V851s, targeting AI camera and audio/video applications.
... ...
@@ -93,21 +95,20 @@ Could use https://etcher.balena.io/#download-etcher for flash image to SD card.
93 95
image == https://github.com/ylyamin/allwinner_d1_hal
94 96
95 97
96
-## flash
97
-
98
-硬件:TypeC线 X2
99
-软件:全志线刷工具:[AllwinnertechPhoeniSuit](https://gitlab.com/dongshanpi/tools/-/raw/main/AllwinnertechPhoeniSuit.zip)
100
-软件:SPI Nor系统镜像:[tina_d1s-nezha_nor_uart0_nor](https://gitlab.com/dongshanpi/tools/-/raw/main/tina_d1s-nezha_nor_uart0_nor.zip)
101
-软件:全志USB烧录驱动:[AllwinnerUSBFlashDeviceDriver](https://gitlab.com/dongshanpi/tools/-/raw/main/AllwinnerUSBFlashDeviceDriver.zip)
102
-
103 98
104 99
## extend
105 100
106 101
驱动 1.9 寸 AMOLED 240*536 高分屏
107 102
103
+## SCH
104
+
105
+![](LCPI-PC-F133(303F133D1S3).png)
106
+
108 107
109 108
## ref
110 109
110
+- [[F133-dev]]
111
+
111 112
- [[virtualbox-dat]]
112 113
113 114
- [[0402-dat]]
Chip-cn-dat/allwinner-dat/F133-dat/LCPI-PC-F133(303F133D1S3).png
... ...
Binary files /dev/null and b/Chip-cn-dat/allwinner-dat/F133-dat/LCPI-PC-F133(303F133D1S3).png differ
Chip-cn-dat/allwinner-dat/allwinner-dat.md
... ...
@@ -3,7 +3,7 @@
3 3
4 4
- [[H618-dat]]
5 5
6
-- [[allwinner-D1-dat]]
6
+- [[allwinner-D1-dat]] - [[D1-S-dat]] - [[F133-dat]]
7 7
8 8
- [[Thermal-imaging-camera-dat]]
9 9
SDK-dat/C-dat/C-errors-dat.md
... ...
@@ -184,3 +184,121 @@ Add -std=c99 (or -std=gnu99) to your gcc or make command:
184 184
185 185
- [[ubuntu-14-dat]]
186 186
187
+
188
+
189
+## Q3
190
+
191
+ vb@ubuntu14:~/xfel$ make clean && make CFLAGS="-std=c99"
192
+ [CC] ecdsa256.c
193
+ [CC] fel.c
194
+ [CC] main.c
195
+ [CC] misc.c
196
+ [CC] progress.c
197
+ [CC] sha256.c
198
+ [CC] spinand.c
199
+ spinand.c: In function ‘spinand_reset’:
200
+ spinand.c:207:2: warning: implicit declaration of function ‘usleep’ [-Wimplicit-function-declaration]
201
+ usleep(100 * 1000);
202
+ ^
203
+ [CC] spinor.c
204
+ [CC] chips/a10.c
205
+ [CC] chips/a13_a10s_r8.c
206
+ [CC] chips/a20.c
207
+ [CC] chips/a23.c
208
+ [CC] chips/a31.c
209
+ [CC] chips/a33_r16.c
210
+ [CC] chips/a40i_r40.c
211
+ [CC] chips/a50.c
212
+ [CC] chips/a523_a527_t527.c
213
+ [CC] chips/a537_a333.c
214
+ [CC] chips/a64.c
215
+ [CC] chips/a733.c
216
+ [CC] chips/a80.c
217
+ [CC] chips/a83t.c
218
+ [CC] chips/d1_f133.c
219
+ [CC] chips/f1c100s_f1c200s_f1c500s.c
220
+ [CC] chips/h135.c
221
+ [CC] chips/h2_h3.c
222
+ chips/h2_h3.c: In function ‘chip_sid’:
223
+ chips/h2_h3.c:25:3: error: initializer element is not constant
224
+ cpu_to_le32(0xe59f0040), /* 0: ldr r0, [pc, #64] */
225
+ ^
226
+ chips/h2_h3.c:25:3: error: (near initialization for ‘payload[0]’)
227
+ chips/h2_h3.c:26:3: error: initializer element is not constant
228
+ cpu_to_le32(0xe3a01000), /* 4: mov r1, #0 */
229
+ ^
230
+ chips/h2_h3.c:26:3: error: (near initialization for ‘payload[1]’)
231
+ chips/h2_h3.c:27:3: error: initializer element is not constant
232
+ cpu_to_le32(0xe28f303c), /* 8: add r3, pc, #60 */
233
+ ^
234
+ chips/h2_h3.c:27:3: error: (near initialization for ‘payload[2]’)
235
+ chips/h2_h3.c:29:3: error: initializer element is not constant
236
+ cpu_to_le32(0xe1a02801), /* c: lsl r2, r1, #16 */
237
+ ^
238
+ chips/h2_h3.c:29:3: error: (near initialization for ‘payload[3]’)
239
+ chips/h2_h3.c:30:3: error: initializer element is not constant
240
+ cpu_to_le32(0xe3822b2b), /* 10: orr r2, r2, #44032 */
241
+ ^
242
+ chips/h2_h3.c:30:3: error: (near initialization for ‘payload[4]’)
243
+ chips/h2_h3.c:31:3: error: initializer element is not constant
244
+ cpu_to_le32(0xe3822002), /* 14: orr r2, r2, #2 */
245
+ ^
246
+ chips/h2_h3.c:31:3: error: (near initialization for ‘payload[5]’)
247
+ chips/h2_h3.c:32:3: error: initializer element is not constant
248
+ cpu_to_le32(0xe5802040), /* 18: str r2, [r0, #64] */
249
+ ^
250
+ chips/h2_h3.c:32:3: error: (near initialization for ‘payload[6]’)
251
+ chips/h2_h3.c:34:3: error: initializer element is not constant
252
+ cpu_to_le32(0xe5902040), /* 1c: ldr r2, [r0, #64] */
253
+ ^
254
+ chips/h2_h3.c:34:3: error: (near initialization for ‘payload[7]’)
255
+ chips/h2_h3.c:35:3: error: initializer element is not constant
256
+ cpu_to_le32(0xe3120002), /* 20: tst r2, #2 */
257
+ ^
258
+ chips/h2_h3.c:35:3: error: (near initialization for ‘payload[8]’)
259
+ chips/h2_h3.c:36:3: error: initializer element is not constant
260
+ cpu_to_le32(0x1afffffc), /* 24: bne 1c <sid_read_wait> */
261
+ ^
262
+ chips/h2_h3.c:36:3: error: (near initialization for ‘payload[9]’)
263
+ chips/h2_h3.c:37:3: error: initializer element is not constant
264
+ cpu_to_le32(0xe5902060), /* 28: ldr r2, [r0, #96] */
265
+ ^
266
+ chips/h2_h3.c:37:3: error: (near initialization for ‘payload[10]’)
267
+ chips/h2_h3.c:38:3: error: initializer element is not constant
268
+ cpu_to_le32(0xe7832001), /* 2c: str r2, [r3, r1] */
269
+ ^
270
+ chips/h2_h3.c:38:3: error: (near initialization for ‘payload[11]’)
271
+ chips/h2_h3.c:39:3: error: initializer element is not constant
272
+ cpu_to_le32(0xe2811004), /* 30: add r1, r1, #4 */
273
+ ^
274
+ chips/h2_h3.c:39:3: error: (near initialization for ‘payload[12]’)
275
+ chips/h2_h3.c:40:3: error: initializer element is not constant
276
+ cpu_to_le32(0xe3510010), /* 34: cmp r1, #16 */
277
+ ^
278
+ chips/h2_h3.c:40:3: error: (near initialization for ‘payload[13]’)
279
+ chips/h2_h3.c:41:3: error: initializer element is not constant
280
+ cpu_to_le32(0x3afffff3), /* 38: bcc c <sid_read_loop> */
281
+ ^
282
+ chips/h2_h3.c:41:3: error: (near initialization for ‘payload[14]’)
283
+ chips/h2_h3.c:42:3: error: initializer element is not constant
284
+ cpu_to_le32(0xe3a02000), /* 3c: mov r2, #0 */
285
+ ^
286
+ chips/h2_h3.c:42:3: error: (near initialization for ‘payload[15]’)
287
+ chips/h2_h3.c:43:3: error: initializer element is not constant
288
+ cpu_to_le32(0xe5802040), /* 40: str r2, [r0, #64] */
289
+ ^
290
+ chips/h2_h3.c:43:3: error: (near initialization for ‘payload[16]’)
291
+ chips/h2_h3.c:44:3: error: initializer element is not constant
292
+ cpu_to_le32(0xe12fff1e), /* 44: bx lr */
293
+ ^
294
+ chips/h2_h3.c:44:3: error: (near initialization for ‘payload[17]’)
295
+ chips/h2_h3.c:45:3: error: initializer element is not constant
296
+ cpu_to_le32(0x01c14000), /* SID base addr */
297
+ ^
298
+ chips/h2_h3.c:45:3: error: (near initialization for ‘payload[18]’)
299
+ make: *** [chips/h2_h3.o] Error 1
300
+
301
+
302
+## A3
303
+
304
+ CFLAGS := -g -ggdb -Wall -O3 -std=gnu99
... ...
\ No newline at end of file
SDK-dat/Xboot-dat/xfel-dat/2025-08-08-14-31-42.png
... ...
Binary files /dev/null and b/SDK-dat/Xboot-dat/xfel-dat/2025-08-08-14-31-42.png differ
SDK-dat/Xboot-dat/xfel-dat/xfel-dat.md
... ...
@@ -3,11 +3,16 @@
3 3
4 4
- [[ubuntu-dat]] - [[c-errors-dat]]
5 5
6
+- [[libusb-dat]] - [[serial-dat]]
7
+
6 8
Usually comes with the xboot tools:
7 9
8 10
git clone https://github.com/xboot/xfel.git
9 11
cd xfel
10 12
make
13
+ make clean && make
14
+
15
+
11 16
12 17
- [[C-dat]]
13 18
... ...
@@ -15,6 +20,11 @@ Usually comes with the xboot tools:
15 20
16 21
https://github.com/xboot/xfel
17 22
23
+## release
24
+
25
+wget https://github.com/xboot/xfel/releases/download/v1.3.3/xfel-windows-v1.3.3.7z
26
+
27
+
18 28
19 29
## for F133-A
20 30
... ...
@@ -23,6 +33,42 @@ xfel version
23 33
![](2025-08-08-12-52-33.png)
24 34
25 35
36
+## 🧩 XFEL Entry Procedure for F133-A / D1s
37
+
38
+1. **Power off the board**
39
+ - Disconnect power or USB.
40
+
41
+2. **Press and hold the FEL button**
42
+ - This button is usually marked "FEL" or "BOOT" on the board.
43
+ - If not labeled, refer to the schematic: it connects to **GPIO PL4**.
44
+
45
+3. **Power on the board while holding FEL**
46
+ - Plug in the USB cable or apply power.
47
+ - Keep holding the button for 2–3 seconds, then release.
48
+
49
+4. **Verify FEL mode on your PC**
50
+ - Run:
51
+ ```bash
52
+ lsusb
53
+ ```
54
+ - You should see something like:
55
+ ```
56
+ Bus 001 Device 005: ID 1f3a:efe8 Allwinner Technology sunxi FEL mode
57
+ ```
58
+
59
+5. **Optional: Confirm with `xfel`**
60
+ - If `xfel` is installed:
61
+ ```bash
62
+ xfel version
63
+ ```
64
+ - Output should confirm connection:
65
+ ```
66
+ EGON version: 0x0001a00
67
+ ```
68
+
69
+
70
+
71
+
26 72
27 73
## Overview
28 74
... ...
@@ -58,6 +104,62 @@ xfel write 0x40000000 xboot.bin
58 104
xfel exec 0x40000000
59 105
```
60 106
107
+## No FEL device found
108
+
109
+### ❌ `xfel` Windows: "No FEL device found" — Troubleshooting
110
+
111
+Even though Windows detects the USB device (`VID_1f3a PID_efe8`), the `xfel` tool shows:
112
+
113
+```
114
+ERROR: Can't connect to device
115
+ERROR: No FEL device found!
116
+```
117
+
118
+This typically means the **driver is not correctly bound** to allow `xfel.exe` access.
119
+
120
+---
121
+
122
+#### 🛠️ Fix: Install the Correct WinUSB Driver
123
+
124
+You **must install the `WinUSB` driver** for the FEL device using a tool like **Zadig**:
125
+
126
+##### ✅ Step-by-step with Zadig:
127
+
128
+1. **Download Zadig**:
129
+ - [https://zadig.akeo.ie/](https://zadig.akeo.ie/)
130
+ - Get the standalone `.exe` version.
131
+
132
+2. **Launch Zadig** as Administrator.
133
+
134
+3. **Find the FEL device**:
135
+ - Menu: `Options` → Check ✅ `List All Devices`
136
+ - In the dropdown, select:
137
+ ```
138
+ Allwinner USB Device (1f3a:efe8)
139
+ ```
140
+
141
+4. **Install `WinUSB` driver**:
142
+ - In the right pane, change the driver to:
143
+ ```
144
+ WinUSB (libusb)
145
+ ```
146
+ - Click `Install Driver` or `Replace Driver`.
147
+
148
+5. **Wait for installation to complete.**
149
+
150
+6. **Retry `xfel`**:
151
+ ```bash
152
+ xfel version
153
+ ```
154
+
155
+ You should now get output like:
156
+ ```
157
+ xfel v1.3.3
158
+ EGON: 00000000
159
+ ```
160
+
161
+![](2025-08-08-14-31-42.png)
162
+
61 163
## ref
62 164
63 165
- [[sunxi-tools-dat]]
... ...
\ No newline at end of file
SDK-dat/allwinner-SDK-dat/allwinner-SDK-dat.md
... ...
@@ -1,10 +1,15 @@
1 1
2 2
# allwinner-SDK-dat.md
3 3
4
+- [[allwinner-dat]]
5
+
4 6
- [[xboot-dat]] - [[xfel-dat]]
5 7
6 8
- [[TINA-dat]]
7 9
10
+
11
+
12
+
8 13
## compile
9 14
10 15
![](2025-07-15-01-47-37.png)
... ...
@@ -35,8 +40,22 @@
35 40
(3)PhoenixUSBpro:基于Windows的系统的烧写工具,通过数据线将PC和开发板连接,把固件烧到开发板上,一台PC可同时连接8台设备,分别控制其进行烧写,适用于产线批量生产。(如下图)
36 41
37 42
43
+
44
+
45
+## flash
46
+
47
+硬件:TypeC线 X2
48
+软件:全志线刷工具:[AllwinnertechPhoeniSuit](https://gitlab.com/dongshanpi/tools/-/raw/main/AllwinnertechPhoeniSuit.zip)
49
+软件:SPI Nor系统镜像:[tina_d1s-nezha_nor_uart0_nor](https://gitlab.com/dongshanpi/tools/-/raw/main/tina_d1s-nezha_nor_uart0_nor.zip)
50
+软件:全志USB烧录驱动:[AllwinnerUSBFlashDeviceDriver](https://gitlab.com/dongshanpi/tools/-/raw/main/AllwinnerUSBFlashDeviceDriver.zip)
51
+
52
+
53
+
54
+
38 55
## repo
39 56
57
+- images and tools - https://github.com/Edragon/allwinner-tools
58
+
40 59
41 60
- https://github.com/Edragon/allwinner == [[T113-dat]]
42 61
- https://github.com/Edragon/Allwinner-V831
SDK-dat/ubuntu-dat/ubuntu-dat.md
... ...
@@ -5,6 +5,8 @@
5 5
6 6
- [[ubuntu-14-dat]] - [[C-dat]]
7 7
8
+- [[allwinner-sdk-dat]]
9
+
8 10
![](2025-07-14-23-09-16.png)
9 11
10 12
![](2025-07-14-23-09-43.png)
Tech-dat/Interface-dat/Serial-dat/Serial-dat.md
... ...
@@ -9,6 +9,7 @@
9 9
10 10
- [[USB-sys-dat]] - [[Logic-level-shifter-dat]]
11 11
12
+- [[USB-dat]]
12 13
13 14
## Usage
14 15
Tech-dat/Interface-dat/USB-dat/libusb-dat/libusb-dat.md
... ...
@@ -0,0 +1,21 @@
1
+
2
+# libusb-dat
3
+
4
+- libusb-win32
5
+- https://zadig.akeo.ie/
6
+
7
+
8
+
9
+## repro
10
+
11
+
12
+driver
13
+
14
+- https://github.com/Edragon/COM-Driver
15
+- https://github.com/Edragon/Tools
16
+- https://github.com/Edragon/git-Debug
17
+
18
+
19
+## ref
20
+
21
+- [[serial-dat]]
... ...
\ No newline at end of file
Tech-dat/Interface-dat/USB-dat/usb-dat.md
... ...
@@ -9,9 +9,6 @@
9 9
10 10
- [[USB-OTG-dat]] - [[USB-Hub-dat]]
11 11
12
-- libusb-win32
13
-- https://zadig.akeo.ie/
14
-
15 12
- [[keyboard-dat]] - [[USB-HID-dat]] - [[mouse-dat]]
16 13
17 14
## USB variations