blob: 7638861ae6bcca9ca46883eb12772cb4c7870221 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
|
---input---
[user@linuxbox imx-bootlets-src-10.05.02]$ make CROSS_COMPILE=arm-none-eabi- clean
rm -rf *.sb
rm -f sd_mmc_bootstream.raw
rm -f linux_prep/board/*.o
...
Files:
rm -f power_prep.o eabi.o
Build output:
make[1]: Leaving directory `/home/...'
[user@linuxbox imx-bootlets-src-10.05.02]$ make CROSS_COMPILE=arm-none-eabi-
make[1]: Entering directory `/home/...'
...
#@echo "generating U-Boot boot stream image"
#elftosb2 -z -c ./uboot_prebuilt.db -o imx23_uboot.sb
echo "generating kernel bootstream file sd_mmc_bootstream.raw"
generating kernel bootstream file sd_mmc_bootstream.raw
#Please use cfimager to burn xxx_linux.sb. The below way will no
#work at imx28 platform.
> test
$ test
rm -f sd_mmc_bootstream.raw
[user@linuxbox imx-bootlets-src-10.05.02]$
pi@raspberrypi ~ $ sudo sh -c "echo 17 > /sys/class/gpio/export"
pi@raspberrypi ~ $ sudo sh -c "echo out > /sys/class/gpio/gpio17/direction"
pi@raspberrypi ~ $ sudo sh -c "echo 1 > /sys/class/gpio/gpio17/value"
pi@raspberrypi ~ $ sudo sh -c "echo 0 > /sys/class/gpio/gpio17/value"
pi@raspberrypi ~ $
[user@linuxbox ~]$ # copy other stuff to the SD card
root@imx233-olinuxino-micro:~# lsmod
Not tainted
[user@linuxbox ~]$ tail -n 2 /mnt/rpi/etc/inittab
#Spawn a getty on Raspberry Pi serial line
T0:23:respawn:/sbin/getty -L ttyAMA0 115200 vt100
pi@raspberrypi:~/Adafruit-WebIDE$ mkdir tmp
pi@raspberrypi:~/Adafruit-WebIDE$ npm config set tmp tmp
pi@raspberrypi:~/Adafruit-WebIDE$ npm install
pi@raspberrypi ~/Adafruit-WebIDE $ ifconfig eth0
eth0 Link encap:Ethernet HWaddr b5:33:ff:33:ee:aq
inet addr:10.42.0.60 Bcast:10.42.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:21867 errors:0 dropped:0 overruns:0 frame:0
TX packets:8684 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:27338495 (26.0 MiB) TX bytes:1268356 (1.2 MiB)
---tokens---
'[user@linuxbox imx-bootlets-src-10.05.02]$ ' Generic.Prompt
'make' Text
' ' Text
'CROSS_COMPILE' Name.Variable
'=' Operator
'arm-none-eabi-' Text
' ' Text
'clean' Text
'\n' Text
'rm -rf *.sb\n' Generic.Output
'rm -f sd_mmc_bootstream.raw\n' Generic.Output
'rm -f linux_prep/board/*.o\n' Generic.Output
'...\n' Generic.Output
'Files:\n' Generic.Output
'rm -f power_prep.o eabi.o\n' Generic.Output
'Build output:\n' Generic.Output
"make[1]: Leaving directory `/home/...'\n" Generic.Output
'[user@linuxbox imx-bootlets-src-10.05.02]$ ' Generic.Prompt
'make' Text
' ' Text
'CROSS_COMPILE' Name.Variable
'=' Operator
'arm-none-eabi-' Text
'\n' Text
"make[1]: Entering directory `/home/...'\n" Generic.Output
'...\n' Generic.Output
'#' Generic.Prompt
'@echo' Text
' ' Text
'"generating U-Boot boot stream image"' Literal.String.Double
'\n' Text
'#' Generic.Prompt
'elftosb2' Text
' ' Text
'-z' Text
' ' Text
'-c' Text
' ' Text
'./uboot_prebuilt.db' Text
' ' Text
'-o' Text
' ' Text
'imx23_uboot.sb' Text
'\n' Text
'echo "generating kernel bootstream file sd_mmc_bootstream.raw"\n' Generic.Output
'generating kernel bootstream file sd_mmc_bootstream.raw\n' Generic.Output
'#' Generic.Prompt
'Please' Text
' ' Text
'use' Text
' ' Text
'cfimager' Text
' ' Text
'to' Text
' ' Text
'burn' Text
' ' Text
'xxx_linux.sb.' Text
' ' Text
'The' Text
' ' Text
'below' Text
' ' Text
'way' Text
' ' Text
'will' Text
' ' Text
'no' Text
'\n' Text
'#' Generic.Prompt
'work' Text
' ' Text
'at' Text
' ' Text
'imx28' Text
' ' Text
'platform.' Text
'\n' Text
'>' Generic.Prompt
' ' Text
'test' Name.Builtin
'\n' Text
'$ ' Generic.Prompt
'test' Name.Builtin
'\n' Text
'rm -f sd_mmc_bootstream.raw\n' Generic.Output
'[user@linuxbox imx-bootlets-src-10.05.02]$\n' Generic.Prompt
'pi@raspberrypi ~ $ ' Generic.Prompt
'sudo' Text
' ' Text
'sh' Text
' ' Text
'-c' Text
' ' Text
'"echo 17 > /sys/class/gpio/export"' Literal.String.Double
'\n' Text
'pi@raspberrypi ~ $ ' Generic.Prompt
'sudo' Text
' ' Text
'sh' Text
' ' Text
'-c' Text
' ' Text
'"echo out > /sys/class/gpio/gpio17/direction"' Literal.String.Double
'\n' Text
'pi@raspberrypi ~ $ ' Generic.Prompt
'sudo' Text
' ' Text
'sh' Text
' ' Text
'-c' Text
' ' Text
'"echo 1 > /sys/class/gpio/gpio17/value"' Literal.String.Double
'\n' Text
'pi@raspberrypi ~ $ ' Generic.Prompt
'sudo' Text
' ' Text
'sh' Text
' ' Text
'-c' Text
' ' Text
'"echo 0 > /sys/class/gpio/gpio17/value"' Literal.String.Double
'\n' Text
'pi@raspberrypi ~ $\n' Generic.Prompt
'[user@linuxbox ~]$ ' Generic.Prompt
'# copy other stuff to the SD card\n' Comment.Single
'root@imx233-olinuxino-micro:~# ' Generic.Prompt
'lsmod' Text
'\n' Text
' Not tainted\n' Generic.Output
'[user@linuxbox ~]$ ' Generic.Prompt
'tail' Text
' ' Text
'-n' Text
' ' Text
'2' Literal.Number
' ' Text
'/mnt/rpi/etc/inittab' Text
'\n' Text
'#' Generic.Prompt
'Spawn' Text
' ' Text
'a' Text
' ' Text
'getty' Text
' ' Text
'on' Text
' ' Text
'Raspberry' Text
' ' Text
'Pi' Text
' ' Text
'serial' Text
' ' Text
'line' Text
'\n' Text
'T0:23:respawn:/sbin/getty -L ttyAMA0 115200 vt100\n' Generic.Output
'pi@raspberrypi:~/Adafruit-WebIDE$ ' Generic.Prompt
'mkdir' Text
' ' Text
'tmp' Text
'\n' Text
'pi@raspberrypi:~/Adafruit-WebIDE$ ' Generic.Prompt
'npm' Text
' ' Text
'config' Text
' ' Text
'set' Name.Builtin
' ' Text
'tmp' Text
' ' Text
'tmp' Text
'\n' Text
'pi@raspberrypi:~/Adafruit-WebIDE$ ' Generic.Prompt
'npm' Text
' ' Text
'install' Text
'\n' Text
'pi@raspberrypi ~/Adafruit-WebIDE $ ' Generic.Prompt
'ifconfig' Text
' ' Text
'eth0' Text
'\n' Text
'eth0 Link encap:Ethernet HWaddr b5:33:ff:33:ee:aq\n' Generic.Output
' inet addr:10.42.0.60 Bcast:10.42.0.255 Mask:255.255.255.0\n' Generic.Output
' UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1\n' Generic.Output
' RX packets:21867 errors:0 dropped:0 overruns:0 frame:0\n' Generic.Output
' TX packets:8684 errors:0 dropped:0 overruns:0 carrier:0\n' Generic.Output
' collisions:0 txqueuelen:1000\n' Generic.Output
' RX bytes:27338495 (26.0 MiB) TX bytes:1268356 (1.2 MiB)\n' Generic.Output
|