From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alan Casey Date: Wed, 17 May 2006 14:54:19 +0000 Subject: [U-Boot-Users] Bad Magic Number - bootm In-Reply-To: <20060517133750.92285.qmail@web30604.mail.mud.yahoo.com> Message-ID: <4345459A0013BC22@hawk.dcu.ie> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de >-- Original Message -- >Date: Wed, 17 May 2006 06:37:50 -0700 (PDT) >From: Kaushik karandikar >Subject: RE: [U-Boot-Users] Bad Magic Number - bootm >To: alan.casey5 at mail.dcu.ie >Cc: u-boot-users at lists.sourceforge.net > > >hey thnx, > Actually that problem is solved u r absolutely right ....i did >mkimage and its working fine....but i am not able to see the linux prompt... > Actually i am using Phytec board with LPC2294 ARM7TDMI. and i am using the >following pachakes: > uClinux-dist-20051110.tar.gz > linux-2.6.11.8-hsc0.patch.gz > uClinux-dist-lpc22xx.patch >linux-2.6.11.8-lpc22xx.patch > > Even i am able to write the kernel and romfs image using 'loadb' command >of u-boot. but not getting prompt when i use 'bootm'. > > As there is no support for this board and CPU , iadded those in u-boot. > > a bit out of track Question : Actually i am getting error : undrfineed reference >to machine_lookup_type , somehow i am ablr to solve it by copying arch/arm/kernel/head-common.S >to arch/arm/mach-lpc22xx/. and incude head-common.S at end in head.S. > So is that right? if not what can be the wring thing i am doing ? i wanna >boot uClinux on Phytec board. > Please help me out. > > Thanks and Regards, > Kaushik > > > >Alan Casey wrote: >>-- Original Message -- >>From: Kaushik karandikar >>To: u-boot-users at lists.sourceforge.net >>Subject: [U-Boot-Users] Bad Magic Number - bootm >>Date: Tue, 16 May 2006 03:57:23 -0700 (PDT) >> >> >> Hi All, >> I am compiling uClinux for Phytec board with LPC2294 ARM7TDMI. >> When I tried to use "bootm 0x80020000" (the linux kernel image address >>in Flash). >> It gave me the "Bad Magic Number". >> >> Could anyone tell me what was wrong ?I am new to this . >> >> Please Help me out. >> >> Thanks and Regards >> Kaushik >> >>--------------------------------- >>Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates >>starting at 1?/min. > >Hi, > > Make sure that you have used the 'mkimage' tool to encapsulate > a compressed or uncompressed Linux kernel image with header > information, checksum etc. See the README file in your U-Boot > distribution for details. e.g. for ARM Integrator platforms: > > mkimage -A arm -O linux -T kernel -C none -a 0x7fc0 -e 0x8000 > -n 'ARM Linux 2.6.x' -d linux-2.6.x.bin linux-2.6.x.img > > Regards, > Alan. > > > > > >--------------------------------- >Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates >starting at 1?/min. Hi Kaushik, I am not familiar with the Phytec boards or the process about how to add support for this in U-Boot but you might find more information on http://www.denx.de/wiki/DULG/ or from someone else on this mailing list. The http://www.phytec.com/pdf/AN_uClinux%20for%20Philips%20LPC22xx.pdf document references (page 14) another bootloader developed already for your board that you could also try: http://www.ulrichradig.de/ (in german). Regards, Alan.