Too big 2.6 kernels on SS5
I'm trying to test the new framebuffer driver fixes on my SS5-170 (256M RAM). I have Debian unstable installed, running 2.6.8 kernel with initrd.
I took the lastest 2.6 snapshot and built it. SILO 2.4.8 tells the kernel image is too big. Trimmed the config to minimal normal non-initrd config (ESP, scsi disk and framebuffers static), still too big. Tried with gcc-3.3, gcc-2.95 and gcc-3.4, still too big.
Tried both vmlinux and arch/sparc/boot/image (what's the difference - why is the later smeller), still no go. Tried uncompressed image, still nothing.
What am I doing wrong? Is there anything I'm missing? Current .config is below.
-rwxr-xr-x 1 root root 2647650 2005-02-14 11:22 image -rw-r--r-- 1 root root 907307 2005-02-12 23:35 vmlinuz-2.4.30-pre1 -rw-r--r-- 1 root root 1110460 2005-02-14 11:22 vmlinuz-2.6.11-rc4 -rw-r--r-- 1 root root 993499 2004-12-28 23:31 vmlinuz-2.6.8-2-sparc32
Smallest image (of "make image") I got is 2.6M.
CONFIG_MMU=yCONFIG_UID16=yCONFIG_HIGHMEM=yCONFIG_GENERIC_ISA_DMA=yCONFIG_EXPERIMENTAL=y
# CONFIG_CLEAN_COMPILE is not setCONFIG_BROKEN=yCONFIG_BROKEN_ON_SMP=yCONFIG_LOCALVERSION=""CONFIG_SWAP=yCONFIG_SYSVIPC=y
# CONFIG_POSIX_MQUEUE is not set
# CONFIG_BSD_PROCESS_ACCT is not setCONFIG_SYSCTL=y
# CONFIG_AUDIT is not set
CONFIG_LOG_BUF_SHIFTCONFIG_HOTPLUG=y
# CONFIG_KOBJECT_UEVENT is not set
# CONFIG_IKCONFIG is not set
# CONFIG_EMBEDDED is not setCONFIG_KALLSYMS=yCONFIG_KALLSYMS_EXTRA_PASS=yCONFIG_FUTEX=yCONFIG_EPOLL=y
# CONFIG_CC_OPTIMIZE_FOR_SIZE is not setCONFIG_SHMEM=yCONFIG_CC_ALIGN_FUNCTIONS=0CONFIG_CC_ALIGN_LABELS=0CONFIG_CC_ALIGN_LOOPS=0CONFIG_CC_ALIGN_JUMPS=0
# CONFIG_TINY_SHMEM is not setCONFIG_MODULES=yCONFIG_MODULE_UNLOAD=y
# CONFIG_MODULE_FORCE_UNLOAD is not setCONFIG_OBSOLETE_MODPARM=y
# CONFIG_MODVERSIONS is not set
# CONFIG_MODULE_SRCVERSION_ALL is not set
# CONFIG_KMOD is not setCONFIG_VT=yCONFIG_VT_CONSOLE=yCONFIG_HW_CONSOLE=y
# CONFIG_SMP is not setCONFIG_SPARC32=yCONFIG_SBUS=yCONFIG_SBUSCHAR=yCONFIG_SERIAL_CONSOLE=yCONFIG_SUN_AUXIO=yCONFIG_SUN_IO=yCONFIG_RWSEM_GENERIC_SPINLOCK=yCONFIG_GENERIC_CALIBRATE_DELAY=yCONFIG_SUN_PM=y
# CONFIG_SUN4 is not set
# CONFIG_PCI is not setCONFIG_SUN_OPENPROMFS=mCONFIG_BINFMT_ELF=y
# CONFIG_BINFMT_AOUT is not set
# CONFIG_BINFMT_MISC is not set
# CONFIG_SUNOS_EMUL is not setCONFIG_PARPORT=m
# CONFIG_PARPORT_PC is not setCONFIG_PARPORT_SUNBPP=mCONFIG_PARPORT_OTHER=yCONFIG_PARPORT_1284=yCONFIG_PRINTER=mCONFIG_STANDALONE=yCONFIG_PREVENT_FIRMWARE_BUILD=y
# CONFIG_FW_LOADER is not setCONFIG_FB=y
# CONFIG_FB_MODE_HELPERS is not set
# CONFIG_FB_TILEBLITTING is not set
# CONFIG_FB_BW2 is not setCONFIG_FB_CG3=yCONFIG_FB_CG6=yCONFIG_FB_SBUS=yCONFIG_FB_TCX=y
# CONFIG_FB_CG14 is not set
# CONFIG_FB_P9100 is not set
# CONFIG_FB_LEO is not set
# CONFIG_FB_VIRTUAL is not setCONFIG_PROM_CONSOLE=yCONFIG_DUMMY_CONSOLE=yCONFIG_FRAMEBUFFER_CONSOLE=y
# CONFIG_FONTS is not set
CONFIG_FONT_SUN8x16=y
CONFIG_FONT_SUN12x22=y
# CONFIG_LOGO is not set
# CONFIG_BACKLIGHT_LCD_SUPPORT is not set
# CONFIG_MTD is not set
# CONFIG_SERIAL_8250 is not setCONFIG_SERIAL_SUNCORE=yCONFIG_SERIAL_SUNZILOG=yCONFIG_SERIAL_SUNZILOG_CONSOLE=yCONFIG_SERIAL_CORE=yCONFIG_SERIAL_CORE_CONSOLE=yCONFIG_SUN_OPENPROMIO=mCONFIG_SUN_MOSTEK_RTC=mCONFIG_SUN_BPP=m
# CONFIG_SUN_VIDEOPIX is not set
# CONFIG_SUN_AURORA is not set
# CONFIG_TADPOLE_TS102_UCTRL is not set
# CONFIG_SUN_JSFLASH is not set
# CONFIG_BLK_DEV_FD is not set
# CONFIG_PARIDE is not set
# CONFIG_BLK_DEV_COW_COMMON is not setCONFIG_BLK_DEV_LOOP=m
# CONFIG_BLK_DEV_CRYPTOLOOP is not set
# CONFIG_BLK_DEV_NBD is not set
# CONFIG_BLK_DEV_RAM is not set
CONFIG_BLK_DEV_RAM_COUNTCONFIG_INITRAMFS_SOURCE=""
# CONFIG_CDROM_PKTCDVD is not setCONFIG_IOSCHED_NOOP=yCONFIG_IOSCHED_AS=yCONFIG_IOSCHED_DEADLINE=mCONFIG_IOSCHED_CFQ=m
# CONFIG_ATA_OVER_ETH is not set
# CONFIG_ISDN is not setCONFIG_SCSI=yCONFIG_SCSI_PROC_FS=yCONFIG_BLK_DEV_SD=yCONFIG_CHR_DEV_ST=m
# CONFIG_CHR_DEV_OSST is not setCONFIG_BLK_DEV_SR=mCONFIG_BLK_DEV_SR_VENDOR=yCONFIG_CHR_DEV_SG=mCONFIG_SCSI_MULTI_LUN=y
# CONFIG_SCSI_CONSTANTS is not set
# CONFIG_SCSI_LOGGING is not set
# CONFIG_SCSI_SPI_ATTRS is not set
# CONFIG_SCSI_FC_ATTRS is not set
# CONFIG_SCSI_ISCSI_ATTRS is not set
# CONFIG_SCSI_SATA is not set
# CONFIG_SCSI_PPA is not set
# CONFIG_SCSI_IMM is not set
# CONFIG_SCSI_QLOGICPTI is not set
# CONFIG_SCSI_DEBUG is not setCONFIG_SCSI_SUNESP=y
# CONFIG_FC4 is not set
# CONFIG_MD is not setCONFIG_NET=yCONFIG_PACKET=yCONFIG_PACKET_MMAP=yCONFIG_NETLINK_DEV=yCONFIG_UNIX=y
# CONFIG_NET_KEY is not setCONFIG_INET=yCONFIG_IP_MULTICAST=y
# CONFIG_IP_ADVANCED_ROUTER is not set
# CONFIG_IP_PNP is not set
# CONFIG_NET_IPIP is not set
# CONFIG_NET_IPGRE is not set
# CONFIG_IP_MROUTE is not set
# CONFIG_ARPD is not set
# CONFIG_SYN_COOKIES is not set
# CONFIG_INET_AH is not set
# CONFIG_INET_ESP is not set
# CONFIG_INET_IPCOMP is not set
# CONFIG_INET_TUNNEL is not set
# CONFIG_IP_TCPDIAG is not set
# CONFIG_IP_TCPDIAG_IPV6 is not set
# CONFIG_IPV6 is not set
# CONFIG_NETFILTER is not set
# CONFIG_IP_SCTP is not set
# CONFIG_ATM is not set
# CONFIG_BRIDGE is not set
# CONFIG_VLAN_8021Q is not set
# CONFIG_DECNET is not set
# CONFIG_LLC2 is not set
# CONFIG_IPX is not set
# CONFIG_ATALK is not set
# CONFIG_X25 is not set
# CONFIG_LAPB is not set
# CONFIG_NET_DIVERT is not set
# CONFIG_ECONET is not set
# CONFIG_WAN_ROUTER is not set
# CONFIG_NET_SCHED is not set
# CONFIG_NET_CLS_ROUTE is not set
# CONFIG_NET_PKTGEN is not set
# CONFIG_NETPOLL is not set
# CONFIG_NET_POLL_CONTROLLER is not set
# CONFIG_HAMRADIO is not set
# CONFIG_IRDA is not set
# CONFIG_BT is not setCONFIG_NETDEVICES=y
# CONFIG_DUMMY is not set
# CONFIG_BONDING is not set
# CONFIG_EQUALIZER is not set
# CONFIG_TUN is not set
# CONFIG_ETHERTAP is not setCONFIG_NET_ETHERNET=y
# CONFIG_MII is not setCONFIG_SUNLANCE=y
# CONFIG_HAPPYMEAL is not set
# CONFIG_SUNBMAC is not set
# CONFIG_SUNQE is not set
# CONFIG_MYRI_SBUS is not set
# CONFIG_NET_RADIO is not set
# CONFIG_WAN is not set
# CONFIG_PLIP is not set
# CONFIG_PPP is not set
# CONFIG_SLIP is not set
# CONFIG_SHAPER is not set
# CONFIG_NETCONSOLE is not setCONFIG_UNIX98_PTYS=y
CONFIG_UNIX98_PTY_COUNT%6CONFIG_INPUT=yCONFIG_INPUT_MOUSEDEV=y
# CONFIG_INPUT_MOUSEDEV_PSAUX is not set
CONFIG_INPUT_MOUSEDEV_SCREEN_X24CONFIG_INPUT_MOUSEDEV_SCREEN_Yv8
# CONFIG_INPUT_JOYDEV is not set
# CONFIG_INPUT_TSDEV is not set
# CONFIG_INPUT_EVDEV is not set
# CONFIG_INPUT_EVBUG is not set
# CONFIG_GAMEPORT is not setCONFIG_SOUND_GAMEPORT=yCONFIG_SERIO=y
# CONFIG_SERIO_I8042 is not set
# CONFIG_SERIO_SERPORT is not set
# CONFIG_SERIO_CT82C710 is not set
# CONFIG_SERIO_PARKBD is not set
# CONFIG_SERIO_RAW is not setCONFIG_INPUT_KEYBOARD=y
# CONFIG_KEYBOARD_ATKBD is not setCONFIG_KEYBOARD_SUNKBD=y
# CONFIG_KEYBOARD_LKKBD is not set
# CONFIG_KEYBOARD_XTKBD is not set
# CONFIG_KEYBOARD_NEWTON is not setCONFIG_INPUT_MOUSE=y
# CONFIG_MOUSE_PS2 is not set
# CONFIG_MOUSE_SERIAL is not set
# CONFIG_MOUSE_VSXXXAA is not set
# CONFIG_INPUT_JOYSTICK is not set
# CONFIG_INPUT_TOUCHSCREEN is not set
# CONFIG_INPUT_MISC is not set
# CONFIG_EXT2_FS is not setCONFIG_EXT3_FS=yCONFIG_EXT3_FS_XATTR=yCONFIG_EXT3_FS_POSIX_ACL=yCONFIG_EXT3_FS_SECURITY=yCONFIG_JBD=y
# CONFIG_JBD_DEBUG is not setCONFIG_FS_MBCACHE=y
# CONFIG_REISERFS_FS is not set
# CONFIG_JFS_FS is not setCONFIG_FS_POSIX_ACL=y
# CONFIG_XFS_FS is not set
# CONFIG_MINIX_FS is not set
# CONFIG_ROMFS_FS is not set
# CONFIG_QUOTA is not setCONFIG_DNOTIFY=y
# CONFIG_AUTOFS_FS is not set
# CONFIG_AUTOFS4_FS is not set
# CONFIG_ISO9660_FS is not set
# CONFIG_UDF_FS is not set
# CONFIG_MSDOS_FS is not set
# CONFIG_VFAT_FS is not set
# CONFIG_NTFS_FS is not setCONFIG_PROC_FS=yCONFIG_PROC_KCORE=yCONFIG_SYSFS=y
# CONFIG_DEVFS_FS is not set
# CONFIG_DEVPTS_FS_XATTR is not setCONFIG_TMPFS=y
# CONFIG_TMPFS_XATTR is not set
# CONFIG_HUGETLBFS is not set
# CONFIG_HUGETLB_PAGE is not setCONFIG_RAMFS=y
# CONFIG_ADFS_FS is not set
# CONFIG_AFFS_FS is not set
# CONFIG_HFS_FS is not set
# CONFIG_HFSPLUS_FS is not set
# CONFIG_BEFS_FS is not set
# CONFIG_BFS_FS is not set
# CONFIG_EFS_FS is not set
# CONFIG_CRAMFS is not set
# CONFIG_VXFS_FS is not set
# CONFIG_HPFS_FS is not set
# CONFIG_QNX4FS_FS is not set
# CONFIG_SYSV_FS is not set
# CONFIG_UFS_FS is not setCONFIG_NFS_FS=mCONFIG_NFS_V3=yCONFIG_NFS_V4=yCONFIG_NFS_DIRECTIO=y
# CONFIG_NFSD is not setCONFIG_LOCKD=mCONFIG_LOCKD_V4=yCONFIG_SUNRPC=mCONFIG_SUNRPC_GSS=mCONFIG_RPCSEC_GSS_KRB5=m
# CONFIG_RPCSEC_GSS_SPKM3 is not set
# CONFIG_SMB_FS is not set
# CONFIG_CIFS is not set
# CONFIG_NCP_FS is not set
# CONFIG_CODA_FS is not set
# CONFIG_AFS_FS is not set
# CONFIG_PARTITION_ADVANCED is not setCONFIG_MSDOS_PARTITION=yCONFIG_SUN_PARTITION=y
# CONFIG_NLS is not set
# CONFIG_SOUND is not set
# CONFIG_USB_ARCH_HAS_HCD is not set
# CONFIG_USB_ARCH_HAS_OHCI is not set
# CONFIG_USB_GADGET is not set
# CONFIG_INFINIBAND is not set
# CONFIG_WATCHDOG is not set
# CONFIG_DEBUG_KERNEL is not setCONFIG_DEBUG_BUGVERBOSE=y
# CONFIG_KEYS is not set
# CONFIG_SECURITY is not setCONFIG_CRYPTO=y
# CONFIG_CRYPTO_HMAC is not set
# CONFIG_CRYPTO_NULL is not set
# CONFIG_CRYPTO_MD4 is not setCONFIG_CRYPTO_MD5=m
# CONFIG_CRYPTO_SHA1 is not set
# CONFIG_CRYPTO_SHA256 is not set
# CONFIG_CRYPTO_SHA512 is not set
# CONFIG_CRYPTO_WP512 is not setCONFIG_CRYPTO_DES=m
# CONFIG_CRYPTO_BLOWFISH is not set
# CONFIG_CRYPTO_TWOFISH is not set
# CONFIG_CRYPTO_SERPENT is not set
# CONFIG_CRYPTO_AES is not set
# CONFIG_CRYPTO_CAST5 is not set
# CONFIG_CRYPTO_CAST6 is not set
# CONFIG_CRYPTO_TEA is not set
# CONFIG_CRYPTO_ARC4 is not set
# CONFIG_CRYPTO_KHAZAD is not set
# CONFIG_CRYPTO_ANUBIS is not set
# CONFIG_CRYPTO_DEFLATE is not set
# CONFIG_CRYPTO_MICHAEL_MIC is not set
# CONFIG_CRYPTO_CRC32C is not set
# CONFIG_CRYPTO_TEST is not set
# CONFIG_CRC_CCITT is not setCONFIG_CRC32=y
# CONFIG_LIBCRC32C is not set
Signature · 1 line
Meelis Roos ([email protected])
Kill these config options.
Quoted 2 lines
CONFIG_KALLSYMS=yCONFIG_KALLSYMS_EXTRA_PASS=y
Pretty sure you don't need all of these framebuffers, right?
Quoted 3 lines
CONFIG_FB_CG3=yCONFIG_FB_CG6=yCONFIG_FB_TCX=y
Don't need either of these.
Quoted 2 lines
CONFIG_PROM_CONSOLE=yCONFIG_DUMMY_CONSOLE=y
Kill the 12x22, it's huge.
Quoted 1 line
CONFIG_FONT_SUN12x22=y
These can be modules, right?
Quoted 11 lines
CONFIG_PACKET=yCONFIG_NETLINK_DEV=y
CONFIG_INPUT_MOUSEDEV=y
CONFIG_SOUND_GAMEPORT=y
CONFIG_INPUT_MOUSE=y
CONFIG_TMPFS=yCONFIG_RAMFS=y
Disable this, it adds a lot to the kernel.
Quoted 1 line
CONFIG_DEBUG_BUGVERBOSE=y
Signature · 4 lines
Debian - http://www.debian.org/ Linux 1394 - http://www.linux1394.org/ Subversion - http://subversion.tigris.org/ WatchGuard - http://www.watchguard.com/
Quoted 1 line · Ben Collins
Kill these config options.
[...]
In all honesty the defconfig could use some pruning. I took a stab at this but have been holding out until after 2.6.11.
-- wli
Quoted 16 lines · Meelis Roos
I'm trying to test the new framebuffer driver fixes on my SS5-170 (256M RAM). I have Debian unstable installed, running 2.6.8 kernel with initrd.
I took the lastest 2.6 snapshot and built it. SILO 2.4.8 tells the kernel image is too big. Trimmed the config to minimal normal non-initrd config (ESP, scsi disk and framebuffers static), still too big. Tried with gcc-3.3, gcc-2.95 and gcc-3.4, still too big.
Tried both vmlinux and
arch/sparc/boot/image(what's the difference - why is the later smeller), still no go. Tried uncompressed image, still nothing.What am I doing wrong? Is there anything I'm missing? Current .config is below.
Review
Quoted 4 lines
(quoted diff) +0
-4-rwxr-xr-x 1 root root 2647650 2005-02-14 11:22 image -rw-r--r-- 1 root root 907307 2005-02-12 23:35 vmlinuz-2.4.30-pre1 -rw-r--r-- 1 root root 1110460 2005-02-14 11:22 vmlinuz-2.6.11-rc4 -rw-r--r-- 1 root root 993499 2004-12-28 23:31 vmlinuz-2.6.8-2-sparc32
You should be able to reduce that to the SILO limit (not sure what the limit is), anyway i use an ugly SILO hack to make it load bigger images. I'll send it to you if you're interested, however i'm not sure of the consequences of using it, but it "Works For Me (TM)".
Signature · 1 line
Pedro Ramalhais <[email protected]>
Quoted 4 lines · Pedro Ramalhais
You should be able to reduce that to the SILO limit (not sure what the limit is), anyway i use an ugly SILO hack to make it load bigger images. I'll send it to you if you're interested, however i'm not sure of the consequences of using it, but it "Works For Me (TM)".
The limit is 2.5MB, that is, 2.5 * 1024 * 1024 bytes.
If you're referring to my load address change, the impact is that it only works on some machines. I think the ss10/20 are ok, not sure about any others. A first-order improvement might be to have PIC SILO and use a small linker to relocate it before loading a kernel. I remember looking at this, as well as the possibility of loading the kernel at a different address like sparc64, and basically concluded that (a) it is hard, and (b) it is a waste of time. If you want to use machines that don't map memory above 3MB, just make smaller kernels.
Signature · 2 lines
Keith M Wesolowski "Site launched. Many things not yet working." --Hector Urtubia
Thanks, I got it to boot.
Quoted 3 lines
Kill these config options.
Quoted 1 line
CONFIG_KALLSYMS=y
No way to kill this -- ???
Quoted 3 lines
Don't need either of these.
Quoted 1 line
CONFIG_DUMMY_CONSOLE=y
Can't diable this.
Quoted 7 lines
These can be modules, right?
Quoted 5 lines
CONFIG_INPUT_MOUSEDEV=y
CONFIG_SOUND_GAMEPORT=y
CONFIG_INPUT_MOUSE=y
No, they are static.
Quoted 1 line
Quoted 1 line
CONFIG_RAMFS=y
Can't disable this.
Quoted 3 lines
Disable this, it adds a lot to the kernel.
Quoted 1 line
CONFIG_DEBUG_BUGVERBOSE=y
Can't disable this either.
Signature · 1 line
Meelis Roos ([email protected])
Quoted 9 lines · Keith M Wesolowski
Quoted 4 lines · Pedro Ramalhais
You should be able to reduce that to the SILO limit (not sure what the limit is), anyway i use an ugly SILO hack to make it load bigger images. I'll send it to you if you're interested, however i'm not sure of the consequences of using it, but it "Works For Me (TM)".
The limit is 2.5MB, that is, 2.5 * 1024 * 1024 bytes.
Quoted 9 lines
If you're referring to my load address change, the impact is that it only works on some machines. I think the ss10/20 are ok, not sure about any others. A first-order improvement might be to have PIC SILO and use a small linker to relocate it before loading a kernel. I remember looking at this, as well as the possibility of loading the kernel at a different address like sparc64, and basically concluded that (a) it is hard, and (b) it is a waste of time. If you want to use machines that don't map memory above 3MB, just make smaller kernels.
Yep, it's your change. It works for me on something like a SS4 clone.
Signature · 1 line
Pedro Ramalhais <[email protected]>