Skip to contentSkip to conversation

omap3evm: Enable Linux boot

PATCH In review Sanjeev Premi 2 participants 5 messages Feb 7, 2012 – Feb 8, 2012 Arm (32-bit)

lore
Share & tools
lore
#0 lore raw

cover 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(-)

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

#1 lore raw

PATCH 1/2 omap3evm: Remove inclusion of non-existent header

File 'mach/board.h' doesn't exist any more.

---
 arch/arm/boards/omap3evm/board.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
arch/arm/boards/omap3evm/board.c +0 -1
index fdd5227..21d2504 100644
@@ -59,7 +59,6 @@
 #include <mach/control.h>
 #include <mach/omap3-mux.h>
 #include <mach/gpmc.h>
-#include <mach/board.h>
 #include <errno.h>
 
 
Signature · 7 lines
1.7.0.4


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

PATCH 2/2 omap3evm: Setup ATAGs for Linux boot

In reply to Sanjeev Premi
---
 arch/arm/boards/omap3evm/board.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
arch/arm/boards/omap3evm/board.c +4 -0
index 21d2504..3108146 100644
@@ -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);
Signature · 7 lines
1.7.0.4


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
#3 lore raw
In reply to Sanjeev Premi
Quoted 20 lines

-----Original Message-----
From: Premi, Sanjeev
Sent: Tuesday, February 07, 2012 9:47 PM
To: [email protected]
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).

Quoted 7 lines

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

#4 lore raw
In reply to Sanjeev Premi
Quoted 4 lines · Sanjeev Premi

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

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