Skip to content

Commit 7df6b1a

Browse files
committed
Add support for mainline arch
1 parent 27b2ae8 commit 7df6b1a

File tree

11 files changed

+299
-32
lines changed

11 files changed

+299
-32
lines changed

Makefile

Lines changed: 42 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,36 @@ archlinux-minimal-pinebook-$(RELEASE_NAME)-$(RELEASE).img: simple-image-pinebook
221221
pinebook \
222222
minimal
223223

224+
archlinux-xfce-pine64-$(RELEASE_NAME)-$(RELEASE).img: simple-image-pine64-nokernel-$(RELEASE_NAME).img.xz linux-pine64-package-$(RELEASE_NAME).tar.xz boot-tools
225+
sudo bash ./build-pine64-image.sh \
226+
$(shell readlink -f $@) \
227+
$(shell readlink -f $<) \
228+
- \
229+
$(shell readlink -f linux-pine64-package-$(RELEASE_NAME).tar.xz) \
230+
arch \
231+
pine64 \
232+
xfce
233+
234+
archlinux-xfce-sopine-$(RELEASE_NAME)-$(RELEASE).img: simple-image-sopine-nokernel-$(RELEASE_NAME).img.xz linux-pine64-package-$(RELEASE_NAME).tar.xz boot-tools
235+
sudo bash ./build-pine64-image.sh \
236+
$(shell readlink -f $@) \
237+
$(shell readlink -f $<) \
238+
- \
239+
$(shell readlink -f linux-pine64-package-$(RELEASE_NAME).tar.xz) \
240+
arch \
241+
sopine \
242+
xfce
243+
244+
archlinux-xfce-pinebook-$(RELEASE_NAME)-$(RELEASE).img: simple-image-pinebook-nokernel-$(RELEASE_NAME).img.xz linux-pine64-package-$(RELEASE_NAME).tar.xz boot-tools
245+
sudo bash ./build-pine64-image.sh \
246+
$(shell readlink -f $@) \
247+
$(shell readlink -f $<) \
248+
- \
249+
$(shell readlink -f linux-pine64-package-$(RELEASE_NAME).tar.xz) \
250+
arch \
251+
pinebook \
252+
xfce
253+
224254
.PHONY: kernel-tarball
225255
kernel-tarball: linux-pine64-$(RELEASE_NAME).tar.xz
226256

@@ -261,10 +291,19 @@ linux-pine64: xenial-minimal-pine64
261291
linux-sopine: xenial-minimal-sopine
262292

263293
.PHONY: archlinux-minimal-pine64
264-
archlinux-minimal-pine64: archlinux-minimal-pine64-$(RELEASE_NAME)-$(RELEASE).img.xz
294+
archlinux-minimal-pine64: archlinux-minimal-pine64-$(RELEASE_NAME)-$(RELEASE).img
265295

266296
.PHONY: archlinux-minimal-sopine
267-
archlinux-minimal-sopine: archlinux-minimal-sopine-$(RELEASE_NAME)-$(RELEASE).img.xz
297+
archlinux-minimal-sopine: archlinux-minimal-sopine-$(RELEASE_NAME)-$(RELEASE).img
268298

269299
.PHONY: archlinux-minimal-pinebook
270-
archlinux-minimal-pinebook: archlinux-minimal-pinebook-$(RELEASE_NAME)-$(RELEASE).img.xz
300+
archlinux-minimal-pinebook: archlinux-minimal-pinebook-$(RELEASE_NAME)-$(RELEASE).img
301+
302+
.PHONY: archlinux-xfce-pine64
303+
archlinux-xfce-pine64: archlinux-xfce-pine64-$(RELEASE_NAME)-$(RELEASE).img
304+
305+
.PHONY: archlinux-xfce-sopine
306+
archlinux-xfce-sopine: archlinux-xfce-sopine-$(RELEASE_NAME)-$(RELEASE).img
307+
308+
.PHONY: archlinux-xfce-pinebook
309+
archlinux-xfce-pinebook: archlinux-xfce-pinebook-$(RELEASE_NAME)-$(RELEASE).img

arch/asound.state

Lines changed: 224 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,224 @@
1+
state.Card {
2+
control.1 {
3+
iface MIXER
4+
name 'Headphone Playback Volume'
5+
value 30
6+
comment {
7+
access 'read write'
8+
type INTEGER
9+
count 1
10+
range '0 - 63'
11+
dbmin -9999999
12+
dbmax 0
13+
dbvalue.0 -3300
14+
}
15+
}
16+
control.2 {
17+
iface MIXER
18+
name 'Headphone Playback Switch'
19+
value.0 true
20+
value.1 true
21+
comment {
22+
access 'read write'
23+
type BOOLEAN
24+
count 2
25+
}
26+
}
27+
control.3 {
28+
iface MIXER
29+
name 'Line Out Playback Volume'
30+
value 17
31+
comment {
32+
access 'read write'
33+
type INTEGER
34+
count 1
35+
range '0 - 31'
36+
dbmin -9999999
37+
dbmax 0
38+
dbvalue.0 -2100
39+
}
40+
}
41+
control.4 {
42+
iface MIXER
43+
name 'Line Out Playback Switch'
44+
value false
45+
comment {
46+
access 'read write'
47+
type BOOLEAN
48+
count 1
49+
}
50+
}
51+
control.5 {
52+
iface MIXER
53+
name 'Mic1 Playback Volume'
54+
value 1
55+
comment {
56+
access 'read write'
57+
type INTEGER
58+
count 1
59+
range '0 - 7'
60+
dbmin -450
61+
dbmax 600
62+
dbvalue.0 -300
63+
}
64+
}
65+
control.6 {
66+
iface MIXER
67+
name 'Mic1 Boost Volume'
68+
value 0
69+
comment {
70+
access 'read write'
71+
type INTEGER
72+
count 1
73+
range '0 - 7'
74+
dbmin 0
75+
dbmax 4200
76+
dbvalue.0 0
77+
}
78+
}
79+
control.7 {
80+
iface MIXER
81+
name 'ADC Gain Capture Volume'
82+
value 6
83+
comment {
84+
access 'read write'
85+
type INTEGER
86+
count 1
87+
range '0 - 7'
88+
dbmin -450
89+
dbmax 600
90+
dbvalue.0 450
91+
}
92+
}
93+
control.8 {
94+
iface MIXER
95+
name 'AIF1 Slot 0 Digital DAC Playback Switch'
96+
value.0 true
97+
value.1 true
98+
comment {
99+
access 'read write'
100+
type BOOLEAN
101+
count 2
102+
}
103+
}
104+
control.9 {
105+
iface MIXER
106+
name 'DAC Playback Switch'
107+
value.0 true
108+
value.1 true
109+
comment {
110+
access 'read write'
111+
type BOOLEAN
112+
count 2
113+
}
114+
}
115+
control.10 {
116+
iface MIXER
117+
name 'DAC Reversed Playback Switch'
118+
value.0 false
119+
value.1 false
120+
comment {
121+
access 'read write'
122+
type BOOLEAN
123+
count 2
124+
}
125+
}
126+
control.11 {
127+
iface MIXER
128+
name 'Mic1 Playback Switch'
129+
value.0 false
130+
value.1 false
131+
comment {
132+
access 'read write'
133+
type BOOLEAN
134+
count 2
135+
}
136+
}
137+
control.12 {
138+
iface MIXER
139+
name 'Mixer Capture Switch'
140+
value.0 false
141+
value.1 true
142+
comment {
143+
access 'read write'
144+
type BOOLEAN
145+
count 2
146+
}
147+
}
148+
control.13 {
149+
iface MIXER
150+
name 'Mixer Reversed Capture Switch'
151+
value.0 false
152+
value.1 true
153+
comment {
154+
access 'read write'
155+
type BOOLEAN
156+
count 2
157+
}
158+
}
159+
control.14 {
160+
iface MIXER
161+
name 'Mic1 Capture Switch'
162+
value.0 false
163+
value.1 false
164+
comment {
165+
access 'read write'
166+
type BOOLEAN
167+
count 2
168+
}
169+
}
170+
control.15 {
171+
iface MIXER
172+
name 'Headphone Source Playback Route'
173+
value.0 DAC
174+
value.1 DAC
175+
comment {
176+
access 'read write'
177+
type ENUMERATED
178+
count 2
179+
item.0 DAC
180+
item.1 Mixer
181+
}
182+
}
183+
control.16 {
184+
iface MIXER
185+
name 'Line Out Source Playback Route'
186+
value.0 Stereo
187+
value.1 Stereo
188+
comment {
189+
access 'read write'
190+
type ENUMERATED
191+
count 2
192+
item.0 Stereo
193+
item.1 'Mono Differential'
194+
}
195+
}
196+
}
197+
state.allwinnerhdmi {
198+
control.1 {
199+
iface PCM
200+
name 'Playback Channel Map'
201+
value.0 0
202+
value.1 0
203+
value.2 0
204+
value.3 0
205+
value.4 0
206+
value.5 0
207+
comment {
208+
access read
209+
type INTEGER
210+
count 6
211+
range '0 - 36'
212+
}
213+
}
214+
control.2 {
215+
iface PCM
216+
name ELD
217+
value '0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
218+
comment {
219+
access 'read volatile'
220+
type BYTES
221+
count 128
222+
}
223+
}
224+
}

arch/boot-sd-arch.cmd

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
part uuid ${devtype} ${devnum}:${bootpart} uuid
2+
setenv bootargs console=${console} console=tty0 root=PARTUUID=${uuid} rw rootwait
3+
setenv kernel_addr_z 0x44080000
4+
5+
if load ${devtype} ${devnum}:${bootpart} ${kernel_addr_z} /boot/Image.gz; then
6+
unzip ${kernel_addr_z} ${kernel_addr_r}
7+
if load ${devtype} ${devnum}:${bootpart} ${fdt_addr_r} /boot/dtbs/${fdtfile}; then
8+
if load ${devtype} ${devnum}:${bootpart} ${ramdisk_addr_r} /boot/initramfs-linux.img; then
9+
booti ${kernel_addr_r} ${ramdisk_addr_r}:${filesize} ${fdt_addr_r};
10+
else
11+
booti ${kernel_addr_r} - ${fdt_addr_r};
12+
fi;
13+
fi;
14+
fi

arch/boot.scr

682 Bytes
Binary file not shown.

arch/pine64/sunxi-spl.bin

32 KB
Binary file not shown.

arch/pine64/u-boot.itb

516 KB
Binary file not shown.

arch/pinebook/sunxi-spl.bin

32 KB
Binary file not shown.

arch/pinebook/u-boot.itb

523 KB
Binary file not shown.

arch/sopine/sunxi-spl.bin

32 KB
Binary file not shown.

arch/sopine/u-boot.itb

498 KB
Binary file not shown.

0 commit comments

Comments
 (0)