Wrong GPIO

Started by xichlo, February 11, 2015, 06:29:05 PM

Previous topic - Next topic

xichlo

Hello,

I have A20-OLinuXino-MICRO board. I downloaded the latest debian image (A20_OLinuxino_Micro_debian_34_90_release_10) and made a bootable SD card. When I tried

echo 47 > /sys/class/gpio/export

I got this result

Ggpio47_pb17

I suppose that it shoudd be ph02 not pb17. Can anyone help me? In addition the script.bin and uImage does not located in folder /boot .This folder is empty. Any hints how to proceed?

JohnS

I think you'll find script.bin etc are on a separate partition - which you likely haven't mounted.

John

xichlo

#2
Ok, I found that the script.bin locaces in /mnt folder. I did the bin2fex conversion and everything was as supposed. The pin_47 is really pb17.

pin_33 = port:PH26<0><default><default><default>
pin_34 = port:PH27<0><default><default><default>
pin_35 = port:PB03<0><default><default><default>
pin_36 = port:PB04<0><default><default><default>
pin_37 = port:PB05<0><default><default><default>
pin_38 = port:PB06<0><default><default><default>
pin_39 = port:PB07<0><default><default><default>
pin_40 = port:PB10<0><default><default><default>
pin_41 = port:PB11<0><default><default><default>
pin_42 = port:PB12<0><default><default><default>
pin_43 = port:PB13<0><default><default><default>
pin_44 = port:PB14<0><default><default><default>
pin_45 = port:PB15<0><default><default><default>
pin_46 = port:PB16<0><default><default><default>
pin_47 = port:PB17<0><default><default><default>
pin_48 = port:PI00<0><default><default><default>
pin_49 = port:PI01<0><default><default><default>
pin_50 = port:PI02<0><default><default><default>
pin_51 = port:PI03<0><default><default><default>
pin_52 = port:PI04<0><default><default><default>
pin_53 = port:PI05<0><default><default><default>
pin_54 = port:PI06<0><default><default><default>
pin_55 = port:PI07<0><default><default><default>
pin_56 = port:PI08<0><default><default><default>
pin_57 = port:PI09<0><default><default><default>
pin_58 = port:PI10<0><default><default><default>
pin_59 = port:PI11<0><default><default><default>
pin_60 = port:PI14<0><default><default><default>
pin_61 = port:PI15<0><default><default><default>