hi thanks for ur reply... i actually gave bootm 0x1000000 command only..in my previous mail, i have mentioned it wrong... sorry for that. regards, Prathika
________________________________ From: [EMAIL PROTECTED] on behalf of Phil Wilshire Sent: Tue 9/30/2008 8:15 PM To: uClinux development list Subject: Re: [uClinux-dev] Problem in booting compressed image from spi flash. Hi Try this for CONFIG_BOOTCMD "eeprom read 0x1000000 0x40000 0x20c789;bootm 0x1000000". The optional argument to bootm is the image location not the image size. Phil Wilshire Prathika wrote: > > hi all, > > we have been trying to boot the compressed image of uClinux from spi flash. > > I had been successful in writing the compressed image into 4th sector of > spi flash using eeprom write command. > > For booting from spi flash i did something like this in my customised .h > file for my board in u-boot. > > 1)i enabled CONFIG_SPI. > > 2)I changed CONFIG_BOOTCMD to "eeprom read 0x1000000 0x40000 > 0x20c789;bootm 0x20c789". > > > > when i load this .ldr to my board and boot, it hangs at some point > saying Kernel paniced. When i execute commands in uboot command promt > like "eeprom read 0x1000000 0x40000 0x20c789" and "md.b 0x1000000 > 0x1000" to verify the data written to flash, there is no problem in data > that is written to flash. Also i tried "tftpboot 0x1000000 uImage" and > "bootm 0x1000000" to verify the compressed image. There is no problem in > booting, but when it is from flash read, it doesnt boot. > > I have pasted the entire thing that happens when it tries to boot > compressed image from flash.Someone please help me in getting rid of > this issue. > > > > Regards, > > Prathika.R > > ***************************************************************************************************************** > > U-Boot-1.1.3-ADI-2006R1 (Sep 30 2008 - 09:43:39) > > CPU: ADSP BF537 Rev.: 0.2 > Board: ADI BF537 stamp board > Support: http://blackfin.uclinux.org/ > Clock: VCO: 400 MHz, Core: 400 MHz, System: 100 MHz > SDRAM: 32 MB > FLASH: 4 MB > Using default environment > > In: serial > Out: serial > Err: serial > Net: ADI BF537 EMAC > Hit any key to stop autoboot: 5 0 > 536bfindas> eeprom read 0x1000000 0x40000 0x20c789 > > EEPROM @0x0 read: addr 01000000 off 40000 count 2148233 ... > ################################################################done > 536bfindas> bootm 0x1000000 > ## Booting image at 01000000 ... > Image Name: uClinux Kernel and Filesystem > Image Type: Blackfin Linux Kernel Image (gzip compressed) > Data Size: 2148169 Bytes = 2 MB > Load Address: 00001000 > Entry Point: 00001000 > Verifying Checksum ... OK > Uncompressing Kernel Image ... Peeyush:calling inflateInit2 > Peeyush:calling inflate > Peeyush:just before inflageEnd > OK > Starting Kernel at = 1000 > Linux version 2.6.19.3-ADI-2007R1.12007R1-svn > ([EMAIL PROTECTED]) (gcc version 4.1.1 (ADI 07R1)) #29 Wed Sep > 24 10:43:49 IST 2008 > Warning: limiting memory to 27MB due to hardware anomaly 05000263 > Blackfin support (C) 2004-2007 Analog Devices, Inc. > Compiled for ADSP-BF536 Rev 0.2 > Blackfin Linux support by http://blackfin.uclinux.org/ > Processor Speed: 225 MHz core clock and 75 Mhz System Clock > Board Memory: 32MB > Kernel Managed Memory: 32MB > Memory map: > text = 0x00001000-0x00116498 > init = 0x00117000-0x00126f2c > data = 0x00129194-0x00161aa8 > stack = 0x0012a000-0x0012c000 > bss = 0x00161ab0-0x00170b64 > available = 0x00170b64-0x01b00000 > rootfs = 0x01b00000-0x01f00000 > DMA Zone = 0x01f00000-0x02000000 > Instruction Cache Enabled > Data Cache Enabled (write-back) > Hardware Trace Enabled > Built 1 zonelists. Total pages: 6845 > Kernel command line: root=/dev/mtdblock0 rw console=ttyBF0,115200 > Configuring Blackfin Priority Driven Interrupts > PID hash table entries: 128 (order: 7, 512 bytes) > Console: colour dummy device 80x25 > Dentry cache hash table entries: 4096 (order: 2, 16384 bytes) > Inode-cache hash table entries: 2048 (order: 1, 8192 bytes) > Physical pages: 1b00 > Memory available: 25808k/31579k RAM, (63k init code, 1109k kernel code, > 60k data, 1024k dma) > Blackfin Scratchpad data SRAM: 4 KB > Blackfin DATA_B SRAM: 16 KB > Blackfin Instruction SRAM: 48 KB > Mount-cache hash table entries: 512 > NET: Registered protocol family 16 > Blackfin GPIO Controller > Blackfin DMA Controller > stamp_init(): registering device resources > NET: Registered protocol family 2 > IP route cache hash table entries: 256 (order: -2, 1024 bytes) > TCP established hash table entries: 1024 (order: 0, 4096 bytes) > TCP bind hash table entries: 512 (order: -1, 2048 bytes) > TCP: Hash tables configured (established 1024 bind 512) > TCP reno registered > io scheduler noop registered > io scheduler anticipatory registered > io scheduler deadline registered > io scheduler cfq registered (default) > pfx: pfbits driver for bf5xx > timer_initialize: module loaded > Serial: Blackfin serial driver > bfin-uart.1: ttyBF0 at MMIO 0xffc00400 (irq = 18) is a BFIN-UART > RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize > loop: loaded (max 8 devices) > > Exception: IRQ 0x5 entered > code=[0x0000c026], stack frame=0x001e7ddc, bad PC=0x000084c2 > ----------- HARDWARE ERROR ----------- > External Memory Addressing Error > > CURRENT PROCESS: > > COMM=swapper PID=1 > return address: 0x000084c2; contents of [PC-16...PC+8]: > 6c22 e100 5555 9310 0030 0000 0000 0024 > 0040 0010 0000 3208 e14a 203f e10a 0000 X > 9110 6c22 9308 9110 b488 0010 0000 e121 > > RETE: 00000000 RETN: 001e7eb8 RETX: 000084c2 RETS: 000a0f96 > IPEND: 8020 SYSCFG: 0036 > SEQSTAT: 0000c026 SP: 001e7ddc > R0: 01a448d4 R1: 12345678 R2: 00000006 R3: ffffffff > R4: 0012e910 R5: 000000d4 R6: ffffffc0 R7: 0000003f > P0: 01a448fa P1: 01a448d4 P2: 203f0000 P3: 01a44800 > P4: 01a448d4 P5: 0012e83c FP: 0012e834 > A0.w: 00000000 A0.x: 00000000 A1.w: 00000000 A1.x: 00000000 > LB0: ffa01fec LT0: ffa01fec LC0: 00000000 > LB1: 00080b92 LT1: 00080b88 LC1: 00000000 > B0: 0000001a L0: 00000000 M0: 0012ce00 I0: 001dbe28 > B1: 000f4b20 L1: 00000000 M1: 00000000 I1: 001073a4 > B2: 00000000 L2: 00000000 M2: 00000000 I2: fffb6c79 > B3: 0000ffff L3: 00000000 M3: 00000000 I3: 00000000 > > USP: 00000000 ASTAT: 02003005 > DCPLB_FAULT_ADDR=203f0000 > ICPLB_FAULT_ADDR=000084c2 > > > Kernel panic - not syncing: Unhandled IRQ or exceptions! > > > ------------------------------------------------------------------------ > > _______________________________________________ > uClinux-dev mailing list > [email protected] > http://mailman.uclinux.org/mailman/listinfo/uclinux-dev > This message was resent by [email protected] > To unsubscribe see: > http://mailman.uclinux.org/mailman/options/uclinux-dev _______________________________________________ uClinux-dev mailing list [email protected] http://mailman.uclinux.org/mailman/listinfo/uclinux-dev This message was resent by [email protected] To unsubscribe see: http://mailman.uclinux.org/mailman/options/uclinux-dev
<<winmail.dat>>
_______________________________________________ uClinux-dev mailing list [email protected] http://mailman.uclinux.org/mailman/listinfo/uclinux-dev This message was resent by [email protected] To unsubscribe see: http://mailman.uclinux.org/mailman/options/uclinux-dev
