[U-Boot] Problem to link u-boot for sh2a 7203

Hi All, I can compile u-boot for rsk7203_config. But into the file board/renesas/rsk7203/config.mk
TEXT_BASE = 0x0C7C0000
and if I read u-boot.srec that is the result of building process I see that the address spce of the code is starting from 0x0C7C0000
On my board I have 32 bit SDRAM at such an address, and even if I could uxecute the program using an emulator initializing in place of me the BSC, how can I flash at 0x00000000 (start address of NOR flash) my bootloader? How can I link the loader so that I can flash the code into my NOR flash and using a part of SDRAM I have to run the bootloader?
Thanks in advance.

Dear Fabio Giovagnini,
In message 201002061124.41572.fabio.giovagnini@aurion-tech.com you wrote:
I can compile u-boot for rsk7203_config. But into the file board/renesas/rsk7203/config.mk
TEXT_BASE = 0x0C7C0000
and if I read u-boot.srec that is the result of building process I see that the address spce of the code is starting from 0x0C7C0000
On my board I have 32 bit SDRAM at such an address, and even if I could
In this case your board is obviously not a Renesas rsk7203 board, which means you cannot use this configuration foir your hardware.
uxecute the program using an emulator initializing in place of me the BSC, how can I flash at 0x00000000 (start address of NOR flash) my bootloader? How can I link the loader so that I can flash the code into my NOR flash and using a part of SDRAM I have to run the bootloader?
You will have to port U-Boot to your hardware.
Best regards,
Wolfgang Denk

Dear Wolfgang, for sure my borad is not an rsk 7203, being my board designed by me; but I followed the rsk 7203 schematics to connect NOR Flash, SDRAM, ETH, and NAND Flash. As on my own board, as on rsk board NOR flash in on CS0. So I think I am miss understanding something. 1) Does u-boot a sort of IPL so it is the program the microprocessor runs at power on reset? If yes, at 0x00000000 or 0x20000000 (nt cached) should start the program? How it can run form 0x0C7C0000 if it is SDRAM address space?
Thanks a lot and many regards
Alle 15:22, sabato 6 febbraio 2010, Wolfgang Denk ha scritto:
Dear Fabio Giovagnini,
In message 201002061124.41572.fabio.giovagnini@aurion-tech.com you wrote:
I can compile u-boot for rsk7203_config. But into the file board/renesas/rsk7203/config.mk
TEXT_BASE = 0x0C7C0000
and if I read u-boot.srec that is the result of building process I see that the address spce of the code is starting from 0x0C7C0000
On my board I have 32 bit SDRAM at such an address, and even if I could
In this case your board is obviously not a Renesas rsk7203 board, which means you cannot use this configuration foir your hardware.
uxecute the program using an emulator initializing in place of me the BSC, how can I flash at 0x00000000 (start address of NOR flash) my bootloader? How can I link the loader so that I can flash the code into my NOR flash and using a part of SDRAM I have to run the bootloader?
You will have to port U-Boot to your hardware.
Best regards,
Wolfgang Denk

Dear Fabio Giovagnini,
please read http://www.netmeister.org/news/learn2quote.html - don't top post / full quote, please.
In message 201002061654.11412.fabio.giovagnini@aurion-tech.com you wrote:
for sure my borad is not an rsk 7203, being my board designed by me; but I followed the rsk 7203 schematics to connect NOR Flash, SDRAM, ETH, and NAND Flash. As on my own board, as on rsk board NOR flash in on CS0. So I think I am miss understanding something.
- Does u-boot a sort of IPL so it is the program the microprocessor runs at
power on reset? If yes, at 0x00000000 or 0x20000000 (nt cached) should start the program? How it can run form 0x0C7C0000 if it is SDRAM address space?
I don't know your hardware, nor do I know the Renesas rsk7203 board. I have no idea how your board's reset sequence looks like, nor how the Renesas board loads and starts U-Boot.
U-Boot can be configured in a plethora of different ways to fit all sorts of hardware.
If your board differs from the Renesas board, you will have to port U-Boot to your hardware. As only you know the hardware, and as it is you who defines things like memory map etc., only you can decide how to do that. The Renesas board may, or may not, be a good starting point. I cannot comment on this.
Best regards,
Wolfgang Denk

Many many thanks for your answer. Best regards and good good work.
Alle 19:32, sabato 6 febbraio 2010, Wolfgang Denk ha scritto:
Dear Fabio Giovagnini,
please read http://www.netmeister.org/news/learn2quote.html - don't top post / full quote, please.
In message 201002061654.11412.fabio.giovagnini@aurion-tech.com you wrote:
for sure my borad is not an rsk 7203, being my board designed by me; but I followed the rsk 7203 schematics to connect NOR Flash, SDRAM, ETH, and NAND Flash. As on my own board, as on rsk board NOR flash in on CS0. So I think I am miss understanding something.
- Does u-boot a sort of IPL so it is the program the microprocessor runs
at power on reset? If yes, at 0x00000000 or 0x20000000 (nt cached) should start the program? How it can run form 0x0C7C0000 if it is SDRAM address space?
I don't know your hardware, nor do I know the Renesas rsk7203 board. I have no idea how your board's reset sequence looks like, nor how the Renesas board loads and starts U-Boot.
U-Boot can be configured in a plethora of different ways to fit all sorts of hardware.
If your board differs from the Renesas board, you will have to port U-Boot to your hardware. As only you know the hardware, and as it is you who defines things like memory map etc., only you can decide how to do that. The Renesas board may, or may not, be a good starting point. I cannot comment on this.
Best regards,
Wolfgang Denk

Hi,
2010/2/6 Fabio Giovagnini fabio.giovagnini@aurion-tech.com:
Hi All, I can compile u-boot for rsk7203_config. But into the file board/renesas/rsk7203/config.mk
TEXT_BASE = 0x0C7C0000
and if I read u-boot.srec that is the result of building process I see that the address spce of the code is starting from 0x0C7C0000
On my board I have 32 bit SDRAM at such an address, and even if I could uxecute the program using an emulator initializing in place of me the BSC, how can I flash at 0x00000000 (start address of NOR flash) my bootloader? How can I link the loader so that I can flash the code into my NOR flash and using a part of SDRAM I have to run the bootloader?
Could you check doc/README.sh ?
** README ** In SuperH, S-record and binary of made u-boot work on the memory. When u-boot is written in the flash, it is necessary to change the address by using 'objcopy'. ex) shX-linux-objcopy -Ibinary -Osrec u-boot.bin u-boot.flash.srec
Best regards, Nobuhiro

Thanks very much.
Alle 09:10, lunedì 8 febbraio 2010, Nobuhiro Iwamatsu ha scritto:
Hi,
2010/2/6 Fabio Giovagnini fabio.giovagnini@aurion-tech.com:
Hi All, I can compile u-boot for rsk7203_config. But into the file board/renesas/rsk7203/config.mk
TEXT_BASE = 0x0C7C0000
and if I read u-boot.srec that is the result of building process I see that the address spce of the code is starting from 0x0C7C0000
On my board I have 32 bit SDRAM at such an address, and even if I could uxecute the program using an emulator initializing in place of me the BSC, how can I flash at 0x00000000 (start address of NOR flash) my bootloader? How can I link the loader so that I can flash the code into my NOR flash and using a part of SDRAM I have to run the bootloader?
Could you check doc/README.sh ?
** README ** In SuperH, S-record and binary of made u-boot work on the memory. When u-boot is written in the flash, it is necessary to change the address by using 'objcopy'. ex) shX-linux-objcopy -Ibinary -Osrec u-boot.bin u-boot.flash.srec
Best regards, Nobuhiro

Thank a lot. Do I have to use --change-start or --change-section-address
Thanks
Alle 09:10, lunedì 8 febbraio 2010, Nobuhiro Iwamatsu ha scritto:
Hi,
2010/2/6 Fabio Giovagnini fabio.giovagnini@aurion-tech.com:
Hi All, I can compile u-boot for rsk7203_config. But into the file board/renesas/rsk7203/config.mk
TEXT_BASE = 0x0C7C0000
and if I read u-boot.srec that is the result of building process I see that the address spce of the code is starting from 0x0C7C0000
On my board I have 32 bit SDRAM at such an address, and even if I could uxecute the program using an emulator initializing in place of me the BSC, how can I flash at 0x00000000 (start address of NOR flash) my bootloader? How can I link the loader so that I can flash the code into my NOR flash and using a part of SDRAM I have to run the bootloader?
Could you check doc/README.sh ?
** README ** In SuperH, S-record and binary of made u-boot work on the memory. When u-boot is written in the flash, it is necessary to change the address by using 'objcopy'. ex) shX-linux-objcopy -Ibinary -Osrec u-boot.bin u-boot.flash.srec
Best regards, Nobuhiro
participants (3)
-
Fabio Giovagnini
-
Nobuhiro Iwamatsu
-
Wolfgang Denk