Skip to content

Commit 170410d

Browse files
Minor L4T/Switch changes before 4.x release. (#1631)
* Add support for 32.7.1 bsp * Add option to uenv.txt to use performance governor. * Add support for auto frequency changing based upon docking * Add README.md to L4T Project since it is its own beast * Fix flycast issues in L4T builds, by reverting back to upstream libretro master, which actually has support for nano platform
1 parent 30f0571 commit 170410d

29 files changed

Lines changed: 466 additions & 79 deletions

File tree

projects/L4T/README.md

Lines changed: 141 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,141 @@
1+
# L4T Developer Guide
2+
3+
## What Works
4+
5+
1. Tegra BSP Libs on tegra210 devices(Untested elsewhere)
6+
2. ffmpeg encoding/decoding using nvv4l2 encoder/decoder on tegra chips.
7+
8+
## What Still needs to be done:
9+
1. Kernel get script needs proper cleanup and zip downloading/merge patching support for non switch version finished/tested.
10+
2. There is no bootloader support for standard tegra devices. I dont have any, so this is an undertaking I am unwilling to do at this time.
11+
3. Tegra-BSP might need some work on non t210 boards, I havnt bothered testing building for them. Probably the biggest differences will be the config file, or file name issues, the logic should be about the same.
12+
13+
14+
## Basic L4T Device Options:
15+
16+
```
17+
GENERIC_L4T_VERSION= # Available Options: [ 32.3.1 32.4.2 32.4.3 32.4.4 32.5 32.5.1 32.6 32.6.1 32.7.1 ]
18+
L4T_DEVICE_TYPE="" # Available Options: [ t210 t18x t19x ]
19+
```
20+
Sha256 of generated file.
21+
22+
This doesnt work properly, but when I refactor l4t_kernel_get stuff I plan on fixing it
23+
```
24+
L4T_COMBINED_KERNEL_SHA256=""
25+
```
26+
## Optional L4T Options:
27+
### Only set if you need to, these point at nvidia tegra git by default.
28+
29+
### Only Use REPO or URL, never both at the same time
30+
31+
### Currently URL Downloading is broken/not implemented. Still needs work.
32+
33+
### This is default if not using custom kernel branches. I never bothered rebasing patches on generic kernels. [ 0 or 1]
34+
```
35+
FORCE_GENERIC_L4T_PATCHES=
36+
```
37+
### This is only used in conjunction with L4T_DEVICE_CUSTOM_* and is needed to place custom board dts properly in kernel tree.
38+
```
39+
L4T_DEVICE_CUSTOM_BOARD_NAME=""
40+
```
41+
### These should be self explanitory if not check projects/L4T/devices/Switch/options
42+
```
43+
L4T_KERNEL_4_9_REPO=""
44+
L4T_KERNEL_4_9_REPO_BRANCH=""
45+
L4T_KERNEL_4_9_REPO_SHA256=""
46+
L4T_KERNEL_4_9_URL=""
47+
48+
L4T_KERNEL_NVIDIA_REPO=""
49+
L4T_KERNEL_NVIDIA_REPO_BRANCH=""
50+
L4T_KERNEL_NVIDIA_REPO_SHA256=""
51+
L4T_KERNEL_NVIDIA_URL=""
52+
53+
L4T_KERNEL_NVGPU_REPO=""
54+
L4T_KERNEL_NVGPU_REPO_BRANCH=""
55+
L4T_KERNEL_NVGPU_REPO_SHA256=""
56+
L4T_KERNEL_NVGPU_URL=""
57+
58+
L4T_DEVICE_TEGRA_REPO=""
59+
L4T_DEVICE_TEGRA_REPO_BRANCH=""
60+
L4T_DEVICE_TEGRA_REPO_SHA256=""
61+
L4T_DEVICE_TEGRA_URL=""
62+
63+
L4T_DEVICE_COMMON_TEGRA_REPO=""
64+
L4T_DEVICE_COMMON_TEGRA_REPO_BRANCH=""
65+
L4T_DEVICE_COMMON_TEGRA_REPO_SHA256=""
66+
L4T_DEVICE_COMMON_TEGRA_URL=""
67+
```
68+
### These depend on L4T_DEVICE_TYPE, and wont be used if not building for t210
69+
```
70+
L4T_DEVICE_COMMON_T210_REPO=""
71+
L4T_DEVICE_COMMON_T210_REPO_BRANCH=""
72+
L4T_DEVICE_COMMON_T210_REPO_SHA256=""
73+
L4T_DEVICE_COMMON_T210_URL=""
74+
75+
L4T_DEVICE_T210_REPO=""
76+
L4T_DEVICE_T210_REPO_BRANCH=""
77+
L4T_DEVICE_T210_REPO_SHA256=""
78+
L4T_DEVICE_T210_URL=""
79+
80+
L4T_DEVICE_T210_JETSON_REPO=""
81+
L4T_DEVICE_T210_JETSON_REPO_BRANCH=""
82+
L4T_DEVICE_T210_JETSON_REPO_SHA256=""
83+
L4T_DEVICE_T210_JETSON_URL=""
84+
85+
L4T_DEVICE_T210_BATUU_REPO=""
86+
L4T_DEVICE_T210_BATUU_REPO_BRANCH=""
87+
L4T_DEVICE_T210_BATUU_REPO_SHA256=""
88+
L4T_DEVICE_T210_BATUU_URL=""
89+
90+
L4T_DEVICE_T210_PORG_REPO=""
91+
L4T_DEVICE_T210_PORG_REPO_BRANCH=""
92+
L4T_DEVICE_T210_PORG_REPO_SHA256=""
93+
L4T_DEVICE_T210_PORG_URL=""
94+
```
95+
### These depend on L4T_DEVICE_TYPE, and wont be used if not building for t18x
96+
```
97+
L4T_DEVICE_COMMON_T18X_REPO=""
98+
L4T_DEVICE_COMMON_T18X_REPO_BRANCH=""
99+
L4T_DEVICE_COMMON_T18X_REPO_SHA256=""
100+
L4T_DEVICE_COMMON_T18X_URL=""
101+
102+
L4T_DEVICE_T18X_REPO=""
103+
L4T_DEVICE_T18X_REPO_BRANCH=""
104+
L4T_DEVICE_T18X_REPO_SHA256=""
105+
L4T_DEVICE_T18X_URL=""
106+
107+
L4T_DEVICE_T18X_QUILL_REPO=""
108+
L4T_DEVICE_T18X_QUILL_REPO_BRANCH=""
109+
L4T_DEVICE_T18X_QUILL_REPO_SHA256=""
110+
L4T_DEVICE_T18X_QUILL_URL=""
111+
```
112+
### These depend on L4T_DEVICE_TYPE, and wont be used if not building for t19x
113+
```
114+
L4T_DEVICE_COMMON_T19X_REPO=""
115+
L4T_DEVICE_COMMON_T19X_REPO_BRANCH=""
116+
L4T_DEVICE_COMMON_T19X_REPO_SHA256=""
117+
L4T_DEVICE_COMMON_T19X_URL=""
118+
119+
L4T_DEVICE_T19X_REPO=""
120+
L4T_DEVICE_T19X_REPO_BRANCH=""
121+
L4T_DEVICE_T19X_REPO_SHA256=""
122+
L4T_DEVICE_T19X_URL=""
123+
124+
L4T_DEVICE_T19X_GALEN_REPO=""
125+
L4T_DEVICE_T19X_GALEN_REPO_BRANCH=""
126+
L4T_DEVICE_T19X_GALEN_REPO_SHA256=""
127+
L4T_DEVICE_T19X_GALEN_URL=""
128+
129+
L4T_DEVICE_T19X_JAKKU_REPO=""
130+
L4T_DEVICE_T19X_JAKKU_REPO_BRANCH=""
131+
L4T_DEVICE_T19X_JAKKU_REPO_SHA256=""
132+
L4T_DEVICE_T19X_JAKKU_URL=""
133+
```
134+
135+
### Apply Custom Device DTS tree.
136+
```
137+
L4T_DEVICE_CUSTOM_REPO=""
138+
L4T_DEVICE_CUSTOM_REPO_BRANCH=""
139+
L4T_DEVICE_CUSTOM_REPO_SHA256=""
140+
L4T_DEVICE_CUSTOM_REPO_URL=""
141+
```
63 KB
Binary file not shown.
Binary file not shown.
Lines changed: 162 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,162 @@
1+
# Sample variables file for BCM94354 WLBGA iPA, iLNA board with SDIO for production package
2+
#NOTE: UPDATED TSSI PARAMETER FOR JETSON WITH COEX FILTER ON 10/5/2015. SHAILESH SINGH
3+
NVRAMRev=$Rev: 373428 $
4+
sromrev=11
5+
boardrev=0x1101
6+
boardtype=0x06db
7+
boardflags=0x02400201
8+
#enable LNA1 bypass for both 2G & 5G
9+
10+
#boardflags2=0xc0800000
11+
boardflags2=0x00802000
12+
13+
boardflags3=0x4000000a
14+
#boardnum=57410
15+
macaddr=00:90:4c:16:70:01
16+
ccode=XR
17+
regrev=122
18+
antswitch=0
19+
pdgain5g=4
20+
pdgain2g=4
21+
tworangetssi2g=0
22+
tworangetssi5g=0
23+
paprdis=1
24+
femctrl=10
25+
vendid=0x14e4
26+
devid=0x43a3
27+
manfid=0x2d0
28+
#prodid=0x052e
29+
nocrc=1
30+
otpimagesize=502
31+
32+
xtalfreq=37400
33+
rxgains2gelnagaina0=0
34+
35+
#rxgains2gtrisoa0=3
36+
rxgains2gtrisoa0=7
37+
38+
rxgains2gtrelnabypa0=0
39+
rxgains5gelnagaina0=0
40+
41+
#rxgains5gtrisoa0=4
42+
rxgains5gtrisoa0=11
43+
44+
rxgains5gtrelnabypa0=0
45+
rxgains5gmelnagaina0=0
46+
47+
#rxgains5gmtrisoa0=4
48+
rxgains5gmtrisoa0=13
49+
50+
rxgains5gmtrelnabypa0=0
51+
rxgains5ghelnagaina0=0
52+
53+
#rxgains5ghtrisoa0=4
54+
rxgains5ghtrisoa0=12
55+
56+
rxgains5ghtrelnabypa0=0
57+
rxgains2gelnagaina1=0
58+
59+
#rxgains2gtrisoa1=3
60+
rxgains2gtrisoa1=7
61+
62+
rxgains2gtrelnabypa1=0
63+
rxgains5gelnagaina1=0
64+
65+
#rxgains5gtrisoa1=4
66+
rxgains5gtrisoa1=10
67+
68+
rxgains5gtrelnabypa1=0
69+
rxgains5gmelnagaina1=0
70+
71+
#rxgains5gmtrisoa1=4
72+
rxgains5gmtrisoa1=11
73+
74+
rxgains5gmtrelnabypa1=0
75+
rxgains5ghelnagaina1=0
76+
77+
#rxgains5ghtrisoa1=4
78+
rxgains5ghtrisoa1=11
79+
80+
rxchain=3
81+
txchain=3
82+
aa2g=3
83+
aa5g=3
84+
agbg0=2
85+
agbg1=2
86+
aga0=2
87+
aga1=2
88+
tssipos2g=1
89+
extpagain2g=2
90+
tssipos5g=1
91+
extpagain5g=2
92+
tempthresh=255
93+
tempoffset=255
94+
rawtempsense=0x1ff
95+
#pa2ga0=-98,6012,-652
96+
#pa2ga1=-37,6488,-663
97+
#pa5ga0=-74,5929,-633,-74,5928,-631,-57,5987,-615,-37,6048,-613
98+
#pa5ga1=18,6630,-645,-8,6498,-665,47,6774,-637,26,6741,-651
99+
#pa2ga0=-169,6154,-729
100+
#pa2ga1=-149,6457,-741
101+
pa2ga0=-164,5202,-656
102+
pa2ga1=-180,5157,-654
103+
pa5ga0=-181,6179,-745,-180,6166,-740,-176,6025,-728,-175,5877,-718
104+
pa5ga1=-199,5842,-726,-198,5855,-728,-191,5691,-712,-170,5809,-715
105+
subband5gver=0x4
106+
pdoffsetcckma0=0x4
107+
pdoffsetcckma1=0x4
108+
pdoffset40ma0=0x0000
109+
pdoffset80ma0=0x0000
110+
pdoffset40ma1=0x0000
111+
pdoffset80ma1=0x0000
112+
maxp2ga0=74
113+
maxp5ga0=74,74,74,74
114+
maxp2ga1=74
115+
maxp5ga1=74,74,74,74
116+
cckbw202gpo=0x0000
117+
cckbw20ul2gpo=0x0000
118+
mcsbw202gpo=0x99644422
119+
mcsbw402gpo=0x99644422
120+
dot11agofdmhrbw202gpo=0x6666
121+
ofdmlrbw202gpo=0x0022
122+
mcsbw205glpo=0x88766663
123+
mcsbw405glpo=0x88666663
124+
mcsbw805glpo=0xbb666665
125+
mcsbw205gmpo=0xd8666663
126+
mcsbw405gmpo=0x88666663
127+
mcsbw805gmpo=0xcc666665
128+
mcsbw205ghpo=0xdc666663
129+
mcsbw405ghpo=0xaa666663
130+
mcsbw805ghpo=0xdd666665
131+
mcslr5glpo=0x0000
132+
mcslr5gmpo=0x0000
133+
mcslr5ghpo=0x0000
134+
sb20in40hrpo=0x0
135+
sb20in80and160hr5glpo=0x0
136+
sb40and80hr5glpo=0x0
137+
sb20in80and160hr5gmpo=0x0
138+
sb40and80hr5gmpo=0x0
139+
sb20in80and160hr5ghpo=0x0
140+
sb40and80hr5ghpo=0x0
141+
sb20in40lrpo=0x0
142+
sb20in80and160lr5glpo=0x0
143+
sb40and80lr5glpo=0x0
144+
sb20in80and160lr5gmpo=0x0
145+
sb40and80lr5gmpo=0x0
146+
sb20in80and160lr5ghpo=0x0
147+
sb40and80lr5ghpo=0x0
148+
dot11agduphrpo=0x0
149+
dot11agduplrpo=0x0
150+
phycal_tempdelta=255
151+
temps_period=15
152+
temps_hysteresis=15
153+
AvVmid_c0=2,140,2,145,2,145,2,145,2,145
154+
AvVmid_c1=2,140,2,145,2,145,2,145,2,145
155+
AvVmid_c2=0,0,0,0,0,0,0,0,0,0
156+
rssicorrnorm_c0=4,4
157+
rssicorrnorm_c1=4,4
158+
rssicorrnorm5g_c0=1,2,3,1,2,3,6,6,8,6,6,8
159+
rssicorrnorm5g_c1=1,2,3,2,2,2,7,7,8,7,7,8
160+
161+
muxenab=0x11
162+
ltecxmux=0x534201
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
tegra21x
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
04040525
Binary file not shown.
Binary file not shown.
528 Bytes
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)