Re: [U-Boot] BMP display.

Dear Tuma,
please keep the mailing list on Cc: - thanks.
In message 200908171305.55605.chernigovskiy@spb.gs.ru you wrote:
In message 200908131326.20857.chernigovskiy@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/ ?
Best regards,
Wolfgang Denk

On Monday 17 August 2009 13:33:50 you wrote:
Dear Tuma,
please keep the mailing list on Cc: - thanks.
In message 200908171305.55605.chernigovskiy@spb.gs.ru you wrote:
In message 200908131326.20857.chernigovskiy@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.

Dear Tuma,
In message 200908171338.23342.chernigovskiy@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.h atmel_lcdfb.c ct69000.c s6e63d6.c sm501.c videomodes.h ati_radeon_fb.c bus_vcxk.c mb862xx.c sed13806.c smiLynxEM.c
Best regards,
Wolfgang Denk

On Monday 17 August 2009 13:52:46 you wrote:
Dear Tuma,
In message 200908171338.23342.chernigovskiy@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.h atmel_lcdfb.c ct69000.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 root 552 2009-08-12 16:42 nand drwxr-xr-x 3 root root 216 2009-08-12 16:42 nand_legacy drwxr-xr-x 3 root root 280 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

Dear Tuma,
In message 200908171512.57938.chernigovskiy@spb.gs.ru you wrote:
It seems I have no "video" subdirectory. So should I put all my drivers files to "drivers"?
No.
Sorry, but I _have to_ use this (not latest) version of U-Boot now.
This will not work. Please use recent code. You must have a really, really (I mean: awfully) old version.
Best regards,
Wolfgang Denk
participants (2)
-
Tuma
-
Wolfgang Denk