deleted file mode 100644
@@ -1,60 +0,0 @@
-DESCRIPTION = "Units to initialize usb gadgets"
-
-PR = "r19"
-
-LICENSE = "MIT"
-LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
-
-COMPATIBLE_MACHINE = "(ti33x)"
-PACKAGE_ARCH = "${MACHINE_ARCH}"
-
-SRC_URI = "file://storage-gadget-init.service \
- file://network-gadget-init.service \
- file://udhcpd.service \
- file://udhcpd.conf \
- file://bone-gmass-eject.rules \
- file://udhcpd.rules \
- file://g-storage-reinsert.sh \
- file://g-ether-start-service.sh \
- file://g-ether-load.sh \
- file://update-image-info-on-mmcblk0p1.sh \
- "
-
-do_install() {
- install -d ${D}${base_libdir}/systemd/system/basic.target.wants
- install -m 0644 ${UNPACKDIR}/*.service ${D}${base_libdir}/systemd/system
-
- for i in ${UNPACKDIR}/storage-gadget-init.service ; do
- install -m 0644 $i ${D}${base_libdir}/systemd/system
- ln -sf ../$(basename $i) ${D}${base_libdir}/systemd/system/basic.target.wants/
- done
-
- install -d ${D}${sysconfdir}/udev/rules.d
- install -m 0644 ${UNPACKDIR}/*.rules ${D}${sysconfdir}/udev/rules.d
- install -m 0644 ${UNPACKDIR}/*.conf ${D}${sysconfdir}
-
- install -d ${D}${bindir}
- install -m 0755 ${UNPACKDIR}/*.sh ${D}${bindir}
-}
-
-PACKAGES =+ "${PN}-storage ${PN}-network ${PN}-udhcpd"
-
-ALLOW_EMPTY:${PN} = "1"
-
-FILES:${PN}-storage = "${base_libdir}/systemd/system/storage-gadget-init.service \
- ${base_libdir}/systemd/system/basic.target.wants/storage-gadget-init.service \
- ${bindir}/g-storage-reinsert.sh \
- ${bindir}/update-image-info-on-mmcblk0p1.sh \
- ${sysconfdir}/udev/rules.d/bone-gmass-eject.rules"
-
-FILES:${PN}-network = "${base_libdir}/systemd/system/network-gadget-init.service \
- ${base_libdir}/systemd/system/basic.target.wants/network-gadget-init.service \
- ${bindir}/g-ether-load.sh \
- ${bindir}/g-ether-start-service.sh \
- ${sysconfdir}/udev/rules.d/udhcpd.rules"
-
-FILES:${PN}-udhcpd = "${base_libdir}/systemd/system/udhcpd.service \
- ${base_libdir}/systemd/system/basic.target.wants/udhcpd.service \
- ${sysconfdir}/udhcpd.conf"
-
-RRECOMMENDS:${PN} = "${PN}-storage ${PN}-network ${PN}-udhcpd"
deleted file mode 100644
@@ -1 +0,0 @@
-SUBSYSTEM=="block",ACTION=="change",KERNEL=="mmcblk0p1",RUN+="/usr/bin/g-ether-start-service.sh"
deleted file mode 100755
@@ -1,46 +0,0 @@
-#!/bin/sh
-
-function get_devmem()
-{
- /usr/bin/devmem2 $1 | grep ": " | cut -d ":" -f 2|cut -d "x" -f 2
-}
-
-function hex_to_mac_addr()
-{
- addr=$1
- n=0
- mac_addr=$(echo ${addr} | while read -r -n2 c; do
- if [ ! -z "$c" ]; then
- if [ $n -ne 0 ] ; then
- echo -n ":${c}"
- else
- echo -n "${c}"
- fi
- fi
- n=$(($n+1))
- done)
- echo ${mac_addr}
-}
-
-function reverse_bytes()
-{
- addr=$1
- New_addr=$(echo ${addr} | while read -r -n2 c; do
- if [ ! -z "$c" ]; then
- New_addr=${c}${New_addr}
- else echo
- echo ${New_addr}
- fi
- done)
- echo ${New_addr}
-}
-
-DEVMEM_ADDR_LO=$(get_devmem 0x44e10638|bc)
-DEVMEM_ADDR_LO=$(reverse_bytes ${DEVMEM_ADDR_LO})
-
-DEVMEM_ADDR_HI=$(get_devmem 0x44e1063C)
-DEVMEM_ADDR_HI=$(reverse_bytes ${DEVMEM_ADDR_HI})
-
-DEV_ADDR=$(hex_to_mac_addr "${DEVMEM_ADDR_HI}${DEVMEM_ADDR_LO}")
-
-modprobe g_ether host_addr=${DEV_ADDR}
deleted file mode 100755
@@ -1,10 +0,0 @@
-#!/bin/sh
-if [ -a /sys/devices/platform/omap/musb-ti81xx/musb-hdrc.0/gadget/lun0/file ]
-then
- x=$(cat /sys/devices/platform/omap/musb-ti81xx/musb-hdrc.0/gadget/lun0/file)
- if [ -z "$x" ]
- then
- /bin/systemctl stop storage-gadget-init.service
- /bin/systemctl start network-gadget-init.service
- fi
-fi
deleted file mode 100755
@@ -1,4 +0,0 @@
-#!/bin/sh
-/bin/systemctl stop storage-gadget-init.service
-/bin/systemctl stop network-gadget-init.service
-/bin/systemctl start storage-gadget-init.service
deleted file mode 100644
@@ -1,11 +0,0 @@
-[Unit]
-Description=Start USB Ethernet gadget
-Conflicts=storage-gadget-init.service
-
-[Service]
-RemainAfterExit=yes
-ExecStart=/usr/bin/g-ether-load.sh
-ExecStop=/sbin/rmmod g_ether
-
-[Install]
-WantedBy=gether.target
deleted file mode 100644
@@ -1,11 +0,0 @@
-[Unit]
-Description=Start usb mass storage gadget
-After=dev-mmcblk0p1.device
-
-[Service]
-RemainAfterExit=yes
-ExecStart=/sbin/modprobe g_mass_storage file=/dev/mmcblk0p1 cdrom=0 stall=0 removable=1 nofua=1
-ExecStop=/sbin/rmmod g_mass_storage
-
-[Install]
-WantedBy=basic.target
deleted file mode 100644
@@ -1,5 +0,0 @@
-start 192.168.7.1
-end 192.168.7.1
-interface usb0
-max_leases 1
-option subnet 255.255.255.252
deleted file mode 100644
@@ -1,2 +0,0 @@
-SUBSYSTEM=="net",ACTION=="add",KERNEL=="usb0",RUN+="/sbin/ifconfig usb0 192.168.7.2 netmask 255.255.255.252",RUN+="/bin/systemctl start udhcpd.service"
-SUBSYSTEM=="net",ACTION=="remove",KERNEL=="usb0",RUN+="/bin/systemctl stop udhcpd.service"
deleted file mode 100644
@@ -1,12 +0,0 @@
-[Unit]
-Description=DHCP server for USB0 network gadget
-After=dev-usb0.device
-Conflicts=storage-gadget-init.service
-
-[Service]
-ExecStart=/usr/sbin/udhcpd -f -S /etc/udhcpd.conf
-ExecStop=/bin/kill -TERM $MAINPID
-KillSignal=SIGINT
-
-[Install]
-WantedBy=gether.target
deleted file mode 100755
@@ -1,37 +0,0 @@
-#!/bin/sh
-mount /dev/mmcblk0p1 /mnt
-echo "Image info snapshot" > /mnt/info.txt
-
-echo >> /mnt/info.txt
-echo "/etc/angstrom-version:" >> /mnt/info.txt
-cat /etc/angstrom-version >> /mnt/info.txt
-
-echo >> /mnt/info.txt
-echo "/proc/cpuinfo:" >> /mnt/info.txt
-cat /proc/cpuinfo >> /mnt/info.txt
-
-echo >> /mnt/info.txt
-echo "uname -a:" >> /mnt/info.txt
-uname -a >> /mnt/info.txt
-
-echo >> /mnt/info.txt
-echo "/proc/cmdline:" >> /mnt/info.txt
-cat /proc/cmdline >> /mnt/info.txt
-
-echo >> /mnt/info.txt
-echo "ifconfig:" >> /mnt/info.txt
-ifconfig >> /mnt/info.txt
-
-echo >> /mnt/info.txt
-echo "/etc/angstrom-build-info:" >> /mnt/info.txt
-cat /etc/angstrom-build-info >> /mnt/info.txt
-
-echo >> /mnt/info.txt
-echo "/etc/image-version-info:" >> /mnt/info.txt
-cat /etc/image-version-info >> /mnt/info.txt
-
-echo >> /mnt/info.txt
-echo "opkg list-installed:" >> /mnt/info.txt
-opkg list-installed >> /mnt/info.txt
-
-umount /mnt
As the patch that added these states, this is an ugly hack, the issues involved are fixed and no longer relevant, remove this. Signed-off-by: Andrew Davis <afd@ti.com> --- .../recipes-ti/beagleboard/gadget-init.bb | 60 ------------------- .../gadget-init/bone-gmass-eject.rules | 1 - .../beagleboard/gadget-init/g-ether-load.sh | 46 -------------- .../gadget-init/g-ether-start-service.sh | 10 ---- .../gadget-init/g-storage-reinsert.sh | 4 -- .../gadget-init/network-gadget-init.service | 11 ---- .../gadget-init/storage-gadget-init.service | 11 ---- .../beagleboard/gadget-init/udhcpd.conf | 5 -- .../beagleboard/gadget-init/udhcpd.rules | 2 - .../beagleboard/gadget-init/udhcpd.service | 12 ---- .../update-image-info-on-mmcblk0p1.sh | 37 ------------ 11 files changed, 199 deletions(-) delete mode 100644 meta-ti-extras/recipes-ti/beagleboard/gadget-init.bb delete mode 100644 meta-ti-extras/recipes-ti/beagleboard/gadget-init/bone-gmass-eject.rules delete mode 100755 meta-ti-extras/recipes-ti/beagleboard/gadget-init/g-ether-load.sh delete mode 100755 meta-ti-extras/recipes-ti/beagleboard/gadget-init/g-ether-start-service.sh delete mode 100755 meta-ti-extras/recipes-ti/beagleboard/gadget-init/g-storage-reinsert.sh delete mode 100644 meta-ti-extras/recipes-ti/beagleboard/gadget-init/network-gadget-init.service delete mode 100644 meta-ti-extras/recipes-ti/beagleboard/gadget-init/storage-gadget-init.service delete mode 100644 meta-ti-extras/recipes-ti/beagleboard/gadget-init/udhcpd.conf delete mode 100644 meta-ti-extras/recipes-ti/beagleboard/gadget-init/udhcpd.rules delete mode 100644 meta-ti-extras/recipes-ti/beagleboard/gadget-init/udhcpd.service delete mode 100755 meta-ti-extras/recipes-ti/beagleboard/gadget-init/update-image-info-on-mmcblk0p1.sh