mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Alexander Aring <alex.aring@gmail.com>
To: Dave Thompson <dthompson@nexusisp.com>
Cc: barebox@lists.infradead.org, carlo.caione@gmail.com
Subject: Re: rpi2 support
Date: Mon, 30 Nov 2015 12:05:28 +0100	[thread overview]
Message-ID: <20151130110522.GA7006@omega> (raw)
In-Reply-To: <1448878678.1471428558@matrix.start.ca>

Hi,

On Mon, Nov 30, 2015 at 05:17:58AM -0500, Dave Thompson wrote:
> Thanks for the quick replies
> rpi have only sold 7M, so not that big in the grand scheme of things
> But the rpi2 has only been out for 8 months, 
> I am sure it will be popular
> 
> And now,, out only a few days,, the pizero, a $5 board
> Essentially an "A" without networking but 40 GPIO pin header
> I bet they will sell a lot of them  (BCM2835)
> 
> For me, I think I will do some version of kexec,
> there are 3
> A bootloader is kind of overkill, sledgehammer to kill flies
> thanks
> dave thompson
> 

I tried a dirty hack, because bcm2835 and bcm2836 are very similar:

diff --git a/arch/arm/mach-bcm2835/Kconfig b/arch/arm/mach-bcm2835/Kconfig
index 134ad9b..aa610da 100644
--- a/arch/arm/mach-bcm2835/Kconfig
+++ b/arch/arm/mach-bcm2835/Kconfig
@@ -9,6 +9,7 @@ choice
 
 config MACH_RPI
        bool "RaspberryPi (BCM2835/ARM1176JZF-S)"
+       select CPU_V7
 
 endchoice
 
diff --git a/arch/arm/mach-bcm2835/include/mach/platform.h b/arch/arm/mach-bcm2835/include/mach/platform.h
index e55085a..ee77f1e 100644
--- a/arch/arm/mach-bcm2835/include/mach/platform.h
+++ b/arch/arm/mach-bcm2835/include/mach/platform.h
@@ -28,7 +28,7 @@
  * This file is manually generated.
  */
 
-#define BCM2835_PERI_BASE      0x20000000
+#define BCM2835_PERI_BASE      0x3f000000
 #define BCM2835_ST_BASE                (BCM2835_PERI_BASE + 0x3000)    /* System Timer */
 #define BCM2835_DMA_BASE       (BCM2835_PERI_BASE + 0x7000)    /* DMA controller */
 #define BCM2835_ARM_BASE       (BCM2835_PERI_BASE + 0xB000)    /* BCM2708 ARM control block */

---

After that I get some printout:

# mbox: Timeout waiting for response
bcm2835: Could not query board revision
mbox: Timeout waiting for response
regulator-bcm2835 regulator-bcm2835: bcm2835: Could not set module 1 power state
uart-pl011 uart0-pl0110: probe failed: Connection timed out
mbox: Timeout waiting for response
mbox: Timeout waiting for response
could not query ARM memory size
initcall rpi_mem_init+0x0/0x7c failed: Connection timed out
bcm2835-gpio bcm2835-gpio0: probed gpiochip0 with base 0
malloc space: 0x03c00000 -> 0x03ffffff (size 4 MiB)
bcm2835_mci bcm2835_mci0: clock not found: -2
bcm2835_mci bcm2835_mci0: probe failed: No such file or directory
no /dev/disk0.0. using default env
environment load /dev/env0: No such file or directory
Maybe you have to create the partition.
running /env/bin/init...

Hit m for menu or any other key to stop autoboot:  0
blspec: blspec_scan_directory: net loader/entries
ifup: No such file or directory
running automount command 'ifup eth0 && mount -t tftp $eth0.serverip /mnt/tftp' failed
global: set parameter dhcp.vendor_id: Invalid argument
ifup: No such file or directory
running automount command 'ifup eth0 && mount -t tftp $eth0.serverip /mnt/tftp' failed
could not open /mnt/tftp/none-linux-rpi: No such file or directory
Booting net failed: No such file or directory
booting net failed: No such file or directory
boot: No such file or directory

type exit to get to the menu
                            barebox@<NULL>:/
# 

---

Maybe a good point to start. :-)

- Alex

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

      reply	other threads:[~2015-11-30 11:05 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-30 10:17 Dave Thompson
2015-11-30 11:05 ` Alexander Aring [this message]

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=20151130110522.GA7006@omega \
    --to=alex.aring@gmail.com \
    --cc=barebox@lists.infradead.org \
    --cc=carlo.caione@gmail.com \
    --cc=dthompson@nexusisp.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox