diff mbox

[U-Boot,2/2] microblaze: Enable ubi support

Message ID 1340307771-15204-2-git-send-email-linz@li-pro.net
State Changes Requested
Delegated to: Michal Simek
Headers show

Commit Message

Stephan Linz June 21, 2012, 7:42 p.m. UTC
To save memory the UBIFS is disabled by default.

The original patch was introdused with commit:
0114da7b06bd47b7f5c3f20a152dd11903b38fba

Signed-off-by: Stephan Linz <linz@li-pro.net>
---
 include/configs/microblaze-generic.h |   23 +++++++++++++++++++----
 1 files changed, 19 insertions(+), 4 deletions(-)

Comments

Michal Simek June 25, 2012, 5:04 a.m. UTC | #1
On 06/21/2012 09:42 PM, Stephan Linz wrote:
> To save memory the UBIFS is disabled by default.
>
> The original patch was introdused with commit:
> 0114da7b06bd47b7f5c3f20a152dd11903b38fba

This say nothing to me.
Format is Patch name and when sha1.

Where is this patch? I can't see it in mainline repository?

Thanks,
Michal
Wolfgang Denk June 25, 2012, 7:22 a.m. UTC | #2
Dear Michal Simek,

In message <4FE7F154.80406@monstr.eu> you wrote:
> On 06/21/2012 09:42 PM, Stephan Linz wrote:
> > To save memory the UBIFS is disabled by default.
> >
> > The original patch was introdused with commit:
> > 0114da7b06bd47b7f5c3f20a152dd11903b38fba
> 
> This say nothing to me.
> Format is Patch name and when sha1.
> 
> Where is this patch? I can't see it in mainline repository?

Correct.  This commit does not exist in mainline.

Best regards,

Wolfgang Denk
Stephan Linz June 25, 2012, 5:08 p.m. UTC | #3
Am Montag, den 25.06.2012, 09:22 +0200 schrieb Wolfgang Denk: 
> Dear Michal Simek,
> 
> In message <4FE7F154.80406@monstr.eu> you wrote:
> > On 06/21/2012 09:42 PM, Stephan Linz wrote:
> > > To save memory the UBIFS is disabled by default.
> > >
> > > The original patch was introdused with commit:
> > > 0114da7b06bd47b7f5c3f20a152dd11903b38fba
> > 
> > This say nothing to me.
> > Format is Patch name and when sha1.
> > 
> > Where is this patch? I can't see it in mainline repository?
> 
> Correct.  This commit does not exist in mainline.

Yes, the commit was newer merged into mainline and lives for more than
one year in Microblaze custodian repo:

http://git.denx.de/?p=u-boot/u-boot-microblaze.git;a=commitdiff;h=0114da7b06bd47b7f5c3f20a152dd11903b38fba


br,
Stephan
Michal Simek June 26, 2012, 8:52 a.m. UTC | #4
2012/6/25 Stephan Linz <linz@li-pro.net>:
> Am Montag, den 25.06.2012, 09:22 +0200 schrieb Wolfgang Denk:
>> Dear Michal Simek,
>>
>> In message <4FE7F154.80406@monstr.eu> you wrote:
>> > On 06/21/2012 09:42 PM, Stephan Linz wrote:
>> > > To save memory the UBIFS is disabled by default.
>> > >
>> > > The original patch was introdused with commit:
>> > > 0114da7b06bd47b7f5c3f20a152dd11903b38fba
>> >
>> > This say nothing to me.
>> > Format is Patch name and when sha1.
>> >
>> > Where is this patch? I can't see it in mainline repository?
>>
>> Correct.  This commit does not exist in mainline.
>
> Yes, the commit was newer merged into mainline and lives for more than
> one year in Microblaze custodian repo:
>
> http://git.denx.de/?p=u-boot/u-boot-microblaze.git;a=commitdiff;h=0114da7b06bd47b7f5c3f20a152dd11903b38fba

I have there two branches - master and uboot. uboot follows mainline
branch and master contain one your patch
which was merged to mainline.
That link is correct but it points to nonexisting branch.
That patch was definitely there but that branch was delete quite some time ago.

Wolfgang: How to run git-gc on this repository?

I am ok to add this to mainline. Please add that two patches together
and resubmit.
Also I would prefer to define SYS_MALLOC_LEN based on SIZE.
It means for example
#define        CONFIG_SYS_MALLOC_LEN (SIZE *2)
or similar.

Thanks,
Michal
Stephan Linz June 26, 2012, 4:56 p.m. UTC | #5
Am Dienstag, den 26.06.2012, 10:52 +0200 schrieb Michal Simek: 
> 2012/6/25 Stephan Linz <linz@li-pro.net>:
> > Am Montag, den 25.06.2012, 09:22 +0200 schrieb Wolfgang Denk:
> >> Dear Michal Simek,
> >>
> >> In message <4FE7F154.80406@monstr.eu> you wrote:
> >> > On 06/21/2012 09:42 PM, Stephan Linz wrote:
> >> > > To save memory the UBIFS is disabled by default.
> >> > >
> >> > > The original patch was introdused with commit:
> >> > > 0114da7b06bd47b7f5c3f20a152dd11903b38fba
> >> >
> >> > This say nothing to me.
> >> > Format is Patch name and when sha1.
> >> >
> >> > Where is this patch? I can't see it in mainline repository?
> >>
> >> Correct.  This commit does not exist in mainline.
> >
> > Yes, the commit was newer merged into mainline and lives for more than
> > one year in Microblaze custodian repo:
> >
> > http://git.denx.de/?p=u-boot/u-boot-microblaze.git;a=commitdiff;h=0114da7b06bd47b7f5c3f20a152dd11903b38fba
> 
> I have there two branches - master and uboot. uboot follows mainline
> branch and master contain one your patch
> which was merged to mainline.
> That link is correct but it points to nonexisting branch.
> That patch was definitely there but that branch was delete quite some time ago.

Yes, it was in the net (?) branch that was deleted sometime.

> 
> Wolfgang: How to run git-gc on this repository?
> 
> I am ok to add this to mainline. Please add that two patches together
> and resubmit.

I'll do so (three patches -- see my other comment).

> Also I would prefer to define SYS_MALLOC_LEN based on SIZE.
> It means for example
> #define        CONFIG_SYS_MALLOC_LEN (SIZE *2)
> or similar.

OK, I'll evaluate the best factor for this multiplication.


br,
Stephan
diff mbox

Patch

diff --git a/include/configs/microblaze-generic.h b/include/configs/microblaze-generic.h
index 2ef7d62..90f97a1 100644
--- a/include/configs/microblaze-generic.h
+++ b/include/configs/microblaze-generic.h
@@ -159,14 +159,13 @@ 
 		(CONFIG_SYS_SDRAM_SIZE - GENERATED_GBL_DATA_SIZE)
 
 /* monitor code */
-#define	SIZE				0x40000
-#define	CONFIG_SYS_MONITOR_LEN		SIZE
+#define	CONFIG_SYS_MONITOR_LEN		0x40000
 #define	CONFIG_SYS_MONITOR_BASE	\
 		(CONFIG_SYS_SDRAM_BASE + CONFIG_SYS_GBL_DATA_OFFSET \
 			- CONFIG_SYS_MONITOR_LEN - GENERATED_BD_INFO_SIZE)
 #define	CONFIG_SYS_MONITOR_END \
 			(CONFIG_SYS_MONITOR_BASE + CONFIG_SYS_MONITOR_LEN)
-#define	CONFIG_SYS_MALLOC_LEN		SIZE
+#define	CONFIG_SYS_MALLOC_LEN		0x100000
 #define	CONFIG_SYS_MALLOC_BASE \
 			(CONFIG_SYS_MONITOR_BASE - CONFIG_SYS_MALLOC_LEN)
 
@@ -273,6 +272,8 @@ 
 # define CONFIG_CMD_FLASH
 # define CONFIG_CMD_IMLS
 # define CONFIG_CMD_JFFS2
+# define CONFIG_CMD_UBI
+# undef CONFIG_CMD_UBIFS
 
 # if !defined(RAMENV)
 #  define CONFIG_CMD_SAVEENV
@@ -285,7 +286,21 @@ 
 #endif
 
 #if defined(CONFIG_CMD_JFFS2)
-/* JFFS2 partitions */
+# define CONFIG_MTD_PARTITIONS
+#endif
+
+#if defined(CONFIG_CMD_UBIFS)
+# define CONFIG_CMD_UBI
+# define CONFIG_LZO
+#endif
+
+#if defined(CONFIG_CMD_UBI)
+# define CONFIG_MTD_PARTITIONS
+# define CONFIG_RBTREE
+#endif
+
+#if defined(CONFIG_MTD_PARTITIONS)
+/* MTD partitions */
 #define CONFIG_CMD_MTDPARTS	/* mtdparts command line support */
 #define CONFIG_MTD_DEVICE	/* needed for mtdparts commands */
 #define CONFIG_FLASH_CFI_MTD