Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
White Rabbit Switch - Software
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
86
Issues
86
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
CI / CD
CI / CD
Pipelines
Schedules
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
White Rabbit Switch - Software
Commits
942d907f
Commit
942d907f
authored
Aug 07, 2012
by
Alessandro Rubini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel patches: changed mtd partitions
parent
bd326fac
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
71 additions
and
0 deletions
+71
-0
0005-Change-Vbus-pin.patch
patches/kernel/v2.6.39/0005-Change-Vbus-pin.patch
+25
-0
0008-wrs3-use-correct-nand-partitioning.patch
...nel/v2.6.39/0008-wrs3-use-correct-nand-partitioning.patch
+46
-0
No files found.
patches/kernel/v2.6.39/0005-
fix-nand-parition-layout-and-usb-vbus
.patch
→
patches/kernel/v2.6.39/0005-
Change-Vbus-pin
.patch
View file @
942d907f
From
6f5a77b2cc2b1253ee5a4a9fb578c3bd4e5a8e60
Mon Sep 17 00:00:00 2001
From
d77686b1021c98a971ff3aadb8269540bdb46dd2
Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Tomasz=20W=C5=82ostowski?= <tomasz.wlostowski@cern.ch>
Date: Thu, 31 May 2012 13:26:20 +0200
Subject: [PATCH] Fix NAND partition layout to avoid overwriting barebox
environment and USB VBus pin connection
Subject: [PATCH 5/8] Change Vbus pin
---
arch/arm/mach-at91/board-sam9m10g45ek.c |
8 ++++---
-
1 files changed,
4 insertions(+), 4
deletions(-)
arch/arm/mach-at91/board-sam9m10g45ek.c |
2 +
-
1 files changed,
1 insertions(+), 1
deletions(-)
diff --git a/arch/arm/mach-at91/board-sam9m10g45ek.c b/arch/arm/mach-at91/board-sam9m10g45ek.c
index d0e1e67..
2ce5751
100644
index d0e1e67..
8df2e47
100644
--- a/arch/arm/mach-at91/board-sam9m10g45ek.c
+++ b/arch/arm/mach-at91/board-sam9m10g45ek.c
@@ -81,7 +81,7 @@ static struct at91_usbh_data __initdata ek_usbh_hs_data = {
...
...
@@ -21,24 +20,6 @@ index d0e1e67..2ce5751 100644
};
@@ -131,14 +131,14 @@ static struct at91_eth_data __initdata ek_macb_data = {
*/
static struct mtd_partition __initdata ek_nand_partition[] = {
{
- .name = "Partition 1",
+ .name = "kernel",
.offset = 0,
.size = SZ_64M,
},
{
- .name = "Partition 2",
+ .name = "rootfs",
.offset = MTDPART_OFS_NXTBLK,
- .size = MTDPART_SIZ_FULL,
+ .size = SZ_128M,
},
};
--
1.7.
5.4
1.7.
7.2
patches/kernel/v2.6.39/0008-wrs3-use-correct-nand-partitioning.patch
0 → 100644
View file @
942d907f
From 111a2f978f9e3271ed9e0a62e391e9d81d393d62 Mon Sep 17 00:00:00 2001
From: Alessandro Rubini <rubini@gnudd.com>
Date: Tue, 7 Aug 2012 12:42:36 +0200
Subject: [PATCH 8/8] wrs3: use correct nand partitioning
---
arch/arm/mach-at91/board-sam9m10g45ek.c | 21 ++++++++++++++++-----
1 files changed, 16 insertions(+), 5 deletions(-)
diff --git a/arch/arm/mach-at91/board-sam9m10g45ek.c b/arch/arm/mach-at91/board-sam9m10g45ek.c
index 8df2e47..d40aa3c 100644
--- a/arch/arm/mach-at91/board-sam9m10g45ek.c
+++ b/arch/arm/mach-at91/board-sam9m10g45ek.c
@@ -131,13 +131,24 @@ static struct at91_eth_data __initdata ek_macb_data = {
*/
static struct mtd_partition __initdata ek_nand_partition[] = {
{
- .name = "Partition 1",
- .offset = 0,
- .size = SZ_64M,
+ .name = "Kernel",
+ .offset = 1 << 20,
+ .size = SZ_8M,
},
{
- .name = "Partition 2",
- .offset = MTDPART_OFS_NXTBLK,
+ .name = "Filesystem", /* We _want_ this to be mtd1 */
+ .offset = 64 << 20,
+ .size = SZ_128M,
+ },
+ {
+ .name = "Barebox Environment",
+ .offset = 256 << 10,
+ .size = SZ_256K,
+ },
+ /* This is actuallywas MTDPART_OFS_APPEND over the filesystem */
+ {
+ .name = "Available",
+ .offset = (128+64) << 20,
.size = MTDPART_SIZ_FULL,
},
};
--
1.7.7.2
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment