Project

General

Profile

RE: GPIO toggling/chattering while performing NAND read. ยป u-boot_debug_with_SD_boot_and_NAND_boot.txt

Srinivasa Wunnimani, 04/08/2020 03:04 PM

 
1

    
2
U-Boot SPL 2018.01-g2659de8-dirty (Apr 02 2020 - 20:53:27)
3

    
4

    
5

    
6
Srini debug @ line 167 in function gpmc_init in file ../arch/arm/mach-omap2/mem-common.c
7

    
8

    
9

    
10

    
11

    
12
Srini debug @ line 137 in function set_gpmc_cs0 in file ../arch/arm/mach-omap2/mem-common.c
13

    
14

    
15
Value of base and size is 0x8000000 and 0xf
16

    
17

    
18

    
19
Srini debug @ line 1088 in function am33xx_spl_board_init in file ../board/cl/mitysom-335x/som.c
20

    
21

    
22
Critical Link AM335X Dev Kit -- NAND Page size = 2048k booting from dev 8
23
Trying to boot from MMC1
24
reading u-boot.img
25
reading u-boot.img
26

    
27

    
28
U-Boot 2018.01-g2659de8-dirty (Apr 02 2020 - 20:53:27 +0530)
29

    
30
CPU  : AM335X-GP rev 1.0
31
I2C:   ready
32
DRAM:  256 MiB
33

    
34

    
35

    
36
Srini debug @ line 1408 in function board_init in file ../board/cl/mitysom-335x/som.c
37

    
38

    
39

    
40

    
41

    
42
Srini debug @ line 167 in function gpmc_init in file ../arch/arm/mach-omap2/mem-common.c
43

    
44

    
45

    
46

    
47

    
48
Srini debug @ line 137 in function set_gpmc_cs0 in file ../arch/arm/mach-omap2/mem-common.c
49

    
50

    
51
Value of base and size is 0x8000000 and 0xf
52

    
53

    
54

    
55
Srini debug @ line 407 in function initr_nand in file ../common/board_r.c
56

    
57

    
58
Srini NAND:  
59

    
60

    
61
Srini debug @ line 983 in function board_nand_init in file ../drivers/mtd/nand/omap_gpmc.c
62

    
63

    
64

    
65

    
66

    
67
Srini debug @ line 1026 in function board_nand_init in file ../drivers/mtd/nand/omap_gpmc.c
68

    
69

    
70

    
71

    
72

    
73
Srini debug @ line 720 in function omap_select_ecc_scheme in file ../drivers/mtd/nand/omap_gpmc.c
74

    
75

    
76

    
77

    
78

    
79
Srini debug @ line 4664 in function nand_scan in file ../drivers/mtd/nand/nand_base.c
80

    
81

    
82

    
83

    
84

    
85
Srini debug @ line 4011 in function nand_scan_ident in file ../drivers/mtd/nand/nand_base.c
86

    
87

    
88
256 MiB
89
MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1
90
Using default environment
91

    
92
In:    ns16550_serial
93
Out:   ns16550_serial
94
Err:   ns16550_serial
95
Net:   Could not find PHY for cpsw: phy_mask 6
96
cpsw
97
Hit any key to stop autoboot:  0 
98
=> 
99
=> 
100
=> 
101
=> 
102
=> nand read.i 0x83000000 0x280000 0x500000
103

    
104
NAND read: device 0 offset 0x280000, size 0x500000
105
 5242880 bytes read: OK
106
=> nand read.i 0x83000000 0x280000 0x500000
107

    
108
NAND read: device 0 offset 0x280000, size 0x500000
109
 5242880 bytes read: OK
110
=> nand read.i 0x83000000 0x280000 0x500000
111

    
112
NAND read: device 0 offset 0x280000, size 0x500000
113
 5242880 bytes read: OK
114
=> nand read.i 0x83000000 0x280000 0x500000
115

    
116
NAND read: device 0 offset 0x280000, size 0x500000
117
 5242880 bytes read: OK
118
=> 
119
=> 
120
=> 
121
=> 
122
=> 
123
=> nand erase.chip
124

    
125
NAND erase.chip: device 0 whole chip
126
Skipping bad block at  0x00c80000                                          
127
Skipping bad block at  0x00ca0000                                          
128
Erasing at 0xffe0000 -- 100% complete.
129
OK
130
=> mmc rescan
131
=> fatload mmc 0 0x81000000 MLO
132
reading MLO
133
60116 bytes read in 13 ms (4.4 MiB/s)
134
=> fatload mmc 0 0x81080000 u-boot.img
135
reading u-boot.img
136
493768 bytes read in 48 ms (9.8 MiB/s)
137
=> nand write 0x81000000 0x0 0x780000
138

    
139
NAND write: device 0 offset 0x0, size 0x780000
140
 7864320 bytes written: OK
141
=> <INTERRUPT>
142
=> <INTERRUPT>
143
=> <INTERRUPT>
144
=> <INTERRUPT>
145
=> <INTERRUPT>
146
=> 
147
U-Boot SPL 2018.01-g2659de8-dirty (Apr 02 2020 - 20:53:27)
148

    
149

    
150

    
151
Srini debug @ line 167 in function gpmc_init in file ../arch/arm/mach-omap2/mem-common.c
152

    
153

    
154

    
155

    
156

    
157
Srini debug @ line 137 in function set_gpmc_cs0 in file ../arch/arm/mach-omap2/mem-common.c
158

    
159

    
160
Value of base and size is 0x8000000 and 0xf
161

    
162

    
163

    
164
Srini debug @ line 1088 in function am33xx_spl_board_init in file ../board/cl/mitysom-335x/som.c
165

    
166

    
167
Critical Link AM335X Dev Kit -- NAND Page size = 2048k booting from dev 5
168
Trying to boot from NAND
169

    
170

    
171

    
172
Srini debug @ line 86 in function spl_nand_load_image in file ../common/spl/spl_nand.c
173

    
174

    
175

    
176

    
177

    
178
Srini debug @ line 209 in function nand_init in file ../drivers/mtd/nand/am335x_spl_bch.c
179

    
180

    
181

    
182

    
183

    
184
Srini debug @ line 983 in function board_nand_init in file ../drivers/mtd/nand/omap_gpmc.c
185

    
186

    
187

    
188

    
189

    
190
Srini debug @ line 1026 in function board_nand_init in file ../drivers/mtd/nand/omap_gpmc.c
191

    
192

    
193

    
194

    
195

    
196
Srini debug @ line 720 in function omap_select_ecc_scheme in file ../drivers/mtd/nand/omap_gpmc.c
197

    
198

    
199

    
200

    
201
U-Boot 2018.01-g2659de8-dirty (Apr 02 2020 - 20:53:27 +0530)
202

    
203
CPU  : AM335X-GP rev 1.0
204
I2C:   ready
205
DRAM:  256 MiB
206

    
207

    
208

    
209
Srini debug @ line 1408 in function board_init in file ../board/cl/mitysom-335x/som.c
210

    
211

    
212

    
213

    
214

    
215
Srini debug @ line 167 in function gpmc_init in file ../arch/arm/mach-omap2/mem-common.c
216

    
217

    
218

    
219

    
220

    
221
Srini debug @ line 137 in function set_gpmc_cs0 in file ../arch/arm/mach-omap2/mem-common.c
222

    
223

    
224
Value of base and size is 0x8000000 and 0xf
225

    
226

    
227

    
228
Srini debug @ line 407 in function initr_nand in file ../common/board_r.c
229

    
230

    
231
Srini NAND:  
232

    
233

    
234
Srini debug @ line 983 in function board_nand_init in file ../drivers/mtd/nand/omap_gpmc.c
235

    
236

    
237

    
238

    
239

    
240
Srini debug @ line 1026 in function board_nand_init in file ../drivers/mtd/nand/omap_gpmc.c
241

    
242

    
243

    
244

    
245

    
246
Srini debug @ line 720 in function omap_select_ecc_scheme in file ../drivers/mtd/nand/omap_gpmc.c
247

    
248

    
249

    
250

    
251

    
252
Srini debug @ line 4664 in function nand_scan in file ../drivers/mtd/nand/nand_base.c
253

    
254

    
255

    
256

    
257

    
258
Srini debug @ line 4011 in function nand_scan_ident in file ../drivers/mtd/nand/nand_base.c
259

    
260

    
261
256 MiB
262
MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1
263
Using default environment
264

    
265
In:    ns16550_serial
266
Out:   ns16550_serial
267
Err:   ns16550_serial
268
Net:   Could not find PHY for cpsw: phy_mask 6
269
cpsw
270
Hit any key to stop autoboot:  0 
271
=> 
272
=> 
273
=> 
274
=> nand read.i 0x83000000 0x280000 0x500000
275

    
276
NAND read: device 0 offset 0x280000, size 0x500000
277
 5242880 bytes read: OK
278
=> <INTERRUPT>
279
=> 
280
=> <INTERRUPT>                             
281
=> 
282

    
283

    
    (1-1/1)
    Go to top
    Add picture from clipboard (Maximum size: 1 GB)