linux-amlogic.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* Odroid-N2 on archlinux cannot boot on using linux-next on sd_card / emmc
@ 2019-06-25  7:43 Anand Moon
  2019-06-25  7:47 ` Neil Armstrong
  0 siblings, 1 reply; 7+ messages in thread
From: Anand Moon @ 2019-06-25  7:43 UTC (permalink / raw)
  To: Neil Armstrong, Jerome Brunet, Martin Blumenstingl, Kevin Hilman
  Cc: linux-amlogic

[-- Attachment #1: Type: text/plain, Size: 774 bytes --]

Hi Niel,

I am not able to boot using sdcard / emmc module with
*linux-next-20190624* kernel on my Odroid-N2
when I want to boot using archlinux distro.

FYI Sdcard is (Sandisk 32 Class 10)

I am using the u-boot [0]
[0] https://github.com/superna9999/u-boot/tree/u-boot/topic/odroid-n2

I have check the sdcard is detected at the u-boot prompt but booting
linux kernel it fails.
Here is the logs of the u-boot.
[1] https://pastebin.com/wA9fAVJ0

Here is the boot log for linux-next-20190624

[2] https://pastebin.com/ajRkNR0e

I feel this crash is because of SD card is not initialized.

I tried to reconfigure the dts with following patch after looking into
schematics.

odroidn2_sdcard.patch

Can you give me some hint on how to resolve this issue ?

Best Regards
-Anand

[-- Attachment #2: odroidn2_sdcard.patch --]
[-- Type: application/octet-stream, Size: 1208 bytes --]

diff --git a/arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2.dts b/arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2.dts
index 81780ffcc7f0..db01215836f4 100644
--- a/arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2.dts
+++ b/arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2.dts
@@ -53,12 +53,15 @@
 
 		gpio = <&gpio_ao GPIOAO_8 GPIO_ACTIVE_HIGH>;
 		enable-active-high;
+
+		/* FC8731-09VF05NRR */
+		vin-supply = <&vddao_3v3>;
 	};
 
-	tf_io: gpio-regulator-tf_io {
+	vddio_c: regulator-vddio_c {
 		compatible = "regulator-gpio";
 
-		regulator-name = "TF_IO";
+		regulator-name = "VDDIO_C";
 		regulator-min-microvolt = <1800000>;
 		regulator-max-microvolt = <3300000>;
 
@@ -67,6 +70,9 @@
 
 		states = <3300000 0
 			  1800000 1>;
+
+		/* RT9179GB */
+		vin-supply = <&vcc_5v>;
 	};
 
 	flash_1v8: regulator-flash_1v8 {
@@ -93,6 +99,9 @@
 		regulator-max-microvolt = <5000000>;
 		regulator-always-on;
 		vin-supply = <&main_12v>;
+
+		gpio = <&gpio GPIOH_8 GPIO_OPEN_DRAIN>;
+		enable-active-high;
 	};
 
 	vcc_1v8: regulator-vcc_1v8 {
@@ -330,7 +339,7 @@
 
 	cd-gpios = <&gpio GPIOC_6 GPIO_ACTIVE_LOW>;
 	vmmc-supply = <&tflash_vdd>;
-	vqmmc-supply = <&tf_io>;
+	vqmmc-supply = <&vddio_c>;
 
 };
 

[-- Attachment #3: Type: text/plain, Size: 167 bytes --]

_______________________________________________
linux-amlogic mailing list
linux-amlogic@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-amlogic

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* Re: Odroid-N2 on archlinux cannot boot on using linux-next on sd_card / emmc
  2019-06-25  7:43 Odroid-N2 on archlinux cannot boot on using linux-next on sd_card / emmc Anand Moon
@ 2019-06-25  7:47 ` Neil Armstrong
  2019-06-25  8:47   ` Anand Moon
  0 siblings, 1 reply; 7+ messages in thread
From: Neil Armstrong @ 2019-06-25  7:47 UTC (permalink / raw)
  To: Anand Moon, Jerome Brunet, Martin Blumenstingl, Kevin Hilman
  Cc: linux-amlogic

Hi Anand,

On 25/06/2019 09:43, Anand Moon wrote:
> Hi Niel,
> 
> I am not able to boot using sdcard / emmc module with
> *linux-next-20190624* kernel on my Odroid-N2
> when I want to boot using archlinux distro.

Yes it's expected, the missing clocks were only merged today (cf
[GIT PULL] clk: meson: update for v5.3) and will appear in the next linux-next.

Neil

> 
> FYI Sdcard is (Sandisk 32 Class 10)
> 
> I am using the u-boot [0]
> [0] https://github.com/superna9999/u-boot/tree/u-boot/topic/odroid-n2
> 
> I have check the sdcard is detected at the u-boot prompt but booting
> linux kernel it fails.
> Here is the logs of the u-boot.
> [1] https://pastebin.com/wA9fAVJ0
> 
> Here is the boot log for linux-next-20190624
> 
> [2] https://pastebin.com/ajRkNR0e
> 
> I feel this crash is because of SD card is not initialized.
> 
> I tried to reconfigure the dts with following patch after looking into
> schematics.
> 
> odroidn2_sdcard.patch
> 
> Can you give me some hint on how to resolve this issue ?
> 
> Best Regards
> -Anand
> 


_______________________________________________
linux-amlogic mailing list
linux-amlogic@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-amlogic

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Odroid-N2 on archlinux cannot boot on using linux-next on sd_card / emmc
  2019-06-25  7:47 ` Neil Armstrong
@ 2019-06-25  8:47   ` Anand Moon
  2019-06-26 16:09     ` Anand Moon
  0 siblings, 1 reply; 7+ messages in thread
From: Anand Moon @ 2019-06-25  8:47 UTC (permalink / raw)
  To: Neil Armstrong
  Cc: Martin Blumenstingl, Kevin Hilman, linux-amlogic, Jerome Brunet

Hi Niel,

On Tue, 25 Jun 2019 at 13:17, Neil Armstrong <narmstrong@baylibre.com> wrote:
>
> Hi Anand,
>
> On 25/06/2019 09:43, Anand Moon wrote:
> > Hi Niel,
> >
> > I am not able to boot using sdcard / emmc module with
> > *linux-next-20190624* kernel on my Odroid-N2
> > when I want to boot using archlinux distro.
>
> Yes it's expected, the missing clocks were only merged today (cf
> [GIT PULL] clk: meson: update for v5.3) and will appear in the next linux-next.
>
> Neil
>

Thanks for this input, I will check this with the latest linux-next.
And then check my changes are valid.

Best Regards
-Anand

> >
> > FYI Sdcard is (Sandisk 32 Class 10)
> >
> > I am using the u-boot [0]
> > [0] https://github.com/superna9999/u-boot/tree/u-boot/topic/odroid-n2
> >
> > I have check the sdcard is detected at the u-boot prompt but booting
> > linux kernel it fails.
> > Here is the logs of the u-boot.
> > [1] https://pastebin.com/wA9fAVJ0
> >
> > Here is the boot log for linux-next-20190624
> >
> > [2] https://pastebin.com/ajRkNR0e
> >
> > I feel this crash is because of SD card is not initialized.
> >
> > I tried to reconfigure the dts with following patch after looking into
> > schematics.
> >
> > odroidn2_sdcard.patch
> >
> > Can you give me some hint on how to resolve this issue ?
> >
> > Best Regards
> > -Anand
> >
>

_______________________________________________
linux-amlogic mailing list
linux-amlogic@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-amlogic

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Odroid-N2 on archlinux cannot boot on using linux-next on sd_card / emmc
  2019-06-25  8:47   ` Anand Moon
@ 2019-06-26 16:09     ` Anand Moon
  2019-06-26 21:14       ` Kevin Hilman
  0 siblings, 1 reply; 7+ messages in thread
From: Anand Moon @ 2019-06-26 16:09 UTC (permalink / raw)
  To: Neil Armstrong
  Cc: Martin Blumenstingl, Kevin Hilman, linux-amlogic, Jerome Brunet

Hi Neil,

On Tue, 25 Jun 2019 at 14:17, Anand Moon <linux.amoon@gmail.com> wrote:
>
> Hi Niel,
>
> On Tue, 25 Jun 2019 at 13:17, Neil Armstrong <narmstrong@baylibre.com> wrote:
> >
> > Hi Anand,
> >
> > On 25/06/2019 09:43, Anand Moon wrote:
> > > Hi Niel,
> > >
> > > I am not able to boot using sdcard / emmc module with
> > > *linux-next-20190624* kernel on my Odroid-N2
> > > when I want to boot using archlinux distro.
> >
> > Yes it's expected, the missing clocks were only merged today (cf
> > [GIT PULL] clk: meson: update for v5.3) and will appear in the next linux-next.
> >
> > Neil
> >
>
> Thanks for this input, I will check this with the latest linux-next.
> And then check my changes are valid.
>

I think the clk change have being merged into linux-next-20190626
but still I am not able to get this pass the detect of *sd_card* or *eMMC*

Here are the log: https://pastebin.com/Sw0wA4nM

Any input for me to look into this?

Best Regards
-Anand

_______________________________________________
linux-amlogic mailing list
linux-amlogic@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-amlogic

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Odroid-N2 on archlinux cannot boot on using linux-next on sd_card / emmc
  2019-06-26 16:09     ` Anand Moon
@ 2019-06-26 21:14       ` Kevin Hilman
  2019-06-27 10:35         ` Anand Moon
  0 siblings, 1 reply; 7+ messages in thread
From: Kevin Hilman @ 2019-06-26 21:14 UTC (permalink / raw)
  To: Anand Moon, Neil Armstrong
  Cc: Martin Blumenstingl, linux-amlogic, Jerome Brunet

Anand Moon <linux.amoon@gmail.com> writes:

> Hi Neil,
>
> On Tue, 25 Jun 2019 at 14:17, Anand Moon <linux.amoon@gmail.com> wrote:
>>
>> Hi Niel,
>>
>> On Tue, 25 Jun 2019 at 13:17, Neil Armstrong <narmstrong@baylibre.com> wrote:
>> >
>> > Hi Anand,
>> >
>> > On 25/06/2019 09:43, Anand Moon wrote:
>> > > Hi Niel,
>> > >
>> > > I am not able to boot using sdcard / emmc module with
>> > > *linux-next-20190624* kernel on my Odroid-N2
>> > > when I want to boot using archlinux distro.
>> >
>> > Yes it's expected, the missing clocks were only merged today (cf
>> > [GIT PULL] clk: meson: update for v5.3) and will appear in the next linux-next.
>> >
>> > Neil
>> >
>>
>> Thanks for this input, I will check this with the latest linux-next.
>> And then check my changes are valid.
>>
>
> I think the clk change have being merged into linux-next-20190626
> but still I am not able to get this pass the detect of *sd_card* or *eMMC*
>
> Here are the log: https://pastebin.com/Sw0wA4nM
>
> Any input for me to look into this?

Probably more FYI than useful input, but at least in kernelCI, odroid-n2
started booting succesffuly as of today next-20190626:

  https://kernelci.org/boot/meson-g12b-odroid-n2/

Kevin

_______________________________________________
linux-amlogic mailing list
linux-amlogic@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-amlogic

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Odroid-N2 on archlinux cannot boot on using linux-next on sd_card / emmc
  2019-06-26 21:14       ` Kevin Hilman
@ 2019-06-27 10:35         ` Anand Moon
  2019-07-24 17:54           ` Anand Moon
  0 siblings, 1 reply; 7+ messages in thread
From: Anand Moon @ 2019-06-27 10:35 UTC (permalink / raw)
  To: Kevin Hilman
  Cc: Martin Blumenstingl, linux-amlogic, Jerome Brunet, Neil Armstrong

Hi Kevin,

On Thu, 27 Jun 2019 at 02:44, Kevin Hilman <khilman@baylibre.com> wrote:
>
> Anand Moon <linux.amoon@gmail.com> writes:
>
> > Hi Neil,
> >
> > On Tue, 25 Jun 2019 at 14:17, Anand Moon <linux.amoon@gmail.com> wrote:
> >>
> >> Hi Niel,
> >>
> >> On Tue, 25 Jun 2019 at 13:17, Neil Armstrong <narmstrong@baylibre.com> wrote:
> >> >
> >> > Hi Anand,
> >> >
> >> > On 25/06/2019 09:43, Anand Moon wrote:
> >> > > Hi Niel,
> >> > >
> >> > > I am not able to boot using sdcard / emmc module with
> >> > > *linux-next-20190624* kernel on my Odroid-N2
> >> > > when I want to boot using archlinux distro.
> >> >
> >> > Yes it's expected, the missing clocks were only merged today (cf
> >> > [GIT PULL] clk: meson: update for v5.3) and will appear in the next linux-next.
> >> >
> >> > Neil
> >> >
> >>
> >> Thanks for this input, I will check this with the latest linux-next.
> >> And then check my changes are valid.
> >>
> >
> > I think the clk change have being merged into linux-next-20190626
> > but still I am not able to get this pass the detect of *sd_card* or *eMMC*
> >
> > Here are the log: https://pastebin.com/Sw0wA4nM
> >
> > Any input for me to look into this?
>
> Probably more FYI than useful input, but at least in kernelCI, odroid-n2
> started booting succesffuly as of today next-20190626:
>
>   https://kernelci.org/boot/meson-g12b-odroid-n2/
>
> Kevin

Thanks for your input, I am able to boot my Odroid-N2 using eMMC.
But still I am struggling to get this booted using microSD card.

Right now it not stable, cannot get any thing to work or test

Best Regards
-Anand

_______________________________________________
linux-amlogic mailing list
linux-amlogic@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-amlogic

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Odroid-N2 on archlinux cannot boot on using linux-next on sd_card / emmc
  2019-06-27 10:35         ` Anand Moon
@ 2019-07-24 17:54           ` Anand Moon
  0 siblings, 0 replies; 7+ messages in thread
From: Anand Moon @ 2019-07-24 17:54 UTC (permalink / raw)
  To: Kevin Hilman
  Cc: Martin Blumenstingl, linux-amlogic, Jerome Brunet, Neil Armstrong

Hi Neil,

[Ship]

Sorry for not following on my query on not able to boot from microSD
card on Odroid N2.
I have been trying various changes in *meson-g12b-odroid-n2.dts* most
of them related
to linking the power to tflash_vdd and tf_io nodes.

From the schematics it seems
tflash_vdd (TFLASH_VDD_EN)   vin-supply = <&vddao_3v3>;
tf_io (TF_3V3N_1V8_EN)           vin-supply = <&vcc_5v>;

but it seen some thing core is missing in Initialization of tf_io.

Below regulator_summary confirm my finding ft_io not linked to any
main regulator.

[root@alarm ~]# cat /sys/kernel/debug/regulator/regulator_summary
 regulator                      use open bypass  opmode voltage
current     min     max
---------------------------------------------------------------------------------------
 regulator-dummy                  1    2      0 unknown     0mV
0mA     0mV     0mV
    ff400000.usb                  0
0mA     0mV     0mV
    ff400000.usb                  0
0mA     0mV     0mV
 12V                              3    2      0 unknown 12000mV
0mA 12000mV 12000mV
    5V                            4    4      0 unknown  5000mV
0mA  5000mV  5000mV
       ff600000.hdmi-tx           1
0mA     0mV     0mV
       phy-ff636000.phy.0         1
0mA     0mV     0mV
       HUB_5V                     1    1      0 unknown  5000mV
0mA  5000mV  5000mV
          phy-ff63a000.phy.1      1
0mA     0mV     0mV
       USB_PWR_EN                 0    1      0 unknown  5000mV
0mA  5000mV  5000mV
          ffe09000.usb            0
0mA     0mV     0mV
    VDDAO_3V3                     3    2      0 unknown  3300mV
0mA  3300mV  3300mV
       VCC_3V3                    4    3      0 unknown  3300mV
0mA  3300mV  3300mV
          ffe07000.mmc            1
0mA  3300mV  3400mV
          FLASH_1V8               2    1      0 unknown  1800mV
0mA  1800mV  1800mV
             ffe07000.mmc         1
0mA  1800mV  1950mV
          VCC_1V8                 1    0      0 unknown  1800mV
0mA  1800mV  1800mV
       VDDAO_1V8                  1    0      0 unknown  1800mV
0mA  1800mV  1800mV
 TFLASH_VDD                       0    1      0 unknown  3300mV
0mA  3300mV  3300mV
    ffe05000.sd                   0
0mA  3300mV  3400mV
 TF_IO                            0    1      0 unknown  3300mV
0mA  1800mV  3300mV
    ffe05000.sd                   0
0mA  3300mV  3300mV

Also I could not figure out how Hardkernel (Amlogic) source code
initialize the power for regulator.
If you could share some input I will then try to debug this future.

Best Regards
-Anand

_______________________________________________
linux-amlogic mailing list
linux-amlogic@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-amlogic

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2019-07-24 17:55 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-06-25  7:43 Odroid-N2 on archlinux cannot boot on using linux-next on sd_card / emmc Anand Moon
2019-06-25  7:47 ` Neil Armstrong
2019-06-25  8:47   ` Anand Moon
2019-06-26 16:09     ` Anand Moon
2019-06-26 21:14       ` Kevin Hilman
2019-06-27 10:35         ` Anand Moon
2019-07-24 17:54           ` Anand Moon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).