Re: [coreboot] ENE KB3940Q-A1 embedded controller custom firmware

2018-03-06 Thread Youness Alaoui
An update on the use of Index I/O to access the SPI flash from software. I figured out the problem with coreboot. We weren't setting the LPC I/O decode range 0x380-0x383 in the LPC PCI config (gen1_dec config in devicetree) which would allow us to talk to the EC using Index I/O on port 0x380. Once

Re: [coreboot] ENE KB3940Q-A1 embedded controller custom firmware

2018-03-05 Thread Youness Alaoui
Thanks for the advice Mike, but I think you misunderstood the issue. I wasn't talking about the internal memory of the EC, but rather about accessing the EC firmware in SPI flash via an external SPI flasher. The problem is that the SPI flash power rail is the same as the EC chip, so as soon as we

Re: [coreboot] ENE KB3940Q-A1 embedded controller custom firmware

2018-03-05 Thread Mike Banon
> otherwise, the EC prevents us from accessing it Maybe KB3940Q has the same protection as KB9012 : unless the EC's ground pin has been shortened with motherboard's ground _before_ you have powered a motherboard, you would not have any access; otherwise, EC will go into debug mode and you'll have

Re: [coreboot] ENE KB3940Q-A1 embedded controller custom firmware

2018-03-05 Thread Youness Alaoui
On Sun, Mar 4, 2018 at 4:50 AM, Paul Kocialkowski wrote: > Hi, > > Le vendredi 16 février 2018 à 14:09 -0500, Youness Alaoui a écrit : >> > > Sure, you can trust hardware flashing more than software flashing, >> > > but >> > > I really need software flashing. If it was just for

Re: [coreboot] ENE KB3940Q-A1 embedded controller custom firmware

2018-03-04 Thread Paul Kocialkowski
Hi, Le vendredi 16 février 2018 à 14:09 -0500, Youness Alaoui a écrit : > > > Sure, you can trust hardware flashing more than software flashing, > > > but > > > I really need software flashing. If it was just for me, yeah, I > > > could > > > fiddle with it to flash it by hardware for my personal

Re: [coreboot] ENE KB3940Q-A1 embedded controller custom firmware

2018-02-16 Thread Youness Alaoui
>> Sure, you can trust hardware flashing more than software flashing, >> but >> I really need software flashing. If it was just for me, yeah, I could >> fiddle with it to flash it by hardware for my personal needs, but >> when >> it's about deploying it to all our customer base, that's another >>

Re: [coreboot] ENE KB3940Q-A1 embedded controller custom firmware

2018-02-13 Thread Paul Kocialkowski
Hi, Le vendredi 09 février 2018 à 14:33 -0500, Youness Alaoui a écrit : > On Tue, Feb 6, 2018 at 4:41 AM, Mike Banon > wrote: > > Thank you very much for telling about EC-1.75 project! > > http://dev.laptop.org/git/users/rsmith/ec-1.75/tree/?h=3930-A1 > > Maybe some of its'

Re: [coreboot] ENE KB3940Q-A1 embedded controller custom firmware

2018-02-09 Thread Youness Alaoui
On Tue, Feb 6, 2018 at 4:41 AM, Mike Banon wrote: > Thank you very much for telling about EC-1.75 project! > http://dev.laptop.org/git/users/rsmith/ec-1.75/tree/?h=3930-A1 > Maybe some of its' elements could be borrowed for Origami > if the hardware is similar? (haven't

Re: [coreboot] ENE KB3940Q-A1 embedded controller custom firmware

2018-02-06 Thread Mike Banon
Thank you very much for telling about EC-1.75 project! http://dev.laptop.org/git/users/rsmith/ec-1.75/tree/?h=3930-A1 Maybe some of its' elements could be borrowed for Origami if the hardware is similar? (haven't compared the datasheets) @ Youness and Marty : Proprietary firmware of KB9012

Re: [coreboot] ENE KB3940Q-A1 embedded controller custom firmware

2018-02-05 Thread Youness Alaoui
Hi Marty, Unfortunately, the EC firmware on the Librems is not open and we have someone working on that aspect, but with everything we have to handle, I think it's only being done part time. We found something similar to you with the private submodule for the PS/2 module on the OLPC code. More

[coreboot] ENE KB3940Q-A1 embedded controller custom firmware

2018-02-02 Thread Marty E. Plummer
Greetings, Currently working on a port for the hp g7-2247us laptop, which features an ene kb3940q ec, which hopefully should be very similar to the kb3930 ec, which has a datasheet available to the public in a few places. Said similar ec is used in some OLPC devices, as well as some purism