* [PATCH 1/2] omap3evm: Remove inclusion of non-existent header
2012-02-07 16:16 [PATCH 0/2] omap3evm: Enable Linux boot Sanjeev Premi
@ 2012-02-07 16:16 ` Sanjeev Premi
2012-02-07 16:16 ` [PATCH 2/2] omap3evm: Setup ATAGs for Linux boot Sanjeev Premi
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: Sanjeev Premi @ 2012-02-07 16:16 UTC (permalink / raw)
To: barebox
File 'mach/board.h' doesn't exist any more.
Signed-off-by: Sanjeev Premi <premi@ti.com>
---
arch/arm/boards/omap3evm/board.c | 1 -
1 files changed, 0 insertions(+), 1 deletions(-)
diff --git a/arch/arm/boards/omap3evm/board.c b/arch/arm/boards/omap3evm/board.c
index fdd5227..21d2504 100644
--- a/arch/arm/boards/omap3evm/board.c
+++ b/arch/arm/boards/omap3evm/board.c
@@ -59,7 +59,6 @@
#include <mach/control.h>
#include <mach/omap3-mux.h>
#include <mach/gpmc.h>
-#include <mach/board.h>
#include <errno.h>
--
1.7.0.4
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH 2/2] omap3evm: Setup ATAGs for Linux boot
2012-02-07 16:16 [PATCH 0/2] omap3evm: Enable Linux boot Sanjeev Premi
2012-02-07 16:16 ` [PATCH 1/2] omap3evm: Remove inclusion of non-existent header Sanjeev Premi
@ 2012-02-07 16:16 ` Sanjeev Premi
2012-02-07 16:24 ` [PATCH 0/2] omap3evm: Enable " Premi, Sanjeev
2012-02-08 9:05 ` Sascha Hauer
3 siblings, 0 replies; 5+ messages in thread
From: Sanjeev Premi @ 2012-02-07 16:16 UTC (permalink / raw)
To: barebox
Signed-off-by: Sanjeev Premi <premi@ti.com>
---
arch/arm/boards/omap3evm/board.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/arch/arm/boards/omap3evm/board.c b/arch/arm/boards/omap3evm/board.c
index 21d2504..3108146 100644
--- a/arch/arm/boards/omap3evm/board.c
+++ b/arch/arm/boards/omap3evm/board.c
@@ -60,6 +60,7 @@
#include <mach/omap3-mux.h>
#include <mach/gpmc.h>
#include <errno.h>
+#include <generated/mach-types.h>
/*
@@ -262,6 +263,9 @@ static int omap3evm_init_devices(void)
add_generic_device("omap-hsmmc", -1, NULL, OMAP_MMC1_BASE, SZ_4K,
IORESOURCE_MEM, NULL);
#endif
+ armlinux_set_bootparams((void *)0x80000100);
+ armlinux_set_architecture(MACH_TYPE_OMAP3EVM);
+
return 0;
}
device_initcall(omap3evm_init_devices);
--
1.7.0.4
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: [PATCH 0/2] omap3evm: Enable Linux boot
2012-02-07 16:16 [PATCH 0/2] omap3evm: Enable Linux boot Sanjeev Premi
2012-02-07 16:16 ` [PATCH 1/2] omap3evm: Remove inclusion of non-existent header Sanjeev Premi
2012-02-07 16:16 ` [PATCH 2/2] omap3evm: Setup ATAGs for Linux boot Sanjeev Premi
@ 2012-02-07 16:24 ` Premi, Sanjeev
2012-02-08 9:05 ` Sascha Hauer
3 siblings, 0 replies; 5+ messages in thread
From: Premi, Sanjeev @ 2012-02-07 16:24 UTC (permalink / raw)
To: Premi, Sanjeev, barebox
> -----Original Message-----
> From: Premi, Sanjeev
> Sent: Tuesday, February 07, 2012 9:47 PM
> To: barebox@lists.infradead.org
> Cc: Premi, Sanjeev
> Subject: [PATCH 0/2] omap3evm: Enable Linux boot
>
> These patches are necessary enable Linux boot from
> barebox.bin.
>
> Both patches apply against the 'next' branch at:
>
> Linux still doesn't boot successfully, and changes
> are necessary in the defconfig and default env.
> Will submit the patches once I have done some more
> debug.
>
> Will share the failure log in reponse to this patch
> (just to prevent clutter in this description).
>
> Sanjeev Premi (2):
> omap3evm: Remove inclusion of non-existent header
> omap3evm: Setup ATAGs for Linux boot
>
> arch/arm/boards/omap3evm/board.c | 5 ++++-
> 1 files changed, 4 insertions(+), 1 deletions(-)
>
My local init script uses this command to boot Linux:
bootm -c -v /mnt/uImage
As noted in the original description, Linux doesn't boot
successfully. Debugger indicates an exception - but need
to investigate further.
Here is the log:
barebox 2012.01.0-00248-g9119228-dirty (Feb 7 2012 - 21:08:10)
Board: Texas Instrument's OMAP3EVM
Malloc space: 0x87bfff10 -> 0x87ffff0f (size 4 MB)
Stack space : 0x4020f000 -> 0x4020fc00 (size 3 kB)
booting from MMC1
barebox 2012.01.0-00248-g9119228-dirty (Feb 7 2012 - 21:09:16)
Board: Texas Instrument's OMAP3EVM
Malloc space: 0x80c00000 -> 0x80ffffff (size 4 MB)
Stack space : 0x80bf8000 -> 0x80c00000 (size 32 kB)
Open /dev/env0 No such file or directory
no valid environment found on /dev/env0. Using default environment
running /env/bin/init...
:: Press any key to stop autoboot: 0
::
:: Booting from disk ...
::
Image Name: Linux-3.3.0-rc1-11551-g1c6ece3
Created: 2012-02-07 16:08:10 UTC
OS: Linux
Architecture: ARM
Type: Kernel Image
Compression: uncompressed
Data Size: 3382624 Bytes = 3.2 MB
Load Address: 80008000
Entry Point: 80008000
Loading OS U-Boot uImage '/mnt/uImage'
OS image is at 0x80008000-0x80341d5f
Passing control to ARM Linux uImage handler
Starting kernel at 0x80008000...
commandline: console=tty02,115200n8 mem=256M earlyprintk=serial,ttyO2,115200 noinitrd root=/dev/mmcblk0p2 rw rootfstype=ext3 ip=dhcp
arch_number: 1535
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 0/2] omap3evm: Enable Linux boot
2012-02-07 16:16 [PATCH 0/2] omap3evm: Enable Linux boot Sanjeev Premi
` (2 preceding siblings ...)
2012-02-07 16:24 ` [PATCH 0/2] omap3evm: Enable " Premi, Sanjeev
@ 2012-02-08 9:05 ` Sascha Hauer
3 siblings, 0 replies; 5+ messages in thread
From: Sascha Hauer @ 2012-02-08 9:05 UTC (permalink / raw)
To: Sanjeev Premi; +Cc: barebox
On Tue, Feb 07, 2012 at 09:46:52PM +0530, Sanjeev Premi wrote:
> These patches are necessary enable Linux boot from
> barebox.bin.
>
> Both patches apply against the 'next' branch at:
The changes are obviously correct, applied to -master.
Sascha
--
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
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 5+ messages in thread