[U-Boot] [U-boot] failed to boot an compressed u-boot.bin

2013-07-17 Thread TigerLiu
Hi, experts: I tried to add a self-compressed header in u-boot.bin on a Cortex-A9 single core platform. Then, i tried to boot it. But failed in board_init_f() function. Has anybody tried to boot a self-compressed u-boot.bin ? Best wishes, ___ U-Boot mail

[U-Boot] [U-boot] failed to boot an compressed u-boot.bin

2013-07-17 Thread TigerLiu
Hi, experts: Sorry! Not self-compressed, it is self-uncompressed ! -- I tried to add a self-uncompressed header in u-boot.bin on a Cortex-A9 single core platform. Then, i tried to boot it. But failed in board_init_f() function. Has anybody tried

Re: [U-Boot] [U-boot] failed to boot an compressed u-boot.bin

2013-07-17 Thread Albert ARIBAUD
Hi tiger...@viatech.com.cn, On Wed, 17 Jul 2013 19:53:10 +0800, wrote: > Hi, experts: > Sorry! > Not self-compressed, it is self-uncompressed ! > -- > I tried to add a self-uncompressed header in u-boot.bin on a Cortex-A9 > single core platform

Re: [U-Boot] [U-boot] failed to boot an compressed u-boot.bin

2013-07-17 Thread TigerLiu
Hi, Albert: The DRAM address map is : 0 --- 0x1000 (256MB) on my ARM development board. I configured "CONFIG_SYS_TEXT_BASE = 0x03F8" in config.mk when compiling u-boot source code. The self-uncompressed code also put the uncompressed image at 0x03F8 Best wishes, >On Wed, 17 Jul 20

Re: [U-Boot] [U-boot] failed to boot an compressed u-boot.bin

2013-07-17 Thread Wolfgang Denk
Dear tiger...@viatech.com.cn, In message you wrote: > > I configured "CONFIG_SYS_TEXT_BASE = 0x03F8" in config.mk when > compiling u-boot source code. this has been moved out of config.mk ages ago. How old is your U-Boot version? > The self-uncompressed code also put the uncompressed ima

Re: [U-Boot] [U-boot] failed to boot an compressed u-boot.bin

2013-07-17 Thread TigerLiu
Hi, Denk: My code base is based on u-boot-2013.04 . I followed board\samsung\smdkc100\config.mk , and put it into my board related directory. About SPL approach: Did you suggest I put decompressed algorithm code into SPL code instead of adding a self-uncompressed header? Best wishes, >In message

Re: [U-Boot] [U-boot] failed to boot an compressed u-boot.bin

2013-07-18 Thread Wolfgang Denk
Dear tiger...@viatech.com.cn, please stop top posting / full quoting. In message you wrote: > > My code base is based on u-boot-2013.04 . > I followed board\samsung\smdkc100\config.mk , and put it into my board > related directory. You managed toi find a really bad example of code. This shou

Re: [U-Boot] [U-boot] failed to boot an compressed u-boot.bin

2013-07-18 Thread TigerLiu
Dear Denk: >Yes, that would be the U-Boot way to implement it. It allows you to >reusse existing code instead of adding new methods. So, is there any example SPL code which contains uncompressed algorithm code? Best wishes, ___ U-Boot mailing list U-Bo

Re: [U-Boot] [U-boot] failed to boot an compressed u-boot.bin

2013-07-18 Thread Wolfgang Denk
Dear tiger...@viatech.com.cn, In message you wrote: > > >Yes, that would be the U-Boot way to implement it. It allows you to > >reusse existing code instead of adding new methods. > > So, is there any example SPL code which contains uncompressed algorithm > code? No, none thaty I am aware of.

Re: [U-Boot] [U-boot] failed to boot an compressed u-boot.bin

2013-07-18 Thread Minkyu Kang
On 18/07/13 17:08, Wolfgang Denk wrote: > Dear tiger...@viatech.com.cn, > > please stop top posting / full quoting. > > > In message > you wrote: >> >> My code base is based on u-boot-2013.04 . >> I followed board\samsung\smdkc100\config.mk , and put it into my board >> related directory. > >

Re: [U-Boot] [U-boot] failed to boot an compressed u-boot.bin

2013-07-19 Thread TigerLiu
Hi, Albert: I found new u-boot source code had some PIC related question. I succeeded to boot self-uncompressed u-boot.bin now. I reviewed self-uncompressed header code (similar with Linux kernel piggy header), found: The header code would de-compress compressed uboot.bin to 0x 8000 dram locat

Re: [U-Boot] [U-boot] failed to boot an compressed u-boot.bin

2013-07-19 Thread Albert ARIBAUD
Hi tiger...@viatech.com.cn, On Fri, 19 Jul 2013 14:59:47 +0800, wrote: > Hi, Albert: > I found new u-boot source code had some PIC related question. > I succeeded to boot self-uncompressed u-boot.bin now. > > I reviewed self-uncompressed header code (similar with Linux kernel > piggy header), f

Re: [U-Boot] [U-boot] failed to boot an compressed u-boot.bin

2013-07-19 Thread Albert ARIBAUD
Hi tiger...@viatech.com.cn, On Fri, 19 Jul 2013 17:25:46 +0800, wrote: > Hi, Albert: > Sorry! > I made a mistake at before mail content! > The correct setting is: > I changed SYS_TEXT_BASE = 0x0800 in boards.cfg. > I also changed the decompressed target address = SYS_TEXT_BASE = 0x0800

Re: [U-Boot] [U-boot] failed to boot an compressed u-boot.bin

2013-07-21 Thread TigerLiu
Hi, Albert: >But then, why change the board's original SYS_TEXT_BASE? Could you not >just leave boards.cfg untouched, and only change the decompressed >target address to 0x03F8? > Yes, just change the decompressed target address to 0x03F8 is also ok! Best wishes,