• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/boot/at91bootstrap/at91bootstrap-1.16-u-boot-relocation-fix.patch
Alexandre BelloniAlexandre Belloni committed 654f869cab026 Oct 2012
Raw file
Source viewDiff to previous
diff --git a/board/at91sam9m10g45ek/dataflash/at91sam9m10g45ek.h b/board/at91sam9m10g45ek/dataflash/at91sam9m10g45ek.h
 
1
From d4e4a1aad559e35d84b445d1379be94ad036984e Mon Sep 17 00:00:00 2001
2
From: Alexandre Belloni <alexandre.belloni@piout.net>
3
Date: Thu, 25 Oct 2012 22:57:14 +0200
4
Subject: [PATCH] u-boot relocation fix
5
​
6
Every AT91SAM plaforms were broken between 2010.12 and 2011.03 because
7
of the relocation changes.
8
​
9
We have to get JUMP_ADDR consistant with what is used by u-boot
10
(CONFIG_SYS_TEXT_BASE).
11
​
12
I didn't know what to do with at91sam9m10g45ek as it doesn't seems to be
13
converted yet. But anyway, that means that it is either not working or
14
doesn't care so changing it here shouldn't harm.
15
​
16
We also have to increase the IMG_SIZE as u-boot as grown larger than the
17
default value. As requested on the u-boot ML, we assume that it could
18
be up to 495kB big.
19
​
20
It means that now, you have to flash your kernel at 0x00084000 instead
21
of 0x00042000. And so you also have to load it from that adress from
22
u-boot.
23
​
24
Then, remember that you could decrease IMG_SIZE to boot faster.
25
​
26
Signed-off-by: Alexandre Belloni <alexandre.belloni@piout.net>
27
---
28
 board/at91sam9260ek/dataflash/at91sam9260ek.h      |    4 ++--
29
 board/at91sam9260ek/nandflash/at91sam9260ek.h      |    2 +-
30
 board/at91sam9261ek/dataflash/at91sam9261ek.h      |    4 ++--
31
 board/at91sam9261ek/nandflash/at91sam9261ek.h      |    2 +-
32
 board/at91sam9263ek/dataflash/at91sam9263ek.h      |    4 ++--
33
 board/at91sam9263ek/nandflash/at91sam9263ek.h      |    2 +-
34
 board/at91sam9g10ek/dataflash/at91sam9g10ek.h      |    4 ++--
35
 board/at91sam9g10ek/nandflash/at91sam9g10ek.h      |    2 +-
36
 board/at91sam9g20ek/dataflash/at91sam9g20ek.h      |    4 ++--
37
 board/at91sam9g20ek/nandflash/at91sam9g20ek.h      |    2 +-
38
 board/at91sam9m10ekes/dataflash/at91sam9m10ekes.h  |    2 +-
39
 .../at91sam9m10g45ek/dataflash/at91sam9m10g45ek.h  |    2 +-
40
 board/at91sam9rlek/dataflash/at91sam9rlek.h        |    4 ++--
41
 board/at91sam9rlek/nandflash/at91sam9rlek.h        |    2 +-
42
 board/at91sam9xeek/dataflash/at91sam9xeek.h        |    4 ++--
43
 board/at91sam9xeek/nandflash/at91sam9xeek.h        |    2 +-
44
 16 files changed, 23 insertions(+), 23 deletions(-)
45
​
46
diff --git a/board/at91sam9260ek/dataflash/at91sam9260ek.h b/board/at91sam9260ek/dataflash/at91sam9260ek.h
47
index 1834246..91081a1 100644
48
--- a/board/at91sam9260ek/dataflash/at91sam9260ek.h
49
+++ b/board/at91sam9260ek/dataflash/at91sam9260ek.h
50
@@ -74,10 +74,10 @@
51
 #define AT91C_SPI_PCS_DATAFLASH        AT91C_SPI_PCS1_DATAFLASH    /* Boot on SPI NCS0 */
52
 
53
 #define IMG_ADDRESS        0x8400          /* Image Address in DataFlash */
54
-#define    IMG_SIZE        0x33900         /* Image Size in DataFlash    */
55
+#define    IMG_SIZE        0x7BC00         /* Image Size in DataFlash    */
56
 
57
 #define MACH_TYPE       0x44B       /* AT91SAM9260-EK */
58
-#define JUMP_ADDR      0x23F00000      /* Final Jump Address         */
59
+#define JUMP_ADDR      0x21F00000      /* Final Jump Address         */
60
 
61
 /* ******************************************************************* */
62
 /* Application Settings                                                */
63
diff --git a/board/at91sam9260ek/nandflash/at91sam9260ek.h b/board/at91sam9260ek/nandflash/at91sam9260ek.h
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.