Problems compiling ppc kernels.
Neil Russel Wrote:
Quoted 2 lines · Mike Panetta
I have been having some real weird problems with compiling kernels for my iMAC. ....
I had basically the same problems compiling a kernel for iMac, and fixed them by turning off config for the offending items. I did not get any of those kernels to boot on the iMac. I ended up using 2.2.6 (the one shipped on the LinuxPPC CD). The 226 kernel works, except for the keyboard/mouse ("version 1.16 USB, only understand 1.0 problem"). I ended up hacking a small change into the ethernet code to snarf specially formatted UDP packets and shove them into the console queue. This works fine, but is rather ugly.
Does anyone else have any insight into this? Can anyone point me to a kernel binary that works on the iMac? How about the config file for the said kernel?
I have a rev.D iMac, purchased about a month ago (just before the new iMac came out).
Thanks,
Neil.
-- end of forwarded message --
I have 2.2.13 working fine on my Rev C iMac (except for the bloody keyboard rollover problem).
Here is the .config.....
#
# Automatically generated by make menuconfig: don't edit #
#
# Platform support
#CONFIG_PPC=y
CONFIG_6xx=y
# CONFIG_PPC64 is not set
# CONFIG_8xx is not setCONFIG_PMAC=y
# CONFIG_PREP is not set
# CONFIG_CHRP is not set
# CONFIG_ALL_PPC is not set
# CONFIG_APUS is not set
# CONFIG_MBX is not set
# CONFIG_SMP is not setCONFIG_MACH_SPECIFIC=y
CONFIG_6xx=y
#
# General setup
#CONFIG_EXPERIMENTAL=yCONFIG_MODULES=y
# CONFIG_MODVERSIONS is not setCONFIG_KMOD=yCONFIG_PCI=y
# CONFIG_PCI_QUIRKS is not setCONFIG_PCI_OLD_PROC=yCONFIG_NET=yCONFIG_SYSCTL=yCONFIG_SYSVIPC=y
# CONFIG_BSD_PROCESS_ACCT is not setCONFIG_BINFMT_ELF=yCONFIG_KERNEL_ELF=yCONFIG_BINFMT_MISC=m
# CONFIG_BINFMT_JAVA is not setCONFIG_PARPORT=m
# CONFIG_PARPORT_PC is not set
# CONFIG_VGA_CONSOLE is not setCONFIG_FB=yCONFIG_FB_COMPAT_XPMAC=y
# CONFIG_PMAC_PBOOK is not setCONFIG_MAC_KEYBOARD=y
# CONFIG_MAC_FLOPPY is not setCONFIG_MAC_SERIAL=y
# CONFIG_SERIAL_CONSOLE is not setCONFIG_ADBMOUSE=yCONFIG_PROC_DEVICETREE=y
# CONFIG_TOTALMP is not setCONFIG_BOOTX_TEXT=y
# CONFIG_MOTOROLA_HOTSWAP is not set
#
# Plug and Play support
#
# CONFIG_PNP is not set
#
# Block devices
#
# CONFIG_BLK_DEV_FD is not setCONFIG_BLK_DEV_IDE=y
# CONFIG_BLK_DEV_HD_IDE is not setCONFIG_BLK_DEV_IDEDISK=yCONFIG_BLK_DEV_IDECD=y
# CONFIG_BLK_DEV_IDETAPE is not setCONFIG_BLK_DEV_IDEFLOPPY=yCONFIG_BLK_DEV_IDESCSI=m
# CONFIG_BLK_DEV_CMD640 is not set
# CONFIG_BLK_DEV_RZ1000 is not setCONFIG_BLK_DEV_IDEPCI=yCONFIG_BLK_DEV_IDEDMA=y
# CONFIG_BLK_DEV_OFFBOARD is not setCONFIG_IDEDMA_AUTO=y
# CONFIG_BLK_DEV_OPTI621 is not set
# CONFIG_BLK_DEV_TRM290 is not set
# CONFIG_BLK_DEV_NS87415 is not set
# CONFIG_BLK_DEV_VIA82C586 is not set
# CONFIG_BLK_DEV_CMD646 is not set
# CONFIG_BLK_DEV_SL82C105 is not setCONFIG_BLK_DEV_IDE_PMAC=yCONFIG_BLK_DEV_IDEDMA_PMAC=yCONFIG_BLK_DEV_IDEDMA=yCONFIG_PMAC_IDEDMA_AUTO=y
# CONFIG_IDE_CHIPSETS is not setCONFIG_BLK_DEV_LOOP=y
# CONFIG_BLK_DEV_NBD is not set
# CONFIG_BLK_DEV_MD is not setCONFIG_BLK_DEV_RAM=yCONFIG_BLK_DEV_INITRD=y
# CONFIG_BLK_DEV_XD is not set
# CONFIG_BLK_DEV_DAC960 is not setCONFIG_PARIDE_PARPORT=m
# CONFIG_PARIDE is not set
# CONFIG_BLK_CPQ_DA is not set
# CONFIG_BLK_DEV_HD is not set
#
# Networking options
#CONFIG_PACKET=yCONFIG_NETLINK=y
# CONFIG_RTNETLINK is not set
# CONFIG_NETLINK_DEV is not set
# CONFIG_FIREWALL is not set
# CONFIG_FILTER is not setCONFIG_UNIX=yCONFIG_INET=yCONFIG_IP_MULTICAST=y
# CONFIG_IP_ADVANCED_ROUTER is not set
# CONFIG_IP_PNP is not set
# CONFIG_IP_ROUTER is not setCONFIG_NET_IPIP=yCONFIG_NET_IPGRE=mCONFIG_NET_IPGRE_BROADCAST=y
# CONFIG_IP_MROUTE is not setCONFIG_IP_ALIAS=y
# CONFIG_SYN_COOKIES is not setCONFIG_INET_RARP=yCONFIG_SKB_LARGE=y
# CONFIG_IPV6 is not set
# CONFIG_IPX is not setCONFIG_ATALK=m
# CONFIG_X25 is not set
# CONFIG_LAPB is not set
# CONFIG_BRIDGE is not set
# CONFIG_LLC is not set
# CONFIG_ECONET is not set
# CONFIG_WAN_ROUTER is not set
# CONFIG_NET_FASTROUTE is not set
# CONFIG_NET_HW_FLOWCONTROL is not set
# CONFIG_CPU_IS_SLOW is not set
#
# QoS and/or fair queueing
#
# CONFIG_NET_SCHED is not set
#
# SCSI support
#CONFIG_SCSI=yCONFIG_BLK_DEV_SD=yCONFIG_CHR_DEV_ST=yCONFIG_BLK_DEV_SR=yCONFIG_BLK_DEV_SR_VENDOR=yCONFIG_CHR_DEV_SG=m
# CONFIG_SCSI_MULTI_LUN is not setCONFIG_SCSI_CONSTANTS=y
# CONFIG_SCSI_LOGGING is not set
#
# SCSI low-level drivers
#
# CONFIG_SCSI_7000FASST is not set
# CONFIG_SCSI_ACARD is not set
# CONFIG_SCSI_AHA152X is not set
# CONFIG_SCSI_AHA1542 is not set
# CONFIG_SCSI_AHA1740 is not set
# CONFIG_SCSI_AIC7XXX is not set
# CONFIG_SCSI_IPS is not set
# CONFIG_SCSI_ADVANSYS is not set
# CONFIG_SCSI_IN2000 is not set
# CONFIG_SCSI_AM53C974 is not set
# CONFIG_SCSI_MEGARAID is not set
# CONFIG_SCSI_BUSLOGIC is not set
# CONFIG_SCSI_DTC3280 is not set
# CONFIG_SCSI_EATA is not set
# CONFIG_SCSI_EATA_DMA is not set
# CONFIG_SCSI_EATA_PIO is not set
# CONFIG_SCSI_FUTURE_DOMAIN is not set
# CONFIG_SCSI_GDTH is not set
# CONFIG_SCSI_GENERIC_NCR5380 is not set
# CONFIG_SCSI_INITIO is not set
# CONFIG_SCSI_INIA100 is not set
# CONFIG_SCSI_PPA is not set
# CONFIG_SCSI_IMM is not set
# CONFIG_SCSI_NCR53C406A is not set
# CONFIG_SCSI_SYM53C416 is not set
# CONFIG_SCSI_NCR53C7xx is not set
# CONFIG_SCSI_NCR53C8XX is not set
# CONFIG_SCSI_SYM53C8XX is not set
# CONFIG_SCSI_PAS16 is not set
# CONFIG_SCSI_PCI2000 is not set
# CONFIG_SCSI_PCI2220I is not set
# CONFIG_SCSI_PSI240I is not set
# CONFIG_SCSI_QLOGIC_FAS is not set
# CONFIG_SCSI_QLOGIC_ISP is not set
# CONFIG_SCSI_QLOGIC_FC is not set
# CONFIG_SCSI_SEAGATE is not set
# CONFIG_SCSI_DC390T is not set
# CONFIG_SCSI_T128 is not set
# CONFIG_SCSI_U14_34F is not set
# CONFIG_SCSI_ULTRASTOR is not set
# CONFIG_SCSI_DEBUG is not setCONFIG_SCSI_MESH=yCONFIG_SCSI_MESH_SYNC_RATE=5
# CONFIG_SCSI_MAC53C94 is not set
#
# Network device support
#CONFIG_NETDEVICES=y
#
# ARCnet devices
#
# CONFIG_ARCNET is not set
# CONFIG_DUMMY is not set
# CONFIG_EQUALIZER is not set
# CONFIG_ETHERTAP is not set
# CONFIG_NET_SB1000 is not set
#
# Ethernet (10 or 100Mbit)
#CONFIG_NET_ETHERNET=y
# CONFIG_MACE is not setCONFIG_BMAC=y
# CONFIG_NET_VENDOR_3COM is not set
# CONFIG_LANCE is not set
# CONFIG_NET_VENDOR_SMC is not set
# CONFIG_NET_VENDOR_RACAL is not set
# CONFIG_RTL8139 is not set
# CONFIG_SIS900 is not set
# CONFIG_YELLOWFIN is not set
# CONFIG_NET_ISA is not set
# CONFIG_NET_EISA is not set
# CONFIG_NET_POCKET is not set
# CONFIG_FDDI is not set
# CONFIG_HIPPI is not set
#
# Appletalk devices
#
# CONFIG_LTPC is not set
# CONFIG_COPS is not set
# CONFIG_IPDDP is not setCONFIG_PLIP=mCONFIG_PPP=y
# CONFIG_SLIP is not set
# CONFIG_NET_RADIO is not set
#
# Token ring devices
#
# CONFIG_TR is not set
# CONFIG_NET_FC is not set
# CONFIG_RCPCI is not set
# CONFIG_SHAPER is not set
#
# Wan interfaces
#
# CONFIG_HOSTESS_SV11 is not set
# CONFIG_COSA is not set
# CONFIG_SEALEVEL_4021 is not set
# CONFIG_DLCI is not set
# CONFIG_SBNI is not set
#
# Amateur Radio support
#CONFIG_HAMRADIO=yCONFIG_AX25=y
# CONFIG_AX25_DAMA_SLAVE is not setCONFIG_NETROM=m
# CONFIG_ROSE is not setCONFIG_MKISS=y
# CONFIG_6PACK is not set
# CONFIG_BPQETHER is not set
# CONFIG_DMASCC is not set
# CONFIG_SCC is not set
# CONFIG_BAYCOM_SER_FDX is not set
# CONFIG_BAYCOM_SER_HDX is not set
# CONFIG_BAYCOM_PAR is not set
# CONFIG_BAYCOM_EPP is not set
# CONFIG_SOUNDMODEM is not set
# CONFIG_YAM is not set
# CONFIG_HFMODEM is not set
#
# ISDN subsystem
#
# CONFIG_ISDN is not set
#
# Old CD-ROM drivers (not SCSI, not IDE)
#
# CONFIG_CD_NO_IDESCSI is not set
#
# Console drivers
#CONFIG_DUMMY_CONSOLE=y
# CONFIG_FB_PM2 is not setCONFIG_FB_OF=y
# CONFIG_FB_CONTROL is not set
# CONFIG_FB_PLATINUM is not set
# CONFIG_FB_VALKYRIE is not setCONFIG_FB_ATY=y
# CONFIG_FB_IMSTT is not set
# CONFIG_FB_CT65550 is not set
# CONFIG_FB_S3TRIO is not set
# CONFIG_FB_MATROX is not setCONFIG_FB_ATY=y
# CONFIG_FB_VIRTUAL is not set
# CONFIG_FBCON_ADVANCED is not setCONFIG_FBCON_CFB8=yCONFIG_FBCON_CFB16=yCONFIG_FBCON_CFB24=yCONFIG_FBCON_CFB32=y
# CONFIG_FBCON_FONTWIDTH8_ONLY is not setCONFIG_FBCON_FONTS=y
# CONFIG_FONT_8x8 is not set
CONFIG_FONT_8x16=y
CONFIG_FONT_SUN8x16=y
CONFIG_FONT_SUN12x22=y
# CONFIG_FONT_6x11 is not set
# CONFIG_FONT_PEARL_8x8 is not set
# CONFIG_FONT_ACORN_8x8 is not set
#
# Character devices
#CONFIG_VT=yCONFIG_VT_CONSOLE=y
# CONFIG_SERIAL is not set
# CONFIG_SERIAL_EXTENDED is not set
# CONFIG_SERIAL_NONSTANDARD is not setCONFIG_UNIX98_PTYS=yCONFIG_UNIX98_PTY_COUNT=256
# CONFIG_PRINTER is not setCONFIG_MOUSE=y
#
# Mice
#
# CONFIG_ATIXL_BUSMOUSE is not set
# CONFIG_BUSMOUSE is not set
# CONFIG_MS_BUSMOUSE is not set
# CONFIG_PSMOUSE is not set
# CONFIG_82C710_MOUSE is not set
# CONFIG_PC110_PAD is not set
# CONFIG_QIC02_TAPE is not set
# CONFIG_WATCHDOG is not setCONFIG_NVRAM=y
# CONFIG_RTC is not set
#
# Video For Linux
#
# CONFIG_VIDEO_DEV is not set
#
# Joystick support
#
# CONFIG_JOYSTICK is not set
# CONFIG_DTLK is not set
#
# Ftape, the floppy tape device driver
#
# CONFIG_FTAPE is not set
#
# USB drivers - not for the faint of heart
#CONFIG_USB=y
# CONFIG_USB_UHCI is not setCONFIG_USB_OHCI=y
# CONFIG_USB_OHCI_DEBUG is not set
# CONFIG_USB_OHCI_HCD is not setCONFIG_USB_HUB=yCONFIG_USB_MOUSE=yCONFIG_USB_KBD=y
# CONFIG_USB_AUDIO is not set
# CONFIG_USB_ACM is not setCONFIG_USB_PRINTER=yCONFIG_USB_SCSI=y
# CONFIG_USB_SCSI_DEBUG is not set
# CONFIG_USB_EZUSB is not setCONFIG_USB_PROC=y
#
# Filesystems
#
# CONFIG_QUOTA is not setCONFIG_AUTOFS_FS=y
# CONFIG_ADFS_FS is not set
# CONFIG_AFFS_FS is not setCONFIG_HFS_FS=y
# CONFIG_FAT_FS is not set
# CONFIG_MSDOS_FS is not set
# CONFIG_UMSDOS_FS is not set
# CONFIG_VFAT_FS is not setCONFIG_ISO9660_FS=y
# CONFIG_JOLIET is not set
# CONFIG_MINIX_FS is not set
# CONFIG_NTFS_FS is not set
# CONFIG_HPFS_FS is not setCONFIG_PROC_FS=yCONFIG_DEVPTS_FS=y
# CONFIG_QNX4FS_FS is not set
# CONFIG_ROMFS_FS is not setCONFIG_EXT2_FS=y
# CONFIG_SYSV_FS is not set
# CONFIG_UFS_FS is not set
# CONFIG_EFS_FS is not set
#
# Network File Systems
#
# CONFIG_CODA_FS is not setCONFIG_NFS_FS=yCONFIG_NFSD=y
# CONFIG_NFSD_SUN is not setCONFIG_SUNRPC=yCONFIG_LOCKD=y
# CONFIG_SMB_FS is not set
# CONFIG_NCP_FS is not set
#
# Partition Types
#
# CONFIG_BSD_DISKLABEL is not setCONFIG_MAC_PARTITION=y
# CONFIG_SMD_DISKLABEL is not set
# CONFIG_SOLARIS_X86_PARTITION is not set
# CONFIG_UNIXWARE_DISKLABEL is not set
# CONFIG_NLS is not set
#
# Sound
#CONFIG_SOUND=yCONFIG_DMASOUND=y
# CONFIG_SOUND_CMPCI is not set
# CONFIG_SOUND_ES1370 is not set
# CONFIG_SOUND_ES1371 is not set
# CONFIG_SOUND_ESSSOLO1 is not set
# CONFIG_SOUND_SONICVIBES is not set
# CONFIG_SOUND_MSNDCLAS is not set
# CONFIG_SOUND_MSNDPIN is not set
# CONFIG_SOUND_OSS is not set
#
# Kernel hacking
#
# CONFIG_MAGIC_SYSRQ is not set
# CONFIG_KGDB is not set
# CONFIG_XMON is not set
Let me know how it works for your Rev D.
Bob
Signature · 5 lines
Robert E. Brose II N0QBJ http://www.jriver.com/~bob/ [email protected] ** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
Re: RevD iMac USB errors (was Problems compiling ppc kernels)
Quoted 7 lines · [email protected] wrote:
Neil Russel Wrote:
Quoted 2 lines · Mike Panetta
I have been having some real weird problems with compiling kernels for my iMAC. ....
Quoted 8 lines
I had basically the same problems compiling a kernel for iMac, and fixed them by turning off config for the offending items. I did not get any of those kernels to boot on the iMac. I ended up using 2.2.6 (the one shipped on the LinuxPPC CD). The 226 kernel works, except for the keyboard/mouse ("version 1.16 USB, only understand 1.0 problem"). I ended up hacking a small change into the ethernet code to snarf specially formatted UDP packets and shove them into the console queue. This works fine, but is rather ugly.
I have no idea what you're saying... you hacked your iMac to make it think custom-made packets coming at it are from the keyboard?
Quoted 6 lines
Does anyone else have any insight into this? Can anyone point me to a kernel binary that works on the iMac? How about the config file for the said kernel?
I have a rev.D iMac, purchased about a month ago (just before the new iMac came out).
The kernels on rshaw's pages (http://www.linuxppc.org/blueg3) should work fine. The trick is just to comment out the USB version-checking code. I think he has the patch there as well.
-Hollis
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
Re: RevD iMac USB errors (was Problems compiling ppc kernels)
Quoted 6 lines · On Tue, Oct 26, 1999 at 11:43:17PM -0400, [email protected] wrote:
Quoted 3 lines
I ended up hacking a small change into the ethernet code to snarf specially formatted UDP packets and shove them into the console queue. This works fine, but is rather ugly.
I have no idea what you're saying... you hacked your iMac to make it think custom-made packets coming at it are from the keyboard?
That's it exactly. I used this hacked kernel to allow me to type on the console to get linux installed. I never intended to use the console for real work. I just run X11 to a remote X server for that.
Quoted 10 lines
Quoted 6 lines
Does anyone else have any insight into this? Can anyone point me to a kernel binary that works on the iMac? How about the config file for the said kernel?
I have a rev.D iMac, purchased about a month ago (just before the new iMac came out).
The kernels on rshaw's pages (http://www.linuxppc.org/blueg3) should work fine. The trick is just to comment out the USB version-checking code. I think he has the patch there as well.
I tried several of those kernels and they would not even boot. I also built a kernel with the version checking commented out and those kernels would not even find the keyboard.
Signature · 3 lines
Neil Russell <[email protected]> ** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
Re: RevD iMac USB errors (was Problems compiling ppc kernels)
Quoted 9 lines · Neil Russell
Quoted 7 lines · On Tue, Oct 26, 1999 at 11:43:17PM -0400, [email protected] wrote:
Quoted 6 lines
Does anyone else have any insight into this? Can anyone point me to a kernel binary that works on the iMac? How about the config file for the said kernel?
I have a rev.D iMac, purchased about a month ago (just before the new iMac came out).
Quoted 7 lines
Quoted 3 lines
The kernels on rshaw's pages (http://www.linuxppc.org/blueg3) should work fine. The trick is just to comment out the USB version-checking code. I think he has the patch there as well.
I tried several of those kernels and they would not even boot. I also built a kernel with the version checking commented out and those kernels would not even find the keyboard.
Those kernels should definately boot... are you downloading them from the Mac OS side? Linux apparently has some issues copying to HFS that can render kernels unbootable (this is from personal experience).
If those still don't work, try the kernel at ftp://ftp.linuxppc.org/kernels/BlueG3/v2.2.6/vmlinux-2.2.6-rev1.gz
-Hollis
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
Re: RevD iMac USB errors (was Problems compiling ppc kernels)
Quoted 6 lines · [email protected] wrote:
Those kernels should definately boot... are you downloading them from the Mac OS side? Linux apparently has some issues copying to HFS that can render kernels unbootable (this is from personal experience).
If those still don't work, try the kernel at ftp://ftp.linuxppc.org/kernels/BlueG3/v2.2.6/vmlinux-2.2.6-rev1.gz
Thanks for all of the information, but I still haven't found anything that will boot on my iMac. I am trying to catch the messages as they scroll by :-). The first one that seems suspicious is something about "hub 0 timeout" trying to attach or initialize. After that I get continuous "USB-HUBM Cannot attach to port 0 of hub....." and "USBD: Transaction....endpoint 0, timed out".
Hacking code now.......I have the 2.2.5 kernel patched up to 2.2.6 with the other keyboard and usb patches as described on johnb's imaclinux.net pages, as my starting point. Should I be using something else?
-- Dan
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
Re: RevD iMac USB errors (was Problems compiling ppc kernels)
In reply to [email protected]Just to keep everyone up to date.......
Quoted 3 lines · Someone
Quoted 3 lines
Quoted 3 lines
The kernels on rshaw's pages (http://www.linuxppc.org/blueg3) should work fine. The trick is just to comment out the USB version-checking code. I think he has the patch there as well.
I tried again today, and the vmlinux-2.2.10-rev1.gz booted on my RevD iMac. The 2.2.6 wouldn't, and the anything prior to the recent Oct. 30 build wouldn't either. I used 2.2.10 to install Linux/PPC, you just don't have any backspace/delete/kill keys, so be careful typing :-).
Thank you very much! Now, if I could just get the video driver to leave the monitor enabled, it would be great. FYI, video=fbonly (check the No Video box) works, but any other video option turns off the monitor.
-- Dan
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/