[U-Boot-Users] Adding Commands in the U-Boot

Hi All, I want to Add new User commands in the u-boot code, If any body knows how to add the Commands, Please let me know how to do. e.g I want to ADD THE Command 'msg', which when written on the CLI(Command Line Interface) Prints some message. I am using pmc8266 board.
Regards!!! Vikrant ************************************************************************** This email (including any attachments) is intended for the sole use of the intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or distribution or forwarding of any or all of the contents in this message is STRICTLY PROHIBITED. If you are not the intended recipient, please contact the sender by email and delete all copies; your cooperation in this regard is appreciated. **************************************************************************

In message 3D9FDCA910DD4445896A0BE5ECF009D40189F132@bla.satyam.com you wrote:
I want to Add new User commands in the u-boot code, If any body knows how to add the Commands, Please let me know how to do.
Please explain which parts of the doc/README.commands file you cannot understand, so I can improve the existing documentation.
e.g I want to ADD THE Command 'msg', which when written on the CLI(Command Line Interface) Prints some message.
What would be the difference between your new command and the existing "echo" command (apart from the name)?
Best regards,
Wolfgang Denk

Hello,
Is there a limit for the amount of memory allocated by "molloc" in u-boot? I have the following problem. If I request memory of 2112 bytes, malloc returns a non-NULL pointer which means the memory is successfully allocated. But u-boot doesn't work as expected. I have set CFG_MALLOC_LEN to a very big value. If we use static global array of char to reserve memory, then u-boot works as expected.
Li Xin Best regards.
_________________________________________________________ Do You Yahoo!? 150万曲MP3疯狂搜,带您闯入音乐殿堂 http://music.yisou.com/ 美女明星应有尽有,搜遍美图、艳图和酷图 http://image.yisou.com 1G就是1000兆,雅虎电邮自助扩容! http://cn.rd.yahoo.com/mail_cn/tag/1g/*http://cn.mail.yahoo.com/event/mail_1...

In message 20041104111718.44418.qmail@web15601.mail.cnb.yahoo.com you wrote:
Is there a limit for the amount of memory allocated by "molloc" in u-boot? I have the following problem.
Yes, the limit is defined by CFG_MALLOC_LEN (and of course by your actual RAM size).
If I request memory of 2112 bytes, malloc returns a non-NULL pointer which means the memory is successfully allocated. But u-boot doesn't work as expected. I have set CFG_MALLOC_LEN to a very big
Please explain what "doesn't work as expected" means.
Best regards,
Wolfgang Denk
participants (3)
-
Vikrant_Basotra
-
Wolfgang Denk
-
Xin Li