Port-arm archive

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

Re: TS 7200 kernel image size



On Sat, May 02, 2009 at 09:56:31PM -0400, Ken Hornstein wrote:
> I trimmed the TS7200 kernel config file of some crap a little while ago,
> but I was lame and didn't submit a pullup request so the changes would 
> make it into 5.0.  There is a lot of cruft in there; the easiest thing
> to do is simply trim the kernel config file back.

Due to build failures in current, I've switched to a 5.0 source
tree. There, I've built a distribution for evbarm using build.sh.

I've used the attached diff to reduce the size of the TS7200 kernel,
and built it.

Then I went to src/distrib/evbarm/gzboot/gzimg and commented out the
TARGETS which didn't interest me (i.e. everything except TS7200), and
use the nbmake-evbarm created by build.sh to get a gzimg of a kernel,
which was only 1098406 bytes and fit into the flash nicely.

Thanks for all the help!

Now for configuring...
I've mounted / as (fstab)
        /dev/wd0a / ffs rw,noatime,nodevmtime,log 1 1
I've added the following to /etc/rc.conf:
        savecore=NO
        no_swap=YES
        postfix=NO

What else to people recommend to keep CF wear low?
 Thomas
--- a/TS7200    Sun May 03 14:37:24 2009 +0200
+++ b/TS7200    Sun May 03 23:09:20 2009 +0200
@@ -28,7 +28,7 @@
 file-system    MFS             # memory file system
 file-system    NFS             # Network file system
 #file-system   ADOSFS          # AmigaDOS-compatible file system
-file-system    EXT2FS          # second extended file system (linux)
+#file-system   EXT2FS          # second extended file system (linux)
 #file-system   CD9660          # ISO 9660 + Rock Ridge file system
 file-system    MSDOSFS         # MS-DOS file system
 #file-system   FDESC           # /dev/fd
@@ -44,8 +44,8 @@
 # File system options
 #options       QUOTA           # UFS quotas
 #options       FFS_EI          # FFS Endian Independant support
-options        NFSSERVER
-options        SOFTDEP
+#options       NFSSERVER
+#options       SOFTDEP
 options        WAPBL           # File system journaling support - Experimental
 #options       FFS_NO_SNAPSHOT # No FFS snapshot support
 
@@ -53,7 +53,7 @@
 
 #options       GATEWAY         # packet forwarding
 options        INET            # IP + ICMP + TCP + UDP
-options        INET6           # IPV6
+#options       INET6           # IPV6
 #options       IPSEC           # IP security
 #options       IPSEC_ESP       # IP security (encryption part; define w/ IPSEC)
 #options       IPSEC_NAT_T     # IPsec NAT traversal (NAT-T)
@@ -78,7 +78,7 @@
 #options       COMPAT_43       # 4.3BSD compatibility.
 options        COMPAT_40       # NetBSD 4.0 compatibility.
 options        COMPAT_30       # NetBSD 3.0 compatibility.
-options        COMPAT_20       # NetBSD 2.0 compatibility.
+#options       COMPAT_20       # NetBSD 2.0 compatibility.
 #options       COMPAT_16       # NetBSD 1.6 compatibility.
 #options       COMPAT_15       # NetBSD 1.5 compatibility.
 #options       COMPAT_14       # NetBSD 1.4 compatibility.
@@ -125,7 +125,7 @@
 # Development and Debugging options
 
 #options       PERFCTRS        # performance counters
-options        DIAGNOSTIC      # internally consistency checks
+#options       DIAGNOSTIC      # internally consistency checks
 #options       DEBUG
 #options       PMAP_DEBUG      # Enable pmap_debug_level code
 #options       VERBOSE_INIT_ARM # verbose bootstraping messages
@@ -139,9 +139,9 @@
 ##options      LOCKDEBUG
 
 config         netbsd          root on ? type ?
-config         netbsd-epe0     root on epe0 type nfs
+#config                netbsd-epe0     root on epe0 type nfs
 config         netbsd-wd0      root on wd0 type ffs
-config         netbsd-sd0      root on sd0 type ffs
+#config                netbsd-sd0      root on sd0 type ffs
 
 # The main bus device
 mainbus0       at root
@@ -163,7 +163,7 @@
 # On-board TS-7200 CPLD
 tspld0         at mainbus?
 # PC/104 bus
-isa0           at tspld?
+#isa0          at tspld?
 # CompactFlash interface
 wdc0           at tspld?
 # TS-5620 battery-backed real-time clock
@@ -178,32 +178,32 @@
 #wskbd*        at tskp? console ? mux 1
 
 # TS-SER[1,2,4] multiport serial PC/104 cards
-com0           at isa? port 0x3f8 irq 6        # Standard PC serial ports
-com1           at isa? port 0x2f8 irq 6
-com2           at isa? port 0x3e8 irq 6
-com3           at isa? port 0x2e8 irq 6
+#com0          at isa? port 0x3f8 irq 6        # Standard PC serial ports
+#com1          at isa? port 0x2f8 irq 6
+#com2          at isa? port 0x3e8 irq 6
+#com3          at isa? port 0x2e8 irq 6
 
-wdc1   at isa? port 0x1f0 irq 7 flags 0x00
-wdc2   at isa? port 0x170 irq 7 flags 0x00
+#wdc1  at isa? port 0x1f0 irq 7 flags 0x00
+#wdc2  at isa? port 0x170 irq 7 flags 0x00
 
-tscs0  at isa? port 0x300 iomem ? irq ? drq ?  # TS-ETH10 PC/104 ethernet
-tscs1  at isa? port 0x310 iomem ? irq ? drq ?
-tscs2  at isa? port 0x320 iomem ? irq ? drq ?
-tscs3  at isa? port 0x330 iomem ? irq ? drq ?
+#tscs0 at isa? port 0x300 iomem ? irq ? drq ?  # TS-ETH10 PC/104 ethernet
+#tscs1 at isa? port 0x310 iomem ? irq ? drq ?
+#tscs2 at isa? port 0x320 iomem ? irq ? drq ?
+#tscs3 at isa? port 0x330 iomem ? irq ? drq ?
 
-tsdio0  at isa? port 0x100 # TS-DIO24 general-purpose I/O
-tsdio1  at isa? port 0x108
-tsdio2  at isa? port 0x110
-tsdio3  at isa? port 0x118
+#tsdio0  at isa? port 0x100 # TS-DIO24 general-purpose I/O
+#tsdio1  at isa? port 0x108
+#tsdio2  at isa? port 0x110
+#tsdio3  at isa? port 0x118
 
 # PCMCIA bus support
-pcmcia* at pcic? controller ? socket ?
+#pcmcia* at pcic? controller ? socket ?
 
-options PCIC_ISA_INTR_ALLOC_MASK=0xe0
+#options PCIC_ISA_INTR_ALLOC_MASK=0xe0
 # ISA PCMCIA controllers
-pcic0  at isa? port 0x3e0 iomem 0xd0000 iosiz 0x10000
-pcic1  at isa? port 0x3e2 iomem 0xe0000 iosiz 0x4000
-pcic2  at isa? port 0x3e4 iomem 0xe0000 iosiz 0x4000
+#pcic0 at isa? port 0x3e0 iomem 0xd0000 iosiz 0x10000
+#pcic1 at isa? port 0x3e2 iomem 0xe0000 iosiz 0x4000
+#pcic2 at isa? port 0x3e4 iomem 0xe0000 iosiz 0x4000
 
 # ATA (IDE) bus support
 atabus* at ata?
@@ -271,7 +271,7 @@
 uhub*  at uhub? port ?
 
 # USB HID device
-uhidev*        at uhub? port ? configuration ? interface ?
+#uhidev*       at uhub? port ? configuration ? interface ?
 
 # USB Mice
 # ums* at uhidev? reportid ?
@@ -282,21 +282,21 @@
 # wsmouse* at uep? mux 0
 
 # USB Keyboards
-ukbd*  at uhidev? reportid ?
-wskbd* at ukbd? console ? mux 1
+#ukbd* at uhidev? reportid ?
+#wskbd*        at ukbd? console ? mux 1
 
 # USB serial adapter
-ucycom*        at uhidev? reportid ?
+#ucycom*       at uhidev? reportid ?
 
 # USB Generic HID devices
-uhid*  at uhidev? reportid ?
+#uhid* at uhidev? reportid ?
 
 # USB Printer
-ulpt*  at uhub? port ? configuration ? interface ?
+#ulpt* at uhub? port ? configuration ? interface ?
 
 # USB Modem
-umodem*        at uhub? port ? configuration ?
-ucom*  at umodem?
+#umodem*       at uhub? port ? configuration ?
+#ucom* at umodem?
 
 # USB Mass Storage
 umass* at uhub? port ? configuration ? interface ?
@@ -316,44 +316,44 @@
 uaudio*        at uhub? port ? configuration ?
 
 # USB MIDI
-umidi* at uhub? port ? configuration ?
+#umidi* at uhub? port ? configuration ?
 
 # USB IrDA
 # USB-IrDA bridge spec
-uirda* at uhub? port ? configuration ? interface ?
-irframe* at uirda?
+#uirda* at uhub? port ? configuration ? interface ?
+#irframe* at uirda?
 
 # SigmaTel STIr4200 USB/IrDA Bridge
-ustir* at uhub? port ?
-irframe* at ustir?
+#ustir* at uhub? port ?
+#irframe* at ustir?
 
 # USB Ethernet adapters
-aue*   at uhub? port ?         # ADMtek AN986 Pegasus based adapters
-axe*   at uhub? port ?         # ASIX AX88172 based adapters
-cue*   at uhub? port ?         # CATC USB-EL1201A based adapters
-kue*   at uhub? port ?         # Kawasaki LSI KL5KUSB101B based adapters
-udav*  at uhub? port ?         # Davicom DM9601 based adapters
+#aue*  at uhub? port ?         # ADMtek AN986 Pegasus based adapters
+#axe*  at uhub? port ?         # ASIX AX88172 based adapters
+#cue*  at uhub? port ?         # CATC USB-EL1201A based adapters
+#kue*  at uhub? port ?         # Kawasaki LSI KL5KUSB101B based adapters
+#udav* at uhub? port ?         # Davicom DM9601 based adapters
 url*   at uhub? port ?         # Realtek RTL8150L based adapters
 
 # Prolific PL2301/PL2302 host-to-host adapter
-upl*   at uhub? port ?
+#upl*  at uhub? port ?
 
 # Serial adapters
-ubsa*  at uhub? port ?         # Belkin serial adapter
-ucom*  at ubsa? portno ?
+#ubsa* at uhub? port ?         # Belkin serial adapter
+#ucom* at ubsa? portno ?
 
-uftdi* at uhub? port ?         # FTDI FT8U100AX serial adapter
-ucom*  at uftdi? portno ?
+#uftdi*        at uhub? port ?         # FTDI FT8U100AX serial adapter
+#ucom* at uftdi? portno ?
 
-umct*  at uhub? port ?         # MCT USB-RS232 serial adapter
-ucom*  at umct? portno ?
+#umct* at uhub? port ?         # MCT USB-RS232 serial adapter
+#ucom* at umct? portno ?
 
-uplcom* at uhub? port ?        # I/O DATA USB-RSAQ2 serial adapter
-ucom*  at uplcom? portno ?
+#uplcom* at uhub? port ?       # I/O DATA USB-RSAQ2 serial adapter
+#ucom* at uplcom? portno ?
 
-uvscom* at uhub? port ?        # SUNTAC Slipper U VS-10U serial adapter
-ucom*  at uvscom? portno ?
-atu*   at uhub? port ?         # Atmel AT76C50XX 802.11b adapter
+#uvscom* at uhub? port ?       # SUNTAC Slipper U VS-10U serial adapter
+#ucom* at uvscom? portno ?
+#atu*  at uhub? port ?         # Atmel AT76C50XX 802.11b adapter
 
 # Diamond Multimedia Rio 500
 # urio*        at uhub? port ?
@@ -424,12 +424,13 @@
 # disk/mass storage pseudo-devices
 #pseudo-device md              1       # memory disk device (ramdisk)
 pseudo-device  vnd                     # disk-like interface to files
+pseudo-device  cgd             4       # cryptographic disk driver
 #pseudo-device fss             4       # file system snapshot device
 
 # network pseudo-devices
-pseudo-device  bpfilter                # Berkeley packet filter
+#pseudo-device bpfilter                # Berkeley packet filter
 pseudo-device  loop                    # network loopback
-pseudo-device  kttcp                   # network loopback
+#pseudo-device kttcp                   # network loopback
 
 # miscellaneous pseudo-devices
 pseudo-device  pty                     # pseudo-terminals
@@ -482,6 +483,6 @@
 #options       VGA_RASTERCONSOLE
 
 # wscons pseudo-devices
-pseudo-device  wsmux                   # mouse & keyboard multiplexor
+#pseudo-device wsmux                   # mouse & keyboard multiplexor
 #pseudo-device wsfont
 


Home | Main Index | Thread Index | Old Index