RTL8211F INTB/PMEB pin

Post Reply
Portisch
Posts: 9
Joined: Sun Jul 16, 2017 4:23 am
languages_spoken: english
ODROIDs: C2, N2
Has thanked: 0
Been thanked: 0
Contact:

RTL8211F INTB/PMEB pin

Unread post by Portisch » Tue Feb 26, 2019 11:47 pm

Hi,

is there a eletrical connection of the RTL8211F INTB/PMEB (pin 31) to the S922X?
If yes, what GPIO is it connected to?

N2 PCB: REV 0.3 20190117

thx
Portisch

User avatar
tobetter
Posts: 3664
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 26 times
Been thanked: 114 times
Contact:

Re: RTL8211F INTB/PMEB pin

Unread post by tobetter » Tue Feb 26, 2019 11:52 pm

Portisch wrote:
Tue Feb 26, 2019 11:47 pm
Hi,

is there a eletrical connection of the RTL8211F INTB/PMEB (pin 31) to the S922X?
If yes, what GPIO is it connected to?

N2 PCB: REV 0.3 20190117

thx
Portisch
I do remember it is if my memory is correct, I do not remember which GPIO pin is connected since I do not have the schematic right now. I would be able to confirm tomorrow. What I do also understand is that the current driver does not use the interrupt.

Portisch
Posts: 9
Joined: Sun Jul 16, 2017 4:23 am
languages_spoken: english
ODROIDs: C2, N2
Has thanked: 0
Been thanked: 0
Contact:

Re: RTL8211F INTB/PMEB pin

Unread post by Portisch » Wed Feb 27, 2019 12:03 am

Right, it is needed as WOL interrupt "workaround". Will wait for an answer!

User avatar
tobetter
Posts: 3664
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 26 times
Been thanked: 114 times
Contact:

Re: RTL8211F INTB/PMEB pin

Unread post by tobetter » Wed Feb 27, 2019 12:37 am

Portisch wrote:
Wed Feb 27, 2019 12:03 am
Right, it is needed as WOL interrupt "workaround". Will wait for an answer!
Ah...I see...let me confirm you tomorrow KST. I've seen the code regarding WOL from AMLogic BSP but not have been tested yet since it's not that high priority, planned to do investigate in mid of March.

User avatar
tobetter
Posts: 3664
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 26 times
Been thanked: 114 times
Contact:

Re: RTL8211F INTB/PMEB pin

Unread post by tobetter » Wed Feb 27, 2019 10:39 am

@Portisch, GPIOZ_14 for INTR (#31) and GPIOZ_15 for NRST (#12)

Portisch
Posts: 9
Joined: Sun Jul 16, 2017 4:23 am
languages_spoken: english
ODROIDs: C2, N2
Has thanked: 0
Been thanked: 0
Contact:

Re: RTL8211F INTB/PMEB pin

Unread post by Portisch » Wed Feb 27, 2019 6:02 pm

thx!

Portisch
Posts: 9
Joined: Sun Jul 16, 2017 4:23 am
languages_spoken: english
ODROIDs: C2, N2
Has thanked: 0
Been thanked: 0
Contact:

Re: RTL8211F INTB/PMEB pin

Unread post by Portisch » Mon Mar 11, 2019 11:08 pm

The implementation for Wake On Lan is finished for the N2.

The kernel does need a small bug fix:
https://github.com/CoreELEC/linux-amlog ... bbd0932805
Otherwise the WOL will work only once. It looks like a general linux kernel bug.

u-boot:
https://github.com/CoreELEC/u-boot/comm ... 9792197524
This will enable GPIOZ_14 to check for a falling edge on RTL8211F mac address match irq.

User avatar
tobetter
Posts: 3664
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 26 times
Been thanked: 114 times
Contact:

Re: RTL8211F INTB/PMEB pin

Unread post by tobetter » Tue Mar 12, 2019 1:19 am

Portisch wrote:
Mon Mar 11, 2019 11:08 pm
The implementation for Wake On Lan is finished for the N2.

The kernel does need a small bug fix:
https://github.com/CoreELEC/linux-amlog ... bbd0932805
Otherwise the WOL will work only once. It looks like a general linux kernel bug.

u-boot:
https://github.com/CoreELEC/u-boot/comm ... 9792197524
This will enable GPIOZ_14 to check for a falling edge on RTL8211F mac address match irq.
Thank you for the patches, I've copied your changes and uploaded to the internal repository.
We will do the test and publish the patches.
Thank you again.

User avatar
tobetter
Posts: 3664
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 26 times
Been thanked: 114 times
Contact:

Re: RTL8211F INTB/PMEB pin

Unread post by tobetter » Wed Mar 13, 2019 9:14 am

@Portish, I am wondering if your two patches are working for WOL. No luck for me and even external wake up through GPIOZ_14 does not work regardless RTL8211F.

Portisch
Posts: 9
Joined: Sun Jul 16, 2017 4:23 am
languages_spoken: english
ODROIDs: C2, N2
Has thanked: 0
Been thanked: 0
Contact:

Re: RTL8211F INTB/PMEB pin

Unread post by Portisch » Wed Mar 13, 2019 3:11 pm

Oh, sorry! :oops:

I forgot:

enable WOL:

Code: Select all

mount -o rw,remount /flash && fdtput -t i /flash/dtb.img /ethernet@ff3f0000 wol 1 && sync && reboot
disable WOL:

Code: Select all

mount -o rw,remount /flash && fdtput -t i /flash/dtb.img /ethernet@ff3f0000 wol 0 && sync && reboot
read WOL status:

Code: Select all

fdtget /flash/dtb.img /ethernet@ff3f0000 wol
https://github.com/CoreELEC/linux-amlog ... #L369-L374

This is working @CoreELEC!

User avatar
tobetter
Posts: 3664
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 26 times
Been thanked: 114 times
Contact:

Re: RTL8211F INTB/PMEB pin

Unread post by tobetter » Wed Mar 13, 2019 3:28 pm

Portisch wrote:
Wed Mar 13, 2019 3:11 pm
Oh, sorry! :oops:

I forgot:

enable WOL:

Code: Select all

mount -o rw,remount /flash && fdtput -t i /flash/dtb.img /ethernet@ff3f0000 wol 1 && sync && reboot
disable WOL:

Code: Select all

mount -o rw,remount /flash && fdtput -t i /flash/dtb.img /ethernet@ff3f0000 wol 0 && sync && reboot
read WOL status:

Code: Select all

fdtget /flash/dtb.img /ethernet@ff3f0000 wol
https://github.com/CoreELEC/linux-amlog ... #L369-L374

This is working @CoreELEC!
Yeah, I found it already...but still not working for some reason...look into the reason... :)

Portisch
Posts: 9
Joined: Sun Jul 16, 2017 4:23 am
languages_spoken: english
ODROIDs: C2, N2
Has thanked: 0
Been thanked: 0
Contact:

Re: RTL8211F INTB/PMEB pin

Unread post by Portisch » Wed Mar 13, 2019 3:43 pm

I implemented for debug a print for the mac address at this place:
https://github.com/CoreELEC/linux-amlog ... #L144-L152

With the mac address printed WOL was working. But the router conencted shows the same mac address.

Code: Select all

CONFIG_AMLOGIC_ETH_PRIVE
is set in your linux config?

User avatar
tobetter
Posts: 3664
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 26 times
Been thanked: 114 times
Contact:

Re: RTL8211F INTB/PMEB pin

Unread post by tobetter » Wed Mar 13, 2019 4:08 pm

Portisch wrote:
Wed Mar 13, 2019 3:43 pm
I implemented for debug a print for the mac address at this place:
https://github.com/CoreELEC/linux-amlog ... #L144-L152

With the mac address printed WOL was working. But the router conencted shows the same mac address.

Code: Select all

CONFIG_AMLOGIC_ETH_PRIVE
is set in your linux config?
Absolutely it is...and the problem was my dev board, somehow the GPIO didn't work for me. :oops:
Now your patches are working perfectly and check it make about 60mA@DC12V consumes more...

Portisch
Posts: 9
Joined: Sun Jul 16, 2017 4:23 am
languages_spoken: english
ODROIDs: C2, N2
Has thanked: 0
Been thanked: 0
Contact:

Re: RTL8211F INTB/PMEB pin

Unread post by Portisch » Wed Mar 13, 2019 4:26 pm

Good!
The more power consumption is because of not turning off the 3.3V circuits.
Otherwise the RTL8211F will be offline and WOL will not work ;)

User avatar
tobetter
Posts: 3664
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 26 times
Been thanked: 114 times
Contact:

Re: RTL8211F INTB/PMEB pin

Unread post by tobetter » Thu Mar 14, 2019 4:59 pm

Portisch wrote:
Wed Mar 13, 2019 4:26 pm
Good!
The more power consumption is because of not turning off the 3.3V circuits.
Otherwise the RTL8211F will be offline and WOL will not work ;)
Since 60-70mA is a lot for some people, I've modified to turn off the circuit only if WOL is featured. The patches will come into HK's branch sometime soon.
My measurement when ODROID-N2 is shut down, lower than 20mA@12V when WOL is off and about 80-90mA@12V is on.

Portisch
Posts: 9
Joined: Sun Jul 16, 2017 4:23 am
languages_spoken: english
ODROIDs: C2, N2
Has thanked: 0
Been thanked: 0
Contact:

Re: RTL8211F INTB/PMEB pin

Unread post by Portisch » Thu Mar 14, 2019 5:09 pm

+1

If you are turning off the power does the CEC communication remain working?
Otherwise you are also not allowed to power off the 3.3V because wakeup by CEC won't work.
I do not have connected the N2 to a CEC device yet so I do not have any test results.

User avatar
tobetter
Posts: 3664
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 26 times
Been thanked: 114 times
Contact:

Re: RTL8211F INTB/PMEB pin

Unread post by tobetter » Thu Mar 14, 2019 5:29 pm

Portisch wrote:
Thu Mar 14, 2019 5:09 pm
+1

If you are turning off the power does the CEC communication remain working?
Otherwise you are also not allowed to power off the 3.3V because wakeup by CEC won't work.
I do not have connected the N2 to a CEC device yet so I do not have any test results.
Seems not, since CEC is not AO domain. Anyway, I guess we can do the same as WOL and will start to look into ASAP.

Post Reply

Return to “Hardware and peripherals”

Who is online

Users browsing this forum: No registered users and 1 guest