projects
/
linux-usb-otg
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
use board serial number from device tree
[linux-usb-otg]
/
usb-composite-all.sh
diff --git
a/usb-composite-all.sh
b/usb-composite-all.sh
index
ecc3938
..
4593a01
100755
(executable)
--- a/
usb-composite-all.sh
+++ b/
usb-composite-all.sh
@@
-24,7
+24,7
@@
echo 0x0100 > bcdDevice # v1.0.0
echo 0x0200 > bcdUSB # USB2
mkdir -p strings/0x409
echo 0x0200 > bcdUSB # USB2
mkdir -p strings/0x409
-echo
"deadbeef00000001"
> strings/0x409/serialnumber
+echo
`cat /proc/device-tree/serial-number`
> strings/0x409/serialnumber
echo `uname -r` > strings/0x409/manufacturer
echo `hostname -s` > strings/0x409/product
echo `uname -r` > strings/0x409/manufacturer
echo `hostname -s` > strings/0x409/product