[U-Boot] Environment, flash, config.
I have some questions about MTD flash partitioning in OMAP3EVM. From the OMAP3 manual: 0x-0x0008 : X-Loader-ONENAND 0x0008-0x0024 : U-Boot-ONENAND 0x0024-0x0028 : Boot Env-ONENAND 0x0028-0x0078 : Kernel-ONENAND 0x0078-0x0800 : File System-ONENAND Is it correct? When I print CONFIG_ENV_OFFSET I get 0x26. So where the environments are stored? In 26 or in 24? -- Software Developer General Satellite Corp. ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
Re: [U-Boot] cmd_onenand.c, onenand_block_read (...)
Sorry, that was just printf format error. =) I've corrected everything, works fine. On Tuesday 20 October 2009 17:27:04 Tuma wrote: Hi, All! It seems I have a trouble. I want to use onenand_block_read function. So I've written a cover for it: int OneNANDBlockRead (loff_t _from, ssize_t _len, ssize_t *_retlen, u_char *_buf, int _oob) { int lRet; return lRet; } When I do from this fuction: printf (Reading from: 0x%X, Length: 0x%X\n, _from, _len); I get _len and _form swapped. What's wrong? I tryed to pass _from and _len as pointers - pointer addresses are correct but printf (Reading from: 0x%X\n, *_from); printf (Reading Length: 0x%X\n, *_len); return swapped result again. This is how I call OneNANDBlockRead function: static const ssize_t lLen = 0x20; static const ulong lLT = 0x0026; OneNANDBlockRead (lLT, lLen, retlen, lEnvironment, 0); I don't understand it. Can someone help me please. Of course if you need some more information on my problem - you can ask me. -- Software Developer General Satellite Corp. ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
[U-Boot] cmd_onenand.c, onenand_block_read (...)
Hi, All! It seems I have a trouble. I want to use onenand_block_read function. So I've written a cover for it: int OneNANDBlockRead (loff_t _from, ssize_t _len, ssize_t *_retlen, u_char *_buf, int _oob) { int lRet; return lRet; } When I do from this fuction: printf (Reading from: 0x%X, Length: 0x%X\n, _from, _len); I get _len and _form swapped. What's wrong? I tryed to pass _from and _len as pointers - pointer addresses are correct but printf (Reading from: 0x%X\n, *_from); printf (Reading Length: 0x%X\n, *_len); return swapped result again. This is how I call OneNANDBlockRead function: static const ssize_t lLen = 0x20; static const ulong lLT = 0x0026; OneNANDBlockRead (lLT, lLen, retlen, lEnvironment, 0); I don't understand it. Can someone help me please. Of course if you need some more information on my problem - you can ask me. -- Software Developer General Satellite Corp. ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
[U-Boot] Fwd: Re: OMAP3 EVM: Only ONENAND supported, no NAND any more?
-- Software Developer General Satellite Corp. ---BeginMessage--- I have not board with NAND, working with OneNAND only. But I think NAND support have not been removed. Maybe omap3_evm_config configures U-Boot to be built without NAND support. But you can reconfigure it, so NAND support will be included. On Friday 16 October 2009 19:54:53 you wrote: Tuma wrote: Sorry for my intrusion. But why NAND support was removed? It's a question, not a statement. Was NAND support removed? Best regards Dirk Maybe you need just reconfigure and build your U-Boot? On Friday 16 October 2009 19:29:11 Dirk Behme wrote: Hi, in a private mail someone mentioned that recent U-Boot for OMAP3 EVM has only support for ONENAND. And NAND support was removed? He still has an EVM with NAND. Any idea? Best regards Dirk ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot -- Software Developer General Satellite Corp. ---End Message--- ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
Re: [U-Boot] OMAP3 EVM: Only ONENAND supported, no NAND any more?
Sorry for my intrusion. But why NAND support was removed? Maybe you need just reconfigure and build your U-Boot? On Friday 16 October 2009 19:29:11 Dirk Behme wrote: Hi, in a private mail someone mentioned that recent U-Boot for OMAP3 EVM has only support for ONENAND. And NAND support was removed? He still has an EVM with NAND. Any idea? Best regards Dirk ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot -- Software Developer General Satellite Corp. ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
Re: [U-Boot] [PATCH] OneNAND partial read/write support
Hi, Kyungmin Park! Thank you for patch! But I have a question - how should I apply it? Sorry, I'm not very skilled in UNIX/Linux. I've saved all code from: diff --git a/common/cmd_onenand.c b/common/cmd_onenand.c index 9090940..2b8f01b 100644 to: if (arg_off_size(argc - o, argv + o, ofs, len) != 0) into 1.patch file. Tryed to patch -p1 /1.patch from U-Boot directory, and get: patching file common/cmd_onenand.c patch: malformed patch at line 6: return (*p != '\0' *endptr== '\0') ? 1 : 0; I use U-Boot2009.08.rc2. What is wrong? Or maybe you could send me your full /common/cmd_onenand.c ? On Monday 12 October 2009 11:27:10 Kyungmin Park wrote: Now OneNAND handles block operation only. With this patch OneNAND handles all read/write size. Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com --- diff --git a/common/cmd_onenand.c b/common/cmd_onenand.c index 9090940..2b8f01b 100644 --- a/common/cmd_onenand.c +++ b/common/cmd_onenand.c @@ -36,7 +36,7 @@ static inline int str2long(char *p, ulong *num) return (*p != '\0' *endptr == '\0') ? 1 : 0; } -static int arg_off_size(int argc, char *argv[], ulong *off, size_t *size) +static int arg_off_size(int argc, char *argv[], ulong *off, ssize_t *size) { if (argc = 1) { if (!(str2long(argv[0], off))) { @@ -69,61 +69,65 @@ static int arg_off_size(int argc, char *argv[], ulong *off, size_t *size) return 0; } -static int onenand_block_read(loff_t from, size_t len, - size_t *retlen, u_char *buf, int oob) +static int onenand_block_read(loff_t from, ssize_t len, + ssize_t *retlen, u_char *buf, int oob) { struct onenand_chip *this = mtd-priv; - int blocks = (int) len this-erase_shift; int blocksize = (1 this-erase_shift); loff_t ofs = from; struct mtd_oob_ops ops = { .retlen = 0, }; + ssize_t thislen; int ret; - if (oob) - ops.ooblen = blocksize; - else - ops.len = blocksize; + while (len 0) { + thislen = min_t(ssize_t, len, blocksize); + thislen = ALIGN(thislen, mtd-writesize); - while (blocks) { ret = mtd-block_isbad(mtd, ofs); if (ret) { printk(Bad blocks %d at 0x%x\n, (u32)(ofs this-erase_shift), (u32)ofs); - ofs += blocksize; + ofs += thislen; continue; } - if (oob) + if (oob) { ops.oobbuf = buf; - else + ops.ooblen = thislen; + } else { ops.datbuf = buf; + ops.len = thislen; + } ops.retlen = 0; ret = mtd-read_oob(mtd, ofs, ops); if (ret) { printk(Read failed 0x%x, %d\n, (u32)ofs, ret); - ofs += blocksize; + ofs += thislen; continue; } - ofs += blocksize; - buf += blocksize; - blocks--; + ofs += thislen; + buf += thislen; + len -= thislen; *retlen += ops.retlen; } return 0; } -static int onenand_block_write(loff_t to, size_t len, -size_t *retlen, const u_char * buf) +static int onenand_block_write(loff_t to, ssize_t len, +ssize_t *retlen, const u_char * buf) { struct onenand_chip *this = mtd-priv; - int blocks = len this-erase_shift; int blocksize = (1 this-erase_shift); + struct mtd_oob_ops ops = { + .retlen = 0, + .oobbuf = NULL, + }; loff_t ofs; - size_t _retlen = 0; + ssize_t thislen; int ret; if (to == next_ofs) { @@ -135,27 +139,34 @@ static int onenand_block_write(loff_t to, size_t len, } ofs = to; - while (blocks) { + while (len 0) { + thislen = min_t(ssize_t, len, blocksize); + thislen = ALIGN(thislen, mtd-writesize); + ret = mtd-block_isbad(mtd, ofs); if (ret) { printk(Bad blocks %d at 0x%x\n, (u32)(ofs this-erase_shift), (u32)ofs); - skip_ofs += blocksize; + skip_ofs += thislen; goto next; } - ret = mtd-write(mtd, ofs, blocksize, _retlen, buf); + + ops.datbuf = (u_char *) buf; + ops.len = thislen; + ops.retlen = 0; + ret = mtd-write_oob(mtd, ofs, ops); if (ret) { printk(Write failed 0x%x, %d, (u32)ofs,
[U-Boot] OneNAND operations.
Hello, All! My next question is about OneNAND U-Boot operations. I use U-Boot 2009.08.rc2. There is onenand command: onenand read[.oob] addr off size read/write 'size' bytes starting at offset 'off' to/from memory address 'addr', skipping bad blocks. Can someone explain me how should I use it please? I try: onenand read 0x8000 0x0024 1000 0x8000 - is the address where data will be put? off (I use 0x0024 becouse I want to read OMAP3's environments) size is 0x1000 - just for example. And I get: OneNAND read: offset 0x24, size 0x1000 0 bytes read: OK What is wrong? And what is [.oob]? Thank you! -- Software Developer General Satellite Corp. ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
[U-Boot] Die id?
Hi, All! I have a question about serial No. and Die ID. I've found this info: http://www.mail-archive.com/u-boot@lists.denx.de/msg10042.html Can you tell me please what is Die ID? I need some serial No, which could be used as unique ID of device built on OMAP3 processor. Is this possible to realize with Die ID? Thank you. -- Software Developer General Satellite Corp. ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
Re: [U-Boot] Die id?
On Monday 05 October 2009 12:25:41 Dirk Behme wrote: Tuma wrote: Hi, All! I have a question about serial No. and Die ID. I've found this info: http://www.mail-archive.com/u-boot@lists.denx.de/msg10042.html Can you tell me please what is Die ID? I need some serial No, which could be used as unique ID of device built on OMAP3 processor. Is this possible to realize with Die ID? Yes, I think so. Initially we called it serial No, but U-Boot maintainers didn't like this string. So we had to change it to Die ID. For details see OMAP35x TRM (spruf98b.pdf, search for DIE_ID). Best regards Dirk Thank you, Dirk for good and quick answer. -- Software Developer General Satellite Corp. ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
Re: [U-Boot] Adding new U-Boot Command.
On Wednesday 23 September 2009 16:44:50 you wrote: Dear Tuma, In message 200909231144.25176.chernigovs...@spb.gs.ru you wrote: Yes, I've studied the structure of cmv_-file, and here is my code: /* * (C) Copyright 2009 */ #include command.h int PrintSerialNo (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]) { Why do you think such new command is needed? Is anything wrong with just running printenv serial# ? Uhm... Sorry, we did'nt know about 'printenv serial#'. My project manager said me to study U-Boot. This command was just for testing purposes. In real new comman maybe ANY functional. Serial Number is just for test. =) Thank a lot. Everythink about command works. Best regards, Wolfgang Denk -- Software Developer General Satellite Corp. ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
Re: [U-Boot] Adding new U-Boot Command.
Hi, Detlev! Okay, I want to add some not board specific command - just some new functional. So I should put it in /common. Yes, I've studied the structure of cmv_-file, and here is my code: /* * (C) Copyright 2009 */ #include command.h int PrintSerialNo (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]) { // Do something here return 0; } U_BOOT_CMD(printsn, 1, 0, PrintSerialNo, Print Serial Number, Long Help); The file is named cmd_sn.c and have been put in /common. Now I'm not very skilled in make system. So can you help me please in adding new .c file in final u-boot image? For example I need to include my new file unconditionally. I should edit Makefile in /common? What should be changed in this file? On Tuesday 22 September 2009 13:52:52 you wrote: Hi Tuma, Help me please in writting new U-Boot commands. What should I do? I should write new file in /common, something like cmd_, am I right? This really depends if you want to implement a command which is useful for all boards, then it should be below common/ or if it is special to one board. Then it should go into the board directory. So where can I read about cmd_-file structure and how should new commands be added? You have all the source to study. Look into how other people do it. Search the history for commits adding new commands and study them. For example this commit[1] adds new commands to an already existing file, but it is a start. And how can I add my new file to U-Boot binary? Make sure it is mentioned in the relevant Makefile. Cheers Detlev PS: Is the LCD display working now? No, it still does not. Work in progress. [1] http://git.denx.de/?p=u-boot.git;a=commitdiff;h=02c9aa1d41f73fdcf8383a36cc0 cbbfaf952855d -- Software Developer General Satellite Corp. ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
[U-Boot] Adding new U-Boot Command.
Hi, All! Help me please in writting new U-Boot commands. What should I do? I should write new file in /common, something like cmd_, am I right? So where can I read about cmd_-file structure and how should new commands be added? And how can I add my new file to U-Boot binary? -- Software Developer General Satellite Corp. ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
Re: [U-Boot] BMP display.
On Monday 17 August 2009 19:37:53 you wrote: -Original Message- From: u-boot-boun...@lists.denx.de [mailto:u-boot-boun...@lists.denx.de] On Behalf Of Tuma Sent: Monday, August 17, 2009 7:26 PM To: Wolfgang Denk; U-Boot Mailing List Subject: Re: [U-Boot] BMP display. On Monday 17 August 2009 16:38:31 you wrote: Dear Tuma, again: please keep the mailing list on Cc: !!! In message 200908171631.17975.chernigovs...@spb.gs.ru you wrote: Okay. Is new version configurable for OMAP3evm out of the box? Yes. And is the v2009.08-rc2 stable enought? Yes. Thank you. I've downloaded new U-Boot 2009.08.rc2. I have some error while making it. I do: make distclean (Okay) make omap3_evm_config (Okay) make And get: make[1]: arm-linux-gcc: Command not found My old U-Boot used arm-none-linux-gnueabi-gcc which make system could easyly find on my system. Should I install some new software to build new U-Boot? Or configure existing Makefile? Can you try: make CROSS_COMPILE=arm-none-linux-gnueabi- Oo, thank you! I forgot about CROSS_COMPILE=. In my old U-Boot this parameter was set in Makefile. In 2009 CROSS_COMPILE= in Makefile was ignored. U-boot 2009 is built now, and runs on OMAP3 evm. So I have to put i2c driver files (as .h as .c) to drivers/i2c and LCD driver file s (as .h as .c) to drivers/video? Best regards, Wolfgang Denk -- Software Developer General Satellite Corp. ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot -- Software Developer General Satellite Corp. ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
Re: [U-Boot] BMP display.
On Monday 17 August 2009 13:33:50 you wrote: Dear Tuma, please keep the mailing list on Cc: - thanks. In message 200908171305.55605.chernigovs...@spb.gs.ru you wrote: In message 200908131326.20857.chernigovs...@spb.gs.ru you wrote: I have LCD drivers from TI for OMAP3 evm board. I need to include this files to my current u-boot. I have .h and .c files with some functional I need. I want to call some functions implemented in this files from main_loop (). I You definitely do NOT want to do that. the main_loop is the command interpreter. Don't mess with that code. Okay. We'll talk about it a little bit later. put .h files in the include directory, adn .c files to the drivers directory. Then I include appropriate .h file in main.c, compile and get error: /root/GS/Taimen/U-Boot-Upgrader/common/main.c:343: undefined reference to `enable_lcd_power'. What do I do wrong? How new files should be added to the project? You also have to make sure these files get linked, so check the parts of the Makefiles that include objects into the respective libraries. I understand what you've written but what file should I check? Maybe we should start from question - where (in what directories) I should put my new files? I have some .h files and few .c. I cannot answer this question without knowing that these files contain. Is this board specific code? Then it should go into your own board directory. Is it OMAP3 specific, generic stuff? Then it should probably go into the cpu/arm_cortexa8/omap3 directory. Is it driver code? Then it should go into some directory below drivers/ - maybe into drivers/video/ ? Yes, you're right - this is LCD driver (as I see it is based on some specific i2c driver, so it should be included too). And not specific for the OMAP3 evm board - OMAP3's display is only experimental for me now, final H/W will use another LCD. But I cannt find subdirectory video int drivers. Do you mean drivers in the root of U-Boot directory tree? Thank you. -- Software Developer General Satellite Corp. ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
Re: [U-Boot] BMP display.
On Monday 17 August 2009 13:52:46 you wrote: Dear Tuma, In message 200908171338.23342.chernigovs...@spb.gs.ru you wrote: ... I cannot answer this question without knowing that these files contain. Is this board specific code? Then it should go into your own board directory. Is it OMAP3 specific, generic stuff? Then it should probably go into the cpu/arm_cortexa8/omap3 directory. Is it driver code? Then it should go into some directory below drivers/ - maybe into drivers/video/ ? Yes, you're right - this is LCD driver (as I see it is based on some specific i2c driver, so it should be included too). And not specific for the OMAP3 evm board - OMAP3's display is only experimental for me now, final H/W will use another LCD. The LCD type is probably the least concern here. But I cannt find subdirectory video int drivers. Do you mean drivers in the root of U-Boot directory tree? Yes, I do: - ls drivers/video/ Makefile ati_radeon_fb.h cfb_console.c mx3fb.c sed156x.c videomodes.c ati_ids.hatmel_lcdfb.cct69000.c s6e63d6.c sm501.c videomodes.h ati_radeon_fb.c bus_vcxk.c mb862xx.c sed13806.c smiLynxEM.c Here are all my subdirectoryes in drivers: ls ./drivers -l | grep -i drwx drwxr-xr-x 3 root root552 2009-08-12 16:42 nand drwxr-xr-x 3 root root216 2009-08-12 16:42 nand_legacy drwxr-xr-x 3 root root280 2009-08-12 16:42 onenand drwxr-xr-x 4 root root 1176 2009-08-12 16:42 sk98lin I see videomodes.* in your video, so what is about videomodes.* in my U-Boot: ls ./drivers/videomodes.* -l -rw-r--r-- 1 root root 7137 2009-07-14 16:31 ./drivers/videomodes.c -rw-r--r-- 1 root root 3204 2009-07-14 16:31 ./drivers/videomodes.h -rw-r--r-- 1 root root 7396 2009-08-12 16:42 ./drivers/videomodes.o It seems I have no video subdirectory. So should I put all my drivers files to drivers? Sorry, but I _have to_ use this (not latest) version of U-Boot now. Best regards, Wolfgang Denk -- Software Developer General Satellite Corp. ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
Re: [U-Boot] BMP display.
On Monday 17 August 2009 16:38:31 you wrote: Dear Tuma, again: please keep the mailing list on Cc: !!! In message 200908171631.17975.chernigovs...@spb.gs.ru you wrote: Okay. Is new version configurable for OMAP3evm out of the box? Yes. And is the v2009.08-rc2 stable enought? Yes. Thank you. I've downloaded new U-Boot 2009.08.rc2. I have some error while making it. I do: make distclean (Okay) make omap3_evm_config (Okay) make And get: make[1]: arm-linux-gcc: Command not found My old U-Boot used arm-none-linux-gnueabi-gcc which make system could easyly find on my system. Should I install some new software to build new U-Boot? Or configure existing Makefile? Best regards, Wolfgang Denk -- Software Developer General Satellite Corp. ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
Re: [U-Boot] BMP display.
On Monday 17 August 2009 17:55:31 Tuma wrote: On Monday 17 August 2009 16:38:31 you wrote: Dear Tuma, again: please keep the mailing list on Cc: !!! In message 200908171631.17975.chernigovs...@spb.gs.ru you wrote: Okay. Is new version configurable for OMAP3evm out of the box? Yes. And is the v2009.08-rc2 stable enought? Yes. Thank you. I've downloaded new U-Boot 2009.08.rc2. I have some error while making it. I do: make distclean (Okay) Sorry, make clean, and make distclean give the same error as make. make omap3_evm_config (Okay) make And get: make[1]: arm-linux-gcc: Command not found My old U-Boot used arm-none-linux-gnueabi-gcc which make system could easyly find on my system. Should I install some new software to build new U-Boot? Or configure existing Makefile? Best regards, Wolfgang Denk -- Software Developer General Satellite Corp. ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
Re: [U-Boot] BMP display.
Hi, All! Thank you, Detlev! Now I have a question. I have LCD drivers from TI for OMAP3 evm board. I need to include this files to my current u-boot. I have .h and .c files with some functional I need. I want to call some functions implemented in this files from main_loop (). I put .h files in the include directory, adn .c files to the drivers directory. Then I include appropriate .h file in main.c, compile and get error: /root/GS/Taimen/U-Boot-Upgrader/common/main.c:343: undefined reference to `enable_lcd_power'. What do I do wrong? How new files should be added to the project? Thank you! On Thursday 06 August 2009 19:25:11 you wrote: Hi Tuma, While I've been waiting for reply, I've found some information from Internet and source code. I tryed to configure current omap3evm config file, but I get errors during compilation. So I know there is no LCD support for OMAP3evm now. This can be changed ;) And now I think about the way I could implement LCD support for my board. Good. Let me give you one piece of advice though - post your efforts early and often so that people here in the ML with experience can help you not going down the wrong route. Also someone else may jump in and help out ;) Cheers Detlev -- Software Developer General Satellite Corp. ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
Re: [U-Boot] BMP display.
Hello, Detlev! Thanks for your reply. While I've been waiting for reply, I've found some information from Internet and source code. I tryed to configure current omap3evm config file, but I get errors during compilation. So I know there is no LCD support for OMAP3evm now. And now I think about the way I could implement LCD support for my board. Thank you! On Wednesday 05 August 2009 18:31:14 Detlev Zundel wrote: Hi Tuma, But now I have new question - how can I display a Bitmap picture on the board's LCD? I know there is the bmp command, but how should I configure and build U-Boot to have this command in prompt? My board is OMAP3EVM. Well for the bmp command to work, an implementation for the LCD part needs to be there. Checking the configs for supported OMAP boards, not one defines CONFIG_LCD: $ grep CONFIG_LCD `grep -l OMAP include/configs/*` | wc -l 0 As an example the MPC823 LCD controller is supported: $ grep CONFIG_LCD `grep -l MPC823 include/configs/*` | wc -l 25 I fear that you will need to implement support for the LCD controller yourself. Cheers Detlev -- Software Developer General Satellite Corp. ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
[U-Boot] LCD Display.
Hi, All! And one more question - how can I outpup some text to the LCD? I wanna redirect printf/puts functions from Com1 to LCD. Maybe there is some example I can look at? -- Software Developer General Satellite Corp. ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
[U-Boot] BMP display.
Hello, all! Detlev, thank for oyur reply. So I don't need environment file parser any more. But now I have new question - how can I display a Bitmap picture on the board's LCD? I know there is the bmp command, but how should I configure and build U-Boot to have this command in prompt? My board is OMAP3EVM. Thank you. On Thursday 30 July 2009 19:29:27 you wrote: Hi Tuma, Hello All! Hiya. I develop some upgrade tool based on the U-Boot booted from SD card. I want to boot from SD card, and execute some simple script which is stored in bootcmd environment variable: echo Hello! ; mmcinit ; sleep 10 ; reset; etc... So I need to generate some environment file. Sorry, but I do not understand why you need to generate an environment image if you only eant to run some scripts. Can we please step back again and talk about what you want to achieve? Pretty likely there is a different and cleaner solution to your problem. I find source from tools/env very useful (I try to get variables from correct file I already have), but I can't find any description of environment file (or flash partition) at all (which I need to write tool for generating environment file). Can someone explain me the structure of the file, please. Something like: 0-4 - CRC Well the problem is that environment can be in a different format, depending on configuration options. If for example you enable redundand environments, you will have another byte after the crc signalling which of the two copies is the active one. 5-... - (Environment)\0(Environment)\0... ... Environment End Mark... and so on. Or tell me in what file should I see from U-Boot source. A good start would be to read /include/environment.h - but only after you are really sure that you want to generate an environment after all :) : And is there any difference between content of OneNAND flash environment-partition and file on SD card? I can parse the sentence syntactically, but I have no clue what you are asking here... Cheers Detlev -- Software Developer General Satellite Corp. ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
[U-Boot] Environment structure.
Hello All! I develop some upgrade tool based on the U-Boot booted from SD card. I want to boot from SD card, and execute some simple script which is stored in bootcmd environment variable: echo Hello! ; mmcinit ; sleep 10 ; reset; etc... So I need to generate some environment file. I find source from tools/env very useful (I try to get variables from correct file I already have), but I can't find any description of environment file (or flash partition) at all (which I need to write tool for generating environment file). Can someone explain me the structure of the file, please. Something like: 0-4 - CRC 5-... - (Environment)\0(Environment)\0... ... Environment End Mark... and so on. Or tell me in what file should I see from U-Boot source. And is there any difference between content of OneNAND flash environment-partition and file on SD card? Thank you. -- Software Developer General Satellite Corp. ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
[U-Boot] Test
Test Message. -- Software Developer General Satellite Corp. ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot