Re: Known working 2.6 kernel config for m68k Mac

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Finn,

Yea, I realize that with the 2.4 kernel. I was merely testing it to see if it worked.  

Now I got some interesting news.  I took Stephen Marenka's config for a 2.6.25.2 kernel and chopped out just enough to squeeze the kernel on a single floppy.  And guess what? It actually booted!  Well, sort of.  The kernel messages started scrolling like normal then the whole machine spontaneously shut off.  I seen this happen once before when I had the fpu emulation option turned on.  So I turned it off and tried again.  This time it didn't boot.  It stopped at the same place as before. 

I'll hope to be able to give more debugging information soon.  I'll be setting up a serial cable shortly.  By the way, do you know what the settings I need to set on the other mac to read the powerbook's serial port?

Thanks,
J Silverman


--- On Fri, 8/15/08, Finn Thain <fthain@xxxxxxxxxxxxxxxxxxx> wrote:

From: Finn Thain <fthain@xxxxxxxxxxxxxxxxxxx>
Subject: Re: Known working 2.6 kernel config for m68k Mac
To: "J Silverman" <g1powermac@xxxxxxxxx>
Date: Friday, August 15, 2008, 12:16 PM
On Fri, 15 Aug 2008, J Silverman wrote:

Hi All,

Alright, I decided to try something different.  I took
a stock current 
2.4 kernel source and the 2.4.1 config from here: 

http://sourceforge.net/project/showfiles.php?group_id=11666&package_id=13753

Not sure whether you realise that the 2.4 kernel is
probably not going to 
get fixed? There are too many mac-related fixes in the 2.6
kernel to 
backport them all, and even if someone did that work, there
are no distros 
using 2.4.

I didn't change anything in the config, so it made
a fairly large 
kernel.  I decided just to stick the kernel on the
floppy minus the 
ramdisk just to see if it would get passed the point I
was having issues 
with knowing full well it won't actually boot if
it did work.  And, 
amazingly it worked!  Well, it panicked on a bus
error, but it did 
actually load and attempted to boot.  So now I just
need to figure out 
what I'm removing that is causing it not to boot.
. .

Well, you've shown that this is a regression, which is
helpful. We need to 
get some diagnostics from a recent 2.6 kernel and narrow
down the fault.

Do you have any serial cables?

Finn

PS. You don't really need to install linux to boot
large kernels. I 
generally boot Linux using Penguin, which runs under Mac OS
(much like 
BootX). My PB 190cs lacks ethernet so I downloaded mine
over the serial 
port, from Linux (picocom) to Mac OS (ZTerm). Serial is
slow, but it has 
the advantage of PPP if you need to download from the
internet. Floppies 
might be easier. In anycase, we don't really need a
large kernel to debug 
this. But we do need the serial port to capture the console
messages.


Thanks,
J Silverman


--- On Fri, 8/15/08, J Silverman
<g1powermac@xxxxxxxxx> wrote:

From: J Silverman <g1powermac@xxxxxxxxx>
Subject: Re: Known working 2.6 kernel config for
m68k Mac
To: "Finn Thain"
<fthain@xxxxxxxxxxxxxxxxxxx>
Cc: linux-m68k@xxxxxxxxxxxxxxx
Date: Friday, August 15, 2008, 9:21 AM
Hi Finn,

Nice!  I'm going to have to put a real linux
install on
this machine so I can test full size kernels.  I
just tried
compiling a 2.4 linux kernel and tried it on the
floppy, and
again, it hung at the same point as the 2.6
kernel.  I
wonder what's going on. . .

Thanks,
J Silverman


--- On Fri, 8/15/08, Finn Thain
<fthain@xxxxxxxxxxxxxxxxxxx> wrote:

From: Finn Thain
<fthain@xxxxxxxxxxxxxxxxxxx>
Subject: Re: Known working 2.6 kernel config
for m68k
Mac
To: "J Silverman"
<g1powermac@xxxxxxxxx>
Cc: linux-m68k@xxxxxxxxxxxxxxx
Date: Friday, August 15, 2008, 9:11 AM
On Fri, 15 Aug 2008, J Silverman wrote:

Hi Finn,

Yes, actually I have tried an older
prebuilt
kernel
that Laurent made.  
It was a 2.2.x series kernel, and it
did at least
get
passed the point 
that my 2.6.x kernel did before kernel
panicking
later
on.

I got curious and dug out my PowerBook 190cs
and tried
Debians's 2.6.25-2 
kernel. I'm pretty sure that I
downloaded it here,



http://people.debian.org/~smarenka/d-i/m68k/images/daily/kernels/vmlinuz-2.6.25-2-mac

There's also


http://packages.debian.org/sid/linux-image-2.6.26-1-mac
but I've not tried it yet. You can get
the .config
from
the .deb there if you 
need it.

There is no PMU ADB driver configured into
Debian
kernels,
so the 
PowerBook keyboard didn't work (which is
not to
say
that the keyboard will 
work if you do configure in the PMU ADB
driver...)

There's a big warning from the IDE
driver, though
it
still read the 
partition map from the IDE disk. And
there's the
bus
error from the 
mac_scsi driver:

[    7.600000] scsi: waiting for bus probes
to
complete ...
[    7.740000] blk_queue_max_hw_segments:
set to
minimum 1
[    7.990000] blk_queue_max_hw_segments:
set to
minimum 1
[    8.250000] blk_queue_max_hw_segments:
set to
minimum 1
[    8.500000] blk_queue_max_hw_segments:
set to
minimum 1
[    8.750000] blk_queue_max_hw_segments:
set to
minimum 1
[    9.000000] blk_queue_max_hw_segments:
set to
minimum 1
[    9.030000] scsi 0:0:6:0: Direct-Access  
  QUANTUM

LPS540S          590S PQ: 0 ANSI: 2 CCS
[    9.040000] blk_queue_max_hw_segments:
set to
minimum 1
[    9.090000] sd 0:0:6:0: [sda] 1057616
512-byte
hardware
sectors (541 MB)
[    9.120000] sd 0:0:6:0: [sda] Write
Protect is off
[    9.130000] sd 0:0:6:0: [sda] Mode Sense:
93 00 00
08
[    9.140000] Bus error in macscsi_pread
[    9.140000] sd 0:0:6:0: switching to slow
handshake

And it hangs there. This is an old bug. But
I did get
macscsi to work -- 
it even booted to a login prompt -- by
powering on the
SCSI
disk after the 
kernel had started executing. So the bug is
probably
nothing too serious. 
The log from the most successful attempt
follows.

I don't know if these results are at all
applicable to
the PB 520, but I'm 
curious to know what it does. It would be
helpful to
log
the serial port. 
(A mac printer cable is fine if you are
logging on
another
mac. I use 
ZTerm and kernel arguments like those
below.)

Finn


[    0.000000] Linux version 2.6.25-2-mac
(Debian
2.6.25-2)
(cts@xxxxxxxxxx) (gcc version 3.3.6) #1 Sun
May 4
20:59:55
CEST 2008
[    0.000000] console [debug0] enabled
[    0.000000] Detected Macintosh model: 85 
[    0.000000]  Penguin bootinfo data:
[    0.000000]  Video: addr 0x60000000 row
0x280 depth
8
dimensions 640 x 480
[    0.000000]  Videological 0xf0000000
phys.
0x60000000,
SCC at 0x50f04000 
[    0.000000]  Boottime: 0x83dab912
GMTBias: 0x0 
[    0.000000]  Machine ID: 85 CPUid: 0x2
memory size:
0x10

[    0.000000] VIA1 at 50f00000 is a 6522 or
clone
[    0.000000] VIA2 at 50f02000 is a 6522 or
clone
[    0.000000] Baboon detected at 50f1a000
[    0.000000] Apple Macintosh PowerBook 190
[    0.000000] On node 0 totalpages: 4096
[    0.000000]   DMA zone: 36 pages used for
memmap
[    0.000000]   DMA zone: 0 pages reserved
[    0.000000]   DMA zone: 4060 pages, LIFO
batch:0
[    0.000000]   Normal zone: 0 pages used
for memmap
[    0.000000]   Movable zone: 0 pages used
for memmap
[    0.010000] Built 1 zonelists in Zone
order,
mobility
grouping off.  Total pages: 4060
[    0.010000] Kernel command line: ro
root=/dev/sda4 
console=tty0 console=ttyS0,9600n8 debug
debug=ser
[    0.010000] Killing onboard sonic...
Done.
[    0.010000] PID hash table entries: 64
(order: 6,
256
bytes)
[    0.010000] Console: colour dummy device
80x25
[    0.010000] console [tty0] enabled
[    0.000000] Linux version 2.6.25-2-mac
(Debian
2.6.25-2)
(cts@xxxxxxxxxx) (gcc version 3.3.6) #1 Sun
May 4
20:59:55
CEST 2008
[    0.000000] console [debug0] enabled
[    0.000000] Detected Macintosh model: 85 
[    0.000000]  Penguin bootinfo data:
[    0.000000]  Video: addr 0x60000000 row
0x280 depth
8
dimensions 640 x 480
[    0.000000]  Videological 0xf0000000
phys.
0x60000000,
SCC at 0x50f04000 
[    0.000000]  Boottime: 0x83dab912
GMTBias: 0x0 
[    0.000000]  Machine ID: 85 CPUid: 0x2
memory size:
0x10

[    0.000000] VIA1 at 50f00000 is a 6522 or
clone
[    0.000000] VIA2 at 50f02000 is a 6522 or
clone
[    0.000000] Baboon detected at 50f1a000
[    0.000000] Apple Macintosh PowerBook 190
[    0.000000] On node 0 totalpages: 4096
[    0.000000]   DMA zone: 36 pages used for
memmap
[    0.000000]   DMA zone: 0 pages reserved
[    0.000000]   DMA zone: 4060 pages, LIFO
batch:0
[    0.000000]   Normal zone: 0 pages used
for memmap
[    0.000000]   Movable zone: 0 pages used
for memmap
[    0.010000] Built 1 zonelists in Zone
order,
mobility
grouping off.  Total pages: 4060
[    0.010000] Kernel command line: ro
root=/dev/sda4 
console=tty0 console=ttyS0,9600n8 debug
debug=ser
[    0.010000] Killing onboard sonic...
Done.
[    0.010000] PID hash table entries: 64
(order: 6,
256
bytes)
[    0.010000] Console: colour dummy device
80x25
[    0.010000] console [tty0] enabled
[    0.030000] Dentry cache hash table
entries: 2048
(order: 1, 8192 bytes)
[    0.050000] Inode-cache hash table
entries: 1024
(order:
0, 4096 bytes)
[    0.090000] Memory: 13432k/13432k
available (1732k
kernel code, 1092k data, 128k init)
[    0.110000] Calibrating delay loop...
21.91
BogoMIPS
(lpj=109568)
[    0.320000] Security Framework
initialized
[    0.330000] Capability LSM initialized
[    0.340000] Mount-cache hash table
entries: 512
[    0.360000] Initializing cgroup subsys ns
[    0.370000] Initializing cgroup subsys
cpuacct
[    0.400000] net_namespace: 536 bytes
[    0.430000] NET: Registered protocol
family 16
[    0.530000] NuBus: Scanning NuBus slots.
[    0.560000] SCSI subsystem initialized
[    0.650000] NET: Registered protocol
family 2
[    0.760000] IP route cache hash table
entries: 1024
(order: 0, 4096 bytes)
[    0.790000] TCP established hash table
entries: 512
(order: 0, 4096 bytes)
[    0.800000] TCP bind hash table entries:
512
(order: -1,
2048 bytes)
[    0.810000] TCP: Hash tables configured
(established 512
bind 512)
[    0.820000] TCP reno registered
[    0.900000] VFS: Disk quotas dquot_6.5.1
[    0.910000] Dquot-cache hash table
entries: 1024
(order
0, 4096 bytes)
[    0.940000] io scheduler noop registered
[    0.950000] io scheduler anticipatory
registered
[    0.960000] io scheduler deadline
registered
[    0.970000] io scheduler cfq registered
(default)
[    0.990000] macfb: framebuffer at
0x60000000,
mapped to
0xd0000000, size 300k
[    1.000000] macfb: mode is 640x480x8,
linelength=640
[    1.010000] macfb: scrolling: redraw
[    1.040000] fbcon_startup: No VBL
detected, using
timer
based cursor.
[    1.040000] free_irq: Removing probably
wrong IRQ 9
[    1.230000] Console: switching to colour
frame
buffer
device 80x30
[    1.580000] fb0: Macintosh CSC built-in
frame
buffer
device
[    1.930000] brd: module loaded
[    1.960000] input: Macintosh mouse button
emulation
as
/class/input/input0
[    1.970000] Warning: no ADB interface
detected
[    1.980000] Uniform Multi-Platform E-IDE
driver
[    1.990000] ide: Assuming 50MHz system
bus speed
for PIO
modes; override with idebus=xx
[    2.010000] ide: Macintosh Powerbook
Baboon IDE
controller
[    2.020000] Probing IDE interface ide0...
[    3.720000] hda: IBM-DBOA-2540, ATA DISK
drive
[    4.460000] ------------[ cut here
]------------
[    4.460000] WARNING: at
arch/m68k/kernel/ints.c:302
enable_irq+0x5c/0x7e()
[    4.460000] Modules linked in:
[    4.460000] Call Trace:
[<0001ecee>]
warn_on_slowpath+0x44/0x56
[    4.460000]  [<00003aba>]
enable_irq+0x5c/0x7e
[    4.460000]  [<00002700>]
show_regs+0x9e/0xa8
[    4.460000]  [<000e908e>]
idr_get_empty_slot+0x0/0xf8
[    4.460000]  [<000e90f6>]
idr_get_empty_slot+0x68/0xf8
[    4.460000]  [<000e96a8>]
ida_get_new_above+0x0/0x1de
[    4.460000]  [<000e96e4>]
ida_get_new_above+0x3c/0x1de
[    4.460000]  [<000081a4>]
mac_gettimeoffset+0x2c/0x60
[    4.460000]  [<001afc1e>]
mutex_lock+0x0/0x24
[    4.460000]  [<0006f830>]
ifind+0x16/0x64
[    4.460000]  [<0009982c>]
sysfs_ilookup_test+0x0/0x18
[    4.460000]  [<0006f904>]
ilookup5_nowait+0x2c/0x36
[    4.460000]  [<0009982c>]
sysfs_ilookup_test+0x0/0x18
[    4.460000]  [<00099ace>]
sysfs_addrm_finish+0x16/0xa0
[    4.460000]  [<000ea716>]
kobject_uevent_env+0x364/0x398
[    4.460000]  [<00003aba>]
enable_irq+0x5c/0x7e
[    4.460000]  [<00008c20>]
baboon_irq_enable+0xa/0xe
[    4.460000]  [<000075d0>]
mac_enable_irq+0x80/0x86
[    4.460000]  [<00002000>]
_start+0x0/0x8
[    4.460000]  [<00003942>]
setup_irq+0x7e/0xaa
[    4.460000]  [<000039a0>]
request_irq+0x32/0x3e
[    4.460000]  [<001260d4>]
init_irq+0x11e/0x2d4
[    4.460000]  [<00122a28>]
ide_intr+0x0/0x11c
[    4.460000]  [<0012657c>]
hwif_init+0x80/0x100
[    4.460000]  [<00126a28>]
ide_device_add_all+0x1e6/0x274
[    4.460000]  [<0001f3b4>]
printk+0x0/0x18
[    4.460000]  [<00126aec>]
ide_device_add+0x36/0x42
[    4.460000]  [<0028e80e>]
macide_init+0xb6/0xea
[    4.460000]  [<000100ff>]
sscale+0x1a7/0x428
[    4.460000]  [<00039e22>]
__print_symbol+0x0/0x2e
[    4.460000]  [<0027df48>]
do_initcalls+0x38/0x1a0
[    4.460000]  [<00001000>]
_stext+0x0/0x1000
[    4.460000]  [<0000270a>]
kernel_thread+0x0/0x50
[    4.460000]  [<00002000>]
_start+0x0/0x8
[    4.460000]  [<000ea232>]
kset_register+0x2c/0x34
[    4.460000]  [<0011334e>]
sysdev_class_register+0x66/0x6e
[    4.460000]  [<0000270a>]
kernel_thread+0x0/0x50
[    4.460000]  [<0028b690>]
cpu_dev_init+0xc/0x10
[    4.460000]  [<0028b6e0>]
driver_init+0x2a/0x2c
[    4.460000]  [<0027e0cc>]
do_basic_setup+0x1c/0x1e
[    4.460000]  [<0027e10a>]
kernel_init+0x18/0x54
[    4.460000]  [<00002746>]
kernel_thread+0x3c/0x50
[    4.460000] 
[    4.460000] ---[ end trace
00bd93d668c9f0ec ]---
[    4.470000] ide0 at 0x50f1a000 on irq 65
[    4.500000] hda: max request size: 128KiB
[    4.510000] hda: 1055376 sectors (540 MB)
w/64KiB
Cache,
CHS=1047/16/63
[    4.540000] hda: cache flushes not
supported
[    4.550000]  hda: [mac] hda1 hda2 hda3
hda4 hda5
hda6
hda7 hda8
[    4.700000] Macintosh SCSI: resetting the
SCSI
bus...<6> done
[    7.230000] scsi0: generic 5380 at port
50F10000
irq<6> 19<6> options
CAN_QUEUE=16
CMD_PER_LUN=2
release=2<6>
[    7.260000] scsi0: generic options
AUTOSENSE PSEUDO
DMA
USLEEP, USLEEP_POLL=20 USLEEP_SLEEP=2
generic
release=7
[    7.310000] scsi0 : 
[    7.340000] blk_queue_max_hw_segments:
set to
minimum 1
[    7.370000] Driver 'sd' needs
updating -
please
use bus_type methods
[    7.430000] mice: PS/2 mouse device
common for all
mice
[    7.480000] TCP cubic registered
[    7.490000] NET: Registered protocol
family 1
[    7.510000] NET: Registered protocol
family 17
[    7.520000] NET: Registered protocol
family 15
[    7.540000] registered taskstats version
1
[    7.560000] scsi: waiting for bus probes
to
complete ...
[    7.710000] blk_queue_max_hw_segments:
set to
minimum 1
[    7.960000] blk_queue_max_hw_segments:
set to
minimum 1
[    8.220000] blk_queue_max_hw_segments:
set to
minimum 1
[    8.470000] blk_queue_max_hw_segments:
set to
minimum 1
[    8.720000] blk_queue_max_hw_segments:
set to
minimum 1
[    8.970000] blk_queue_max_hw_segments:
set to
minimum 1
[    9.000000] scsi 0:0:6:0: Direct-Access  
  QUANTUM

LPS540S 590S PQ: 0 ANSI: 2 CCS
[    9.010000] blk_queue_max_hw_segments:
set to
minimum 1
[    9.060000] Bus error in macscsi_pread
[    9.060000] sd 0:0:6:0: switching to slow
handshake
[    9.070000] sd 0:0:6:0: [sda] Sector size
0
reported,
assuming 512.
[    9.080000] sd 0:0:6:0: [sda] 1057616
512-byte
hardware
sectors (541 MB)
[    9.100000] sd 0:0:6:0: [sda] Write
Protect is off
[    9.110000] sd 0:0:6:0: [sda] Mode Sense:
93 00 00
08
[    9.130000] sd 0:0:6:0: [sda] Write
cache: enabled,
read
cache: enabled, doesn't support DPO or
FUA
[    9.150000] sd 0:0:6:0: [sda] 1057616
512-byte
hardware
sectors (541 MB)
[    9.170000] sd 0:0:6:0: [sda] Write
Protect is off
[    9.180000] sd 0:0:6:0: [sda] Mode Sense:
93 00 00
08
[    9.200000] sd 0:0:6:0: [sda] Write
cache: enabled,
read
cache: enabled, doesn't support DPO or
FUA
[    9.210000]  sda: [mac] sda1 sda2 sda3
sda4 sda5
sda6
[    9.330000]  sda: p6 exceeds device
capacity
[    9.370000] sd 0:0:6:0: [sda] Attached
SCSI disk
[    9.530000] VFS: Mounted root (ext2
filesystem)
readonly.
[   34.860000] EXT2-fs warning: mounting
unchecked fs,
running e2fsck is recommended


      
--
To unsubscribe from this list: send the line
"unsubscribe linux-m68k" in
the body of a message to
majordomo@xxxxxxxxxxxxxxx
More majordomo info at 
http://vger.kernel.org/majordomo-info.html


      
--
To unsubscribe from this list: send the line
"unsubscribe linux-m68k" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at 
http://vger.kernel.org/majordomo-info.html



      
--
To unsubscribe from this list: send the line "unsubscribe linux-m68k" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Video for Linux]     [Yosemite News]     [Linux S/390]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux