OFF-TOPIC [was: Re: unable to boot linux-2.6.18.4]

2007-04-29 Thread Wolfgang Pfeiffer
On Sat, Apr 28 2007, at 12:30 +0800, William Xu wrote:
 Wolfgang Pfeiffer [EMAIL PROTECTED] writes:
 
  We've had this topic - kernel compiles going wrong - often
  here. IIRC. And I've given detailed instructions on how to do it: You
  can search Google on it, with these patterns (including the quotes):
 
  time makeflags wolfgang pfeiffer
 
  Or you can have a look at
  http://www.wolfgangpfeiffer.com/kernel.html
 
 Looks like i'm unable to connect it ?

You say you cannot connect to that page? If yes:

Works without probs here, but please let me know in case this problem
keeps to persist ... After all especially the linux pages - as the
fine rest of them :) - on my site are made for everyone's use, so I'd
really be glad to know about the errors someone gets when trying to see
them ... PM is OK ...

Thanks in anticipation 

Best Regards
Wolfgang
-- 
Wolfgang Pfeiffer: /ICQ: 286585973/ + + +  /AIM: crashinglinux/
http://profiles.yahoo.com/wolfgangpfeiffer

I made slight changes on Key ID: E3037113. Please refresh it.
http://keyserver.mine.nu/pks/lookup?search=0xE3037113fingerprint=on


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: unable to boot linux-2.6.18.4

2007-04-29 Thread Wolfgang Pfeiffer
On Sat, Apr 28 2007, at 16:44 +0800, William Xu wrote:
 Wolfgang Pfeiffer [EMAIL PROTECTED] writes:
 
  The kernel above is a from the git repository, IINM.
  The config is attached.
 
 Your config works great ! 

Which means you have a bootable kernel now, right? If not you might
want let us know ...

 Except that my root fs is xfs, which makes me
 recompile it with xfs built-in. Also in yaboot.conf i changed hdc to
 hda.
 
 One little problem is that i need to apply Andy Wingo's capslock patch
 again..
 
 Thanks a lot ! 

Definitely welcome: I'm always glad to hear that this - at times -
cumbersome kernel config editing helps others, too  :)

BTW: For the next kernel I'll compile I'll have a closer look at the
multicast enabled kernel option - which is, AFAIKS, currently not
switched on with the config I sent here ... not being sure what this
'multicast' thing is, but IIRC I got an error, or so, in the past
weeks, and I'll possibly enable this switch next time I compile this
nice beast again ... :)

At any rate: Good luck :)

Best Regards
Wolfgang

-- 
Wolfgang Pfeiffer: /ICQ: 286585973/ + + +  /AIM: crashinglinux/
http://profiles.yahoo.com/wolfgangpfeiffer

I made slight changes on Key ID: E3037113. Please refresh it.
http://keyserver.mine.nu/pks/lookup?search=0xE3037113fingerprint=on


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: unable to boot linux-2.6.18.4

2007-04-28 Thread William

It means you have not installed the dependencies of the package. that it
tries to call mkvmlinuz is a hint that you are not on powermac, or that
you do something strange.

 ,[ apt-get install linux-image-2.6.18-4-powerpc ]
 | Reading package lists... Done
 | Building dependency tree... Done
 | Suggested packages:
 |   linux-doc-2.6.18
 | The following NEW packages will be installed:
 |   linux-image-2.6.18-4-powerpc
 | 0 upgraded, 1 newly installed, 0 to remove and 513 not upgraded.
 | Need to get 0B/16.6MB of archives.
 | After unpacking 51.4MB of additional disk space will be used.
 | Preconfiguring packages ...
 | (Reading database ... 174438 files and directories currently installed.)
 | Unpacking linux-image-2.6.18-4-powerpc (from 
.../linux-image-2.6.18-4-powerpc_2.6.18.dfsg.1-12_powerpc.deb) ...
 | Could not find mkinitramfs-kpkg mkinitrd.yaird. at /var/lib/dpkg/tmp.ci/preinst 
line 238, STDIN line 9.
 | Ok, Aborting

Try apt-get install initramfs-tools. I wonder how you where able to
install linux-image-2.6.18-4-powerpc without it automatically pulling in
either yaird or initramfs-tools. This is a RC bug in itself if it is
confirmed. But :


It turns out that initramfs-tools does be installed already. And
i'm suprised that the error is different from previous.
(maybe due to the reinstallation of util-linux package ?)

,[ sudo apt-get install linux-image-2.6.18-4-powerpc ]
| Reading package lists... Done
| Building dependency tree... Done
| Suggested packages:
|   linux-doc-2.6.18
| The following NEW packages will be installed:
|   linux-image-2.6.18-4-powerpc
| 0 upgraded, 1 newly installed, 0 to remove and 521 not upgraded.
| Need to get 0B/16.6MB of archives.
| After unpacking 51.4MB of additional disk space will be used.
| Preconfiguring packages ...
| (Reading database ... 176314 files and directories currently installed.)
| Unpacking linux-image-2.6.18-4-powerpc (from
.../linux-image-2.6.18-4-powerpc_2.6.18.dfsg.1-12_powerpc.deb) ...
| Ok, Aborting
| dpkg: error processing
/var/cache/apt/archives/linux-image-2.6.18-4-powerpc_2.6.18.dfsg.1-12_powerpc.deb
(--unpack):
|  subprocess pre-installation script returned error exit status 1
| Examining /etc/kernel/postrm.d .
| run-parts: executing /etc/kernel/postrm.d/mkvmlinuz
| Errors were encountered while processing:
|  
/var/cache/apt/archives/linux-image-2.6.18-4-powerpc_2.6.18.dfsg.1-12_powerpc.deb
| E: Sub-process /usr/bin/dpkg returned an error code (1)
`


 While, my current partition table is:


[...]


This still seems like a mac. Please try :

  dpkg-reconfigure mkvmlinuz, and chose yaboot.


It already is..

--
William


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: unable to boot linux-2.6.18.4

2007-04-28 Thread Jack Malmostoso
On Sat, 28 Apr 2007 08:40:11 +0200, William wrote:

 And
 i'm suprised that the error is different from previous.

Maybe it's time for a good hardware check. If you have a RAM module 
installed, try removing it and retry to install the kernel. There is a 
version of memtest for OSX, you could also try that.
Plus, make a good fsck on your linux partitions.

-- 
Best Regards, Jack
Linux User #264449
Powered by Debian GNU/Linux on AMD64


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: unable to boot linux-2.6.18.4

2007-04-28 Thread William Xu
Wolfgang Pfeiffer [EMAIL PROTECTED] writes:

 The kernel above is a from the git repository, IINM.
 The config is attached.

Your config works great ! Except that my root fs is xfs, which makes me
recompile it with xfs built-in. Also in yaboot.conf i changed hdc to
hda.

One little problem is that i need to apply Andy Wingo's capslock patch
again..

Thanks a lot ! 

-- 
William

To Perl, or not to Perl, that is the kvetching.
-- Larry Wall in [EMAIL PROTECTED]


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: unable to boot linux-2.6.18.4

2007-04-28 Thread William Xu
Jack Malmostoso [EMAIL PROTECTED] writes:

 On Sat, 28 Apr 2007 08:40:11 +0200, William wrote:

 And
 i'm suprised that the error is different from previous.

 Maybe it's time for a good hardware check. If you have a RAM module
 installed, try removing it and retry to install the kernel. There is a
 version of memtest for OSX, you could also try that.
 Plus, make a good fsck on your linux partitions.

That scares me.. ;-)

This ibook is being well for more than three years now.. Apple's
hardware seems nice.

-- 
William

I have never seen anything fill up a vacuum so fast and still suck.
-- Rob Pike, on X.

Steve Jobs said two years ago that X is brain-damaged and it will be
gone in two years.  He was half right.
-- Dennis Ritchie

Dennis Ritchie is twice as bright as Steve Jobs, and only half wrong.
-- Jim Gettys


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: unable to boot linux-2.6.18.4

2007-04-28 Thread Jack Malmostoso
On Sat, 28 Apr 2007 10:50:06 +0200, William Xu wrote:

 This ibook is being well for more than three years now.. Apple's
 hardware seems nice.

And it sure is, my iBook is now almost 4 years old too and it's still 
rock solid.
But a faulty ram module can always happen ;)

-- 
Best Regards, Jack
Linux User #264449
Powered by Debian GNU/Linux on AMD64


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: unable to boot linux-2.6.18.4

2007-04-27 Thread Wolfgang Pfeiffer
On Fri, Apr 27 2007, at 13:18 +0800, William Xu wrote:
 Hi, 
 
 In order to get airport extreme working, i just built linux-2.6.18.4.
 Its .config is mainly based on 2.6.15.5(current kernel). When i try to
 boot the newly built kernel, it dies even before loading the kernel:
 
 Can't read Elf e_ident/e_type/e_machine info


Here:

 cat /proc/version 
Linux version 2.6.18-rc4-060811-dirty ([EMAIL PROTECTED]) 
(gcc version 4.1.2 20060729 (prerelease) (Debian 4.1.1-10)) #1 Fri Aug 
11 00:16:22 CEST 2006

The kernel above is a from the git repository, IINM.
The config is attached. 

We've had this topic - kernel compiles going wrong - often
here. IIRC. And I've given detailed instructions on how to do it: You
can search Google on it, with these patterns (including the quotes):

time makeflags wolfgang pfeiffer

Or you can have a look at
http://www.wolfgangpfeiffer.com/kernel.html

Good luck

Best Regards
Wolfgang

-- 
Wolfgang Pfeiffer: /ICQ: 286585973/ + + +  /AIM: crashinglinux/
http://profiles.yahoo.com/wolfgangpfeiffer

I made slight changes on Key ID: E3037113. Please refresh it.
http://keyserver.mine.nu/pks/lookup?search=0xE3037113fingerprint=on
#
# Automatically generated make config: don't edit
# Linux kernel version: 2.6.18-rc4-060811
# Fri Aug 11 00:05:28 2006
#
# CONFIG_PPC64 is not set
CONFIG_PPC32=y
CONFIG_PPC_MERGE=y
CONFIG_MMU=y
CONFIG_GENERIC_HARDIRQS=y
CONFIG_IRQ_PER_CPU=y
CONFIG_RWSEM_XCHGADD_ALGORITHM=y
CONFIG_GENERIC_HWEIGHT=y
CONFIG_GENERIC_CALIBRATE_DELAY=y
CONFIG_GENERIC_FIND_NEXT_BIT=y
CONFIG_PPC=y
CONFIG_EARLY_PRINTK=y
CONFIG_GENERIC_NVRAM=y
CONFIG_SCHED_NO_NO_OMIT_FRAME_POINTER=y
CONFIG_ARCH_MAY_HAVE_PC_FDC=y
CONFIG_PPC_OF=y
CONFIG_PPC_UDBG_16550=y
# CONFIG_GENERIC_TBSYNC is not set
# CONFIG_DEFAULT_UIMAGE is not set

#
# Processor support
#
CONFIG_CLASSIC32=y
# CONFIG_PPC_52xx is not set
# CONFIG_PPC_82xx is not set
# CONFIG_PPC_83xx is not set
# CONFIG_PPC_85xx is not set
# CONFIG_PPC_86xx is not set
# CONFIG_40x is not set
# CONFIG_44x is not set
# CONFIG_8xx is not set
# CONFIG_E200 is not set
CONFIG_6xx=y
CONFIG_PPC_FPU=y
CONFIG_ALTIVEC=y
CONFIG_PPC_STD_MMU=y
CONFIG_PPC_STD_MMU_32=y
# CONFIG_SMP is not set
CONFIG_DEFCONFIG_LIST=/lib/modules/$UNAME_RELEASE/.config

#
# Code maturity level options
#
CONFIG_EXPERIMENTAL=y
CONFIG_BROKEN_ON_SMP=y
CONFIG_INIT_ENV_ARG_LIMIT=32

#
# General setup
#
CONFIG_LOCALVERSION=
CONFIG_LOCALVERSION_AUTO=y
CONFIG_SWAP=y
CONFIG_SYSVIPC=y
CONFIG_POSIX_MQUEUE=y
CONFIG_BSD_PROCESS_ACCT=y
# CONFIG_BSD_PROCESS_ACCT_V3 is not set
# CONFIG_TASKSTATS is not set
CONFIG_SYSCTL=y
CONFIG_AUDIT=y
CONFIG_AUDITSYSCALL=y
CONFIG_IKCONFIG=y
CONFIG_IKCONFIG_PROC=y
# CONFIG_RELAY is not set
CONFIG_INITRAMFS_SOURCE=
# CONFIG_CC_OPTIMIZE_FOR_SIZE is not set
# CONFIG_EMBEDDED is not set
CONFIG_KALLSYMS=y
# CONFIG_KALLSYMS_ALL is not set
# CONFIG_KALLSYMS_EXTRA_PASS is not set
CONFIG_HOTPLUG=y
CONFIG_PRINTK=y
CONFIG_BUG=y
CONFIG_ELF_CORE=y
CONFIG_BASE_FULL=y
CONFIG_RT_MUTEXES=y
CONFIG_FUTEX=y
CONFIG_EPOLL=y
CONFIG_SHMEM=y
CONFIG_SLAB=y
CONFIG_VM_EVENT_COUNTERS=y
# CONFIG_TINY_SHMEM is not set
CONFIG_BASE_SMALL=0
# CONFIG_SLOB is not set

#
# Loadable module support
#
CONFIG_MODULES=y
CONFIG_MODULE_UNLOAD=y
CONFIG_MODULE_FORCE_UNLOAD=y
# CONFIG_MODVERSIONS is not set
CONFIG_MODULE_SRCVERSION_ALL=y
CONFIG_KMOD=y

#
# Block layer
#
CONFIG_LBD=y
# CONFIG_BLK_DEV_IO_TRACE is not set
# CONFIG_LSF is not set

#
# IO Schedulers
#
CONFIG_IOSCHED_NOOP=y
CONFIG_IOSCHED_AS=y
CONFIG_IOSCHED_DEADLINE=y
CONFIG_IOSCHED_CFQ=y
CONFIG_DEFAULT_AS=y
# CONFIG_DEFAULT_DEADLINE is not set
# CONFIG_DEFAULT_CFQ is not set
# CONFIG_DEFAULT_NOOP is not set
CONFIG_DEFAULT_IOSCHED=anticipatory

#
# Platform support
#
CONFIG_PPC_MULTIPLATFORM=y
# CONFIG_PPC_ISERIES is not set
# CONFIG_EMBEDDED6xx is not set
# CONFIG_APUS is not set
CONFIG_PPC_CHRP=y
CONFIG_PPC_PMAC=y
# CONFIG_PPC_CELL is not set
# CONFIG_PPC_CELL_NATIVE is not set
# CONFIG_UDBG_RTAS_CONSOLE is not set
CONFIG_MPIC=y
CONFIG_PPC_RTAS=y
# CONFIG_RTAS_ERROR_LOGGING is not set
CONFIG_RTAS_PROC=y
# CONFIG_MMIO_NVRAM is not set
CONFIG_PPC_MPC106=y
# CONFIG_PPC_970_NAP is not set
CONFIG_CPU_FREQ=y
CONFIG_CPU_FREQ_TABLE=y
CONFIG_CPU_FREQ_DEBUG=y
CONFIG_CPU_FREQ_STAT=m
CONFIG_CPU_FREQ_STAT_DETAILS=y
# CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE is not set
CONFIG_CPU_FREQ_DEFAULT_GOV_USERSPACE=y
CONFIG_CPU_FREQ_GOV_PERFORMANCE=m
CONFIG_CPU_FREQ_GOV_POWERSAVE=m
CONFIG_CPU_FREQ_GOV_USERSPACE=y
CONFIG_CPU_FREQ_GOV_ONDEMAND=m
CONFIG_CPU_FREQ_GOV_CONSERVATIVE=m
CONFIG_CPU_FREQ_PMAC=y
# CONFIG_PPC601_SYNC_FIX is not set
CONFIG_TAU=y
# CONFIG_TAU_INT is not set
# CONFIG_TAU_AVERAGE is not set
# CONFIG_WANT_EARLY_SERIAL is not set

#
# Kernel options
#
CONFIG_HIGHMEM=y
# CONFIG_HZ_100 is not set
# CONFIG_HZ_250 is not set
CONFIG_HZ_1000=y
CONFIG_HZ=1000
# CONFIG_PREEMPT_NONE is not set
CONFIG_PREEMPT_VOLUNTARY=y
# CONFIG_PREEMPT is not set
CONFIG_BINFMT_ELF=y
CONFIG_BINFMT_MISC=m
CONFIG_ARCH_ENABLE_MEMORY_HOTPLUG=y
CONFIG_KEXEC=y

Re: unable to boot linux-2.6.18.4

2007-04-27 Thread William Xu
Sven Luther [EMAIL PROTECTED] writes:

 On Fri, Apr 27, 2007 at 01:18:01PM +0800, William Xu wrote:
 Hi,

 In order to get airport extreme working, i just built linux-2.6.18.4.
 Its .config is mainly based on 2.6.15.5(current kernel). When i try to

 The current debian kernels are etch's 2.6.18 and sid's 2.6.20. If i
 where you, i would install the etch 2.6.18 kernel, and if you really
 need something custom use the etch source package to build your own
 kernel, starting from the /boot/config-2.6.18... file.

It looks like i seldom have luck on installing pre-compiled kernel
provided by debian.. This time again.

What does this error mean?

,[ apt-get install linux-image-2.6.18-4-powerpc ]
| Reading package lists... Done
| Building dependency tree... Done
| Suggested packages:
|   linux-doc-2.6.18
| The following NEW packages will be installed:
|   linux-image-2.6.18-4-powerpc
| 0 upgraded, 1 newly installed, 0 to remove and 513 not upgraded.
| Need to get 0B/16.6MB of archives.
| After unpacking 51.4MB of additional disk space will be used.
| Preconfiguring packages ...
| (Reading database ... 174438 files and directories currently installed.)
| Unpacking linux-image-2.6.18-4-powerpc (from 
.../linux-image-2.6.18-4-powerpc_2.6.18.dfsg.1-12_powerpc.deb) ...
| Could not find mkinitramfs-kpkg mkinitrd.yaird. at 
/var/lib/dpkg/tmp.ci/preinst line 238, STDIN line 9.
| Ok, Aborting
| dpkg: error processing 
/var/cache/apt/archives/linux-image-2.6.18-4-powerpc_2.6.18.dfsg.1-12_powerpc.deb
 (--unpack):
|  subprocess pre-installation script returned error exit status 1
| Examining /etc/kernel/postrm.d .
| run-parts: executing /etc/kernel/postrm.d/mkvmlinuz
| Errors were encountered while processing:
|  
/var/cache/apt/archives/linux-image-2.6.18-4-powerpc_2.6.18.dfsg.1-12_powerpc.deb
| E: Sub-process /usr/bin/dpkg returned an error code (1)
| think-different:/home/william#
`

Nevertheless, i extract the config file from it, and is being compiled
it now. This config seems including way too much staffs, the compilation
takes more than *two hours*... 

And, when rebooting the new kernel fails at: 

,
| VFS: Cannot open root device hdc4 on unknown block (0, 0)
| Please append a correct root= boot option
| Kernel panic, not syncing: 
| VFS: unable to moiunt root fs on unknown block (0, 0)
`

Above these lines, i notice that the new kernel has tagged ATA hard disk
as /dev/hda. So this seems to be the problem.

While, my current partition table is: 

,[ sudo fdisk -l ]
| /dev/hdc
| #type name length   base ( 
size )  system
| /dev/hdc1 Apple_partition_map Apple63 @ 1( 
31.5k)  Partition map
| /dev/hdc2 Apple_Bootstrap bootstrap  1600 @ 64   
(800.0k)  NewWorld bootblock
| /dev/hdc3 Apple_UNIX_SVR2 swap 260544 @ 1664 
(127.2M)  Linux swap
| /dev/hdc4 Apple_UNIX_SVR2 root   12311320 @ 262208   (  
5.9G)  Linux native
| /dev/hdc5   Apple_HFS macimage6291456 @ 12573528 (  
3.0G)  HFS
| /dev/hdc6   Apple_HFS macosx  716 @ 18864984 (  
3.8G)  HFS
| /dev/hdc7   Apple_HFS source 31851320 @ 26753800 ( 
15.2G)  HFS
| 
| Block size=512, Number of Blocks=58605120
| DeviceType=0x0, DeviceId=0x0
| 
`

It's a bit weird that the ATA hard disk has been tagged as /dev/hdc
since the first time installation of debian by cdrom. But later i always
upgrade linux kernel by hand, and without much problem up to 2.6.15.

To solve the kernel panic, i tried appending root= option on yaboot, 

,
| vmlinux root=/dev/hda4
`

But it still causes similar error. :(

 boot the newly built kernel, it dies even before loading the kernel:

 Can't read Elf e_ident/e_type/e_machine info

 This is a yaboot warning, saying it has trouble finding the elf header
 from the kernel. My first guess is that either your kernel is not an elf
 file, and something went horribly wrong, or more probably your
 yaboot.conf points at the wrong file, and not at the actual kernel.
 Maybe you have a dangling symlink or something ?

They are all okay, AFAIK.

ps. It's ibook G4 1G, 12.1' here. 

--
William

Eli and Bessie went to sleep.
In the middle of the night, Bessie nudged Eli.
Please be so kindly and close the window.  It's cold outside!
Half asleep, Eli murmured,
Nu ... so if I'll close the window, will it be warm outside?


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: unable to boot linux-2.6.18.4

2007-04-27 Thread William Xu
Wolfgang Pfeiffer [EMAIL PROTECTED] writes:

 We've had this topic - kernel compiles going wrong - often
 here. IIRC. And I've given detailed instructions on how to do it: You
 can search Google on it, with these patterns (including the quotes):

 time makeflags wolfgang pfeiffer

 Or you can have a look at
 http://www.wolfgangpfeiffer.com/kernel.html

Looks like i'm unable to connect it ?

This is how i usually build kernel under debian, 

,
| $ make menuconfig
| $ sudo make_kpkg kernel_iamge
| $ sudo dpkg -i linux*.deb
`

I will try your .config at the same time. Thanks ! 

-- 
William

It was a JOKE!!  Get it??  I was receiving messages from DAVID LETTERMAN!!
YOW!!


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: unable to boot linux-2.6.18.4

2007-04-27 Thread Sven Luther
On Sat, Apr 28, 2007 at 12:19:26PM +0800, William Xu wrote:
 Sven Luther [EMAIL PROTECTED] writes:
 
  On Fri, Apr 27, 2007 at 01:18:01PM +0800, William Xu wrote:
  Hi,
 
  In order to get airport extreme working, i just built linux-2.6.18.4.
  Its .config is mainly based on 2.6.15.5(current kernel). When i try to
 
  The current debian kernels are etch's 2.6.18 and sid's 2.6.20. If i
  where you, i would install the etch 2.6.18 kernel, and if you really
  need something custom use the etch source package to build your own
  kernel, starting from the /boot/config-2.6.18... file.
 
 It looks like i seldom have luck on installing pre-compiled kernel
 provided by debian.. This time again.
 
 What does this error mean?

It means you have not installed the dependencies of the package. that it
tries to call mkvmlinuz is a hint that you are not on powermac, or that
you do something strange.

 ,[ apt-get install linux-image-2.6.18-4-powerpc ]
 | Reading package lists... Done
 | Building dependency tree... Done
 | Suggested packages:
 |   linux-doc-2.6.18
 | The following NEW packages will be installed:
 |   linux-image-2.6.18-4-powerpc
 | 0 upgraded, 1 newly installed, 0 to remove and 513 not upgraded.
 | Need to get 0B/16.6MB of archives.
 | After unpacking 51.4MB of additional disk space will be used.
 | Preconfiguring packages ...
 | (Reading database ... 174438 files and directories currently installed.)
 | Unpacking linux-image-2.6.18-4-powerpc (from 
 .../linux-image-2.6.18-4-powerpc_2.6.18.dfsg.1-12_powerpc.deb) ...
 | Could not find mkinitramfs-kpkg mkinitrd.yaird. at 
 /var/lib/dpkg/tmp.ci/preinst line 238, STDIN line 9.
 | Ok, Aborting

Try apt-get install initramfs-tools. I wonder how you where able to
install linux-image-2.6.18-4-powerpc without it automatically pulling in
either yaird or initramfs-tools. This is a RC bug in itself if it is
confirmed. But :

The dependencies are : 

  Depends: module-init-tools (= 0.9.13), coreutils (= 5.96), mkvmlinuz
  (= 24), initramfs-tools (= 0.55) | yaird (= 0.0.12-8) |
  linux-initramfs-tool

 | dpkg: error processing 
 /var/cache/apt/archives/linux-image-2.6.18-4-powerpc_2.6.18.dfsg.1-12_powerpc.deb
  (--unpack):
 |  subprocess pre-installation script returned error exit status 1
 | Examining /etc/kernel/postrm.d .
 | run-parts: executing /etc/kernel/postrm.d/mkvmlinuz
 | Errors were encountered while processing:
 |  
 /var/cache/apt/archives/linux-image-2.6.18-4-powerpc_2.6.18.dfsg.1-12_powerpc.deb
 | E: Sub-process /usr/bin/dpkg returned an error code (1)
 | think-different:/home/william#
 `
 
 Nevertheless, i extract the config file from it, and is being compiled
 it now. This config seems including way too much staffs, the compilation
 takes more than *two hours*... 
 
 And, when rebooting the new kernel fails at: 
 
 ,
 | VFS: Cannot open root device hdc4 on unknown block (0, 0)
 | Please append a correct root= boot option
 | Kernel panic, not syncing: 
 | VFS: unable to moiunt root fs on unknown block (0, 0)
 `
 
 Above these lines, i notice that the new kernel has tagged ATA hard disk
 as /dev/hda. So this seems to be the problem.
 
 While, my current partition table is: 
 
 ,[ sudo fdisk -l ]
 | /dev/hdc
 | #type name length   base ( 
 size )  system
 | /dev/hdc1 Apple_partition_map Apple63 @ 1( 
 31.5k)  Partition map
 | /dev/hdc2 Apple_Bootstrap bootstrap  1600 @ 64   
 (800.0k)  NewWorld bootblock
 | /dev/hdc3 Apple_UNIX_SVR2 swap 260544 @ 1664 
 (127.2M)  Linux swap
 | /dev/hdc4 Apple_UNIX_SVR2 root   12311320 @ 262208   (  
 5.9G)  Linux native
 | /dev/hdc5   Apple_HFS macimage6291456 @ 12573528 (  
 3.0G)  HFS
 | /dev/hdc6   Apple_HFS macosx  716 @ 18864984 (  
 3.8G)  HFS
 | /dev/hdc7   Apple_HFS source 31851320 @ 26753800 ( 
 15.2G)  HFS
 | 
 | Block size=512, Number of Blocks=58605120
 | DeviceType=0x0, DeviceId=0x0
 | 
 `

This still seems like a mac. Please try : 

  dpkg-reconfigure mkvmlinuz, and chose yaboot.

 It's a bit weird that the ATA hard disk has been tagged as /dev/hdc
 since the first time installation of debian by cdrom. But later i always
 upgrade linux kernel by hand, and without much problem up to 2.6.15.
 
 To solve the kernel panic, i tried appending root= option on yaboot, 
 
 ,
 | vmlinux root=/dev/hda4
 `
 
 But it still causes similar error. :(
 
  boot the newly built kernel, it dies even before loading the kernel:
 
  Can't read Elf e_ident/e_type/e_machine info
 
  This is a yaboot warning, saying it has trouble finding the elf header
  from the kernel. My first guess is that either your kernel is not an elf
  file, and something went horribly wrong, or more probably your
  yaboot.conf points at the wrong file, and not at the actual kernel.
  Maybe you have 

unable to boot linux-2.6.18.4

2007-04-26 Thread William Xu
Hi, 

In order to get airport extreme working, i just built linux-2.6.18.4.
Its .config is mainly based on 2.6.15.5(current kernel). When i try to
boot the newly built kernel, it dies even before loading the kernel:

Can't read Elf e_ident/e_type/e_machine info

Any thoughts on this? 

Attachment is .config file. 

-- 
William

NATHAN ... your PARENTS were in a CARCRASH!!  They're VOIDED -- They
COLLAPSED They had no CHAINSAWS ... They had no MONEY MACHINES ... They
did PILLS in SKIMPY GRASS SKIRTS ... Nathan, I EMULATED them ... but
they were OFF-KEY ...
#
# Automatically generated make config: don't edit
# Linux kernel version: 2.6.18.4
# Thu Apr 26 22:18:10 2007
#
# CONFIG_PPC64 is not set
CONFIG_PPC32=y
CONFIG_PPC_MERGE=y
CONFIG_MMU=y
CONFIG_GENERIC_HARDIRQS=y
CONFIG_IRQ_PER_CPU=y
CONFIG_RWSEM_XCHGADD_ALGORITHM=y
CONFIG_GENERIC_HWEIGHT=y
CONFIG_GENERIC_CALIBRATE_DELAY=y
CONFIG_GENERIC_FIND_NEXT_BIT=y
CONFIG_PPC=y
CONFIG_EARLY_PRINTK=y
CONFIG_GENERIC_NVRAM=y
CONFIG_SCHED_NO_NO_OMIT_FRAME_POINTER=y
CONFIG_ARCH_MAY_HAVE_PC_FDC=y
CONFIG_PPC_OF=y
CONFIG_PPC_UDBG_16550=y
# CONFIG_GENERIC_TBSYNC is not set
CONFIG_AUDIT_ARCH=y
# CONFIG_DEFAULT_UIMAGE is not set

#
# Processor support
#
CONFIG_CLASSIC32=y
# CONFIG_PPC_52xx is not set
# CONFIG_PPC_82xx is not set
# CONFIG_PPC_83xx is not set
# CONFIG_PPC_85xx is not set
# CONFIG_PPC_86xx is not set
# CONFIG_40x is not set
# CONFIG_44x is not set
# CONFIG_8xx is not set
# CONFIG_E200 is not set
CONFIG_6xx=y
CONFIG_PPC_FPU=y
CONFIG_ALTIVEC=y
CONFIG_PPC_STD_MMU=y
CONFIG_PPC_STD_MMU_32=y
# CONFIG_SMP is not set
CONFIG_DEFCONFIG_LIST=/lib/modules/$UNAME_RELEASE/.config

#
# Code maturity level options
#
CONFIG_EXPERIMENTAL=y
CONFIG_BROKEN_ON_SMP=y
CONFIG_INIT_ENV_ARG_LIMIT=32

#
# General setup
#
CONFIG_LOCALVERSION=
CONFIG_LOCALVERSION_AUTO=y
CONFIG_SWAP=y
CONFIG_SYSVIPC=y
# CONFIG_POSIX_MQUEUE is not set
# CONFIG_BSD_PROCESS_ACCT is not set
# CONFIG_TASKSTATS is not set
# CONFIG_AUDIT is not set
# CONFIG_IKCONFIG is not set
# CONFIG_RELAY is not set
CONFIG_INITRAMFS_SOURCE=
CONFIG_CC_OPTIMIZE_FOR_SIZE=y
# CONFIG_EMBEDDED is not set
CONFIG_SYSCTL=y
CONFIG_KALLSYMS=y
# CONFIG_KALLSYMS_ALL is not set
# CONFIG_KALLSYMS_EXTRA_PASS is not set
CONFIG_HOTPLUG=y
CONFIG_PRINTK=y
CONFIG_BUG=y
CONFIG_ELF_CORE=y
CONFIG_BASE_FULL=y
CONFIG_FUTEX=y
CONFIG_EPOLL=y
CONFIG_SHMEM=y
CONFIG_SLAB=y
CONFIG_VM_EVENT_COUNTERS=y
CONFIG_RT_MUTEXES=y
# CONFIG_TINY_SHMEM is not set
CONFIG_BASE_SMALL=0
# CONFIG_SLOB is not set

#
# Loadable module support
#
CONFIG_MODULES=y
CONFIG_MODULE_UNLOAD=y
CONFIG_MODULE_FORCE_UNLOAD=y
CONFIG_MODVERSIONS=y
# CONFIG_MODULE_SRCVERSION_ALL is not set
CONFIG_KMOD=y

#
# Block layer
#
# CONFIG_LBD is not set
# CONFIG_BLK_DEV_IO_TRACE is not set
# CONFIG_LSF is not set

#
# IO Schedulers
#
CONFIG_IOSCHED_NOOP=y
CONFIG_IOSCHED_AS=y
CONFIG_IOSCHED_DEADLINE=y
CONFIG_IOSCHED_CFQ=y
CONFIG_DEFAULT_AS=y
# CONFIG_DEFAULT_DEADLINE is not set
# CONFIG_DEFAULT_CFQ is not set
# CONFIG_DEFAULT_NOOP is not set
CONFIG_DEFAULT_IOSCHED=anticipatory

#
# Platform support
#
CONFIG_PPC_MULTIPLATFORM=y
# CONFIG_PPC_ISERIES is not set
# CONFIG_EMBEDDED6xx is not set
# CONFIG_APUS is not set
CONFIG_PPC_CHRP=y
CONFIG_PPC_PMAC=y
# CONFIG_PPC_CELL is not set
# CONFIG_PPC_CELL_NATIVE is not set
# CONFIG_UDBG_RTAS_CONSOLE is not set
CONFIG_PPC_RTAS=y
# CONFIG_RTAS_ERROR_LOGGING is not set
CONFIG_RTAS_PROC=y
# CONFIG_MMIO_NVRAM is not set
CONFIG_PPC_MPC106=y
# CONFIG_PPC_970_NAP is not set
# CONFIG_CPU_FREQ is not set
# CONFIG_PPC601_SYNC_FIX is not set
# CONFIG_TAU is not set
# CONFIG_WANT_EARLY_SERIAL is not set
CONFIG_MPIC=y

#
# Kernel options
#
# CONFIG_HIGHMEM is not set
# CONFIG_HZ_100 is not set
CONFIG_HZ_250=y
# CONFIG_HZ_1000 is not set
CONFIG_HZ=250
# CONFIG_PREEMPT_NONE is not set
CONFIG_PREEMPT_VOLUNTARY=y
# CONFIG_PREEMPT is not set
CONFIG_BINFMT_ELF=y
CONFIG_BINFMT_MISC=y
CONFIG_ARCH_ENABLE_MEMORY_HOTPLUG=y
# CONFIG_KEXEC is not set
CONFIG_ARCH_FLATMEM_ENABLE=y
CONFIG_SELECT_MEMORY_MODEL=y
CONFIG_FLATMEM_MANUAL=y
# CONFIG_DISCONTIGMEM_MANUAL is not set
# CONFIG_SPARSEMEM_MANUAL is not set
CONFIG_FLATMEM=y
CONFIG_FLAT_NODE_MEM_MAP=y
# CONFIG_SPARSEMEM_STATIC is not set
CONFIG_SPLIT_PTLOCK_CPUS=4
# CONFIG_RESOURCES_64BIT is not set
CONFIG_PROC_DEVICETREE=y
# CONFIG_CMDLINE_BOOL is not set
CONFIG_PM=y
CONFIG_PM_LEGACY=y
# CONFIG_PM_DEBUG is not set
CONFIG_SOFTWARE_SUSPEND=y
CONFIG_PM_STD_PARTITION=
CONFIG_SECCOMP=y
CONFIG_ISA_DMA_API=y

#
# Bus options
#
# CONFIG_ISA is not set
CONFIG_GENERIC_ISA_DMA=y
# CONFIG_MPIC_WEIRD is not set
CONFIG_PPC_I8259=y
CONFIG_PPC_INDIRECT_PCI=y
CONFIG_PCI=y
CONFIG_PCI_DOMAINS=y
# CONFIG_PCIEPORTBUS is not set
# CONFIG_PCI_DEBUG is not set

#
# PCCARD (PCMCIA/CardBus) support
#
CONFIG_PCCARD=m
# CONFIG_PCMCIA_DEBUG is not set
CONFIG_PCMCIA=m
CONFIG_PCMCIA_LOAD_CIS=y
CONFIG_PCMCIA_IOCTL=y
CONFIG_CARDBUS=y

#
# PC-card bridges
#
# CONFIG_YENTA is not set
# CONFIG_PD6729 is not set
# CONFIG_I82092 is not set

#
# PCI Hotplug Support
#
# 

Re: unable to boot linux-2.6.18.4

2007-04-26 Thread Sven Luther
On Fri, Apr 27, 2007 at 01:18:01PM +0800, William Xu wrote:
 Hi, 
 
 In order to get airport extreme working, i just built linux-2.6.18.4.
 Its .config is mainly based on 2.6.15.5(current kernel). When i try to

The current debian kernels are etch's 2.6.18 and sid's 2.6.20. If i
where you, i would install the etch 2.6.18 kernel, and if you really
need something custom use the etch source package to build your own
kernel, starting from the /boot/config-2.6.18... file.

 boot the newly built kernel, it dies even before loading the kernel:
 
 Can't read Elf e_ident/e_type/e_machine info

This is a yaboot warning, saying it has trouble finding the elf header
from the kernel. My first guess is that either your kernel is not an elf
file, and something went horribly wrong, or more probably your
yaboot.conf points at the wrong file, and not at the actual kernel.
Maybe you have a dangling symlink or something ? 

Friendly,

Sven Luther


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: unable to boot linux-2.6.18.4

2007-04-26 Thread Charles Plessy
Le Fri, Apr 27, 2007 at 01:18:01PM +0800, William Xu a écrit :
 Hi, 
 
 In order to get airport extreme working, i just built linux-2.6.18.4.
 Its .config is mainly based on 2.6.15.5(current kernel).

Hi,

Maybe you can try to use the .config from the debian package for Etch ?

Have a nice day,

-- 
Charles


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]