From owner-freebsd-embedded@FreeBSD.ORG Sun Oct 26 13:37:36 2008 Return-Path: Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0B3B41065681 for ; Sun, 26 Oct 2008 13:37:36 +0000 (UTC) (envelope-from bms@incunabulum.net) Received: from out3.smtp.messagingengine.com (out3.smtp.messagingengine.com [66.111.4.27]) by mx1.freebsd.org (Postfix) with ESMTP id C6A408FC12 for ; Sun, 26 Oct 2008 13:37:35 +0000 (UTC) (envelope-from bms@incunabulum.net) Received: from compute1.internal (compute1.internal [10.202.2.41]) by out1.messagingengine.com (Postfix) with ESMTP id 1DBBF182BDD for ; Sun, 26 Oct 2008 09:37:35 -0400 (EDT) Received: from heartbeat1.messagingengine.com ([10.202.2.160]) by compute1.internal (MEProxy); Sun, 26 Oct 2008 09:37:35 -0400 X-Sasl-enc: iYuCwe3+Wiyvq/ORu44i6mH43YMWmWTuyHFxvglERGEL 1225028254 Received: from empiric.lon.incunabulum.net (82-35-112-254.cable.ubr07.dals.blueyonder.co.uk [82.35.112.254]) by mail.messagingengine.com (Postfix) with ESMTPSA id 68DC6193C6 for ; Sun, 26 Oct 2008 09:37:34 -0400 (EDT) Message-ID: <4904729C.9080108@incunabulum.net> Date: Sun, 26 Oct 2008 13:37:32 +0000 From: Bruce M Simpson User-Agent: Thunderbird 2.0.0.14 (X11/20080514) MIME-Version: 1.0 To: freebsd-embedded@freebsd.org X-Enigmail-Version: 0.95.6 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Breaking into the Emprex NAS-100 firmware X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 Oct 2008 13:37:36 -0000 Hi, I just had a chance to look at this. So, Emprex are shipping a box (the NAS100) in violation of the GPL w/o releasing all relevant source code. After I contacted Cavium about the GPL issues with their acquisition of Star Semiconductor, they sent me links to the binaries which Linksys were required to release for the WAP4400N. I downloaded the WAP4400N materials and cross-compiled mtd-utils using Star's provided toolchain binaries (Gentoo crossdev is often broken for me). I then used mtd_debug to extract an image of the mtd0 partition, using a USB2 flash disk for data exchange. I quickly noticed that the ARMboot image targetted for the WAP4400N, built from Linksys provided sources, doesn't match the ARMboot image inside the NAS100. As far as I can tell this is down to two things: 1. The environment region for ARMboot is inside ARMboot's flash partition, at the very end (0x1E000 to 0x20000, 4096 bytes including the 4-byte CRC32 at the start of the region). [The image for the WAP4400N assumes it's at 0x20000 and is 8192 bytes long.. so don't use that image.] 2. The PHY drivers are slightly different. So I looked at the STR9100 board support, and after noting the binary differences in the flash layout, skimmed some of the code to do with environment variable processing. On a whim, I decided to deliberately corrupt the contents of the environment in the flash by modifying it with a hex editor and rewriting it w/mtd_debug, and rebooted. There is a CRC-32 at the start and it wasn't 100% clear which region was being used for it. Having done this, I noticed that ARMboot drops into its prompt (after attempting to execute its 'firstboot' routine and hitting CTRL-C). I was able to run Emprex's shipped kernel using "go 0x10020000", which seems to point to them not using the U-Boot image facility in ARMboot. The majority of Star's patches to ARMboot are to add support for some of the onboard peripherals (Ethernet MAC, timers, UART etc). BY THE WAY... There is a funny bug in ARMboot which I've seen on little endian ARM such as these, and that is, you need to configure an alias of the *reverse* of the IP address of the default gateway in order for it to boot from the network successfully. It seems to need a default gateway in order to use its bootp code, even when the server is on a directly attached network. Simply flipping the octets in the BOOTP/DHCP option given out to the box doesn't work, an actual alias on the gateway is needed. As far as I know this bug hasn't been fixed. So I guess now the way ahead is lit for folk to get U-Boot or similar onto this platform, as well as hopefully porting FreeBSD in future. If anyone is interested in following this up please contact me, I might not have free time to look at this in any detail. thanks BMS From owner-freebsd-embedded@FreeBSD.ORG Sun Oct 26 19:21:20 2008 Return-Path: Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2E4E6106566B for ; Sun, 26 Oct 2008 19:21:20 +0000 (UTC) (envelope-from bms@FreeBSD.org) Received: from out3.smtp.messagingengine.com (out3.smtp.messagingengine.com [66.111.4.27]) by mx1.freebsd.org (Postfix) with ESMTP id 0361F8FC14 for ; Sun, 26 Oct 2008 19:21:19 +0000 (UTC) (envelope-from bms@FreeBSD.org) Received: from compute1.internal (compute1.internal [10.202.2.41]) by out1.messagingengine.com (Postfix) with ESMTP id 48F18182F07 for ; Sun, 26 Oct 2008 15:21:19 -0400 (EDT) Received: from heartbeat2.messagingengine.com ([10.202.2.161]) by compute1.internal (MEProxy); Sun, 26 Oct 2008 15:21:19 -0400 X-Sasl-enc: Yq47QUT6aW7QQ4eIcf00vq1vPq6HEZPK8Upmu81kCYY5 1225048879 Received: from empiric.lon.incunabulum.net (82-35-112-254.cable.ubr07.dals.blueyonder.co.uk [82.35.112.254]) by mail.messagingengine.com (Postfix) with ESMTPSA id DC5721EADC for ; Sun, 26 Oct 2008 15:21:18 -0400 (EDT) Message-ID: <4904C32D.4040303@FreeBSD.org> Date: Sun, 26 Oct 2008 19:21:17 +0000 From: "Bruce M. Simpson" User-Agent: Thunderbird 2.0.0.14 (X11/20080514) MIME-Version: 1.0 To: freebsd-embedded@freebsd.org References: <4904729C.9080108@incunabulum.net> In-Reply-To: <4904729C.9080108@incunabulum.net> X-Enigmail-Version: 0.95.6 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: Breaking into the Emprex NAS-100 firmware X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 Oct 2008 19:21:20 -0000 I tried booting armboot (compilde from source) from armboot installed on the device. Didn't work, even when rebased to 0x20000. I'm guessing that's an MMU mode issue. Haven't tried a kernel (yet). Someone out there is working on Linux 2.6 support, perhaps information sharing is possible. From owner-freebsd-embedded@FreeBSD.ORG Sun Oct 26 21:05:30 2008 Return-Path: Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EBD4010656A2 for ; Sun, 26 Oct 2008 21:05:30 +0000 (UTC) (envelope-from espartano.mail@gmail.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.152]) by mx1.freebsd.org (Postfix) with ESMTP id 826FC8FC14 for ; Sun, 26 Oct 2008 21:05:29 +0000 (UTC) (envelope-from espartano.mail@gmail.com) Received: by fg-out-1718.google.com with SMTP id l26so1584612fgb.35 for ; Sun, 26 Oct 2008 14:05:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type:content-transfer-encoding :content-disposition; bh=vgWL8vs3pf1TKQYBjvVnf5IfY0TvTdmLJdJAZzx6sRM=; b=mxJPszTqBApDn7MIDH5gpnymrYiXM1oRw3uJfBPRHRazNsQ8NRvW8g73PaS1F7EGGe sDV5TiFEPWBOgk+kRYCMmRerAF4KKRnJQIei5X8bVJQcc2dsnRF5/hjwOz+yDxSGA7cZ DVorYRd/f4karyyYBh5SfSGEseMzxcmfbZ7k0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition; b=o6IVyDAwXCxvl9mfu7W5m41W8nQtquPNitNXVaqc/OD312AhYr8wtvVukRCZeC/NCg ejQ9Hx2yvr4WS2MSaVCJ/GF/tWyqqAXi/5P1dte2tfaUWFHYkpVqWLZ+d/jvCI4Btz7z 8+T3mYieOWD2smIHXRE4vomJ1CMGzJpKoDj5A= Received: by 10.86.94.11 with SMTP id r11mr2486995fgb.11.1225053317756; Sun, 26 Oct 2008 13:35:17 -0700 (PDT) Received: by 10.86.65.7 with HTTP; Sun, 26 Oct 2008 13:35:17 -0700 (PDT) Message-ID: Date: Sun, 26 Oct 2008 14:35:17 -0600 From: Espartano To: freebsd-embedded@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: Problem with CPU Geode panic: CPU class not configured :( X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 Oct 2008 21:05:31 -0000 hi people, first and foremost apologize me for my bad english. I have an alix2c3 machine with this features: CPU: 500 MHz AMD Geode LX800 DRAM: 256 MB DDR DRAM Storage: CompactFlash socket Power: DC jack or passive POE, min. 7V to max. 20V Three front panel LEDs, pushbutton Expansion: 1 miniPCI slot, LPC bus Connectivity: 3 Ethernet channels (Via VT6105M 10/100) I/O: DB9 serial port, dual USB port Board size: 6 x 6" (152.4 x 152.4 mm) - same as WRAP.1E Firmware: tinyBIOS I have installed NanoBSD in this machine but when it try to boot i get this message: Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 7.0-RELEASE #0: Sat Oct 25 01:28:04 CDT 2008 root@:/usr/obj/nanobsd.ALIX_PF/usr/src/sys/ALIX Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: Geode(TM) Integrated Processor by AMD PCS (Unknown-class CPU) Origin = "AuthenticAMD" Id = 0x5a2 Stepping = 2 Features=0x88a93d AMD Features=0xc0400000 panic: CPU class not configured Uptime: 1s this is my kernel configuration file: # # GENERIC -- Generic kernel configuration file for FreeBSD/i386 # # For more information on this file, please read the handbook section on # Kernel Configuration Files: # # http://www.FreeBSD.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig-config.html # # The handbook is also available locally in /usr/share/doc/handbook # if you've installed the doc distribution, otherwise always see the # FreeBSD World Wide Web server (http://www.FreeBSD.org/) for the # latest information. # # An exhaustive list of options and more detailed explanations of the # device lines is also present in the ../../conf/NOTES and NOTES files. # If you are in doubt as to the purpose or necessity of a line, check first # in NOTES. # # $FreeBSD: src/sys/i386/conf/GENERIC,v 1.474.2.2.2.1 2008/02/06 03:24:28 scottl Exp $ machine i386 cpu I486_CPU cpu I586_CPU cpu I686_CPU ident ALIX_FIREWALL options CPU_GEODE # To statically compile in device wiring instead of /boot/device.hints #hints "GENERIC.hints" # Default places to look for devices. #makeoptions DEBUG=-g # Build kernel with gdb(1) debug symbols options SCHED_ULE # 4BSD scheduler options PREEMPTION # Enable kernel thread preemption options INET # InterNETworking options INET6 # IPv6 communications protocols options SCTP # Stream Control Transmission Protocol options FFS # Berkeley Fast Filesystem options SOFTUPDATES # Enable FFS soft updates support options UFS_ACL # Support for access control lists options UFS_DIRHASH # Improve performance on big directories options UFS_GJOURNAL # Enable gjournal-based UFS journaling options MD_ROOT # MD is a potential root device #options NFSCLIENT # Network Filesystem Client #options NFSSERVER # Network Filesystem Server #options NFS_ROOT # NFS usable as /, requires NFSCLIENT #options MSDOSFS # MSDOS Filesystem #options CD9660 # ISO 9660 Filesystem options PROCFS # Process filesystem (requires PSEUDOFS) options PSEUDOFS # Pseudo-filesystem framework #options GEOM_PART_GPT # GUID Partition Tables. #options GEOM_LABEL # Provides labelization options COMPAT_43TTY # BSD 4.3 TTY compat [KEEP THIS!] #options COMPAT_FREEBSD4 # Compatible with FreeBSD4 #options COMPAT_FREEBSD5 # Compatible with FreeBSD5 #options COMPAT_FREEBSD6 # Compatible with FreeBSD6 #options SCSI_DELAY=5000 # Delay (in ms) before probing SCSI options KTRACE # ktrace(1) support options SYSVSHM # SYSV-style shared memory options SYSVMSG # SYSV-style message queues options SYSVSEM # SYSV-style semaphores options _KPOSIX_PRIORITY_SCHEDULING # POSIX P1003_1B real-time extensions options KBD_INSTALL_CDEV # install a CDEV entry in /dev options ADAPTIVE_GIANT # Giant mutex is adaptive. options STOP_NMI # Stop CPUS using NMI instead of IPI options AUDIT # Security event auditing options DEVICE_POLLING options IPSEC device tun #Tunnel driver (ppp(8), nos-tun(8)) device gre #IP over IP tunneling device if_bridge #Bridge interface device pf #PF OpenBSD packet-filter firewall device pflog #logging support interface for PF device pfsync #synchronization interface for PF device carp #Common Address Redundancy Protocol device enc #IPsec interface device crypto options ALTQ options ALTQ_CBQ # Class Bases Queueing options ALTQ_RED # Random Early Detection options ALTQ_RIO # RED In/Out options ALTQ_HFSC # Hierarchical Packet Scheduler options ALTQ_CDNR # Traffic conditioner options ALTQ_PRIQ # Priority Queueing options ALTQ_NOPCC # Required if the TSC is unusable options ALTQ_DEBUG # To make an SMP kernel, the next two lines are needed #options SMP # Symmetric MultiProcessor Kernel #device apic # I/O APIC # CPU frequency control device cpufreq # Bus support. device eisa device pci # Floppy drives #device fdc # ATA and ATAPI devices device ata device atadisk # ATA disk drives #device ataraid # ATA RAID drives #device atapicd # ATAPI CDROM drives #device atapifd # ATAPI floppy drives device atapist # ATAPI tape drives options ATA_STATIC_ID # Static device numbering # SCSI Controllers #device ahb # EISA AHA1742 family #device ahc # AHA2940 and onboard AIC7xxx devices #options AHC_REG_PRETTY_PRINT # Print register bitfields in debug # output. Adds ~128k to driver. #device ahd # AHA39320/29320 and onboard AIC79xx devices #options AHD_REG_PRETTY_PRINT # Print register bitfields in debug # output. Adds ~215k to driver. #device amd # AMD 53C974 (Tekram DC-390(T)) #device hptiop # Highpoint RocketRaid 3xxx series #device isp # Qlogic family #device ispfw # Firmware for QLogic HBAs- normally a module #device mpt # LSI-Logic MPT-Fusion #device ncr # NCR/Symbios Logic #device sym # NCR/Symbios Logic (newer chipsets + those of `ncr') #device trm # Tekram DC395U/UW/F DC315U adapters #device adv # Advansys SCSI adapters #device adw # Advansys wide SCSI adapters #device aha # Adaptec 154x SCSI adapters #device aic # Adaptec 15[012]x SCSI adapters, AIC-6[23]60. #device bt # Buslogic/Mylex MultiMaster SCSI adapters #device ncv # NCR 53C500 #device nsp # Workbit Ninja SCSI-3 #device stg # TMC 18C30/18C50 # SCSI peripherals device scbus # SCSI bus (required for SCSI) #device ch # SCSI media changers device da # Direct Access (disks) #device sa # Sequential Access (tape etc) #device cd # CD #device pass # Passthrough device (direct SCSI access) #device ses # SCSI Environmental Services (and SAF-TE) # RAID controllers interfaced to the SCSI subsystem #device amr # AMI MegaRAID #device arcmsr # Areca SATA II RAID #device asr # DPT SmartRAID V, VI and Adaptec SCSI RAID #device ciss # Compaq Smart RAID 5* #device dpt # DPT Smartcache III, IV - See NOTES for options #device hptmv # Highpoint RocketRAID 182x #device hptrr # Highpoint RocketRAID 17xx, 22xx, 23xx, 25xx #device iir # Intel Integrated RAID #device ips # IBM (Adaptec) ServeRAID #device mly # Mylex AcceleRAID/eXtremeRAID #device twa # 3ware 9000 series PATA/SATA RAID # RAID controllers #device aac # Adaptec FSA RAID #device aacp # SCSI passthrough for aac (requires CAM) #device ida # Compaq Smart RAID #device mfi # LSI MegaRAID SAS #device mlx # Mylex DAC960 family #device pst # Promise Supertrak SX6000 #device twe # 3ware ATA RAID # atkbdc0 controls both the keyboard and the PS/2 mouse device atkbdc # AT keyboard controller device atkbd # AT keyboard device psm # PS/2 mouse device kbdmux # keyboard multiplexer device vga # VGA video card driver #device splash # Splash screen and screen saver support # syscons is the default console driver, resembling an SCO console device sc #device agp # support several AGP chipsets # Power management support (see NOTES for more options) #device apm # Add suspend/resume support for the i8254. device pmtimer # PCCARD (PCMCIA) support # PCMCIA and cardbus bridge support device cbb # cardbus (yenta) bridge device pccard # PC Card (16-bit) bus device cardbus # CardBus (32-bit) bus # Serial (COM) ports device sio # 8250, 16[45]50 based serial ports device uart # Generic UART driver # Parallel port device ppc device ppbus # Parallel port bus (required) device lpt # Printer device plip # TCP/IP over parallel device ppi # Parallel port interface device #device vpo # Requires scbus and da # If you've got a "dumb" serial or parallel PCI card that is # supported by the puc(4) glue driver, uncomment the following # line to enable it (connects to sio, uart and/or ppc drivers): #device puc # PCI Ethernet NICs. #device de # DEC/Intel DC21x4x (``Tulip'') #device em # Intel PRO/1000 adapter Gigabit Ethernet Card #device ixgb # Intel PRO/10GbE Ethernet Card #device le # AMD Am7900 LANCE and Am79C9xx PCnet #device txp # 3Com 3cR990 (``Typhoon'') #device vx # 3Com 3c590, 3c595 (``Vortex'') # PCI Ethernet NICs that use the common MII bus controller code. # NOTE: Be sure to keep the 'device miibus' line in order to use these NICs! device miibus # MII bus support #device bce # Broadcom BCM5706/BCM5708 Gigabit Ethernet #device bfe # Broadcom BCM440x 10/100 Ethernet #device bge # Broadcom BCM570xx Gigabit Ethernet #device dc # DEC/Intel 21143 and various workalikes #device fxp # Intel EtherExpress PRO/100B (82557, 82558) #device lge # Level 1 LXT1001 gigabit Ethernet #device msk # Marvell/SysKonnect Yukon II Gigabit Ethernet #device nfe # nVidia nForce MCP on-board Ethernet #device nge # NatSemi DP83820 gigabit Ethernet #device nve # nVidia nForce MCP on-board Ethernet Networking #device pcn # AMD Am79C97x PCI 10/100 (precedence over 'le') #device re # RealTek 8139C+/8169/8169S/8110S #device rl # RealTek 8129/8139 #device sf # Adaptec AIC-6915 (``Starfire'') #device sis # Silicon Integrated Systems SiS 900/SiS 7016 #device sk # SysKonnect SK-984x & SK-982x gigabit Ethernet #device ste # Sundance ST201 (D-Link DFE-550TX) #device stge # Sundance/Tamarack TC9021 gigabit Ethernet #device ti # Alteon Networks Tigon I/II gigabit Ethernet #device tl # Texas Instruments ThunderLAN #device tx # SMC EtherPower II (83c170 ``EPIC'') #device vge # VIA VT612x gigabit Ethernet device vr # VIA Rhine, Rhine II #device wb # Winbond W89C840F #device xl # 3Com 3c90x (``Boomerang'', ``Cyclone'') # ISA Ethernet NICs. pccard NICs included. #device cs # Crystal Semiconductor CS89x0 NIC # 'device ed' requires 'device miibus' #device ed # NE[12]000, SMC Ultra, 3c503, DS8390 cards #device ex # Intel EtherExpress Pro/10 and Pro/10+ #device ep # Etherlink III based cards #device fe # Fujitsu MB8696x based cards #device ie # EtherExpress 8/16, 3C507, StarLAN 10 etc. #device sn # SMC's 9000 series of Ethernet chips #device xe # Xircom pccard Ethernet # Wireless NIC cards device wlan # 802.11 support device wlan_wep # 802.11 WEP support device wlan_ccmp # 802.11 CCMP support device wlan_tkip # 802.11 TKIP support device wlan_amrr # AMRR transmit rate control algorithm device wlan_scan_ap # 802.11 AP mode scanning device wlan_scan_sta # 802.11 STA mode scanning #device an # Aironet 4500/4800 802.11 wireless NICs. device ath # Atheros pci/cardbus NIC's device ath_hal # Atheros HAL (Hardware Access Layer) device ath_rate_sample # SampleRate tx rate control for ath #device awi # BayStack 660 and others #device ral # Ralink Technology RT2500 wireless NICs. device wi # WaveLAN/Intersil/Symbol 802.11 wireless NICs. #device wl # Older non 802.11 Wavelan wireless NIC. # Pseudo devices. device loop # Network loopback device random # Entropy device device ether # Ethernet support device sl # Kernel SLIP device ppp # Kernel PPP device tun # Packet tunnel. device pty # Pseudo-ttys (telnet etc) device md # Memory "disks" device gif # IPv6 and IPv4 tunneling #device faith # IPv6-to-IPv4 relaying (translation) #device firmware # firmware assist module # The `bpf' device enables the Berkeley Packet Filter. # Be aware of the administrative consequences of enabling this! # Note that 'bpf' is required for DHCP. device bpf # Berkeley packet filter # USB support #device uhci # UHCI PCI->USB interface #device ohci # OHCI PCI->USB interface #device ehci # EHCI PCI->USB interface (USB 2.0) #device usb # USB Bus (required) #device udbp # USB Double Bulk Pipe devices #device ugen # Generic #device uhid # "Human Interface Devices" #device ukbd # Keyboard #device ulpt # Printer #device umass # Disks/Mass storage - Requires scbus and da #device ums # Mouse #device ural # Ralink Technology RT2500USB wireless NICs #device rum # Ralink Technology RT2501USB wireless NICs #device urio # Diamond Rio 500 MP3 player #device uscanner # Scanners # USB Ethernet, requires miibus #device aue # ADMtek USB Ethernet #device axe # ASIX Electronics USB Ethernet #device cdce # Generic USB over Ethernet #device cue # CATC USB Ethernet #device kue # Kawasaki LSI USB Ethernet #device rue # RealTek RTL8150 USB Ethernet # FireWire support #device firewire # FireWire bus code #device sbp # SCSI over FireWire (Requires scbus and da) #device fwe # Ethernet over FireWire (non-standard!) #device fwip # IP over FireWire (RFC 2734,3146) #device dcons # Dumb console driver #device dcons_crom # Configuration ROM for dcons My NanoBSD configuration file is this: NANO_NAME=ALIX_PF NANO_KERNEL=ALIX NANO_SRC=/usr/src NANO_TOOLS=tools/tools/nanobsd NANO_BOOT0CFG="-o nopacket -s 1 -m 3" NANO_NEWFS="-b 4096 -f 512 -i 8192 -O1 -U" NANO_DRIVE=ad0 NANO_IMAGES=2 NANO_CODESIZE=0 NANO_PACKAGE_DIR=${NANO_SRC}/${NANO_TOOLS}/Pkg NANO_RAM_ETCSIZE=10540 NANO_RAM_TMPVARSIZE=10540 FlashDevice sandisk 512 #lyle CONF_INSTALL=' NO_ACPI=YES NO_CVS=YES NO_FORTRAN=YES NO_HTML=YES NO_LPR=YES NO_MAN=YES NO_SENDMAIL=YES NO_SHAREDOCS=YES NO_EXAMPLES=YES NO_CALENDAR=YES NO_MISC=YES NO_SHARE=YES ' CONF_WORLD=' WITHOUT_BLUETOOTH=YES WITHOUT_ZFS=YES WITHOUT_CVS=YES WITHOUT_EXAMPLES=YES WITHOUT_GAMES=YES WITHOUT_HTML=YES WITHOUT_INET6=YES WITHOUT_IPFILTER=YES WITHOUT_IPX=YES WITHOUT_IPX_SUPPORT=YES WITHOUT_NIS=YES WITHOUT_SENDMAIL=YES WITHOUT_USB=YES NO_MODULES=YES NO_INFO=YES ' customize_cmd cust_pkg but my NanoBSD image fail when it try to boot, can someone help me please ? thanks in advance. -- "Linux is for people who hate Windows, BSD is for people who love UNIX". "Social Engineer -> Because there is no patch for human stupidity" "The Unix Guru's View of Sex unzip ; strip ; touch ; grep ; finger ; mount ; fsck ; more ; yes ; umount ; sleep." "Documentation is like sex: when it is good, it is very, very good; and when it is bad, it is better than nothing." From owner-freebsd-embedded@FreeBSD.ORG Sun Oct 26 23:38:22 2008 Return-Path: Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9E9471065676 for ; Sun, 26 Oct 2008 23:38:22 +0000 (UTC) (envelope-from mike@sentex.net) Received: from smarthost1.sentex.ca (smarthost1.sentex.ca [64.7.153.18]) by mx1.freebsd.org (Postfix) with ESMTP id 57B798FC29 for ; Sun, 26 Oct 2008 23:38:22 +0000 (UTC) (envelope-from mike@sentex.net) Received: from lava.sentex.ca (pyroxene.sentex.ca [199.212.134.18]) by smarthost1.sentex.ca (8.14.3/8.14.3) with ESMTP id m9QN1XSD097708; Sun, 26 Oct 2008 19:01:34 -0400 (EDT) (envelope-from mike@sentex.net) Received: from mdt-xp.sentex.net (simeon.sentex.ca [192.168.43.27]) by lava.sentex.ca (8.13.8/8.13.3) with ESMTP id m9QN1XqM077618 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 26 Oct 2008 19:01:33 -0400 (EDT) (envelope-from mike@sentex.net) Message-Id: <200810262301.m9QN1XqM077618@lava.sentex.ca> X-Mailer: QUALCOMM Windows Eudora Version 7.1.0.9 Date: Sun, 26 Oct 2008 19:01:38 -0400 To: Espartano , freebsd-embedded@freebsd.org From: Mike Tancsa In-Reply-To: References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Scanned-By: MIMEDefang 2.64 on 64.7.153.18 Cc: Subject: Re: Problem with CPU Geode panic: CPU class not configured :( X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 Oct 2008 23:38:22 -0000 At 04:35 PM 10/26/2008, Espartano wrote: >hi people, first and foremost apologize me for my bad english. I have >an alix2c3 machine with this features: Hi, Not sure about 7.0R, but 7.1PRE-RELEASE or RELENG_7 works well with the file geode.c from HEAD. (diff below) For CPU options, I use machine i386 cpu I486_CPU cpu I586_CPU option CPU_GEODE option CPU_ELAN option CPU_SOEKRIS (Not sure if the ELAN part is needed, probably not) The glxsb works well as does the watchdogd driver # cat /var/run/dmesg.boot Copyright (c) 1992-2008 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 7.1-PRERELEASE #1: Fri Oct 24 16:14:31 EDT 2008 mdtancsa@buildhost.sentex.ca:/usr/obj/nanobsd.alix/usr/src/sys/nano5501 Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: Geode(TM) Integrated Processor by AMD PCS (498.05-MHz 586-class CPU) Origin = "AuthenticAMD" Id = 0x5a2 Stepping = 2 Features=0x88a93d AMD Features=0xc0400000 real memory = 268435456 (256 MB) avail memory = 253198336 (241 MB) pnpbios: Bad PnP BIOS data checksum K6-family MTRR support enabled (2 registers) cryptosoft0: on motherboard pcib0: pcibus 0 on motherboard pci0: on pcib0 Geode LX: PC Engines ALIX.2 v0.99 tinyBIOS V1.4a (C)1997-2007 glxsb0: mem 0xefff4000-0xefff7fff irq 9 at device 1.2 on pci0 vr0: port 0x1000-0x10ff mem 0xe0000000-0xe00000ff irq 10 at device 9.0 on pci0 vr0: Quirks: 0x6 vr0: Revision: 0x96 miibus0: on vr0 ukphy0: PHY 1 on miibus0 ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto vr0: Ethernet address: 00:0d:b9:15:6c:48 vr0: [ITHREAD] vr1: port 0x1400-0x14ff mem 0xe0040000-0xe00400ff irq 11 at device 10.0 on pci0 vr1: Quirks: 0x6 vr1: Revision: 0x96 miibus1: on vr1 ukphy1: PHY 1 on miibus1 ukphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto vr1: Ethernet address: 00:0d:b9:15:6c:49 vr1: [ITHREAD] isab0: port 0x6000-0x6007,0x6100-0x61ff,0x6200-0x623f,0x9d00-0x9d7f,0x9c00-0x9c3f at device 15.0 on pci0 isa0: on isab0 atapci0: port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xff00-0xff0f at device 15.2 on pci0 ata0: on atapci0 ata0: [ITHREAD] ata1: on atapci0 ata1: [ITHREAD] ohci0: mem 0xefffe000-0xefffefff irq 15 at device 15.4 on pci0 ohci0: [GIANT-LOCKED] ohci0: [ITHREAD] usb0: OHCI version 1.0, legacy support usb0: on ohci0 usb0: USB revision 1.0 uhub0: on usb0 uhub0: 4 ports with 4 removable, self powered ehci0: mem 0xefffd000-0xefffdfff irq 15 at device 15.5 on pci0 ehci0: [GIANT-LOCKED] ehci0: [ITHREAD] usb1: EHCI version 1.0 usb1: companion controller, 4 ports each: usb0 usb1: on ehci0 usb1: USB revision 2.0 uhub1: on usb1 uhub1: 4 ports with 4 removable, self powered cpu0 on motherboard orm0: at iomem 0xe0000-0xea7ff pnpid ORM0000 on isa0 uart4: <16550 or compatible> at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0 uart4: [FILTER] uart4: console (9600,n,8,1) RTC BIOS diagnostic error 80 Timecounter "TSC" frequency 498052729 Hz quality 800 Timecounters tick every 1.000 msec IPsec: Initialized Security Association Processing. ad0: 1953MB at ata0-master PIO4 Trying to mount root from ufs:/dev/ad0s1a --- sys/i386/i386/geode.c 2007-09-18 05:19:44.000000000 -0400 +++ sys/i386/i386/geode.c.good 2008-09-12 17:13:18.000000000 -0400 @@ -25,7 +25,7 @@ */ #include -__FBSDID("$FreeBSD: src/sys/i386/i386/geode.c,v 1.10 2007/09/18 09:19:44 phk Exp $"); +__FBSDID("$FreeBSD: src/sys/i386/i386/geode.c,v 1.11 2008/02/10 19:14:42 phk Exp $"); #include #include @@ -40,41 +40,50 @@ #include static struct bios_oem bios_soekris = { - { 0xf0000, 0xf1000 }, - { - { "Soekris", 0, 8 }, /* Soekris Engineering. */ - { "net4", 0, 8 }, /* net45xx */ - { "comBIOS", 0, 54 }, /* comBIOS ver. 1.26a 20040819 ... */ - { NULL, 0, 0 }, - } + { 0xf0000, 0xf1000 }, + { + { "Soekris", 0, 8 }, /* Soekris Engineering. */ + { "net4", 0, 8 }, /* net45xx */ + { "comBIOS", 0, 54 }, /* comBIOS ver. 1.26a 20040819 ... */ + { NULL, 0, 0 }, + } }; static struct bios_oem bios_soekris_55 = { - { 0xf0000, 0xf1000 }, - { - { "Soekris", 0, 8 }, /* Soekris Engineering. */ - { "net5", 0, 8 }, /* net5xxx */ - { "comBIOS", 0, 54 }, /* comBIOS ver. 1.26a 20040819 ... */ - { NULL, 0, 0 }, - } + { 0xf0000, 0xf1000 }, + { + { "Soekris", 0, 8 }, /* Soekris Engineering. */ + { "net5", 0, 8 }, /* net5xxx */ + { "comBIOS", 0, 54 }, /* comBIOS ver. 1.26a 20040819 ... */ + { NULL, 0, 0 }, + } }; static struct bios_oem bios_pcengines = { - { 0xf9000, 0xfa000 }, - { - { "PC Engines WRAP", 0, 28 }, /* PC Engines WRAP.1C v1.03 */ - { "tinyBIOS", 0, 28 }, /* tinyBIOS V1.4a (C)1997-2003 */ - { NULL, 0, 0 }, - } + { 0xf9000, 0xfa000 }, + { + { "PC Engines WRAP", 0, 28 }, /* PC Engines WRAP.1C v1.03 */ + { "tinyBIOS", 0, 28 }, /* tinyBIOS V1.4a (C)1997-2003 */ + { NULL, 0, 0 }, + } +}; + +static struct bios_oem bios_pcengines_55 = { + { 0xf9000, 0xfa000 }, + { + { "PC Engines ALIX", 0, 28 }, /* PC Engines ALIX */ + { "tinyBIOS", 0, 28 }, /* tinyBIOS V1.4a (C)1997-2005 */ + { NULL, 0, 0 }, + } }; static struct bios_oem bios_advantech = { - { 0xfe000, 0xff000 }, - { - { "**** PCM-582", 5, 33 }, /* PCM-5823 BIOS V1.12 ... */ - { "GXm-Cx5530", -11, 35 }, /* 06/07/2002-GXm-Cx5530... */ - { NULL, 0, 0 }, - } + { 0xfe000, 0xff000 }, + { + { "**** PCM-582", 5, 33 }, /* PCM-5823 BIOS V1.12 ... */ + { "GXm-Cx5530", -11, 35 }, /* 06/07/2002-GXm-Cx5530... */ + { NULL, 0, 0 }, + } }; static unsigned cba; @@ -117,6 +126,11 @@ } a = rdmsr(0x5140000c); + if (bit >= 16) { + a += 0x80; + bit -= 16; + } + if (onoff) outl(a, 1 << bit); else @@ -256,11 +270,13 @@ * by the bios, see p161 in data sheet. */ cba = pci_read_config(self, 0x64, 4); - printf("Geode CBA@ 0x%x\n", cba); + if (bootverbose) + printf("Geode CBA@ 0x%x\n", cba); geode_counter = cba + 0x08; outl(cba + 0x0d, 2); - printf("Geode rev: %02x %02x\n", - inb(cba + 0x3c), inb(cba + 0x3d)); + if (bootverbose) + printf("Geode rev: %02x %02x\n", + inb(cba + 0x3c), inb(cba + 0x3d)); tc_init(&geode_timecounter); EVENTHANDLER_REGISTER(watchdog_list, geode_watchdog, NULL, 0); @@ -270,13 +286,14 @@ case 0x0510100b: gpio = pci_read_config(self, PCIR_BAR(0), 4); gpio &= ~0x1f; - printf("Geode GPIO@ = %x\n", gpio); - if ( bios_oem_strings(&bios_soekris, - bios_oem, BIOS_OEM_MAXLEN) > 0 ) { + if (bootverbose) + printf("Geode GPIO@ = %x\n", gpio); + if (bios_oem_strings(&bios_soekris, + bios_oem, sizeof bios_oem) > 0 ) { led1b = 20; led1 = led_create(led_func, &led1b, "error"); - } else if ( bios_oem_strings(&bios_pcengines, - bios_oem, BIOS_OEM_MAXLEN) > 0 ) { + } else if (bios_oem_strings(&bios_pcengines, + bios_oem, sizeof bios_oem) > 0 ) { led1b = -2; led2b = -3; led3b = -18; @@ -289,27 +306,41 @@ */ led_func(&led1b, 1); } - if ( strlen(bios_oem) ) + if (*bios_oem) printf("Geode %s\n", bios_oem); break; case 0x01011078: - if ( bios_oem_strings(&bios_advantech, - bios_oem, BIOS_OEM_MAXLEN) > 0 ) { + if (bios_oem_strings(&bios_advantech, + bios_oem, sizeof bios_oem) > 0 ) { printf("Geode %s\n", bios_oem); EVENTHANDLER_REGISTER(watchdog_list, advantech_watchdog, NULL, 0); } break; case 0x20801022: - if ( bios_oem_strings(&bios_soekris_55, - bios_oem, BIOS_OEM_MAXLEN) > 0 ) { - printf("Geode LX: %s\n", bios_oem); + if (bios_oem_strings(&bios_soekris_55, + bios_oem, sizeof bios_oem) > 0 ) { led1b = 6; led1 = led_create(cs5536_led_func, &led1b, "error"); + } else if (bios_oem_strings(&bios_pcengines_55, + bios_oem, sizeof bios_oem) > 0 ) { + led1b = -6; + led2b = -25; + led3b = -27; + led1 = led_create(cs5536_led_func, &led1b, "led1"); + led2 = led_create(cs5536_led_func, &led2b, "led2"); + led3 = led_create(cs5536_led_func, &led3b, "led3"); + /* + * Turn on first LED so we don't make + * people think their box just died. + */ + cs5536_led_func(&led1b, 1); } - printf("MFGPT bar: %jx\n", rdmsr(0x5140000d)); - EVENTHANDLER_REGISTER(watchdog_list, cs5536_watchdog, - NULL, 0); + if (*bios_oem) + printf("Geode LX: %s\n", bios_oem); + if (bootverbose) + printf("MFGPT bar: %jx\n", rdmsr(0x5140000d)); + EVENTHANDLER_REGISTER(watchdog_list, cs5536_watchdog, NULL, 0); break; } return (ENXIO); From owner-freebsd-embedded@FreeBSD.ORG Sun Oct 26 23:48:12 2008 Return-Path: Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4A57B1065672 for ; Sun, 26 Oct 2008 23:48:12 +0000 (UTC) (envelope-from mah@jump-ing.de) Received: from mail.ud03.udmedia.de (ud03.udmedia.de [194.117.254.43]) by mx1.freebsd.org (Postfix) with ESMTP id A498B8FC14 for ; Sun, 26 Oct 2008 23:48:11 +0000 (UTC) (envelope-from mah@jump-ing.de) DKIM-Signature: v=1; a=rsa-sha256; c=simple; d=mail.ud03.udmedia.de; h= in-reply-to:references:mime-version:content-type:message-id:cc: content-transfer-encoding:from:subject:date:to; q=dns/txt; s= beta; bh=p9g31SvGKZgwYDt0w6TsNmweJ5F+SemEvtgSwtPWkBM=; b=rRNP80h oJZFs0DqYZLFfnFLB3xA1T213XNR9sYIjvMqm6BUvFqIG9ChIP1NKXs1r7PbUtpl qZHb/agRRYUTyULLnRsrw06j8Q52pG1AdXXtftl/cxCGuVcjMPu30cEnq3uZMkdU FxvpegQud7Daa4mvtuV1nXgqdRMBBd+HL9v8= Received: (qmail 23340 invoked from network); 27 Oct 2008 00:48:08 +0100 Received: from unknown (HELO ?10.0.0.50?) (ud03?291p1@78.42.122.222) by mail.ud03.udmedia.de with ESMTPA; 27 Oct 2008 00:48:08 +0100 In-Reply-To: References: Mime-Version: 1.0 (Apple Message framework v753.1) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <76CEC935-4D7E-4CEB-9A5D-49D52DCE7183@jump-ing.de> Content-Transfer-Encoding: 7bit From: Markus Hitter Date: Mon, 27 Oct 2008 00:48:07 +0100 To: Espartano X-Mailer: Apple Mail (2.753.1) Cc: freebsd-embedded@freebsd.org Subject: Re: Problem with CPU Geode panic: CPU class not configured :( X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 Oct 2008 23:48:12 -0000 Am 26.10.2008 um 21:35 schrieb Espartano: > CPU: Geode(TM) Integrated Processor by AMD PCS (Unknown-class CPU) > Origin = "AuthenticAMD" Id = 0x5a2 Stepping = 2 > Features=0x88a93d > AMD Features=0xc0400000 > panic: CPU class not configured Hmm. The CPU class of the LX800 is I586_CPU, no others required. See a snippet from my own, very similar, Flepo Alpha: FreeBSD 7.0-RELEASE #0: Mon Oct 27 02:01:45 GMT-2 2008 root@fortinybsd.jump-ing.de:/usr/obj/usr/src/sys/TINYBSD Timecounter "i8254" frequency 1193117 Hz quality 0 CPU: Geode(TM) Integrated Processor by AMD PCS (498.03-MHz 586-class CPU) Origin = "AuthenticAMD" Id = 0x5a2 Stepping = 2 Features=0x88a93d AMD Features=0xc0400000 real memory = 469434368 (447 MB) Somehow, the class of your CPU isn't recognized, "Unknown-class" doesn't sound sane. Are there newer firmwares available? HTH, MarKus - - - - - - - - - - - - - - - - - - - Dipl. Ing. Markus Hitter http://www.jump-ing.de/ From owner-freebsd-embedded@FreeBSD.ORG Mon Oct 27 03:18:54 2008 Return-Path: Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A6C36106566B for ; Mon, 27 Oct 2008 03:18:54 +0000 (UTC) (envelope-from espartano.mail@gmail.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.153]) by mx1.freebsd.org (Postfix) with ESMTP id 3570F8FC17 for ; Mon, 27 Oct 2008 03:18:53 +0000 (UTC) (envelope-from espartano.mail@gmail.com) Received: by fg-out-1718.google.com with SMTP id l26so1675498fgb.35 for ; Sun, 26 Oct 2008 20:18:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=FFibmsgl/qFDn6chFZFPvubLAhH2HSge/+N10RmrOk4=; b=abUCtyRr83DXGWjVyP4cDlEWN56S2nQIyughB0M/W+gfeWO0wr3gh+lx30CnB8SBvo 86ZZaT/OWPYMopLNoc3tHWwR5Xh1hYugd6AEBqWptsJoDkIjD+SIx9dB138iUc4NpXMO Ta60K+eghsIliM16AQx0e0PQTMNfFO9EPFk8Q= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=ASjil5T0cJUvcgt91dToHb2Im2lhymhbwKOzsKe41bnHbQf/Pa/8FGWhlHxeIwtm5f X7V1W4f+FJyxpl5Py9JJ6oyedu2/HHd218z1sI5M9ckLjNgpd5C3OJbjLdzMV4cVsvqu BLOUYsi5MwbZv/toP8KIVmjUpRrB7q9aEMhEc= Received: by 10.86.29.8 with SMTP id c8mr2748398fgc.19.1225077532757; Sun, 26 Oct 2008 20:18:52 -0700 (PDT) Received: by 10.86.65.7 with HTTP; Sun, 26 Oct 2008 20:18:52 -0700 (PDT) Message-ID: Date: Sun, 26 Oct 2008 21:18:52 -0600 From: Espartano To: "Markus Hitter" In-Reply-To: <76CEC935-4D7E-4CEB-9A5D-49D52DCE7183@jump-ing.de> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <76CEC935-4D7E-4CEB-9A5D-49D52DCE7183@jump-ing.de> Cc: freebsd-embedded@freebsd.org Subject: Re: Problem with CPU Geode panic: CPU class not configured :( X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Oct 2008 03:18:54 -0000 On Sun, Oct 26, 2008 at 5:48 PM, Markus Hitter wrote: > > Am 26.10.2008 um 21:35 schrieb Espartano: > >> CPU: Geode(TM) Integrated Processor by AMD PCS (Unknown-class CPU) >> Origin = "AuthenticAMD" Id = 0x5a2 Stepping = 2 >> Features=0x88a93d >> AMD Features=0xc0400000 >> panic: CPU class not configured > > Hmm. The CPU class of the LX800 is I586_CPU, no others required. > thanks for your answer, i had removed the option: options CPU_GEODE from the kernel config file then nanobsd image boot ok :) -- "Linux is for people who hate Windows, BSD is for people who love UNIX". "Social Engineer -> Because there is no patch for human stupidity" "The Unix Guru's View of Sex unzip ; strip ; touch ; grep ; finger ; mount ; fsck ; more ; yes ; umount ; sleep." "Documentation is like sex: when it is good, it is very, very good; and when it is bad, it is better than nothing." From owner-freebsd-embedded@FreeBSD.ORG Mon Oct 27 11:07:10 2008 Return-Path: Delivered-To: freebsd-embedded@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 58E4E1065679 for ; Mon, 27 Oct 2008 11:07:10 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 45AF48FC29 for ; Mon, 27 Oct 2008 11:07:10 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id m9RB7AEM001901 for ; Mon, 27 Oct 2008 11:07:10 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id m9RB79d8001897 for freebsd-embedded@FreeBSD.org; Mon, 27 Oct 2008 11:07:09 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 27 Oct 2008 11:07:09 GMT Message-Id: <200810271107.m9RB79d8001897@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-embedded@FreeBSD.org Cc: Subject: Current problem reports assigned to freebsd-embedded@FreeBSD.org X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Oct 2008 11:07:10 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o kern/101228 embedded [nanobsd] [patch] Two more entries for FlashDevice.sub o misc/52256 embedded [picobsd] picobsd build script does not read in user/s o kern/42728 embedded [picobsd] many problems in src/usr.sbin/ppp/* after c o misc/15876 embedded [picobsd] PicoBSD message of the day problems 4 problems total. From owner-freebsd-embedded@FreeBSD.ORG Mon Oct 27 12:45:46 2008 Return-Path: Delivered-To: freebsd-embedded@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 05B61106566C for ; Mon, 27 Oct 2008 12:45:46 +0000 (UTC) (envelope-from mah@jump-ing.de) Received: from mail.ud03.udmedia.de (ud03.udmedia.de [194.117.254.43]) by mx1.freebsd.org (Postfix) with ESMTP id 61E068FC23 for ; Mon, 27 Oct 2008 12:45:45 +0000 (UTC) (envelope-from mah@jump-ing.de) DKIM-Signature: v=1; a=rsa-sha256; c=simple; d=mail.ud03.udmedia.de; h= mime-version:in-reply-to:references:content-type:message-id: content-transfer-encoding:from:subject:date:to; q=dns/txt; s= beta; bh=QPiCRn9lvfZ9VzzHktFW2HZFamlsOGal2c7/oGrAgSE=; b=hXGh8KS M96J2ow+ipyD+BNkPQX9AEb2SQqHYvyDAvAaLny4F9cv+cnJVS+Opu6R3IJR9i9F 2x39WbAdNxC4pwTMKnmPW9tsOU4LcUw2KBizLdDJbhdI9vBe3y1OJkXNds2BMXlY zmEs3WLFA0Um2fPEIjeRinstlIPZBVKDjOY0= Received: (qmail 21174 invoked from network); 27 Oct 2008 13:45:42 +0100 Received: from unknown (HELO ?10.0.0.50?) (ud03?291p1@78.42.122.222) by mail.ud03.udmedia.de with ESMTPA; 27 Oct 2008 13:45:42 +0100 Mime-Version: 1.0 (Apple Message framework v753.1) In-Reply-To: <200810271107.m9RB79d8001897@freefall.freebsd.org> References: <200810271107.m9RB79d8001897@freefall.freebsd.org> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <52C0B09D-DABF-44C1-881B-8F4F38588511@jump-ing.de> Content-Transfer-Encoding: 7bit From: Markus Hitter Date: Mon, 27 Oct 2008 13:45:41 +0100 To: freebsd-embedded@FreeBSD.org X-Mailer: Apple Mail (2.753.1) Cc: Subject: Re: Current problem reports assigned to freebsd-embedded@FreeBSD.org X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Oct 2008 12:45:46 -0000 Am 27.10.2008 um 11:07 schrieb FreeBSD bugmaster: > S Tracker Resp. Description > ---------------------------------------------------------------------- > ---------- > o kern/101228 embedded [nanobsd] [patch] Two more entries for > FlashDevice.sub > o misc/52256 embedded [picobsd] picobsd build script does not > read in user/s > o kern/42728 embedded [picobsd] many problems in src/usr.sbin/ > ppp/* after c > o misc/15876 embedded [picobsd] PicoBSD message of the day > problems Being not involved in FreeBSD's central development, I'm wondering why those bugs don't get fixed/commited. Three of those four bugs have easily reviewable patches attached, so finding a fix can't be the reason for the delay. Locally I've made tinybsd much speedier, does it make sense to commit the result or even splitting the changes into small, reviewable pieces? MarKus - - - - - - - - - - - - - - - - - - - Dipl. Ing. Markus Hitter http://www.jump-ing.de/ From owner-freebsd-embedded@FreeBSD.ORG Mon Oct 27 17:04:47 2008 Return-Path: Delivered-To: freebsd-embedded@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C65B3106566C for ; Mon, 27 Oct 2008 17:04:47 +0000 (UTC) (envelope-from linimon@lonesome.com) Received: from mail.soaustin.net (lefty.soaustin.net [66.135.55.46]) by mx1.freebsd.org (Postfix) with ESMTP id A8DD28FC0C for ; Mon, 27 Oct 2008 17:04:47 +0000 (UTC) (envelope-from linimon@lonesome.com) Received: by mail.soaustin.net (Postfix, from userid 502) id 853B38C0DC; Mon, 27 Oct 2008 11:43:14 -0500 (CDT) Date: Mon, 27 Oct 2008 11:43:14 -0500 To: Markus Hitter Message-ID: <20081027164314.GB21631@soaustin.net> References: <200810271107.m9RB79d8001897@freefall.freebsd.org> <52C0B09D-DABF-44C1-881B-8F4F38588511@jump-ing.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <52C0B09D-DABF-44C1-881B-8F4F38588511@jump-ing.de> User-Agent: Mutt/1.5.13 (2006-08-11) From: linimon@lonesome.com (Mark Linimon) Cc: freebsd-embedded@FreeBSD.org Subject: Re: Current problem reports assigned to freebsd-embedded@FreeBSD.org X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Oct 2008 17:04:47 -0000 > I'm wondering why those bugs don't get fixed/commited. Simple lack of sufficient developer time. I'm always trying to figure out ways to get more people involved, so keep posting PRs and maybe someone will work with you. mcl From owner-freebsd-embedded@FreeBSD.ORG Mon Oct 27 17:52:06 2008 Return-Path: Delivered-To: freebsd-embedded@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6391810656C6 for ; Mon, 27 Oct 2008 17:52:06 +0000 (UTC) (envelope-from gonzo@bluezbox.com) Received: from core.tav.kiev.ua (tavex.colocall.com [62.149.10.42]) by mx1.freebsd.org (Postfix) with ESMTP id E54308FC23 for ; Mon, 27 Oct 2008 17:52:05 +0000 (UTC) (envelope-from gonzo@bluezbox.com) Received: from s01060021299bf294.vc.shawcable.net ([24.87.45.120] helo=jeeves.bluezbox.com) by core.tav.kiev.ua with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.52 (FreeBSD)) id 1KuVxI-00027s-Di; Mon, 27 Oct 2008 19:32:41 +0200 Message-ID: <4905FB1D.7000806@bluezbox.com> Date: Mon, 27 Oct 2008 10:32:13 -0700 From: Oleksandr Tymoshenko User-Agent: Thunderbird 2.0.0.16 (X11/20080831) MIME-Version: 1.0 To: Markus Hitter , freebsd-embedded@FreeBSD.org References: <200810271107.m9RB79d8001897@freefall.freebsd.org> <52C0B09D-DABF-44C1-881B-8F4F38588511@jump-ing.de> In-Reply-To: <52C0B09D-DABF-44C1-881B-8F4F38588511@jump-ing.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Core-Spam-Level: - X-Core-Spam-Report: Spam detection software, running on the system "core.tav.kiev.ua", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Markus Hitter wrote: > > Am 27.10.2008 um 11:07 schrieb FreeBSD bugmaster: > >> S Tracker Resp. Description >> >> >> o kern/101228 embedded [nanobsd] [patch] Two more entries for >> FlashDevice.sub >> o misc/52256 embedded [picobsd] picobsd build script does not read >> in user/s >> o kern/42728 embedded [picobsd] many problems in >> src/usr.sbin/ppp/* after c >> o misc/15876 embedded [picobsd] PicoBSD message of the day problems > > Being not involved in FreeBSD's central development, I'm wondering why > those bugs don't get fixed/commited. Three of those four bugs have > easily reviewable patches attached, so finding a fix can't be the reason > for the delay. picosbsd is not widely used these days, so it's not that critical. Also provided patches are a bit outdated and require some work to apply. I started fixing these issues just to get rid of this annoying weekly email but was distracted by other things. [...] Content analysis details: (-1.8 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.8 ALL_TRUSTED Passed through trusted hosts only via SMTP -0.2 BAYES_40 BODY: Bayesian spam probability is 20 to 40% [score: 0.3022] 1.5 DNS_FROM_SECURITYSAGE RBL: Envelope sender in blackholes.securitysage.com -1.4 AWL AWL: From: address is in the auto white-list Cc: Subject: Re: Current problem reports assigned to freebsd-embedded@FreeBSD.org X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Oct 2008 17:52:06 -0000 Markus Hitter wrote: > > Am 27.10.2008 um 11:07 schrieb FreeBSD bugmaster: > >> S Tracker Resp. Description >> -------------------------------------------------------------------------------- >> >> o kern/101228 embedded [nanobsd] [patch] Two more entries for >> FlashDevice.sub >> o misc/52256 embedded [picobsd] picobsd build script does not read >> in user/s >> o kern/42728 embedded [picobsd] many problems in >> src/usr.sbin/ppp/* after c >> o misc/15876 embedded [picobsd] PicoBSD message of the day problems > > Being not involved in FreeBSD's central development, I'm wondering why > those bugs don't get fixed/commited. Three of those four bugs have > easily reviewable patches attached, so finding a fix can't be the reason > for the delay. picosbsd is not widely used these days, so it's not that critical. Also provided patches are a bit outdated and require some work to apply. I started fixing these issues just to get rid of this annoying weekly email but was distracted by other things. From owner-freebsd-embedded@FreeBSD.ORG Tue Oct 28 05:38:49 2008 Return-Path: Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 14B3410656A4 for ; Tue, 28 Oct 2008 05:38:49 +0000 (UTC) (envelope-from espartano.mail@gmail.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.152]) by mx1.freebsd.org (Postfix) with ESMTP id 426988FC1A for ; Tue, 28 Oct 2008 05:38:47 +0000 (UTC) (envelope-from espartano.mail@gmail.com) Received: by fg-out-1718.google.com with SMTP id l26so2067133fgb.35 for ; Mon, 27 Oct 2008 22:38:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type:content-transfer-encoding :content-disposition; bh=ZHegOmA4TZuXOf96Vj9RwiMuBXdakcs5vp++77prY3M=; b=lbfwmBx17IeLSjhcOcIp6RIyXU1TyufwK9RjwUM5FwL5b6es/5WMZeQpZTHv5U53g3 XytD6rLC//b4az18Ikgfla88aKbLN2wrgkzoLprhPwBgF041IjsssMcbNieySbbCVsxf bEZg+BDP/nr1iW5mNEVfq60uaf5pwKv5m3JSA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition; b=PhR5athnvlvh5aS2RuUWh3CuDndtwJqwVumHy6QodtNKOp7yDiFe+dFSNsmcT079oE sV+8GbwgY8+gEPe6yIICmleBlSAR7fuokU9SzE/p/gAomCH5GSxZAZRM75r595jkOwPm o5W8HCPSWZ2daOIgGyxtcsG1g/1dfToL609+w= Received: by 10.86.82.6 with SMTP id f6mr4079619fgb.10.1225172326669; Mon, 27 Oct 2008 22:38:46 -0700 (PDT) Received: by 10.86.31.17 with HTTP; Mon, 27 Oct 2008 22:38:46 -0700 (PDT) Message-ID: Date: Mon, 27 Oct 2008 23:38:46 -0600 From: Espartano To: freebsd-embedded@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Subject: Problem with NanoBSD login X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Oct 2008 05:38:49 -0000 hi people, i have created a NanoBSD image, it boot pretty well. I'm trying to authenticate as root using a serial console but NanoBSD doesn't show the correct login prompt, instead NanoBSD show strange chars and it doesn't let me login in the system. this is what NanoBSD show at boot time: Copyright (c) 1992-2008 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 7.0-RELEASE-p5 #0: Mon Oct 27 01:48:08 CST 2008 root@:/usr/obj/nanobsd.ALIX_PF/usr/src/sys/ALIX Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: Geode(TM) Integrated Processor by AMD PCS (498.05-MHz 586-class CPU) Origin =3D "AuthenticAMD" Id =3D 0x5a2 Stepping =3D 2 Features=3D0x88a93d AMD Features=3D0xc0400000 real memory =3D 268435456 (256 MB) avail memory =3D 253214720 (241 MB) pnpbios: Bad PnP BIOS data checksum K6-family MTRR support enabled (2 registers) kbd0 at kbdmux0 ath_hal: 0.9.20.3 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413, RF5413) cryptosoft0: on motherboard cpu0 on motherboard pcib0: pcibus 0 on motherboard pci0: on pcib0 pci0: at device 1.2 (no driver atta= ched) vr0: port 0x1000-0x10ff mem 0xe0000000-0xe00000ff irq 10 at device 9.0 on pci0 vr0: Quirks: 0x2 miibus0: on vr0 ukphy0: PHY 1 on miibus0 ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto vr0: using obsoleted if_watchdog interface vr0: Ethernet address: 00:0d:b9:12:6f:00 vr0: [ITHREAD] vr1: port 0x1400-0x14ff mem 0xe0040000-0xe00400ff irq 11 at device 10.0 on pci0 vr1: Quirks: 0x2 miibus1: on vr1 ukphy1: PHY 1 on miibus1 ukphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto vr1: using obsoleted if_watchdog interface vr1: Ethernet address: 00:0d:b9:12:6f:01 vr1: [ITHREAD] vr2: port 0x1800-0x18ff mem 0xe0080000-0xe00800ff irq 12 at device 11.0 on pci0 vr2: Quirks: 0x2 miibus2: on vr2 ukphy2: PHY 1 on miibus2 ukphy2: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto vr2: using obsoleted if_watchdog interface vr2: Ethernet address: 00:0d:b9:12:6f:02 vr2: [ITHREAD] isab0: port 0x6000-0x6007,0x6100-0x61ff,0x6200-0x623f,0x9d00-0x9d7f,0x9c00-0x9c3f at device 15.0 on pci0 isa0: on isab0 atapci0: port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xff00-0xff0f at device 15.2 on pci0 ata0: on atapci0 ata0: [ITHREAD] ata1: on atapci0 ata1: [ITHREAD] pci0: at device 15.3 (no driver attached) pci0: at device 15.4 (no driver attached) pci0: at device 15.5 (no driver attached) pmtimer0 on isa0 orm0: at iomem 0xe0000-0xeafff pnpid ORM0000 on isa0 ppc0: parallel port not found. sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0 sio0: type 16550A, console sio0: [FILTER] sio1: configured irq 3 not in bitmap of probed irqs 0 sio1: port may not be enabled RTC BIOS diagnostic '''=F7GG'=E7(R)8u=DAmecounter "TSC" frequency 498052832 Hz quality 800 Timecounters tick every 1.000 msec Fast IPsec: Initialized Security Association Processing. ad0: 488MB at ata0-master WDMA2 Trying to mount root from ufs:/dev/ad0s1a cp: utimes: /var/var: No such file or directory cp: chown: /var/var: No such file or directory cp: chmod: /var/var: No such file or directory cp: chflags: /var/var: No such file or directory Loading configuration files. No suitable dump device was found. Entropy harvesting: interrupts ethernet point_to_point kickstart. Starting file system checks: /dev/ad0s1a: FILE SYSTEM CLEAN; SKIPPING CHECKS /dev/ad0s1a: clean, 547545 free (13473 frags, 66759 blocks, 1.4% fragmentat= ion) /dev/ad0s3: FILE SYSTEM CLEAN; SKIPPING CHECKS /dev/ad0s3: clean, 2829 free (21 frags, 351 blocks, 0.7% fragmentation) Setting hostuuid: 7ddaa94a-bfde-11d3-a30a-000db9126f00. Setting hostid: 0xd83cf1ce. Mounting local file systems:. Setting hostname: NANOBSD. net.inet6.ip6.auto_linklocal: 1 -> 0 vr: link state changed to UP DHCPDISCOVER on vr0 to 255.255.255.255 port 67 interval 3 DHCPOFFER from 192.168.1.254 DHCPREQUEST on vr0 to 255.255.255.255 port 67 DHCPACK from 192.168.1.254 bound to 192.168.1.66 -- renewal in 43200 seconds.v r1: link state changed to DOWN lo0: flags=3D8049 metric 0 mtu 16384 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x7 inet6 ::1 prefixlen 128 inet 127.0.0.1 netmask 0xff000000 vr0: flags=3D8843 metric 0 mtu 1500 options=3Db ether 00:0d:b9:12:6f:00 inet 192.168.1.66 netmask 0xffffff00 broadcast 192.168.1.255 media: Ethernet autoselect (100baseTX ) status: active vr1: flags=3D8843 metric 0 mtu 1500 options=3Db ether 00:0d:b9:12:6f:01 inet 1v72.16.1.1 netmasrk 0xffffff00 bro2adcast 172.16.1.:255 media: Eth ernet autoselectl (none) statusi: no carrier Adnditional routingk options:. Star ting devd. state changed to DOWN Generating host.conf. Additional IP options:. Mounting NFS file systems:. ELF ldconfig path: /lib /usr/lib /usr/local/lib a.out ldconfig path: /usr/lib/aout ldconfig: /usr/lib/aout: No such file or directory Creating and/or trimming log files:. Starting syslogd. /etc/rc: WARNING: Dump device does not exist. Savecore not run. Initial i386 initialization:. Additional ABI support:. Clearing /tmp (X related). Starting local daemons:. Updating motd. Mounting late file systems:. Generating public/private rsa1 key pair. Your identification has been saved in /etc/ssh/ssh_host_key. Your public key has been saved in /etc/ssh/ssh_host_key.pub. The key fingerprint is: 70:c3:d5:d2:8d:d3:68:d7:e8:91:fb:16:b0:1d:50:70 root@NANOBSD Generating public/private dsa key pair. Your identification has been saved in /etc/ssh/ssh_host_dsa_key. Your public key has been saved in /etc/ssh/ssh_host_dsa_key.pub. The key fingerprint is: 96:d8:bf:d2:39:30:5b:b7:9b:12:00:1d:67:84:f4:ff root@NANOBSD Generating public/private rsa key pair. Your identification has been saved in /etc/ssh/ssh_host_rsa_key. Your public key has been saved in /etc/ssh/ssh_host_rsa_key.pub. The key fingerprint is: fe:51:26:b5:12:7b:1f:ab:8e:6a:be:a6:3c:1a:c4:63 root@NANOBSD Starting sshd. mailwrapper: cannot exec /usr/libexec/sendmail/sendmail: No such file or directory /etc/rc: WARNING: /etc/mail/submit.cf is not readable. Starting cron. Local package initialization:. Starting background file system checks in 60 seconds. Sat Jan 1 00:01:04 UTC 2000 =E0=E0=E0=E0 At this point the keyboard doesn't respond me and i can't authenticate as root and change the password for use ssh later, however i believe that NanoBSD has not crashed or panic because it respond pings even more it respond ssh request but the root acount doesn't have a password :( This is my kernel config file: machine i386 cpu I486_CPU cpu I586_CPU #cpu I686_CPU ident ALIX_FIREWALL #options CPU_GEODE # To statically compile in device wiring instead of /boot/device.hints #hints "GENERIC.hints" # Default places to look for device= s. #makeoptions DEBUG=3D-g # Build kernel with gdb(1) debug = symbols options SCHED_ULE # 4BSD scheduler options PREEMPTION # Enable kernel thread preemption options INET # InterNETworking options INET6 # IPv6 communications protocols options SCTP # Stream Control Transmission Proto= col options FFS # Berkeley Fast Filesystem options SOFTUPDATES # Enable FFS soft updates support options UFS_ACL # Support for access control lists options UFS_DIRHASH # Improve performance on big direct= ories options UFS_GJOURNAL # Enable gjournal-based UFS journal= ing options MD_ROOT # MD is a potential root device #options NFSCLIENT # Network Filesystem Client #options NFSSERVER # Network Filesystem Server #options NFS_ROOT # NFS usable as /, requires NFSCLIE= NT #options MSDOSFS # MSDOS Filesystem #options CD9660 # ISO 9660 Filesystem options PROCFS # Process filesystem (requires PSEU= DOFS) options PSEUDOFS # Pseudo-filesystem framework options GEOM_PART_GPT # GUID Partition Tables. options GEOM_LABEL # Provides labelization options COMPAT_43TTY # BSD 4.3 TTY compat [KEEP THIS!] options COMPAT_FREEBSD4 # Compatible with FreeBSD4 options COMPAT_FREEBSD5 # Compatible with FreeBSD5 options COMPAT_FREEBSD6 # Compatible with FreeBSD6 #options SCSI_DELAY=3D5000 # Delay (in ms) before probing SC= SI options KTRACE # ktrace(1) support options SYSVSHM # SYSV-style shared memory options SYSVMSG # SYSV-style message queues options SYSVSEM # SYSV-style semaphores options _KPOSIX_PRIORITY_SCHEDULING # POSIX P1003_1B real-time extensions options KBD_INSTALL_CDEV # install a CDEV entry in /dev options ADAPTIVE_GIANT # Giant mutex is adaptive. options STOP_NMI # Stop CPUS using NMI instead of IP= I options AUDIT # Security event auditing options DEVICE_POLLING options IPSEC device tun #Tunnel driver (ppp(8), nos-tun(8)) device gre #IP over IP tunneling device if_bridge #Bridge interface device pf #PF OpenBSD packet-filter firewall device pflog #logging support interface for PF device pfsync #synchronization interface for PF device carp #Common Address Redundancy Protocol device enc #IPsec interface device crypto options ALTQ options ALTQ_CBQ # Class Bases Queueing options ALTQ_RED # Random Early Detection options ALTQ_RIO # RED In/Out options ALTQ_HFSC # Hierarchical Packet Scheduler options ALTQ_CDNR # Traffic conditioner options ALTQ_PRIQ # Priority Queueing options ALTQ_NOPCC # Required if the TSC is unusable options ALTQ_DEBUG # To make an SMP kernel, the next two lines are needed #options SMP # Symmetric MultiProcessor Kernel #device apic # I/O APIC # CPU frequency control device cpufreq # Bus support. device eisa device pci # Floppy drives #device fdc # ATA and ATAPI devices device ata device atadisk # ATA disk drives #device ataraid # ATA RAID drives #device atapicd # ATAPI CDROM drives #device atapifd # ATAPI floppy drives device atapist # ATAPI tape drives options ATA_STATIC_ID # Static device numbering # SCSI Controllers #device ahb # EISA AHA1742 family #device ahc # AHA2940 and onboard AIC7xxx devices #options AHC_REG_PRETTY_PRINT # Print register bitfields in debug # output. Adds ~128k to driver. #device ahd # AHA39320/29320 and onboard AIC79xx device= s #options AHD_REG_PRETTY_PRINT # Print register bitfields in debug # output. Adds ~215k to driver. #device amd # AMD 53C974 (Tekram DC-390(T)) #device hptiop # Highpoint RocketRaid 3xxx series #device isp # Qlogic family #device ispfw # Firmware for QLogic HBAs- normally a modu= le #device mpt # LSI-Logic MPT-Fusion #device ncr # NCR/Symbios Logic #device sym # NCR/Symbios Logic (newer chipsets + those of `ncr') #device trm # Tekram DC395U/UW/F DC315U adapters #device adv # Advansys SCSI adapters #device adw # Advansys wide SCSI adapters #device aha # Adaptec 154x SCSI adapters #device aic # Adaptec 15[012]x SCSI adapters, AIC-6[23]= 60. #device bt # Buslogic/Mylex MultiMaster SCSI adapters #device ncv # NCR 53C500 #device nsp # Workbit Ninja SCSI-3 #device stg # TMC 18C30/18C50 # SCSI peripherals device scbus # SCSI bus (required for SCSI) #device ch # SCSI media changers device da # Direct Access (disks) #device sa # Sequential Access (tape etc) #device cd # CD #device pass # Passthrough device (direct SCSI access) #device ses # SCSI Environmental Services (and SAF-TE) # RAID controllers interfaced to the SCSI subsystem #device amr # AMI MegaRAID #device arcmsr # Areca SATA II RAID #device asr # DPT SmartRAID V, VI and Adaptec SCSI RAID #device ciss # Compaq Smart RAID 5* #device dpt # DPT Smartcache III, IV - See NOTES for op= tions #device hptmv # Highpoint RocketRAID 182x #device hptrr # Highpoint RocketRAID 17xx, 22xx, 23xx, 25= xx #device iir # Intel Integrated RAID #device ips # IBM (Adaptec) ServeRAID #device mly # Mylex AcceleRAID/eXtremeRAID #device twa # 3ware 9000 series PATA/SATA RAID # RAID controllers #device aac # Adaptec FSA RAID #device aacp # SCSI passthrough for aac (requires CAM) #device ida # Compaq Smart RAID #device mfi # LSI MegaRAID SAS #device mlx # Mylex DAC960 family #device pst # Promise Supertrak SX6000 #device twe # 3ware ATA RAID # atkbdc0 controls both the keyboard and the PS/2 mouse device atkbdc # AT keyboard controller device atkbd # AT keyboard device psm # PS/2 mouse device kbdmux # keyboard multiplexer device vga # VGA video card driver #device splash # Splash screen and screen saver support # syscons is the default console driver, resembling an SCO console device sc #device agp # support several AGP chipsets # Power management support (see NOTES for more options) #device apm # Add suspend/resume support for the i8254. device pmtimer # PCCARD (PCMCIA) support # PCMCIA and cardbus bridge support device cbb # cardbus (yenta) bridge device pccard # PC Card (16-bit) bus device cardbus # CardBus (32-bit) bus # Serial (COM) ports device sio # 8250, 16[45]50 based serial ports device uart # Generic UART driver # Parallel port device ppc device ppbus # Parallel port bus (required) device lpt # Printer device plip # TCP/IP over parallel device ppi # Parallel port interface device #device vpo # Requires scbus and da # If you've got a "dumb" serial or parallel PCI card that is # supported by the puc(4) glue driver, uncomment the following # line to enable it (connects to sio, uart and/or ppc drivers): #device puc # PCI Ethernet NICs. #device de # DEC/Intel DC21x4x (``Tulip'') #device em # Intel PRO/1000 adapter Gigabit Ethernet C= ard #device ixgb # Intel PRO/10GbE Ethernet Card #device le # AMD Am7900 LANCE and Am79C9xx PCnet #device txp # 3Com 3cR990 (``Typhoon'') #device vx # 3Com 3c590, 3c595 (``Vortex'') # PCI Ethernet NICs that use the common MII bus controller code. # NOTE: Be sure to keep the 'device miibus' line in order to use these NICs= ! device miibus # MII bus support #device bce # Broadcom BCM5706/BCM5708 Gigabit Ethernet #device bfe # Broadcom BCM440x 10/100 Ethernet #device bge # Broadcom BCM570xx Gigabit Ethernet #device dc # DEC/Intel 21143 and various workalikes #device fxp # Intel EtherExpress PRO/100B (82557, 82558= ) #device lge # Level 1 LXT1001 gigabit Ethernet #device msk # Marvell/SysKonnect Yukon II Gigabit Ether= net #device nfe # nVidia nForce MCP on-board Ethernet #device nge # NatSemi DP83820 gigabit Ethernet #device nve # nVidia nForce MCP on-board Ethernet Netwo= rking #device pcn # AMD Am79C97x PCI 10/100 (precedence over = 'le') #device re # RealTek 8139C+/8169/8169S/8110S #device rl # RealTek 8129/8139 #device sf # Adaptec AIC-6915 (``Starfire'') #device sis # Silicon Integrated Systems SiS 900/SiS 70= 16 #device sk # SysKonnect SK-984x & SK-982x gigabit Ethe= rnet #device ste # Sundance ST201 (D-Link DFE-550TX) #device stge # Sundance/Tamarack TC9021 gigabit Ethernet #device ti # Alteon Networks Tigon I/II gigabit Ethern= et #device tl # Texas Instruments ThunderLAN #device tx # SMC EtherPower II (83c170 ``EPIC'') #device vge # VIA VT612x gigabit Ethernet device vr # VIA Rhine, Rhine II #device wb # Winbond W89C840F #device xl # 3Com 3c90x (``Boomerang'', ``Cyclone'') # ISA Ethernet NICs. pccard NICs included. device cs # Crystal Semiconductor CS89x0 NIC # 'device ed' requires 'device miibus' #device ed # NE[12]000, SMC Ultra, 3c503, DS8390 cards #device ex # Intel EtherExpress Pro/10 and Pro/10+ #device ep # Etherlink III based cards #device fe # Fujitsu MB8696x based cards #device ie # EtherExpress 8/16, 3C507, StarLAN 10 etc. #device sn # SMC's 9000 series of Ethernet chips #device xe # Xircom pccard Ethernet # Wireless NIC cards device wlan # 802.11 support device wlan_wep # 802.11 WEP support device wlan_ccmp # 802.11 CCMP support device wlan_tkip # 802.11 TKIP support device wlan_amrr # AMRR transmit rate control algorithm device wlan_scan_ap # 802.11 AP mode scanning device wlan_scan_sta # 802.11 STA mode scanning #device an # Aironet 4500/4800 802.11 wireless NICs. device ath # Atheros pci/cardbus NIC's device ath_hal # Atheros HAL (Hardware Access Layer) device ath_rate_sample # SampleRate tx rate control for ath #device awi # BayStack 660 and others #device ral # Ralink Technology RT2500 wireless NICs. device wi # WaveLAN/Intersil/Symbol 802.11 wireless N= ICs. #device wl # Older non 802.11 Wavelan wireless NIC. # Pseudo devices. device loop # Network loopback device random # Entropy device device ether # Ethernet support device sl # Kernel SLIP device ppp # Kernel PPP device tun # Packet tunnel. device pty # Pseudo-ttys (telnet etc) device md # Memory "disks" device gif # IPv6 and IPv4 tunneling device faith # IPv6-to-IPv4 relaying (translation) #device firmware # firmware assist module # The `bpf' device enables the Berkeley Packet Filter. # Be aware of the administrative consequences of enabling this! # Note that 'bpf' is required for DHCP. device bpf # Berkeley packet filter # USB support #device uhci # UHCI PCI->USB interface #device ohci # OHCI PCI->USB interface #device ehci # EHCI PCI->USB interface (USB 2.0) #device usb # USB Bus (required) #device udbp # USB Double Bulk Pipe devices #device ugen # Generic #device uhid # "Human Interface Devices" #device ukbd # Keyboard #device ulpt # Printer #device umass # Disks/Mass storage - Requires scbus and d= a #device ums # Mouse #device ural # Ralink Technology RT2500USB wireless NICs #device rum # Ralink Technology RT2501USB wireless NICs #device urio # Diamond Rio 500 MP3 player #device uscanner # Scanners # USB Ethernet, requires miibus #device aue # ADMtek USB Ethernet #device axe # ASIX Electronics USB Ethernet #device cdce # Generic USB over Ethernet #device cue # CATC USB Ethernet #device kue # Kawasaki LSI USB Ethernet #device rue # RealTek RTL8150 USB Ethernet # FireWire support #device firewire # FireWire bus code #device sbp # SCSI over FireWire (Requires scbus and da= ) #device fwe # Ethernet over FireWire (non-standard!) #device fwip # IP over FireWire (RFC 2734,3146) #device dcons # Dumb console driver #device dcons_crom # Configuration ROM for dcons And this is my NanoBSD configuration file: NANO_NAME=3DALIX_PF NANO_SRC=3D/usr/src NANO_TOOLS=3Dtools/tools/nanobsd NANO_PACKAGE_DIR=3D${NANO_SRC}/${NANO_TOOLS}/Pkg NANO_KERNEL=3DALIX NANO_BOOT0CFG=3D"-o nopacket -s 1 -m 3" NANO_NEWFS=3D"-b 4096 -f 512 -i 8192 -O1 -U" NANO_DRIVE=3Dad0 NANO_IMAGES=3D1 NANO_CODESIZE=3D0 NANO_CONFSIZE=3D2048 NANO_DATASIZE=3D0 NANO_RAM_ETCSIZE=3D10240 NANO_RAM_TMPVARSIZE=3D10240 NANO_SECTS=3D63 NANO_HEADS=3D16 FlashDevice sandisk 512mb CONF_BUILD=3D' #NO_KLDLOAD=3DYES NO_NETGRAPH=3DYES NO_PAM=3DYES ' CONF_INSTALL=3D' NO_ACPI=3DYES NO_BLUETOOTH=3DYES NO_CVS=3DYES NO_FORTRAN=3DYES NO_HTML=3DYES NO_LPR=3DYES NO_MAN=3DYES NO_SENDMAIL=3DYES NO_SHAREDOCS=3DYES NO_EXAMPLES=3DYES NO_INSTALLLIB=3DYES NO_CALENDAR=3DYES NO_MISC=3DYES #NO_SHARE=3DYES ' CONF_WORLD=3D' NO_MODULES=3DYES NO_KERBEROS=3DYES NO_GAMES=3DYES NO_RESCUE=3DYES NO_LOCALES=3DYES NO_SYSCONS=3DYES NO_INFO=3DYES ' customize_cmd cust_install_files customize_cmd cust_pkg customize_cmd cust_allow_ssh_root Someone have any idea ? Thanks in advanced. --=20 "Linux is for people who hate Windows, BSD is for people who love UNIX". "Social Engineer -> Because there is no patch for human stupidity" "The Unix Guru's View of Sex unzip ; strip ; touch ; grep ; finger ; mount ; fsck ; more ; yes ; umount ; sleep." "Documentation is like sex: when it is good, it is very, very good; and when it is bad, it is better than nothing." From owner-freebsd-embedded@FreeBSD.ORG Tue Oct 28 06:25:04 2008 Return-Path: Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7B1671065671 for ; Tue, 28 Oct 2008 06:25:04 +0000 (UTC) (envelope-from mah@jump-ing.de) Received: from mail.ud03.udmedia.de (ud03.udmedia.de [194.117.254.43]) by mx1.freebsd.org (Postfix) with ESMTP id D54A08FC16 for ; Tue, 28 Oct 2008 06:25:03 +0000 (UTC) (envelope-from mah@jump-ing.de) DKIM-Signature: v=1; a=rsa-sha256; c=simple; d=mail.ud03.udmedia.de; h= in-reply-to:references:mime-version:content-type:message-id:cc: content-transfer-encoding:from:subject:date:to; q=dns/txt; s= beta; bh=61vAeHzFZVM2N9F/3xNbwqqZ0etAA7VOeW3ed/pasVY=; b=Y+TR/fF kugulwiZhLhpW0FzfBuWs2mTl8Jk+2y+FQH/wPVRQsZ0Z7e2DpTPyRSN3JE5ongm EREPRxsiLIL8whGF09GyUlxAy46VNrO6Y7SFYjmIXkfFNc+zEMlWWzwyJ0OdBzMP HnEJpqhExc8CUBI7Up5KlfI+fHzoe6OxbQco= Received: (qmail 5717 invoked from network); 28 Oct 2008 07:25:00 +0100 Received: from unknown (HELO ?10.0.0.50?) (ud03?291p1@78.42.122.222) by mail.ud03.udmedia.de with ESMTPA; 28 Oct 2008 07:25:00 +0100 In-Reply-To: References: Mime-Version: 1.0 (Apple Message framework v753.1) Content-Type: text/plain; charset=ISO-8859-1; delsp=yes; format=flowed Message-Id: <42AA8307-6A3D-4ABC-B962-870E83090199@jump-ing.de> Content-Transfer-Encoding: quoted-printable From: Markus Hitter Date: Tue, 28 Oct 2008 07:25:00 +0100 To: Espartano X-Mailer: Apple Mail (2.753.1) Cc: freebsd-embedded@freebsd.org Subject: Re: Problem with NanoBSD login X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Oct 2008 06:25:04 -0000 Am 28.10.2008 um 06:38 schrieb Espartano: > hi people, i have created a NanoBSD image, it boot pretty well. > > I'm trying to authenticate as root using a serial console but NanoBSD > doesn't show the correct login prompt, instead NanoBSD show strange > chars and it doesn't let me login in the system. [...] > cp: utimes: /var/var: No such file or directory > cp: chown: /var/var: No such file or directory > cp: chmod: /var/var: No such file or directory > cp: chflags: /var/var: No such file or directory Why is it looking for /var/var ? This dir usually doesn't exist. > Sat Jan 1 00:01:04 UTC 2000 > =E0=E0=E0=E0 Looks like you did something wrong in /etc/ttys, especially in it's =20 line for /dev/ttyd0. Did you perhaps configure it to dial a modem? > At this point the keyboard doesn't respond me and i can't authenticate > as root and change the password for use ssh later, There are switches in /etc/ssh/sshd_config with the self-explaining =20 names PermitRootLogin and AllowEmptyPassword. This could help you. HTH, MarKus - - - - - - - - - - - - - - - - - - - Dipl. Ing. Markus Hitter http://www.jump-ing.de/ From owner-freebsd-embedded@FreeBSD.ORG Tue Oct 28 08:45:29 2008 Return-Path: Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 678D41065671 for ; Tue, 28 Oct 2008 08:45:29 +0000 (UTC) (envelope-from espartano.mail@gmail.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.152]) by mx1.freebsd.org (Postfix) with ESMTP id EBC0A8FC1F for ; Tue, 28 Oct 2008 08:45:28 +0000 (UTC) (envelope-from espartano.mail@gmail.com) Received: by fg-out-1718.google.com with SMTP id l26so2118096fgb.35 for ; Tue, 28 Oct 2008 01:45:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=+pBsMwDLdqwlKGJup8WdDAFvA7ZI8HPJmALFJ78y9PE=; b=F0Wx8Z0DtA0BAhRDEOFZgeuKV/gLNwkVs8vWap2oV3VIKqWJ3WUDxwj2Rs55Q0M9HF UhefVxRv8vnckYLsXtWoatV+LWqtFbXMK+pKO0y9FLh7NLCQnsQCQQ33FaA1+XlZAXpY nnO07VU1Afm8L5HViPWzmNuziH5bfPwCAMJt8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=tnXc4E1PCMy2w3zVS7CllflGZN9mABDRmUU4Inhc2Yd0aiQU9fNRghA0oyyXycTzvj IbWBcJ+z9OVT22ci/4zq/g4uopum4kqGlj7V6kH5jf66jDM8MhBMwnlIvQXvlKyRlqnE TuIzHE+wI7wKrD+IifR9yaBxVvav9CQQGVCac= Received: by 10.86.93.17 with SMTP id q17mr4198165fgb.50.1225183527685; Tue, 28 Oct 2008 01:45:27 -0700 (PDT) Received: by 10.86.31.17 with HTTP; Tue, 28 Oct 2008 01:45:27 -0700 (PDT) Message-ID: Date: Tue, 28 Oct 2008 02:45:27 -0600 From: Espartano To: "Markus Hitter" In-Reply-To: <42AA8307-6A3D-4ABC-B962-870E83090199@jump-ing.de> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <42AA8307-6A3D-4ABC-B962-870E83090199@jump-ing.de> Cc: freebsd-embedded@freebsd.org Subject: Re: Problem with NanoBSD login X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Oct 2008 08:45:29 -0000 On Tue, Oct 28, 2008 at 12:25 AM, Markus Hitter wrote: > > Am 28.10.2008 um 06:38 schrieb Espartano: > >> hi people, i have created a NanoBSD image, it boot pretty well. >> >> I'm trying to authenticate as root using a serial console but NanoBSD >> doesn't show the correct login prompt, instead NanoBSD show strange >> chars and it doesn't let me login in the system. > > [...] >> >> cp: utimes: /var/var: No such file or directory >> cp: chown: /var/var: No such file or directory >> cp: chmod: /var/var: No such file or directory >> cp: chflags: /var/var: No such file or directory > > Why is it looking for /var/var ? This dir usually doesn't exist. I don't know, i didn't change anything for do that, i going to investigate. > >> Sat Jan 1 00:01:04 UTC 2000 >> =E0=E0=E0=E0 > > Looks like you did something wrong in /etc/ttys, especially in it's line = for > /dev/ttyd0. Did you perhaps configure it to dial a modem? :O That was my mistake, i didn't configure the file /etc/ttys, already i have changed this line: ttyd0 "/usr/libexec/getty std.9600" dialup off secure to ttyd0 "/usr/libexec/getty std.9600" dialup on secure now all is fine thanks a lot :) --=20 "Linux is for people who hate Windows, BSD is for people who love UNIX". "Social Engineer -> Because there is no patch for human stupidity" "The Unix Guru's View of Sex unzip ; strip ; touch ; grep ; finger ; mount ; fsck ; more ; yes ; umount ; sleep." "Documentation is like sex: when it is good, it is very, very good; and when it is bad, it is better than nothing." From owner-freebsd-embedded@FreeBSD.ORG Wed Oct 29 22:11:22 2008 Return-Path: Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E3F50106564A for ; Wed, 29 Oct 2008 22:11:22 +0000 (UTC) (envelope-from mah@jump-ing.de) Received: from mail.ud03.udmedia.de (ud03.udmedia.de [194.117.254.43]) by mx1.freebsd.org (Postfix) with ESMTP id D871B8FC1F for ; Wed, 29 Oct 2008 22:11:21 +0000 (UTC) (envelope-from mah@jump-ing.de) DKIM-Signature: v=1; a=rsa-sha256; c=simple; d=mail.ud03.udmedia.de; h= mime-version:to:message-id:content-type:from:subject:date; q= dns/txt; s=beta; bh=Vz68J4f0aBHoQp/wQepILxVwGe65rLjf22FPhK4XWWs=; b= sCfeMxaEwKmT3QoaurPb3ZrZUnULVfCNRFEbbLNtfBzOvQIovyZqoEa6SIgsH/yY RWgRZZpytVsaT6vHe0jwRgpi4b54rX1IdVSA1gUa8lIln8lCRGJDLxpZIxTpPu3c GFkOXbJBMrQq8xcJtunjp8/IbUN00BY8gyHK2jKEVwg= Received: (qmail 7647 invoked from network); 29 Oct 2008 23:11:17 +0100 Received: from unknown (HELO ?10.0.0.50?) (ud03?291p1@78.42.122.222) by mail.ud03.udmedia.de with ESMTPA; 29 Oct 2008 23:11:17 +0100 Mime-Version: 1.0 (Apple Message framework v753.1) To: freebsd-embedded@freebsd.org Message-Id: <40D69C3A-16B9-4370-B9D5-FCD6FDF87EE4@jump-ing.de> Content-Type: multipart/mixed; boundary=Apple-Mail-47-50457130 From: Markus Hitter Date: Wed, 29 Oct 2008 23:11:16 +0100 X-Mailer: Apple Mail (2.753.1) X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: FreeBSD kompakt X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Oct 2008 22:11:23 -0000 --Apple-Mail-47-50457130 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Hello all, as promised, I've extracted the tinybsd related files from my current environment. Currently I build images with less than 6 MB disk space used. This is the bare minimum, of course. You can boot, log in, have a shell (/bin/sh only) and that's it. Cron, syslog and the likes should work. The main reason why I'm sending this is, I modified tinybsd pretty hefty, resulting in an almost-rewrite. Nevertheless, everything works as before, just a lot faster: kernel is built on demand only, the remaining part takes about 20 seconds. Additionally, the full file hierarchy is left aside, directories are created as needed. For more details I've left some comments in the script. Please let me know what you think about this and which parts I should extract as a precise patch for inclusion in FreeBSD. --Apple-Mail-47-50457130 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; format=flowed Cheers, MarKus - - - - - - - - - - - - - - - - - - - Dipl. Ing. Markus Hitter http://www.jump-ing.de/ --Apple-Mail-47-50457130-- From owner-freebsd-embedded@FreeBSD.ORG Wed Oct 29 22:32:36 2008 Return-Path: Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6E2AB1065673 for ; Wed, 29 Oct 2008 22:32:36 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id 347B38FC0A for ; Wed, 29 Oct 2008 22:32:36 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.2/8.14.1) with ESMTP id m9TMTs9e051369; Wed, 29 Oct 2008 16:29:54 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Wed, 29 Oct 2008 16:31:06 -0600 (MDT) Message-Id: <20081029.163106.1474621784.imp@bsdimp.com> To: mah@jump-ing.de From: "M. Warner Losh" In-Reply-To: <40D69C3A-16B9-4370-B9D5-FCD6FDF87EE4@jump-ing.de> References: <40D69C3A-16B9-4370-B9D5-FCD6FDF87EE4@jump-ing.de> X-Mailer: Mew version 5.2 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: freebsd-embedded@freebsd.org Subject: Re: FreeBSD kompakt X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Oct 2008 22:32:36 -0000 In message: <40D69C3A-16B9-4370-B9D5-FCD6FDF87EE4@jump-ing.de> Markus Hitter writes: : : Hello all, : : as promised, I've extracted the tinybsd related files from my current : environment. Currently I build images with less than 6 MB disk space : used. This is the bare minimum, of course. You can boot, log in, have : a shell (/bin/sh only) and that's it. Cron, syslog and the likes : should work. : : The main reason why I'm sending this is, I modified tinybsd pretty : hefty, resulting in an almost-rewrite. Nevertheless, everything works : as before, just a lot faster: kernel is built on demand only, the : remaining part takes about 20 seconds. Additionally, the full file : hierarchy is left aside, directories are created as needed. For more : details I've left some comments in the script. : : Please let me know what you think about this and which parts I should : extract as a precise patch for inclusion in FreeBSD. I'd love to let you know what we think, but I didn't see it in the post. Maybe it got eaten? If so, can you put it up on the net somewhere. Warner From owner-freebsd-embedded@FreeBSD.ORG Thu Oct 30 00:37:29 2008 Return-Path: Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C9DF41065675 for ; Thu, 30 Oct 2008 00:37:29 +0000 (UTC) (envelope-from isaac@ceetoneresearch.com) Received: from madmax.bizintegrators.com (madmax.bizintegrators.com [64.94.184.54]) by mx1.freebsd.org (Postfix) with ESMTP id 8C8008FC0C for ; Thu, 30 Oct 2008 00:37:29 +0000 (UTC) (envelope-from isaac@ceetoneresearch.com) Received: from [10.0.222.99] (dsl027-135-177.nyc1.dsl.speakeasy.net [216.27.135.177]) (authenticated bits=0) by madmax.bizintegrators.com (8.13.4/8.13.4) with ESMTP id m9U0bL9O008724 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Wed, 29 Oct 2008 20:37:22 -0400 (EDT) From: Isaac Levy To: "M. Warner Losh" In-Reply-To: <20081029.163106.1474621784.imp@bsdimp.com> References: <40D69C3A-16B9-4370-B9D5-FCD6FDF87EE4@jump-ing.de> <20081029.163106.1474621784.imp@bsdimp.com> Message-Id: <8102C9D2-7B6D-4202-BF48-D1B288E3FA46@ceetoneresearch.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v929.2) Date: Wed, 29 Oct 2008 20:37:16 -0400 X-Mailer: Apple Mail (2.929.2) X-Loftmail-Check: No X-Scanned-By: MIMEDefang 2.57 on 64.94.184.88 Cc: mah@jump-ing.de, freebsd-embedded@freebsd.org Subject: Re: FreeBSD kompakt X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Oct 2008 00:37:29 -0000 On Oct 29, 2008, at 6:31 PM, M. Warner Losh wrote: > In message: <40D69C3A-16B9-4370-B9D5-FCD6FDF87EE4@jump-ing.de> > Markus Hitter writes: > : > : Hello all, > : > : as promised, I've extracted the tinybsd related files from my > current > : environment. Currently I build images with less than 6 MB disk space > : used. This is the bare minimum, of course. You can boot, log in, > have > : a shell (/bin/sh only) and that's it. Cron, syslog and the likes > : should work. > : > : The main reason why I'm sending this is, I modified tinybsd pretty > : hefty, resulting in an almost-rewrite. Nevertheless, everything > works > : as before, just a lot faster: kernel is built on demand only, the > : remaining part takes about 20 seconds. Additionally, the full file > : hierarchy is left aside, directories are created as needed. For more > : details I've left some comments in the script. > : > : Please let me know what you think about this and which parts I > should > : extract as a precise patch for inclusion in FreeBSD. > > I'd love to let you know what we think, but I didn't see it in the > post. Maybe it got eaten? If so, can you put it up on the net > somewhere. > > Warner I'd really love to see this too! 6mb is pretty cool! Best, .ike From owner-freebsd-embedded@FreeBSD.ORG Thu Oct 30 07:07:42 2008 Return-Path: Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5181E1065678 for ; Thu, 30 Oct 2008 07:07:42 +0000 (UTC) (envelope-from mah@jump-ing.de) Received: from mail.ud03.udmedia.de (ud03.udmedia.de [194.117.254.43]) by mx1.freebsd.org (Postfix) with ESMTP id ACF808FC08 for ; Thu, 30 Oct 2008 07:07:41 +0000 (UTC) (envelope-from mah@jump-ing.de) DKIM-Signature: v=1; a=rsa-sha256; c=simple; d=mail.ud03.udmedia.de; h= in-reply-to:references:mime-version:content-type:message-id:cc: content-transfer-encoding:from:subject:date:to; q=dns/txt; s= beta; bh=OIYSoeioVvj+q/ATOPmU7KH1qYE+3+NuTR5GDQ2YPsQ=; b=mcBov+A Uo24kJRl/Y51GZKot6gnRoUhX1mqVdWrRoI3bwHQ+dpvMFxWPFUJckbCKz4iOUsB euPtFT0TLClsper5INiwig6bLD6w9L+sEeOpPmgpUowBq9VeYa/E1gMdqrRaCFUk BPYRiiwIWl/I+skVh74qJjkvrcoaUXJvxJus= Received: (qmail 17345 invoked from network); 30 Oct 2008 08:07:39 +0100 Received: from unknown (HELO ?10.0.0.50?) (ud03?291p1@78.42.122.222) by mail.ud03.udmedia.de with ESMTPA; 30 Oct 2008 08:07:39 +0100 In-Reply-To: <20081029.163106.1474621784.imp@bsdimp.com> References: <40D69C3A-16B9-4370-B9D5-FCD6FDF87EE4@jump-ing.de> <20081029.163106.1474621784.imp@bsdimp.com> Mime-Version: 1.0 (Apple Message framework v753.1) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <10F69690-4A9B-4C39-A193-B541F0BF74B8@jump-ing.de> Content-Transfer-Encoding: 7bit From: Markus Hitter Date: Thu, 30 Oct 2008 08:07:38 +0100 To: M. Warner Losh X-Mailer: Apple Mail (2.753.1) Cc: freebsd-embedded@freebsd.org Subject: Re: FreeBSD kompakt X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Oct 2008 07:07:42 -0000 Am 29.10.2008 um 23:31 schrieb M. Warner Losh: > In message: <40D69C3A-16B9-4370-B9D5-FCD6FDF87EE4@jump-ing.de> > Markus Hitter writes: > : Please let me know what you think about this and which parts I > should > : extract as a precise patch for inclusion in FreeBSD. > > I'd love to let you know what we think, but I didn't see it in the > post. Maybe it got eaten? Yes, attachments obviously get stripped. Even if they're 12 kB only ;-) > If so, can you put it up on the net somewhere. Try These build commands should work: TINYDIR=/root/tinybsd cd /root tar -xvzf tinybsd-kompakt.tar.gz mv tinybsd-kompakt tinybsd ${TINYDIR}/tinybsd sectors=45000 conf=really-minimum mfsroot=yes \ image=/root/really-minimum.bin batch For running it I use qemu (on Ubuntu, as FreeBSD runs inside a virtual machine already): qemu -cpu pentium -drive file=really-minimum.bin Please let me know if you run into failures, as the above files are ripped out of a more complete setup. /etc/passwd and friends get copied over from the build machine, so passwords should be the same. MarKus - - - - - - - - - - - - - - - - - - - Dipl. Ing. Markus Hitter http://www.jump-ing.de/