From owner-freebsd-mips@freebsd.org Wed Dec 23 13:37:28 2015 Return-Path: Delivered-To: freebsd-mips@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A1BF7A4F32D for ; Wed, 23 Dec 2015 13:37:28 +0000 (UTC) (envelope-from wjw@digiware.nl) Received: from smtp.digiware.nl (smtp.digiware.nl [31.223.170.169]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 44E1A1BB1; Wed, 23 Dec 2015 13:37:28 +0000 (UTC) (envelope-from wjw@digiware.nl) Received: from rack1.digiware.nl (unknown [127.0.0.1]) by smtp.digiware.nl (Postfix) with ESMTP id 3312F15344D; Wed, 23 Dec 2015 14:37:19 +0100 (CET) X-Virus-Scanned: amavisd-new at digiware.nl Received: from smtp.digiware.nl ([127.0.0.1]) by rack1.digiware.nl (rack1.digiware.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id IFWYfC3I9lif; Wed, 23 Dec 2015 14:37:17 +0100 (CET) Received: from [IPv6:2001:4cb8:3:1:15b4:55a8:d3fd:6f27] (unknown [IPv6:2001:4cb8:3:1:15b4:55a8:d3fd:6f27]) by smtp.digiware.nl (Postfix) with ESMTP id 15EAB15340D; Wed, 23 Dec 2015 14:37:17 +0100 (CET) Subject: Re: Booting a FreeBSD kernel on the WiTiboard. (Was: Re: Initial support for MT7620) To: Stanislav Galabov References: <1479DFB0-6B63-4886-B9BA-8F95A44A8ED9@gmail.com> <17D0A04B-7164-48AE-9909-107EEBDF72E5@gmail.com> <56716BD0.1080801@digiware.nl> <567921DD.9060802@digiware.nl> <1F9B0CCD-1C67-45CF-9E1D-390F603A862F@gmail.com> <56793BF9.9010200@digiware.nl> <280C77DE-3468-4BA1-86E6-23C567A37D79@gmail.com> <56793EA6.3040401@digiware.nl> <91F3818D-0E31-4095-B079-340872300D34@gmail.com> Cc: Adrian Chadd , "freebsd-mips@freebsd.org" From: Willem Jan Withagen Organization: Digiware Management b.v. Message-ID: <567AA37A.6020005@digiware.nl> Date: Wed, 23 Dec 2015 14:36:58 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 MIME-Version: 1.0 In-Reply-To: <91F3818D-0E31-4095-B079-340872300D34@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Dec 2015 13:37:28 -0000 On 22-12-2015 13:17, Stanislav Galabov wrote: > >> On Dec 22, 2015, at 14:14, Willem Jan Withagen wrote: >> >> On 22-12-2015 13:07, Stanislav Galabov wrote: >>> >>>> On Dec 22, 2015, at 14:03, Willem Jan Withagen wrote: >>>> >>>> On 22-12-2015 12:54, Stanislav Galabov wrote: >>>>> Hi Willem, >>>>> >>>>> Can you try with this kernel please: >>>>> https://www.dropbox.com/s/t1wevprzlsfegr0/kernel.uboot?dl=0 >>>> >>>> That really works. :) >>>> Boot output below. >>>> >>>> Guess I'm going to need to find a disk to hookup to one of the sataports... >>>> In the mean time also started a MIPS build for MT7620. >>>> >>>> But this afternoon is reserved for Xmas shopping, so I won't be back with >>>> results for a while. >>>> >>>> --WjW >>> >>> I’m glad it works for you :-) >>> Yeah, I’m probably not going to be around myself starting tomorrow evening until the beginning of the new year sometime… I’ll read my e-mails, but won’t be able to do any work most likely. >> >> I see that the image searches for a bootdis called: >> /dev/ada0s1 >> >> So if I attach a disk on my build machine >> slice it up (dangerously) >> partition it the classic way >> install the mips stuff on it >> >> I run the risk that it will boot. :) >> >> Happy holidays, >> --WjW > > It boots for me. I am using an old laptop HDD with MBR and if I recall correctly I simply did a newfs on the partition on which I installed the mips world. That was a nice idea. Had some old cased disk lying about with Seagate USB-SATA convertors. used one of them to load (over USB) and then attached and rebooted. Guess I need to make /etc/fstab... And the openssl took quite some time to actually get thru. --WjW random: harvesting attach, 8 bytes (4 bits) from ahcich0 ahcich1: at channel 1 on ahci0 ahcich1: Caps: HPCP random: harvesting attach, 8 bytes (4 bits) from ahcich1 random: harvesting attach, 8 bytes (4 bits) from ahci0 random: harvesting attach, 8 bytes (4 bits) from pci3 random: harvesting attach, 8 bytes (4 bits) from pcib3 random: harvesting attach, 8 bytes (4 bits) from pci0 random: harvesting attach, 8 bytes (4 bits) from pcib0 random: harvesting attach, 8 bytes (4 bits) from obio0 random: harvesting attach, 8 bytes (4 bits) from nexus0 Device configuration finished. Timecounters tick every 10.000 msec tcp_init: net.inet.tcp.tcbhashsize auto tuned to 4096 ahcich0: AHCI reset... ahcich0: SATA connect time=1800us status=00000113 ahcich0: AHCI reset: device found ahcich0: AHCI reset: device ready after 0ms ahcich1: AHCI reset... ahcich1: SATA connect timeout time=10000us status=00000000 ahcich1: AHCI reset: device not found ada0 at ahcich0 bus 0 scbus0 target 0 lun 0 ada0: ATA8-ACS SATA 1.x device ada0: Serial Number 5VCLCPT0 ada0: 150.000MB/s transfers (SATA 1.x, UDMA6, PIO 8192bytes) ada0: Command Queueing enabled ada0: 238475MB (488397168 512 byte sectors) pass0 at ahcich0 bus 0 scbus0 target 0 lun 0 pass0: ATA8-ACS SATA 1.x device pass0: Serial Number 5VCLCPT0 pass0: 150.000MB/s transfers (SATA 1.x, UDMA6, PIO 8192bytes) pass0: Command Queueing enabled Trying to mount root from ufs:/dev/ada0s1 []... GEOM: new disk ada0 warning: no time-of-day clock registered, system time will not be set accurately start_init: trying /sbin/init /etc/rc: WARNING: hostid: unable to figure out a UUID from DMI data, generating a new one Setting hostuuid: 10796b5d-a979-11e5-b35d-775cc491f70b. Setting hostid: 0x3cfed483. eval: cannot open /etc/fstab: No such file or directory No suitable dump device was found. eval: cannot open /etc/fstab: No such file or directory fstab: /etc/fstab:0: No such file or directory Warning! No /etc/fstab: skipping disk checks. fstab: /etc/fstab:0: No such file or directory Mounting local file systems:fstab: /etc/fstab:0: No such file or directory . /etc/rc: WARNING: $hostname is not set -- see rc.conf(5). Setting up harvesting:[UMA],[FS_ATIME],SWI,INTERRUPT,NET_NG,NET_ETHER,NET_TUN,MOUSE,KEYBOARD,ATTACH,CACHED Feeding entropy:random: unblocking device. . Starting Network: lo0. lo0: flags=8049 metric 0 mtu 16384 options=600003 inet 127.0.0.1 netmask 0xff000000 groups: lo ELF ldconfig path: /lib /usr/lib /usr/lib/compat Starting devd. Generating host.conf. fstab: /etc/fstab:0: No such file or directory fstab: /etc/fstab:0: No such file or directory Creating and/or trimming log files. Starting syslogd. Starting casperd. Clearing /tmp (X related). Updating motd:. Mounting late file systems:fstab: /etc/fstab:0: No such file or directory . fstab: /etc/fstab:0: No such file or directory load: 0.88 cmd: openssl 412 [runnable] 14.47r 14.35u 0.04s 79% 4684k Script /etc/rc.d/sendmail running Starting sendmail_submit. Starting sendmail_msp_queue. Starting cron. eval: cannot open /etc/fstab: No such file or directory Starting background file system checks in 60 seconds. Wed Dec 23 13:29:20 UTC 2015 FreeBSD/mips (Amnesiac) (ttyu0) login: