How can i add or change "SUN4I_GPIO_UGLY = y"

Started by ozbekmert, November 24, 2012, 05:04:13 PM

Previous topic - Next topic

ozbekmert

Couple of weeks ago i ordered OlinuxIno-Wifi board in order to finish our final project in Bilkent university. Our problem is to reach GPIO of this board. We are not experienced with linux however after we read following post i noticed that i can reach our board gpios.

http://olimex.wordpress.com/2012/10/12/building-bootable-sd-card-with-debian-linux-image-for-a13-olinuxino/

i can view .config file by typing vi config.

My question is begin here , how can i add "SUN4I_GPIO_UGLY = y" because there is not such a state written in there.

Thank you.

meerd

Are you sure that you executed "make ARCH=arm a13_defconfig" command line before modifying .config file?
Also after executing "make ARCH=arm menuconfig", you can configure GPIO_UGLY under Device Drivers -> Misc Devices menus instead of modifying .config file.

mert

Thank you sir, we can successfully changed SUN4I_GPIO_UGLY = y. But here comes another problem and we dont we what causes this?

root@ubuntu:~/linux-sunxi# make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi-uImage
make: arm-linux-gnueabi-uImagegcc: Komut bulunamadı //(Command not found)
scripts/kconfig/conf --silentoldconfig Kconfig
make: arm-linux-gnueabi-uImagegcc: Komut bulunamadı //(Command not found)
  CHK     include/linux/version.h
  UPD     include/linux/version.h
  CHK     include/generated/utsrelease.h
  UPD     include/generated/utsrelease.h
  Generating include/generated/mach-types.h
  CC      kernel/bounds.s
/bin/sh: 1: arm-linux-gnueabi-uImagegcc: not found
make[1]: *** [kernel/bounds.s] Hata 127  //(Error 127 )
make: *** [prepare0] Hata 2   //(Error 2 )

I hope sir, this time you had an answer, thank you

Fadil Berisha

Quote from: mert on November 24, 2012, 08:39:19 PM

root@ubuntu:~/linux-sunxi# make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi-uImage

You wrote: make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi-uImage
should be: make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- uImage


meerd

Hi Mert,

Please revise the command line shown below:

make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- uImage

Note that, there is white-space between arm-linux-gnueabi- and uImage.

Regards

PS: If you would like to compile the kernel faster, you can add -j5 (-jN => N = CPU core count * 2 + 1 :) ) parameter adding one white-space after uImage. ;)