Skip to content

Commit

Permalink
Merge pull request #12 from RobertCNelson/g-ether-really-fix-mac-addr…
Browse files Browse the repository at this point in the history
…ess-read

g-ether-load: fix mac address read
  • Loading branch information
koenkooi committed Sep 5, 2013
2 parents d612f5e + 468063a commit b5c709b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ function reverse_bytes()
mac_address="/proc/device-tree/ocp/ethernet@4a100000/slave@4a100300/mac-address"
if [ -f ${mac_address} ] ; then
DEV_ADDR=$(hexdump -e '1/1 "%02X" ":"' ${mac_address} | sed 's/.$//')
DEV_ADDR=$(hexdump -v -e '1/1 "%02X" ":"' ${mac_address} | sed 's/.$//')
else
DEVMEM_ADDR_LO=$(get_devmem 0x44e10638|bc)
DEVMEM_ADDR_LO=$(reverse_bytes ${DEVMEM_ADDR_LO})
Expand Down

0 comments on commit b5c709b

Please sign in to comment.