Skip to contentSkip to conversation

No subject

DISCUSSION [email protected] 1 participant 1 message Jan 23, 2009

lore
Share & tools
lore
#0 lore raw

needs to visit an external website to even _compile_ the code. Let alone copying stuff to and from, hex dumping it etc. This is not acceptable.

Quoted 19 lines
Quoted 6 lines

Review

Quoted 6 lines
(quoted diff) +5 -0
+   make P4080DS_PBL_BOOT_INDIRECT_config
+   make CROSS_COMPILE=powerpc-none-linux-gnuspe- all
+   xxd u-boot.bin > u-boot.xxd
 
+3. Producing PBI commands
+Switch to tab "PBI" and paste commands below into text field

(please note these

Quoted 1 line
Quoted 1 line

+commands are for CPC1 used as SRAM only, change corresponding

register setting

Quoted 1 line
Quoted 1 line

+if CPC2 need to be used as SRAM), then choose "ACS File (XXD Object

Dump)",

Quoted 1 line
Quoted 1 line

+change Offset to "f80000", and click "Browse" to select the

u-boot.xxd file

Quoted 1 line
Quoted 1 line

+produced in step 2, and click "Add PBI Data", after it finished,

paste

Quoted 4 lines
Quoted 1 line

+"09138000 00000000" and "091380c0 00000000" at the end.

This must be a bad joke.

Quoted 8 lines
Quoted 3 lines

Can you not provide a plain and simple AUTOMATIC way to get this result? some plain stupid command line tool? Something that works as a simple "make XXX" ? So it can be scripted / automatized / used?

Yes, a simple C tool to take an existing PBL or RCW dump and "espi-ize" it into a PBL dump would be nice. The user will still need to acquire the existing RCW manually. This only needs to be done once on a board; it's not part of building a U-Boot image.

@Scott: What is meant by "acquiring the existing RCW"? Can't we have a tool that is fed with a value for RCW?

Quoted 2 lines

[Xie Shaohui] A simple C tool will make things more complex, the pbl_image_tool does the same thing and it is irreplaceable, something

No tool is irreplaceable, ever.

Quoted 5 lines

like RCW has to be produced manually, and because there is no near-universal default RCW, this README took a basic assumption that user already can boot from NOR flash, so user can reuse the RCW dump of NOR u-boot with change "PBI_SRC" and "BOOT_LOC" only.

Quoted 7 lines

This README describes how to build an Image can be used by PBL (pre-boot loader), building u-boot image is the first step, then RCW, PBI commands, XXD dump of u-boot.bin, the tool will combine the RCW and PBI and XXD dump together to produce the PBL XXD file, suppose the PBL XXD file is saved as x.xxd, we need to run "xxd -r x.xxd > pbl_image.bin" to produce the final PBL Image. Take a look at the whole process, I see no way it can be scripted / automatized.

I said it once before, look at how kwbimage wraps up u-boot.bin into such an "augmented" image. If the Marvell guys can do this for their platform, I see no reason why this cannot be done for your platform.

Cheers
Detlev

Signature · 8 lines
coding notes: the en/decryption routines each use 6 necessary register
variables,  with  4  being  actively  used at  once  during  the inner
iterations.  if you don't have 4 register variables get a new machine.
                                   -- Dana L. How (descore-readme.txt)
--
DENX Software Engineering GmbH,      MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich,  Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-40 Fax: (+49)-8142-66989-80 Email: dzu at denx.de