Files
tqma6-yocto-mirror/sources/meta-ti/meta-ti-extras/recipes-ti/beagleboard/gadget-init/g-ether-load.sh
Siggi (OpenClaw Agent) 16accb6b24 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)
2026-03-01 21:14:11 +00:00

47 lines
847 B
Bash
Executable File

#!/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}