Skip to contentSkip to conversation

Binary file cat

U-Boot-Users Adam Bezanson 3 participants 7 messages Nov 22, 2003 – Aug 3, 2004

lore
Share & tools
lore
#0 lore raw

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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.denx.de/pipermail/u-boot/attachments/20031122/c3dc7f3f/attachment.htm

#1 lore raw

Dear Adam,

Quoted 3 lines · 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?

Quoted 1 line

Currently I have the header file as a separate file in the root

...

Quoted 4 lines

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

Signature · 4 lines
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd at denx.de
"I've finally learned what `upward compatible' means. It means we get
to keep all our old mistakes." - Dennie van Tassel
#2 lore raw

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: [email protected] [mailto:wd at denx.de]
Sent: Sunday, November 23, 2003 10:51 AM
To: Adam Bezanson
Cc: u-boot-users at lists.sourceforge.net
Subject: Re: [U-Boot-Users] Binary file cat

Dear Adam,

Quoted 3 lines · 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?

Quoted 1 line

Currently I have the header file as a separate file in the root

...

Quoted 3 lines

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

Quoted 1 line

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

Signature · 4 lines
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd at denx.de
"I've finally learned what `upward compatible' means. It means we get
to keep all our old mistakes." - Dennie van Tassel
#3 lore raw

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

Quoted 12 lines

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

#4 lore raw

U-Boot on EDB9312 (was: RE: [U-Boot-Users] Binary file cat)

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: [email protected] [mailto:u-boot-users-admin at lists.sourceforge.net] On Behalf Of llandre
Sent: Friday, July 30, 2004 12:08 PM
To: Adam Bezanson
Cc: u-boot-users at 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

Quoted 7 lines

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.

Quoted 5 lines

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 at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users

#5 lore raw

U-Boot on EDB9312 (was: RE: [U-Boot-Users] Binary file cat)

Quoted 3 lines

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

#6 lore raw

U-Boot on EDB9312 (was: RE: [U-Boot-Users] Binary file cat)

In reply to Adam Bezanson

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?

Quoted 8 lines

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: [email protected]

Quoted 6 lines

[mailto:u-boot-users-admin at lists.sourceforge.net] On Behalf Of llandre
Sent: Friday, July 30, 2004 12:08 PM
To: Adam Bezanson
Cc: u-boot-users at lists.sourceforge.net
Subject: U-Boot on EDB9312 (was: RE: [U-Boot-Users] Binary file cat)

Quoted 8 lines

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