RT3662 NAND support

2021-03-18 Thread Andreas Böhler

Hi,

I'm trying to add support for an older ZWave bridge, the MiCasaVerde 
Vera Lite (similar or equal to SERCOMM NA300). It's based on RT3662, 
64MB RAM and 32MB NAND flash - and this is where I'm currently stuck. 
The rt3883.dtsi does not define a NAND controller and I'm unsure whether 
there actually is a suitable driver.


How can I best find/add a NAND driver for RT3662, or is it not worth the 
effort?


Thanks


___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: RT3662 NAND support

2021-03-18 Thread Daniel Golle
Hi Andreas,

On Thu, Mar 18, 2021 at 10:42:35PM +0100, Andreas Böhler wrote:
> Hi,
> 
> I'm trying to add support for an older ZWave bridge, the MiCasaVerde Vera
> Lite (similar or equal to SERCOMM NA300). It's based on RT3662, 64MB RAM and
> 32MB NAND flash - and this is where I'm currently stuck. The rt3883.dtsi
> does not define a NAND controller and I'm unsure whether there actually is a
> suitable driver.
> 
> How can I best find/add a NAND driver for RT3662, or is it not worth the
> effort?

Good question, especially without the datasheet or any piece of code to
look at. If you are up for a lot of hard work, a starting point could
be here:

https://github.com/openwrt/openwrt/pull/597

MT7620 was the successor of those SoCs, I would guess the NAND
controller is probably very similar to this one. MT7621 is a more
different design of NAND controller which came after, and as you can
see in the PR, the "old" MT7620 NAND was never cleaned up nor merged
into OpenWrt. For you it could still be worth the shot, if you find the
full datasheet of RT3662 somewhere you can compare with MT7620 (which
is easy to find).


Cheers


Daniel


> 
> Thanks
> 
> 
> ___
> openwrt-devel mailing list
> openwrt-devel@lists.openwrt.org
> https://lists.openwrt.org/mailman/listinfo/openwrt-devel

___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: RT3662 NAND support

2021-03-19 Thread Andreas Böhler

Hi Daniel,

On 19/03/2021 01:52, Daniel Golle wrote:

Hi Andreas,

On Thu, Mar 18, 2021 at 10:42:35PM +0100, Andreas Böhler wrote:

How can I best find/add a NAND driver for RT3662, or is it not worth the
effort?

Good question, especially without the datasheet or any piece of code to
look at. If you are up for a lot of hard work, a starting point could
be here:

https://github.com/openwrt/openwrt/pull/597

MT7620 was the successor of those SoCs, I would guess the NAND
controller is probably very similar to this one. MT7621 is a more
different design of NAND controller which came after, and as you can
see in the PR, the "old" MT7620 NAND was never cleaned up nor merged
into OpenWrt. For you it could still be worth the shot, if you find the
full datasheet of RT3662 somewhere you can compare with MT7620 (which
is easy to find).


Unfortunately, you just confirmed my suspicion that there is no easy way 
to have NAND support. My impression is that there is very little 
interest in these older Vera devices, so I'll go for initramfs + extroot 
for now (fortunately, there is a USB port).


Regards,
Andreas


___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: RT3662 NAND support

2021-03-19 Thread Mika Laitio
I'm trying to add support for an older ZWave bridge, the MiCasaVerde Vera 
Lite (similar or equal to SERCOMM NA300). It's based on RT3662, 64MB RAM and 
32MB NAND flash - and this is where I'm currently stuck. The rt3883.dtsi does 
not define a NAND controller and I'm unsure whether there actually is a 
suitable driver.


Hi little of topic but are there some z-wave bridges that are already supported 
by the openwrt? And if you boot openwrt to vera lite via USB, are you able 
to see/use the z-wave controller from that device?


Mika

___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: RT3662 NAND support

2021-03-19 Thread Andreas Böhler

Hey Mika,

On 19/03/2021 11:12, Mika Laitio wrote:
I'm trying to add support for an older ZWave bridge, the MiCasaVerde 
Vera Lite (similar or equal to SERCOMM NA300). It's based on RT3662, 
64MB RAM and 32MB NAND flash - and this is where I'm currently stuck. 
The rt3883.dtsi does not define a NAND controller and I'm unsure 
whether there actually is a suitable driver.


Hi little of topic but are there some z-wave bridges that are already 
supported by the openwrt? And if you boot openwrt to vera lite via 
USB, are you able to see/use the z-wave controller from that device?


I can give you a partial answer: I'm also working on the SERCOMM NA502 
and NA502s that are also sold as Vera Secure, Smart Home by Hornbach, A1 
Smart Home Gateway and a few other brands (I have the A1 branded 
version). Basically, I've got ZWave running, you can track the status 
here: https://forum.openwrt.org/t/adding-support-for-sercomms-na502/22495


Regarding the Vera Lite, I'm still investigating the possibilities and 
have not yet booted any custom firmware. I don't see a reason why the 
ZWave controller shouldn't be visible (it's attached to a UART). 
However, I found only limited information in whether this particular 
controller is supported by OpenZWave or Z-Wave JS.


My ultimate goal with both SERCOMM devices is getting ZWaveJS2MQTT 
running so that a home automation software can talk to the gateway.


Andreas


___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: RT3662 NAND support

2021-03-19 Thread Torbjörn Jansson

On 2021-03-19 12:06, Andreas Böhler wrote:

Hey Mika,

On 19/03/2021 11:12, Mika Laitio wrote:
I'm trying to add support for an older ZWave bridge, the MiCasaVerde Vera 
Lite (similar or equal to SERCOMM NA300). It's based on RT3662, 64MB RAM and 
32MB NAND flash - and this is where I'm currently stuck. The rt3883.dtsi 
does not define a NAND controller and I'm unsure whether there actually is a 
suitable driver.


Hi little of topic but are there some z-wave bridges that are already 
supported by the openwrt? And if you boot openwrt to vera lite via USB, are 
you able to see/use the z-wave controller from that device?


I can give you a partial answer: I'm also working on the SERCOMM NA502 and 
NA502s that are also sold as Vera Secure, Smart Home by Hornbach, A1 Smart Home 
Gateway and a few other brands (I have the A1 branded version). Basically, I've 
got ZWave running, you can track the status here: 
https://forum.openwrt.org/t/adding-support-for-sercomms-na502/22495


Regarding the Vera Lite, I'm still investigating the possibilities and have not 
yet booted any custom firmware. I don't see a reason why the ZWave controller 
shouldn't be visible (it's attached to a UART). However, I found only limited 
information in whether this particular controller is supported by OpenZWave or 
Z-Wave JS.


My ultimate goal with both SERCOMM devices is getting ZWaveJS2MQTT running so 
that a home automation software can talk to the gateway.




Or you can also just buy an usb based aoetech z-stick or similar and use that 
instead, for example on a pi.
It is already working well with zwavejs2mqtt plus home assistant and doesn't 
need any hw/sw hacking to get it working so probably less effort but of course 
costs a little compared to something you might already have.


___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel