Author Topic: sunxi_gpio_probe can't find script.bin  (Read 3909 times)


  • Guest
sunxi_gpio_probe can't find script.bin
« on: June 30, 2013, 01:04:21 pm »
Hello everyone!
 The sunxi_gpio_probe can't find script.bin :(

 I changed the kernel then can not make the module sunxi_gpio find the script.bin file to create the classes. I see that it is loaded early in the boot but something happens and does not work.

 I saw:

 reading script.bin
 43744 bytes read

 root@cubie:/boot/linux# more /etc/fstab
/dev/nanda      /boot/          auto    noatime                 0       0
/dev/nandb      /               auto    noatime                 0       0

root@cubie:/boot/linux# more /boot/linux/env.txt
boot_normal=fatload nand 0 0x43000000 script.bin; fatload nand 0 0x48000000 linu
x/uImage; bootm 0x48000000
bootargs=rootwait console=ttyS0,115200 root=/dev/nandb loglevel=8 panic=10 rootf
stype=ext4 raid=noautodetect sunxi_g2d_mem_reserve=0 sunxi_ve_mem_reserve=0 sunx
setargs=setenv bootargs rootwait console=ttyS0,115200 root=/dev/nandb loglevel=8
 panic=10 rootfstype=ext4 raid=noautodetect sunxi_g2d_mem_reserve=0 sunxi_ve_mem
_reserve=0 sunxi_no_mali_mem_reserve;fatload nand 0 0x43000000 script.bin; fatlo
ad nand 0 0x48000000 linux/uImage; bootm 0x48000000

[....] Loading kernel modules...<6>sunxi_gpio driver init ver 1.3
[    6.080000] sunxi_gpio driver init ver 1.3
<6>sunxi_gpio_probe can't find script.bin '[gpio_para]' 'gpio_used'
[    6.090000] : '[gpio_para]' 'gpio_used'
<4>gpio-sunxi: probe of gpio-sunxi failed with error -4
[    6.100000] gpio-sunxi: probe of gpio-sunxi failed with error -4

 Please, anyone have any clue what to do? I put log tacched.

 Best Regards,

Offline patwood

  • Linux geek
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1660
  • Karma: +129/-0
    • View Profile
Re: sunxi_gpio_probe can't find script.bin
« Reply #1 on: June 30, 2013, 09:58:29 pm »
The message isn't that it can't find your script.bin (that's loaded by uboot before the kernel starts); it's saying it can't find the proper gpio section in it.

If you're using the gpio-sunxi drivers, make sure you have a gpio_para section in your script.bin:

Code: [Select]
gpio_used = 1
gpio_num = 2
gpio_pin_1 = port:PH14<0><default><default><default>
gpio_pin_2 = port:PH15<0><default><default><default>

If you're using the sun4i-gpio drivers, I can't help you.


  • Guest
Re: sunxi_gpio_probe can't find script.bin
« Reply #2 on: July 01, 2013, 07:57:18 am »

  I have these entries, if the system load the old kernel they work (but I get no wifi: (sniff.

  There are other more efficient ways to manipulate GPIOs?

  Thanks for your help,
 Best Regards