Re: Booting Salvator-X ES1 board with upstream kernel

2018-05-15 Thread Geert Uytterhoeven
Hi Gilad,

On Tue, May 15, 2018 at 2:36 PM, Gilad Ben-Yossef  wrote:
> On Mon, May 14, 2018 at 5:29 PM, Geert Uytterhoeven
>  wrote:
>> On Thu, May 10, 2018 at 10:12 AM, Gilad Ben-Yossef  
>> wrote:
>>> I have an R-Car 3rd gen Salvator-X ES1 board. I've been able to boot
>>> Linux 4.9 on it from the rareness-bsp tree, using the defconfig and
>>> the r8a7795-es1-salvator-x DTB with no problems, so the HW is fine.
>>>
>>> However, I can't seem to boot an upstream kernel (Linus master or
>>> soc-for-v4.17 branch) on it. I just get total silence on the UART
>>> after u-boot.
>>>
>>> Any tips or ideas for me to try?
>>
>> Please try appending the following to the kernel command line:
>>
>> earlycon keep_bootcon
>>
>> FWIW, I'm using:
>>
>> tftpboot 0x4808 h3-salvator-x/Image
>> tftpboot 0x49f0 h3-salvator-x/r8a7795-es1-salvator-x.dtb
>> booti 0x4808 - 0x49f0
>>
>> Which firmware revision do you have? It may be too old to boot moden
>> (large) kernel images. Check the first line of BL2 output.
>>
>> Which config are you using? Please try renesas_defconfig from Simon's
>> repository.
>
> That was it. I was building with defoncfig and getting a kernel that won't be.
> Simon's config did the trick.

Good to hear you succeeded!

FWIW, mine boots v4.17-rc5 fine, using arm64 defconfig.

My firmware is:
BL2: R-Car Gen3 Initial Program Loader(CA57) Rev.1.0.12

Gr{oetje,eeting}s,

Geert

-- 
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- ge...@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds


Re: Booting Salvator-X ES1 board with upstream kernel

2018-05-15 Thread Gilad Ben-Yossef
On Mon, May 14, 2018 at 5:29 PM, Geert Uytterhoeven
 wrote:
> Hi Gilad,
>
> On Thu, May 10, 2018 at 10:12 AM, Gilad Ben-Yossef  
> wrote:
>> I am trying to add support for the CryptoCell security IP in the
>> R-Rcar boards to mainline but I've run into some trouble.
>
> Ah, we have found a user ;-)

Yes. I would be very happy if all our customer would be as cooperative
as Renesas.
That would make my life and the life of the users easier :-)

I've also have the HiKey960 on my todo list.

>
>> I have an R-Car 3rd gen Salvator-X ES1 board. I've been able to boot
>> Linux 4.9 on it from the rareness-bsp tree, using the defconfig and
>> the r8a7795-es1-salvator-x DTB with no problems, so the HW is fine.
>>
>> However, I can't seem to boot an upstream kernel (Linus master or
>> soc-for-v4.17 branch) on it. I just get total silence on the UART
>> after u-boot.
>>
>> Any tips or ideas for me to try?
>
> Please try appending the following to the kernel command line:
>
> earlycon keep_bootcon
>
> FWIW, I'm using:
>
> tftpboot 0x4808 h3-salvator-x/Image
> tftpboot 0x49f0 h3-salvator-x/r8a7795-es1-salvator-x.dtb
> booti 0x4808 - 0x49f0
>
> Which firmware revision do you have? It may be too old to boot moden
> (large) kernel images. Check the first line of BL2 output.
>
> Which config are you using? Please try renesas_defconfig from Simon's
> repository.

That was it. I was building with defoncfig and getting a kernel that won't be.
Simon's config did the trick.

Many thanks!

Gilad

-- 
Gilad Ben-Yossef
Chief Coffee Drinker

"If you take a class in large-scale robotics, can you end up in a
situation where the homework eats your dog?"
 -- Jean-Baptiste Queru


Re: Booting Salvator-X ES1 board with upstream kernel

2018-05-14 Thread Geert Uytterhoeven
Hi Gilad,

On Thu, May 10, 2018 at 10:12 AM, Gilad Ben-Yossef  wrote:
> I am trying to add support for the CryptoCell security IP in the
> R-Rcar boards to mainline but I've run into some trouble.

Ah, we have found a user ;-)

> I have an R-Car 3rd gen Salvator-X ES1 board. I've been able to boot
> Linux 4.9 on it from the rareness-bsp tree, using the defconfig and
> the r8a7795-es1-salvator-x DTB with no problems, so the HW is fine.
>
> However, I can't seem to boot an upstream kernel (Linus master or
> soc-for-v4.17 branch) on it. I just get total silence on the UART
> after u-boot.
>
> Any tips or ideas for me to try?

Please try appending the following to the kernel command line:

earlycon keep_bootcon

FWIW, I'm using:

tftpboot 0x4808 h3-salvator-x/Image
tftpboot 0x49f0 h3-salvator-x/r8a7795-es1-salvator-x.dtb
booti 0x4808 - 0x49f0

Which firmware revision do you have? It may be too old to boot moden
(large) kernel images. Check the first line of BL2 output.

Which config are you using? Please try renesas_defconfig from Simon's
repository.

Good luck!

Gr{oetje,eeting}s,

Geert

-- 
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- ge...@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds


Re: Booting Salvator-X ES1 board with upstream kernel

2018-05-10 Thread Gilad Ben-Yossef
On Thu, May 10, 2018 at 11:19 AM, Magnus Damm  wrote:
> Hi Gilad,
>
> Thanks for your email.
>
> On Thu, May 10, 2018 at 5:12 PM, Gilad Ben-Yossef  wrote:
>> Hi there,
>>
>> I am trying to add support for the CryptoCell security IP in the
>> R-Rcar boards to mainline but I've run into some trouble.
>>
>> I have an R-Car 3rd gen Salvator-X ES1 board. I've been able to boot
>> Linux 4.9 on it from the rareness-bsp tree, using the defconfig and
>> the r8a7795-es1-salvator-x DTB with no problems, so the HW is fine.
>>
>> However, I can't seem to boot an upstream kernel (Linus master or
>> soc-for-v4.17 branch) on it. I just get total silence on the UART
>> after u-boot.
>>
>> Any tips or ideas for me to try?
>
> Just to clarify, are you using r8a7795 R-Car H3 SoC ES1.0, or some other SoC?
>
> Salvator-X comes in different configurations.

To the best of my knowledge I am indeed using the r8a7795 R-Car H3 SoC ES1.0

Thanks,
Gilad



-- 
Gilad Ben-Yossef
Chief Coffee Drinker

"If you take a class in large-scale robotics, can you end up in a
situation where the homework eats your dog?"
 -- Jean-Baptiste Queru


Re: Booting Salvator-X ES1 board with upstream kernel

2018-05-10 Thread Magnus Damm
Hi Gilad,

Thanks for your email.

On Thu, May 10, 2018 at 5:12 PM, Gilad Ben-Yossef  wrote:
> Hi there,
>
> I am trying to add support for the CryptoCell security IP in the
> R-Rcar boards to mainline but I've run into some trouble.
>
> I have an R-Car 3rd gen Salvator-X ES1 board. I've been able to boot
> Linux 4.9 on it from the rareness-bsp tree, using the defconfig and
> the r8a7795-es1-salvator-x DTB with no problems, so the HW is fine.
>
> However, I can't seem to boot an upstream kernel (Linus master or
> soc-for-v4.17 branch) on it. I just get total silence on the UART
> after u-boot.
>
> Any tips or ideas for me to try?

Just to clarify, are you using r8a7795 R-Car H3 SoC ES1.0, or some other SoC?

Salvator-X comes in different configurations.

Thanks,

/ magnus


Booting Salvator-X ES1 board with upstream kernel

2018-05-10 Thread Gilad Ben-Yossef
Hi there,

I am trying to add support for the CryptoCell security IP in the
R-Rcar boards to mainline but I've run into some trouble.

I have an R-Car 3rd gen Salvator-X ES1 board. I've been able to boot
Linux 4.9 on it from the rareness-bsp tree, using the defconfig and
the r8a7795-es1-salvator-x DTB with no problems, so the HW is fine.

However, I can't seem to boot an upstream kernel (Linus master or
soc-for-v4.17 branch) on it. I just get total silence on the UART
after u-boot.

Any tips or ideas for me to try?

Many thanks,
Gilad

-- 
Gilad Ben-Yossef
Chief Coffee Drinker

"If you take a class in large-scale robotics, can you end up in a
situation where the homework eats your dog?"
 -- Jean-Baptiste Queru