It's almost impossible to say what may go wrong. You will at least need
some simple debugging tool. Do you have some kind of jtag debugger to
look at the cpu registers?

Regards,
Erwin

Am Dienstag, den 29.04.2008, 16:20 +0200 schrieb Alberto Vélez Ortiz:
> >Alberto Vélez Ortiz wrote:
> >> Hi all, 
> >> 
> >> I'm using a 2.4.24-uc0-str710 uClinux kernel with a str710 (arm7tdmi) 
> >> processor and trying to implement xip. 
> >> 
> >> I've modified my sources according to patc:
> >> 
> http://home.at/cgi-bin/viewcvs.cgi/midori/sources/linux-2.4.20-uc1/xip.patch
> 
> >> 
> >> As it's for 2.4.20, I've applyed it manually and changing the setting 
> for 
> >> my architecture (str7 instead of atmel).
> >> 
> >> I've also modified the linker script to set the .text and .init area in 
> 
> > rom and .bss and .data areas in ram. My rom_baseaddr is 0x60000000 and 
> my 
> >> ram addr is 0x64400000
> >> 
> >> The problem comes when I compile. As the gap between rom and ram is 70 
> >> megabytes (aproximately), I get an image.bin file of 70MB!!! Does 
> anyone 
> >> have any suggestion? What am I missing?
> >> 
> >> TIA,
> >> 
> >> 
> >> Alberto Vélez Ortiz
> >Alberto,
> >
> >Make an elf image or an srec image only of the the data necessary to 
> >reside in the flash.  Otherwise your binary file will fill in the gaps 
> >between regions as it odes not have address information in the binary 
> >file, only data.
> >
> >hth - bob
> 
> Bob, Erwin, 
> 
> That's the part of the Makefile I'm using to create the image.
> 
> image:
>         [ -d $(IMAGEDIR) ] || mkdir -p $(IMAGEDIR)
> 
> #       #$(MAKE) -C $(ROOTDIR) LINUXTARGET=zImage linux || exit 1
>         $(MAKE) ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_COMPILE) -C 
> $(ROOTDIR)/$(LINUXDIR) zImage|| exit 1
>  
> #       $(CROSS_COMPILE)objcopy -O binary -R .note -R .comment -S 
> $(ROOTDIR)/$(LINUXDIR)/linux $(IMAGE)
>         $(CROSS_COMPILE)objcopy -O binary -j .init -j .text -j .data -S 
> $(ROOTDIR)/$(LINUXDIR)/linux $(IMAGE)
>         cp $(ROOTDIR)/$(LINUXDIR)/arch/armnommu/boot/zImage $(ZIMAGE)
> 
> I jump with the bootloader to the first addres. 0x61010000 in this case. 
> However, the cpu is completely hanged up and it does not boot.
> 
> This is the beginning of the system.map file:
> 
>  _binary__usr_local_uClinux_dist_images_romfs_img_size
> 20000000 ? __fastram_begin
> 20000000 ? __fastram_end
> 60010000 ? __init_begin
> 60010000 ? stext
> 60010000 ? _stext
> 60010068 ? MACH_ID_STR710
> 60010074 ? LC0
> 6001009c ? LC1
> 600100d0 ? __switch_data
> 600100f0 ? __ret
> 60010100 ? __mmap_switched
> 
> Any idea? 
> 
> TIA, 
> 
> Alberto Vélez Ortiz
> R&D Software Engineer
> ---------------------------------------------------------------------
> Ibersegur Systems S.L
> Vapor, 36 - Pol. Ind. La Ferreria
> 08110 - Montcada i Reixac - Barcelona (Spain)
> Tel. +34 93 225 7400 - Fax. +34 93 225 7410
> ---------------------------------------------------------------------
> 
> _______________________________________________
> uClinux-dev mailing list
> uClinux-dev@uclinux.org
> http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
> This message was resent by uclinux-dev@uclinux.org
> To unsubscribe see:
> http://mailman.uclinux.org/mailman/options/uclinux-dev
-- 
Dipl.-Ing. Erwin Authried
Softwareentwicklung und Systemdesign

_______________________________________________
uClinux-dev mailing list
uClinux-dev@uclinux.org
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev@uclinux.org
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev

Reply via email to