Skip to contentSkip to conversation

Summary of last patches submitted

PATCH Applied Vicente Bergas 2 participants 4 messages Feb 11, 2013 – Feb 14, 2013

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

cover Summary of last patches submitted

Here are the last two patches I've submitted.
The first is a straightforward solution to a regression.
The second was first intended to provide devicetree support for booting an omap4 based tablet. I've achieved booting it successfully, but after several tries at bringing the mmc controller working I've realised that the Linux kernel still has no support for devicetree on omap4 (it's almost there, but it lacks dma configuration).
For more information see:
http://omappedia.org/wiki/Device_Tree#Drivers_.2F_Features_migration_status
So the second patch has been stripped and only provides generic support, nothing related to the tablet.

The patches also include the changes reflecting the received feedback, thanks!

Vicente Bergas (2):
ArchosG9: solve regression in second stage lowlevel init
DeviceTree: add support for initrd in the DT

 arch/arm/boards/archosg9/lowlevel.c |  7 ++--
 arch/arm/lib/armlinux.c             |  2 ++
 common/oftree.c                     | 66 +++++++++++++++++++++++++++++++++++++
 include/of.h                        |  8 +++++
 4 files changed, 81 insertions(+), 2 deletions(-)
Signature · 7 lines
1.8.1.3


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
#1 lore raw

PATCH 1/2 ArchosG9: solve regression in second stage lowlevel init

On ArchosG9 the second stage low-level init was the fallback default. Now that the low-level init is forcibly enabled it has to be skipped when already executed from first stage.

---
 arch/arm/boards/archosg9/lowlevel.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
arch/arm/boards/archosg9/lowlevel.c +5 -2
index 552268f..0334693 100644
@@ -63,15 +63,18 @@ static noinline void archosg9_init_lowlevel(void)
 	omap4_configure_usb_dpll(&usb);
 
 	omap4_ddr_init(&ddr_regs_400_mhz_2cs, &core);
-
-	barebox_arm_entry(0x80000000, SZ_1G, 0);
 }
 
 void __naked __bare_init barebox_arm_reset_vector(void)
 {
 	arm_cpu_lowlevel_init();
 
+	if (get_pc() > 0x80000000)
+		goto out;
+
 	arm_setup_stack(0x4030d000);
 
 	archosg9_init_lowlevel();
+out:
+	barebox_arm_entry(0x80000000, SZ_1G, 0);
 }
Signature · 7 lines
1.8.1.3


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
#2 lore raw

PATCH 2/2 DeviceTree: add support for initrd in the DT

In reply to Vicente Bergas

Add the initrd start and end address to the DT, code comes from u-boot.

---
 arch/arm/lib/armlinux.c |  2 ++
 common/oftree.c         | 66 +++++++++++++++++++++++++++++++++++++++++++++++++
 include/of.h            |  8 ++++++
 3 files changed, 76 insertions(+)
arch/arm/lib/armlinux.c +2 -0
index 40a63ea..4dd84ed 100644
@@ -266,6 +266,8 @@ void start_linux(void *adr, int swap, unsigned long initrd_address,
 
 	if (oftree) {
 		printf("booting Linux kernel with devicetree\n");
+		fdt_initrd(oftree, initrd_address,
+			initrd_address + initrd_size, 1);
 		params = oftree;
 	} else {
 		setup_tags(initrd_address, initrd_size, swap);
common/oftree.c +66 -0

72 lines not on this page · raw message

include/of.h +8 -0
index d3a310f..d3aa982 100644
@@ -18,6 +18,14 @@ void do_fixup_by_path(struct fdt_header *fdt, const char *path, const char *prop
 void do_fixup_by_path_u32(struct fdt_header *fdt, const char *path, const char *prop,
 			  u32 val, int create);
 int fdt_get_path_or_create(struct fdt_header *fdt, const char *path);
+#ifdef CONFIG_FDT
+int fdt_initrd(void *fdt, ulong initrd_start, ulong initrd_end, int force);
+#else
+static inline int fdt_initrd(void *fdt, ulong start, ulong end, int force)
+{
+	return 0;
+}
+#endif
 
 #define OF_BAD_ADDR      ((u64)-1)
 
Signature · 7 lines
1.8.1.3


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
Applied
#3 lore raw
In reply to Vicente Bergas
Quoted 12 lines · Vicente Bergas

Here are the last two patches I've submitted.
The first is a straightforward solution to a regression.
The second was first intended to provide devicetree support for booting an omap4 based tablet. I've achieved booting it successfully, but after several tries at bringing the mmc controller working I've realised that the Linux kernel still has no support for devicetree on omap4 (it's almost there, but it lacks dma configuration).
For more information see:
http://omappedia.org/wiki/Device_Tree#Drivers_.2F_Features_migration_status
So the second patch has been stripped and only provides generic support, nothing related to the tablet.

Quoted 5 lines

The patches also include the changes reflecting the received feedback, thanks!

Vicente Bergas (2):
ArchosG9: solve regression in second stage lowlevel init
DeviceTree: add support for initrd in the DT

Applied, thanks

Sascha

Quoted 16 lines
 arch/arm/boards/archosg9/lowlevel.c |  7 ++--
 arch/arm/lib/armlinux.c             |  2 ++
 common/oftree.c                     | 66 +++++++++++++++++++++++++++++++++++++
 include/of.h                        |  8 +++++
 4 files changed, 81 insertions(+), 2 deletions(-)
Signature · 7 lines
1.8.1.3


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
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