Re: [PATCH v2] imx: imx8mp: Add support for Polyhex Debix Model A SBC

2024-02-13 Thread Milan Zamazal
Hi Gilles,

Gilles Talis  writes:

> Hi Milan,
>
>
> Le mar. 30 janv. 2024 à 15:55, Milan Zamazal  a écrit :
>>
>> Fabio Estevam  writes:
>>
>> > Hi Milan,
>> >
>> > On Tue, Jan 30, 2024 at 9:22 AM Milan Zamazal  wrote:
>> >
>> >> Well, after trying both the SD cards again with fresh reinstallations, it 
>> >> works
>> >> with a 32 GB card and I get the error above with a 64 GB card.  Is it 
>> >> possible
>> >> that there is something wrong with SDXC cards?
>> >
>> > Does the change below help?
>> >
>> > --- a/arch/arm/dts/imx8mp-debix-model-a-u-boot.dtsi
>> > +++ b/arch/arm/dts/imx8mp-debix-model-a-u-boot.dtsi
>> > @@ -128,6 +128,9 @@
>> > bootph-pre-ram;
>> > sd-uhs-sdr104;
>> > sd-uhs-ddr50;
>> > +   assigned-clocks = < IMX8MP_CLK_USDHC2>;
>> > +   assigned-clock-rates = <4>;
>> > +   assigned-clock-parents = < IMX8MP_SYS_PLL1_400M>;
>> >  };
>> >
>> >   {
>>
>> No, the same error. :-(
>>
>> Regards,
>> Milan
>>
> I tried with a  32GB Sandisk high endurance SD and a 64GB Sandisk
> Ultra SDXC UHS-I and both worked.
> Can you tell me which 64GB sd cards you tried booting with? 

Sandisk SDXC Extreme 64 GB UHS-I U3

> And also, which steps you followed to get the errors (which image to download,
> etc...)?

wget
https://download.fedoraproject.org/pub/fedora/linux/releases/39/Server/aarch64/images/Fedora-Server-39-1.5.aarch64.raw.xz
unxz Fedora-Server-39-1.5.aarch64.raw.xz
sudo dd if=Fedora-Server-39-1.5.aarch64.raw of=/dev/mmcblk0 bs=1M
sudo -E gparted /dev/mmcblk0
# move / resize the first partition by 8 MB / to 592 MB
sudo dd if=flash.bin of=/dev/mmcblk0 bs=1k seek=32 conv=fsync
sync

When I do the same with some older Kingston 32 GB, it boots fine.

Regards,
Milan



Re: [PATCH v2] imx: imx8mp: Add support for Polyhex Debix Model A SBC

2024-02-12 Thread Gilles Talis
Hi Milan,


Le mar. 30 janv. 2024 à 15:55, Milan Zamazal  a écrit :
>
> Fabio Estevam  writes:
>
> > Hi Milan,
> >
> > On Tue, Jan 30, 2024 at 9:22 AM Milan Zamazal  wrote:
> >
> >> Well, after trying both the SD cards again with fresh reinstallations, it 
> >> works
> >> with a 32 GB card and I get the error above with a 64 GB card.  Is it 
> >> possible
> >> that there is something wrong with SDXC cards?
> >
> > Does the change below help?
> >
> > --- a/arch/arm/dts/imx8mp-debix-model-a-u-boot.dtsi
> > +++ b/arch/arm/dts/imx8mp-debix-model-a-u-boot.dtsi
> > @@ -128,6 +128,9 @@
> > bootph-pre-ram;
> > sd-uhs-sdr104;
> > sd-uhs-ddr50;
> > +   assigned-clocks = < IMX8MP_CLK_USDHC2>;
> > +   assigned-clock-rates = <4>;
> > +   assigned-clock-parents = < IMX8MP_SYS_PLL1_400M>;
> >  };
> >
> >   {
>
> No, the same error. :-(
>
> Regards,
> Milan
>
I tried with a  32GB Sandisk high endurance SD and a 64GB Sandisk
Ultra SDXC UHS-I and both worked.
Can you tell me which 64GB sd cards you tried booting with? And also,
which steps you followed to get the errors (which image to download,
etc...)?

thanks
Gilles.


Re: [PATCH v2] imx: imx8mp: Add support for Polyhex Debix Model A SBC

2024-01-30 Thread Milan Zamazal
Fabio Estevam  writes:

> Hi Milan,
>
> On Tue, Jan 30, 2024 at 9:22 AM Milan Zamazal  wrote:
>
>> Well, after trying both the SD cards again with fresh reinstallations, it 
>> works
>> with a 32 GB card and I get the error above with a 64 GB card.  Is it 
>> possible
>> that there is something wrong with SDXC cards?
>
> Does the change below help?
>
> --- a/arch/arm/dts/imx8mp-debix-model-a-u-boot.dtsi
> +++ b/arch/arm/dts/imx8mp-debix-model-a-u-boot.dtsi
> @@ -128,6 +128,9 @@
> bootph-pre-ram;
> sd-uhs-sdr104;
> sd-uhs-ddr50;
> +   assigned-clocks = < IMX8MP_CLK_USDHC2>;
> +   assigned-clock-rates = <4>;
> +   assigned-clock-parents = < IMX8MP_SYS_PLL1_400M>;
>  };
>
>   {

No, the same error. :-(

Regards,
Milan



Re: [PATCH v2] imx: imx8mp: Add support for Polyhex Debix Model A SBC

2024-01-30 Thread Fabio Estevam
Hi Milan,

On Tue, Jan 30, 2024 at 9:22 AM Milan Zamazal  wrote:

> Well, after trying both the SD cards again with fresh reinstallations, it 
> works
> with a 32 GB card and I get the error above with a 64 GB card.  Is it possible
> that there is something wrong with SDXC cards?

Does the change below help?

--- a/arch/arm/dts/imx8mp-debix-model-a-u-boot.dtsi
+++ b/arch/arm/dts/imx8mp-debix-model-a-u-boot.dtsi
@@ -128,6 +128,9 @@
bootph-pre-ram;
sd-uhs-sdr104;
sd-uhs-ddr50;
+   assigned-clocks = < IMX8MP_CLK_USDHC2>;
+   assigned-clock-rates = <4>;
+   assigned-clock-parents = < IMX8MP_SYS_PLL1_400M>;
 };

  {


Re: [PATCH v2] imx: imx8mp: Add support for Polyhex Debix Model A SBC

2024-01-29 Thread Milan Zamazal
Milan Zamazal  writes:

> Gilles Talis  writes:
>
>> Hi Milan,
>>
>> Le jeu. 7 déc. 2023 à 11:09, Milan Zamazal  a écrit :
>>
>>> Peng Fan  writes:
>>>
>>> > On 5/24/2023 3:21 AM, Gilles Talis wrote:
>>> >> Add support for the Polyhex Debix Model A SBC board.
>>> >> It is an industrial grade single board computer based on
>>> >> NXP's i.MX 8M Plus.
>>> >> Currently supported interfaces are:
>>> >> - Serial console
>>> >> - Micro SD
>>> >> - eQOS and FEC Ethernet
>>> >> imx8mp-debix-model-a.dts is taken from Linux 6.3.
>>> >> Signed-off-by: Gilles Talis
>>> >
>>> > Reviewed-by: Peng Fan 
>>>
>>> Do you know why the patch has been left (as far as I can see) without
>>> further action?
>>>
>> I don't know. I assume the maintainer is very busy or has missed it. I was
>> planning to do a resend in the next few weeks.
>>
>>
>>>
>>> BTW, I applied it to current master, compiled approximately following
>>> https://docs.u-boot.org/en/latest/board/nxp/imx8mp_evk.html and tried to
>>> use it on Debix Model A.  U-Boot starts but cannot find the partition
>>> table on the SD card:
>>>
>>>   U-Boot SPL 2024.01-rc3-07226-g43f2873fa9-dirty (Jan 01 1980 - 00:00:00
>>> +)
>>>   Normal Boot
>>>   WDT: Started watchdog@3028 with servicing every 1000ms (60s
>>> timeout)
>>>   Trying to boot from BOOTROM
>>>   Boot Stage: Primary boot
>>>   image offset 0x8000, pagesize 0x200, ivt offset 0x0
>>>   NOTICE: BL31: v2.2(release):rel_imx_5.4.70_2.3.6-0-g15e8ff164-dirty
>>>   NOTICE:  BL31: Built : 00:00:00, Jan  1 1980
>>>
>>>
>>>   U-Boot 2024.01-rc3-07226-g43f2873fa9-dirty (Jan 01 1980 - 00:00:00 +)
>>>
>>>   CPU:   Freescale i.MX8MP[8] rev1.1 at 1200 MHz
>>>   Reset cause: POR
>>>   Model: Polyhex Debix Model A i.MX8MPlus board
>>>   DRAM:  2 GiB
>>>   Core: 83 devices, 22 uclasses, devicetree: separate
>>>   WDT: Started watchdog@3028 with servicing every 1000ms (60s
>>> timeout)
>>>   MMC:   FSL_SDHC: 1, FSL_SDHC: 2
>>>   Loading Environment from MMC... *** Warning - bad CRC, using default
>>> environment
>>>
>>>   In:serial@3089
>>>   Out:   serial@3089
>>>   Err:   serial@3089
>>>   Net:   eth1: ethernet@30bf [PRIME]
>>>   Hit any key to stop autoboot: 2 <0x08><0x08><0x08> 1 <0x08><0x08><0x08>
>>> 0
>>>   switch to partitions #0, OK
>>>   mmc1 is current device
>>>   Scanning mmc 1:1...
>>>   ,** No partition table - mmc 1 **
>>>   Couldn't find partition mmc 1:1
>>>   ,** No partition table - mmc 1 **
>>>   Couldn't find partition mmc 1:1
>>>   ,** No partition table - mmc 1 **
>>>   Couldn't find partition mmc 1:1
>>>   ,** No partition table - mmc 1 **
>>>   Couldn't find partition mmc 1:1
>>>   ,** No partition table - mmc 1 **
>>>   Couldn't find partition mmc 1:1
>>>   ,** No partition table - mmc 1 **
>>>   Couldn't find partition mmc 1:1
>>>   ,** No partition table - mmc 1 **
>>>   Couldn't find partition mmc 1:1
>>>   <0x1b>7<0x1b>[r<0x1b>[999;999H<0x1b>[6n<0x1b>8Card did not respond to
>>> voltage select! : -110
>>>   No EFI system partition
>>>   No EFI system partition
>>>   Failed to persist EFI variables
>>>   Remove /soc@0/bus@3080/ethernet@30be:phy-reset-gpios
>>>   BootOrder not defined
>>>   EFI boot manager: Cannot load any image
>>>   ,** No partition table - mmc 1 **
>>>   Couldn't find partition mmc 1:1
>>>   Card did not respond to voltage select! : -110
>>>   u-boot=>
>>>
>>> When I use an old U-Boot blob provided by Debix, it boots fine from the
>>> same SD card.  The SD card contains a Fedora aarch64 image with a msdos
>>> partition table.
>>>
>>> Do you know what could be wrong?
>>>
>> Interesting. I don't have a clue yet,. but let me give it a try and come
>> back to you. Where can I download the Fedora aarch64 image you mentioned
>> above?
>
> I flashed the image freshly, to another SD card, and it boots happily.
> So I can confirm your patch works. :-)
>
> I don't know what's wrong with the partition table on the original SD
> card.  

Well, after trying both the SD cards again with fresh reinstallations, it works
with a 32 GB card and I get the error above with a 64 GB card.  Is it possible
that there is something wrong with SDXC cards?

Regards,
Milan

> I manipulated with the partitions and their properties a bit before but parted
> or the other versions of U-Boot I tried don't report any problem.  Maybe the
> U-Boot version from master that I happened to compile does something
> differently.  Anyway, it's unlikely to be related to this patch as it boots
> fine on a freshly flashed SD card.
>
> Thank you for the patch, hopefully it'll get merged.
>
> Regards,
> Milan



Re: [PATCH v2] imx: imx8mp: Add support for Polyhex Debix Model A SBC

2023-12-15 Thread Gilles Talis
Hi Milan,
Thanks for testing the patch! Glad that you could get it to work!

Hi Fabio,
Le mer. 13 déc. 2023 à 12:22, Fabio Estevam  a écrit :

> On Thu, Dec 7, 2023 at 2:15 PM Milan Zamazal  wrote:
> >
> > Peng Fan  writes:
> >
> > > On 5/24/2023 3:21 AM, Gilles Talis wrote:
> > >> Add support for the Polyhex Debix Model A SBC board.
> > >> It is an industrial grade single board computer based on
> > >> NXP's i.MX 8M Plus.
> > >> Currently supported interfaces are:
> > >> - Serial console
> > >> - Micro SD
> > >> - eQOS and FEC Ethernet
> > >> imx8mp-debix-model-a.dts is taken from Linux 6.3.
> > >> Signed-off-by: Gilles Talis
> > >
> > > Reviewed-by: Peng Fan 
> >
> > Do you know why the patch has been left (as far as I can see) without
> > further action?
>
> Applied to u-boot-imx next, thanks.
>
Thanks for applying it !
Gilles.


Re: [PATCH v2] imx: imx8mp: Add support for Polyhex Debix Model A SBC

2023-12-13 Thread Fabio Estevam
On Thu, Dec 7, 2023 at 2:15 PM Milan Zamazal  wrote:
>
> Peng Fan  writes:
>
> > On 5/24/2023 3:21 AM, Gilles Talis wrote:
> >> Add support for the Polyhex Debix Model A SBC board.
> >> It is an industrial grade single board computer based on
> >> NXP's i.MX 8M Plus.
> >> Currently supported interfaces are:
> >> - Serial console
> >> - Micro SD
> >> - eQOS and FEC Ethernet
> >> imx8mp-debix-model-a.dts is taken from Linux 6.3.
> >> Signed-off-by: Gilles Talis
> >
> > Reviewed-by: Peng Fan 
>
> Do you know why the patch has been left (as far as I can see) without
> further action?

Applied to u-boot-imx next, thanks.


Re: [PATCH v2] imx: imx8mp: Add support for Polyhex Debix Model A SBC

2023-12-12 Thread Milan Zamazal
Gilles Talis  writes:

> Hi Milan,
>
> Le jeu. 7 déc. 2023 à 11:09, Milan Zamazal  a écrit :
>
>> Peng Fan  writes:
>>
>> > On 5/24/2023 3:21 AM, Gilles Talis wrote:
>> >> Add support for the Polyhex Debix Model A SBC board.
>> >> It is an industrial grade single board computer based on
>> >> NXP's i.MX 8M Plus.
>> >> Currently supported interfaces are:
>> >> - Serial console
>> >> - Micro SD
>> >> - eQOS and FEC Ethernet
>> >> imx8mp-debix-model-a.dts is taken from Linux 6.3.
>> >> Signed-off-by: Gilles Talis
>> >
>> > Reviewed-by: Peng Fan 
>>
>> Do you know why the patch has been left (as far as I can see) without
>> further action?
>>
> I don't know. I assume the maintainer is very busy or has missed it. I was
> planning to do a resend in the next few weeks.
>
>
>>
>> BTW, I applied it to current master, compiled approximately following
>> https://docs.u-boot.org/en/latest/board/nxp/imx8mp_evk.html and tried to
>> use it on Debix Model A.  U-Boot starts but cannot find the partition
>> table on the SD card:
>>
>>   U-Boot SPL 2024.01-rc3-07226-g43f2873fa9-dirty (Jan 01 1980 - 00:00:00
>> +)
>>   Normal Boot
>>   WDT: Started watchdog@3028 with servicing every 1000ms (60s
>> timeout)
>>   Trying to boot from BOOTROM
>>   Boot Stage: Primary boot
>>   image offset 0x8000, pagesize 0x200, ivt offset 0x0
>>   NOTICE: BL31: v2.2(release):rel_imx_5.4.70_2.3.6-0-g15e8ff164-dirty
>>   NOTICE:  BL31: Built : 00:00:00, Jan  1 1980
>>
>>
>>   U-Boot 2024.01-rc3-07226-g43f2873fa9-dirty (Jan 01 1980 - 00:00:00 +)
>>
>>   CPU:   Freescale i.MX8MP[8] rev1.1 at 1200 MHz
>>   Reset cause: POR
>>   Model: Polyhex Debix Model A i.MX8MPlus board
>>   DRAM:  2 GiB
>>   Core: 83 devices, 22 uclasses, devicetree: separate
>>   WDT: Started watchdog@3028 with servicing every 1000ms (60s
>> timeout)
>>   MMC:   FSL_SDHC: 1, FSL_SDHC: 2
>>   Loading Environment from MMC... *** Warning - bad CRC, using default
>> environment
>>
>>   In:serial@3089
>>   Out:   serial@3089
>>   Err:   serial@3089
>>   Net:   eth1: ethernet@30bf [PRIME]
>>   Hit any key to stop autoboot: 2 <0x08><0x08><0x08> 1 <0x08><0x08><0x08>
>> 0
>>   switch to partitions #0, OK
>>   mmc1 is current device
>>   Scanning mmc 1:1...
>>   ,** No partition table - mmc 1 **
>>   Couldn't find partition mmc 1:1
>>   ,** No partition table - mmc 1 **
>>   Couldn't find partition mmc 1:1
>>   ,** No partition table - mmc 1 **
>>   Couldn't find partition mmc 1:1
>>   ,** No partition table - mmc 1 **
>>   Couldn't find partition mmc 1:1
>>   ,** No partition table - mmc 1 **
>>   Couldn't find partition mmc 1:1
>>   ,** No partition table - mmc 1 **
>>   Couldn't find partition mmc 1:1
>>   ,** No partition table - mmc 1 **
>>   Couldn't find partition mmc 1:1
>>   <0x1b>7<0x1b>[r<0x1b>[999;999H<0x1b>[6n<0x1b>8Card did not respond to
>> voltage select! : -110
>>   No EFI system partition
>>   No EFI system partition
>>   Failed to persist EFI variables
>>   Remove /soc@0/bus@3080/ethernet@30be:phy-reset-gpios
>>   BootOrder not defined
>>   EFI boot manager: Cannot load any image
>>   ,** No partition table - mmc 1 **
>>   Couldn't find partition mmc 1:1
>>   Card did not respond to voltage select! : -110
>>   u-boot=>
>>
>> When I use an old U-Boot blob provided by Debix, it boots fine from the
>> same SD card.  The SD card contains a Fedora aarch64 image with a msdos
>> partition table.
>>
>> Do you know what could be wrong?
>>
> Interesting. I don't have a clue yet,. but let me give it a try and come
> back to you. Where can I download the Fedora aarch64 image you mentioned
> above?

I flashed the image freshly, to another SD card, and it boots happily.
So I can confirm your patch works. :-)

I don't know what's wrong with the partition table on the original SD
card.  I manipulated with the partitions and their properties a bit
before but parted or the other versions of U-Boot I tried don't report
any problem.  Maybe the U-Boot version from master that I happened to
compile does something differently.  Anyway, it's unlikely to be related
to this patch as it boots fine on a freshly flashed SD card.

Thank you for the patch, hopefully it'll get merged.

Regards,
Milan



Re: [PATCH v2] imx: imx8mp: Add support for Polyhex Debix Model A SBC

2023-12-11 Thread Gilles Talis
Hi Milan,

Le jeu. 7 déc. 2023 à 11:09, Milan Zamazal  a écrit :

> Peng Fan  writes:
>
> > On 5/24/2023 3:21 AM, Gilles Talis wrote:
> >> Add support for the Polyhex Debix Model A SBC board.
> >> It is an industrial grade single board computer based on
> >> NXP's i.MX 8M Plus.
> >> Currently supported interfaces are:
> >> - Serial console
> >> - Micro SD
> >> - eQOS and FEC Ethernet
> >> imx8mp-debix-model-a.dts is taken from Linux 6.3.
> >> Signed-off-by: Gilles Talis
> >
> > Reviewed-by: Peng Fan 
>
> Do you know why the patch has been left (as far as I can see) without
> further action?
>
I don't know. I assume the maintainer is very busy or has missed it. I was
planning to do a resend in the next few weeks.


>
> BTW, I applied it to current master, compiled approximately following
> https://docs.u-boot.org/en/latest/board/nxp/imx8mp_evk.html and tried to
> use it on Debix Model A.  U-Boot starts but cannot find the partition
> table on the SD card:
>
>   U-Boot SPL 2024.01-rc3-07226-g43f2873fa9-dirty (Jan 01 1980 - 00:00:00
> +)
>   Normal Boot
>   WDT:   Started watchdog@3028 with servicing every 1000ms (60s
> timeout)
>   Trying to boot from BOOTROM
>   Boot Stage: Primary boot
>   image offset 0x8000, pagesize 0x200, ivt offset 0x0
>   NOTICE:  BL31: v2.2(release):rel_imx_5.4.70_2.3.6-0-g15e8ff164-dirty
>   NOTICE:  BL31: Built : 00:00:00, Jan  1 1980
>
>
>   U-Boot 2024.01-rc3-07226-g43f2873fa9-dirty (Jan 01 1980 - 00:00:00 +)
>
>   CPU:   Freescale i.MX8MP[8] rev1.1 at 1200 MHz
>   Reset cause: POR
>   Model: Polyhex Debix Model A i.MX8MPlus board
>   DRAM:  2 GiB
>   Core:  83 devices, 22 uclasses, devicetree: separate
>   WDT:   Started watchdog@3028 with servicing every 1000ms (60s
> timeout)
>   MMC:   FSL_SDHC: 1, FSL_SDHC: 2
>   Loading Environment from MMC... *** Warning - bad CRC, using default
> environment
>
>   In:serial@3089
>   Out:   serial@3089
>   Err:   serial@3089
>   Net:   eth1: ethernet@30bf [PRIME]
>   Hit any key to stop autoboot:  2 <0x08><0x08><0x08> 1 <0x08><0x08><0x08>
> 0
>   switch to partitions #0, OK
>   mmc1 is current device
>   Scanning mmc 1:1...
>   ,** No partition table - mmc 1 **
>   Couldn't find partition mmc 1:1
>   ,** No partition table - mmc 1 **
>   Couldn't find partition mmc 1:1
>   ,** No partition table - mmc 1 **
>   Couldn't find partition mmc 1:1
>   ,** No partition table - mmc 1 **
>   Couldn't find partition mmc 1:1
>   ,** No partition table - mmc 1 **
>   Couldn't find partition mmc 1:1
>   ,** No partition table - mmc 1 **
>   Couldn't find partition mmc 1:1
>   ,** No partition table - mmc 1 **
>   Couldn't find partition mmc 1:1
>   <0x1b>7<0x1b>[r<0x1b>[999;999H<0x1b>[6n<0x1b>8Card did not respond to
> voltage select! : -110
>   No EFI system partition
>   No EFI system partition
>   Failed to persist EFI variables
>   Remove /soc@0/bus@3080/ethernet@30be:phy-reset-gpios
>   BootOrder not defined
>   EFI boot manager: Cannot load any image
>   ,** No partition table - mmc 1 **
>   Couldn't find partition mmc 1:1
>   Card did not respond to voltage select! : -110
>   u-boot=>
>
> When I use an old U-Boot blob provided by Debix, it boots fine from the
> same SD card.  The SD card contains a Fedora aarch64 image with a msdos
> partition table.
>
> Do you know what could be wrong?
>
Interesting. I don't have a clue yet,. but let me give it a try and come
back to you. Where can I download the Fedora aarch64 image you mentioned
above?


>
> Regards,
> Milan
>
> Thanks!
Gilles.


Re: [PATCH v2] imx: imx8mp: Add support for Polyhex Debix Model A SBC

2023-12-07 Thread Milan Zamazal
Peng Fan  writes:

> On 5/24/2023 3:21 AM, Gilles Talis wrote:
>> Add support for the Polyhex Debix Model A SBC board.
>> It is an industrial grade single board computer based on
>> NXP's i.MX 8M Plus.
>> Currently supported interfaces are:
>> - Serial console
>> - Micro SD
>> - eQOS and FEC Ethernet
>> imx8mp-debix-model-a.dts is taken from Linux 6.3.
>> Signed-off-by: Gilles Talis
>
> Reviewed-by: Peng Fan 

Do you know why the patch has been left (as far as I can see) without
further action?

BTW, I applied it to current master, compiled approximately following
https://docs.u-boot.org/en/latest/board/nxp/imx8mp_evk.html and tried to
use it on Debix Model A.  U-Boot starts but cannot find the partition
table on the SD card:

  U-Boot SPL 2024.01-rc3-07226-g43f2873fa9-dirty (Jan 01 1980 - 00:00:00 +)
  Normal Boot
  WDT:   Started watchdog@3028 with servicing every 1000ms (60s timeout)
  Trying to boot from BOOTROM
  Boot Stage: Primary boot
  image offset 0x8000, pagesize 0x200, ivt offset 0x0
  NOTICE:  BL31: v2.2(release):rel_imx_5.4.70_2.3.6-0-g15e8ff164-dirty
  NOTICE:  BL31: Built : 00:00:00, Jan  1 1980


  U-Boot 2024.01-rc3-07226-g43f2873fa9-dirty (Jan 01 1980 - 00:00:00 +)

  CPU:   Freescale i.MX8MP[8] rev1.1 at 1200 MHz
  Reset cause: POR
  Model: Polyhex Debix Model A i.MX8MPlus board
  DRAM:  2 GiB
  Core:  83 devices, 22 uclasses, devicetree: separate
  WDT:   Started watchdog@3028 with servicing every 1000ms (60s timeout)
  MMC:   FSL_SDHC: 1, FSL_SDHC: 2
  Loading Environment from MMC... *** Warning - bad CRC, using default 
environment

  In:serial@3089
  Out:   serial@3089
  Err:   serial@3089
  Net:   eth1: ethernet@30bf [PRIME]
  Hit any key to stop autoboot:  2 <0x08><0x08><0x08> 1 <0x08><0x08><0x08> 0 
  switch to partitions #0, OK
  mmc1 is current device
  Scanning mmc 1:1...
  ,** No partition table - mmc 1 **
  Couldn't find partition mmc 1:1
  ,** No partition table - mmc 1 **
  Couldn't find partition mmc 1:1
  ,** No partition table - mmc 1 **
  Couldn't find partition mmc 1:1
  ,** No partition table - mmc 1 **
  Couldn't find partition mmc 1:1
  ,** No partition table - mmc 1 **
  Couldn't find partition mmc 1:1
  ,** No partition table - mmc 1 **
  Couldn't find partition mmc 1:1
  ,** No partition table - mmc 1 **
  Couldn't find partition mmc 1:1
  <0x1b>7<0x1b>[r<0x1b>[999;999H<0x1b>[6n<0x1b>8Card did not respond to voltage 
select! : -110
  No EFI system partition
  No EFI system partition
  Failed to persist EFI variables
  Remove /soc@0/bus@3080/ethernet@30be:phy-reset-gpios
  BootOrder not defined
  EFI boot manager: Cannot load any image
  ,** No partition table - mmc 1 **
  Couldn't find partition mmc 1:1
  Card did not respond to voltage select! : -110
  u-boot=>

When I use an old U-Boot blob provided by Debix, it boots fine from the
same SD card.  The SD card contains a Fedora aarch64 image with a msdos
partition table.

Do you know what could be wrong?

Regards,
Milan



Re: [PATCH v2] imx: imx8mp: Add support for Polyhex Debix Model A SBC

2023-05-24 Thread Peng Fan




On 5/24/2023 3:21 AM, Gilles Talis wrote:

Add support for the Polyhex Debix Model A SBC board.
It is an industrial grade single board computer based on
NXP's i.MX 8M Plus.
Currently supported interfaces are:
- Serial console
- Micro SD
- eQOS and FEC Ethernet

imx8mp-debix-model-a.dts is taken from Linux 6.3.

Signed-off-by: Gilles Talis


Reviewed-by: Peng Fan 


[PATCH v2] imx: imx8mp: Add support for Polyhex Debix Model A SBC

2023-05-23 Thread Gilles Talis
Add support for the Polyhex Debix Model A SBC board.
It is an industrial grade single board computer based on
NXP's i.MX 8M Plus.
Currently supported interfaces are:
- Serial console
- Micro SD
- eQOS and FEC Ethernet

imx8mp-debix-model-a.dts is taken from Linux 6.3.

Signed-off-by: Gilles Talis 
---
Changes in v2:
- Updated Copyright time and author in files needing correction
---
 arch/arm/dts/Makefile |1 +
 arch/arm/dts/imx8mp-debix-model-a-u-boot.dtsi |  141 ++
 arch/arm/dts/imx8mp-debix-model-a.dts |  507 +
 arch/arm/mach-imx/imx8m/Kconfig   |8 +
 board/polyhex/imx8mp_debix_model_a/Kconfig|   15 +
 .../polyhex/imx8mp_debix_model_a/MAINTAINERS  |8 +
 board/polyhex/imx8mp_debix_model_a/Makefile   |   13 +
 .../imx8mp_debix_model_a.c|   55 +
 .../imximage-8mp-lpddr4.cfg   |9 +
 .../imx8mp_debix_model_a/lpddr4_timing.c  | 1843 +
 board/polyhex/imx8mp_debix_model_a/spl.c  |  128 ++
 configs/imx8mp_debix_model_a_defconfig|  110 +
 include/configs/imx8mp_debix_model_a.h|   54 +
 13 files changed, 2892 insertions(+)
 create mode 100644 arch/arm/dts/imx8mp-debix-model-a-u-boot.dtsi
 create mode 100644 arch/arm/dts/imx8mp-debix-model-a.dts
 create mode 100644 board/polyhex/imx8mp_debix_model_a/Kconfig
 create mode 100644 board/polyhex/imx8mp_debix_model_a/MAINTAINERS
 create mode 100644 board/polyhex/imx8mp_debix_model_a/Makefile
 create mode 100644 board/polyhex/imx8mp_debix_model_a/imx8mp_debix_model_a.c
 create mode 100644 board/polyhex/imx8mp_debix_model_a/imximage-8mp-lpddr4.cfg
 create mode 100644 board/polyhex/imx8mp_debix_model_a/lpddr4_timing.c
 create mode 100644 board/polyhex/imx8mp_debix_model_a/spl.c
 create mode 100644 configs/imx8mp_debix_model_a_defconfig
 create mode 100644 include/configs/imx8mp_debix_model_a.h

diff --git a/arch/arm/dts/Makefile b/arch/arm/dts/Makefile
index 480269fa60..1c53e357db 100644
--- a/arch/arm/dts/Makefile
+++ b/arch/arm/dts/Makefile
@@ -1008,6 +1008,7 @@ dtb-$(CONFIG_ARCH_IMX8M) += \
imx8mq-phanbell.dtb \
imx8mp-beacon-kit.dtb \
imx8mp-data-modul-edm-sbc.dtb \
+   imx8mp-debix-model-a.dtb \
imx8mp-dhcom-pdk2.dtb \
imx8mp-dhcom-pdk3.dtb \
imx8mp-evk.dtb \
diff --git a/arch/arm/dts/imx8mp-debix-model-a-u-boot.dtsi 
b/arch/arm/dts/imx8mp-debix-model-a-u-boot.dtsi
new file mode 100644
index 00..33bd89a843
--- /dev/null
+++ b/arch/arm/dts/imx8mp-debix-model-a-u-boot.dtsi
@@ -0,0 +1,141 @@
+// SPDX-License-Identifier: GPL-2.0+
+/*
+ * Copyright 2019, 2021 NXP
+ * Copyright 2023 Gilles Talis 
+ */
+
+#include "imx8mp-u-boot.dtsi"
+
+/ {
+   wdt-reboot {
+   compatible = "wdt-reboot";
+   wdt = <>;
+   bootph-pre-ram;
+   };
+   firmware {
+   optee {
+   compatible = "linaro,optee-tz";
+   method = "smc";
+   };
+   };
+};
+
+ {
+   bootph-pre-ram;
+};
+
+ {
+   reset-gpios = < 18 GPIO_ACTIVE_LOW>;
+   reset-delay-us = <15000>;
+   reset-post-delay-us = <10>;
+};
+
+ {
+   phy-reset-gpios = < 19 GPIO_ACTIVE_LOW>;
+   phy-reset-duration = <15>;
+   phy-reset-post-delay = <100>;
+};
+
+ {
+   bootph-pre-ram;
+};
+
+ {
+   bootph-pre-ram;
+};
+
+ {
+   bootph-pre-ram;
+};
+
+ {
+   bootph-pre-ram;
+};
+
+ {
+   bootph-pre-ram;
+};
+
+ {
+   bootph-pre-ram;
+};
+
+_i2c1 {
+   bootph-pre-ram;
+};
+
+_pmic {
+   bootph-pre-ram;
+};
+
+_uart2 {
+   bootph-pre-ram;
+};
+
+_usdhc2_gpio {
+   bootph-pre-ram;
+};
+
+_usdhc2 {
+   bootph-pre-ram;
+};
+
+_usdhc3 {
+   bootph-pre-ram;
+};
+
+_wdog {
+   bootph-pre-ram;
+};
+
+ {
+   bootph-pre-ram;
+
+   regulators {
+   bootph-pre-ram;
+   };
+};
+
+_usdhc2_vmmc {
+   u-boot,off-on-delay-us = <2>;
+};
+
+_usdhc2_vmmc {
+   bootph-pre-ram;
+};
+
+ {
+   bootph-pre-ram;
+};
+
+_jr0 {
+   bootph-pre-ram;
+};
+
+_jr1 {
+   bootph-pre-ram;
+};
+
+_jr2 {
+   bootph-pre-ram;
+};
+
+ {
+   bootph-pre-ram;
+};
+
+ {
+   bootph-pre-ram;
+   sd-uhs-sdr104;
+   sd-uhs-ddr50;
+};
+
+ {
+   bootph-pre-ram;
+   mmc-hs400-1_8v;
+   mmc-hs400-enhanced-strobe;
+};
+
+ {
+   bootph-pre-ram;
+};
diff --git a/arch/arm/dts/imx8mp-debix-model-a.dts 
b/arch/arm/dts/imx8mp-debix-model-a.dts
new file mode 100644
index 00..58dae612b4
--- /dev/null
+++ b/arch/arm/dts/imx8mp-debix-model-a.dts
@@ -0,0 +1,507 @@
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
+/*
+ * Copyright 2019 NXP
+ * Copyright 2022 Ideas on Board Oy
+ */
+
+/dts-v1/;
+
+#include 
+#include 
+#include 
+
+#include "imx8mp.dtsi"
+
+/ {
+   model = "Polyhex Debix Model A i.MX8MPlus board";
+   compatible = "polyhex,imx8mp-debix-model-a", "polyhex,imx8mp-debix", 
"fsl,imx8mp";
+
+   chosen {
+