[U-Boot-Users] Binary file cat

Hi,
I have ported u-boot to my arm920t based system. I have a unique situation in that my processor requires a binary header to be placed
In front of u-boot.bin before it is burnt into flash. If the processor doesn't find this header in flash it will not boot out of flash.
Currently I have the header file as a separate file in the root directory and when I finish a new compile I have a shell script which
Simply does a 'cat header.bin u-boot.bin > out.bin'. I'd like to get away from this and add it to the Makefiles so for my board
I don't have to run this script every time. Before I go editing a top-level Makefile, I wanted to ask for advice on how I should go
About doing this? Anything I can do in my board-specific directory would make me feel better.
Suggestions?
Thanks,
Adam

Dear Adam,
in message 002301c3b0bc$19651120$e199fea9@amlp you wrote:
I have ported u-boot to my arm920t based system. I have a unique situation in that my processor requires a binary header to be placed
Your _processor_? I never head something like that. Are you sure it's not another existing boot loader on your system?
Currently I have the header file as a separate file in the root
...
I don't have to run this script every time. Before I go editing a top-level Makefile, I wanted to ask for advice on how I should go About doing this? Anything I can do in my board-specific directory would make me feel better.
Me too, and it's actually easier that way. trun your binary header in an object file and edit the linker script for your board to load this object first.
Best regards,
Wolfgang Denk

Thanks, I'll give that a try. I should have clarified "my processor" a little more. It's a Cirrus Logic EP9312 and yes indeed there is a boot rom internal to the processor that does these checks for a signature that I've put in this header. Essentially it's a way for it to determine if there's a valid image in flash to boot from, otherwise it tries to boot from other interfaces.
I certainly didn't want to do a global change to a Makefile for something like this.
Regards, Adam
-----Original Message----- From: wd@denx.de [mailto:wd@denx.de] Sent: Sunday, November 23, 2003 10:51 AM To: Adam Bezanson Cc: u-boot-users@lists.sourceforge.net Subject: Re: [U-Boot-Users] Binary file cat
Dear Adam,
in message 002301c3b0bc$19651120$e199fea9@amlp you wrote:
I have ported u-boot to my arm920t based system. I have a unique situation in that my processor requires a binary header to be placed
Your _processor_? I never head something like that. Are you sure it's not another existing boot loader on your system?
Currently I have the header file as a separate file in the root
...
I don't have to run this script every time. Before I go editing a top-level Makefile, I wanted to ask for advice on how I should go About doing this? Anything I can do in my board-specific directory
would
make me feel better.
Me too, and it's actually easier that way. trun your binary header in an object file and edit the linker script for your board to load this object first.
Best regards,
Wolfgang Denk

Hi Adam,
I've just read the message about your port of U-Boot for EP9312. Next month I'll start to work on the EDB9312 evaluation board and I want to use U-Boot as bootloader. As I don't want to reinvent the wheel, I was wondering if your patches were made publicly available. It seems they were not included in the CVS repository.
Thanks in advance, llandre
DAVE Electronics System House - R&D Department www.dave-tech.it
Thanks, I'll give that a try. I should have clarified "my processor" a little more. It's a Cirrus Logic EP9312 and yes indeed there is a boot rom internal to the processor that does these checks for a signature that I've put in this header. Essentially it's a way for it to determine if there's a valid image in flash to boot from, otherwise it tries to boot from other interfaces.
I certainly didn't want to do a global change to a Makefile for something like this.
Regards, Adam

They weren't made public yet but I can certainly do so. I'll look to update my tree to the latest CVS (it's been awhile) and provide Wolfgang with a patch to incorporate into CVS.
Regards, Adam
-----Original Message----- From: u-boot-users-admin@lists.sourceforge.net [mailto:u-boot-users-admin@lists.sourceforge.net] On Behalf Of llandre Sent: Friday, July 30, 2004 12:08 PM To: Adam Bezanson Cc: u-boot-users@lists.sourceforge.net Subject: U-Boot on EDB9312 (was: RE: [U-Boot-Users] Binary file cat)
Hi Adam,
I've just read the message about your port of U-Boot for EP9312. Next month I'll start to work on the EDB9312 evaluation board and I want to use U-Boot as bootloader. As I don't want to reinvent the wheel, I was wondering if your patches were made publicly available. It seems they were not included in the CVS repository.
Thanks in advance, llandre
DAVE Electronics System House - R&D Department www.dave-tech.it
Thanks, I'll give that a try. I should have clarified "my processor" a little more. It's a Cirrus Logic EP9312 and yes indeed there is a boot rom internal to the processor that does these checks for a signature that I've put in this header. Essentially it's a way for it to determine if there's a valid image in flash to boot from, otherwise it tries to boot from other interfaces.
I certainly didn't want to do a global change to a Makefile for something like this.
Regards, Adam
------------------------------------------------------- This SF.Net email is sponsored by OSTG. Have you noticed the changes on Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now, one more big change to announce. We are now OSTG- Open Source Technology Group. Come see the changes on the new OSTG site. www.ostg.com _______________________________________________ U-Boot-Users mailing list U-Boot-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/u-boot-users

They weren't made public yet but I can certainly do so. I'll look to update my tree to the latest CVS (it's been awhile) and provide Wolfgang with a patch to incorporate into CVS.
Great, thanks a lot.
llandre
DAVE Electronics System House - R&D Department www.dave-tech.it

Hi Adam,
as I've just received the EDB9312, I think I can help you. If you send me your old sources, I'll start to update the port for the board to the latest CVS repository. What do you think?
They weren't made public yet but I can certainly do so. I'll look to update my tree to the latest CVS (it's been awhile) and provide Wolfgang with a patch to incorporate into CVS.
Regards, Adam
-----Original Message----- From: u-boot-users-admin@lists.sourceforge.net [mailto:u-boot-users-admin@lists.sourceforge.net] On Behalf Of llandre Sent: Friday, July 30, 2004 12:08 PM To: Adam Bezanson Cc: u-boot-users@lists.sourceforge.net Subject: U-Boot on EDB9312 (was: RE: [U-Boot-Users] Binary file cat)
Hi Adam,
I've just read the message about your port of U-Boot for EP9312. Next month I'll start to work on the EDB9312 evaluation board and I want to use U-Boot as bootloader. As I don't want to reinvent the wheel, I was wondering if your patches were made publicly available. It seems they were not included in the CVS repository.
Best regards,
llandre
DAVE Electronics System House - R&D Department www.dave-tech.it
participants (3)
-
Adam Bezanson
-
llandre
-
Wolfgang Denk