Skip to contentSkip to conversation

RCar-H2: boot from SD card request

DISCUSSION Ben Dooks 2 participants 3 messages Nov 6, 2013 – Nov 7, 2013 SuperH

lore
Share & tools
lore

Ben Dooks

author
#0 lore raw

I am trying to boot an lager board from SD, using SDHI0 channel with the development branches from Simon.

Has anyone got this to work? I have a working 3.4-ltsi kernel that can boot

I've tried the next, master and devel branches from
git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git

My current diffs to the source are:

Quoted 20 lines

git diff

arch/arm/boot/dts/r8a7790-lager.dts +3 -1
index 203bd08..d2b33eb 100644
@@ -16,7 +16,7 @@
        compatible = "renesas,lager", "renesas,r8a7790";
 
        chosen {
-               bootargs = "console=ttySC6,115200 ignore_loglevel rw root=/dev/nfs ip=dhcp";
+               bootargs = "console=ttySC6,38400 ignore_loglevel rw root=/dev/mmcblk0p1 rootwait";
        };
 
        memory@40000000 {
@@ -29,3 +29,5 @@
                #size-cells = <1>;
        };
 };
+
+&sdhi0 { status = "ok"; };
Signature · 2 lines
Ben Dooks				http://www.codethink.co.uk/
Senior Engineer				Codethink - Providing Genius
#1 lore raw

Hi Ben,

Unfortunately it seems to me that the upstream SDHI driver is lacking in some aspects. This means that it won't work on r8a7790 and r8a7791 until it gets updated. We will do our best to cook up some code, would it be possible for you guys to test on your side?

Cheers,

/ magnus

Quoted 43 lines · Ben Dooks

I am trying to boot an lager board from SD, using SDHI0 channel with the development branches from Simon.

Has anyone got this to work? I have a working 3.4-ltsi kernel that can boot

I've tried the next, master and devel branches from
git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git

My current diffs to the source are:

Quoted 18 lines

git diff

arch/arm/boot/dts/r8a7790-lager.dts +1 -1
index 203bd08..d2b33eb 100644
@@ -16,7 +16,7 @@
        compatible = "renesas,lager", "renesas,r8a7790";
 
        chosen {
-               bootargs = "console=ttySC6,115200 ignore_loglevel rw
 root=/dev/nfs ip=dhcp";
+               bootargs = "console=ttySC6,38400 ignore_loglevel rw
 root=/dev/mmcblk0p1 rootwait";
        };
        memory@40000000 {

arch/arm/boot/dts/r8a7790-lager.dts line 33

Quoted 5 lines
arch/arm/boot/dts/r8a7790-lager.dts +2 -0
@@ -29,3 +29,5 @@
                #size-cells = <1>;
        };
 };
+
+&sdhi0 { status = "ok"; };

--
Ben Dooks http://www.codethink.co.uk/
Senior Engineer Codethink - Providing Genius
--
To unsubscribe from this list: send the line "unsubscribe linux-sh" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

author
#2 lore raw
In reply to Ben Dooks
Quoted 6 lines · Magnus Damm

Hi Ben,

Unfortunately it seems to me that the upstream SDHI driver is lacking in some aspects. This means that it won't work on r8a7790 and r8a7791 until it gets updated. We will do our best to cook up some code, would it be possible for you guys to test on your side?

Thanks, at the moment booting from SD card is much better for us than assuming we have a network available.

I should have some time for testing in the near future.

Quoted 48 lines

Cheers,

/ magnus

Quoted 43 lines · Ben Dooks

I am trying to boot an lager board from SD, using SDHI0 channel with the development branches from Simon.

Has anyone got this to work? I have a working 3.4-ltsi kernel that can boot

I've tried the next, master and devel branches from
git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git

My current diffs to the source are:

Quoted 18 lines

git diff

arch/arm/boot/dts/r8a7790-lager.dts +1 -1
index 203bd08..d2b33eb 100644
@@ -16,7 +16,7 @@
         compatible = "renesas,lager", "renesas,r8a7790";
 
         chosen {
-               bootargs = "console=ttySC6,115200 ignore_loglevel rw
 root=/dev/nfs ip=dhcp";
+               bootargs = "console=ttySC6,38400 ignore_loglevel rw
 root=/dev/mmcblk0p1 rootwait";
         };
         memory@40000000 {

arch/arm/boot/dts/r8a7790-lager.dts line 33

Quoted 5 lines
arch/arm/boot/dts/r8a7790-lager.dts +2 -0
@@ -29,3 +29,5 @@
                 #size-cells = <1>;
         };
  };
+
+&sdhi0 { status = "ok"; };

--
Ben Dooks http://www.codethink.co.uk/
Senior Engineer Codethink - Providing Genius
--
To unsubscribe from this list: send the line "unsubscribe linux-sh" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

Signature · 2 lines
Ben Dooks				http://www.codethink.co.uk/
Senior Engineer				Codethink - Providing Genius