All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stephen Warren <swarren@wwwdotorg.org>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 0/4] dm: rpi: Move Raspberry Pi to use driver model
Date: Sat, 25 Oct 2014 21:22:06 -0600	[thread overview]
Message-ID: <544C68DE.5090608@wwwdotorg.org> (raw)
In-Reply-To: <CAPnjgZ2omSfD+oghq1COfi=-eg=TfHJp38VsQ2v=6TpjaXDzuw@mail.gmail.com>

On 10/21/2014 08:04 PM, Simon Glass wrote:
> Hi Stephen,
> 
> On 20 October 2014 20:23, Stephen Warren <swarren@wwwdotorg.org> wrote:
>> On 10/19/2014 09:14 PM, Simon Glass wrote:
>>> Hi Stephen,
>>>
>>> On 17 October 2014 20:51, Stephen Warren <swarren@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 <swarren@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-00004-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_Compilation&oldid=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)

  parent reply	other threads:[~2014-10-26  3:22 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-22 23:30 [U-Boot] [PATCH 0/4] dm: rpi: Move Raspberry Pi to use driver model Simon Glass
2014-09-22 23:30 ` [U-Boot] [PATCH 1/4] dm: rpi: Convert GPIO driver to " Simon Glass
2014-10-01  1:40   ` Stephen Warren
2014-10-01  2:15     ` Simon Glass
2014-10-23  3:07   ` Simon Glass
2014-09-22 23:30 ` [U-Boot] [PATCH 2/4] dm: serial: Tidy up the pl01x driver Simon Glass
2014-10-23  3:07   ` Simon Glass
2015-04-21 11:56   ` Linus Walleij
2015-04-21 12:00     ` Linus Walleij
2014-09-22 23:30 ` [U-Boot] [PATCH 3/4] dm: serial: Support driver model in " Simon Glass
2014-10-23  3:07   ` Simon Glass
2014-09-22 23:30 ` [U-Boot] [PATCH 4/4] dm: rpi: Move serial to driver model Simon Glass
2014-10-01  1:41 ` [U-Boot] [PATCH 0/4] dm: rpi: Move Raspberry Pi to use " Stephen Warren
2014-10-01  2:17   ` Simon Glass
2014-10-18  2:51   ` Stephen Warren
2014-10-20  3:14     ` Simon Glass
2014-10-21  2:23       ` Stephen Warren
2014-10-22  2:04         ` Simon Glass
2014-10-23  3:21           ` Simon Glass
2014-10-26  3:22           ` Stephen Warren [this message]
2014-10-26  3:43           ` Stephen Warren
2014-10-26  3:47             ` Simon Glass
2014-10-26  5:08               ` Stephen Warren
2014-10-26  5:10                 ` Simon Glass
2014-11-24 18:38                   ` Simon Glass

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=544C68DE.5090608@wwwdotorg.org \
    --to=swarren@wwwdotorg.org \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.