Have mostly working system, debugging usb

Sound, headphone and speakers work
trackpad works
wifi works
This commit is contained in:
SolidHal 2018-06-30 15:08:35 -05:00
parent 7993a9ef53
commit 938d6977f1
8 changed files with 10476 additions and 83 deletions

View File

@ -3,12 +3,22 @@
#Setup locales
apt install -y locales
#Install xfce, wicd
apt install -y task-xfce-desktop wicd wicd-curses wicd-gtk xserver-xorg-input-synaptics
apt install -y task-xfce-desktop wicd wicd-curses wicd-gtk xserver-xorg-input-synaptics acpi
#Copy in acpi, pulse audio, trackpad settings, funtion key settings
cp -rf /os_configs/default.pa /etc/pulse/default.pa
mkdir /etc/acpi
cp -rf /os_configs/default.sh /etc/acpi/default.sh
cp -rf /os_configs/sound.sh /etc/acpi/sound.sh
mkdir /etc/acpi/events
cp -rf /os_configs/headphone-acpi-toggle /etc/acpi/events/headphone-acpi-toggle
mkdir /etc/X11/xorg.conf.d/
cp -rf /os_configs/50-synaptics.conf /etc/X11/xorg.conf.d/
locale-gen
echo "Username: "
read username
adduser $username
usermod -a -G sudo,netdev $username
reboot

View File

@ -58,17 +58,15 @@ create_image debian-stretch-c201-libre-2GB.img $outdev 50M 40 $outmnt
# INCLUDES=apt-utils,libc6,libdebconfclient0,awk,libz2-1.0,libblzma5,libselinux1,tar,libtinfo5,zlib1g,udev,kmod,net-tools,traceroute,iproute2,isc-dhcp-client,wpasupplicant,iw,alsa-utils,cgpt,vim-tiny,less,psmisc,netcat-openbsd,ca-certificates,bzip2,xz-utils,unscd,lightdm,lightdm-gtk-greeter,xfce4,xorg,ifupdown,nano,wicd,wicd-curses
# install Debian on it
#TODO: Try without the variant and include flags
# Do the initial unpack phase of bootstrapping only, for example if the target architecture does not match the host architecture. A copy of debootstrap sufficient for completing the bootstrap process will be installed as /debootstrap/debootstrap in the target filesystem. You can run it with the --second-stage option to complete the bootstrapping process.
export LC_ALL="en_US.UTF-8" #Change this as necessary if not US
export DEBIAN_FRONTEND=noninteractive
qemu-debootstrap --arch armhf stretch --include locales $outmnt http://deb.debian.org/debian
qemu-debootstrap --arch armhf stretch --include locales,init $outmnt http://deb.debian.org/debian
chroot $outmnt passwd -d root
echo -n debsus > $outmnt/etc/hostname
cp -R os_configs/ $outmnt/os_configs/
cp Install.sh $outmnt/Install.sh
ls $outmnt/
chmod +x $outmnt/os_configs/default.sh
chmod +x $outmnt/os_configs/sound.sh
chmod +x $outmnt/Install.sh
#install -D -m 644 80disable-recommends $outmnt/etc/apt/apt.conf.d/80disable-recommends #This should fix the issue of crda being installed but unconfigured causing regulatory.db firmware loading errors in dmesg
#cp -f /etc/resolv.conf $outmnt/etc/
@ -80,7 +78,7 @@ chroot $outmnt apt update
chroot $outmnt apt install -y initscripts udev kmod net-tools inetutils-ping traceroute iproute2 isc-dhcp-client wpasupplicant iw alsa-utils cgpt vim-tiny less psmisc netcat-openbsd ca-certificates bzip2 xz-utils ifupdown nano apt-utils python python-urwid pciutils usbutils
chroot $outmnt apt-get autoremove --purge
chroot $outmnt apt-get clean
chroot $outmnt apt-get install -y -d locales task-xfce-desktop wicd-daemon wicd wicd-curses wicd-gtk xserver-xorg-input-synaptics
chroot $outmnt apt-get install -y -d acpi-support task-xfce-desktop wicd-daemon wicd wicd-curses wicd-gtk xserver-xorg-input-synaptics
#sed -i s/'enable-cache hosts no'/'enable-cache hosts yes'/ -i $outmnt/etc/nscd.conf
#rm -f $outmnt/etc/resolv.conf
rm -rf $outmnt/etc/hosts #This is what https://wiki.debian.org/EmDebian/CrossDebootstrap suggests

View File

@ -12,8 +12,8 @@ cd linux-$KVER
make clean
make mrproper
#Apply all of the rockMyy patches that make sense
# git apply ../patches/kernel/*
# git apply ../patches/DTS/*
git apply ../patches/kernel/*
git apply ../patches/DTS/*
# reset the minor version number, so out-of-tree drivers continue to work after
# a kernel upgrade
sed s/'SUBLEVEL = .*'/'SUBLEVEL = 0'/ -i Makefile

3964
conf-diff.txt Normal file

File diff suppressed because it is too large Load Diff

523
config

File diff suppressed because it is too large Load Diff

6015
config-rock Normal file

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,2 @@
event=jack/*
action=/etc/acpi/sound.sh %e

29
os_configs/sound.sh Executable file
View File

@ -0,0 +1,29 @@
#!/bin/bash
case "$1" in
jack/headphone)
case "$3" in
plug)
amixer -D hw:0 cset name='Left Speaker Mixer Left DAC Switch' off
amixer -D hw:0 cset name='Right Speaker Mixer Right DAC Switch' off
amixer -D hw:0 sset 'Headphone Left' on
amixer -D hw:0 sset 'Headphone Right' on
;;
unplug)
amixer -D hw:0 cset name='Left Speaker Mixer Left DAC Switch' on
amixer -D hw:0 cset name='Right Speaker Mixer Right DAC Switch' on
amixer -D hw:0 sset 'Headphone Left' off
amixer -D hw:0 sset 'Headphone Right' off
;;
esac
;;
jack/microphone)
case "$3" in
plug)
;;
unplug)
;;
esac
;;
esac