UBI command support (take #2)
PATCH 1/1 UBI command support (take #2)
It supports basic operation such as create, remove, read, and write.
---
common/Makefile +1 -0
@@ -139,6 +139,7 @@ COBJS-$(CONFIG_CMD_SETEXPR) += cmd_setexpr.o COBJS-$(CONFIG_CMD_SPI) += cmd_spi.o COBJS-$(CONFIG_CMD_STRINGS) += cmd_strings.o COBJS-$(CONFIG_CMD_TERMINAL) += cmd_terminal.o +COBJS-$(CONFIG_CMD_UBI) += cmd_ubi.o COBJS-$(CONFIG_CMD_UNIVERSE) += cmd_universe.o ifdef CONFIG_CMD_USB COBJS-y += cmd_usb.o
common/cmd_ubi.c new file +516 -0
516 lines not on this page · raw message
include/exports.h +1 -0
@@ -25,6 +25,7 @@ char *getenv (char *name);int setenv (char *varname,char *varvalue);long simple_strtol (const char *cp,char **endp,unsigned int base);int strcmp (const char * cs,const char * ct); +int ustrtoul (const char *cp,char **endp,unsigned int base);#ifdef CONFIG_HAS_UID void forceenv (char *varname,char *varvalue);#endif
include/jffs2/load_kernel.h +5 -0
@@ -73,4 +73,9 @@ struct mtdids {#define putLabeledWord (x, y) printf("%s %08x\n", x, (unsigned int)y)#define led_blink (x, y, z, a) +/* common/cmd_jffs2.c */ +extern int mtdparts_init (void ); +extern int find_dev_and_part (const char *id,struct mtd_device **dev, +u8 *part_num,struct part_info **part); +#endif /* load_kernel_h */
lib_generic/vsprintf.c +23 -0
@@ -55,6 +55,29 @@ long simple_strtol(const char *cp,char **endp,unsigned int base)return simple_strtoul (cp,endp,base); } +int ustrtoul (const char *cp,char **endp,unsigned int base) +{ +unsigned long result =simple_strtoul (cp, endp, base); +switch (**endp) { +case 'G' : + result *=1024 ; +/* fall through */ +case 'M' : + result *=1024 ; +/* fall through */ +case 'K' : +case 'k' : + result *=1024 ; +if ((*endp)[1 ] =='i' ) { +if ((*endp)[2 ] =='B' ) + (*endp) +=3 ; +else + (*endp) +=2 ; + } + } +return result; +} +#ifdef CONFIG_SYS_64BIT_STRTOUL unsigned long long simple_strtoull (const char *cp,char **endp,unsigned int base) {
PATCH 1/1 UBI command support (take #2)
Dear Kyungmin, dear Stefan,
Quoted 1 line · in message <20081022091707.GA16455@july> you wrote:
It supports basic operation such as create, remove, read, and write.
Could you please summarize the current state of adding UBI support?
Is it correct to assume we are targetting the 2008.12 release with this stuff?
Best regards,
Wolfgang Denk
Signature · 4 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Machines take me by surprise with great frequency. - Alan Turing
PATCH 1/1 UBI command support (take #2)
Quoted 7 lines · Wolfgang Denk
Dear Kyungmin, dear Stefan,
Quoted 1 line · in message <20081022091707.GA16455@july> you wrote:
It supports basic operation such as create, remove, read, and write.
Could you please summarize the current state of adding UBI support?
Not much as before,
1. Basic UBI command support.
read/write/update volume. Of course you can create & remove the volume.
2. Send ubi device from environment variables instead of hard code value.
I saw the NOR device support patch but not yet tested.
Are there the more?
Quoted 3 lines
Is it correct to assume we are targetting the 2008.12 release with this stuff?
Yes, I hope to merge it ASAP.
Thank you,
Kyungmin Park
PATCH 1/1 UBI command support (take #2)
Quoted 8 lines · Kyungmin Park
Quoted 1 line
Could you please summarize the current state of adding UBI support?
Not much as before,
1. Basic UBI command support.
read/write/update volume. Of course you can create & remove the volume.
2. Send ubi device from environment variables instead of hard code value.
Quoted 8 lines
I saw the NOR device support patch but not yet tested.
Are there the more?
Quoted 2 lines
Is it correct to assume we are targetting the 2008.12 release with this stuff?
Yes, I hope to merge it ASAP.
I'll post some last-minute UBI fixup patches soon (this week).
Best regards,
Stefan
=====================================================================
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: office at denx.de
=====================================================================
[U-Boot] Uboot 4K Page Jump in MPC85xx
Hi,
As am I going through the MPC85xx reset.s code, I find this code snippet below.
I find the Config_sys_monitor is the Text_Base Address in loaded in r3, The Start Offset is zero, I am not getting why we are subtracting the start_cont with start and that addr is loaded in the link register where we jump to.
So what does the address actually refer to? Please Explain.
/* Jump out the last 4K page and continue to 'normal' start */ #ifdef CONFIG_SYS_RAMBOOT
b _start_cont
#else /* Calculate absolute address in FLASH and jump there
*/
/*--------------------------------------------------------------*/
lis r3,CONFIG_SYS_MONITOR_BASE at h ori r3,r3,CONFIG_SYS_MONITOR_BASE at l addi r3,r3,_start_cont - _start + _START_OFFSET mtlr r3 blr
#endif
_Start:
..
..
.._start_cont:
..
..
..
Thanks & Regards,
Vignesh Kumar B
Member Technical Staff
HCL TECHNOLOGIES LTD.,
Mob: +91-9600015988
www.hcl.in
Disclaimer:
This message and any attachment(s) contained here are information that is confidential, proprietary to HCL Technologies and its customers. Contents may be privileged or otherwise protected by law. The information is solely intended for the individual or the entity it is addressed to. If you are not the intended recipient of this message, you are not authorized to read, forward, print, retain, copy or disseminate this message or any part of it. If you have received this e-mail in error, please notify the sender immediately by return e-mail and delete it from your computer.
-----Original Message-----
From: [email protected] [mailto:u-boot-bounces at lists.denx.de] On Behalf Of Stefan Roese
Sent: Wednesday, November 19, 2008 10:12 AM
To: u-boot at lists.denx.de
Subject: Re: [U-Boot] [PATCH] [UBI] UBI command support (take #2)
Quoted 6 lines · Kyungmin Park
Quoted 1 line
Could you please summarize the current state of adding UBI support?
Not much as before,
1. Basic UBI command support.
read/write/update volume. Of course you can create & remove the
volume.
Quoted 1 line
2. Send ubi device from environment variables instead of hard code
value.
Quoted 9 lines
I saw the NOR device support patch but not yet tested.
Are there the more?
Quoted 2 lines
Is it correct to assume we are targetting the 2008.12 release with this stuff?
Yes, I hope to merge it ASAP.
I'll post some last-minute UBI fixup patches soon (this week).
Best regards,
Stefan
=====================================================================
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: office at denx.de
=====================================================================
_______________________________________________
U-Boot mailing list
U-Boot at lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot
DISCLAIMER:
-----------------------------------------------------------------------------------------------------------------------
The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only. It shall not attach any liability on the originator or HCL or its affiliates. Any views or opinions presented in this email are solely those of the author and may not necessarily reflect the opinions of HCL or its affiliates. Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of this message without the prior written consent of the author of this e-mail is strictly prohibited. If you have received this email in error please delete it and notify the sender immediately. Before opening any mail and attachments please check them for viruses and defect.
-----------------------------------------------------------------------------------------------------------------------