Script ------ sudo apt-get update -y OK sudo apt-get upgrade -y OK sudo apt-get install -y git OK cd echo "Downloading DAC+ ADC kernel from Github" OK git clone https://github.com/hifiberry/dacadckernel OK cd / echo Extracting kernel sudo tar xvfz ~/dacadckernel/4.18.dacadc.tar.gz cat /boot/config.txt | grep -v "kernel=" | grep -v "dtoverlay=hifiberry-" | grep -v "dtparam=audio=on" >> /tmp/config.txt echo Enabling kernel in /boot/config.txt echo "kernel=kernel7-hb.img" >> /tmp/config.txt echo "dtoverlay=hifiberry-dacplusadc" >> /tmp/config.txt sudo mv /boot/config.txt /boot/config.bak sudo mv /tmp/config.txt /boot/config.txt echo Removing temporary files cd /home/pi rm -rf dacadckernel sudo reboot --------------------------------------------------------------------- Downloading DAC+ ADC kernel from Github Cloning into 'dacadckernel'... remote: Enumerating objects: 30, done. remote: Counting objects: 100% (30/30), done. remote: Compressing objects: 100% (25/25), done. remote: Total 30 (delta 12), reused 13 (delta 3), pack-reused 0 Unpacking objects: 100% (30/30), done. Extracting kernel boot/ boot/bcm2835-rpi-zero-w.dtb tar: boot/bcm2835-rpi-zero-w.dtb: Cannot change ownership to uid 1000, gid 1000: Operation not permitted boot/bcm2835-rpi-a.dtb tar: boot/bcm2835-rpi-a.dtb: Cannot change ownership to uid 1000, gid 1000: Operation not permitted boot/kernel7.img tar: boot/kernel7.img: Cannot change ownership to uid 1000, gid 1000: Operation not permitted boot/bcm2708-rpi-b-plus.dtb tar: boot/bcm2708-rpi-b-plus.dtb: Cannot change ownership to uid 1000, gid 1000: Operation not permitted boot/bcm2708-rpi-0-w.dtb tar: boot/bcm2708-rpi-0-w.dtb: Cannot change ownership to uid 1000, gid 1000: Operation not permitted boot/bcm2835-rpi-b.dtb tar: boot/bcm2835-rpi-b.dtb: Cannot change ownership to uid 1000, gid 1000: Operation not permitted boot/bcm2709-rpi-2-b.dtb tar: boot/bcm2709-rpi-2-b.dtb: Cannot change ownership to uid 1000, gid 1000: Operation not permitted boot/bcm2835-rpi-b-rev2.dtb tar: boot/bcm2835-rpi-b-rev2.dtb: Cannot change ownership to uid 1000, gid 1000: Operation not permitted boot/bcm2837-rpi-3-b-plus.dtb tar: boot/bcm2837-rpi-3-b-plus.dtb: Cannot change ownership to uid 1000, gid 1000: Operation not permitted boot/bcm2835-rpi-a-plus.dtb tar: boot/bcm2835-rpi-a-plus.dtb: Cannot change ownership to uid 1000, gid 1000: Operation not permitted boot/kernel7-hb.img tar: boot/kernel7-hb.img: Cannot change ownership to uid 1000, gid 1000: Operation not permitted boot/bcm2835-rpi-zero.dtb tar: boot/bcm2835-rpi-zero.dtb: Cannot change ownership to uid 1000, gid 1000: Operation not permitted boot/bcm2710-rpi-3-b-plus.dtb tar: boot/bcm2710-rpi-3-b-plus.dtb: Cannot change ownership to uid 1000, gid 1000: Operation not permitted boot/bcm2836-rpi-2-b.dtb tar: boot/bcm2836-rpi-2-b.dtb: Cannot change ownership to uid 1000, gid 1000: Operation not permitted boot/bcm2837-rpi-3-b.dtb tar: boot/bcm2837-rpi-3-b.dtb: Cannot change ownership to uid 1000, gid 1000: Operation not permitted boot/bcm2710-rpi-cm3.dtb tar: boot/bcm2710-rpi-cm3.dtb: Cannot change ownership to uid 1000, gid 1000: Operation not permitted boot/overlays/ boot/overlays/allo-digione.dtbo tar: boot/overlays/allo-digione.dtbo: Cannot change ownership to uid 1000, gid 1000: Operation not permitted boot/overlays/spi2-2cs.dtbo tar: boot/overlays/spi2-2cs.dtbo: Cannot change ownership to uid 1000, gid 1000: Operation not permitted boot/overlays/bmp085_i2c-sensor.dtbo tar: boot/overlays/bmp085_i2c-sensor.dtbo: Cannot change ownership to uid 1000, gid 1000: Operation not permitted boot/overlays/enc28j60.dtbo tar: boot/overlays/enc28j60.dtbo: Cannot change ownership to uid 1000, gid 1000: Operation not permitted boot/overlays/goodix.dtbo tar: boot/overlays/goodix.dtbo: Cannot change ownership to uid 1000, gid 1000: Operation not permitted boot/overlays/rpi-backlight.dtbo tar: boot/overlays/rpi-backlight.dtbo: Cannot change ownership to uid 1000, gid 1000: Operation not permitted boot/overlays/hy28b.dtbo tar: boot/overlays/hy28b.dtbo: Cannot change ownership to uid 1000, gid 1000: Operation not permitted boot/overlays/ads7846.dtbo tar: boot/overlays/ads7846.dtbo: Cannot change ownership to uid 1000, gid 1000: Operation not permitted boot/overlays/gpio-no-irq.dtbo tar: boot/overlays/gpio-no-irq.dtbo: Cannot change ownership to uid 1000, gid 1000: Operation not permitted boot/overlays/tinylcd35.dtbo tar: boot/overlays/tinylcd35.dtbo: Cannot change ownership to uid 1000, gid 1000: Operation not permitted boot/overlays/midi-uart0.dtbo tar: boot/overlays/midi-uart0.dtbo: Cannot change ownership to uid 1000, gid 1000: Operation not permitted boot/overlays/README tar: boot/overlays/README: Cannot change ownership to uid 1000, gid 1000: Operation not permitted boot/overlays/uart1.dtbo tar: boot/overlays/uart1.dtbo: Cannot change ownership to uid 1000, gid 1000: Operation not permitted boot/overlays/wittypi.dtbo tar: boot/overlays/wittypi.dtbo: Cannot change ownership to uid 1000, gid 1000: Operation not permitted boot/overlays/pi3-act-led.dtbo tar: boot/overlays/pi3-act-led.dtbo: Cannot change ownership to uid 1000, gid 1000: Operation not permitted boot/overlays/mcp2515-can1.dtbo tar: boot/overlays/mcp2515-can1.dtbo: Cannot change ownership to uid 1000, gid 1000: Operation not permitted boot/overlays/pibell.dtbo tar: boot/overlays/pibell.dtbo: Cannot change ownership to uid 1000, gid 1000: Operation not permitted boot/overlays/qca7000.dtbo tar: boot/overlays/qca7000.dtbo: Cannot change ownership to uid 1000, gid 1000: Operation not permitted boot/overlays/audioinjector-addons.dtbo tar: boot/overlays/audioinjector-addons.dtbo: Cannot change ownership to uid 1000, gid 1000: Operation not permitted boot/overlays/papirus.dtbo tar: boot/overlays/papirus.dtbo: Cannot change ownership to uid 1000, gid 1000: Operation not permitted boot/overlays/hifiberry-digi.dtbo tar: boot/overlays/hifiberry-digi.dtbo: Cannot change ownership to uid 1000, gid 1000: Operation not permitted boot/overlays/i2c1-bcm2708.dtbo tar: boot/overlays/i2c1-bcm2708.dtbo: Cannot change ownership to uid 1000, gid 1000: Operation not permitted boot/overlays/spi1-3cs.dtbo tar: boot/overlays/spi1-3cs.dtbo: Cannot change ownership to uid 1000, gid 1000: Operation not permitted boot/overlays/ads1115.dtbo tar: boot/overlays/ads1115.dtbo: Cannot change ownership to uid 1000, gid 1000: Operation not permitted boot/overlays/mpu6050.dtbo tar: boot/overlays/mpu6050.dtbo: Cannot change ownership to uid 1000, gid 1000: Operation not permitted boot/overlays/hifiberry-dacplusadc.dtbo tar: boot/overlays/hifiberry-dacplusadc.dtbo: Cannot change ownership to uid 1000, gid 1000: Operation not permitted boot/overlays/pps-gpio.dtbo tar: boot/overlays/pps-gpio.dtbo: Cannot change ownership to uid 1000, gid 1000: Operation not permitted boot/overlays/allo-piano-dac-pcm512x-audio.dtbo tar: boot/overlays/allo-piano-dac-pcm512x-audio.dtbo: Cannot change ownership to uid 1000, gid 1000: Operation not permitted boot/overlays/sc16is752-i2c.dtbo tar: boot/overlays/sc16is752-i2c.dtbo: Cannot change ownership to uid 1000, gid 1000: Operation not permitted boot/overlays/i2c0-bcm2708.dtbo tar: boot/overlays/i2c0-bcm2708.dtbo: Cannot change ownership to uid 1000, gid 1000: Operation not permitted boot/overlays/dpi18.dtbo tar: boot/overlays/dpi18.dtbo: Cannot change ownership to uid 1000, gid 1000: Operation not permitted boot/overlays/smi.dtbo tar: boot/overlays/smi.dtbo: Cannot change ownership to uid 1000, gid 1000: Operation not permitted boot/overlays/hifiberry-dacplus.dtbo tar: boot/overlays/hifiberry-dacplus.dtbo: Cannot change ownership to uid 1000, gid 1000: Operation not permitted boot/overlays/justboom-dac.dtbo tar: boot/overlays/justboom-dac.dtbo: Cannot change ownership to uid 1000, gid 1000: Operation not permitted boot/overlays/mbed-dac.dtbo tar: boot/overlays/mbed-dac.dtbo: Cannot change ownership to uid 1000, gid 1000: Operation not permitted boot/overlays/mcp3008.dtbo tar: boot/overlays/mcp3008.dtbo: Cannot change ownership to uid 1000, gid 1000: Operation not permitted boot/overlays/rpi-proto.dtbo ... boot/overlays/i2c-pwm-pca9685a.dtbo tar: boot/overlays/i2c-pwm-pca9685a.dtbo: Cannot change ownership to uid 1000, gid 1000: Operation not permitted boot/overlays/pi3-disable-bt.dtbo tar: boot/overlays/pi3-disable-bt.dtbo: Cannot change ownership to uid 1000, gid 1000: Operation not permitted boot/overlays/smi-nand.dtbo lib/modules/ lib/modules/4.18.8-v7+/ lib/modules/4.18.8-v7+/kernel/ lib/modules/4.18.8-v7+/kernel/kernel/ lib/modules/4.18.8-v7+/kernel/kernel/configs.ko lib/modules/4.18.8-v7+/kernel/net/ lib/modules/4.18.8-v7+/kernel/net/ipv6/ lib/modules/4.18.8-v7+/kernel/net/ipv6/ip6_udp_tunnel.ko lib/modules/4.18.8-v7+/kernel/net/ipv6/xfrm6_mode_tunnel.ko lib/modules/4.18.8-v7+/kernel/net/ipv6/ah6.ko lib/modules/4.18.8-v7+/kernel/net/ipv6/esp6.ko lib/modules/4.18.8-v7+/kernel/net/ipv6/tunnel6.ko lib/modules/4.18.8-v7+/kernel/net/ipv6/xfrm6_mode_transport.ko lib/modules/4.18.8-v7+/kernel/net/ipv6/xfrm6_mode_beet.ko lib/modules/4.18.8-v7+/kernel/net/ipv6/ipv6.ko lib/modules/4.18.8-v7+/kernel/net/ipv6/ip6_tunnel.ko lib/modules/4.18.8-v7+/kernel/net/ipv6/ipcomp6.ko lib/modules/4.18.8-v7+/kernel/net/ipv6/netfilter/ lib/modules/4.18.8-v7+/kernel/net/ipv6/netfilter/ip6table_filter.ko lib/modules/4.18.8-v7+/kernel/net/ipv6/netfilter/nf_reject_ipv6.ko lib/modules/4.18.8-v7+/kernel/net/ipv6/netfilter/ip6t_frag.ko lib/modules/4.18.8-v7+/kernel/net/ipv6/netfilter/nf_log_ipv6.ko lib/modules/4.18.8-v7+/kernel/net/ipv6/netfilter/nf_tproxy_ipv6.ko lib/modules/4.18.8-v7+/kernel/net/ipv6/netfilter/ip6t_ipv6header.ko lib/modules/4.18.8-v7+/kernel/net/ipv6/netfilter/ip6t_mh.ko lib/modules/4.18.8-v7+/kernel/net/ipv6/netfilter/ip6t_hbh.ko lib/modules/4.18.8-v7+/kernel/net/ipv6/netfilter/ip6_tables.ko lib/modules/4.18.8-v7+/kernel/net/ipv6/netfilter/ip6table_raw.ko lib/modules/4.18.8-v7+/kernel/net/ipv6/netfilter/nf_defrag_ipv6.ko lib/modules/4.18.8-v7+/kernel/net/ipv6/netfilter/nf_conntrack_ipv6.ko lib/modules/4.18.8-v7+/kernel/net/ipv6/netfilter/ip6t_MASQUERADE.ko lib/modules/4.18.8-v7+/kernel/net/ipv6/netfilter/ip6table_nat.ko lib/modules/4.18.8-v7+/kernel/net/ipv6/netfilter/ip6t_rt.ko lib/modules/4.18.8-v7+/kernel/net/ipv6/netfilter/nf_nat_ipv6.ko lib/modules/4.18.8-v7+/kernel/net/ipv6/netfilter/ip6t_NPT.ko lib/modules/4.18.8-v7+/kernel/net/ipv6/netfilter/ip6t_ah.ko lib/modules/4.18.8-v7+/kernel/net/ipv6/netfilter/ip6t_REJECT.ko lib/modules/4.18.8-v7+/kernel/net/ipv6/netfilter/ip6table_mangle.ko lib/modules/4.18.8-v7+/kernel/net/ipv6/netfilter/ip6t_eui64.ko lib/modules/4.18.8-v7+/kernel/net/ipv6/netfilter/ip6t_rpfilter.ko lib/modules/4.18.8-v7+/kernel/net/ipv6/netfilter/nf_dup_ipv6.ko lib/modules/4.18.8-v7+/kernel/net/ipv6/xfrm6_tunnel.ko lib/modules/4.18.8-v7+/kernel/net/ipv6/sit.ko lib/modules/4.18.8-v7+/kernel/net/bridge/ lib/modules/4.18.8-v7+/kernel/net/bridge/bridge.ko lib/modules/4.18.8-v7+/kernel/net/bridge/br_netfilter.ko lib/modules/4.18.8-v7+/kernel/net/bridge/netfilter/ lib/modules/4.18.8-v7+/kernel/net/bridge/netfilter/ebt_vlan.ko lib/modules/4.18.8-v7+/kernel/net/bridge/netfilter/ebt_ip6.ko lib/modules/4.18.8-v7+/kernel/net/bridge/netfilter/ebt_ip.ko lib/modules/4.18.8-v7+/kernel/net/bridge/netfilter/ebt_limit.ko lib/modules/4.18.8-v7+/kernel/net/bridge/netfilter/ebt_dnat.ko lib/modules/4.18.8-v7+/kernel/net/bridge/netfilter/ebtable_filter.ko lib/modules/4.18.8-v7+/kernel/net/bridge/netfilter/ebtables.ko lib/modules/4.18.8-v7+/kernel/net/bridge/netfilter/ebt_mark_m.ko lib/modules/4.18.8-v7+/kernel/net/bridge/netfilter/ebt_redirect.ko lib/modules/4.18.8-v7+/kernel/net/bridge/netfilter/ebt_802_3.ko lib/modules/4.18.8-v7+/kernel/net/bridge/netfilter/ebt_snat.ko lib/modules/4.18.8-v7+/kernel/net/bridge/netfilter/ebtable_nat.ko lib/modules/4.18.8-v7+/kernel/net/bridge/netfilter/ebt_nflog.ko lib/modules/4.18.8-v7+/kernel/net/bridge/netfilter/ebt_among.ko lib/modules/4.18.8-v7+/kernel/net/bridge/netfilter/ebt_pkttype.ko lib/modules/4.18.8-v7+/kernel/net/bridge/netfilter/ebt_mark.ko lib/modules/4.18.8-v7+/kernel/net/bridge/netfilter/ebt_stp.ko lib/modules/4.18.8-v7+/kernel/net/bridge/netfilter/ebt_arpreply.ko lib/modules/4.18.8-v7+/kernel/net/bridge/netfilter/ebt_arp.ko lib/modules/4.18.8-v7+/kernel/net/bridge/netfilter/ebt_log.ko lib/modules/4.18.8-v7+/kernel/net/bridge/netfilter/ebtable_broute.ko lib/modules/4.18.8-v7+/kernel/net/nsh/ lib/modules/4.18.8-v7+/kernel/net/nsh/nsh.ko lib/modules/4.18.8-v7+/kernel/net/ipv4/ lib/modules/4.18.8-v7+/kernel/net/ipv4/gre.ko lib/modules/4.18.8-v7+/kernel/net/ipv4/xfrm4_mode_tunnel.ko lib/modules/4.18.8-v7+/kernel/net/ipv4/tcp_bic.ko lib/modules/4.18.8-v7+/kernel/net/ipv4/tcp_htcp.ko lib/modules/4.18.8-v7+/kernel/net/ipv4/esp4.ko lib/modules/4.18.8-v7+/kernel/net/ipv4/xfrm4_mode_beet.ko lib/modules/4.18.8-v7+/kernel/net/ipv4/tcp_diag.ko lib/modules/4.18.8-v7+/kernel/net/ipv4/xfrm4_mode_transport.ko lib/modules/4.18.8-v7+/kernel/net/ipv4/tcp_bbr.ko lib/modules/4.18.8-v7+/kernel/net/ipv4/xfrm4_tunnel.ko lib/modules/4.18.8-v7+/kernel/net/ipv4/udp_tunnel.ko lib/modules/4.18.8-v7+/kernel/net/ipv4/ipcomp.ko lib/modules/4.18.8-v7+/kernel/net/ipv4/tcp_westwood.ko ... lib/modules/4.18.9-v7+/kernel/fs/jffs2/ lib/modules/4.18.9-v7+/kernel/fs/jffs2/jffs2.ko lib/modules/4.18.9-v7+/kernel/fs/hfs/ lib/modules/4.18.9-v7+/kernel/fs/hfs/hfs.ko lib/modules/4.18.9-v7+/kernel/fs/nfs/ lib/modules/4.18.9-v7+/kernel/fs/nfs/flexfilelayout/ lib/modules/4.18.9-v7+/kernel/fs/nfs/flexfilelayout/nfs_layout_flexfiles.ko lib/modules/4.18.9-v7+/kernel/fs/nfs/blocklayout/ lib/modules/4.18.9-v7+/kernel/fs/nfs/blocklayout/blocklayoutdriver.ko lib/modules/4.18.9-v7+/kernel/fs/reiserfs/ lib/modules/4.18.9-v7+/kernel/fs/reiserfs/reiserfs.ko lib/modules/4.18.9-v7+/kernel/fs/squashfs/ lib/modules/4.18.9-v7+/kernel/crypto/lzo.ko lib/modules/4.18.9-v7+/kernel/crypto/crypto_user.ko lib/modules/4.18.9-v7+/kernel/crypto/ecb.ko lib/modules/4.18.9-v7+/modules.symbols.bin lib/modules/4.18.9-v7+/modules.builtin.bin lib/modules/4.18.9-v7+/modules.dep lib/modules/4.18.9-v7+/modules.softdep lib/modules/4.18.9-v7+/modules.dep.bin lib/modules/4.18.9-v7+/modules.builtin lib/modules/4.18.9-v7+/modules.symbols lib/modules/4.18.9-v7+/modules.devname lib/modules/4.18.9-v7+/modules.order lib/modules/4.18.9-v7+/source lib/modules/4.18.9-v7+/modules.alias lib/modules/4.18.9-v7+/modules.alias.bin lib/modules/4.18.9-v7+/build tar: Exiting with failure status due to previous errors Enabling kernel in /boot/config.txt Removing temporary files