2008-10-17 08:37:06     BF537 port g unavailable

Document created by Aaronwu Employee on Aug 8, 2013
Version 1Show Document
  • View in full screen mode

2008-10-17 08:37:06     BF537 port g unavailable

J V (GERMANY)

Message: 63851   

 

Hello,

i was wondering if anybody could help me...

My problem:

In my application i need to use standard ports pf and pg, but they are not reachable from my compilation of uClinux running on my BF537 board. I dont have any of them listet in /dev/.

In older version (2007R1) of uClinux distribution went everything well, but now i am using uClinux-dist-2008R1.5-RC3 and i cant get this port working. What do i have to setup in menuconfig? I tried: Simple GPIO char interface.

Thanks!

Iam using Bluetechnix TCM-BF537board.

 

 

QuoteReplyEditDelete

 

 

2008-10-17 11:53:50     Re: BF537 port g unavailable

Mike Frysinger (UNITED STATES)

Message: 63855   

 

the pflags driver is not supported and was dropped.  use the simple-gpio driver instead.

QuoteReplyEditDelete

 

 

2008-10-20 08:32:24     Re: BF537 port g unavailable

J V (GERMANY)

Message: 63943   

 

thanks , but enabling the "Simple GPIO char interface" didnt solve the problem.

 

 

I can see the log message "Blackfin GPIO Controllers" but i cannot list any gpio in my

/dev directory. I can see the the directory "/sys/class/simple-gpio" but it is empty.

 

 

I tried to do some configurations as i read in this forum but still it isnt working.

 

Hotplugging - enabled

Create deprecated sysfs files - enabled

 

 

What else do i have to do?

 

Thanks

 

J.V.

QuoteReplyEditDelete

 

 

2008-10-20 09:46:04     Re: BF537 port g unavailable

Mike Frysinger (UNITED STATES)

Message: 63948   

 

then your board probably doesnt have any resources listed like shown in the documentation:

http://docs.blackfin.uclinux.org/doku.php?id=linux-kernel:drivers:simple-gpio

QuoteReplyEditDelete

 

 

2008-10-28 09:24:06     Re: BF537 port g unavailable

Kayoko Hickman (UNITED STATES)

Message: 64277   

 

Hello,

 

I'm glad I'm not the only one has this problem...  I am new to linux, and I have managed to port uImage to my board (Bluetechnix BF537E). I activated

 

<*> Simple GPIO char interface,

 

 

Like JV said there is no gpio driver under "/dev", and "/sys/class/simple-gpio" directory is empty.

 

 

 

Like you said, Mike, there is no resources listed in cm_bf537.c. ( You are talking about

 

static struct resource bfin_gpios_resources = {

    .start = 0,

    .end   = MAX_BLACKFIN_GPIOS - 1,

    .flags = IORESOURCE_IRQ,

};

 

right?)

 

 

 

What am I supposed to do now?  I appreciate it very much if you can give me a direction.

 

Kayoko

 

 

QuoteReplyEditDelete

 

 

2008-10-28 16:54:10     Re: BF537 port g unavailable

Mike Frysinger (UNITED STATES)

Message: 64298   

 

yes, that is what you need

QuoteReplyEditDelete

 

 

2008-10-28 17:27:37     Re: BF537 port g unavailable

Kayoko Hickman (UNITED STATES)

Message: 64302   

 

OK.  So, if I paste resource structure in "cm_bf537.c" and compile, I should see gpioXX under /dev...?  I must be doing something wrong, or missing something.  I still can't see gpio drivers...  I'm not sure if this is going to do anything, but I will attach my config file.

 

kayoko

QuoteReplyEditDelete

 

 

2008-10-28 21:28:29     Re: BF537 port g unavailable

Mike Frysinger (UNITED STATES)

Message: 64304   

 

just adding a struct that no one refers to wont do much ...

 

QuoteReplyEditDelete

 

 

2008-10-29 16:26:14     Re: BF537 port g unavailable

Kayoko Hickman (UNITED STATES)

Message: 64384   

 

I got it!  Thank you.

Attachments

Outcomes