Hi all,
I'm trying to find out the best method to define the root=
parameter when booting the linux kernel from barebox.
My system boots from an sd card partitioned with a GPT.
The sd card has two independent set of partitions with
the following labels:
1) boot_1 + rootfs_1
2) boot_2 +
Hello,
I'm trying to get Barebox working on my Globalscale Mirabox, and I'm
struggling.
I have performed the following:
1. git clone git://git.pengutronix.de/barebox
2. cd into barebox and copy extracted binary.0 into
arch/arm/boards/globalscale-mirabox/
3. Edit
The pointer to the struct device_d *dev is also saved to the struct mci_host.
Get rid of it.
Signed-off-by: Steffen Trumtrar
---
drivers/mci/dw_mmc.c | 36 +---
1 file changed, 17 insertions(+), 19 deletions(-)
diff --git a/drivers/mci/dw_mmc.c
Signed-off-by: Steffen Trumtrar
---
arch/arm/mach-socfpga/Kconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/arm/mach-socfpga/Kconfig b/arch/arm/mach-socfpga/Kconfig
index 58e4876f5c5e..4715e11434a6 100644
--- a/arch/arm/mach-socfpga/Kconfig
+++ b/arch/arm/mach-socfpga/Kconfig
@@
Signed-off-by: Steffen Trumtrar
---
arch/arm/mach-socfpga/include/mach/arria10-regs.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/arm/mach-socfpga/include/mach/arria10-regs.h
b/arch/arm/mach-socfpga/include/mach/arria10-regs.h
index 931876f43a17..4464f0623187 100644
---
From: Enrico Jorns
A prebootloader image might also contain a fully working barebox and
allows to be booted second stage. Thus we add a handler here to give it
a try.
Signed-off-by: Enrico Jorns
---
arch/arm/lib32/bootm.c | 7 +++
1 file changed, 7 insertions(+)
diff --git
Hi!
This series allows configuring the FPGA of an Arria10 SoCFPGA early
in the bootprocess from barebox. Early means: before the SDRAM is used.
The patches where developed for and tested on the Achilles board.
While at it, some cleanup patches are included, too.
Steffen
Enrico Jorns (1):
Signed-off-by: Steffen Trumtrar
---
drivers/mci/dw_mmc.c | 99 ++--
1 file changed, 50 insertions(+), 49 deletions(-)
diff --git a/drivers/mci/dw_mmc.c b/drivers/mci/dw_mmc.c
index 0dd4c1f44154..473942cbe0f9 100644
--- a/drivers/mci/dw_mmc.c
+++
Instead of copy+pasting the debug_ll messages to every new board,
move them to the respective functions.
Signed-off-by: Steffen Trumtrar
---
arch/arm/boards/reflex-achilles/lowlevel.c | 4
arch/arm/mach-socfpga/arria10-init.c | 2 ++
arch/arm/mach-socfpga/arria10-sdram.c | 2 ++
The driver_d is missing the name property. When the reset driver is used in a
non-of setup, this will result in an error during device_registration where
the dev->name is matched to the driver->name.
Signed-off-by: Steffen Trumtrar
---
drivers/reset/reset-socfpga.c | 1 +
1 file changed, 1
Previously the FPGA was configured externally on the Achilles. On newer versions
this is changed and barebox has to configure the FPGA before the SDRAM can be
used.
If the FPGA is configured via JTAG or from an external memory, the *-bringup
version can be used.
Signed-off-by: Steffen Trumtrar
Signed-off-by: Steffen Trumtrar
---
arch/arm/dts/socfpga_arria10_achilles.dts | 8 ++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/arch/arm/dts/socfpga_arria10_achilles.dts
b/arch/arm/dts/socfpga_arria10_achilles.dts
index 0af7809adcce..60d99248dc46 100644
---
Signed-off-by: Steffen Trumtrar
---
arch/arm/mach-socfpga/include/mach/arria10-regs.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/arm/mach-socfpga/include/mach/arria10-regs.h
b/arch/arm/mach-socfpga/include/mach/arria10-regs.h
index 5569574e157d..931876f43a17 100644
---
Some Arria10 boards don't have the FPGA programmed externally.
Instead barebox needs to do that. As the Arria10 has the SDRAM
controller in the FPGA, the first thing we need to do is,
configure the FPGA before the SDRAM can even be used.
It works like this:
1. boot ROM fetches the PBL from MMC
Arria10 init code resets all peripherals. Convert this to keep the bootmedium
out of reset and keep the setup done by the boot ROM.
Signed-off-by: Steffen Trumtrar
---
arch/arm/mach-socfpga/arria10-bootsource.c | 16 +--
arch/arm/mach-socfpga/arria10-reset-manager.c | 33
Signed-off-by: Steffen Trumtrar
---
drivers/mci/dw_mmc.c | 115 +-
drivers/mci/dw_mmc.h | 140 +++
2 files changed, 141 insertions(+), 114 deletions(-)
create mode 100644 drivers/mci/dw_mmc.h
diff --git
The newer dtc has stricter checks on devicetrees. Fix the warnings.
Signed-off-by: Steffen Trumtrar
---
arch/arm/dts/socfpga_arria10_achilles.dts | 12 ++--
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/arch/arm/dts/socfpga_arria10_achilles.dts
Add the switch 's' to fixup the image size into the barebox header.
This is used by the Arria10 PBL code to know the complete image size.
Signed-off-by: Steffen Trumtrar
---
scripts/socfpga_mkimage.c | 25 +++--
1 file changed, 23 insertions(+), 2 deletions(-)
diff --git
Signed-off-by: Steffen Trumtrar
---
arch/arm/boards/reflex-achilles/pinmux-config-arria10.c | 2 +-
arch/arm/boards/reflex-achilles/pll-config-arria10.c| 16
2 files changed, 9 insertions(+), 9 deletions(-)
diff --git
Signed-off-by: Steffen Trumtrar
---
arch/arm/mach-socfpga/arria10-generic.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm/mach-socfpga/arria10-generic.c
b/arch/arm/mach-socfpga/arria10-generic.c
index 6a10c19d1417..53ec278739cc 100644
---
Move the setup of the shared- and fpgapins to its own function.
These pins can only be configured and let out of reset after the FPGA has been
programmed.
Signed-off-by: Steffen Trumtrar
---
arch/arm/boards/reflex-achilles/lowlevel.c | 1 +
arch/arm/mach-socfpga/arria10-init.c | 49
Signed-off-by: Steffen Trumtrar
---
arch/arm/configs/socfpga-arria10_defconfig | 7 +++
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/arch/arm/configs/socfpga-arria10_defconfig
b/arch/arm/configs/socfpga-arria10_defconfig
index e661895d6e6c..53e932d64b2a 100644
---
Sascha,
while looking for something different, I noticed the following patches
in one of your personal branches:
b2f6eeb Sascha Hauer ● ARM: i.MX28: Add memory size detection
eb607ae Sascha Hauer ● ARM: i.MX23: Add memory size detection
They look much cleaner than my patch, so if you
23 matches
Mail list logo