Re: [U-Boot] [PATCH 0/4] dm: rpi: Move Raspberry Pi to use driver model

2014-11-24 Thread Simon Glass
Hi,

On 25 October 2014 at 23:10, Simon Glass s...@chromium.org wrote:
 Hi Stephen,

 On 25 Oct 2014 23:08, Stephen Warren swar...@wwwdotorg.org wrote:

 On 10/25/2014 09:47 PM, Simon Glass wrote:
  Hi Stephen,
 
  On Oct 25, 2014 9:43 PM, Stephen Warren swar...@wwwdotorg.org
  mailto:swar...@wwwdotorg.org wrote:
 
  On 10/21/2014 08:04 PM, Simon Glass wrote:
   Hi Stephen,
  
   On 20 October 2014 20:23, Stephen Warren swar...@wwwdotorg.org
  mailto:swar...@wwwdotorg.org wrote:
   On 10/19/2014 09:14 PM, Simon Glass wrote:
   Hi Stephen,
  
   On 17 October 2014 20:51, Stephen Warren swar...@wwwdotorg.org
  mailto:swar...@wwwdotorg.org wrote:
   On 09/30/2014 07:41 PM, Stephen Warren wrote:
   On 09/22/2014 05:30 PM, Simon Glass wrote:
   This series adds driver model support to the GPIO and serial
  drivers used
   by Raspberry Pi, and moves Raspberry Pi over to driver model.
  
   This requires adding driver model support to the pl01x serial
  driver, and
   replacing the bcm2835 GPIO driver with a driver model version
  (since there
   are no longer clients that don't use driver model).
  
   See u-boot-dm.git branch rpi-working for the tree this is based
   on.
  
   The series,
   Tested-by: Stephen Warren swar...@wwwdotorg.org
  mailto:swar...@wwwdotorg.org
  
   Hmm. I take that back. Patch 4 causes a problem, at least when
  applied
   on top of u-boot/master from today.
  
   Basic serial output works just fine, and I can interact with
   U-Boot
   without issue. However, when the boot scripts execute and load an
   extlinux.conf, U-Boot hangs. Up to patch 3, everything is fine.
  
   U-Boot 2014.10-4-g7830ed7 (Oct 17 2014 - 20:47:19)
  
   DRAM:  480 MiB
   WARNING: Caches not enabled
   MMC:   bcm2835_sdhci: 0
   Using default environment
  
   In:serial
   Out:   lcd
   Err:   lcd
   reading /uEnv.txt
   24 bytes read in 14 ms (1000 Bytes/s)
   Hit any key to stop autoboot:  0
   switch to partitions #0, OK
   mmc0 is current device
   Scanning mmc 0...
   Found /extlinux/extlinux.conf
   Retrieving file: /extlinux/extlinux.conf
   reading /extlinux/extlinux.conf
   (U-Boot hangs here)
  
  
   Can you please point me to where I can get an image to try this
   with?
   Also did you check with dm/next? There may be dependent patches,
   although the nature of the problem suggests not.
  
   I use (a pretty old version of, but I doubt that matters) RPi
   Foundation's Raspbian image, and compiled the kernel and U-Boot
   according to:
  
  
 
  http://elinux.org/index.php?title=RPi_Upstream_Kernel_Compilationoldid=351104
  
   http://elinux.org/RPi_U-Boot
  
  
   I installed the Raspbian image but I don't get uImg.txt nor the same
   boot sequence. I am able to boot a kernel though.
  
   Do you have your settings or images uploaded somewhere? Also please
   confirm you used dm/next.
 
  FWIW, the content in the following branches does seem to work:
 
  u-boot/master
  5b3ee38 kbuild: clear VENDOR variable to fix build error on tcsh
 
  u-boot-dm/master
  c2ded96 serial: remove uniphier_serial_initialize() call
 
 
  In what way?

 I ran U-Boot, and let it boot a kernel via extlinux.conf.

 Ok that is probably just because I didn't pull in the patch you said was a
 problem.


 Note that I said it worked, not that it failed.

 I did misread this...

 Regards,
 Simon

I started a new thread here:

http://u-boot.10912.n7.nabble.com/Raspberry-Pi-with-driver-model-td197255.html

Regards,
Simon
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [PATCH 0/4] dm: rpi: Move Raspberry Pi to use driver model

2014-10-26 Thread Stephen Warren
On 10/21/2014 08:04 PM, Simon Glass wrote:
 Hi Stephen,
 
 On 20 October 2014 20:23, Stephen Warren swar...@wwwdotorg.org wrote:
 On 10/19/2014 09:14 PM, Simon Glass wrote:
 Hi Stephen,

 On 17 October 2014 20:51, Stephen Warren swar...@wwwdotorg.org wrote:
 On 09/30/2014 07:41 PM, Stephen Warren wrote:
 On 09/22/2014 05:30 PM, Simon Glass wrote:
 This series adds driver model support to the GPIO and serial drivers used
 by Raspberry Pi, and moves Raspberry Pi over to driver model.

 This requires adding driver model support to the pl01x serial driver, and
 replacing the bcm2835 GPIO driver with a driver model version (since 
 there
 are no longer clients that don't use driver model).

 See u-boot-dm.git branch rpi-working for the tree this is based on.

 The series,
 Tested-by: Stephen Warren swar...@wwwdotorg.org

 Hmm. I take that back. Patch 4 causes a problem, at least when applied
 on top of u-boot/master from today.

 Basic serial output works just fine, and I can interact with U-Boot
 without issue. However, when the boot scripts execute and load an
 extlinux.conf, U-Boot hangs. Up to patch 3, everything is fine.

 U-Boot 2014.10-4-g7830ed7 (Oct 17 2014 - 20:47:19)

 DRAM:  480 MiB
 WARNING: Caches not enabled
 MMC:   bcm2835_sdhci: 0
 Using default environment

 In:serial
 Out:   lcd
 Err:   lcd
 reading /uEnv.txt
 24 bytes read in 14 ms (1000 Bytes/s)
 Hit any key to stop autoboot:  0
 switch to partitions #0, OK
 mmc0 is current device
 Scanning mmc 0...
 Found /extlinux/extlinux.conf
 Retrieving file: /extlinux/extlinux.conf
 reading /extlinux/extlinux.conf
 (U-Boot hangs here)


 Can you please point me to where I can get an image to try this with?
 Also did you check with dm/next? There may be dependent patches,
 although the nature of the problem suggests not.

 I use (a pretty old version of, but I doubt that matters) RPi
 Foundation's Raspbian image, and compiled the kernel and U-Boot
 according to:

 http://elinux.org/index.php?title=RPi_Upstream_Kernel_Compilationoldid=351104

 http://elinux.org/RPi_U-Boot

 
 I installed the Raspbian image but I don't get uImg.txt nor the same
 boot sequence. I am able to boot a kernel though.
 
 Do you have your settings or images uploaded somewhere? Also please
 confirm you used dm/next.

FWIW, the content in the following branches does seem to work:

u-boot/master
5b3ee38 kbuild: clear VENDOR variable to fix build error on tcsh

u-boot-dm/master
c2ded96 serial: remove uniphier_serial_initialize() call

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [PATCH 0/4] dm: rpi: Move Raspberry Pi to use driver model

2014-10-26 Thread Stephen Warren
On 10/25/2014 09:47 PM, Simon Glass wrote:
 Hi Stephen,
 
 On Oct 25, 2014 9:43 PM, Stephen Warren swar...@wwwdotorg.org
 mailto:swar...@wwwdotorg.org wrote:

 On 10/21/2014 08:04 PM, Simon Glass wrote:
  Hi Stephen,
 
  On 20 October 2014 20:23, Stephen Warren swar...@wwwdotorg.org
 mailto:swar...@wwwdotorg.org wrote:
  On 10/19/2014 09:14 PM, Simon Glass wrote:
  Hi Stephen,
 
  On 17 October 2014 20:51, Stephen Warren swar...@wwwdotorg.org
 mailto:swar...@wwwdotorg.org wrote:
  On 09/30/2014 07:41 PM, Stephen Warren wrote:
  On 09/22/2014 05:30 PM, Simon Glass wrote:
  This series adds driver model support to the GPIO and serial
 drivers used
  by Raspberry Pi, and moves Raspberry Pi over to driver model.
 
  This requires adding driver model support to the pl01x serial
 driver, and
  replacing the bcm2835 GPIO driver with a driver model version
 (since there
  are no longer clients that don't use driver model).
 
  See u-boot-dm.git branch rpi-working for the tree this is based on.
 
  The series,
  Tested-by: Stephen Warren swar...@wwwdotorg.org
 mailto:swar...@wwwdotorg.org
 
  Hmm. I take that back. Patch 4 causes a problem, at least when
 applied
  on top of u-boot/master from today.
 
  Basic serial output works just fine, and I can interact with U-Boot
  without issue. However, when the boot scripts execute and load an
  extlinux.conf, U-Boot hangs. Up to patch 3, everything is fine.
 
  U-Boot 2014.10-4-g7830ed7 (Oct 17 2014 - 20:47:19)
 
  DRAM:  480 MiB
  WARNING: Caches not enabled
  MMC:   bcm2835_sdhci: 0
  Using default environment
 
  In:serial
  Out:   lcd
  Err:   lcd
  reading /uEnv.txt
  24 bytes read in 14 ms (1000 Bytes/s)
  Hit any key to stop autoboot:  0
  switch to partitions #0, OK
  mmc0 is current device
  Scanning mmc 0...
  Found /extlinux/extlinux.conf
  Retrieving file: /extlinux/extlinux.conf
  reading /extlinux/extlinux.conf
  (U-Boot hangs here)
 
 
  Can you please point me to where I can get an image to try this with?
  Also did you check with dm/next? There may be dependent patches,
  although the nature of the problem suggests not.
 
  I use (a pretty old version of, but I doubt that matters) RPi
  Foundation's Raspbian image, and compiled the kernel and U-Boot
  according to:
 
 
 http://elinux.org/index.php?title=RPi_Upstream_Kernel_Compilationoldid=351104
 
  http://elinux.org/RPi_U-Boot
 
 
  I installed the Raspbian image but I don't get uImg.txt nor the same
  boot sequence. I am able to boot a kernel though.
 
  Do you have your settings or images uploaded somewhere? Also please
  confirm you used dm/next.

 FWIW, the content in the following branches does seem to work:

 u-boot/master
 5b3ee38 kbuild: clear VENDOR variable to fix build error on tcsh

 u-boot-dm/master
 c2ded96 serial: remove uniphier_serial_initialize() call

 
 In what way?

I ran U-Boot, and let it boot a kernel via extlinux.conf.

Note that I said it worked, not that it failed.
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [PATCH 0/4] dm: rpi: Move Raspberry Pi to use driver model

2014-10-26 Thread Stephen Warren
On 10/21/2014 08:04 PM, Simon Glass wrote:
 Hi Stephen,
 
 On 20 October 2014 20:23, Stephen Warren swar...@wwwdotorg.org wrote:
 On 10/19/2014 09:14 PM, Simon Glass wrote:
 Hi Stephen,

 On 17 October 2014 20:51, Stephen Warren swar...@wwwdotorg.org wrote:
 On 09/30/2014 07:41 PM, Stephen Warren wrote:
 On 09/22/2014 05:30 PM, Simon Glass wrote:
 This series adds driver model support to the GPIO and serial drivers used
 by Raspberry Pi, and moves Raspberry Pi over to driver model.

 This requires adding driver model support to the pl01x serial driver, and
 replacing the bcm2835 GPIO driver with a driver model version (since 
 there
 are no longer clients that don't use driver model).

 See u-boot-dm.git branch rpi-working for the tree this is based on.

 The series,
 Tested-by: Stephen Warren swar...@wwwdotorg.org

 Hmm. I take that back. Patch 4 causes a problem, at least when applied
 on top of u-boot/master from today.

 Basic serial output works just fine, and I can interact with U-Boot
 without issue. However, when the boot scripts execute and load an
 extlinux.conf, U-Boot hangs. Up to patch 3, everything is fine.

 U-Boot 2014.10-4-g7830ed7 (Oct 17 2014 - 20:47:19)

 DRAM:  480 MiB
 WARNING: Caches not enabled
 MMC:   bcm2835_sdhci: 0
 Using default environment

 In:serial
 Out:   lcd
 Err:   lcd
 reading /uEnv.txt
 24 bytes read in 14 ms (1000 Bytes/s)
 Hit any key to stop autoboot:  0
 switch to partitions #0, OK
 mmc0 is current device
 Scanning mmc 0...
 Found /extlinux/extlinux.conf
 Retrieving file: /extlinux/extlinux.conf
 reading /extlinux/extlinux.conf
 (U-Boot hangs here)


 Can you please point me to where I can get an image to try this with?
 Also did you check with dm/next? There may be dependent patches,
 although the nature of the problem suggests not.

 I use (a pretty old version of, but I doubt that matters) RPi
 Foundation's Raspbian image, and compiled the kernel and U-Boot
 according to:

 http://elinux.org/index.php?title=RPi_Upstream_Kernel_Compilationoldid=351104

 http://elinux.org/RPi_U-Boot

 
 I installed the Raspbian image but I don't get uImg.txt nor the same
 boot sequence. I am able to boot a kernel though.

The RPi Foundation images boot their kernel directly from their binary
firmware, and hence don't include any U-Boot or U-Boot boot scripts.

I haven't used boot.scr for a while, but this is apparently what's in mine:

load ${devtype} ${devnum}:1 ${kernel_addr_r} /zImage
load ${devtype} ${devnum}:1 ${fdt_addr_r} /${fdtfile}
setenv bootargs earlyprintk loglevel=8 console=ttyAMA0 console=tty1 \
verbose rootwait root=/dev/mmcblk0p2 rw
bootz ${kernel_addr_r} - ${fdt_addr_r}

I use extlinux/extlinux.conf now, with the following content:

TIMEOUT 100
DEFAULT default
MENU TITLE Boot menu

LABEL default
MENU LABEL Default kernel
LINUX ../zImage
FDTDIR ../
APPEND earlyprintk loglevel=8 console=ttyAMA0 console=tty1 verbose \
rootwait root=/dev/mmcblk0p2 rw

LABEL fallback
MENU LABEL Backup kernel
LINUX ../backup/zImage
FDTDIR ../backup/
APPEND earlyprintk loglevel=8 console=ttyAMA0 console=tty1 verbose \
rootwait root=/dev/mmcblk0p2 rw

(in both cases, the continuation lines are all on one line; I only split
them for email purposes)
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [PATCH 0/4] dm: rpi: Move Raspberry Pi to use driver model

2014-10-26 Thread Simon Glass
Hi Stephen,

On Oct 25, 2014 9:43 PM, Stephen Warren swar...@wwwdotorg.org wrote:

 On 10/21/2014 08:04 PM, Simon Glass wrote:
  Hi Stephen,
 
  On 20 October 2014 20:23, Stephen Warren swar...@wwwdotorg.org wrote:
  On 10/19/2014 09:14 PM, Simon Glass wrote:
  Hi Stephen,
 
  On 17 October 2014 20:51, Stephen Warren swar...@wwwdotorg.org
wrote:
  On 09/30/2014 07:41 PM, Stephen Warren wrote:
  On 09/22/2014 05:30 PM, Simon Glass wrote:
  This series adds driver model support to the GPIO and serial
drivers used
  by Raspberry Pi, and moves Raspberry Pi over to driver model.
 
  This requires adding driver model support to the pl01x serial
driver, and
  replacing the bcm2835 GPIO driver with a driver model version
(since there
  are no longer clients that don't use driver model).
 
  See u-boot-dm.git branch rpi-working for the tree this is based on.
 
  The series,
  Tested-by: Stephen Warren swar...@wwwdotorg.org
 
  Hmm. I take that back. Patch 4 causes a problem, at least when
applied
  on top of u-boot/master from today.
 
  Basic serial output works just fine, and I can interact with U-Boot
  without issue. However, when the boot scripts execute and load an
  extlinux.conf, U-Boot hangs. Up to patch 3, everything is fine.
 
  U-Boot 2014.10-4-g7830ed7 (Oct 17 2014 - 20:47:19)
 
  DRAM:  480 MiB
  WARNING: Caches not enabled
  MMC:   bcm2835_sdhci: 0
  Using default environment
 
  In:serial
  Out:   lcd
  Err:   lcd
  reading /uEnv.txt
  24 bytes read in 14 ms (1000 Bytes/s)
  Hit any key to stop autoboot:  0
  switch to partitions #0, OK
  mmc0 is current device
  Scanning mmc 0...
  Found /extlinux/extlinux.conf
  Retrieving file: /extlinux/extlinux.conf
  reading /extlinux/extlinux.conf
  (U-Boot hangs here)
 
 
  Can you please point me to where I can get an image to try this with?
  Also did you check with dm/next? There may be dependent patches,
  although the nature of the problem suggests not.
 
  I use (a pretty old version of, but I doubt that matters) RPi
  Foundation's Raspbian image, and compiled the kernel and U-Boot
  according to:
 
 
http://elinux.org/index.php?title=RPi_Upstream_Kernel_Compilationoldid=351104
 
  http://elinux.org/RPi_U-Boot
 
 
  I installed the Raspbian image but I don't get uImg.txt nor the same
  boot sequence. I am able to boot a kernel though.
 
  Do you have your settings or images uploaded somewhere? Also please
  confirm you used dm/next.

 FWIW, the content in the following branches does seem to work:

 u-boot/master
 5b3ee38 kbuild: clear VENDOR variable to fix build error on tcsh

 u-boot-dm/master
 c2ded96 serial: remove uniphier_serial_initialize() call


In what way?

Regards,
Simon
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [PATCH 0/4] dm: rpi: Move Raspberry Pi to use driver model

2014-10-26 Thread Simon Glass
Hi Stephen,

On 25 Oct 2014 23:08, Stephen Warren swar...@wwwdotorg.org wrote:

 On 10/25/2014 09:47 PM, Simon Glass wrote:
  Hi Stephen,
 
  On Oct 25, 2014 9:43 PM, Stephen Warren swar...@wwwdotorg.org
  mailto:swar...@wwwdotorg.org wrote:
 
  On 10/21/2014 08:04 PM, Simon Glass wrote:
   Hi Stephen,
  
   On 20 October 2014 20:23, Stephen Warren swar...@wwwdotorg.org
  mailto:swar...@wwwdotorg.org wrote:
   On 10/19/2014 09:14 PM, Simon Glass wrote:
   Hi Stephen,
  
   On 17 October 2014 20:51, Stephen Warren swar...@wwwdotorg.org
  mailto:swar...@wwwdotorg.org wrote:
   On 09/30/2014 07:41 PM, Stephen Warren wrote:
   On 09/22/2014 05:30 PM, Simon Glass wrote:
   This series adds driver model support to the GPIO and serial
  drivers used
   by Raspberry Pi, and moves Raspberry Pi over to driver model.
  
   This requires adding driver model support to the pl01x serial
  driver, and
   replacing the bcm2835 GPIO driver with a driver model version
  (since there
   are no longer clients that don't use driver model).
  
   See u-boot-dm.git branch rpi-working for the tree this is based
on.
  
   The series,
   Tested-by: Stephen Warren swar...@wwwdotorg.org
  mailto:swar...@wwwdotorg.org
  
   Hmm. I take that back. Patch 4 causes a problem, at least when
  applied
   on top of u-boot/master from today.
  
   Basic serial output works just fine, and I can interact with
U-Boot
   without issue. However, when the boot scripts execute and load an
   extlinux.conf, U-Boot hangs. Up to patch 3, everything is fine.
  
   U-Boot 2014.10-4-g7830ed7 (Oct 17 2014 - 20:47:19)
  
   DRAM:  480 MiB
   WARNING: Caches not enabled
   MMC:   bcm2835_sdhci: 0
   Using default environment
  
   In:serial
   Out:   lcd
   Err:   lcd
   reading /uEnv.txt
   24 bytes read in 14 ms (1000 Bytes/s)
   Hit any key to stop autoboot:  0
   switch to partitions #0, OK
   mmc0 is current device
   Scanning mmc 0...
   Found /extlinux/extlinux.conf
   Retrieving file: /extlinux/extlinux.conf
   reading /extlinux/extlinux.conf
   (U-Boot hangs here)
  
  
   Can you please point me to where I can get an image to try this
with?
   Also did you check with dm/next? There may be dependent patches,
   although the nature of the problem suggests not.
  
   I use (a pretty old version of, but I doubt that matters) RPi
   Foundation's Raspbian image, and compiled the kernel and U-Boot
   according to:
  
  
 
http://elinux.org/index.php?title=RPi_Upstream_Kernel_Compilationoldid=351104
  
   http://elinux.org/RPi_U-Boot
  
  
   I installed the Raspbian image but I don't get uImg.txt nor the same
   boot sequence. I am able to boot a kernel though.
  
   Do you have your settings or images uploaded somewhere? Also please
   confirm you used dm/next.
 
  FWIW, the content in the following branches does seem to work:
 
  u-boot/master
  5b3ee38 kbuild: clear VENDOR variable to fix build error on tcsh
 
  u-boot-dm/master
  c2ded96 serial: remove uniphier_serial_initialize() call
 
 
  In what way?

 I ran U-Boot, and let it boot a kernel via extlinux.conf.

Ok that is probably just because I didn't pull in the patch you said was a
problem.


 Note that I said it worked, not that it failed.

I did misread this...

Regards,
Simon
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [PATCH 0/4] dm: rpi: Move Raspberry Pi to use driver model

2014-10-22 Thread Simon Glass
Hi Stephen,

On 21 October 2014 20:04, Simon Glass s...@chromium.org wrote:
 Hi Stephen,

 On 20 October 2014 20:23, Stephen Warren swar...@wwwdotorg.org wrote:
 On 10/19/2014 09:14 PM, Simon Glass wrote:
 Hi Stephen,

 On 17 October 2014 20:51, Stephen Warren swar...@wwwdotorg.org wrote:
 On 09/30/2014 07:41 PM, Stephen Warren wrote:
 On 09/22/2014 05:30 PM, Simon Glass wrote:
 This series adds driver model support to the GPIO and serial drivers used
 by Raspberry Pi, and moves Raspberry Pi over to driver model.

 This requires adding driver model support to the pl01x serial driver, and
 replacing the bcm2835 GPIO driver with a driver model version (since 
 there
 are no longer clients that don't use driver model).

 See u-boot-dm.git branch rpi-working for the tree this is based on.

 The series,
 Tested-by: Stephen Warren swar...@wwwdotorg.org

 Hmm. I take that back. Patch 4 causes a problem, at least when applied
 on top of u-boot/master from today.

 Basic serial output works just fine, and I can interact with U-Boot
 without issue. However, when the boot scripts execute and load an
 extlinux.conf, U-Boot hangs. Up to patch 3, everything is fine.

 U-Boot 2014.10-4-g7830ed7 (Oct 17 2014 - 20:47:19)

 DRAM:  480 MiB
 WARNING: Caches not enabled
 MMC:   bcm2835_sdhci: 0
 Using default environment

 In:serial
 Out:   lcd
 Err:   lcd
 reading /uEnv.txt
 24 bytes read in 14 ms (1000 Bytes/s)
 Hit any key to stop autoboot:  0
 switch to partitions #0, OK
 mmc0 is current device
 Scanning mmc 0...
 Found /extlinux/extlinux.conf
 Retrieving file: /extlinux/extlinux.conf
 reading /extlinux/extlinux.conf
 (U-Boot hangs here)


 Can you please point me to where I can get an image to try this with?
 Also did you check with dm/next? There may be dependent patches,
 although the nature of the problem suggests not.

 I use (a pretty old version of, but I doubt that matters) RPi
 Foundation's Raspbian image, and compiled the kernel and U-Boot
 according to:

 http://elinux.org/index.php?title=RPi_Upstream_Kernel_Compilationoldid=351104

 http://elinux.org/RPi_U-Boot


 I installed the Raspbian image but I don't get uImg.txt nor the same
 boot sequence. I am able to boot a kernel though.

 Do you have your settings or images uploaded somewhere? Also please
 confirm you used dm/next.

I've had to leave this last (4/4) patch out of the pull request for
now. See u-boot-dm/rpi_working if you would like to try it again.

Regards,
Simon
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [PATCH 0/4] dm: rpi: Move Raspberry Pi to use driver model

2014-10-21 Thread Simon Glass
Hi Stephen,

On 20 October 2014 20:23, Stephen Warren swar...@wwwdotorg.org wrote:
 On 10/19/2014 09:14 PM, Simon Glass wrote:
 Hi Stephen,

 On 17 October 2014 20:51, Stephen Warren swar...@wwwdotorg.org wrote:
 On 09/30/2014 07:41 PM, Stephen Warren wrote:
 On 09/22/2014 05:30 PM, Simon Glass wrote:
 This series adds driver model support to the GPIO and serial drivers used
 by Raspberry Pi, and moves Raspberry Pi over to driver model.

 This requires adding driver model support to the pl01x serial driver, and
 replacing the bcm2835 GPIO driver with a driver model version (since there
 are no longer clients that don't use driver model).

 See u-boot-dm.git branch rpi-working for the tree this is based on.

 The series,
 Tested-by: Stephen Warren swar...@wwwdotorg.org

 Hmm. I take that back. Patch 4 causes a problem, at least when applied
 on top of u-boot/master from today.

 Basic serial output works just fine, and I can interact with U-Boot
 without issue. However, when the boot scripts execute and load an
 extlinux.conf, U-Boot hangs. Up to patch 3, everything is fine.

 U-Boot 2014.10-4-g7830ed7 (Oct 17 2014 - 20:47:19)

 DRAM:  480 MiB
 WARNING: Caches not enabled
 MMC:   bcm2835_sdhci: 0
 Using default environment

 In:serial
 Out:   lcd
 Err:   lcd
 reading /uEnv.txt
 24 bytes read in 14 ms (1000 Bytes/s)
 Hit any key to stop autoboot:  0
 switch to partitions #0, OK
 mmc0 is current device
 Scanning mmc 0...
 Found /extlinux/extlinux.conf
 Retrieving file: /extlinux/extlinux.conf
 reading /extlinux/extlinux.conf
 (U-Boot hangs here)


 Can you please point me to where I can get an image to try this with?
 Also did you check with dm/next? There may be dependent patches,
 although the nature of the problem suggests not.

 I use (a pretty old version of, but I doubt that matters) RPi
 Foundation's Raspbian image, and compiled the kernel and U-Boot
 according to:

 http://elinux.org/index.php?title=RPi_Upstream_Kernel_Compilationoldid=351104

 http://elinux.org/RPi_U-Boot


I installed the Raspbian image but I don't get uImg.txt nor the same
boot sequence. I am able to boot a kernel though.

Do you have your settings or images uploaded somewhere? Also please
confirm you used dm/next.

Regards,
Simon
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [PATCH 0/4] dm: rpi: Move Raspberry Pi to use driver model

2014-10-20 Thread Stephen Warren
On 10/19/2014 09:14 PM, Simon Glass wrote:
 Hi Stephen,
 
 On 17 October 2014 20:51, Stephen Warren swar...@wwwdotorg.org wrote:
 On 09/30/2014 07:41 PM, Stephen Warren wrote:
 On 09/22/2014 05:30 PM, Simon Glass wrote:
 This series adds driver model support to the GPIO and serial drivers used
 by Raspberry Pi, and moves Raspberry Pi over to driver model.

 This requires adding driver model support to the pl01x serial driver, and
 replacing the bcm2835 GPIO driver with a driver model version (since there
 are no longer clients that don't use driver model).

 See u-boot-dm.git branch rpi-working for the tree this is based on.

 The series,
 Tested-by: Stephen Warren swar...@wwwdotorg.org

 Hmm. I take that back. Patch 4 causes a problem, at least when applied
 on top of u-boot/master from today.

 Basic serial output works just fine, and I can interact with U-Boot
 without issue. However, when the boot scripts execute and load an
 extlinux.conf, U-Boot hangs. Up to patch 3, everything is fine.

 U-Boot 2014.10-4-g7830ed7 (Oct 17 2014 - 20:47:19)

 DRAM:  480 MiB
 WARNING: Caches not enabled
 MMC:   bcm2835_sdhci: 0
 Using default environment

 In:serial
 Out:   lcd
 Err:   lcd
 reading /uEnv.txt
 24 bytes read in 14 ms (1000 Bytes/s)
 Hit any key to stop autoboot:  0
 switch to partitions #0, OK
 mmc0 is current device
 Scanning mmc 0...
 Found /extlinux/extlinux.conf
 Retrieving file: /extlinux/extlinux.conf
 reading /extlinux/extlinux.conf
 (U-Boot hangs here)

 
 Can you please point me to where I can get an image to try this with?
 Also did you check with dm/next? There may be dependent patches,
 although the nature of the problem suggests not.

I use (a pretty old version of, but I doubt that matters) RPi
Foundation's Raspbian image, and compiled the kernel and U-Boot
according to:

http://elinux.org/index.php?title=RPi_Upstream_Kernel_Compilationoldid=351104

http://elinux.org/RPi_U-Boot

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [PATCH 0/4] dm: rpi: Move Raspberry Pi to use driver model

2014-10-19 Thread Simon Glass
Hi Stephen,

On 17 October 2014 20:51, Stephen Warren swar...@wwwdotorg.org wrote:
 On 09/30/2014 07:41 PM, Stephen Warren wrote:
 On 09/22/2014 05:30 PM, Simon Glass wrote:
 This series adds driver model support to the GPIO and serial drivers used
 by Raspberry Pi, and moves Raspberry Pi over to driver model.

 This requires adding driver model support to the pl01x serial driver, and
 replacing the bcm2835 GPIO driver with a driver model version (since there
 are no longer clients that don't use driver model).

 See u-boot-dm.git branch rpi-working for the tree this is based on.

 The series,
 Tested-by: Stephen Warren swar...@wwwdotorg.org

 Hmm. I take that back. Patch 4 causes a problem, at least when applied
 on top of u-boot/master from today.

 Basic serial output works just fine, and I can interact with U-Boot
 without issue. However, when the boot scripts execute and load an
 extlinux.conf, U-Boot hangs. Up to patch 3, everything is fine.

 U-Boot 2014.10-4-g7830ed7 (Oct 17 2014 - 20:47:19)

 DRAM:  480 MiB
 WARNING: Caches not enabled
 MMC:   bcm2835_sdhci: 0
 Using default environment

 In:serial
 Out:   lcd
 Err:   lcd
 reading /uEnv.txt
 24 bytes read in 14 ms (1000 Bytes/s)
 Hit any key to stop autoboot:  0
 switch to partitions #0, OK
 mmc0 is current device
 Scanning mmc 0...
 Found /extlinux/extlinux.conf
 Retrieving file: /extlinux/extlinux.conf
 reading /extlinux/extlinux.conf
 (U-Boot hangs here)


Can you please point me to where I can get an image to try this with?
Also did you check with dm/next? There may be dependent patches,
although the nature of the problem suggests not.

Regards,
Simon
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [PATCH 0/4] dm: rpi: Move Raspberry Pi to use driver model

2014-10-17 Thread Stephen Warren
On 09/30/2014 07:41 PM, Stephen Warren wrote:
 On 09/22/2014 05:30 PM, Simon Glass wrote:
 This series adds driver model support to the GPIO and serial drivers used
 by Raspberry Pi, and moves Raspberry Pi over to driver model.

 This requires adding driver model support to the pl01x serial driver, and
 replacing the bcm2835 GPIO driver with a driver model version (since there
 are no longer clients that don't use driver model).

 See u-boot-dm.git branch rpi-working for the tree this is based on.
 
 The series,
 Tested-by: Stephen Warren swar...@wwwdotorg.org

Hmm. I take that back. Patch 4 causes a problem, at least when applied
on top of u-boot/master from today.

Basic serial output works just fine, and I can interact with U-Boot
without issue. However, when the boot scripts execute and load an
extlinux.conf, U-Boot hangs. Up to patch 3, everything is fine.

U-Boot 2014.10-4-g7830ed7 (Oct 17 2014 - 20:47:19)

DRAM:  480 MiB
WARNING: Caches not enabled
MMC:   bcm2835_sdhci: 0
Using default environment

In:serial
Out:   lcd
Err:   lcd
reading /uEnv.txt
24 bytes read in 14 ms (1000 Bytes/s)
Hit any key to stop autoboot:  0
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0...
Found /extlinux/extlinux.conf
Retrieving file: /extlinux/extlinux.conf
reading /extlinux/extlinux.conf
(U-Boot hangs here)

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [PATCH 0/4] dm: rpi: Move Raspberry Pi to use driver model

2014-09-30 Thread Stephen Warren
On 09/22/2014 05:30 PM, Simon Glass wrote:
 This series adds driver model support to the GPIO and serial drivers used
 by Raspberry Pi, and moves Raspberry Pi over to driver model.
 
 This requires adding driver model support to the pl01x serial driver, and
 replacing the bcm2835 GPIO driver with a driver model version (since there
 are no longer clients that don't use driver model).
 
 See u-boot-dm.git branch rpi-working for the tree this is based on.

The series,
Tested-by: Stephen Warren swar...@wwwdotorg.org

It threw me for a while that this series changes the command-line syntax
from:

gpio input 18

to:

gpio input GPIO18

Hopefully that won't annoy anyone who has scripts that need to be
modified... Still, that's quite minor, so the two RPi patches,

Acked-by: Stephen Warren swar...@wwwdotorg.org
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [PATCH 0/4] dm: rpi: Move Raspberry Pi to use driver model

2014-09-30 Thread Simon Glass
Hi Stephen,

On 30 September 2014 19:41, Stephen Warren swar...@wwwdotorg.org wrote:
 On 09/22/2014 05:30 PM, Simon Glass wrote:
 This series adds driver model support to the GPIO and serial drivers used
 by Raspberry Pi, and moves Raspberry Pi over to driver model.

 This requires adding driver model support to the pl01x serial driver, and
 replacing the bcm2835 GPIO driver with a driver model version (since there
 are no longer clients that don't use driver model).

 See u-boot-dm.git branch rpi-working for the tree this is based on.

 The series,
 Tested-by: Stephen Warren swar...@wwwdotorg.org

 It threw me for a while that this series changes the command-line syntax
 from:

 gpio input 18

 to:

 gpio input GPIO18

 Hopefully that won't annoy anyone who has scripts that need to be
 modified... Still, that's quite minor, so the two RPi patches,

 Acked-by: Stephen Warren swar...@wwwdotorg.org

Thanks for looking at this. Re the issue you raise, there is a patch
for this here, part of the omap3 series:

http://patchwork.ozlabs.org/patch/392039/

Regards,
Simon
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [PATCH 0/4] dm: rpi: Move Raspberry Pi to use driver model

2014-09-22 Thread Simon Glass
This series adds driver model support to the GPIO and serial drivers used
by Raspberry Pi, and moves Raspberry Pi over to driver model.

This requires adding driver model support to the pl01x serial driver, and
replacing the bcm2835 GPIO driver with a driver model version (since there
are no longer clients that don't use driver model).

See u-boot-dm.git branch rpi-working for the tree this is based on.


Simon Glass (4):
  dm: rpi: Convert GPIO driver to driver model
  dm: serial: Tidy up the pl01x driver
  dm: serial: Support driver model in pl01x driver
  dm: rpi: Move serial to driver model

 arch/arm/include/asm/arch-bcm2835/gpio.h   |   9 +
 board/raspberrypi/rpi_b/rpi_b.c|  23 ++
 drivers/gpio/bcm2835_gpio.c| 180 --
 drivers/serial/Makefile|   5 +-
 drivers/serial/serial_pl01x.c  | 373 +
 .../{serial_pl01x.h = serial_pl01x_internal.h}|   0
 include/configs/rpi_b.h|  11 +-
 include/serial_pl01x.h |  27 ++
 8 files changed, 462 insertions(+), 166 deletions(-)
 rename drivers/serial/{serial_pl01x.h = serial_pl01x_internal.h} (100%)
 create mode 100644 include/serial_pl01x.h

-- 
2.1.0.rc2.206.gedb03e5

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot