diff mbox

[OpenWrt-Devel,1/3] Update uboot-omap to 15.07

Message ID 87wpvoc0m6.fsf@terralonza.de
State Superseded
Headers show

Commit Message

Tara Lorenz Sept. 17, 2015, 7:22 p.m. UTC
Hello everybody,

the old uboot-omap package fails to compile when using gcc 5.x.
Therefore i made a patch using a more recent version of u-boot.
I decided to choose 15.07, the same version as currently used for the
sunxi based boards.

So far i only tested that the package can now be compiled using
gcc 5.x.  I can test functionality for beagle-board, beagle-bone
and panda-board during the weekend, if that's needed.

I hope it's helpful somehow.

Cheers, Tara

From 9bba92b8ab7d78dd04036be6445da116c0d343c3 Mon Sep 17 00:00:00 2001
From: Tara Lorenz <tara@terralonza.de>
Date: Thu, 17 Sep 2015 15:54:13 +0200
Subject: [PATCH 1/3] uboot-omap 2015.07: remove old patches


The removed patches functionality is already contained in newer U-Boot
versions.
---
 .../boot/uboot-omap/patches/002-fix_jffs2.patch    | 34 ----------------------
 .../uboot-omap/patches/003-fix_findfdt_C4.patch    | 11 -------
 2 files changed, 45 deletions(-)
 delete mode 100644 package/boot/uboot-omap/patches/002-fix_jffs2.patch
 delete mode 100644 package/boot/uboot-omap/patches/003-fix_findfdt_C4.patch

Comments

Dirk Neukirchen Sept. 18, 2015, 7:05 a.m. UTC | #1
On 17.09.2015 21:22, Tara Lorenz wrote:
> 
> Hello everybody,
> 
> the old uboot-omap package fails to compile when using gcc 5.x.
> Therefore i made a patch using a more recent version of u-boot.
> I decided to choose 15.07, the same version as currently used for the
> sunxi based boards.
> 
> So far i only tested that the package can now be compiled using
> gcc 5.x.  I can test functionality for beagle-board, beagle-bone
> and panda-board during the weekend, if that's needed.
> 
> I hope it's helpful somehow.
> 
> Cheers, Tara
> 

u-boot 2015.07 does not boot at my end.
Hardware: BeagleBoard C4 ("ebvbeagle")

I was doing some development locally and wanted to update u-boot but 
the MLO seems to be broken.
2015.04 works (all earlier versions work too)
2015.07 does not work (holding USR button, pressing RESET does not work)
2015.10-rc3 does not work

I used default gcc 4.8 to eliminate compile issues (backporting gcc5 patches 
to uboot 2013 works)

Please test the update on your 3 boards

working bootlog - as written before 2015.07 does not react/print anything:

U-Boot SPL 2015.04 (Sep 18 2015 - 08:05:03)
SPL: Please implement spl_start_uboot() for your board
SPL: Direct Linux boot not active!
reading u-boot.img
reading u-boot.img


U-Boot 2015.04 (Sep 18 2015 - 08:05:03)

OMAP3530-GP ES3.1, CPU-OPP2, L3-165MHz, Max CPU Clock 720 MHz
OMAP3 Beagle board + LPDDR/NAND
I2C:   ready
DRAM:  256 MiB
NAND:  256 MiB
MMC:   OMAP SD/MMC: 0
*** Warning - bad CRC, using default environment

Beagle Rev C4
Timed out in wait_for_event: status=0000
Check if pads/pull-ups of bus 1 are properly configured
No EEPROM on expansion board
Die ID #2f92000400000000040365fa16001013
Net:   usb_ether
Error: usb_ether address not set.

Hit any key to stop autoboot:  0 
switch to partitions #0, OK
mmc0 is current device
gpio: pin 173 (gpio 173) value is 1
gpio: pin 7 (gpio 7) value is 0
SD/MMC found on device 0
reading uEnv.txt
488 bytes read in 5 ms (94.7 KiB/s)
Loaded environment from uEnv.txt
Importing environment from mmc ...
Running uenvcmd ...
reading openwrt-omap-zImage
2081208 bytes read in 160 ms (12.4 MiB/s)
reading omap3-beagle.dtb
61168 bytes read in 12 ms (4.9 MiB/s)
Kernel image @ 0x80200000 [ 0x000000 - 0x1fc1b8 ]
## Flattened Device Tree blob at 80f80000
   Booting using the fdt blob at 0x80f80000
   Using Device Tree in place at 80f80000, end 80f91eef

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 3.18.21 (tenchi@tenchi-htpc) (gcc version 4.8.3 (OpenWrt/Linaro GCC 4.8-2014.04 r46986) ) #1 SMP Fri Sep 18 08:08:04 CEST 2015
[    0.000000] CPU: ARMv7 Processor [411fc083] revision 3 (ARMv7), cr=10c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
[    0.000000] Machine model: TI OMAP3 BeagleBoard
...


Greetings, Dirk
diff mbox

Patch

diff --git a/package/boot/uboot-omap/patches/002-fix_jffs2.patch b/package/boot/uboot-omap/patches/002-fix_jffs2.patch
deleted file mode 100644
index cba0e25..0000000
--- a/package/boot/uboot-omap/patches/002-fix_jffs2.patch
+++ /dev/null
@@ -1,34 +0,0 @@ 
-Building boards that have JFFS2 support enabled will fail when using
-U-Boot's builtin GCC library, for example like this:
-
-USE_PRIVATE_LIBGCC=yes ./MAKEALL omap3_evm
-...
-fs/jffs2/libjffs2.o: In function `jffs2_1pass_build_lists':
-fs/jffs2/jffs2_1pass.c:1441: undefined reference to `__aeabi_uldivmod'
-
-This is caused by a u64 / u32 division in jffs2_1pass.c; the problem
-can be avoided by using do_div() instead of plain division.
-
-Signed-off-by: Wolfgang Denk <wd@denx.de>
-Reported-by: Chris Ruehl <chris.ruehl@gtsys.com.hk>
-Cc: Chris Ruehl <chris.ruehl@gtsys.com.hk>
-
----
- fs/jffs2/jffs2_1pass.c | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/fs/jffs2/jffs2_1pass.c b/fs/jffs2/jffs2_1pass.c
-index c856983..a7dbe79 100644
---- a/fs/jffs2/jffs2_1pass.c
-+++ b/fs/jffs2/jffs2_1pass.c
-@@ -1438,7 +1438,7 @@ jffs2_1pass_build_lists(struct part_info * part)
- {
- 	struct b_lists *pL;
- 	struct jffs2_unknown_node *node;
--	u32 nr_sectors = part->size/part->sector_size;
-+	u32 nr_sectors = do_div(part->size, part->sector_size);
- 	u32 i;
- 	u32 counter4 = 0;
- 	u32 counterF = 0;
---
-1.8.3.1
diff --git a/package/boot/uboot-omap/patches/003-fix_findfdt_C4.patch b/package/boot/uboot-omap/patches/003-fix_findfdt_C4.patch
deleted file mode 100644
index b0b85e5..0000000
--- a/package/boot/uboot-omap/patches/003-fix_findfdt_C4.patch
+++ /dev/null
@@ -1,11 +0,0 @@ 
---- a/include/configs/omap3_beagle.h
-+++ b/include/configs/omap3_beagle.h
-@@ -242,6 +242,8 @@
- 			"setenv fdtfile omap3-beagle.dtb; fi; " \
- 		"if test $beaglerev = Cx; then " \
- 			"setenv fdtfile omap3-beagle.dtb; fi; " \
-+		"if test $beaglerev = C4; then " \
-+			"setenv fdtfile omap3-beagle.dtb; fi; " \
- 		"if test $beaglerev = xMAB; then " \
- 			"setenv fdtfile omap3-beagle-xm.dtb; fi; " \
- 		"if test $beaglerev = xMC; then " \