A question about zImage when booting from HD

Simone Piccardi Simone.Piccardi at fi.infn.it
Wed Sep 15 05:20:35 EST 1999


Ok,
I retryed to boot from HD using the new 2.2.12 kernel compiled with the
last patches made by Gabriel.  Just to be sure I repeated the same
procedure of before, first I zeroed the partition with:
dd if=/dev/zero of=/dev/sda3 count=1000
and I checked that was zeroed; then I copied the kernel image with:
dd if=/usr/src/linux/arch/ppc/prepboot/zImage of=/dev/sda3
(is the same image that i'm using to boot by tftp).

This is the output of the dump in the disk:

[root at vmesez1 /root]# od -N 2048 -Ad -tx /dev/sda
0000000 00000000 00000000 00000000 00000000
*
0000432 00000000 00000000 00000000 00000001
0000448 0100833f e0ff2000 0000e05f 0d01003f
0000464 e0ff823f e0ff0060 0d0100e0 0100803f
0000480 e0ff413f e0ff0040 0f010018 00000000
0000496 00000000 00000000 00000000 000055aa
0000512 00000000 00000000 00000000 00000000
*
0002048

Instead if I dump the boot partition I get:

[root at vmesez1 /root]# od -N 2048 -Ad -tx /dev/sda3
0000000 48000400 00000000 00000000 00000000
0000016 00000000 00000000 00000000 00000000
*
0000432 00000000 00000000 00000000 00008000
0000448 02004101 124f0000 0000c004 00000000
0000464 00000000 00000000 00000000 00000000
*
0000496 00000000 00000000 00000000 000055aa
0000512 00040000 4c7e0900 00004c69 6e757800
0000528 00000000 00000000 00000000 00000000
*
0001024 48000005 7c2802a6 38000000 9401fd8c
0001040 bf410008 48000005 7fc802a6 801e0358
0001056 7fc0f214 7f8000a6 63808000 68008000
0001072 7c000124 7c1f42a6 7fb0faa6 5400843e
0001088 29000001 418a0018 63a0fc00 68003c00
0001104 7c0004ac 4c00012c 7c10fba6 480001b9
0001120 81be8014 906d0000 908d0004 90ad0008
0001136 90cd000c 3c60000a 90ed0010 910d0014
0001152 38638f94 912d0018 914d001c 938d0030
0001168 93ad0034 93ed0038 480016dd 809e800c
0001184 38a00098 806d002c 80cd0020 4800022d
0001200 7c6903a6 806d0024 3ca00009 809e8010
0001216 38a57e4c 80cd0020 811e8018 7ce41850
0001232 7d083a14 7fde3a14 7dad3a14 7d0803a6
0001248 4e800420 802d0028 38000000 9401fff0
0001264 48000125 815e8008 3800044d 394afffc
0001280 2c000000 7c0903a6 38000000 4182000c
0001296 940a0004 4200fffc 48000175 4800018d
0001312 38600000 418a0014 7c7883a6 7c7a83a6
0001328 7c7c83a6 7c7e83a6 7c7083a6 7c7183a6
0001344 7c7283a6 7c7383a6 7c7483a6 7c7583a6
0001360 7c7683a6 7c7783a6 3c60000a 38638f94
0001376 7c0004ac 48001ce9 48000109 480006cd
0001392 809e801c 3ca00008 80de8020 3c600016
0001408 80fe8024 38a56890 38634054 7ce63850
0001424 480004d9 48000115 806d0000 808d0004
0001440 80ad0008 80cd000c 80ed0010 810d0014
0001456 812d0018 814d001c 83c00000 7fc903a6
0001472 3fc0deae 3bdec0de 93c00000 83cd003c
0001488 93c00004 3bc00000 7c00f06c 418a001c
0001504 7c10faa6 60004400 7c0004ac 7c10fba6
0001520 68004400 7c10fba6 4e800420 7d4000a6
0001536 38600040 7d4a1878 7d400124 38630001
0001552 4bfffffd 38000074 399e8000 817e8000
0001568 7c0903a6 7d6b6050 398cfffc 840c0004
0001584 7c005a14 900c0000 4200fff4 38000053
0001600 819e8004 2c000000 7c0903a6 398cfffc
0001616 4d820020 854c0004 7c0a586e 7c005a14
0001632 914c0000 900a0000 4200ffec 4e800020
0001648 7c0000a6 60000070 7d6802a6 68000040
0001664 7d7a03a6 7c1b03a6 4c000064 7c0000a6
0001680 60000070 7d6802a6 68000070 7d7a03a6
0001696 7c1b03a6 4c000064 3d601000 356bf000
0001712 7c005a64 4080fff8 7c0004ac 4e800020
0001728 3883ffff 8c040001 2c000000 4082fff8
0001744 7c632050 4e800020 7c832040 38050003
0001760 5400f0bf 41860040 4182007c 7c0903a6
0001776 4084001c 3904fffc 38e3fffc 84080004
0001792 94070004 4200fff8 4800001c 5400103a
0001808 7d040214 7ce30214 8408fffc 9407fffc
0001824 4200fff8 2c060000 7ca32a14 41820038
0001840 3806ffff 7c630078 7c641b78 7c042840
0001856 7c00206c 7c843214 4180fff4 7c0004ac
0001872 7c641b78 7c042840 7c0027ac 7c843214
0001888 4180fff4 7c0004ac 4c00012c 4e800020
0001904 0009ad14 0009a9c8 9421fff0 7c0802a6
0001920 bfc10008 90010014 48000005 7fc802a6
0001936 801effe8 7fc0f214 807e8000 4800b7a1
0001952 48000000 7ca52b79 7c691b78 4d820020
0001968 98890000 39290001 34a5ffff 4082fff4
0001984 4e800020 7ca02b78 2c000000 7c6b1b78
0002000 38a5ffff 4d820020 89240000 7ca02b78
0002016 2c000000 992b0000 38840001 396b0001
0002032 38a5ffff 4082ffe4 4e800020 0009a940
0002048

And thi is what I have in the kernel image;

[root at vmesez1 /root]# od -N 2048 -Ad -tx
/usr/src/linux/arch/ppc/prepboot/zImage
0000000 48000400 00000000 00000000 00000000
0000016 00000000 00000000 00000000 00000000
*
0000432 00000000 00000000 00000000 00008000
0000448 02004101 124f0000 0000c004 00000000
0000464 00000000 00000000 00000000 00000000
*
0000496 00000000 00000000 00000000 000055aa
0000512 00040000 4c7e0900 00004c69 6e757800
0000528 00000000 00000000 00000000 00000000
*
0001024 48000005 7c2802a6 38000000 9401fd8c
0001040 bf410008 48000005 7fc802a6 801e0358
0001056 7fc0f214 7f8000a6 63808000 68008000
0001072 7c000124 7c1f42a6 7fb0faa6 5400843e
0001088 29000001 418a0018 63a0fc00 68003c00
0001104 7c0004ac 4c00012c 7c10fba6 480001b9
0001120 81be8014 906d0000 908d0004 90ad0008
0001136 90cd000c 3c60000a 90ed0010 910d0014
0001152 38638f94 912d0018 914d001c 938d0030
0001168 93ad0034 93ed0038 480016dd 809e800c
0001184 38a00098 806d002c 80cd0020 4800022d
0001200 7c6903a6 806d0024 3ca00009 809e8010
0001216 38a57e4c 80cd0020 811e8018 7ce41850
0001232 7d083a14 7fde3a14 7dad3a14 7d0803a6
0001248 4e800420 802d0028 38000000 9401fff0
0001264 48000125 815e8008 3800044d 394afffc
0001280 2c000000 7c0903a6 38000000 4182000c
0001296 940a0004 4200fffc 48000175 4800018d
0001312 38600000 418a0014 7c7883a6 7c7a83a6
0001328 7c7c83a6 7c7e83a6 7c7083a6 7c7183a6
0001344 7c7283a6 7c7383a6 7c7483a6 7c7583a6
0001360 7c7683a6 7c7783a6 3c60000a 38638f94
0001376 7c0004ac 48001ce9 48000109 480006cd
0001392 809e801c 3ca00008 80de8020 3c600016
0001408 80fe8024 38a56890 38634054 7ce63850
0001424 480004d9 48000115 806d0000 808d0004
0001440 80ad0008 80cd000c 80ed0010 810d0014
0001456 812d0018 814d001c 83c00000 7fc903a6
0001472 3fc0deae 3bdec0de 93c00000 83cd003c
0001488 93c00004 3bc00000 7c00f06c 418a001c
0001504 7c10faa6 60004400 7c0004ac 7c10fba6
0001520 68004400 7c10fba6 4e800420 7d4000a6
0001536 38600040 7d4a1878 7d400124 38630001
0001552 4bfffffd 38000074 399e8000 817e8000
0001568 7c0903a6 7d6b6050 398cfffc 840c0004
0001584 7c005a14 900c0000 4200fff4 38000053
0001600 819e8004 2c000000 7c0903a6 398cfffc
0001616 4d820020 854c0004 7c0a586e 7c005a14
0001632 914c0000 900a0000 4200ffec 4e800020
0001648 7c0000a6 60000070 7d6802a6 68000040
0001664 7d7a03a6 7c1b03a6 4c000064 7c0000a6
0001680 60000070 7d6802a6 68000070 7d7a03a6
0001696 7c1b03a6 4c000064 3d601000 356bf000
0001712 7c005a64 4080fff8 7c0004ac 4e800020
0001728 3883ffff 8c040001 2c000000 4082fff8
0001744 7c632050 4e800020 7c832040 38050003
0001760 5400f0bf 41860040 4182007c 7c0903a6
0001776 4084001c 3904fffc 38e3fffc 84080004
0001792 94070004 4200fff8 4800001c 5400103a
0001808 7d040214 7ce30214 8408fffc 9407fffc
0001824 4200fff8 2c060000 7ca32a14 41820038
0001840 3806ffff 7c630078 7c641b78 7c042840
0001856 7c00206c 7c843214 4180fff4 7c0004ac
0001872 7c641b78 7c042840 7c0027ac 7c843214
0001888 4180fff4 7c0004ac 4c00012c 4e800020
0001904 0009ad14 0009a9c8 9421fff0 7c0802a6
0001920 bfc10008 90010014 48000005 7fc802a6
0001936 801effe8 7fc0f214 807e8000 4800b7a1
0001952 48000000 7ca52b79 7c691b78 4d820020
0001968 98890000 39290001 34a5ffff 4082fff4
0001984 4e800020 7ca02b78 2c000000 7c6b1b78
0002000 38a5ffff 4d820020 89240000 7ca02b78
0002016 2c000000 992b0000 38840001 396b0001
0002032 38a5ffff 4082ffe4 4e800020 0009a940

And they seems to me identical. In any case when I give pboot 10 50 (I
have the disk un LUN 5) I get the same error:

PPC4-Bug>pboot 10 50
Booting from: NCR53C825, Controller 10, Drive 50
Device Name : /pci at 80000000/pci1000,3 at 10,0/harddisk at 5,0
Loading: Operating System

IPL Size Exceeds Free-Available Memory:
IPL Size              =AC444000 (&-1404813312)
Free-Available Memory =01F74000 (&32980992) 

And also looking in the header I do not understand where this AC444000
come from. My dubt is that I'm using a wrong driver for the SCSI, so I
write something wrong; this is what I have in .config:
#
# SCSI low-level drivers
#
[snip]
CONFIG_SCSI_AIC7XXX=y
CONFIG_AIC7XXX_CMDS_PER_DEVICE=8
CONFIG_AIC7XXX_PROC_STATS=y
CONFIG_AIC7XXX_RESET_DELAY=15
[snip]
CONFIG_SCSI_NCR53C8XX=y
# CONFIG_SCSI_SYM53C8XX is not set
CONFIG_SCSI_NCR53C8XX_DEFAULT_TAGS=8
CONFIG_SCSI_NCR53C8XX_MAX_TAGS=32
CONFIG_SCSI_NCR53C8XX_SYNC=20
[snip]
# CONFIG_SCSI_DEBUG is not set
CONFIG_SCSI_MESH=y
CONFIG_SCSI_MESH_SYNC_RATE=5
CONFIG_SCSI_MAC53C94=y
(I didn't touch the original config that I take from Gabriel site, I
just add the NCR53C8XX).

I hope this help on understanding he problem. In any case I cannot try
to put the kernel in /dev/sda1 until I get a new disk.

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/





More information about the Linuxppc-dev mailing list