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

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).