Re: [U-Boot-Users] u-boot.bin size

2008-07-23 Thread Luigi 'Comio' Mantellini
dd if=u-boot.bin of=u-boot.bin2 bs=512k conv=sync Il giorno mer, 23/07/2008 alle 11.35 -0700, Fundu ha scritto: My u-boot.bin is 256k. Is there a way i could make it fit into 512k b'coz sector size is 512k. The CFG_MONITOR_LEN doesn't seem to have any effect. TIA

[U-Boot-Users] [COLDFIRE]

2008-07-07 Thread Luigi 'Comio' Mantellini
The coldfire cpus use a little different i2c device that is not perfectly compatible with the i2c fsl driver present on mpc cpus. consequently the fsl_i2c driver needs some little modification in order to work on these cpus (m547x/m548x and m5445x cpus). luigi

[U-Boot-Users] [PATCH 1/1] Fix I2C for m547x/548x and m5445x processors.

2008-07-07 Thread Luigi 'Comio' Mantellini
--- drivers/i2c/fsl_i2c.c | 68 + 1 files changed, 68 insertions(+), 0 deletions(-) diff --git a/drivers/i2c/fsl_i2c.c b/drivers/i2c/fsl_i2c.c index 0690340..8fd73c0 100644 --- a/drivers/i2c/fsl_i2c.c +++ b/drivers/i2c/fsl_i2c.c @@ -78,6 +78,73

Re: [U-Boot-Users] [PATCH 1/1] Fix I2C for m547x/548x and m5445x processors.

2008-07-07 Thread Luigi 'Comio' Mantellini
On lun, 2008-07-07 at 16:59 +0200, Wolfgang Denk wrote: In message [EMAIL PROTECTED] you wrote: + What a nightmare of data and code. So many magic numbers, so much potential for errors. And for what? Just for I2C support in U-Boot? From your PoV you are right. Are you really

Re: [U-Boot-Users] test

2008-07-07 Thread Luigi 'Comio' Mantellini
test failed try again. Il giorno lun, 07/07/2008 alle 13.25 -0700, Barry Burr (C) ha scritto: test Barry Burr IT | Systems Administrator| 2Wire, Inc 1704 Automation Pkwy San Jose Ca 95131 Direct 408.321.1692 [EMAIL PROTECTED]

Re: [U-Boot-Users] Run Linux kernel from within a JFFS2 filesystem

2008-06-14 Thread Luigi 'Comio' Mantellini
Ciao Pesà, U-Boot can load an image from a jffs2 fs using the fsload command: fsload DEST_ADDR imagename Furthermore, you need to properly define the mtdpart and mtdids environment vars or define the opportune #define, like this: #define MTDIDS_DEFAULT nor0=phys_mapped_flash #define

Re: [U-Boot-Users] Command table relocation

2008-05-25 Thread Luigi 'Comio' Mantellini
Hi Nanda, the command table is (essentially) a vector of pointers to functions (the commands). These pointers are calculated using the TEXTBASE pointer that usually is located into the flash. When relocate the u-boot code, we need to update the commands table with the relocated pointer for e each

[U-Boot-Users] MTD Concat support

2008-04-16 Thread Luigi 'Comio' Mantellini
Hi Guys, I'm a question regarding the MTD Concat support in U-BOOT. My system has 2 Flash (x16MB) driven by 2 different Chipselects. The memory layout is the following: [0xbe00 - 0xbeff ] Flash#0 CS#0 [0xbf00 - 0xbfff ] Flash#1 CS#1 I would link to create a JFFS2 partition

Re: [U-Boot-Users] MTD Concat support

2008-04-16 Thread Luigi 'Comio' Mantellini
Hi Vlad, Hi list, see inline comments. On mer, 2008-04-16 at 14:47 +0300, Vlad Lungu wrote: Luigi 'Comio' Mantellini wrote: Hi Guys, .. [0xbe00 - 0xbfc0 ] JFFS2 root [0xbfc0 - 0xbfe0 ] U-BOOT code [0xbfe0 - 0xbfff ] DATA So you have 16+12Mo then u

Re: [U-Boot-Users] MTD Concat support

2008-04-16 Thread Luigi 'Comio' Mantellini
Hi Vlad and list, see inline comments. On mer, 2008-04-16 at 16:05 +0300, Vlad Lungu wrote: Luigi 'Comio' Mantellini wrote: .. cut... The answer is pretty simple: the flash layout is a project constraint :D. I know that this approach is very slow, but the target application

Re: [U-Boot-Users] MTD Concat support

2008-04-16 Thread Luigi 'Comio' Mantellini
Hi Vlad, Il giorno mer, 16/04/2008 alle 21.39 +0300, Vlad Lungu ha scritto: The rootfs will be Read-only. Any write access will be redirected to a ramdisk. Only during the upgrading activity the JFFS2 will be write from an custom user application, while during the normal activity both

Re: [U-Boot-Users] MTD Concat support

2008-04-16 Thread Luigi 'Comio' Mantellini
Il giorno mer, 16/04/2008 alle 22.23 +0300, Vlad Lungu ha scritto: Luigi 'Comio' Mantellini wrote: [snip] I have 2 identical flash chip from spansion. Can you tell me the part number so I can do a quick check on it? I'll send you the exact part number tomorrow. Anyway, from my

Re: [U-Boot-Users] [RFC] Create include/u-boot directory

2008-04-14 Thread Luigi 'Comio' Mantellini
I think that a separate include directory for u-boot is a good idea. ciao luigi On sab, 2008-04-12 at 14:25 +0200, Jean-Christophe PLAGNIOL-VILLARD wrote: Hi, I proposing to create an include directory name u-boot like it's done in linux (include/linux) where we put all relate

Re: [U-Boot-Users] [PATCH] Add support for LZMA uncompression algorithm.

2008-04-05 Thread Luigi 'Comio' Mantellini
Hi u-boot users, Has anyone tried the lzma patch? On my system works fine but I would like to have a feedback from you :) IS there the possibility to see this patch integrated into the official u-boot tree? Thanks a lot, luigi On mar, 2008-04-01 at 11:18 +0200, Luigi 'Comio' Mantellini wrote

Re: [U-Boot-Users] help - u-boot header compression

2008-04-03 Thread Luigi 'Comio' Mantellini
this algo and do compression and decompression of my binaries. You can search google for nrv2b.c and you will get it from Koder.com. Thanks for your help Avinash - Original Message From: Luigi 'Comio' Mantellini [EMAIL PROTECTED] To: Avinash Vijayvergia

Re: [U-Boot-Users] New Image format: headers hashes.

2008-04-03 Thread Luigi 'Comio' Mantellini
Hi Bartlomiej, thank you for the answers. See my comments below. On gio, 2008-04-03 at 11:31 +0200, Bartlomiej Sieka wrote: Hi Luigi, You wrote: On gio, 2008-03-27 at 12:13 +0100, Luigi 'Comio' Mantellini wrote: - The mkimage calculate hashes before that timestamp is added

Re: [U-Boot-Users] New Image format: headers hashes.

2008-04-03 Thread Luigi 'Comio' Mantellini
Hi Bartlomej, On gio, 2008-04-03 at 13:48 +0200, Bartlomiej Sieka wrote: ... Before to make this test, you should strip the elf-file in order to omit the non-used code. Alternatively you should check the size of the u-boot.bin file (that is striped by definition). objcopy -O binary

Re: [U-Boot-Users] help - u-boot header compression

2008-04-02 Thread Luigi 'Comio' Mantellini
Hi Avinash, I'm not undestanding if you want compress the U-Boot code or if you want compress the uImage image. Anyway, I don't know the nrv2b algorithm, can you give me any links? thanks, luigi Il giorno mer, 02/04/2008 alle 13.54 -0700, Avinash Vijayvergia ha scritto: Hi All I am working

Re: [U-Boot-Users] help - u-boot header compression

2008-04-02 Thread Luigi 'Comio' Mantellini
'Comio' Mantellini [EMAIL PROTECTED] To: Avinash Vijayvergia [EMAIL PROTECTED] Cc: u-boot-users@lists.sourceforge.net Sent: Wednesday, April 2, 2008 2:19:36 PM Subject: Re: [U-Boot-Users] help - u-boot header compression Hi Avinash, I'm not undestanding if you want compress the U-Boot code

Re: [U-Boot-Users] help - u-boot header compression

2008-04-02 Thread Luigi 'Comio' Mantellini
structure. You should analyze the board/atmel/at91rm9200dk/u-boot.lds and cpu/arm920t/start.S files to understand how u-boot works (at initialization time). Best regards, luigi Thanks Avinash - Original Message From: Luigi 'Comio' Mantellini [EMAIL PROTECTED] To: Avinash Vijayvergia

Re: [U-Boot-Users] RFC: make new image support mandatory

2008-04-01 Thread Luigi 'Comio' Mantellini
Hi Bartlomiej, I posted a week ago some considerations about the new image format (with subject [U-Boot-Users] New Image format: headers hashes.). Please, can you give an your opinion about these consideration? I'm really interested to support new image in my firmwares, but I need to understand

Re: [U-Boot-Users] LZMA support (patch)

2008-03-29 Thread Luigi 'Comio' Mantellini
Hi All, I will rework the patch in order to include all files from LZMA SDK and some fix. I'll send the patch on Tuesday (I'm in vacation). These are the implemented features: - LZMA SDK 4.57 Decode code (vanilla) - A Buff2Buff wrapper to decode the image (LZMA_Alone format) - Fixes for mkimage

[U-Boot-Users] LZMA support

2008-03-28 Thread Luigi 'Comio' Mantellini
Hi people, I have a stupid question: why does u-boot not support the LZMA algorithm? (Anyway, I have a self-made and untested patch that introduces this compression algorithm). Thanks a lot. luigi Industrie Dial Face S.p.A. Luigi Mantellini RD - Software Industrie Dial Face S.p.A. Via Canzo,

Re: [U-Boot-Users] LZMA support (patch)

2008-03-28 Thread Luigi 'Comio' Mantellini
modifies: - common/do_bootm.c file - common/image.c file - include/image.h file Please read the lib_lzma/README.txt file. Luigi On ven, 2008-03-28 at 16:42 +0100, Luigi 'Comio' Mantellini wrote: Hi people, I have a stupid question: why does u-boot not support the LZMA algorithm

Re: [U-Boot-Users] LZMA support (patch)

2008-03-28 Thread Luigi 'Comio' Mantellini
In message [EMAIL PROTECTED] you wrote: this patch adds the lzma support with the following constraints: - it doesn't install the LZMA SDK files. I provide the import_lzma.sh script to import the needs file from a lzma sdk release Sorry, but I will not accept this. U-Boot has always

[U-Boot-Users] [Fwd: Re: LZMA support (patch)]

2008-03-28 Thread Luigi 'Comio' Mantellini
Hi Wolfgang, In message [EMAIL PROTECTED] you wrote: this patch adds the lzma support with the following constraints: - it doesn't install the LZMA SDK files. I provide the import_lzma.sh script to import the needs file from a lzma sdk release Sorry, but I will not accept this.

Re: [U-Boot-Users] [PATCH] Add support for setting the I2C bus speed in fsl_i2c.c

2008-03-27 Thread Luigi 'Comio' Mantellini
This patch seems incompatible with cf547x/548x cpus because the cpu specific global data doesn't define the i2c1_clk / i2c2_clk attributes. Best regards, luigi On ven, 2008-03-14 at 17:45 -0500, Timur Tabi wrote: Add support to the Freescale I2C driver (fsl_i2c.c) for setting and querying

[U-Boot-Users] New Image format: headers hashes.

2008-03-27 Thread Luigi 'Comio' Mantellini
Hi Guys, I ask you fro a comment regarding the new image format. I'm studying the mkimage code (and image.c file) to understand how new image works. I have the following observations/questions: - The mkimage calculate hashes before that timestamp is added to image. is it better exchange the

Re: [U-Boot-Users] New Image format: headers hashes.

2008-03-27 Thread Luigi 'Comio' Mantellini
On gio, 2008-03-27 at 12:13 +0100, Luigi 'Comio' Mantellini wrote: - The mkimage calculate hashes before that timestamp is added to image. is it better exchange the order of these operations (before add timestamp then calculate hashes)? - Does the new format assure that the complete

Re: [U-Boot-Users] New Image format: headers hashes.

2008-03-27 Thread Luigi 'Comio' Mantellini
fields of a node (like the old image format). to be continue... ciao luigi On gio, 2008-03-27 at 17:06 +0100, Luigi 'Comio' Mantellini wrote: On gio, 2008-03-27 at 12:13 +0100, Luigi 'Comio' Mantellini wrote: - The mkimage calculate hashes before that timestamp is added to image

Re: [U-Boot-Users] Coldfire 5307 5407

2008-03-09 Thread Luigi 'Comio' Mantellini
Hi Alwin, You can try using the ports for 547x/548x processors (check the board/freescale/ directory). Ciao luigi Il giorno lun, 10/03/2008 alle 11.36 +1300, Alwin Leerling ha scritto: Hi, Is a port to the Coldfire 5307 and/or 5407 in the works or is anyone interested in it? My

[U-Boot-Users] VXWorks EST Flat Binary

2008-03-07 Thread Luigi 'Comio' Mantellini
HI Folks, How I can load (and start) an EST Flat Bin image? My supplier gives me this image and I don't know how run it from u-boot (from git). Can someone help me? thanks a lot. luigi -- __ Luigi Mantellini .'__'. RD - Software (.' '.)Industrie Dial Face

Re: [U-Boot-Users] VXWorks EST Flat Binary

2008-03-07 Thread Luigi 'Comio' Mantellini
Hi Richard, Thanks for your answer. On ven, 2008-03-07 at 14:58 +, Richard Danter wrote: On 07/03/2008, Luigi 'Comio' Mantellini [EMAIL PROTECTED] wrote: How I can load (and start) an EST Flat Bin image? My supplier gives me this image and I don't know how run it from u-boot (from

Re: [U-Boot-Users] UNCACHED_SDRAM macro issue

2008-02-28 Thread Luigi 'Comio' Mantellini
Hi Shinya, I found the error... but it's not an u-boot issue. I'm using a (old) customized linux 2.6.10 (from my vendor) that also adds the 0xa000 offset to the pointers passed by u-boot, assuming that address is expressed in termos of physical address. I corrected the linux code masking and

Re: [U-Boot-Users] UNCACHED_SDRAM macro issue

2008-02-14 Thread Luigi 'Comio' Mantellini
Hi Shinya, see inline. On gio, 2008-02-14 at 12:55 +0900, Shinya Kuribayashi wrote: Luigi 'Comio' Mantellini wrote: ... So it seems Alchemy-based SoC. if so, No. I'm working on a SoC that uses a IP core from MIPS (mips4kec). The mips core should be (formally) a standard mips core. What

[U-Boot-Users] UNCACHED_SDRAM macro issue

2008-02-13 Thread Luigi 'Comio' Mantellini
Hi list, I'm working on the porting of u-boot (1.3.1 from git) to a mips based SoC. The port seems to work fine unless the UNCACHED_SDRAM macro (used by do_bootm_linux). Using the version from commit de9a738faa7c2f47286119c3bfebc3dfbfe7d86d (that maps the addresses on KSEG1 instead on physical

Re: [U-Boot-Users] [PATCH] ColdFire: Fix missing code flash sizefor M5485EVB

2008-02-05 Thread Luigi 'Comio' Mantellini
patch or before? Regards, TsiChung -Original Message- From: Luigi 'Comio' Mantellini [mailto:[EMAIL PROTECTED] Sent: Monday, February 04, 2008 5:04 PM To: Liew Tsi Chung Cc: U-Boot-Users; Wolfgang Denx; Rigby John; Mahan James Subject: Re: [U-Boot-Users] [PATCH] ColdFire: Fix

Re: [U-Boot-Users] resend#4 [PATCH 2/8] ColdFire: Add MCF547x_8x related header files

2008-01-20 Thread Luigi 'Comio' Mantellini
Thank you for the useful code. We will start from this to implement our specific application code. luigi Il giorno gio, 17/01/2008 alle 11.20 -0600, Tsi-Chung Liew ha scritto: Signed-off-by: TsiChungLiew [EMAIL PROTECTED] --- include/asm-m68k/fec.h | 145 ++--