Add nextthing boards
add chip, chippro and pocketchip
This commit is contained in:
parent
1372ebb073
commit
e5f3a21383
44 changed files with 12876 additions and 0 deletions
21
board/nextthing/chip/overlay/etc/init.d/S10modules
Normal file
21
board/nextthing/chip/overlay/etc/init.d/S10modules
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
#!/bin/sh
|
||||
|
||||
MODPROBE=/sbin/modprobe
|
||||
|
||||
echo -n "Probing modules: "
|
||||
if [ ! -x "${MODPROBE}" -o ! -f "/etc/modules" ]; then
|
||||
echo "missing"
|
||||
exit 1
|
||||
else
|
||||
echo
|
||||
fi
|
||||
|
||||
grep '^[^#]' "/etc/modules" | \
|
||||
while read module args; do
|
||||
[ "$module" ] || continue
|
||||
if ${MODPROBE} $module $args; then
|
||||
echo " $module loaded"
|
||||
else
|
||||
echo " $module failed"
|
||||
fi
|
||||
done
|
||||
3
board/nextthing/chip/overlay/etc/init.d/S20alsa
Normal file
3
board/nextthing/chip/overlay/etc/init.d/S20alsa
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
#!/bin/sh
|
||||
|
||||
alsactl restore
|
||||
37
board/nextthing/chip/overlay/etc/inittab
Normal file
37
board/nextthing/chip/overlay/etc/inittab
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
# /etc/inittab
|
||||
#
|
||||
# Copyright (C) 2001 Erik Andersen <andersen@codepoet.org>
|
||||
#
|
||||
# Note: BusyBox init doesn't support runlevels. The runlevels field is
|
||||
# completely ignored by BusyBox init. If you want runlevels, use
|
||||
# sysvinit.
|
||||
#
|
||||
# Format for each entry: <id>:<runlevels>:<action>:<process>
|
||||
#
|
||||
# id == tty to run on, or empty for /dev/console
|
||||
# runlevels == ignored
|
||||
# action == one of sysinit, respawn, askfirst, wait, and once
|
||||
# process == program to run
|
||||
|
||||
# Startup the system
|
||||
null::sysinit:/bin/mount -t proc proc /proc
|
||||
null::sysinit:/bin/mount -o remount,rw /
|
||||
null::sysinit:/bin/mkdir -p /dev/pts
|
||||
null::sysinit:/bin/mkdir -p /dev/shm
|
||||
null::sysinit:/bin/mount -a
|
||||
null::sysinit:/bin/hostname -F /etc/hostname
|
||||
# now run any rc scripts
|
||||
::sysinit:/etc/init.d/rcS
|
||||
|
||||
# Put a getty on the serial port
|
||||
ttyS0::respawn:/sbin/getty -L ttyS0 115200 vt100 # GENERIC_SERIAL
|
||||
ttyGS0::respawn:/sbin/getty -L ttyGS0 115200 vt100 # gadget serial
|
||||
tty0::respawn:/sbin/getty -L tty0 115200 vt100 # framebuffer console
|
||||
|
||||
# Stuff to do for the 3-finger salute
|
||||
::ctrlaltdel:/sbin/reboot
|
||||
|
||||
# Stuff to do before rebooting
|
||||
::shutdown:/etc/init.d/rcK
|
||||
::shutdown:/sbin/swapoff -a
|
||||
::shutdown:/bin/umount -a -r
|
||||
2
board/nextthing/chip/overlay/etc/modules
Normal file
2
board/nextthing/chip/overlay/etc/modules
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
g_serial
|
||||
sun4i_codec
|
||||
58
board/nextthing/chip/overlay/etc/securetty
Normal file
58
board/nextthing/chip/overlay/etc/securetty
Normal file
|
|
@ -0,0 +1,58 @@
|
|||
tty0
|
||||
tty1
|
||||
tty2
|
||||
tty3
|
||||
tty4
|
||||
tty5
|
||||
tty6
|
||||
tty7
|
||||
tty8
|
||||
ttyS0
|
||||
ttyS1
|
||||
ttyS2
|
||||
ttyS3
|
||||
ttyAMA0
|
||||
ttyAMA1
|
||||
ttyAMA2
|
||||
ttyAMA3
|
||||
ttySAC0
|
||||
ttySAC1
|
||||
ttySAC2
|
||||
ttySAC3
|
||||
ttyUL0
|
||||
ttyUL1
|
||||
ttyUL2
|
||||
ttyUL3
|
||||
ttyPS0
|
||||
ttyPS1
|
||||
ttyPSC0
|
||||
ttyPSC1
|
||||
ttyPSC2
|
||||
ttyPSC3
|
||||
ttyCPM0
|
||||
ttyCPM1
|
||||
ttyCPM2
|
||||
ttyCPM3
|
||||
ttymxc0
|
||||
ttymxc1
|
||||
ttymxc2
|
||||
ttyO0
|
||||
ttyO1
|
||||
ttyO2
|
||||
ttyO3
|
||||
ttyAM0
|
||||
ttyAM1
|
||||
ttyAM2
|
||||
ttySC0
|
||||
ttySC1
|
||||
ttySC2
|
||||
ttySC3
|
||||
ttySC4
|
||||
ttySC5
|
||||
ttySC6
|
||||
ttySC7
|
||||
ttyGS0
|
||||
hvc0
|
||||
hvc1
|
||||
hvc2
|
||||
hvc3
|
||||
|
|
@ -0,0 +1 @@
|
|||
%sudo ALL=(ALL) ALL
|
||||
76
board/nextthing/chip/overlay/var/lib/alsa/asound.state
Normal file
76
board/nextthing/chip/overlay/var/lib/alsa/asound.state
Normal file
|
|
@ -0,0 +1,76 @@
|
|||
state.sun4icodec {
|
||||
control.1 {
|
||||
iface MIXER
|
||||
name 'Power Amplifier Volume'
|
||||
value 56
|
||||
comment {
|
||||
access 'read write'
|
||||
type INTEGER
|
||||
count 1
|
||||
range '0 - 63'
|
||||
dbmin -9999999
|
||||
dbmax 0
|
||||
dbvalue.0 -700
|
||||
}
|
||||
}
|
||||
control.2 {
|
||||
iface MIXER
|
||||
name 'Left Mixer Left DAC Playback Switch'
|
||||
value false
|
||||
comment {
|
||||
access 'read write'
|
||||
type BOOLEAN
|
||||
count 1
|
||||
}
|
||||
}
|
||||
control.3 {
|
||||
iface MIXER
|
||||
name 'Right Mixer Right DAC Playback Switch'
|
||||
value false
|
||||
comment {
|
||||
access 'read write'
|
||||
type BOOLEAN
|
||||
count 1
|
||||
}
|
||||
}
|
||||
control.4 {
|
||||
iface MIXER
|
||||
name 'Right Mixer Left DAC Playback Switch'
|
||||
value false
|
||||
comment {
|
||||
access 'read write'
|
||||
type BOOLEAN
|
||||
count 1
|
||||
}
|
||||
}
|
||||
control.5 {
|
||||
iface MIXER
|
||||
name 'Power Amplifier DAC Playback Switch'
|
||||
value true
|
||||
comment {
|
||||
access 'read write'
|
||||
type BOOLEAN
|
||||
count 1
|
||||
}
|
||||
}
|
||||
control.6 {
|
||||
iface MIXER
|
||||
name 'Power Amplifier Mixer Playback Switch'
|
||||
value false
|
||||
comment {
|
||||
access 'read write'
|
||||
type BOOLEAN
|
||||
count 1
|
||||
}
|
||||
}
|
||||
control.7 {
|
||||
iface MIXER
|
||||
name 'Power Amplifier Mute Switch'
|
||||
value true
|
||||
comment {
|
||||
access 'read write'
|
||||
type BOOLEAN
|
||||
count 1
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue