From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20868 invoked by alias); 26 Jul 2009 16:33:32 -0000 Received: (qmail 20857 invoked by uid 22791); 26 Jul 2009 16:33:30 -0000 X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=BAYES_00,J_CHICKENPOX_24 X-Spam-Check-By: sourceware.org Received: from n3-vm0.bullet.mail.gq1.yahoo.com (HELO n3-vm0.bullet.mail.gq1.yahoo.com) (67.195.23.156) by sourceware.org (qpsmtpd/0.43rc1) with SMTP; Sun, 26 Jul 2009 16:33:19 +0000 Received: from [67.195.9.82] by n3.bullet.mail.gq1.yahoo.com with NNFMP; 26 Jul 2009 16:33:18 -0000 Received: from [67.195.9.106] by t2.bullet.mail.gq1.yahoo.com with NNFMP; 26 Jul 2009 16:33:18 -0000 Received: from [127.0.0.1] by omp110.mail.gq1.yahoo.com with NNFMP; 26 Jul 2009 16:33:18 -0000 Received: (qmail 29417 invoked by uid 60001); 26 Jul 2009 16:33:18 -0000 Message-ID: <933273.25954.qm@web111409.mail.gq1.yahoo.com> Received: from [90.207.29.219] by web111409.mail.gq1.yahoo.com via HTTP; Sun, 26 Jul 2009 09:33:17 PDT References: <110c8b2e0907240804l7324ea44k74798fd1950a5f8@mail.gmail.com> <4A69D00F.6000807@mlbassoc.com> <110c8b2e0907240930g3e4429aek690a32f7282a93ce@mail.gmail.com> Date: Sun, 26 Jul 2009 16:33:00 -0000 From: Weqaar Janjua Subject: Re: Booting ELF image using redboot To: Subodh Nijsure Cc: ecos-devel@sourceware.org In-Reply-To: <110c8b2e0907240930g3e4429aek690a32f7282a93ce@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-IsSubscribed: yes Mailing-List: contact ecos-devel-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: ecos-devel-owner@ecos.sourceware.org X-SW-Source: 2009-07/txt/msg00016.txt.bz2 Please post the first 50 lines of System.map and output from 'readelf -h vmlinux' - Weqaar A. Janjua ----- Original Message ---- From: Subodh Nijsure To: Gary Thomas Cc: ecos-devel@sourceware.org Sent: Friday, July 24, 2009 5:30:34 PM Subject: Re: Booting ELF image using redboot See my attempts below (still no joy, I am stumped appreciate help!) On Fri, Jul 24, 2009 at 8:15 AM, Gary Thomas wrote: > Subodh Nijsure wrote: >> I am new to using redboot and I need some help. >> >> This is x86 platform. >> >> On this platform I can boot the bzImage but not the ELF format linux image. >> >> Example if I have following boot script my board boots fine. >> >> load -v -r -m disk -b 0x200000 hda2:bzImage >> exec -b 0x200000 -l 0x300000 -c "console=ttyS0,115200 ip=dhcp >> root=/dev/nfs (some env specific stuff) " >> >> However I can not get redboot to load the ELF image I see message ( >> Bootsector magic not found (0x8954 @ 0x002001fe) >> >> (Not this vmlinux was produced by build process that created bzImage >> that works) >> >> load -v -r -m disk -b 0x200000 hda2:vmlinux >> exec -b 0x200000 -l 0x300000 -c "console=ttyS0,115200 ip=dhcp >> root=/dev/nfs (some env specific stuff) " >> Bootsector magic not found (0x8954 @ 0x002001fe) >> >> Reason I am trying to boot ELF image is I am trying to use wraplinux >> utility to wrap kernel and initrd, wraplinux produce >> >> Would appreciate any pointers as to what parameters I need to fix for >> load/exec when loading ELF file. > > Try leaving out the '-r' and '-b' options - ELF loading > should not need them. So I tried doing the following load -v -m disk hda2:vmlinux exec -c "console=ttyS0,115200 root=/dev/sda2 ip=dhcp platformid=0x500300" I also tried to execute exec with that specified -l load -v -m disk hda2:vmlinux exec -l 0x500000 -c "console=ttyS0,115200 root=/dev/sda2 ip=dhcp platformid=0x500300" without any luck objdump for vmlinux shows the following: so I have also tried executing go 0x00100000 without any luck vmlinux: file format elf32-i386 vmlinux architecture: i386, flags 0x00000112: EXEC_P, HAS_SYMS, D_PAGED start address 0x00100000 Program Header: LOAD off 0x00001000 vaddr 0xc0100000 paddr 0x00100000 align 2**12 filesz 0x0036032c memsz 0x0036032c flags r-x LOAD off 0x00362000 vaddr 0xc0461000 paddr 0x00461000 align 2**12 filesz 0x0007a086 memsz 0x000bc000 flags rwx NOTE off 0x002b4cd8 vaddr 0xc03b3cd8 paddr 0x003b3cd8 align 2**2 filesz 0x00000024 memsz 0x00000024 flags --- /Subodh