Skip to content

Commit b5c709b

Browse files
committed
Merge pull request #12 from RobertCNelson/g-ether-really-fix-mac-address-read
g-ether-load: fix mac address read
2 parents d612f5e + 468063a commit b5c709b

File tree

1 file changed

+1
-1
lines changed
  • meta-beagleboard-extras/recipes-support/usb-gadget/gadget-init

1 file changed

+1
-1
lines changed

meta-beagleboard-extras/recipes-support/usb-gadget/gadget-init/g-ether-load.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ function reverse_bytes()
3737
3838
mac_address="/proc/device-tree/ocp/ethernet@4a100000/slave@4a100300/mac-address"
3939
if [ -f ${mac_address} ] ; then
40-
DEV_ADDR=$(hexdump -e '1/1 "%02X" ":"' ${mac_address} | sed 's/.$//')
40+
DEV_ADDR=$(hexdump -v -e '1/1 "%02X" ":"' ${mac_address} | sed 's/.$//')
4141
else
4242
DEVMEM_ADDR_LO=$(get_devmem 0x44e10638|bc)
4343
DEVMEM_ADDR_LO=$(reverse_bytes ${DEVMEM_ADDR_LO})

0 commit comments

Comments
 (0)