A question about zImage when booting from HD
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
Signature · 5 lines
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/
Quoted 69 lines · Simone Piccardi
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
bytesDevice Boot Start End Blocks Id
System/dev/sda11 8620 8826864 83
Linux/dev/sda28621 8680 61440 82 Linux
swap/dev/sda3* 8681 8683 3072 41 PPC PReP
Bootthen 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/sda3using 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
SystemIPL Size Exceeds Free-Available
Memory:
IPL Size =AC444000
(&-1404813312)
Free-Available Memory =01F74000
(&32980992)I looked both in
/dev/sda3and in/usr/src/linux/arch/ppc/prepboot/zImageand what I get is (the results were the same):[root@vmesez1 /root]# od -N 10000 -Ad -tx
/dev/sda30000000 48000400 00000000 00000000 00000000 0000016 00000000 00000000 00000000 00000000 *
0000432 00000000 00000000 00000000 00008000 0000448 02004101124f00000000b00400000000 0000464 00000000 00000000 00000000 00000000 *
0000496 00000000 00000000 00000000000055aa0000512 000400006c5f090000004c696e7578000000528 00000000 00000000 00000000 00000000 *
0001024 480000057c2802a6380000009401fd8c0001040bf410008480000057fc802a6801e0358
...
Quoted 5 lines
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?
Well, I don't think so. I'm also very surprised since I have a very similar setup and I have never seen this command fail (NetBoot is another story), the length in /dev/sda3 is correct.
What is your verssion of PPCBug ?
Can you try PBOOT;A and PBOOT;V ?
Regards,
Gabriel.
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
"Gabriel" == Gabriel Paubert <[email protected]> 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
Signature · 10 lines
__ / ` 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: [email protected] http://www.crf.canon.fr ** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/