linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* RE: A question about zImage when booting from HD
@ 1999-09-09 20:28 Hewitt Ian-MCG30344
  1999-09-13 18:47 ` Simone Piccardi
  0 siblings, 1 reply; 7+ messages in thread
From: Hewitt Ian-MCG30344 @ 1999-09-09 20:28 UTC (permalink / raw)
  To: VALETTE Eric, paubert; +Cc: Simone.Piccardi, linuxppc-dev


   Hello,

     I have seen this on our boards in the lab and at customers.
It seems to be related to left over data on the drive.  In other
words, if you have a disk with this problem and you zero out the 
beginning of the disk (by specifically writing blocks of 0's to
the drive for the first couple hundred blocks), this issue goes 
away.  I have not had any time to track down why this is a problem,
but obviously some non zero value in an inopportune place is 
causing a problem.  Either in the partition table, of the
boot block of the partition. (Of course, I always use /dev/sda1 
as the boot partition, so my above fix didn't help narrow that
down any)

     Unfortunately, this is very destructive (unless you do it
when installing), you could experiment with less brute force 
methods.  I would be curious to know what you find out.  Good Luck. 


Ian Hewitt
Systems Engineer
Motorola Computer Group

> -----Original Message-----
> From: VALETTE Eric [mailto:valette@crf.canon.fr]
> Sent: Thursday, September 09, 1999 9:15 AM
> To: paubert@iram.es
> Cc: Simone.Piccardi@fi.infn.it; linuxppc-dev@lists.linuxppc.org
> Subject: Re: A question about zImage when booting from HD
> 
> 
> 
> >>>>> "Gabriel" == Gabriel Paubert <paubert@iram.es> writes:
> 
> Gabriel> On Mon, 6 Sep 1999, Simone Piccardi wrote:
> 
> Gabriel> Well, I don't think so. I'm also very surprised 
> since I have a very
> Gabriel> similar setup and I have never seen this command 
> fail (NetBoot is another
> Gabriel> story), the length in /dev/sda3 is correct. 
> 
> Gabriel> What is your verssion of PPCBug ? 
> 
> Gabriel> Can you try PBOOT;A and PBOOT;V ? 
> 
> Gabriel> 	Regards,
> Gabriel> 	Gabriel.
> 
> 
> I had a lot of problem on MPC750 to have PBOOT working with the
> same archive than via the NBO command. The reason was a byte swapping
> problem in the IDE low level command.
> 
> What is actually at vger does not work on my board. I have to 
> patche the kernel
> with the following patch :
> 
> *** ./arch/ppc/kernel/prep_setup.c~	Fri Jun  4 22:30:47 1999
> --- ./arch/ppc/kernel/prep_setup.c	Tue Jul  6 17:00:39 1999
> ***************
> *** 629,641 ****
>   void
>   prep_ide_insw(ide_ioreg_t port, void *buf, int ns)
>   {
> ! 	_insw((unsigned short *)((port)+_IO_BASE), buf, ns);
>   }
>   
>   void
>   prep_ide_outsw(ide_ioreg_t port, void *buf, int ns)
>   {
> ! 	_outsw((unsigned short *)((port)+_IO_BASE), buf, ns);
>   }
>   
>   int
> --- 629,641 ----
>   void
>   prep_ide_insw(ide_ioreg_t port, void *buf, int ns)
>   {
> ! 	ide_insw((unsigned short *)((port)+_IO_BASE), buf, ns);
>   }
>   
>   void
>   prep_ide_outsw(ide_ioreg_t port, void *buf, int ns)
>   {
> ! 	ide_outsw((unsigned short *)((port)+_IO_BASE), buf, ns);
>   }
>   
>   int
> ***************
> *** 688,693 ****
> --- 688,694 ----
>   void
>   prep_ide_fix_driveid(struct hd_driveid *id)
>   {
> +   	ppc_generic_ide_fix_driveid(id);
>   }
>   
>   __initfunc(void
> 
> 
> 
> 
> -- 
>    __                 
>   /  `                   	Eric Valette
>  /--   __  o _.          	Canon CRF - Communication Dept
> (___, / (_(_(__         	Rue de la touche lambert
> 				35517 Cesson-Sevigne  Cedex
> 				FRANCE
> Tel: +33 (0)2 99 87 68 91	Fax: +33 (0)2 99 84 11 30
> E-mail: valette@crf.canon.fr	http://www.crf.canon.fr
> 

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 7+ messages in thread
* A question about zImage when booting from HD
@ 1999-09-06 15:02 Simone Piccardi
  1999-09-09  8:12 ` Gabriel Paubert
  0 siblings, 1 reply; 7+ messages in thread
From: Simone Piccardi @ 1999-09-06 15:02 UTC (permalink / raw)
  To: linuxppc-dev


Hi, 
after some time, I'm retrying to boot my board (a MVME2431) from the HD,
but still I have to use NFS. I partitioned the HD as:

Disk /dev/sda: 64 heads, 32 sectors, 8683
cylinders                             
Units = cylinders of 2048 * 512
bytes                                           
                                                                                
   Device Boot    Start       End    Blocks   Id 
System                        
/dev/sda1             1      8620   8826864   83 
Linux                         
/dev/sda2          8621      8680     61440   82  Linux
swap                    
/dev/sda3   *      8681      8683      3072   41  PPC PReP
Boot                 

then I create an image (make zImage) that is normally working when
booted by NFS (could be this the problem? there are some option to set
during the kernel compilation?) and copied it to /dev/sda3 using dd.

But when i tried to boot from the HD I obtain this:
PPC4-Bug>ioi                                                                    
I/O Inquiry
Status:                                                             
CLUN  DLUN  CNTRL-TYPE  DADDR  DTYPE  RM 
Inquiry-Data                          
   1     0  PC8477      0      $00    Y  
<None>                                
  10    50  NCR53C825   5      $00    N   SEAGATE  ST39140W        
1487        
PPC4-Bug>pboot 10 50
0                                                          
Booting from: NCR53C825, Controller 10, Drive
50                                
Device Name :
/pci@80000000/pci1000,3@10,0/harddisk@5,0                         
Loading: Operating
System                                                       
                                                                                
IPL Size Exceeds Free-Available
Memory:                                         
IPL Size              =AC444000
(&-1404813312)                                  
Free-Available Memory =01F74000
(&32980992)                                     

I looked both in /dev/sda3 and in
/usr/src/linux/arch/ppc/prepboot/zImage and what I get is (the results
were the same):

[root@vmesez1 /root]# od -N 10000 -Ad -tx /dev/sda3
0000000 48000400 00000000 00000000 00000000
0000016 00000000 00000000 00000000 00000000
*
0000432 00000000 00000000 00000000 00008000
0000448 02004101 124f0000 0000b004 00000000
0000464 00000000 00000000 00000000 00000000
*
0000496 00000000 00000000 00000000 000055aa 
0000512 00040000 6c5f0900 00004c69 6e757800
0000528 00000000 00000000 00000000 00000000
* 
0001024 48000005 7c2802a6 38000000 9401fd8c 
0001040 bf410008 48000005 7fc802a6 801e0358
...

and I cannot figure from where I get this IPL Size =AC444000. If I
understand right what is written in the PPCBug manual it seems that the
code start at 1024 (byte 512), and the lenght is 0x095f6c (byte 516),
nothing related to AC444000; I'm missing something in the partion? Or
I'm using a wrong image?

Thanks
-- 
Simone Piccardi
Microsoft is NOT the answer. Microsoft is the Question.
The answer is: "NO!"

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~1999-09-14 19:20 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-09-09 20:28 A question about zImage when booting from HD Hewitt Ian-MCG30344
1999-09-13 18:47 ` Simone Piccardi
1999-09-13 22:10   ` Matt Porter
1999-09-14 19:20     ` Simone Piccardi
  -- strict thread matches above, loose matches on Subject: below --
1999-09-06 15:02 Simone Piccardi
1999-09-09  8:12 ` Gabriel Paubert
1999-09-09 13:15   ` VALETTE Eric

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).