summaryrefslogtreecommitdiff
path: root/TI_OMAP4_Kernel_Release_Notes_L24.x.txt
blob: 66f27d4ce2d93c74cd6dbe46139f94297c8fbe67 (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
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
Release notes for the Linux kernel for L24.0.8
----------------------------------------------

02 JUNE 2009

Copyright (C) 2009 Texas Instruments Incorporated.  All rights reserved.


1.  Introduction
----------------
This document accompanies OMAP(TM) Software Release L24.0.8 for Linux 2.6.30 on
OMAP4430 VPOM4430_1.08a_Patch1. The document specifies:
	- Instructions for unpacking the release
	- New features and features the release supports
	- Planned future features
	- Postponed features


2. Release Summary
------------------
This is a Linux Baseport Release for SDP4430 on Virtio.
The kernel is based on Linux-omap version 2.6.30 -rc6 from open source.
U-boot is based on open-source version 1.1.4.

The u-boot source can be obtained via GIT from:
  http://git.omapzoom.org/?p=repo/u-boot.git;a=shortlog;h=refs/heads/omap4_dev

The kernel source can be obtained via GIT from:
  http://dev.omapzoom.org/?p=integration/kernel-omap4.git;a=summary

Virtio version used: VPOM4430_1.08a + VPOM4430_1.08a_Patch1.var

All drivers planned for this release are working as expected and
overall platform stability is good.

current L24.0.8 support:
	SMP OS Kernel boot-up on with UART, GPTimers, McBSP, McSPI, I2c, 
	GPIO, WATCHDOG.

3.  Instructions
----------------

3.1 Virtio Setup

This release works on VPOM4430_1.08a_Patch1.


3.2 Virtio Installation Instructions

a. Install to C:\Virtio
b. Once installation for virtio is started, you will be prompted for
   installation
   for virtual serial port. Say yes to it and give a port number (say 5 or 6).
   Multiple serial ports can also be installed.
c. Install C:\Virtio\Shared\Disassembler\Setup\VirtioDisassembler.exe.
   This is to enable debugging using virtio.
d. License for virtio has to be set in the environment variables
   LM_LICENSE_FILE.
e. Install VPOM4430_1.08a_Patch1.


3.3 Virtio Configuration Instructions

Run virtio and if modify the following parameters

a. On some versions SSM is generating error due to illegal instruction fetch.
   To workaround this you can disable SsmDisableSecurity user parameter.
   Params->User Parameters-> SsmDisableSecurity = yes
   Right click on SsmDisableSecurity parameter and change properties to editable
   mode. Then you can set this parameter to Yes. Default value is no.
b. If IVAHD is enabled the image boot up takes lot of time. If IVAHD component
   is not required it can be disabled.
   Browse to VPOM4430::SDP::OMAP4430::TIOMAP4CORES and disable all the enabled
   components under it
c. Open the Params tab and look at the User Parameters. Set the UARTx_COM_PORT
   to the virtual port number you had provided while installation.
d. Both CPU cores support has been enabled.
e. L2 Cache is not enabled in software. This requires the cache to be turned 
   off in the Virtio parameter list too. For this browse to
   VPOM4430::SDP::OMAP4430::CPU_SS::Cortex_1 and set the CacheDisabled parameter
   to true. Browse to VPOM4430::SDP::OMAP4430::CPU_SS::Cortex_2 and set the
   CacheDisabled parameter to true.Also browse to
   VPOM4430::SDP::OMAP4430::CPU_SS::pl310_cache and set the CacheDisabled
   parameter to true.
f. Once booted with two CPU, you can see two penguins on LCD instead on one.
   Linux kernel shows one penguin per CPU.

3.4 Compiling U-Boot

Set the environment variable PATH such that cross compile binaries point to the
needed tool chain. Refer to section 5 for tool chain information.

To select the default configuration for U-Boot type:
	# make CROSS_COMPILE=arm-none-linux-gnueabi- omap4430sdp_config

To build the U-Boot image type:
	# make CROSS_COMPILE=arm-none-linux-gnueabi-

3.5 Compiling X-Loader

Not yet supported

3.6 Compiling the Kernel

Set the environment variable PATH such that cross-compile binaries point to the
needed tool chain. Refer to section 5 for tool chain information.

The default configuration file for Virtio4430 is present at
arch/arm/configs/omap_4430sdp_defconfig.

To work with the default configuration file, run following commands:
	# make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi-
					omap_4430sdp_defconfig

Build kernel with:
	# make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- uImage

NOTE:	The above steps will create arch/arm/boot/uImage in the kernel directory
	which is the binary used for booting.

Filesystem:
NFS file system is not yet supported. Use ramdisk instead.
The default configuration for ramdisk is in the 4430 defconfig.
	Load address = 0x81600000
	Default size = 20MB


3.7 Running U-Boot boot loader on RAM

Go to the design tab. Open Scripts-> configs/Native Apps/Native Apps.script.
Replace it as shown below.
Then launch HyperTerminal and connect to the virtual serial port installed.
(e.g. COM5).
Now choose Native Apps in the configuration tabs at the top and select run.
The SDP4430 U-Boot prompt will appear in your terminal emulation program.

----------------------- [start of Native Apps.script]--------------------------

[VPOM4430::SDP::OMAP4430::L3FW_GPMC] bypass on
[VPOM4430::SDP::OMAP4430::L3FW_EMIF] bypass on
g #10

cc VPOM4430::SDP::OMAP4430::CPU_SS::Cortex_1

# Configure DMM to allow SDRAM accesses during ELF load.
# DMM_LISA_MAP[0]: 0x80000000 mapped to 0x0 on SDRC0 (128MiB, no interleaving)
d 0x4E000100=0x80301000

#load up the u-boot
[VPOM4430::SDP::OMAP4430::CPU_SS::Cortex_1]l 0x80e80000 -bin <u-boot.bin PATH>
[VPOM4430::SDP::OMAP4430::CPU_SS::Cortex_2]l 0x80e80000 -bin <u-boot.bin PATH>

# PRCM setup
# WKUP Domain
dp 0x4a307800 = 0x3
dp 0x4a307830 = 0x2
dp 0x4a307838 = 0x102
dp 0x4a307840 = 0x01000002
dp 0x4a307858 = 0x2
dp 0x4a307878 = 0x2
dp 0x4a307880 = 0x1

# ABE Domain
dp 0x4A004500 = 0x3
dp 0x4A004528 = 0x2
dp 0x4A004530 = 0x2
dp 0x4A004538 = 0x2
dp 0x4A004540 = 0x2
dp 0x4A004548 = 0x2
dp 0x4A004550 = 0x2
dp 0x4A004558 = 0x2
dp 0x4A004560 = 0xf02
dp 0x4A004568 = 0x2
dp 0x4A004570 = 0x2
dp 0x4A004578 = 0x2
dp 0x4A004580 = 0x2
dp 0x4A004588 = 0x2

# CORE Domain
# WakeUp Module domains
dp 0x4A008900 = 0x2
dp 0x4A008a00 = 0x2
dp 0x4A008b00 = 0x2
dp 0x4A008c00 = 0x2
dp 0x4A008900 = 0x3

# SDMA No Sleep!!
dp 0x4A008a00 = 0x0
dp 0x4A008b00 = 0x3
dp 0x4A008c00 = 0x3
dp 0x4A008828 = 0x1
dp 0x4A008920 = 0x1

# IVAHD Domain
dp 0x4A008F00 = 0x2
dp 0x4A008F00 = 0x3
dp 0x4A008F20 = 0x1
dp 0x4A008F28 = 0x1

# CAM Domain
dp 0x4A009000 = 0x2
dp 0x4A009000 = 0x3
dp 0x4A009020 = 0x102
dp 0x4A009028 = 0x2

# DSS Domain
dp 0x4A009100 = 0x2
dp 0x4A009100 = 0x3
dp 0x4A009120 = 0xf02
dp 0x4A009128 = 0x2

# GFX Domain
dp 0x4A009200 = 0x2
dp 0x4A009200 = 0x3
dp 0x4A009220 = 0x2

# L3INT Domain
dp 0x4A009300 = 0x3
dp 0x4A009328 = 0x2
dp 0x4A009330 = 0x2
dp 0x4A009338 = 0x2
dp 0x4A009340 = 0x102
dp 0x4A009358 = 0xff02
dp 0x4A009360 = 0x102
dp 0x4A009368 = 0x712
dp 0x4A009380 = 0x2
dp 0x4A009388 = 0x2
dp 0x4A009390 = 0x2
dp 0x4A009398 = 0x2
dp 0x4A0093A8 = 0x2
dp 0x4A0093C0 = 0x2
dp 0x4A0093C8 = 0x2
dp 0x4A0093D0 = 0x2
dp 0x4A0093E0 = 0x2

# L4PER Domain
dp 0x4A009400 = 0x2
dp 0x4A009580 = 0x2
dp 0x4A009400 = 0x3
dp 0x4A009580 = 0x3
dp 0x4A009420 = 0x2
dp 0x4A009428 = 0x2
dp 0x4A009430 = 0x2
dp 0x4A009438 = 0x2
dp 0x4A009440 = 0x2
dp 0x4A009448 = 0x2
dp 0x4A009450 = 0x2
dp 0x4A009458 = 0x2
dp 0x4A009460 = 0x102
dp 0x4A009468 = 0x102
dp 0x4A009470 = 0x102
dp 0x4A009478 = 0x102
dp 0x4A009480 = 0x102
dp 0x4A009488 = 0x2
dp 0x4A009490 = 0x2
dp 0x4A009498 = 0x2
dp 0x4A0094A0 = 0x2
dp 0x4A0094A8 = 0x2
dp 0x4A0094B0 = 0x2
dp 0x4A0094B8 = 0x2
dp 0x4A0094D0 = 0x2
dp 0x4A0094D8 = 0x2
dp 0x4A0094E0 = 0x2
dp 0x4A0094E8 = 0x2
dp 0x4A0094F0 = 0x2
dp 0x4A0094F8 = 0x2
dp 0x4A009500 = 0x2
dp 0x4A009508 = 0x2
dp 0x4A009520 = 0x2
dp 0x4A009528 = 0x2
dp 0x4A009530 = 0x2
dp 0x4A009538 = 0x702
dp 0x4A009540 = 0x2
dp 0x4A009548 = 0x2
dp 0x4A009550 = 0x2
dp 0x4A009558 = 0x2
dp 0x4A009560 = 0x2
dp 0x4A0095A0 = 0x2
dp 0x4A0095A8 = 0x2
dp 0x4A0095B0 = 0x2
dp 0x4A0095B8 = 0x2
dp 0x4A0095C0 = 0x2
dp 0x4A0095C8 = 0x2

#Route UART1 signals
dp 0x4a10013C = 0x00010001

#Route GPIO11 for Phoenix AudioCodec PowerUp
dp 0x4a31E084 = 0x01080003

# EMIF firewall bypass mode can now be turned off
[VPOM4430::SDP::OMAP4430::L3FW_EMIF] bypass off

# Open up the EMIF and OCMRAM firewalls to all accessors before anything runs
d 0x4a20c08c=0xffffffff
d 0x4a21208c=0xffffffff
d 0x4a22808c=0xffffffff

g

------------------------- [End of Native Apps.script]---------------------------

3.8 Running Linux kernel

The kernel binary used will be arch/arm/boot/uImage.


3.8.1 Loading the kernel image via Virtio

Select 'break' in the VPOM4430 innovator window. This will halt the system.
Use the following commands from the console window (will be open at the bottom
of virtio innovator window) to load up Image and the file system
	l 0x81600000 -bin <path where you have your ramdisk>
	l 0x80300000 -bin <path where Image file is put>/uImage>
	r r15=0x80e80054

Select 'go' in the virtio window.
Go to the hyper terminal and execute the following
set bootargs root=/dev/ram0 rw mem=128M console=ttyS0,115200n8
initrd=0x81600000,20M ramdisk_size=20480

bootm  0x80300000
You should see the kernel booting and ramdisk getting loaded in a few seconds

3.8.2 Loading the kernel image via Trace32

Launch the T32. If console window is already running t32.cmm script is
automatically run and you will be attached to the system. If not you will have
to manually run t32.cmm script file.
Break the system through t32
Use the following commands from T32 window to load up the kernel image and
file system
	Data.load.binary <your Image path>/Image 0x80300000
	Data.load.binary <your ramdisk path> 0x81600000
        r r15=0x80e80054

Select 'go' in the T32 window
Go to the hyper terminal and execute the following

>set bootargs root=/dev/ram0 rw mem=128M console=ttyS0,115200n8
initrd=0x81600000,20M ramdisk_size=20480
>bootm  0x80300000

You should see the kernel booting and ramdisk getting loaded in a few seconds

NOTE: The kernel binary used is arch/arm/boot/uImage and 
      not arch/arm/boot/Image.


4. Features
-----------

4.1 New Features

NA

4.2 Supported Features

- Boot-loader:
	U-boot from RAM

- OS Kernel
	SMP Kernel with GIC, LOCAL timer support.
	GP-Timers
	32 KHz Sync timer
	Watchdog timer
	I2C
	DMA
	GPIO
	McBSP
	McSPI
	Console UART (Uart 1, Uart 2, Uart 3,Uart 4)
- Power related
	Clock nodes in PRM/CM1/CM2 modules modelled.
	Clock nodes for ABE/PER/CORE/MPU/DSP/UNIPRO DPLL's modelled.
	Not present:
	USB DPLL not modelled
	None of the DPLL set_rate and recalc functions are implemented.

-Audio
	ALSA SoC compliant
	McBSP Audio Stub
	Added McPDM driver

-Video
	No support yet


4.3 Postponed Features

None


4.4 Future Planned Features

Refer to Program schedule.


4.5 Defects Fixed in This Release

None

4.6 Open Defects

None


4.7 Open Change Requests

None


4.8 Rejected Defects

None


4.9 Postponed Defects

None

4.10 Limitations

None


5. Tool Chain
-------------
The toolchain used to build the code can be obtained from CodeSourcery at the
following URL:
	http://www.codesourcery.com/gnu_toolchains/arm/portal/release644

The tool chain version is Sourcery G++ Lite 2008q3-72 for ARM GNU/Linux.

The tool chain requires glibc 2.3.0 or higher to compile the source code on
the host machine.


--------------------------------------------------------------------------------

OMAP(TM) is a Trademark of Texas Instruments Incorporated
Innovator(TM) is a Trademark of Texas Instruments Incorporated
Code Composer Studio(TM) is a Trademark of Texas Instruments Incorporated
DSP/BIOS(TM) is a Trademark of Texas Instruments Incorporated

All other trademarks are the property of the respective owner.