$ ioctl -h
ioctl -h
ioctl [-l <length>] [-a <argsize>] [-rdh] <device> <ioctlnr>
-l <lenght> Length of io buffer
-a <argsize> Size of each argument (1-8)
-r Open device in read only mode
-d Direct argument (no iobuffer)
-h Print help
I tried on Tiny6410. Using ioctl one can turn on and off the leds
To turn on led3
# ioctl -d /dev/leds 1 3
sending ioctl 0x1 0x03 0x00 0x00 0x00
return buf: 03 00 00 00
To tun off led3
# ioctl -d /dev/leds 0 3
sending ioctl 0x0 0x03 0x00 0x00 0x00
return buf: 03 00 00 00
Hope this helps.
'개발 개발 > Android' 카테고리의 다른 글
git diff 보다 편리하게 git change 보기 (0) | 2013.05.24 |
---|---|
fb2png fb를 png로 (0) | 2013.05.06 |
안드로이드 로그뷰어(LogViewer for android) (0) | 2013.03.09 |
recovery 디버그 메세지를 커널 메세지로 보고 싶을때 (0) | 2013.01.16 |
Android New Gingerbread API: StrictMod (3) | 2012.09.19 |