AM33xx devicetree support
Subsystems (3)
PATCH 1/1 AM33xx devicetree support
The following series based on the previous patches switch the am33xx based boards (Phytec phyCORE and Beaglebone(black)) over to devicetree and multi image support.
I've tested this on both boards in both MLO and regular builds. They start, the devices come up and things seem to work, but more testing would be welcomed. Wait, I just realized that the network on Beaglebone black stopped working, I'll have a look.
Sascha
The following changes since commit 9df02e05f5fff6dafab5c140ce92dc33c196e5f9:
Merge branch 'for-next/x86' into next (2013-11-26 17:22:06 +0100)
are available in the git repository at:
git://git.pengutronix.de/git/barebox.git work/am335x
for you to fetch changes up to 82f44858223a2e61cb825ea6f68b6d2f77975e6e:
ARM: OMAP: consolidate am335x mlo defconfigs (2013-11-26 17:37:36 +0100)
----------------------------------------------------------------
Sascha Hauer (17):
ARM: Make multi images startup process simpler
ARM: Make ENTRY_FUNCTION more robust
ARM: Add base am335x-phytec-phycore devicetree file
ARM: am335x phytec phyCORE: Switch to devicetree probe support
ARM: am33xx Phytec phyCORE: initialize debug UART
ARM: am33xx Phytec phyCORE: Switch to multiimage support
ARM: am33xx Phytec phyCORE: update defconfig
ARM: dts: Add am33xx beaglebone(black) dts files
ARM: am33xx: beaglebone: remove mlo_large_defconfig
ARM: beaglebone: Add memory to devicetrees
ARM: beaglebone: Switch to devicetree and multiimage
ARM: am335x Phytec phyCORE: Move partition descriptions to devicetree
ARM: OMAP: Safe boot info in fixed SRAM address
ARM: am335x Phytec phyCORE: configure environment from devicetree
ARM: beaglebone: configure console from devicetree
ARM: OMAP: introduce multiboard support and move am33xx boards to it
ARM: OMAP: consolidate am335x mlo defconfigs
arch/arm/boards/beaglebone/beaglebone.h | 2 +
arch/arm/boards/beaglebone/board.c | 121 +-------
arch/arm/boards/beaglebone/lowlevel.c | 67 ++++-
arch/arm/boards/dfi-fs700-m60/lowlevel.c | 8 +-
arch/arm/boards/dmo-mx6-realq7/lowlevel.c | 4 +-
arch/arm/boards/ebv-socrates/lowlevel.c | 6 +-
arch/arm/boards/efika-mx-smartbook/lowlevel.c | 4 +-
arch/arm/boards/freescale-mx51-pdk/lowlevel.c | 4 +-
arch/arm/boards/freescale-mx53-loco/lowlevel.c | 4 +-
arch/arm/boards/freescale-mx53-vmx53/lowlevel.c | 4 +-
arch/arm/boards/freescale-mx6-sabrelite/lowlevel.c | 4 +-
arch/arm/boards/gk802/lowlevel.c | 4 +-
arch/arm/boards/pcm051/Makefile | 2 +-
arch/arm/boards/pcm051/board.c | 166 +----------
arch/arm/boards/pcm051/env/init/mtdparts-nand | 11 -
arch/arm/boards/pcm051/env/init/mtdparts-nor | 12 -
arch/arm/boards/pcm051/lowlevel.c | 44 ++-
arch/arm/boards/pcm051/mux.c | 65 -----
arch/arm/boards/pcm051/mux.h | 4 -
arch/arm/boards/phytec-pfla02/lowlevel.c | 8 +-
arch/arm/boards/solidrun-cubox/lowlevel.c | 4 +-
arch/arm/boards/terasic-sockit/lowlevel.c | 8 +-
arch/arm/boards/toradex-colibri-t20-iris/entry.c | 4 +-
arch/arm/boards/toshiba-ac100/entry.c | 4 +-
arch/arm/boards/tqma6x/lowlevel.c | 8 +-
arch/arm/configs/am335x_beaglebone_defconfig | 8 +-
.../configs/am335x_beaglebone_mlo_large_defconfig | 55 ----
.../configs/am335x_beaglebone_mlo_small_defconfig | 29 --
.../{pcm051_mlo_defconfig => am335x_mlo_defconfig} | 27 +-
arch/arm/configs/pcm051_defconfig | 34 ++-
arch/arm/cpu/Makefile | 2 +-
arch/arm/cpu/start-images.c | 49 ----
arch/arm/cpu/uncompress.c | 9 +-
arch/arm/dts/Makefile | 6 +
arch/arm/dts/am335x-bone-common.dtsi | 300 ++++++++++++++++++++
arch/arm/dts/am335x-bone.dts | 39 +++
arch/arm/dts/am335x-boneblack.dts | 88 ++++++
arch/arm/dts/am335x-phytec-phycore.dts | 304 +++++++++++++++++++++
arch/arm/dts/tps65217.dtsi | 56 ++++
arch/arm/include/asm/barebox-arm.h | 16 +-
arch/arm/mach-omap/Kconfig | 34 ++-
arch/arm/mach-omap/Makefile | 4 +-
arch/arm/mach-omap/am33xx_generic.c | 3 +-
arch/arm/mach-omap/include/mach/am33xx-generic.h | 3 +-
arch/arm/mach-omap/include/mach/am33xx-silicon.h | 1 +
arch/arm/mach-omap/include/mach/generic.h | 2 -
arch/arm/mach-omap/include/mach/omap3-generic.h | 2 +-
arch/arm/mach-omap/include/mach/omap3-silicon.h | 1 +
arch/arm/mach-omap/include/mach/omap4-generic.h | 2 +-
arch/arm/mach-omap/include/mach/omap4-silicon.h | 3 +-
arch/arm/mach-omap/omap3_generic.c | 3 +-
arch/arm/mach-omap/omap4_generic.c | 3 +-
arch/arm/mach-omap/omap_bootinfo.S | 25 --
arch/arm/mach-omap/omap_generic.c | 17 +-
images/Makefile | 15 +-
images/Makefile.am33xx | 30 ++
56 files changed, 1077 insertions(+), 665 deletions(-)
delete mode 100644 arch/arm/boards/pcm051/env/init/mtdparts-nand
delete mode 100644 arch/arm/boards/pcm051/env/init/mtdparts-nor
delete mode 100644 arch/arm/boards/pcm051/mux.c
delete mode 100644 arch/arm/boards/pcm051/mux.h
delete mode 100644 arch/arm/configs/am335x_beaglebone_mlo_large_defconfig
delete mode 100644 arch/arm/configs/am335x_beaglebone_mlo_small_defconfig
rename arch/arm/configs/{pcm051_mlo_defconfig => am335x_mlo_defconfig} (54%)
delete mode 100644 arch/arm/cpu/start-images.c
create mode 100644 arch/arm/dts/am335x-bone-common.dtsi
create mode 100644 arch/arm/dts/am335x-bone.dts
create mode 100644 arch/arm/dts/am335x-boneblack.dts
create mode 100644 arch/arm/dts/am335x-phytec-phycore.dts
create mode 100644 arch/arm/dts/tps65217.dtsi
delete mode 100644 arch/arm/mach-omap/omap_bootinfo.S
create mode 100644 images/Makefile.am33xx_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
PATCH 1/17 ARM: Make multi images startup process simpler
The multi image startup process used to have three binaries involved:
- The lowlevel board code to initialize SDRAM
- the uncompressor
- the regular (compressed) barebox binary
Drop the uncompressor and put the uncompress code into the lowlevel board code binary. This makes the startup process easier.
--- arch/arm/cpu/Makefile | 2 +- arch/arm/cpu/start-images.c | 49 --------------------------------------------- arch/arm/cpu/uncompress.c | 9 +++++---- images/Makefile | 12 +++-------- 4 files changed, 9 insertions(+), 63 deletions(-) delete mode 100644 arch/arm/cpu/start-images.c
arch/arm/cpu/Makefile +1 -1
@@ -23,7 +23,7 @@ obj-$(CONFIG_CACHE_L2X0) += cache-l2x0.o pbl-y += setupc.o pbl-$(CONFIG_PBL_SINGLE_IMAGE) += start-pbl.o -pbl-$(CONFIG_PBL_MULTI_IMAGES) += start-images.o uncompress.o +pbl-$(CONFIG_PBL_MULTI_IMAGES) += uncompress.o obj-y += common.o cache.o pbl-y += common.o cache.o
arch/arm/cpu/start-images.c deleted +0 -49
49 lines not on this page · raw message
arch/arm/cpu/uncompress.c +5 -4
@@ -43,7 +43,7 @@ static int __attribute__((__used__)) __attribute__((__section__ (".image_end" ))) __image_end_dummy = 0xdeadbeef; -static void noinline uncompress(uint32_t membase, +static void __noreturn noinline uncompress_start_payload(uint32_t membase,uint32_t memsize,uint32_t boarddata) {uint32_t offset;
@@ -99,12 +99,13 @@ static void noinline uncompress(uint32_t membase, }/* -* Generic second stage pbl uncompressor entry +* For the multi images startup process board code jumps here. We will uncompress +* the attached barebox image and start it. */ -ENTRY_FUNCTION (start_uncompress)(uint32_t membase,uint32_t memsize, +void __naked __noreturn barebox_arm_entry (uint32_t membase,uint32_t memsize,uint32_t boarddata) {arm_setup_stack (membase + memsize -16 ); -uncompress (membase, memsize, boarddata); +uncompress_start_payload (membase, memsize, boarddata); }
images/Makefile +3 -9
@@ -69,10 +69,10 @@ $(obj)/%.pblb: $(obj)/%.pbl FORCE quiet_cmd_pblx ?= PBLX $@ cmd_pblx ?= cat $(obj)/$(patsubst %.pblx,%.pblb,$(2)) > $@; \ - $(call size_append, $(obj)/barebox.x) >> $@; \ - cat $(obj)/barebox.x >> $@ + $(call size_append, $(obj)/barebox.z) >> $@; \ + cat $(obj)/barebox.z >> $@ -$(obj)/%.pblx: $(obj)/%.pblb $(obj)/barebox.x FORCE +$(obj)/%.pblx: $(obj)/%.pblb $(obj)/barebox.z FORCE $(call if_changed,pblx,$(@F)) $(obj)/%.s: $(obj)/% FORCE
@@ -93,12 +93,6 @@ quiet_cmd_selfextract = COMP $@ $(call size_append, $<) >> $@; \ cat $< >> $@ -pblx-y += start_uncompress -# barebox.x - self extracting barebox binary -# ---------------------------------------------------------------- -$(obj)/barebox.x: $(obj)/barebox.z $(obj)/start_uncompress.pblb FORCE - $(call if_changed,selfextract) - # %.img - create a copy from another file # ---------------------------------------------------------------- .SECONDEXPANSION:
Signature · 7 lines
1.8.4.2 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
PATCH 2/17 ARM: Make ENTRY_FUNCTION more robust
In reply to Sascha HauerAn entry function should begin with a exception header. For this to work properly the entry function should not contain any code which gcc might put before the header. To make this sure change the ENTRY_FUNCTION macro so that it generates one function which only contains the exception header and a second function which contains the original body of the entry function.
--- arch/arm/boards/dfi-fs700-m60/lowlevel.c | 8 ++------ arch/arm/boards/dmo-mx6-realq7/lowlevel.c | 4 +--- arch/arm/boards/ebv-socrates/lowlevel.c | 6 ++---- arch/arm/boards/efika-mx-smartbook/lowlevel.c | 4 +--- arch/arm/boards/freescale-mx51-pdk/lowlevel.c | 4 +--- arch/arm/boards/freescale-mx53-loco/lowlevel.c | 4 +--- arch/arm/boards/freescale-mx53-vmx53/lowlevel.c | 4 +--- arch/arm/boards/freescale-mx6-sabrelite/lowlevel.c | 4 +--- arch/arm/boards/gk802/lowlevel.c | 4 +--- arch/arm/boards/phytec-pfla02/lowlevel.c | 8 ++------ arch/arm/boards/solidrun-cubox/lowlevel.c | 4 +--- arch/arm/boards/terasic-sockit/lowlevel.c | 8 ++------ arch/arm/boards/toradex-colibri-t20-iris/entry.c | 4 +--- arch/arm/boards/toshiba-ac100/entry.c | 4 +--- arch/arm/boards/tqma6x/lowlevel.c | 8 ++------ arch/arm/include/asm/barebox-arm.h | 16 +++++++++++++--- 16 files changed, 33 insertions(+), 61 deletions(-)
arch/arm/boards/dfi-fs700-m60/lowlevel.c +2 -6
@@ -61,12 +61,10 @@ static inline void early_uart_init_6s(void)extern char __dtb_imx6q_dfi_fs700_m60_6q_start[]; -ENTRY_FUNCTION (start_imx6q_dfi_fs700_m60_6q)(void ) +ENTRY_FUNCTION(start_imx6q_dfi_fs700_m60_6q, r0, r1, r2) {uint32_t fdt; -__barebox_arm_head (); -arm_cpu_lowlevel_init ();arm_setup_stack (0x00940000 -8 );
@@ -80,13 +78,11 @@ ENTRY_FUNCTION(start_imx6q_dfi_fs700_m60_6q)(void)extern char __dtb_imx6dl_dfi_fs700_m60_6s_start[]; -ENTRY_FUNCTION (start_imx6dl_dfi_fs700_m60_6s)(void ) +ENTRY_FUNCTION(start_imx6dl_dfi_fs700_m60_6s, r0, r1, r2) {uint32_t fdt;int i; -__barebox_arm_head (); -arm_cpu_lowlevel_init ();arm_setup_stack (0x00920000 -8 );
arch/arm/boards/dmo-mx6-realq7/lowlevel.c +1 -3
@@ -140,12 +140,10 @@ static void sdram_init(void)extern char __dtb_imx6q_dmo_realq7_start[]; -ENTRY_FUNCTION (start_imx6_realq7)(void ) +ENTRY_FUNCTION(start_imx6_realq7, r0, r1, r2) {uint32_t fdt; -__barebox_arm_head (); -arm_cpu_lowlevel_init ();arm_setup_stack (0x00940000 -8 );
arch/arm/boards/ebv-socrates/lowlevel.c +2 -4
@@ -45,7 +45,7 @@ static inline void ledoff(void)extern char __dtb_socfpga_cyclone5_socrates_start[]; -ENTRY_FUNCTION (start_socfpga_socrates)(void ) +ENTRY_FUNCTION(start_socfpga_socrates, r0, r1, r2) {uint32_t fdt;
@@ -87,10 +87,8 @@ static noinline void socrates_entry(void)barebox_arm_entry (0x0 ,SZ_1G ,0 ); } -ENTRY_FUNCTION (start_socfpga_socrates_xload)(void ) +ENTRY_FUNCTION(start_socfpga_socrates_xload, r0, r1, r2) { -__barebox_arm_head (); -arm_cpu_lowlevel_init ();arm_setup_stack (0xffff0000 +SZ_64K -SZ_4K -16 );
arch/arm/boards/efika-mx-smartbook/lowlevel.c +1 -3
@@ -6,12 +6,10 @@extern char __dtb_imx51_genesi_efika_sb_start[]; -ENTRY_FUNCTION (start_imx51_genesi_efikasb)(void ) +ENTRY_FUNCTION(start_imx51_genesi_efikasb, r0, r1, r2) {uint32_t fdt; -__barebox_arm_head (); -arm_cpu_lowlevel_init ();arm_setup_stack (0x20000000 -16 );imx51_init_lowlevel (800 );
arch/arm/boards/freescale-mx51-pdk/lowlevel.c +1 -3
@@ -5,12 +5,10 @@extern char __dtb_imx51_babbage_start[]; -ENTRY_FUNCTION (start_imx51_babbage)(void ) +ENTRY_FUNCTION(start_imx51_babbage, r0, r1, r2) {uint32_t fdt; -__barebox_arm_head (); -arm_cpu_lowlevel_init (); fdt = (uint32_t )__dtb_imx51_babbage_start -get_runtime_offset ();
arch/arm/boards/freescale-mx53-loco/lowlevel.c +1 -3
@@ -5,12 +5,10 @@extern char __dtb_imx53_qsb_start[]; -ENTRY_FUNCTION (start_imx53_loco)(void ) +ENTRY_FUNCTION(start_imx53_loco, r0, r1, r2) {uint32_t fdt; -__barebox_arm_head (); -arm_cpu_lowlevel_init (); fdt = (uint32_t )__dtb_imx53_qsb_start -get_runtime_offset ();
arch/arm/boards/freescale-mx53-vmx53/lowlevel.c +1 -3
@@ -5,12 +5,10 @@extern char __dtb_imx53_voipac_bsb_start[]; -ENTRY_FUNCTION (start_imx53_vmx53)(void ) +ENTRY_FUNCTION(start_imx53_vmx53, r0, r1, r2) {uint32_t fdt; -__barebox_arm_head (); -arm_cpu_lowlevel_init (); fdt = (uint32_t )__dtb_imx53_voipac_bsb_start -get_runtime_offset ();
arch/arm/boards/freescale-mx6-sabrelite/lowlevel.c +1 -3
@@ -5,12 +5,10 @@extern char __dtb_imx6q_sabrelite_start[]; -ENTRY_FUNCTION (start_imx6_sabrelite)(void ) +ENTRY_FUNCTION(start_imx6_sabrelite, r0, r1, r2) {uint32_t fdt; -__barebox_arm_head (); -arm_cpu_lowlevel_init (); fdt = (uint32_t )__dtb_imx6q_sabrelite_start -get_runtime_offset ();
arch/arm/boards/gk802/lowlevel.c +1 -3
@@ -5,12 +5,10 @@extern char __dtb_imx6q_gk802_start[]; -ENTRY_FUNCTION (start_imx6_gk802)(void ) +ENTRY_FUNCTION(start_imx6_gk802, r0, r1, r2) {uint32_t fdt; -__barebox_arm_head (); -arm_cpu_lowlevel_init (); fdt = (uint32_t )__dtb_imx6q_gk802_start -get_runtime_offset ();
arch/arm/boards/phytec-pfla02/lowlevel.c +2 -6
@@ -55,12 +55,10 @@ static inline void setup_uart(void)extern char __dtb_imx6q_phytec_pbab01_start[]; -ENTRY_FUNCTION (start_phytec_pbab01_1gib)(void ) +ENTRY_FUNCTION(start_phytec_pbab01_1gib, r0, r1, r2) {uint32_t fdt; -__barebox_arm_head (); -arm_cpu_lowlevel_init ();arm_setup_stack (0x00920000 -8 );
@@ -73,12 +71,10 @@ ENTRY_FUNCTION(start_phytec_pbab01_1gib)(void)barebox_arm_entry (0x10000000 ,SZ_1G , fdt); } -ENTRY_FUNCTION (start_phytec_pbab01_2gib)(void ) +ENTRY_FUNCTION(start_phytec_pbab01_2gib, r0, r1, r2) {uint32_t fdt; -__barebox_arm_head (); -arm_cpu_lowlevel_init ();arm_setup_stack (0x00920000 -8 );
arch/arm/boards/solidrun-cubox/lowlevel.c +1 -3
@@ -23,12 +23,10 @@extern char __dtb_dove_cubox_start[]; -ENTRY_FUNCTION (start_solidrun_cubox)(void ) +ENTRY_FUNCTION(start_solidrun_cubox, r0, r1, r2) {uint32_t fdt; -__barebox_arm_head (); -arm_cpu_lowlevel_init (); fdt = (uint32_t )__dtb_dove_cubox_start -get_runtime_offset ();
arch/arm/boards/terasic-sockit/lowlevel.c +2 -6
@@ -45,12 +45,10 @@ static inline void ledoff(int led)extern char __dtb_socfpga_cyclone5_sockit_start[]; -ENTRY_FUNCTION (start_socfpga_sockit)(void ) +ENTRY_FUNCTION(start_socfpga_sockit, r0, r1, r2) {uint32_t fdt; -__barebox_arm_head (); -arm_cpu_lowlevel_init (); fdt = (uint32_t )__dtb_socfpga_cyclone5_sockit_start -get_runtime_offset ();
@@ -87,10 +85,8 @@ static noinline void sockit_entry(void)barebox_arm_entry (0x0 ,SZ_1G ,0 ); } -ENTRY_FUNCTION (start_socfpga_sockit_xload)(void ) +ENTRY_FUNCTION(start_socfpga_sockit_xload, r0, r1, r2) { -__barebox_arm_head (); -arm_cpu_lowlevel_init ();arm_setup_stack (0xffff0000 +SZ_64K -SZ_4K -16 );
arch/arm/boards/toradex-colibri-t20-iris/entry.c +1 -3
@@ -22,12 +22,10 @@extern char __dtb_tegra20_colibri_iris_start[]; -ENTRY_FUNCTION (start_toradex_colibri_t20_iris)(void ) +ENTRY_FUNCTION(start_toradex_colibri_t20_iris, r0, r1, r2) {uint32_t fdt; -__barebox_arm_head (); -tegra_cpu_lowlevel_setup (); fdt = (uint32_t )__dtb_tegra20_colibri_iris_start -get_runtime_offset ();
arch/arm/boards/toshiba-ac100/entry.c +1 -3
@@ -22,12 +22,10 @@extern char __dtb_tegra20_paz00_start[]; -ENTRY_FUNCTION (start_toshiba_ac100)(void ) +ENTRY_FUNCTION(start_toshiba_ac100, r0, r1, r2) {uint32_t fdt; -__barebox_arm_head (); -tegra_cpu_lowlevel_setup (); fdt = (uint32_t )__dtb_tegra20_paz00_start -get_runtime_offset ();
arch/arm/boards/tqma6x/lowlevel.c +2 -6
@@ -41,12 +41,10 @@ static inline void setup_uart(void)extern char __dtb_imx6q_mba6x_start[];extern char __dtb_imx6dl_mba6x_start[]; -ENTRY_FUNCTION (start_imx6q_mba6x)(void ) +ENTRY_FUNCTION(start_imx6q_mba6x, r0, r1, r2) {uint32_t fdt; -__barebox_arm_head (); -arm_cpu_lowlevel_init ();arm_setup_stack (0x00920000 -8 );
@@ -64,12 +62,10 @@ ENTRY_FUNCTION(start_imx6q_mba6x)(void)barebox_arm_entry (0x10000000 ,SZ_1G , fdt); } -ENTRY_FUNCTION (start_imx6dl_mba6x)(void ) +ENTRY_FUNCTION(start_imx6dl_mba6x, r0, r1, r2) {uint32_t fdt; -__barebox_arm_head (); -arm_cpu_lowlevel_init ();arm_setup_stack (0x00920000 -8 );
arch/arm/include/asm/barebox-arm.h +13 -3
@@ -79,8 +79,18 @@ static inline unsigned long arm_barebox_image_place(unsigned long endmem) return endmem; } -#define ENTRY_FUNCTION (name) \ - void __naked __section(.text_head_entry_##name) \ - name +#define ENTRY_FUNCTION (name, arg0, arg1, arg2) \ + static void __##name(uint32_t, uint32_t, uint32_t); \ + \ + void __naked __section(.text_head_entry_##name) name \ + (uint32_t r0, uint32_t r1, uint32_t r2) \ + { \ + __barebox_arm_head(); \ + __##name(r0, r1, r2); \ + } \ + static void __naked noinline __##name \ + (uint32_t arg0, uint32_t arg1, uint32_t arg2) + +#endif /* _BAREBOX_ARM_H_ */
Signature · 7 lines
1.8.4.2 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
PATCH 3/17 ARM: Add base am335x-phytec-phycore devicetree file
In reply to Sascha Hauer--- arch/arm/dts/Makefile | 2 + arch/arm/dts/am335x-phytec-phycore.dts | 233 +++++++++++++++++++++++++++++++++ 2 files changed, 235 insertions(+) create mode 100644 arch/arm/dts/am335x-phytec-phycore.dts
arch/arm/dts/Makefile +2 -0
@@ -1,3 +1,5 @@ +dtb-$(CONFIG_ARCH_AM33XX) += \ + am335x-phytec-phycore.dtb dtb-$(CONFIG_ARCH_IMX51) += imx51-babbage.dtb \ imx51-genesi-efika-sb.dtb dtb-$(CONFIG_ARCH_IMX53) += imx53-qsb.dtb \
arch/arm/dts/am335x-phytec-phycore.dts new file +233 -0
233 lines not on this page · raw message
Signature · 7 lines
1.8.4.2 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
PATCH 4/17 ARM: am335x phytec phyCORE: Switch to devicetree probe support
In reply to Sascha HauerThis switches the am335x Phytec phyCORE to devicetree probe support. For now we use a linked in dtb.
--- arch/arm/boards/pcm051/Makefile | 2 +- arch/arm/boards/pcm051/board.c | 149 ++-------------------------------- arch/arm/boards/pcm051/mux.c | 65 --------------- arch/arm/boards/pcm051/mux.h | 4 - arch/arm/configs/pcm051_defconfig | 26 ++++-- arch/arm/configs/pcm051_mlo_defconfig | 8 +- 6 files changed, 32 insertions(+), 222 deletions(-) delete mode 100644 arch/arm/boards/pcm051/mux.c delete mode 100644 arch/arm/boards/pcm051/mux.h
arch/arm/boards/pcm051/Makefile +1 -1
@@ -1,2 +1,2 @@ lwl-y += lowlevel.o -obj-y += board.o mux.o +obj-y += board.o
arch/arm/boards/pcm051/board.c +8 -141
180 lines not on this page · raw message
arch/arm/boards/pcm051/mux.c deleted +0 -65
65 lines not on this page · raw message
arch/arm/boards/pcm051/mux.h deleted +0 -4
@@ -1,4 +0,0 @@ -extern void pcm051_enable_mmc0_pin_mux (void ); -extern void pcm051_enable_nand_pin_mux (void ); -extern void pcm051_enable_user_led_pin_mux (void ); -extern void pcm051_enable_user_btn_pin_mux (void );
arch/arm/configs/pcm051_defconfig +17 -9
@@ -1,16 +1,21 @@ +CONFIG_BUILTIN_DTB=y +CONFIG_BUILTIN_DTB_NAME="am335x-phytec-phycore" CONFIG_ARCH_OMAP=y -CONFIG_ARCH_AM33XX=y CONFIG_BAREBOX_UPDATE_AM33XX_SPI_NOR_MLO=y CONFIG_MACH_PCM051=y -CONFIG_OMAP_UART1=y -CONFIG_AEABI=y +CONFIG_THUMB2_BAREBOX=y CONFIG_ARM_BOARD_APPEND_ATAG=y CONFIG_CMD_ARM_MMUINFO=y CONFIG_ARM_OPTIMZED_STRING_FUNCTIONS=y CONFIG_ARM_UNWIND=y +CONFIG_PBL_IMAGE=y +CONFIG_PBL_RELOCATABLE=y CONFIG_MMU=y -CONFIG_TEXT_BASE=0x8f000000 -CONFIG_MALLOC_SIZE=0x2000000 +CONFIG_TEXT_BASE=0x0 +CONFIG_MALLOC_SIZE=0x0 +CONFIG_MALLOC_TLSF=y +CONFIG_KALLSYMS=y +CONFIG_RELOCATABLE=y CONFIG_PROMPT="barebox@pcm051>" CONFIG_LONGHELP=y CONFIG_HUSH_FANCY_PROMPT=y
@@ -21,9 +26,6 @@ CONFIG_MENU=y CONFIG_DEFAULT_ENVIRONMENT_GENERIC_NEW=y CONFIG_DEFAULT_ENVIRONMENT_PATH="arch/arm/boards/pcm051/env" CONFIG_DEBUG_INFO=y -CONFIG_ENABLE_FLASH_NOISE=y -CONFIG_ENABLE_PARTITION_NOISE=y -CONFIG_ENABLE_DEVICE_NOISE=y CONFIG_CMD_EDIT=y CONFIG_CMD_SLEEP=y CONFIG_CMD_SAVEENV=y
@@ -44,6 +46,7 @@ CONFIG_CMD_UBIFORMAT=y CONFIG_CMD_BOOTM_SHOW_TYPE=y CONFIG_CMD_UIMAGE=y CONFIG_CMD_BOOTZ=y +# CONFIG_CMD_BOOTU is not set CONFIG_CMD_RESET=y CONFIG_CMD_GO=y CONFIG_CMD_BAREBOX_UPDATE=y
@@ -57,6 +60,8 @@ CONFIG_NET=y CONFIG_NET_DHCP=y CONFIG_NET_NFS=y CONFIG_NET_PING=y +CONFIG_OFDEVICE=y +CONFIG_OF_BAREBOX_DRIVERS=y CONFIG_DRIVER_SERIAL_NS16550=y CONFIG_DRIVER_SERIAL_NS16550_OMAP_EXTENSIONS=y CONFIG_DRIVER_NET_CPSW=y
@@ -67,13 +72,16 @@ CONFIG_MTD=y CONFIG_MTD_M25P80=y CONFIG_NAND=y CONFIG_NAND_OMAP_GPMC=y -CONFIG_UBI=y +CONFIG_MTD_UBI=y CONFIG_USB=y CONFIG_MCI=y CONFIG_MCI_STARTUP=y CONFIG_MCI_OMAP_HSMMC=y CONFIG_EEPROM_AT24=y CONFIG_GPIO_GENERIC_PLATFORM=y +CONFIG_PINCTRL=y +CONFIG_PINCTRL_SINGLE=y +CONFIG_BUS_OMAP_GPMC=y CONFIG_FS_TFTP=y CONFIG_FS_NFS=y CONFIG_FS_FAT=y
arch/arm/configs/pcm051_mlo_defconfig +6 -2
@@ -1,8 +1,8 @@ +CONFIG_BUILTIN_DTB=y +CONFIG_BUILTIN_DTB_NAME="am335x-phytec-phycore" CONFIG_ARCH_OMAP=y -CONFIG_ARCH_AM33XX=y CONFIG_OMAP_BUILD_IFT=y CONFIG_MACH_PCM051=y -CONFIG_OMAP_UART1=y CONFIG_THUMB2_BAREBOX=y # CONFIG_CMD_ARM_CPUINFO is not set # CONFIG_MEMINFO is not set
@@ -17,6 +17,7 @@ CONFIG_SHELL_NONE=y # CONFIG_TIMESTAMP is not set CONFIG_CONSOLE_SIMPLE=y # CONFIG_DEFAULT_ENVIRONMENT is not set +CONFIG_OFDEVICE=y CONFIG_DRIVER_SERIAL_NS16550=y CONFIG_DRIVER_SERIAL_NS16550_OMAP_EXTENSIONS=y CONFIG_DRIVER_SPI_OMAP3=y
@@ -27,6 +28,9 @@ CONFIG_NAND_OMAP_GPMC=y CONFIG_MCI=y CONFIG_MCI_STARTUP=y CONFIG_MCI_OMAP_HSMMC=y +CONFIG_PINCTRL=y +CONFIG_PINCTRL_SINGLE=y +CONFIG_BUS_OMAP_GPMC=y # CONFIG_FS_RAMFS is not set # CONFIG_FS_DEVFS is not set CONFIG_FS_FAT=y
Signature · 7 lines
1.8.4.2 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
Re: [PATCH 04/17] ARM: am335x phytec phyCORE: Switch to devicetree probe support
Hi Sascha,
nice patchstack.
Quoted 24 lines · Sascha Hauer
This switches the am335x Phytec phyCORE to devicetree probe support. For now we use a linked in dtb.
Signed-off-by Sascha Hauer <[email protected]>--- arch/arm/boards/pcm051/Makefile | 2 +- arch/arm/boards/pcm051/board.c | 149 ++-------------------------------- arch/arm/boards/pcm051/mux.c | 65 --------------- arch/arm/boards/pcm051/mux.h | 4 - arch/arm/configs/pcm051_defconfig | 26 ++++-- arch/arm/configs/pcm051_mlo_defconfig | 8 +- 6 files changed, 32 insertions(+), 222 deletions(-) delete mode 100644 arch/arm/boards/pcm051/mux.c delete mode 100644 arch/arm/boards/pcm051/mux.harch/arm/boards/pcm051/Makefile +1
-1@@ -1,2 +1,2 @@ lwl-y += lowlevel.o -obj-y += board.o mux.o +obj-y += board.oarch/arm/boards/pcm051/board.c +0
-0
...
Quoted 7 lines
arch/arm/boards/pcm051/board.c +1
-3-CONFIG_ARCH_AM33XX=y CONFIG_BAREBOX_UPDATE_AM33XX_SPI_NOR_MLO=y CONFIG_MACH_PCM051=y -CONFIG_OMAP_UART1=y -CONFIG_AEABI=y +CONFIG_THUMB2_BAREBOX=yCONFIG_ARM_BOARD_APPEND_ATAG =y
arch/arm/boards/pcm051/board.c
Quoted 10 lines
arch/arm/boards/pcm051/board.c +4
-2CONFIG_CMD_ARM_MMUINFO=y CONFIG_ARM_OPTIMZED_STRING_FUNCTIONS=y CONFIG_ARM_UNWIND=y +CONFIG_PBL_IMAGE=y +CONFIG_PBL_RELOCATABLE=y CONFIG_MMU=y -CONFIG_TEXT_BASE=0x8f000000 -CONFIG_MALLOC_SIZE =0x2000000 +CONFIG_TEXT_BASE=0x0 +CONFIG_MALLOC_SIZE =0x0
Why is this zero now? Are these things defined in the dts file?
- Alex
_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
Re: [PATCH 04/17] ARM: am335x phytec phyCORE: Switch to devicetree probe support
Quoted 40 lines · Alexander Aring
Hi Sascha,
nice patchstack.
Quoted 24 lines · Sascha Hauer
This switches the am335x Phytec phyCORE to devicetree probe support. For now we use a linked in dtb.
Signed-off-by Sascha Hauer <[email protected]>--- arch/arm/boards/pcm051/Makefile | 2 +- arch/arm/boards/pcm051/board.c | 149 ++-------------------------------- arch/arm/boards/pcm051/mux.c | 65 --------------- arch/arm/boards/pcm051/mux.h | 4 - arch/arm/configs/pcm051_defconfig | 26 ++++-- arch/arm/configs/pcm051_mlo_defconfig | 8 +- 6 files changed, 32 insertions(+), 222 deletions(-) delete mode 100644 arch/arm/boards/pcm051/mux.c delete mode 100644 arch/arm/boards/pcm051/mux.harch/arm/boards/pcm051/Makefile +1
-1@@ -1,2 +1,2 @@ lwl-y += lowlevel.o -obj-y += board.o mux.o +obj-y += board.oarch/arm/boards/pcm051/board.c +0
-0...
Quoted 10 lines
arch/arm/boards/pcm051/board.c +1
-3-CONFIG_ARCH_AM33XX=y CONFIG_BAREBOX_UPDATE_AM33XX_SPI_NOR_MLO=y CONFIG_MACH_PCM051=y -CONFIG_OMAP_UART1=y -CONFIG_AEABI=y +CONFIG_THUMB2_BAREBOX=y CONFIG_ARM_BOARD_APPEND_ATAG=y CONFIG_CMD_ARM_MMUINFO=y CONFIG_ARM_OPTIMZED_STRING_FUNCTIONS=yCONFIG_ARM_UNWIND =y
Quoted 8 lines
arch/arm/boards/pcm051/board.c
Quoted 7 lines
arch/arm/boards/pcm051/board.c +4
-2+CONFIG_PBL_IMAGE=y +CONFIG_PBL_RELOCATABLE=y CONFIG_MMU=y -CONFIG_TEXT_BASE=0x8f000000 -CONFIG_MALLOC_SIZE =0x2000000 +CONFIG_TEXT_BASE=0x0 +CONFIG_MALLOC_SIZE =0x0 Why is this zero now? Are these things defined in the dts file?
It's a relocatable binary which gets relocated during runtime. The address doesn't matter anymore, but setting it to zero helps translating the addresses from the objdump to the running binary.
Sascha
Signature · 9 lines
Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
Re: [PATCH 04/17] ARM: am335x phytec phyCORE: Switch to devicetree probe support
In reply to Sascha HauerAm Dienstag, den 26.11.2013, 17:45 +0100 schrieb Sascha Hauer:
Quoted 21 lines
This switches the am335x Phytec phyCORE to devicetree probe support. For now we use a linked in dtb.
Signed-off-by Sascha Hauer <[email protected]>--- arch/arm/boards/pcm051/Makefile | 2 +- arch/arm/boards/pcm051/board.c | 149 ++-------------------------------- arch/arm/boards/pcm051/mux.c | 65 --------------- arch/arm/boards/pcm051/mux.h | 4 - arch/arm/configs/pcm051_defconfig | 26 ++++-- arch/arm/configs/pcm051_mlo_defconfig | 8 +- 6 files changed, 32 insertions(+), 222 deletions(-) delete mode 100644 arch/arm/boards/pcm051/mux.c delete mode 100644 arch/arm/boards/pcm051/mux.h...
arch/arm/configs/pcm051_defconfig +0
-0
arch/arm/configs/pcm051_defconfig line 6
Quoted 9 lines
arch/arm/configs/pcm051_defconfig +3
-3@@ -1,16 +1,21 @@ +CONFIG_BUILTIN_DTB=y +CONFIG_BUILTIN_DTB_NAME="am335x-phytec-phycore" CONFIG_ARCH_OMAP=y -CONFIG_ARCH_AM33XX=y CONFIG_BAREBOX_UPDATE_AM33XX_SPI_NOR_MLO=y CONFIG_MACH_PCM051=y -CONFIG_OMAP_UART1=y -CONFIG_AEABI=y +CONFIG_THUMB2_BAREBOX=y
Is there a reason to use thumb2 now?
Jan
Quoted 86 lines
arch/arm/configs/pcm051_defconfig +14
-6CONFIG_ARM_BOARD_APPEND_ATAG=y CONFIG_CMD_ARM_MMUINFO=y CONFIG_ARM_OPTIMZED_STRING_FUNCTIONS=y CONFIG_ARM_UNWIND=y +CONFIG_PBL_IMAGE=y +CONFIG_PBL_RELOCATABLE=y CONFIG_MMU=y -CONFIG_TEXT_BASE=0x8f000000 -CONFIG_MALLOC_SIZE=0x2000000 +CONFIG_TEXT_BASE=0x0 +CONFIG_MALLOC_SIZE=0x0 +CONFIG_MALLOC_TLSF=y +CONFIG_KALLSYMS=y +CONFIG_RELOCATABLE=y CONFIG_PROMPT="barebox@pcm051>" CONFIG_LONGHELP=y CONFIG_HUSH_FANCY_PROMPT=y@@ -21,9 +26,6 @@ CONFIG_MENU=y CONFIG_DEFAULT_ENVIRONMENT_GENERIC_NEW=y CONFIG_DEFAULT_ENVIRONMENT_PATH="arch/arm/boards/pcm051/env" CONFIG_DEBUG_INFO=y -CONFIG_ENABLE_FLASH_NOISE=y -CONFIG_ENABLE_PARTITION_NOISE=y -CONFIG_ENABLE_DEVICE_NOISE=y CONFIG_CMD_EDIT=y CONFIG_CMD_SLEEP=y CONFIG_CMD_SAVEENV=y@@ -44,6 +46,7 @@ CONFIG_CMD_UBIFORMAT=y CONFIG_CMD_BOOTM_SHOW_TYPE=y CONFIG_CMD_UIMAGE=y CONFIG_CMD_BOOTZ=y +# CONFIG_CMD_BOOTU is not set CONFIG_CMD_RESET=y CONFIG_CMD_GO=y CONFIG_CMD_BAREBOX_UPDATE=y@@ -57,6 +60,8 @@ CONFIG_NET=y CONFIG_NET_DHCP=y CONFIG_NET_NFS=y CONFIG_NET_PING=y +CONFIG_OFDEVICE=y +CONFIG_OF_BAREBOX_DRIVERS=y CONFIG_DRIVER_SERIAL_NS16550=y CONFIG_DRIVER_SERIAL_NS16550_OMAP_EXTENSIONS=y CONFIG_DRIVER_NET_CPSW=y@@ -67,13 +72,16 @@ CONFIG_MTD=y CONFIG_MTD_M25P80=y CONFIG_NAND=y CONFIG_NAND_OMAP_GPMC=y -CONFIG_UBI=y +CONFIG_MTD_UBI=y CONFIG_USB=y CONFIG_MCI=y CONFIG_MCI_STARTUP=y CONFIG_MCI_OMAP_HSMMC=y CONFIG_EEPROM_AT24=y CONFIG_GPIO_GENERIC_PLATFORM=y +CONFIG_PINCTRL=y +CONFIG_PINCTRL_SINGLE=y +CONFIG_BUS_OMAP_GPMC=y CONFIG_FS_TFTP=y CONFIG_FS_NFS=y CONFIG_FS_FAT=yarch/arm/configs/pcm051_mlo_defconfig +3
-2@@ -1,8 +1,8 @@ +CONFIG_BUILTIN_DTB=y +CONFIG_BUILTIN_DTB_NAME="am335x-phytec-phycore" CONFIG_ARCH_OMAP=y -CONFIG_ARCH_AM33XX=y CONFIG_OMAP_BUILD_IFT=y CONFIG_MACH_PCM051=y -CONFIG_OMAP_UART1=y CONFIG_THUMB2_BAREBOX=y # CONFIG_CMD_ARM_CPUINFO is not set # CONFIG_MEMINFO is not set@@ -17,6 +17,7 @@ CONFIG_SHELL_NONE=y # CONFIG_TIMESTAMP is not set CONFIG_CONSOLE_SIMPLE=y # CONFIG_DEFAULT_ENVIRONMENT is not set +CONFIG_OFDEVICE=y CONFIG_DRIVER_SERIAL_NS16550=y CONFIG_DRIVER_SERIAL_NS16550_OMAP_EXTENSIONS=y CONFIG_DRIVER_SPI_OMAP3=y
arch/arm/configs/pcm051_mlo_defconfig CONFIG_NAND_OMAP_GPMC=y · line 36
Quoted 9 lines
arch/arm/configs/pcm051_mlo_defconfig +3
-0@@ -27,6 +28,9 @@ CONFIG_NAND_OMAP_GPMC=y CONFIG_MCI=y CONFIG_MCI_STARTUP=y CONFIG_MCI_OMAP_HSMMC=y +CONFIG_PINCTRL=y +CONFIG_PINCTRL_SINGLE=y +CONFIG_BUS_OMAP_GPMC=y # CONFIG_FS_RAMFS is not set # CONFIG_FS_DEVFS is not set CONFIG_FS_FAT=y
_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
Re: [PATCH 04/17] ARM: am335x phytec phyCORE: Switch to devicetree probe support
Quoted 25 lines · Jan Weitzel
Am Dienstag, den 26.11.2013, 17:45 +0100 schrieb Sascha Hauer:
Quoted 24 lines
This switches the am335x Phytec phyCORE to devicetree probe support. For now we use a linked in dtb.
Signed-off-by Sascha Hauer <[email protected]>--- arch/arm/boards/pcm051/Makefile | 2 +- arch/arm/boards/pcm051/board.c | 149 ++-------------------------------- arch/arm/boards/pcm051/mux.c | 65 --------------- arch/arm/boards/pcm051/mux.h | 4 - arch/arm/configs/pcm051_defconfig | 26 ++++-- arch/arm/configs/pcm051_mlo_defconfig | 8 +- 6 files changed, 32 insertions(+), 222 deletions(-) delete mode 100644 arch/arm/boards/pcm051/mux.c delete mode 100644 arch/arm/boards/pcm051/mux.h...
arch/arm/configs/pcm051_defconfig +2
-0@@ -1,16 +1,21 @@ +CONFIG_BUILTIN_DTB=y +CONFIG_BUILTIN_DTB_NAME="am335x-phytec-phycore" CONFIG_ARCH_OMAP=y
Quoted 8 lines
arch/arm/configs/pcm051_defconfig line 6
Quoted 6 lines
arch/arm/configs/pcm051_defconfig +1
-3-CONFIG_ARCH_AM33XX=y CONFIG_BAREBOX_UPDATE_AM33XX_SPI_NOR_MLO=y CONFIG_MACH_PCM051=y -CONFIG_OMAP_UART1=y -CONFIG_AEABI=y +CONFIG_THUMB2_BAREBOX=yIs there a reason to use thumb2 now?
It generates smaller binaries. Does this cause trouble?
Sascha
Signature · 9 lines
Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
Re: [PATCH 04/17] ARM: am335x phytec phyCORE: Switch to devicetree probe support
Am Dienstag, den 10.12.2013, 15:24 +0100 schrieb Sascha Hauer:
Quoted 35 lines · Jan Weitzel
Quoted 25 lines
Am Dienstag, den 26.11.2013, 17:45 +0100 schrieb Sascha Hauer:
Quoted 24 lines
This switches the am335x Phytec phyCORE to devicetree probe support. For now we use a linked in dtb.
Signed-off-by Sascha Hauer <[email protected]>--- arch/arm/boards/pcm051/Makefile | 2 +- arch/arm/boards/pcm051/board.c | 149 ++-------------------------------- arch/arm/boards/pcm051/mux.c | 65 --------------- arch/arm/boards/pcm051/mux.h | 4 - arch/arm/configs/pcm051_defconfig | 26 ++++-- arch/arm/configs/pcm051_mlo_defconfig | 8 +- 6 files changed, 32 insertions(+), 222 deletions(-) delete mode 100644 arch/arm/boards/pcm051/mux.c delete mode 100644 arch/arm/boards/pcm051/mux.h...
arch/arm/configs/pcm051_defconfig +2
-0@@ -1,16 +1,21 @@ +CONFIG_BUILTIN_DTB=y +CONFIG_BUILTIN_DTB_NAME="am335x-phytec-phycore" CONFIG_ARCH_OMAP=yQuoted 8 lines
arch/arm/configs/pcm051_defconfig line 6
Quoted 6 lines
arch/arm/configs/pcm051_defconfig +1
-3-CONFIG_ARCH_AM33XX=y CONFIG_BAREBOX_UPDATE_AM33XX_SPI_NOR_MLO=y CONFIG_MACH_PCM051=y -CONFIG_OMAP_UART1=y -CONFIG_AEABI=y +CONFIG_THUMB2_BAREBOX=yIs there a reason to use thumb2 now?
Quoted 1 line
It generates smaller binaries. Does this cause trouble?
No I didn't see any problems. I used it only for MLO/xload builds by now.
Jan
Quoted 3 lines
Sascha
_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
PATCH 5/17 ARM: am33xx Phytec phyCORE: initialize debug UART
In reply to Sascha HauerAdd debug UART initialization to lowlevel init and print a '>'. Helps debugging lowlevel code.
--- arch/arm/boards/pcm051/lowlevel.c | 3 +++ 1 file changed, 3 insertions(+)
arch/arm/boards/pcm051/lowlevel.c +3 -0
@@ -13,6 +13,7 @@#include <mach/am33xx-mux.h> #include <mach/am33xx-generic.h> #include <mach/wdt.h> +#include <debug_ll.h> static const struct am33xx_cmd_control MT41J256M8HX15E_2x256M8_cmd = { .slave_ratio0 =0x40 ,
@@ -76,6 +77,8 @@ static int pcm051_board_init(void)am33xx_uart0_soft_reset ();am33xx_enable_uart0_pin_mux (); +omap_uart_lowlevel_init ((void *)AM33XX_UART0_BASE ); +putc_ll ('>' );return 0 ; }
Signature · 7 lines
1.8.4.2 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
PATCH 6/17 ARM: am33xx Phytec phyCORE: Switch to multiimage support
In reply to Sascha Hauer--- arch/arm/boards/pcm051/lowlevel.c | 41 ++++++++++++++++++++++++++++------- arch/arm/configs/pcm051_defconfig | 4 ---- arch/arm/configs/pcm051_mlo_defconfig | 9 ++++---- arch/arm/dts/Makefile | 1 + arch/arm/mach-omap/Kconfig | 1 + images/Makefile | 3 ++- images/Makefile.am33xx | 22 +++++++++++++++++++ 7 files changed, 63 insertions(+), 18 deletions(-) create mode 100644 images/Makefile.am33xx
arch/arm/boards/pcm051/lowlevel.c +33 -8
@@ -46,6 +46,9 @@ static const struct am33xx_ddr_data MT41J256M8HX15E_2x256M8_data = { .dll_lock_diff0 = 0x0, }; +extern char __dtb_am335x_phytec_phycore_start[]; +extern char __dtb_am335x_phytec_phycore_end[]; +/** * @brief The basic entry point for board initialization. *
@@ -55,8 +58,10 @@ static const struct am33xx_ddr_data MT41J256M8HX15E_2x256M8_data = {* * @return void */ -static int pcm051_board_init (void ) +static noinline void pcm051_board_init(void) { +unsigned long sdram =0x80000000 , fdt; +/* WDT1 is already running when the bootloader gets control * Disable it to avoid "random" resets */
@@ -66,9 +71,6 @@ static int pcm051_board_init(void)writel (WDT_DISABLE_CODE2 ,AM33XX_WDT_REG (WSPR ));while (readl (AM33XX_WDT_REG (WWPS )) !=0x0 ); -if (am33xx_running_in_sdram ()) -return 0 ; -am33xx_pll_init (MPUPLL_M_600 ,25 ,DDRPLL_M_303 ); am335x_sdram_init(0x18B, &MT41J256M8HX15E_2x256M8_cmd,
@@ -80,16 +82,39 @@ static int pcm051_board_init(void)omap_uart_lowlevel_init ((void *)AM33XX_UART0_BASE );putc_ll ('>' ); -return 0 ; +/* +* Copy the devicetree blob to sdram so that the barebox code finds it +* inside valid SDRAM instead of SRAM. +*/ +memcpy ((void *)sdram, __dtb_am335x_phytec_phycore_start, + __dtb_am335x_phytec_phycore_end - + __dtb_am335x_phytec_phycore_start); + fdt = sdram; + +barebox_arm_entry (sdram,SZ_512M , fdt); } -void __naked __bare_init barebox_arm_reset_vector(uint32_t *data) +ENTRY_FUNCTION(start_am33xx_phytec_phycore_sram, bootinfo, r1, r2) { -am33xx_save_bootinfo (data); +am33xx_save_bootinfo ((void *)bootinfo);arm_cpu_lowlevel_init (); +/* +* Setup C environment, the board init code uses global variables. +* Stackpointer has already been initialized by the ROM code. +*/ +relocate_to_current_adr (); +setup_c (); +pcm051_board_init (); +} + +ENTRY_FUNCTION(start_am33xx_phytec_phycore_sdram, r0, r1, r2) +{ +uint32_t fdt; + + fdt = (uint32_t )__dtb_am335x_phytec_phycore_start -get_runtime_offset (); -barebox_arm_entry (0x80000000 ,SZ_512M ,0 ); +barebox_arm_entry (0x80000000 ,SZ_512M , fdt); }
arch/arm/configs/pcm051_defconfig +0 -4
@@ -1,5 +1,3 @@ -CONFIG_BUILTIN_DTB=y -CONFIG_BUILTIN_DTB_NAME="am335x-phytec-phycore" CONFIG_ARCH_OMAP=y CONFIG_BAREBOX_UPDATE_AM33XX_SPI_NOR_MLO=y CONFIG_MACH_PCM051=y
@@ -8,8 +6,6 @@ CONFIG_ARM_BOARD_APPEND_ATAG=y CONFIG_CMD_ARM_MMUINFO=y CONFIG_ARM_OPTIMZED_STRING_FUNCTIONS=y CONFIG_ARM_UNWIND=y -CONFIG_PBL_IMAGE=y -CONFIG_PBL_RELOCATABLE=y CONFIG_MMU=y CONFIG_TEXT_BASE=0x0 CONFIG_MALLOC_SIZE=0x0
arch/arm/configs/pcm051_mlo_defconfig +4 -5
@@ -1,5 +1,3 @@ -CONFIG_BUILTIN_DTB=y -CONFIG_BUILTIN_DTB_NAME="am335x-phytec-phycore" CONFIG_ARCH_OMAP=y CONFIG_OMAP_BUILD_IFT=y CONFIG_MACH_PCM051=y
@@ -8,9 +6,10 @@ CONFIG_THUMB2_BAREBOX=y # CONFIG_MEMINFO is not set CONFIG_ENVIRONMENT_VARIABLES=y CONFIG_MMU=y -CONFIG_TEXT_BASE=0x402F0400 -CONFIG_STACK_SIZE=0x1600 -CONFIG_MALLOC_SIZE=0x1000000 +CONFIG_TEXT_BASE=0x0 +CONFIG_MALLOC_SIZE=0x0 +CONFIG_MALLOC_TLSF=y +CONFIG_RELOCATABLE=y CONFIG_PROMPT="MLO>" CONFIG_SHELL_NONE=y # CONFIG_ERRNO_MESSAGES is not set
arch/arm/dts/Makefile +1 -0
@@ -28,6 +28,7 @@ pbl-$(CONFIG_MACH_FREESCALE_MX51_PDK) += imx51-babbage.dtb.o pbl-$(CONFIG_MACH_FREESCALE_MX53_LOCO) += imx53-qsb.dtb.o pbl-$(CONFIG_MACH_FREESCALE_MX53_VMX53) += imx53-voipac-bsb.dtb.o pbl-$(CONFIG_MACH_DFI_FS700_M60) += imx6q-dfi-fs700-m60-6q.dtb.o imx6dl-dfi-fs700-m60-6s.dtb.o +pbl-$(CONFIG_MACH_PCM051) += am335x-phytec-phycore.dtb.o pbl-$(CONFIG_MACH_PHYTEC_PFLA02) += imx6q-phytec-pbab01.dtb.o pbl-$(CONFIG_MACH_REALQ7) += imx6q-dmo-realq7.dtb.o pbl-$(CONFIG_MACH_SOLIDRUN_CUBOX) += dove-cubox.dtb.o
arch/arm/mach-omap/Kconfig +1 -0
@@ -178,6 +178,7 @@ config MACH_PCM051 bool "Phytec phyCORE pcm051" select HAVE_DEFAULT_ENVIRONMENT_NEW select ARCH_AM33XX + select HAVE_PBL_MULTI_IMAGES help Say Y here if you are using Phytecs phyCORE pcm051 board
images/Makefile +2 -1
@@ -100,6 +100,7 @@ $(obj)/%.img: $(obj)/$$(FILE_$$(@F)) $(Q)if [ -z $(FILE_$(@F)) ]; then echo "FILE_$(@F) empty!"; false; fi $(call if_changed,shipped) +include $(srctree)/images/Makefile.am33xx include $(srctree)/images/Makefile.imx include $(srctree)/images/Makefile.mvebu include $(srctree)/images/Makefile.socfpga
@@ -119,5 +120,5 @@ images: $(addprefix $(obj)/, $(image-y)) FORCE @for i in $(image-y); do echo $$i; done clean-files := *.pbl *.pblb *.pblx *.map start_*.imximg *.img barebox.z start_*.kwbimg \ - start_*.kwbuartimg *.socfpgaimg + start_*.kwbuartimg *.socfpgaimg *.mlo clean-files += pbl.lds
images/Makefile.am33xx new file +22 -0
@@ -0,0 +1,22 @@ + +# %.mlo - convert into mlo image +# ---------------------------------------------------------------- +quiet_cmd_mlo_image = MLO $@ + cmd_mlo_image = scripts/omap_signGP -o $@ -l 0x402f0400 -c $< + +$(obj)/%.mlo: $(obj)/% FORCE + $(call if_changed,mlo_image) + +pblx-$(CONFIG_MACH_PCM051) += start_am33xx_phytec_phycore_sdram +FILE_barebox-am33xx-phytec-phycore.img = start_am33xx_phytec_phycore_sdram.pblx +am33xx-barebox-$(CONFIG_MACH_PCM051) += barebox-am33xx-phytec-phycore.img + +pblx-$(CONFIG_MACH_PCM051) += start_am33xx_phytec_phycore_sram +FILE_barebox-am33xx-phytec-phycore-mlo.img = start_am33xx_phytec_phycore_sram.pblx.mlo +am33xx-mlo-$(CONFIG_MACH_PCM051) += barebox-am33xx-phytec-phycore-mlo.img + +ifdef CONFIG_OMAP_BUILD_IFT +image-y += $(am33xx-mlo-y) +else +image-y += $(am33xx-barebox-y) +endif
Signature · 7 lines
1.8.4.2 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
PATCH 7/17 ARM: am33xx Phytec phyCORE: update defconfig
In reply to Sascha Hauer--- arch/arm/configs/pcm051_defconfig | 11 +++++++++++ 1 file changed, 11 insertions(+)
arch/arm/configs/pcm051_defconfig +11 -0
@@ -19,6 +19,7 @@ CONFIG_CMDLINE_EDITING=y CONFIG_AUTO_COMPLETE=y CONFIG_MENU=y # CONFIG_TIMESTAMP is not set +CONFIG_BLSPEC=y CONFIG_DEFAULT_ENVIRONMENT_GENERIC_NEW=y CONFIG_DEFAULT_ENVIRONMENT_PATH="arch/arm/boards/pcm051/env" CONFIG_DEBUG_INFO=y
@@ -34,6 +35,8 @@ CONFIG_CMD_TIME=y CONFIG_CMD_TFTP=y CONFIG_CMD_ECHO_E=y CONFIG_CMD_LOADB=y +CONFIG_CMD_MEMINFO=y +CONFIG_CMD_IOMEM=y CONFIG_CMD_CRC=y CONFIG_CMD_CRC_CMP=y CONFIG_CMD_MD5SUM=y
@@ -52,6 +55,10 @@ CONFIG_CMD_GPIO=y CONFIG_CMD_UNCOMPRESS=y CONFIG_CMD_I2C=y CONFIG_CMD_SPI=y +CONFIG_CMD_LED=y +CONFIG_CMD_LED_TRIGGER=y +CONFIG_CMD_MIITOOL=y +CONFIG_CMD_DETECT=y CONFIG_NET=y CONFIG_NET_DHCP=y CONFIG_NET_NFS=y
@@ -73,6 +80,10 @@ CONFIG_USB=y CONFIG_MCI=y CONFIG_MCI_STARTUP=y CONFIG_MCI_OMAP_HSMMC=y +CONFIG_LED=y +CONFIG_LED_GPIO=y +CONFIG_LED_GPIO_OF=y +CONFIG_LED_TRIGGERS=y CONFIG_EEPROM_AT24=y CONFIG_GPIO_GENERIC_PLATFORM=y CONFIG_PINCTRL=y
Signature · 7 lines
1.8.4.2 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
PATCH 8/17 ARM: dts: Add am33xx beaglebone(black) dts files
In reply to Sascha Hauer--- arch/arm/dts/Makefile | 2 + arch/arm/dts/am335x-bone-common.dtsi | 299 +++++++++++++++++++++++++++++++++++ arch/arm/dts/am335x-bone.dts | 29 ++++ arch/arm/dts/am335x-boneblack.dts | 78 +++++++++ arch/arm/dts/tps65217.dtsi | 56 +++++++ 5 files changed, 464 insertions(+) create mode 100644 arch/arm/dts/am335x-bone-common.dtsi create mode 100644 arch/arm/dts/am335x-bone.dts create mode 100644 arch/arm/dts/am335x-boneblack.dts create mode 100644 arch/arm/dts/tps65217.dtsi
arch/arm/dts/Makefile +2 -0
@@ -1,4 +1,6 @@ dtb-$(CONFIG_ARCH_AM33XX) += \ + am335x-bone.dtb \ + am335x-boneblack.dtb \ am335x-phytec-phycore.dtb dtb-$(CONFIG_ARCH_IMX51) += imx51-babbage.dtb \ imx51-genesi-efika-sb.dtb
arch/arm/dts/am335x-bone-common.dtsi new file +299 -0
299 lines not on this page · raw message
arch/arm/dts/am335x-bone.dts new file +29 -0
@@ -0,0 +1,29 @@ +/* + * Copyright (C) 2012 Texas Instruments Incorporated - http://www.ti.com/ + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + */ +/dts-v1/; + +#include "am33xx.dtsi" +#include "am335x-bone-common.dtsi" + +&ldo3_reg { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <3300000>; + regulator-always-on; +}; + +&mmc1 { + vmmc-supply = <&ldo3_reg>; +}; + +&sham { + status = "okay"; +}; + +&aes { + status = "okay"; +};
arch/arm/dts/am335x-boneblack.dts new file +78 -0
78 lines not on this page · raw message
arch/arm/dts/tps65217.dtsi new file +56 -0
56 lines not on this page · raw message
Signature · 7 lines
1.8.4.2 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
PATCH 9/17 ARM: am33xx: beaglebone: remove mlo_large_defconfig
In reply to Sascha HauerAs with devicetree support the binary will get too large for the SRAM drop the configuration. It was mainly meant for debugging purposes anyway.
--- arch/arm/configs/am335x_beaglebone_mlo_defconfig | 29 ++++++++++++ .../configs/am335x_beaglebone_mlo_large_defconfig | 55 ---------------------- .../configs/am335x_beaglebone_mlo_small_defconfig | 29 ------------ 3 files changed, 29 insertions(+), 84 deletions(-) create mode 100644 arch/arm/configs/am335x_beaglebone_mlo_defconfig delete mode 100644 arch/arm/configs/am335x_beaglebone_mlo_large_defconfig delete mode 100644 arch/arm/configs/am335x_beaglebone_mlo_small_defconfig
arch/arm/configs/am335x_beaglebone_mlo_defconfig new file +29 -0
@@ -0,0 +1,29 @@ +CONFIG_ARCH_OMAP=y +CONFIG_ARCH_AM33XX=y +# CONFIG_OMAP_GPMC is not set +CONFIG_OMAP_BUILD_IFT=y +CONFIG_THUMB2_BAREBOX=y +# CONFIG_CMD_ARM_CPUINFO is not set +# CONFIG_BANNER is not set +# CONFIG_MEMINFO is not set +CONFIG_ENVIRONMENT_VARIABLES=y +CONFIG_MMU=y +CONFIG_TEXT_BASE=0x402F0400 +CONFIG_STACK_SIZE=0x1600 +CONFIG_MALLOC_SIZE=0x1000000 +CONFIG_MALLOC_TLSF=y +CONFIG_PROMPT="MLO>" +CONFIG_SHELL_NONE=y +# CONFIG_ERRNO_MESSAGES is not set +# CONFIG_TIMESTAMP is not set +# CONFIG_DEFAULT_ENVIRONMENT is not set +CONFIG_DRIVER_SERIAL_NS16550=y +CONFIG_DRIVER_SERIAL_NS16550_OMAP_EXTENSIONS=y +# CONFIG_SPI is not set +CONFIG_MCI=y +# CONFIG_MCI_WRITE is not set +CONFIG_MCI_OMAP_HSMMC=y +# CONFIG_FS_RAMFS is not set +# CONFIG_FS_DEVFS is not set +CONFIG_FS_FAT=y +CONFIG_FS_FAT_LFN=y
arch/arm/configs/am335x_beaglebone_mlo_large_defconfig deleted +0 -55
55 lines not on this page · raw message
arch/arm/configs/am335x_beaglebone_mlo_small_defconfig deleted +0 -29
@@ -1,29 +0,0 @@ -CONFIG_ARCH_OMAP=y -CONFIG_ARCH_AM33XX=y -# CONFIG_OMAP_GPMC is not set -CONFIG_OMAP_BUILD_IFT=y -CONFIG_THUMB2_BAREBOX=y -# CONFIG_CMD_ARM_CPUINFO is not set -# CONFIG_BANNER is not set -# CONFIG_MEMINFO is not set -CONFIG_ENVIRONMENT_VARIABLES=y -CONFIG_MMU=y -CONFIG_TEXT_BASE=0x402F0400 -CONFIG_STACK_SIZE=0x1600 -CONFIG_MALLOC_SIZE=0x1000000 -CONFIG_MALLOC_TLSF=y -CONFIG_PROMPT="MLO>" -CONFIG_SHELL_NONE=y -# CONFIG_ERRNO_MESSAGES is not set -# CONFIG_TIMESTAMP is not set -# CONFIG_DEFAULT_ENVIRONMENT is not set -CONFIG_DRIVER_SERIAL_NS16550=y -CONFIG_DRIVER_SERIAL_NS16550_OMAP_EXTENSIONS=y -# CONFIG_SPI is not set -CONFIG_MCI=y -# CONFIG_MCI_WRITE is not set -CONFIG_MCI_OMAP_HSMMC=y -# CONFIG_FS_RAMFS is not set -# CONFIG_FS_DEVFS is not set -CONFIG_FS_FAT=y -CONFIG_FS_FAT_LFN=y
Signature · 7 lines
1.8.4.2 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
PATCH 10/17 ARM: beaglebone: Add memory to devicetrees
In reply to Sascha Hauerbarebox needs it to initialize the memory. While at it, give the beabglebone black another name than the original beaglebone has.
--- arch/arm/dts/am335x-bone-common.dtsi | 3 --- arch/arm/dts/am335x-bone.dts | 10 ++++++++++ arch/arm/dts/am335x-boneblack.dts | 10 ++++++++++ 3 files changed, 20 insertions(+), 3 deletions(-)
arch/arm/dts/am335x-bone-common.dtsi +0 -3
@@ -7,9 +7,6 @@ */ / { - model = "TI AM335x BeagleBone"; - compatible = "ti,am335x-bone", "ti,am33xx"; - cpus { cpu@0 { cpu0-supply = <&dcdc2_reg>;
arch/arm/dts/am335x-bone.dts +10 -0
@@ -10,6 +10,16 @@ #include "am33xx.dtsi" #include "am335x-bone-common.dtsi" +/ { + model = "TI AM335x BeagleBone"; + compatible = "ti,am335x-bone", "ti,am33xx"; + + memory { + device_type = "memory"; + reg = <0x80000000 0x10000000>; /* 256 MB */ + }; +}; + &ldo3_reg { regulator-min-microvolt = <1800000>; regulator-max-microvolt = <3300000>;
arch/arm/dts/am335x-boneblack.dts +10 -0
@@ -10,6 +10,16 @@ #include "am33xx.dtsi" #include "am335x-bone-common.dtsi" +/ { + model = "TI AM335x BeagleBone black"; + compatible = "ti,am335x-bone-black", "ti,am335x-bone", "ti,am33xx"; + + memory { + device_type = "memory"; + reg = <0x80000000 0x20000000>; /* 512 MB */ + }; +}; + &ldo3_reg { regulator-min-microvolt = <1800000>; regulator-max-microvolt = <1800000>;
Signature · 7 lines
1.8.4.2 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
PATCH 11/17 ARM: beaglebone: Switch to devicetree and multiimage
In reply to Sascha Hauer--- arch/arm/boards/beaglebone/beaglebone.h | 2 + arch/arm/boards/beaglebone/board.c | 121 ++--------------------- arch/arm/boards/beaglebone/lowlevel.c | 67 ++++++++++--- arch/arm/configs/am335x_beaglebone_defconfig | 7 +- arch/arm/configs/am335x_beaglebone_mlo_defconfig | 11 ++- arch/arm/dts/Makefile | 1 + arch/arm/mach-omap/Kconfig | 1 + images/Makefile.am33xx | 8 ++ 8 files changed, 86 insertions(+), 132 deletions(-)
arch/arm/boards/beaglebone/beaglebone.h +2 -0
@@ -1,6 +1,8 @@#ifndef __BOARD_BEAGLEBONE_H#define __BOARD_BEAGLEBONE_H +#include <mach/am33xx-generic.h> +static inline int is_beaglebone_black (void ) {return am33xx_get_cpu_rev () !=AM335X_ES1_0 ;
arch/arm/boards/beaglebone/board.c +9 -112
158 lines not on this page · raw message
arch/arm/boards/beaglebone/lowlevel.c +52 -15
104 lines not on this page · raw message
arch/arm/configs/am335x_beaglebone_defconfig +6 -1
@@ -1,5 +1,6 @@ CONFIG_ARCH_OMAP=y -CONFIG_ARCH_AM33XX=y +CONFIG_OMAP_MULTI_BOARDS=y +CONFIG_MACH_BEAGLEBONE=y CONFIG_THUMB2_BAREBOX=y CONFIG_CMD_ARM_MMUINFO=y CONFIG_ARM_OPTIMZED_STRING_FUNCTIONS=y
@@ -63,6 +64,8 @@ CONFIG_NET_DHCP=y CONFIG_NET_PING=y CONFIG_NET_NETCONSOLE=y CONFIG_NET_RESOLV=y +CONFIG_OFDEVICE=y +CONFIG_OF_BAREBOX_DRIVERS=y CONFIG_DRIVER_SERIAL_NS16550=y CONFIG_DRIVER_SERIAL_NS16550_OMAP_EXTENSIONS=y CONFIG_DRIVER_NET_CPSW=y
@@ -71,6 +74,8 @@ CONFIG_I2C=y CONFIG_I2C_OMAP=y CONFIG_MCI=y CONFIG_MCI_OMAP_HSMMC=y +CONFIG_PINCTRL=y +CONFIG_PINCTRL_SINGLE=y CONFIG_FS_TFTP=y CONFIG_FS_NFS=y CONFIG_FS_FAT=y
arch/arm/configs/am335x_beaglebone_mlo_defconfig +7 -4
@@ -1,28 +1,31 @@ CONFIG_ARCH_OMAP=y -CONFIG_ARCH_AM33XX=y # CONFIG_OMAP_GPMC is not set CONFIG_OMAP_BUILD_IFT=y +CONFIG_MACH_BEAGLEBONE=y CONFIG_THUMB2_BAREBOX=y # CONFIG_CMD_ARM_CPUINFO is not set # CONFIG_BANNER is not set # CONFIG_MEMINFO is not set CONFIG_ENVIRONMENT_VARIABLES=y CONFIG_MMU=y -CONFIG_TEXT_BASE=0x402F0400 -CONFIG_STACK_SIZE=0x1600 -CONFIG_MALLOC_SIZE=0x1000000 +CONFIG_TEXT_BASE=0x0 +CONFIG_MALLOC_SIZE=0x0 CONFIG_MALLOC_TLSF=y +CONFIG_RELOCATABLE=y CONFIG_PROMPT="MLO>" CONFIG_SHELL_NONE=y # CONFIG_ERRNO_MESSAGES is not set # CONFIG_TIMESTAMP is not set # CONFIG_DEFAULT_ENVIRONMENT is not set +CONFIG_OFDEVICE=y CONFIG_DRIVER_SERIAL_NS16550=y CONFIG_DRIVER_SERIAL_NS16550_OMAP_EXTENSIONS=y # CONFIG_SPI is not set CONFIG_MCI=y # CONFIG_MCI_WRITE is not set CONFIG_MCI_OMAP_HSMMC=y +CONFIG_PINCTRL=y +CONFIG_PINCTRL_SINGLE=y # CONFIG_FS_RAMFS is not set # CONFIG_FS_DEVFS is not set CONFIG_FS_FAT=y
arch/arm/dts/Makefile +1 -0
@@ -25,6 +25,7 @@ dtb-$(CONFIG_ARCH_TEGRA) += \ BUILTIN_DTB := $(patsubst "%",%,$(CONFIG_BUILTIN_DTB_NAME)) obj-$(CONFIG_BUILTIN_DTB) += $(BUILTIN_DTB).dtb.o +pbl-$(CONFIG_MACH_BEAGLEBONE) += am335x-bone.dtb.o am335x-boneblack.dtb.o pbl-$(CONFIG_MACH_EFIKA_MX_SMARTBOOK) += imx51-genesi-efika-sb.dtb.o pbl-$(CONFIG_MACH_FREESCALE_MX51_PDK) += imx51-babbage.dtb.o pbl-$(CONFIG_MACH_FREESCALE_MX53_LOCO) += imx53-qsb.dtb.o
arch/arm/mach-omap/Kconfig +1 -0
@@ -133,6 +133,7 @@ config MACH_BEAGLE config MACH_BEAGLEBONE bool "Texas Instrument's Beagle Bone" select ARCH_AM33XX + select HAVE_PBL_MULTI_IMAGES help Say Y here if you are using Beagle Bone
images/Makefile.am33xx +8 -0
@@ -15,6 +15,14 @@ pblx-$(CONFIG_MACH_PCM051) += start_am33xx_phytec_phycore_sram FILE_barebox-am33xx-phytec-phycore-mlo.img = start_am33xx_phytec_phycore_sram.pblx.mlo am33xx-mlo-$(CONFIG_MACH_PCM051) += barebox-am33xx-phytec-phycore-mlo.img +pblx-$(CONFIG_MACH_BEAGLEBONE) += start_am33xx_beaglebone_sdram +FILE_barebox-am33xx-beaglebone.img = start_am33xx_beaglebone_sdram.pblx +am33xx-barebox-$(CONFIG_MACH_BEAGLEBONE) += barebox-am33xx-beaglebone.img + +pblx-$(CONFIG_MACH_BEAGLEBONE) += start_am33xx_beaglebone_sram +FILE_barebox-am33xx-beaglebone-mlo.img = start_am33xx_beaglebone_sram.pblx.mlo +am33xx-mlo-$(CONFIG_MACH_BEAGLEBONE) += barebox-am33xx-beaglebone-mlo.img + ifdef CONFIG_OMAP_BUILD_IFT image-y += $(am33xx-mlo-y) else
Signature · 7 lines
1.8.4.2 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
PATCH 12/17 ARM: am335x Phytec phyCORE: Move partition descriptions to devicetree
In reply to Sascha Hauer--- arch/arm/boards/pcm051/env/init/mtdparts-nand | 11 ----- arch/arm/boards/pcm051/env/init/mtdparts-nor | 12 ------ arch/arm/dts/am335x-phytec-phycore.dts | 59 ++++++++++++++++++++++++++- 3 files changed, 57 insertions(+), 25 deletions(-) delete mode 100644 arch/arm/boards/pcm051/env/init/mtdparts-nand delete mode 100644 arch/arm/boards/pcm051/env/init/mtdparts-nor
arch/arm/boards/pcm051/env/init/mtdparts-nand deleted +0 -11
@@ -1,11 +0,0 @@ -#!/bin/sh - -if [ "$1" = menu ]; then - init-menu-add-entry "$0" "NAND partitions" - exit -fi - -mtdparts="128k(nand0.xload),128k(nand0.xload_backup1),128k(nand0.xload_backup2),128k(nand0.xload_backup3),512k(nand0.barebox)ro,128k(nand0.bareboxenv),8M(nand0.kernel),-(nand0.root)" -kernelname="omap2-nand.0" - -mtdparts-add -b -d nand0 -k ${kernelname} -p ${mtdparts}
arch/arm/boards/pcm051/env/init/mtdparts-nor deleted +0 -12
@@ -1,12 +0,0 @@ -#!/bin/sh - -if [ "$1" = menu ]; then - init-menu-add-entry "$0" "NOR partitions" - exit -fi - -mtdparts="128k(m25p0.xload),512k(m25p0.barebox),128k(m25p0.bareboxenv),4M(m25p0.kernel),-(m25p0.root)" -kernelname="spi_flash" - -mtdparts-add -d m25p0 -k ${kernelname} -p ${mtdparts} -
arch/arm/dts/am335x-phytec-phycore.dts +57 -2
70 lines not on this page · raw message
Signature · 7 lines
1.8.4.2 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
PATCH 13/17 ARM: OMAP: Safe boot info in fixed SRAM address
In reply to Sascha HauerStoring the boot information in the image itself and passing a pointer around between images is cumbersome and doesn't fit well with multiimage support where the pointer we pass around is already occupied by the devicetree.
Do the same as U-Boot does and store the boot information at the bottom of the SRAM public stack.
To maintain the compatibility between new xloaders and older barebox binaries we still pass the boot information to the next stage via pointer.
--- arch/arm/mach-omap/Makefile | 4 ++-- arch/arm/mach-omap/am33xx_generic.c | 3 ++- arch/arm/mach-omap/include/mach/am33xx-generic.h | 3 ++- arch/arm/mach-omap/include/mach/am33xx-silicon.h | 1 + arch/arm/mach-omap/include/mach/generic.h | 2 -- arch/arm/mach-omap/include/mach/omap3-generic.h | 2 +- arch/arm/mach-omap/include/mach/omap3-silicon.h | 1 + arch/arm/mach-omap/include/mach/omap4-generic.h | 2 +- arch/arm/mach-omap/include/mach/omap4-silicon.h | 3 +-- arch/arm/mach-omap/omap3_generic.c | 3 ++- arch/arm/mach-omap/omap4_generic.c | 3 ++- arch/arm/mach-omap/omap_bootinfo.S | 25 ------------------------ arch/arm/mach-omap/omap_generic.c | 17 ++++++++++++---- 13 files changed, 28 insertions(+), 41 deletions(-) delete mode 100644 arch/arm/mach-omap/omap_bootinfo.S
arch/arm/mach-omap/Makefile +2 -2
@@ -15,8 +15,8 @@ # GNU General Public License for more details. # # -obj-$(CONFIG_ARCH_OMAP) += syslib.o omap_devices.o omap_generic.o omap_fb.o omap_bootinfo.o -pbl-$(CONFIG_ARCH_OMAP) += syslib.o omap_bootinfo.o +obj-$(CONFIG_ARCH_OMAP) += syslib.o omap_devices.o omap_generic.o omap_fb.o +pbl-$(CONFIG_ARCH_OMAP) += syslib.o obj-$(CONFIG_OMAP_CLOCK_SOURCE_S32K) += s32k_clksource.o obj-$(CONFIG_OMAP_CLOCK_SOURCE_DMTIMER0) += dmtimer0.o obj-$(CONFIG_ARCH_OMAP3) += omap3_generic.o auxcr.o
arch/arm/mach-omap/am33xx_generic.c +2 -1
@@ -124,8 +124,9 @@ static int am33xx_bootsource(void) {enum bootsource src;int instance =0 ; +uint32_t *am33xx_bootinfo = (void *)AM33XX_SRAM_SCRATCH_SPACE ; -switch (omap_bootinfo[2 ] &0xFF ) { +switch (am33xx_bootinfo[2 ] &0xFF ) {case 0x05 : src =BOOTSOURCE_NAND ;break ;
arch/arm/mach-omap/include/mach/am33xx-generic.h +2 -1
@@ -11,6 +11,7 @@ u32 am33xx_get_cpu_rev(void);static inline void am33xx_save_bootinfo (uint32_t *info) {unsigned long i = (unsigned long )info; +uint32_t *scratch = (void *)AM33XX_SRAM_SCRATCH_SPACE ;if (i &0x3 )return ;
@@ -19,7 +20,7 @@ static inline void am33xx_save_bootinfo(uint32_t *info)if (i >AM33XX_SRAM0_START +AM33XX_SRAM0_SIZE )return ; -omap_save_bootinfo (info); +memcpy (scratch, info,3 *sizeof (uint32_t )); }u32 am33xx_running_in_flash (void );
arch/arm/mach-omap/include/mach/am33xx-silicon.h +1 -0
@@ -120,6 +120,7 @@/* OCMC */ #define AM33XX_SRAM0_START 0x402f0400#define AM33XX_SRAM0_SIZE (SZ_128K - SZ_1K) +#define AM33XX_SRAM_SCRATCH_SPACE 0x4030b800/* start of public stack */ #define AM33XX_SRAM_GPMC_STACK_SIZE (0x40)/* DDR offsets */
arch/arm/mach-omap/include/mach/generic.h +0 -2
@@ -73,8 +73,6 @@ static inline int omap_set_mmc_dev(const char *mmcdev) }#endif -extern uint32_t omap_bootinfo[3 ]; -void omap_save_bootinfo (void *data);void __noreturn omap_start_barebox (void *barebox);void omap_set_bootmmc_devname (const char *devname);
arch/arm/mach-omap/include/mach/omap3-generic.h +1 -1
@@ -16,7 +16,7 @@ static inline void omap3_save_bootinfo(uint32_t *info)if (i >OMAP3_SRAM_BASE +SZ_64K )return ; -omap_save_bootinfo (info); +memcpy ((void *)OMAP3_SRAM_SCRATCH_SPACE , info,3 *sizeof (uint32_t )); }u32 omap3_running_in_flash (void );
arch/arm/mach-omap/include/mach/omap3-silicon.h +1 -0
@@ -100,6 +100,7 @@/** Interrupt Vector base address */ #define OMAP3_SRAM_BASE 0x40200000 +#define OMAP3_SRAM_SCRATCH_SPACE 0x4020f000/* start of public stack */ #define OMAP3_SRAM_INTVECT 0x4020F800#define OMAP3_SRAM_INTVECT_COPYSIZE 0x64
arch/arm/mach-omap/include/mach/omap4-generic.h +1 -1
@@ -15,7 +15,7 @@ static inline void omap4_save_bootinfo(uint32_t *info)if (i >OMAP44XX_SRAM_BASE +SZ_64K )return ; -omap_save_bootinfo (info); +memcpy ((void *)OMAP44XX_SRAM_SCRATCH_SPACE , info,3 *sizeof (uint32_t )); }void __noreturn omap4_reset_cpu (unsigned long addr);
arch/arm/mach-omap/include/mach/omap4-silicon.h +1 -2
@@ -40,8 +40,7 @@#define OMAP44XX_L4_PER_BASE 0x48000000#define OMAP44XX_SRAM_BASE 0x40300000 - -#define OMAP44XX_SRAM_BASE 0x40300000 +#define OMAP44XX_SRAM_SCRATCH_SPACE 0x4030c000/* start of public stack */ /* EMIF and DMM registers */ #define OMAP44XX_EMIF1_BASE 0x4c000000
arch/arm/mach-omap/omap3_generic.c +2 -1
@@ -469,8 +469,9 @@ void omap3_core_init(void)static int omap3_bootsource (void ) {enum bootsource src =BOOTSOURCE_UNKNOWN ; +uint32_t *omap3_bootinfo = (void *)OMAP3_SRAM_SCRATCH_SPACE ; -switch (omap_bootinfo[1 ] &0xFF ) { +switch (omap3_bootinfo[1 ] &0xFF ) {case 0x02 : src =BOOTSOURCE_NAND ;break ;
arch/arm/mach-omap/omap4_generic.c +2 -1
@@ -505,8 +505,9 @@ static int omap_vector_init(void)static int omap4_bootsource (void ) {enum bootsource src; +uint32_t *omap4_bootinfo = (void *)OMAP44XX_SRAM_SCRATCH_SPACE ; -switch (omap_bootinfo[2 ] &0xFF ) { +switch (omap4_bootinfo[2 ] &0xFF ) {case OMAP44XX_SAR_BOOT_NAND : src =BOOTSOURCE_NAND ;break ;
arch/arm/mach-omap/omap_bootinfo.S deleted +0 -25
@@ -1,25 +0,0 @@ -#include <config.h> -#include <linux/linkage.h> -#include <asm/assembler.h> - -.section ".text_bare_init","ax" -.globl omap_bootinfo -omap_bootinfo: - .word 0x0 - .word 0x0 - .word 0x0 - -.section ".text_bare_init","ax" -ENTRY(omap_save_bootinfo) - /* - * save data from rom boot loader - */ - adr r2, omap_bootinfo - ldr r1, [r0, #0x00] - str r1, [r2, #0x00] - ldr r1, [r0, #0x04] - str r1, [r2, #0x04] - ldr r1, [r0, #0x08] - str r1, [r2, #0x08] - mov pc, lr -ENDPROC(omap_save_bootinfo)
arch/arm/mach-omap/omap_generic.c +13 -4
@@ -45,15 +45,24 @@ static void *omap_sram_start(void)return NULL ; } +static void *omap_scratch_space_start (void ) +{ +if (cpu_is_am33xx ()) +return (void *)AM33XX_SRAM_SCRATCH_SPACE ; +if (cpu_is_omap3 ()) +return (void *)OMAP3_SRAM_SCRATCH_SPACE ; +if (cpu_is_omap4 ()) +return (void *)OMAP44XX_SRAM_SCRATCH_SPACE ; +return NULL ; +} +void __noreturn omap_start_barebox (void *barebox) {int (*func)(void *) = barebox; -uint32_t *arg;void *sramadr =omap_sram_start (); +void *scratch =omap_scratch_space_start (); - arg = (uint32_t *)&omap_bootinfo; - -memcpy (sramadr, &omap_bootinfo,sizeof (uint32_t ) *3 ); +memcpy (sramadr, scratch,sizeof (uint32_t ) *3 );shutdown_barebox ();func (sramadr);
Signature · 7 lines
1.8.4.2 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
PATCH 14/17 ARM: am335x Phytec phyCORE: configure environment from devicetree
In reply to Sascha Hauer--- arch/arm/boards/pcm051/board.c | 17 ++--------------- arch/arm/dts/am335x-phytec-phycore.dts | 18 +++++++++++++++++- 2 files changed, 19 insertions(+), 16 deletions(-)
arch/arm/boards/pcm051/board.c +2 -15
@@ -47,26 +47,13 @@ static int pcm051_devices_init(void)switch (bootsource_get ()) {case BOOTSOURCE_SPI : -devfs_add_partition ("m25p0" ,0x00000 ,SZ_128K , -DEVFS_PARTITION_FIXED ,"xload" ); -devfs_add_partition ("m25p0" ,SZ_128K ,SZ_512K , -DEVFS_PARTITION_FIXED ,"self0" ); -devfs_add_partition ("m25p0" ,SZ_128K +SZ_512K ,SZ_128K , -DEVFS_PARTITION_FIXED ,"env0" ); +of_device_enable_path ("/chosen/environment-spi" );break ;case BOOTSOURCE_MMC :omap_set_bootmmc_devname ("mmc0" );break ;default : -devfs_add_partition ("nand0" ,0x00000 ,SZ_128K , -DEVFS_PARTITION_FIXED ,"xload_raw" ); -dev_add_bb_dev ("xload_raw" ,"xload" ); -devfs_add_partition ("nand0" ,SZ_512K ,SZ_512K , -DEVFS_PARTITION_FIXED ,"self_raw" ); -dev_add_bb_dev ("self_raw" ,"self0" ); -devfs_add_partition ("nand0" ,SZ_512K +SZ_512K ,SZ_128K , -DEVFS_PARTITION_FIXED ,"env_raw" ); -dev_add_bb_dev ("env_raw" ,"env0" ); +of_device_enable_path ("/chosen/environment-nand" );break ; }
arch/arm/dts/am335x-phytec-phycore.dts +17 -1
@@ -6,6 +6,22 @@ model = "Phytec phyCORE AM335x"; compatible = "phytec,phycore-am335x", "ti,am33xx"; + chosen { + linux,stdout-path = &uart0; + + environment-spi { + compatible = "barebox,environment"; + device-path = &flash, "partname:bareboxenv"; + status = "disabled"; + }; + + environment-nand { + compatible = "barebox,environment"; + device-path = &nand, "partname:bareboxenv"; + status = "disabled"; + }; + }; + memory { device_type = "memory"; reg = <0x80000000 0x20000000>; /* 512 MB */
@@ -211,7 +227,7 @@ pinctrl-names = "default"; pinctrl-0 = <&nandflash_pins_s0>; ranges = <0 0 0x08000000 0x10000000>; /* CS0: NAND */ - nand@0,0 { + nand: nand@0,0 { reg = <0 0 0>; /* CS0, offset 0 */ nand-bus-width = <8>; ti,nand-ecc-opt = "bch8-romcode";
Signature · 7 lines
1.8.4.2 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
PATCH 15/17 ARM: beaglebone: configure console from devicetree
In reply to Sascha Hauer--- arch/arm/configs/am335x_beaglebone_defconfig | 2 +- arch/arm/dts/am335x-bone-common.dtsi | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-)
arch/arm/configs/am335x_beaglebone_defconfig +1 -1
@@ -1,5 +1,4 @@ CONFIG_ARCH_OMAP=y -CONFIG_OMAP_MULTI_BOARDS=y CONFIG_MACH_BEAGLEBONE=y CONFIG_THUMB2_BAREBOX=y CONFIG_CMD_ARM_MMUINFO=y
@@ -17,6 +16,7 @@ CONFIG_CMDLINE_EDITING=y CONFIG_AUTO_COMPLETE=y CONFIG_MENU=y # CONFIG_TIMESTAMP is not set +CONFIG_CONSOLE_ACTIVATE_NONE=y CONFIG_DEFAULT_ENVIRONMENT_GENERIC_NEW=y CONFIG_DEFAULT_ENVIRONMENT_PATH="arch/arm/boards/beaglebone/env" CONFIG_CMD_EDIT=y
arch/arm/dts/am335x-bone-common.dtsi +4 -0
@@ -7,6 +7,10 @@ */ / { + chosen { + linux,stdout-path = &uart0; + }; + cpus { cpu@0 { cpu0-supply = <&dcdc2_reg>;
Signature · 7 lines
1.8.4.2 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
PATCH 16/17 ARM: OMAP: introduce multiboard support and move am33xx boards to it
In reply to Sascha Hauer--- arch/arm/configs/am335x_beaglebone_defconfig | 1 + arch/arm/configs/am335x_beaglebone_mlo_defconfig | 1 + arch/arm/configs/pcm051_defconfig | 1 + arch/arm/configs/pcm051_mlo_defconfig | 1 + arch/arm/mach-omap/Kconfig | 36 ++++++++++++++---------- 5 files changed, 25 insertions(+), 15 deletions(-)
arch/arm/configs/am335x_beaglebone_defconfig +1 -0
@@ -1,4 +1,5 @@ CONFIG_ARCH_OMAP=y +CONFIG_OMAP_MULTI_BOARDS=y CONFIG_MACH_BEAGLEBONE=y CONFIG_THUMB2_BAREBOX=y CONFIG_CMD_ARM_MMUINFO=y
arch/arm/configs/am335x_beaglebone_mlo_defconfig +1 -0
@@ -1,6 +1,7 @@ CONFIG_ARCH_OMAP=y # CONFIG_OMAP_GPMC is not set CONFIG_OMAP_BUILD_IFT=y +CONFIG_OMAP_MULTI_BOARDS=y CONFIG_MACH_BEAGLEBONE=y CONFIG_THUMB2_BAREBOX=y # CONFIG_CMD_ARM_CPUINFO is not set
arch/arm/configs/pcm051_defconfig +1 -0
@@ -1,5 +1,6 @@ CONFIG_ARCH_OMAP=y CONFIG_BAREBOX_UPDATE_AM33XX_SPI_NOR_MLO=y +CONFIG_OMAP_MULTI_BOARDS=y CONFIG_MACH_PCM051=y CONFIG_THUMB2_BAREBOX=y CONFIG_ARM_BOARD_APPEND_ATAG=y
arch/arm/configs/pcm051_mlo_defconfig +1 -0
@@ -1,5 +1,6 @@ CONFIG_ARCH_OMAP=y CONFIG_OMAP_BUILD_IFT=y +CONFIG_OMAP_MULTI_BOARDS=y CONFIG_MACH_PCM051=y CONFIG_THUMB2_BAREBOX=y # CONFIG_CMD_ARM_CPUINFO is not set
arch/arm/mach-omap/Kconfig +21 -15
@@ -114,8 +114,29 @@ config CMD_BOOT_ORDER help A command to choose the next boot device on a warm reset. +config OMAP_MULTI_BOARDS + bool "Allow multiple boards to be selected" + select HAVE_DEFAULT_ENVIRONMENT_NEW + select HAVE_PBL_MULTI_IMAGES + +if OMAP_MULTI_BOARDS + +config MACH_BEAGLEBONE + bool "Texas Instrument's Beagle Bone" + select ARCH_AM33XX + help + Say Y here if you are using Beagle Bone + +config MACH_PCM051 + bool "Phytec phyCORE pcm051" + select ARCH_AM33XX + help + Say Y here if you are using Phytecs phyCORE pcm051 board +endif + choice prompt "Select OMAP board" + depends on !OMAP_MULTI_BOARDS config MACH_OMAP343xSDP bool "Texas Instrument's SDP343x"
@@ -130,13 +151,6 @@ config MACH_BEAGLE help Say Y here if you are using Beagle Board -config MACH_BEAGLEBONE - bool "Texas Instrument's Beagle Bone" - select ARCH_AM33XX - select HAVE_PBL_MULTI_IMAGES - help - Say Y here if you are using Beagle Bone - config MACH_OMAP3EVM bool "Texas Instrument's OMAP3 EVM" select ARCH_OMAP3
@@ -175,14 +189,6 @@ config MACH_PCAAXL2 help Say Y here if you are using a phyCARD-A-XL1 PCA-A-XL1 -config MACH_PCM051 - bool "Phytec phyCORE pcm051" - select HAVE_DEFAULT_ENVIRONMENT_NEW - select ARCH_AM33XX - select HAVE_PBL_MULTI_IMAGES - help - Say Y here if you are using Phytecs phyCORE pcm051 board - endchoice if ARCH_OMAP
Signature · 7 lines
1.8.4.2 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
PATCH 17/17 ARM: OMAP: consolidate am335x mlo defconfigs
In reply to Sascha HauerThe Beaglebone and the AM335x Phytec phyCORE can be compiled together, so merge the configs into a am335x_mlo_defconfig.
--- arch/arm/configs/am335x_beaglebone_mlo_defconfig | 33 ------------------ arch/arm/configs/am335x_mlo_defconfig | 44 ++++++++++++++++++++++++ arch/arm/configs/pcm051_mlo_defconfig | 37 -------------------- 3 files changed, 44 insertions(+), 70 deletions(-) delete mode 100644 arch/arm/configs/am335x_beaglebone_mlo_defconfig create mode 100644 arch/arm/configs/am335x_mlo_defconfig delete mode 100644 arch/arm/configs/pcm051_mlo_defconfig
arch/arm/configs/am335x_beaglebone_mlo_defconfig deleted +0 -33
@@ -1,33 +0,0 @@ -CONFIG_ARCH_OMAP=y -# CONFIG_OMAP_GPMC is not set -CONFIG_OMAP_BUILD_IFT=y -CONFIG_OMAP_MULTI_BOARDS=y -CONFIG_MACH_BEAGLEBONE=y -CONFIG_THUMB2_BAREBOX=y -# CONFIG_CMD_ARM_CPUINFO is not set -# CONFIG_BANNER is not set -# CONFIG_MEMINFO is not set -CONFIG_ENVIRONMENT_VARIABLES=y -CONFIG_MMU=y -CONFIG_TEXT_BASE=0x0 -CONFIG_MALLOC_SIZE=0x0 -CONFIG_MALLOC_TLSF=y -CONFIG_RELOCATABLE=y -CONFIG_PROMPT="MLO>" -CONFIG_SHELL_NONE=y -# CONFIG_ERRNO_MESSAGES is not set -# CONFIG_TIMESTAMP is not set -# CONFIG_DEFAULT_ENVIRONMENT is not set -CONFIG_OFDEVICE=y -CONFIG_DRIVER_SERIAL_NS16550=y -CONFIG_DRIVER_SERIAL_NS16550_OMAP_EXTENSIONS=y -# CONFIG_SPI is not set -CONFIG_MCI=y -# CONFIG_MCI_WRITE is not set -CONFIG_MCI_OMAP_HSMMC=y -CONFIG_PINCTRL=y -CONFIG_PINCTRL_SINGLE=y -# CONFIG_FS_RAMFS is not set -# CONFIG_FS_DEVFS is not set -CONFIG_FS_FAT=y -CONFIG_FS_FAT_LFN=y
arch/arm/configs/am335x_mlo_defconfig new file +44 -0
44 lines not on this page · raw message
arch/arm/configs/pcm051_mlo_defconfig deleted +0 -37
@@ -1,37 +0,0 @@ -CONFIG_ARCH_OMAP=y -CONFIG_OMAP_BUILD_IFT=y -CONFIG_OMAP_MULTI_BOARDS=y -CONFIG_MACH_PCM051=y -CONFIG_THUMB2_BAREBOX=y -# CONFIG_CMD_ARM_CPUINFO is not set -# CONFIG_MEMINFO is not set -CONFIG_ENVIRONMENT_VARIABLES=y -CONFIG_MMU=y -CONFIG_TEXT_BASE=0x0 -CONFIG_MALLOC_SIZE=0x0 -CONFIG_MALLOC_TLSF=y -CONFIG_RELOCATABLE=y -CONFIG_PROMPT="MLO>" -CONFIG_SHELL_NONE=y -# CONFIG_ERRNO_MESSAGES is not set -# CONFIG_TIMESTAMP is not set -CONFIG_CONSOLE_SIMPLE=y -# CONFIG_DEFAULT_ENVIRONMENT is not set -CONFIG_OFDEVICE=y -CONFIG_DRIVER_SERIAL_NS16550=y -CONFIG_DRIVER_SERIAL_NS16550_OMAP_EXTENSIONS=y -CONFIG_DRIVER_SPI_OMAP3=y -CONFIG_MTD=y -CONFIG_MTD_M25P80=y -CONFIG_NAND=y -CONFIG_NAND_OMAP_GPMC=y -CONFIG_MCI=y -CONFIG_MCI_STARTUP=y -CONFIG_MCI_OMAP_HSMMC=y -CONFIG_PINCTRL=y -CONFIG_PINCTRL_SINGLE=y -CONFIG_BUS_OMAP_GPMC=y -# CONFIG_FS_RAMFS is not set -# CONFIG_FS_DEVFS is not set -CONFIG_FS_FAT=y -CONFIG_FS_FAT_LFN=y
Signature · 7 lines
1.8.4.2 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
Re: Re: [PATCH 17/17] ARM: OMAP: consolidate am335x mlo defconfigs
Hello Sascha,
I need some help about the booting from NAND flash. I have created the MLO file with the pcm051_mlo_defconfig but I cant boot from NAND. I dont know if i need more configuration.
This is the content of pcm051_mlo_defconfig:
CONFIG_ARCH_OMAP=yCONFIG_ARCH_AM33XX=yCONFIG_OMAP_BUILD_IFT=yCONFIG_MACH_PCM051=yCONFIG_OMAP_UART1=yCONFIG_THUMB2_BAREBOX=y
# CONFIG_CMD_ARM_CPUINFO is not set
# CONFIG_MEMINFO is not setCONFIG_ENVIRONMENT_VARIABLES=yCONFIG_MMU=yCONFIG_TEXT_BASE=0x402F0400CONFIG_STACK_SIZE=0x1600CONFIG_MALLOC_SIZE=0x1000000CONFIG_PROMPT="MLO>"CONFIG_SHELL_NONE=y
# CONFIG_ERRNO_MESSAGES is not set
# CONFIG_TIMESTAMP is not setCONFIG_CONSOLE_SIMPLE=y
# CONFIG_DEFAULT_ENVIRONMENT is not setCONFIG_DRIVER_SERIAL_NS16550=yCONFIG_DRIVER_SERIAL_NS16550_OMAP_EXTENSIONS=yCONFIG_DRIVER_SPI_OMAP3=yCONFIG_MTD=yCONFIG_MTD_M25P80=yCONFIG_NAND=yCONFIG_NAND_OMAP_GPMC=yCONFIG_MCI=yCONFIG_MCI_STARTUP=yCONFIG_MCI_OMAP_HSMMC=y
# CONFIG_FS_RAMFS is not set
# CONFIG_FS_DEVFS is not setCONFIG_FS_FAT=yCONFIG_FS_FAT_LFN=y
Do you have any idea??
Thank you in advance.
Best Regards.
Carlos
_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox