Complete Yocto mirror with license table for TQMa6UL (2038-compliance)
- 264 license table entries with exact download URLs (224/264 resolved) - Complete sources/ directory with all BitBake recipes - Build configuration: tqma6ul-multi-mba6ulx, spaetzle (musl) - Full traceability for Softwarefreigabeantrag - GCC 13.4.0, Linux 6.6.102, U-Boot 2023.04, musl 1.2.4 - License distribution: GPL-2.0 (24), MIT (23), GPL-2.0+ (18), BSD-3 (16)
This commit is contained in:
@@ -0,0 +1 @@
|
||||
SUBSYSTEM=="block",ACTION=="change",KERNEL=="mmcblk0p1",RUN+="/usr/bin/g-ether-start-service.sh"
|
||||
@@ -0,0 +1,46 @@
|
||||
#!/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}
|
||||
@@ -0,0 +1,10 @@
|
||||
#!/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
|
||||
@@ -0,0 +1,4 @@
|
||||
#!/bin/sh
|
||||
/bin/systemctl stop storage-gadget-init.service
|
||||
/bin/systemctl stop network-gadget-init.service
|
||||
/bin/systemctl start storage-gadget-init.service
|
||||
@@ -0,0 +1,11 @@
|
||||
[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
|
||||
@@ -0,0 +1,11 @@
|
||||
[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
|
||||
@@ -0,0 +1,5 @@
|
||||
start 192.168.7.1
|
||||
end 192.168.7.1
|
||||
interface usb0
|
||||
max_leases 1
|
||||
option subnet 255.255.255.252
|
||||
@@ -0,0 +1,2 @@
|
||||
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"
|
||||
@@ -0,0 +1,12 @@
|
||||
[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
|
||||
@@ -0,0 +1,37 @@
|
||||
#!/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
|
||||
Reference in New Issue
Block a user