From owner-freebsd-mips@freebsd.org Sun Oct 11 01:08:43 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 C00F4A10EF5 for ; Sun, 11 Oct 2015 01:08:43 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-ig0-x233.google.com (mail-ig0-x233.google.com [IPv6:2607:f8b0:4001:c05::233]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 81218923 for ; Sun, 11 Oct 2015 01:08:43 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by igbni9 with SMTP id ni9so1404180igb.1 for ; Sat, 10 Oct 2015 18:08:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=i0nSEGAp80IUg1cZ8oxACFJCapWjQLQTokFFKH8LayE=; b=icKZkGgvI/ybwzZoeNDCiiuPs2QUg6GiGObXaYyguxmNM8M04c4lB5PYt68VaSfPWv K2HBvq2eXroDA/JkIxm85ba6C7DGhVIltdlcPY0HnMM8BTRXNo1a6bLKzu3cXwB7lhJb jnfYWer3718Hn9QF5DAh1EeIEgZk1wLZjpqSIYGEG844/jRs0smfXKSIexJ3TCDAyJmu H8ktR1M5HAZW5I+0TfHo4T1ftVek/qbtsdcitQUbvMQ2fC2SZLywB0rdw5bu67AifB6W xVSFC6WHWGN6Fass94nUsQMxQMJHW8FKUIZeKXDH/G3ReyvbO42S4WEvXeHoLQSTTIu5 ckrw== MIME-Version: 1.0 X-Received: by 10.50.61.137 with SMTP id p9mr6068428igr.37.1444525722715; Sat, 10 Oct 2015 18:08:42 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.36.2.10 with HTTP; Sat, 10 Oct 2015 18:08:42 -0700 (PDT) In-Reply-To: <56193AFD.90201@riseup.net> References: <5614D073.9060706@riseup.net> <5614E36E.6000803@grosbein.net> <5615F57E.1010405@riseup.net> <5615F697.6080700@riseup.net> <56193AFD.90201@riseup.net> Date: Sat, 10 Oct 2015 18:08:42 -0700 X-Google-Sender-Auth: e3vaK6D2fhZ0kSKBdTL9lL6brtc Message-ID: Subject: Re: Kernel config for TPLink TL WDR3600 From: Adrian Chadd To: Piotr Kubaj Cc: "freebsd-mips@freebsd.org" Content-Type: text/plain; charset=UTF-8 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: Sun, 11 Oct 2015 01:08:43 -0000 No valid partition is found; it's trying to figure out what partition type each flash partition is, and it doesn't find anything useful. The kernel modules is fine; the default config file is the same for all platforms regardless of whether things are modules or not. I should just update /all/ of the platforms to assume everything is a module. -adrian On 10 October 2015 at 09:21, Piotr Kubaj wrote: > On 10/08/2015 17:47, Adrian Chadd wrote: >> I'll go try reflashing my tl-wr1043nd v1 today. >> >> Which instrucitons are you following? >> >> >> a >> >> >> On 7 October 2015 at 21:52, Piotr Kubaj wrote: >>> On 10/08/2015 06:47, Piotr Kubaj wrote: >>>> On 10/07/2015 20:08, Adrian Chadd wrote: >>>>> Hi, >>>>> >>>>> Just run -HEAD, or be prepared to MFC everything in the mips code and >>>>> wifi stack/drivers to stable/10. >>>>> >>>>> -HEAD works fine. You should just try it. :) >>>>> >>>>> >>>>> >>>>> -adrian >>>>> >>>>> >>>>> On 7 October 2015 at 02:18, Eugene Grosbein wrote: >>>>>> On 07.10.2015 14:57, Piotr Kubaj wrote: >>>>>>> @eugen >>>>>>> You could just copy//WDR3600's kernel config to sys/misc/conf in stable/10. It's quite possible that it will work. >>>>>> >>>>>> I made diff between stable/10 and head for MIPS-related source files >>>>>> and there are lots of non-trivial (for me) changes in head. >>>>>> >>>>>> I will create virtual machine with VBox and build head there >>>>>> as I do not run head on my desktop but 10.2 >>>>>> >>>>>> >>>> I've tried to upgrade my 1043nd to HEAD but it caused me just problems :P >>>> >>>> >>>> Is this error known? >>>> >>>> >>>> start_init: trying /sbin/init >>>> rtl8366rb0port0: link state changed to UP >>>> init died (signal 0, exit 1) >>>> panic: Going nowhere without my init! >>>> KDB: enter: panic >>>> [ thread pid 1 tid 100001 ] >>>> Stopped at kdb_enter+0x4c: lui at,0x804b >>>> db> bt >>>> Tracing pid 1 tid 100001 td 0x8064b000 >>>> db_trace_thread+30 (?,?,?,?) ra c736b8a000000018 sp 0 sz 0 >>>> 80088bf4+114 (0,?,ffffffff,?) ra c736b8b800000020 sp 100000000 sz 1 >>>> 80088000+388 (?,?,?,?) ra c736b8d8000000a8 sp 0 sz 0 >>>> db_command_loop+70 (?,?,?,?) ra c736b98000000018 sp 0 sz 0 >>>> 8008ab08+f4 (?,?,?,?) ra c736b998000001a8 sp 0 sz 0 >>>> kdb_trap+110 (?,?,?,?) ra c736bb4000000030 sp 0 sz 0 >>>> trap+c7c (?,?,?,?) ra c736bb70000000c0 sp 0 sz 0 >>>> MipsKernGenException+134 (0,0,0,0) ra c736bc30000000c8 sp 100000001 sz 1 >>>> kdb_enter+4c (?,?,?,?) ra c736bcf800000018 sp 0 sz 0 >>>> vpanic+ec (?,?,?,?) ra c736bd1000000020 sp 0 sz 0 >>>> panic+20 (?,0,0,0) ra c736bd3000000020 sp 1 sz 1 >>>> exit1+6c (?,?,?,?) ra c736bd5000000058 sp 0 sz 0 >>>> sys_sys_exit+14 (?,?,?,?) ra c736bda800000018 sp 0 sz 0 >>>> trap+7a8 (?,?,?,?) ra c736bdc0000000c0 sp 0 sz 0 >>>> MipsUserGenException+10c (?,?,?,4093bea0) ra c736be8000000000 sp 0 sz 0 >>>> pid 1 >>>> >>>> >>>> >>>> >>>> >>>> I'm not sure if that matters but I have 64 MB RAM, so I have changed >>>> AR71XX_REALMEM to 64*1024*1024. >>>> >>> I've noticed that higher in the logs there is: >>> MAP: No valid partition found at map/rootfs.uncompress >>> > Today I've updated my HEAD src (to r289115) and built another image and > it seems to work. Unfortunately, I didn't check what revision I was at > earlier. > I just want to ask about a few things in boot logs: > MAP: No valid partition found at map/rootfs.uncompress > hwpmc: SOFT/16/64/0x67 > MIPS24K/2/32/0x1ff > Root mount waiting for: usbus0 > uhub0: 1 port with 1 removable, self powered > random: harvesting attach, 8 bytes (4 bits) from uhub0 > Trying to mount root from ufs:map/rootfs.uncompress []... > warning: no time-of-day clock registered, system time will not be set > accurately > start_init: trying /sbin/init > rtl8366rb0port1: link state changed to UP > Oct 10 16:01:31 init: login_getclass: unknown class 'daemon' > MAP: No valid partition found at md0 > random: unblocking device. > MAP: No valid partition found at md0 > MAP: No valid partition found at md1 > MAP: No valid partition found at md1 > MAP: No valid partition found at md2 > MAP: No valid partition found at md2 > *** Populating /var .. > *** Loading configuration files .. > *** Restoring from /dev/map/cfg .. > gunzip: unknown compression format > 1+0 records in > 1+0 records out > 65536 bytes transferred in 0.168223 secs (389578 bytes/sec) > 0 blocks > *** Completed. > *** setting up hostname > *** Load kernel modules > .. bridgestp > kldload: can't load bridgestp: module already loaded or in kernel > .. if_bridge > kldload: can't load if_bridge: No such file or directory > .. random > kldload: can't load random: No such file or directory > > > > Should there be those "No valid partition found"? Also, those "No such > file or directory" when loading kernel modules also worries me. I'm not > sure whether I had these errors before, but now it caught my attention. > From owner-freebsd-mips@freebsd.org Sun Oct 11 19:35:30 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 E2363A11A70 for ; Sun, 11 Oct 2015 19:35:30 +0000 (UTC) (envelope-from nalimegavas@zoho.com) Received: from sender153-mail.zoho.com (sender153-mail.zoho.com [74.201.84.153]) (using TLSv1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id C23C1E42 for ; Sun, 11 Oct 2015 19:35:30 +0000 (UTC) (envelope-from nalimegavas@zoho.com) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=zapps768; d=zoho.com; h=date:from:to:message-id:in-reply-to:references:subject:mime-version:content-type:user-agent; b=kHyNddrdDrs13UkLftr8mQXxsXDqh8dbWT3UTSgUxURJRYwSgLx3OFabqfOREpir+CHKTzwsm8r9 /EJ6Vc41LOWirjgjceAGDXmvuGbQmvyfIvHvExqKIiR2F6jQ2Rps Received: from mail.zoho.com by mx.zohomail.com with SMTP id 1444592122897195.72636764956746; Sun, 11 Oct 2015 12:35:22 -0700 (PDT) Received: from [92.231.38.63] by mail.zoho.com with HTTP;Sun, 11 Oct 2015 12:35:22 -0700 (PDT) Date: Sun, 11 Oct 2015 12:35:22 -0700 From: leschmidtson To: Message-ID: <15058667bdd.121c5e4c150551.3183214997557567650@zoho.com> In-Reply-To: <150491b33c5.bdb31e1d17499.4552977509659408892@zoho.com> References: <150491b33c5.bdb31e1d17499.4552977509659408892@zoho.com> Subject: Re: Unable to connect to AP on TL-WDR3600 MIME-Version: 1.0 X-Priority: Medium User-Agent: Zoho Mail X-Mailer: Zoho Mail Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.20 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: Sun, 11 Oct 2015 19:35:31 -0000 to close this thread: "ifconifg wlan0 -ht" makes iwn to connect to TL-WDR3600. Found in this post: http://www.daemonology.net/blog/2015-01-13-freebsd-10-iwn-problems.html Thanks&regards Georg ---- On Thu, 08 Oct 2015 13:18:50 -0700 leschmidtson <nalimegavas@zoho.com> wrote ---- Dear all, as per Wiki page the TL-WDR3600 should work fine under FreeBSD. So I gave it a try. Unfortunately there are some issues with my configuration. The painful one is with wireless: clients are unable to connect to AP on router. Tested with FreeBSD 10.2 and Windows7 clients. Currently r288948M is installed on router. The same problem was observed in few previous versions as well. In test hostapd was running on wlan0 only. (Problem persists with hostapd active on both wlan interfaces as well). ifconfig output: wlan0: flags=8902<BROADCAST,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500 ether e8:de:27:65:bc:8c media: IEEE 802.11 Wireless Ethernet autoselect <hostap> (autoselect <hostap>) status: no carrier ssid GGWL030 channel 4 (2427 MHz 11g ht/40+) country US ecm authmode AUTO privacy OFF deftxkey 2 txpower 27 scanvalid 60 protmode CTS ampdulimit 64k ampdudensity 8 shortgi wme burst dtimperiod 1 -dfs groups: wlan wlan1: flags=8902<BROADCAST,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500 ether e8:de:27:65:bc:8b media: IEEE 802.11 Wireless Ethernet autoselect <hostap> (autoselect <hostap>) status: no carrier ssid GGWL031 channel 52 (5260 MHz 11a ht/40+) country US ecm authmode WPA1+WPA2/802.11i privacy OFF deftxkey 2 TKIP 2:128-bit TKIP 3:128-bit txpower 23 mcastrate 6 mgmtrate 6 scanvalid 60 ampdulimit 64k ampdudensity 8 shortgi wme burst dtimperiod 1 -dfs groups: wlan hostapd.conf interface=wlan0 driver=bsd ssid=GGWL030 wpa=3 wpa_key_mgmt=WPA-PSK wpa_passphrase=abcd1234 wpa_pairwise=CCMP TKIP ctrl_interface=/var/svc/hostapd0/ctl Here is the relevant part of hostapd log 1444248053.841730: WPA: a4:4e:31:b9:34:08 WPA_PTK entering state AUTHENTICATION2 1444248053.841776: Get randomness: len=32 entropy=1 1444248053.843475: WPA: Assign ANonce - hexdump(len=32): 23 e5 60 0c 59 ae 1f 0b 3c b7 c7 a0 14 c9 22 39 5a 5b 0b a5 5c 64 3d a1 ee eb b5 24 0f a8 69 1b 1444248053.843647: WPA: a4:4e:31:b9:34:08 WPA_PTK entering state INITPSK 1444248053.843694: Searching a PSK for a4:4e:31:b9:34:08 prev_psk=0x0 1444248053.843744: Searching a PSK for a4:4e:31:b9:34:08 prev_psk=0x0 1444248053.843790: WPA: a4:4e:31:b9:34:08 WPA_PTK entering state PTKSTART 1444248053.843905: 1444248053.843919: wlan0: STA a4:4e:31:b9:34:08 WPA: sending 1/4 msg of 4-Way Handshake 1444248053.843988: WPA: Send EAPOL(version=2 secure=0 mic=0 ack=1 install=0 pairwise=1 kde_len=0 keyidx=0 encr=0) 1444248053.844063: WPA: Replay Counter - hexdump(len=8): 00 00 00 00 00 00 00 01 1444248053.844150: TX EAPOL - hexdump(len=99): 02 03 00 5f 02 00 8a 00 10 00 00 00 00 00 00 00 01 23 e5 60 0c 59 ae 1f 0b 3c b7 c7 a0 14 c 9 22 39 5a 5b 0b a5 5c 64 3d a1 ee eb b5 24 0f a8 69 1b 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0 0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 1444248053.877706: WPA: Use EAPOL-Key timeout of 1000 ms (retry counter 1) 1444248053.877832: hostapd_new_assoc_sta: reschedule ap_handle_timer timeout for a4:4e:31:b9:34:08 (300 seconds - ap_max_inactivity) 1444248054.899958: 1444248054.899977: wlan0: STA a4:4e:31:b9:34:08 WPA: EAPOL-Key timeout 1444248054.900086: WPA: a4:4e:31:b9:34:08 WPA_PTK entering state PTKSTART 1444248054.900228: 1444248054.900241: wlan0: STA a4:4e:31:b9:34:08 WPA: sending 1/4 msg of 4-Way Handshake 1444248054.900315: WPA: Send EAPOL(version=2 secure=0 mic=0 ack=1 install=0 pairwise=1 kde_len=0 keyidx=0 encr=0) 1444248054.900392: WPA: Replay Counter - hexdump(len=8): 00 00 00 00 00 00 00 02 1444248054.900464: TX EAPOL - hexdump(len=99): 02 03 00 5f 02 00 8a 00 10 00 00 00 00 00 00 00 02 23 e5 60 0c 59 ae 1f 0b 3c b7 c7 a0 14 c 9 22 39 5a 5b 0b a5 5c 64 3d a1 ee eb b5 24 0f a8 69 1b 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0 0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 1444248054.901103: WPA: Use EAPOL-Key timeout of 1000 ms (retry counter 2) 1444248055.923954: 1444248055.923973: wlan0: STA a4:4e:31:b9:34:08 WPA: EAPOL-Key timeout 1444248055.924083: WPA: a4:4e:31:b9:34:08 WPA_PTK entering state PTKSTART 1444248055.924223: 1444248055.924237: wlan0: STA a4:4e:31:b9:34:08 WPA: sending 1/4 msg of 4-Way Handshake 1444248055.924310: WPA: Send EAPOL(version=2 secure=0 mic=0 ack=1 install=0 pairwise=1 kde_len=0 keyidx=0 encr=0) 1444248055.924401: WPA: Replay Counter - hexdump(len=8): 00 00 00 00 00 00 00 03 1444248055.924474: TX EAPOL - hexdump(len=99): 02 03 00 5f 02 00 8a 00 10 00 00 00 00 00 00 00 03 23 e5 60 0c 59 ae 1f 0b 3c b7 c7 a0 14 c 9 22 39 5a 5b 0b a5 5c 64 3d a1 ee eb b5 24 0f a8 69 1b 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0 0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 1444248055.925098: WPA: Use EAPOL-Key timeout of 1000 ms (retry counter 3) 1444248056.947963: 1444248056.947982: wlan0: STA a4:4e:31:b9:34:08 WPA: EAPOL-Key timeout The last two lines imho indicate the problem. As per wpa_supplicant log the client is sending the EAPOL response (EAPOL: txStart line in the log), however it is interrupted by next EAPOL Key message from router (if I correctly read this log): wlan0: State: ASSOCIATED -> 4WAY_HANDSHAKE wlan0: WPA: RX message 1 of 4-Way Handshake from e8:de:27:65:bc:8c (ver=2) RSN: msg 1/4 key data - hexdump(len=0): WPA: Renewed SNonce - hexdump(len=32): 0d 96 79 d6 82 7b 6d 06 bc 93 12 b5 64 7b 46 1b 36 92 7d 8e 90 82 85 ed c7 63 9f cf 52 b5 f8 8d WPA: PTK derivation - A1=a4:4e:31:b9:34:08 A2=e8:de:27:65:bc:8c WPA: Nonce1 - hexdump(len=32): 0d 96 79 d6 82 7b 6d 06 bc 93 12 b5 64 7b 46 1b 36 92 7d 8e 90 82 85 ed c7 63 9f cf 52 b5 f8 8d WPA: Nonce2 - hexdump(len=32): ba 52 4e b6 7a ee 46 3b 4e 19 8f b9 47 b8 1c a6 d0 aa 94 69 a6 ef 36 94 a1 3b ed c7 b5 d4 70 1b WPA: PMK - hexdump(len=32): [REMOVED] WPA: PTK - hexdump(len=48): [REMOVED] WPA: WPA IE for msg 2/4 - hexdump(len=22): 30 14 01 00 00 0f ac 02 01 00 00 0f ac 04 01 00 00 0f ac 02 00 00 WPA: Replay Counter - hexdump(len=8): 00 00 00 00 00 00 00 01 wlan0: WPA: Sending EAPOL-Key 2/4 WPA: KCK - hexdump(len=16): [REMOVED] WPA: Derived Key MIC - hexdump(len=16): 89 1f b0 dc b0 aa dd c8 9d 13 1a 67 15 e2 fd a4 EAPOL: startWhen --> 0 EAPOL: disable timer tick EAPOL: SUPP_PAE entering state CONNECTING EAPOL: enable timer tick EAPOL: txStart WPA: drop TX EAPOL in non-IEEE 802.1X mode (type=1 len=0) wlan0: RX EAPOL from e8:de:27:65:bc:8c The client is able problem free to connect to another AP. Appreciate your advice on what/where to look next? Thanks. Georg From owner-freebsd-mips@freebsd.org Sun Oct 11 19:53:05 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 27841A11EEB for ; Sun, 11 Oct 2015 19:53:05 +0000 (UTC) (envelope-from egrosbein@rdtc.ru) Received: from hz.grosbein.net (hz.grosbein.net [78.47.246.247]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "hz.grosbein.net", Issuer "hz.grosbein.net" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 83B871593 for ; Sun, 11 Oct 2015 19:53:03 +0000 (UTC) (envelope-from egrosbein@rdtc.ru) Received: from eg.sd.rdtc.ru (root@eg.sd.rdtc.ru [62.231.161.221]) by hz.grosbein.net (8.14.9/8.14.9) with ESMTP id t9BJqmF0041337 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Sun, 11 Oct 2015 21:52:50 +0200 (CEST) (envelope-from egrosbein@rdtc.ru) X-Envelope-From: egrosbein@rdtc.ru X-Envelope-To: Received: from eg.sd.rdtc.ru (eugen@localhost [127.0.0.1]) by eg.sd.rdtc.ru (8.15.2/8.15.2) with ESMTP id t9BJqcDf028461 for ; Mon, 12 Oct 2015 02:52:38 +0700 (KRAT) (envelope-from egrosbein@rdtc.ru) To: "freebsd-mips@freebsd.org" From: Eugene Grosbein Subject: Some makefs(8) improvements X-Enigmail-Draft-Status: N1110 Message-ID: <561ABE06.60905@rdtc.ru> Date: Mon, 12 Oct 2015 02:52:38 +0700 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.3 required=5.0 tests=BAYES_00, T_DATE_IN_FUTURE_96_Q,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-Spam-Report: * 0.0 T_DATE_IN_FUTURE_96_Q Date: is 4 days to 4 months after Received: * date * -0.0 T_RP_MATCHES_RCVD Envelope sender domain matches handover relay * domain * -2.3 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on hz.grosbein.net 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: Sun, 11 Oct 2015 19:53:05 -0000 Hi! While building my own FreeBSD/mips image for device having 8MB flash inly, I've faced two problems with makefs(8) utility. First, there is a bug in makefs: it fails to initialise fs_providersize in a superblock while making UFS file system. This leads to other problems with geom_label. The (trivial) patch is attached to the PR I just submited: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=203704 Then, makefs is not quite compatible with mkulzma/geom_uncompress feature: geom_uncompress kernel module reports GEOM provider size rounded up to its compression block size. Generally, this changes original media size and now it fails to match the size of embedded UFS that again leads to problems with geom_label kernel module. This module does not like the mismatch and skips the file system while tasting the GEOM and looking for UFS label. I've added new option "-r" to makefs to round up generated image to specified block size, f.e.: makefs -t ffs -r 65536 -o bsize=4096,fsize=512,label=flash optimization=space fs.img fs geom_uncompress does not change GEOM media size for images rounded that way and geom_label accepts such GEOMs just fine. The patch is attached to another PR I just submited: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=203707 Hope there PRs won't hand around for years :-) From owner-freebsd-mips@freebsd.org Sun Oct 11 22:14:44 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 A8DCB9B26B2 for ; Sun, 11 Oct 2015 22:14:44 +0000 (UTC) (envelope-from eugen@grosbein.net) Received: from hz.grosbein.net (hz.grosbein.net [78.47.246.247]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "hz.grosbein.net", Issuer "hz.grosbein.net" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 1E27DC08 for ; Sun, 11 Oct 2015 22:14:43 +0000 (UTC) (envelope-from eugen@grosbein.net) Received: from eg.sd.rdtc.ru (root@eg.sd.rdtc.ru [62.231.161.221]) by hz.grosbein.net (8.14.9/8.14.9) with ESMTP id t9BMEW5h041711 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Mon, 12 Oct 2015 00:14:34 +0200 (CEST) (envelope-from eugen@grosbein.net) X-Envelope-From: eugen@grosbein.net X-Envelope-To: Received: from eg.sd.rdtc.ru (eugen@localhost [127.0.0.1]) by eg.sd.rdtc.ru (8.15.2/8.15.2) with ESMTP id t9BMER6t029635 for ; Mon, 12 Oct 2015 05:14:28 +0700 (KRAT) (envelope-from eugen@grosbein.net) From: Eugene Grosbein Subject: mib0 flash partition TL-WDR3600 To: freebsd-mips@freebsd.org Message-ID: <561ADF43.8080005@grosbein.net> Date: Mon, 12 Oct 2015 05:14:27 +0700 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=0.3 required=5.0 tests=BAYES_00,LOCAL_FROM autolearn=no version=3.3.2 X-Spam-Report: * -2.3 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * 2.6 LOCAL_FROM From my domains X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on hz.grosbein.net 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: Sun, 11 Oct 2015 22:14:44 -0000 Hi! What does /dev/map/mib0 flash partition do in TL-WDR3600 device? What is it for? From owner-freebsd-mips@freebsd.org Mon Oct 12 03:21:02 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 B6D9AA11F6C for ; Mon, 12 Oct 2015 03:21:02 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-ig0-x22b.google.com (mail-ig0-x22b.google.com [IPv6:2607:f8b0:4001:c05::22b]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 8F5AC1E94 for ; Mon, 12 Oct 2015 03:21:02 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by igbkq10 with SMTP id kq10so65501609igb.0 for ; Sun, 11 Oct 2015 20:21:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=GtgRAn+zhzt9xyW1L+tk2CGIUMQ5MOBVa/6FlDwn83c=; b=SulHRrGACl+GqvS2wtzeqUxqyErjuQzv8ZuFiFBCqzUX0XD3H/pfW4zR0eVMo0ctBs dxp0shRX2IPBhj+lRD3IgHX729nCL43Fh8zlkCYiLsfyGt77tNBgcdCSp5hL6MmIjo8L FCmFbX8g8yEjPz3XD6FNRBujick5D6nriymtgu7bRSDCYmA9SvLQCmrPhGTgulygCxU/ Q8VvuxErPQp8lAxysX57NvL9coBkxVOIoqzx8BUrNwGM38bTtEblFb53FkjHvuE70DyC P/5ek4xffKMDInveg2lgoqbTk29mJFmyUQCWqJgexSE8+LL3dyzrQ6L2UKEaO/0jneJS YNzg== MIME-Version: 1.0 X-Received: by 10.50.61.243 with SMTP id t19mr9397023igr.22.1444620062031; Sun, 11 Oct 2015 20:21:02 -0700 (PDT) Received: by 10.36.2.10 with HTTP; Sun, 11 Oct 2015 20:21:01 -0700 (PDT) In-Reply-To: <561ADF43.8080005@grosbein.net> References: <561ADF43.8080005@grosbein.net> Date: Sun, 11 Oct 2015 20:21:01 -0700 Message-ID: Subject: Re: mib0 flash partition TL-WDR3600 From: Adrian Chadd To: Eugene Grosbein Cc: "freebsd-mips@freebsd.org" Content-Type: text/plain; charset=UTF-8 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: Mon, 12 Oct 2015 03:21:02 -0000 It's just a hold-over from the atheros layout. On 16mb devices they tended to have a mib0 partition that contained a bunch more leftover space and would put things like a big overlayfs on it. until nandfs grows nor support and is actually stable, we can't really use it. :( -a On 11 October 2015 at 15:14, Eugene Grosbein wrote: > Hi! > > What does /dev/map/mib0 flash partition do in TL-WDR3600 device? > What is it for? > _______________________________________________ > freebsd-mips@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-mips > To unsubscribe, send any mail to "freebsd-mips-unsubscribe@freebsd.org" From owner-freebsd-mips@freebsd.org Mon Oct 12 03:21:31 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 ACFF7A11FB1 for ; Mon, 12 Oct 2015 03:21:31 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-ig0-x235.google.com (mail-ig0-x235.google.com [IPv6:2607:f8b0:4001:c05::235]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 7C4871F17 for ; Mon, 12 Oct 2015 03:21:31 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by igkz10 with SMTP id z10so38482991igk.1 for ; Sun, 11 Oct 2015 20:21:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=RjU2/KB04dZvZIeGYtF34/vL7P+bDUmWu9kVHKYwW9k=; b=gJ+qFrSS1c2U4Sd5UmrmKhFeB7j2+GGp9Z/4UJJwdQASu0bgRJMnU22XkNBatgcGxt zg6NjbyhUOdphZ/0bsF2CaWrpi+kFk4Xvgmmwunwt/JZIij2IQ0XU+WchKrKAfz+Umj7 4KNe7KHhgnOv/07zXKTRIV/XZWbiiliI9IAIETq7motiNrBoYRy7lxCjUJzGwKKcXfzC yH/WbZT15r9H1WZrV8wCAuyEQHPyuRfZXBLBnwec2VnYm4ySGtWHWYvSaY4xTY0Nayb3 cRWcn81yWHMZsvcfv/1gEKduGUcorj5VJx2JteSDmsl8zo3WivdwQhL3z6d2jySqvcWC 4iBw== MIME-Version: 1.0 X-Received: by 10.50.45.33 with SMTP id j1mr9239010igm.61.1444620090691; Sun, 11 Oct 2015 20:21:30 -0700 (PDT) Received: by 10.36.2.10 with HTTP; Sun, 11 Oct 2015 20:21:30 -0700 (PDT) In-Reply-To: <561ABE06.60905@rdtc.ru> References: <561ABE06.60905@rdtc.ru> Date: Sun, 11 Oct 2015 20:21:30 -0700 Message-ID: Subject: Re: Some makefs(8) improvements From: Adrian Chadd To: Eugene Grosbein Cc: "freebsd-mips@freebsd.org" Content-Type: text/plain; charset=UTF-8 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: Mon, 12 Oct 2015 03:21:31 -0000 Hi! It looks fine to me as a stopgap measure. Sean, please do commit it when you have some spare time. :) Thanks! -a On 11 October 2015 at 12:52, Eugene Grosbein wrote: > Hi! > > While building my own FreeBSD/mips image for device having 8MB flash inly, > I've faced two problems with makefs(8) utility. > > First, there is a bug in makefs: it fails to initialise fs_providersize > in a superblock while making UFS file system. This leads to other problems > with geom_label. The (trivial) patch is attached to the PR I just submited: > https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=203704 > > Then, makefs is not quite compatible with mkulzma/geom_uncompress feature: > geom_uncompress kernel module reports GEOM provider size rounded up to > its compression block size. Generally, this changes original media size > and now it fails to match the size of embedded UFS that again > leads to problems with geom_label kernel module. This module does not like > the mismatch and skips the file system while tasting the GEOM and looking for > UFS label. > > I've added new option "-r" to makefs to round up generated image to specified > block size, f.e.: > > makefs -t ffs -r 65536 -o bsize=4096,fsize=512,label=flash optimization=space fs.img fs > > geom_uncompress does not change GEOM media size for images rounded that way > and geom_label accepts such GEOMs just fine. > > The patch is attached to another PR I just submited: > https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=203707 > > Hope there PRs won't hand around for years :-) > _______________________________________________ > freebsd-mips@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-mips > To unsubscribe, send any mail to "freebsd-mips-unsubscribe@freebsd.org" From owner-freebsd-mips@freebsd.org Mon Oct 12 07:58:49 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 E36C1A11176 for ; Mon, 12 Oct 2015 07:58:49 +0000 (UTC) (envelope-from eugen@grosbein.net) Received: from hz.grosbein.net (hz.grosbein.net [78.47.246.247]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "hz.grosbein.net", Issuer "hz.grosbein.net" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 77997BB2 for ; Mon, 12 Oct 2015 07:58:48 +0000 (UTC) (envelope-from eugen@grosbein.net) Received: from eg.sd.rdtc.ru (root@eg.sd.rdtc.ru [62.231.161.221]) by hz.grosbein.net (8.14.9/8.14.9) with ESMTP id t9C7wgnb043932 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Mon, 12 Oct 2015 09:58:43 +0200 (CEST) (envelope-from eugen@grosbein.net) X-Envelope-From: eugen@grosbein.net X-Envelope-To: adrian.chadd@gmail.com Received: from eg.sd.rdtc.ru (eugen@localhost [127.0.0.1]) by eg.sd.rdtc.ru (8.15.2/8.15.2) with ESMTP id t9C7wcpY032284; Mon, 12 Oct 2015 14:58:38 +0700 (KRAT) (envelope-from eugen@grosbein.net) Subject: Re: mib0 flash partition TL-WDR3600 To: Adrian Chadd References: <561ADF43.8080005@grosbein.net> Cc: "freebsd-mips@freebsd.org" From: Eugene Grosbein Message-ID: <561B682E.8060607@grosbein.net> Date: Mon, 12 Oct 2015 14:58:38 +0700 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=0.3 required=5.0 tests=BAYES_00,LOCAL_FROM, T_DATE_IN_FUTURE_96_Q autolearn=no version=3.3.2 X-Spam-Report: * 0.0 T_DATE_IN_FUTURE_96_Q Date: is 4 days to 4 months after Received: * date * -2.3 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * 2.6 LOCAL_FROM From my domains X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on hz.grosbein.net 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: Mon, 12 Oct 2015 07:58:50 -0000 On 12.10.2015 10:21, Adrian Chadd wrote: > It's just a hold-over from the atheros layout. On 16mb devices they > tended to have a mib0 partition that contained a bunch more leftover > space and would put things like a big overlayfs on it. > > until nandfs grows nor support and is actually stable, we can't really > use it. :( May I change geom_map layout on such 8mb device to eliminate mib0 and use freed extra space for cfg in my private build? Won't it break anything? From owner-freebsd-mips@freebsd.org Mon Oct 12 15:25:53 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 D8010A11C68 for ; Mon, 12 Oct 2015 15:25:53 +0000 (UTC) (envelope-from moxalt@riseup.net) Received: from mx1.riseup.net (mx1.riseup.net [198.252.153.129]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.riseup.net", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id BAEB4A56 for ; Mon, 12 Oct 2015 15:25:53 +0000 (UTC) (envelope-from moxalt@riseup.net) Received: from cotinga.riseup.net (unknown [10.0.1.161]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client CN "*.riseup.net", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.riseup.net (Postfix) with ESMTPS id 7A4A1C2340 for ; Mon, 12 Oct 2015 08:25:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1444663552; bh=lW7yWaygrulE7cSqY6C5uyUymGoOBDRUtd6eYCWJSDM=; h=Date:From:To:Subject:In-Reply-To:References:From; b=eHeJRtJDEFPyhLr2RDaxYYwGz1miycqA0EYQElurEM6K01ZyqJwmlZdsyTvz3sQ8g YseNvu4g2XX++XHsMklB9dyHhArn3wyhsG3Wiaj7QCM1qcbmG/+uCDg3ZR7hgqJNWh IU7mW1NM6TwND8PEfV5U3wEYd085g3M+g2u/2c7k= Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: moxalt) with ESMTPSA id 871BC1C0224 Date: Mon, 12 Oct 2015 18:25:46 +0300 From: moxalt To: freebsd-mips@freebsd.org Subject: Re: Some makefs(8) improvements Message-ID: <20151012182546.5e0c09e1@multivac> In-Reply-To: References: <561ABE06.60905@rdtc.ru> Organization: Debian Project X-Mailer: Claws Mail 3.12.0 (GTK+ 2.24.28; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: clamav-milter 0.98.7 at mx1.riseup.net X-Virus-Status: Clean 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: Mon, 12 Oct 2015 15:25:53 -0000 On Sun, 11 Oct 2015 20:21:30 -0700, Adrian Chadd wrote: > Hi! > > It looks fine to me as a stopgap measure. Sean, please do commit it > when you have some spare time. :) > > Thanks! > > > -a > > > On 11 October 2015 at 12:52, Eugene Grosbein wrote: > > Hi! > > > > While building my own FreeBSD/mips image for device having 8MB flash inly, > > I've faced two problems with makefs(8) utility. > > > > First, there is a bug in makefs: it fails to initialise fs_providersize > > in a superblock while making UFS file system. This leads to other problems > > with geom_label. The (trivial) patch is attached to the PR I just submited: > > https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=203704 > > > > Then, makefs is not quite compatible with mkulzma/geom_uncompress feature: > > geom_uncompress kernel module reports GEOM provider size rounded up to > > its compression block size. Generally, this changes original media size > > and now it fails to match the size of embedded UFS that again > > leads to problems with geom_label kernel module. This module does not like > > the mismatch and skips the file system while tasting the GEOM and looking > > for UFS label. > > > > I've added new option "-r" to makefs to round up generated image to > > specified block size, f.e.: > > > > makefs -t ffs -r 65536 -o bsize=4096,fsize=512,label=flash > > optimization=space fs.img fs > > > > geom_uncompress does not change GEOM media size for images rounded that way > > and geom_label accepts such GEOMs just fine. > > > > The patch is attached to another PR I just submited: > > https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=203707 Top-posting. No. From owner-freebsd-mips@freebsd.org Mon Oct 12 17:51:11 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 48F67A110FE for ; Mon, 12 Oct 2015 17:51:11 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-io0-x22b.google.com (mail-io0-x22b.google.com [IPv6:2607:f8b0:4001:c06::22b]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 16C1313BB for ; Mon, 12 Oct 2015 17:51:11 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by ioii196 with SMTP id i196so157513285ioi.3 for ; Mon, 12 Oct 2015 10:51:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=CAFkQBVBatVxVW1a8mfXYdCXRh+TtEHx2IUQ+TpFrBg=; b=jK/XQ65VojV4b6IQZzJnq0bQyd6hTfEPJzRFNeeY5zj9UshAsHtoDGTPRO04JI70/A VPoHZRl908EFrSpSvg31l2Pu5Qb5Svr+ySYnKHFejwXVyr/uNLjbUUtKsIiPtIUyCKLT bi35cIr5JaQe19NKhMVP4tfM3rfmczakAsn11W1kDYKEVU8RHGvaXjUKvgNriZiHCPP0 uiAjh5pnkoCMRQ5LVw3PydpZXus8C/hyGd6HDMN5Vobp8ayLx81qZbnQBW8z+1TRwdI9 YufnFR2f0hjHSvWeoChXNf+yfXw989k+nUsrfjFXRgXivOxLMA6Kcx3pP3a3+Y39zhyb 3Pkw== MIME-Version: 1.0 X-Received: by 10.107.35.78 with SMTP id j75mr27611576ioj.123.1444672270032; Mon, 12 Oct 2015 10:51:10 -0700 (PDT) Received: by 10.36.2.10 with HTTP; Mon, 12 Oct 2015 10:51:09 -0700 (PDT) In-Reply-To: <561B682E.8060607@grosbein.net> References: <561ADF43.8080005@grosbein.net> <561B682E.8060607@grosbein.net> Date: Mon, 12 Oct 2015 10:51:09 -0700 Message-ID: Subject: Re: mib0 flash partition TL-WDR3600 From: Adrian Chadd To: Eugene Grosbein Cc: "freebsd-mips@freebsd.org" Content-Type: text/plain; charset=UTF-8 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: Mon, 12 Oct 2015 17:51:11 -0000 Yes. The bootloader doesn't care what you do as long as: * you don't overwrite uboot; * you don't ovewrite uboot-env if it exists; * you put the "uboot application" (ie, the kernel) in the right place (which on these devices is at the beginning of the usable flash area); and * don't ovewrite ART. Just make sure you erase the extra space before you write into it. :) -a On 12 October 2015 at 00:58, Eugene Grosbein wrote: > On 12.10.2015 10:21, Adrian Chadd wrote: >> It's just a hold-over from the atheros layout. On 16mb devices they >> tended to have a mib0 partition that contained a bunch more leftover >> space and would put things like a big overlayfs on it. >> >> until nandfs grows nor support and is actually stable, we can't really >> use it. :( > > May I change geom_map layout on such 8mb device to eliminate mib0 > and use freed extra space for cfg in my private build? Won't it break anything? > > > From owner-freebsd-mips@freebsd.org Tue Oct 13 03:38:25 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 DA368A11645 for ; Tue, 13 Oct 2015 03:38:24 +0000 (UTC) (envelope-from wolfgang@lyxys.ka.sub.org) Received: from saturn.lyxys.ka.sub.org (saturn.lyxys.ka.sub.org [217.29.35.151]) (using TLSv1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 6672A1D46 for ; Tue, 13 Oct 2015 03:38:23 +0000 (UTC) (envelope-from wolfgang@lyxys.ka.sub.org) Received: from juno.lyxys.ka.sub.org (juno.lyx [IPv6:fd2a:89ca:7d54:0:240:caff:fe92:4f47]) by saturn.lyxys.ka.sub.org (8.15.2/8.15.2) with ESMTPS id t9D3MEXx026358 (version=TLSv1 cipher=DHE-RSA-AES128-SHA bits=128 verify=FAIL) for ; Tue, 13 Oct 2015 05:22:15 +0200 (CEST) (envelope-from wolfgang@lyxys.ka.sub.org) Received: from juno.lyxys.ka.sub.org (localhost [127.0.0.1]) by juno.lyxys.ka.sub.org (8.15.2/8.15.2) with ESMTPS id t9D3MEvd053441 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Tue, 13 Oct 2015 05:22:14 +0200 (CEST) (envelope-from wolfgang@lyxys.ka.sub.org) Received: (from wolfgang@localhost) by juno.lyxys.ka.sub.org (8.15.2/8.15.2/Submit) id t9D3MDaF053440 for freebsd-mips@freebsd.org; Tue, 13 Oct 2015 05:22:13 +0200 (CEST) (envelope-from wolfgang@lyxys.ka.sub.org) X-Authentication-Warning: juno.lyx: wolfgang set sender to wolfgang@lyxys.ka.sub.org using -f Date: Tue, 13 Oct 2015 05:22:13 +0200 From: Wolfgang Zenker To: freebsd-mips@freebsd.org Subject: Edge Router Lite runs out of memory on buildworld Message-ID: <20151013032213.GA52162@lyxys.ka.sub.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Organization: private site User-Agent: Mutt/1.5.24 (2015-08-30) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (saturn.lyxys.ka.sub.org [IPv6:fd2a:89ca:7d54:1:200:24ff:feca:b4cc]); Tue, 13 Oct 2015 05:22:15 +0200 (CEST) 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: Tue, 13 Oct 2015 03:38:25 -0000 Hi, for a few months now I have been building CURRENT on an Edge Router Lite, last successful build was about a week ago: % uname -a FreeBSD pomona 11.0-CURRENT FreeBSD 11.0-CURRENT #10: Wed Oct 7 07:15:47 CEST 2015 wolfgang@pomona:/usr/obj/usr/src/sys/UBQTERL mips Today buildworld failed with the system running out of memory on building libc.so: # make buildworld [..] cc -fpic -DPIC -O -pipe -G0 -I/usr/src/lib/libc/include -I/usr/src/lib/libc/../../include -I/usr/src/lib/libc/mips -DNLS -DSOFTFLOAT -D__DBINTERFACE_PRIVATE -I/usr/src/lib/libc/../../contrib/gdtoa -I/usr/src/lib/libc/../../contrib/libc-vis -DINET6 -I/usr/obj/usr/src/lib/libc -I/usr/src/lib/libc/resolv -D_ACL_PRIVATE -DPOSIX_MISTAKE -I/usr/src/lib/libc/../libmd -I/usr/src/lib/libc/../../contrib/jemalloc/include -I/usr/src/lib/libc/../../contrib/tzcode/stdtime -I/usr/src/lib/libc/stdtime -I/usr/src/lib/libc/locale -DBROKEN_DES -DPORTMAP -DDES_BUILTIN -I/usr/src/lib/libc/rpc -I/usr/src/lib/libc/mips/softfloat -I/usr/src/lib/libc/softfloat -DSOFTFLOAT_FOR_GCC -DYP -DNS_CACHING -DSYMBOL_VERSIONING -std=gnu99 -Wsystem-headers -Werror -Wall -Wno-format-y2k -Wno-uninitialized -Wno-pointer-sign -I/usr/src/lib/libutil -I/usr/src/lib/msun/mips -I/usr/src/lib/msun/src -c /usr/src/lib/libc/string/wmemset.c -o wmemset.So building shared library libc.so.7 cc -nodefaultlibs -Wl,--version-script=Version.map -shared -Wl,-x -Wl,--fatal-warnings -Wl,--warn-shared-textrel -o libc.so.7 -Wl,-soname,libc.so.7 `NM='nm' NMFLAGS='' lorder bt_close.So bt_conv.So bt_debug.So bt_delete.So bt_get.So bt_open.So bt_overflow.So bt_page.So [..] wmemcpy.So wmemmove.So wmemset.So | tsort -q` -lcompiler_rt -lssp_nonshared cc: Internal error: Killed (program ld) Please submit a full bug report. See for instructions. *** Error code 1 [List of .So-files shortened for brevity] % dmesg -a [..] pid 37501 (ld), uid 0, was killed: out of swap space Oct 13 04:37:27 pomona kernel: pid 37501 (ld), uid 0, was killed: out of swap space Kernel is built with "options NO_SWAPPING", so there is no swap space at all. I will try again without tmpfs now, to see if this frees enough memory. Wolfgang From owner-freebsd-mips@freebsd.org Tue Oct 13 06:34:12 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 B63FAA12862 for ; Tue, 13 Oct 2015 06:34:12 +0000 (UTC) (envelope-from egrosbein@rdtc.ru) Received: from hz.grosbein.net (hz.grosbein.net [78.47.246.247]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "hz.grosbein.net", Issuer "hz.grosbein.net" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 434491056 for ; Tue, 13 Oct 2015 06:34:10 +0000 (UTC) (envelope-from egrosbein@rdtc.ru) Received: from eg.sd.rdtc.ru (root@eg.sd.rdtc.ru [62.231.161.221]) by hz.grosbein.net (8.14.9/8.14.9) with ESMTP id t9D6XpjJ048042 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Tue, 13 Oct 2015 08:33:52 +0200 (CEST) (envelope-from egrosbein@rdtc.ru) X-Envelope-From: egrosbein@rdtc.ru X-Envelope-To: wolfgang@lyxys.ka.sub.org Received: from eg.sd.rdtc.ru (eugen@localhost [127.0.0.1]) by eg.sd.rdtc.ru (8.15.2/8.15.2) with ESMTP id t9D6XkAx007340; Tue, 13 Oct 2015 13:33:46 +0700 (KRAT) (envelope-from egrosbein@rdtc.ru) Subject: Re: Edge Router Lite runs out of memory on buildworld To: Wolfgang Zenker , freebsd-mips@freebsd.org References: <20151013032213.GA52162@lyxys.ka.sub.org> From: Eugene Grosbein Message-ID: <561CA5CA.9040100@rdtc.ru> Date: Tue, 13 Oct 2015 13:33:46 +0700 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 In-Reply-To: <20151013032213.GA52162@lyxys.ka.sub.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00, DATE_IN_FUTURE_96_Q, T_RP_MATCHES_RCVD autolearn=no version=3.3.2 X-Spam-Report: * 1.0 DATE_IN_FUTURE_96_Q Date: is 4 days to 4 months after Received: date * -0.0 T_RP_MATCHES_RCVD Envelope sender domain matches handover relay * domain * -2.3 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on hz.grosbein.net 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: Tue, 13 Oct 2015 06:34:12 -0000 On 13.10.2015 10:22, Wolfgang Zenker wrote: > Hi, > > for a few months now I have been building CURRENT on an Edge Router Lite, > last successful build was about a week ago: > > % uname -a > FreeBSD pomona 11.0-CURRENT FreeBSD 11.0-CURRENT #10: Wed Oct 7 07:15:47 CEST 2015 wolfgang@pomona:/usr/obj/usr/src/sys/UBQTERL mips > > Today buildworld failed with the system running out of memory > on building libc.so: > > # make buildworld > [..] > cc -fpic -DPIC -O -pipe -G0 -I/usr/src/lib/libc/include -I/usr/src/lib/libc/../../include -I/usr/src/lib/libc/mips -DNLS -DSOFTFLOAT -D__DBINTERFACE_PRIVATE -I/usr/src/lib/libc/../../contrib/gdtoa -I/usr/src/lib/libc/../../contrib/libc-vis -DINET6 -I/usr/obj/usr/src/lib/libc -I/usr/src/lib/libc/resolv -D_ACL_PRIVATE -DPOSIX_MISTAKE -I/usr/src/lib/libc/../libmd -I/usr/src/lib/libc/../../contrib/jemalloc/include -I/usr/src/lib/libc/../../contrib/tzcode/stdtime -I/usr/src/lib/libc/stdtime -I/usr/src/lib/libc/locale -DBROKEN_DES -DPORTMAP -DDES_BUILTIN -I/usr/src/lib/libc/rpc -I/usr/src/lib/libc/mips/softfloat -I/usr/src/lib/libc/softfloat -DSOFTFLOAT_FOR_GCC -DYP -DNS_CACHING -DSYMBOL_VERSIONING -std=gnu99 -Wsystem-headers -Werror -Wall -Wno-format-y2k -Wno-uninitialized -Wno-pointer-sign -I/usr/src/lib/libutil -I/usr/src/lib/msun/mips -I/usr/src/lib/msun/src -c /usr/src/lib/libc/string/wmemset.c -o wmemset.So > building shared library libc.so.7 > cc -nodefaultlibs -Wl,--version-script=Version.map -shared -Wl,-x -Wl,--fatal-warnings -Wl,--warn-shared-textrel -o libc.so.7 -Wl,-soname,libc.so.7 `NM='nm' NMFLAGS='' lorder bt_close.So bt_conv.So bt_debug.So bt_delete.So bt_get.So bt_open.So bt_overflow.So bt_page.So [..] wmemcpy.So wmemmove.So wmemset.So | tsort -q` -lcompiler_rt -lssp_nonshared > cc: Internal error: Killed (program ld) > Please submit a full bug report. > See for instructions. > *** Error code 1 > > [List of .So-files shortened for brevity] > > % dmesg -a > [..] > pid 37501 (ld), uid 0, was killed: out of swap space > Oct 13 04:37:27 pomona kernel: pid 37501 (ld), uid 0, was killed: out of swap space > > Kernel is built with "options NO_SWAPPING", so there is no swap space at all. > I will try again without tmpfs now, to see if this frees enough memory. > > Wolfgang Do you use cc option "-Os" too reduce code size? I use it for MIPS32 while cross-compiling on amd64 and world compiles and runs just fine. I wonder if this would free some memory too because of smaller code. From owner-freebsd-mips@freebsd.org Tue Oct 13 08:17:17 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 F3608A11736 for ; Tue, 13 Oct 2015 08:17:17 +0000 (UTC) (envelope-from pkubaj@riseup.net) Received: from mx1.riseup.net (mx1.riseup.net [198.252.153.129]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.riseup.net", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id D9FF8BA5; Tue, 13 Oct 2015 08:17:17 +0000 (UTC) (envelope-from pkubaj@riseup.net) Received: from cotinga.riseup.net (unknown [10.0.1.161]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client CN "*.riseup.net", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.riseup.net (Postfix) with ESMTPS id 8A852C0EC5; Tue, 13 Oct 2015 01:17:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1444724231; bh=MFyRjCfritTDj/l0Mi8wO4czS0XMSh0ojqlRZi/7A+w=; h=To:From:Subject:Cc:Date:From; b=dp+0ktUrl9ve+qhgsijAULJ7qdog/wzqNktF+VMUw9y7KqN7XPGpxIeyZ0rl2J+MC m5elHoegqDPNTonERT19jpYyatZlqDg3rsWyS4E8F3xB2syX5otORhf0dBvvi1OBtQ v1oX+nOyy/wRCooSCWLRPMfIebyTYH33imuvnz9w= Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: pkubaj) with ESMTPSA id D61131C01EB To: freebsd-mips@freebsd.org From: Piotr Kubaj Subject: Dropbear installed by default Message-ID: <561CBE04.1040900@riseup.net> Date: Tue, 13 Oct 2015 10:17:08 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: clamav-milter 0.98.7 at mx1.riseup.net X-Virus-Status: Clean 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: Tue, 13 Oct 2015 08:17:18 -0000 Hi, I (and I think many people as well) would like to have remote access to MIPS systems (as opposed to serial-only). Although it's impossible with OpenSSH, it's quite possible with Dropbear, which I've tested personally on my 1043nd v1. I believe it would be convenient to have SSH by default, so that when you want to change your Wifi network password, you don't have unscrew your router :) As I've already patched your scripts and have Dropbear working, I can send you my patches, if you want to commit them. Also, another idea (a big one) is inclusion of Dropbear in base. AFAICS it has a MIT license, so license shouldn't be a problem. OpenSSH would still be the default, but I believe that Dropbear would be very useful to have on all MIPS boards, underpowered ARM boards (like Beaglebone Black or Raspberry Pi) and even some i386 boards (like ALIX from PC Engines). I know you don't have much time, but I think I could manage to do it myself, it's just that I don't want to do it only to find out that it can't be committed :) Bye, Piotr Kubaj. From owner-freebsd-mips@freebsd.org Tue Oct 13 08:28:09 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 4502CA11C8D for ; Tue, 13 Oct 2015 08:28:09 +0000 (UTC) (envelope-from egrosbein@rdtc.ru) Received: from hz.grosbein.net (hz.grosbein.net [78.47.246.247]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "hz.grosbein.net", Issuer "hz.grosbein.net" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id D07CA1281 for ; Tue, 13 Oct 2015 08:28:07 +0000 (UTC) (envelope-from egrosbein@rdtc.ru) Received: from eg.sd.rdtc.ru (root@eg.sd.rdtc.ru [62.231.161.221]) by hz.grosbein.net (8.14.9/8.14.9) with ESMTP id t9D8RxAp048309 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Tue, 13 Oct 2015 10:28:00 +0200 (CEST) (envelope-from egrosbein@rdtc.ru) X-Envelope-From: egrosbein@rdtc.ru X-Envelope-To: pkubaj@riseup.net Received: from eg.sd.rdtc.ru (eugen@localhost [127.0.0.1]) by eg.sd.rdtc.ru (8.15.2/8.15.2) with ESMTP id t9D8RrEj008540; Tue, 13 Oct 2015 15:27:54 +0700 (KRAT) (envelope-from egrosbein@rdtc.ru) Subject: Re: Dropbear installed by default To: Piotr Kubaj , freebsd-mips@freebsd.org References: <561CBE04.1040900@riseup.net> From: Eugene Grosbein Message-ID: <561CC089.3070105@rdtc.ru> Date: Tue, 13 Oct 2015 15:27:53 +0700 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 In-Reply-To: <561CBE04.1040900@riseup.net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.3 required=5.0 tests=BAYES_00,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-Spam-Report: * -0.0 T_RP_MATCHES_RCVD Envelope sender domain matches handover relay * domain * -2.3 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on hz.grosbein.net 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: Tue, 13 Oct 2015 08:28:09 -0000 On 13.10.2015 15:17, Piotr Kubaj wrote: > Hi, > > I (and I think many people as well) would like to have remote access to > MIPS systems (as opposed to serial-only). Although it's impossible with > OpenSSH, it's quite possible with Dropbear What the problem with OpenSSH under FreeBSD/mips? From owner-freebsd-mips@freebsd.org Tue Oct 13 08:31:06 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 26E08A11E31 for ; Tue, 13 Oct 2015 08:31:06 +0000 (UTC) (envelope-from pkubaj@riseup.net) Received: from mx1.riseup.net (mx1.riseup.net [198.252.153.129]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.riseup.net", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 0BBD014DC for ; Tue, 13 Oct 2015 08:31:05 +0000 (UTC) (envelope-from pkubaj@riseup.net) Received: from cotinga.riseup.net (unknown [10.0.1.161]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client CN "*.riseup.net", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.riseup.net (Postfix) with ESMTPS id 051EDC15AC; Tue, 13 Oct 2015 01:31:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1444725065; bh=1oeBdZEHyeOnDi8csxjnX8mN+JbpTHUcNwRFnHLTRTg=; h=Subject:References:Cc:To:From:Date:In-Reply-To:From; b=BWJcKvjYN4n6qnZu5NO9MAs90dty4P/aihe6azuiW+l1AF2RqAqirYLqGD5Vsprka q7Ujg7HZDtxkExwrXxxEypBOuGKzSsHss0eGQXT27Og8vP1tRNy2yrmHEHn4ftedLl 6fXvJ1zQNX7Cj/KF+513opPWKq4210VrJKVWmzUk= Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: pkubaj) with ESMTPSA id 3B4571C03F8 Subject: Re: Dropbear installed by default References: <561CBE04.1040900@riseup.net> <561CC089.3070105@rdtc.ru> Cc: Eugene Grosbein To: freebsd-mips@freebsd.org From: Piotr Kubaj Message-ID: <561CC146.6060407@riseup.net> Date: Tue, 13 Oct 2015 10:31:02 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: <561CC089.3070105@rdtc.ru> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: clamav-milter 0.98.7 at mx1.riseup.net X-Virus-Status: Clean 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: Tue, 13 Oct 2015 08:31:06 -0000 On MIPS itself it's fine, it's just that it's too big too fit in hardware like TP-LINK routers with 8/16MB flash. OpenWRT does the same, they make OpenSSH available in their repo, but Dropbear is the default. On 10/13/15 10:27, Eugene Grosbein wrote: > On 13.10.2015 15:17, Piotr Kubaj wrote: >> Hi, >> >> I (and I think many people as well) would like to have remote access to >> MIPS systems (as opposed to serial-only). Although it's impossible with >> OpenSSH, it's quite possible with Dropbear > What the problem with OpenSSH under FreeBSD/mips? > > From owner-freebsd-mips@freebsd.org Tue Oct 13 15:36:00 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 F3888A11D08 for ; Tue, 13 Oct 2015 15:36:00 +0000 (UTC) (envelope-from eugen@grosbein.net) Received: from hz.grosbein.net (hz.grosbein.net [78.47.246.247]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "hz.grosbein.net", Issuer "hz.grosbein.net" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 0628D1D48 for ; Tue, 13 Oct 2015 15:35:59 +0000 (UTC) (envelope-from eugen@grosbein.net) Received: from eg.sd.rdtc.ru (root@eg.sd.rdtc.ru [62.231.161.221]) by hz.grosbein.net (8.14.9/8.14.9) with ESMTP id t9DFZlWO049391 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Tue, 13 Oct 2015 17:35:48 +0200 (CEST) (envelope-from eugen@grosbein.net) X-Envelope-From: eugen@grosbein.net X-Envelope-To: adrian.chadd@gmail.com Received: from eg.sd.rdtc.ru (eugen@localhost [127.0.0.1]) by eg.sd.rdtc.ru (8.15.2/8.15.2) with ESMTP id t9DFZiAb012487; Tue, 13 Oct 2015 22:35:44 +0700 (KRAT) (envelope-from eugen@grosbein.net) Subject: Re: mib0 flash partition TL-WDR3600 To: Adrian Chadd References: <561ADF43.8080005@grosbein.net> <561B682E.8060607@grosbein.net> Cc: "freebsd-mips@freebsd.org" From: Eugene Grosbein Message-ID: <561D24D0.6090707@grosbein.net> Date: Tue, 13 Oct 2015 22:35:44 +0700 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=1.3 required=5.0 tests=BAYES_00, DATE_IN_FUTURE_96_Q, LOCAL_FROM autolearn=no version=3.3.2 X-Spam-Report: * 1.0 DATE_IN_FUTURE_96_Q Date: is 4 days to 4 months after Received: date * -2.3 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * 2.6 LOCAL_FROM From my domains X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on hz.grosbein.net X-Spam-Level: * 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: Tue, 13 Oct 2015 15:36:01 -0000 On 13.10.2015 00:51, Adrian Chadd wrote: > Yes. The bootloader doesn't care what you do as long as: > > * you don't overwrite uboot; > * you don't ovewrite uboot-env if it exists; > * you put the "uboot application" (ie, the kernel) in the right place > (which on these devices is at the beginning of the usable flash area); > and > * don't ovewrite ART. > > Just make sure you erase the extra space before you write into it. :) I don't see how cfg_save erases flash before writing. From owner-freebsd-mips@freebsd.org Tue Oct 13 16:10:52 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 3293FA1281D for ; Tue, 13 Oct 2015 16:10:52 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-ig0-x22f.google.com (mail-ig0-x22f.google.com [IPv6:2607:f8b0:4001:c05::22f]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 003CBE89 for ; Tue, 13 Oct 2015 16:10:51 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by igcpe7 with SMTP id pe7so19990677igc.0 for ; Tue, 13 Oct 2015 09:10:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=0J8st+FR2zE8KH3SeJfaPIGjOf0OQyhzPcw6lJlfFi8=; b=dDSufbScidp9mZvEFebyVCCQOKYHPoGOxt/xMDu5rA7SZz4+s2RfeTgCqNKizVaPeK mcCchJXOd6xnKGnLpsvveprKvwsJmUP/mk/MTx2g8bIZENzYhVU61fV5ft6EHm14h6ac n4/CZnUSxgLWvsq/R78lbhaCHhtlmtgKb9pMxDhgnQwEG1wkX6Z6IQmuJiBFLfVNpkvY IYWewakyB0+/BJIDs47n1WUQQJHkx7ruxt6RA24PZJeOMK6bhDdd+/KXgPxJBe0tbkP+ g96TfDGvRAIc/eRlE5JDfQQTR4obRx/WrO5bFhQDjabHvUdLiaAvGU/RPcNWXgo5o445 hUjQ== MIME-Version: 1.0 X-Received: by 10.50.61.243 with SMTP id t19mr19158697igr.22.1444752650480; Tue, 13 Oct 2015 09:10:50 -0700 (PDT) Received: by 10.36.2.10 with HTTP; Tue, 13 Oct 2015 09:10:50 -0700 (PDT) In-Reply-To: <561CA5CA.9040100@rdtc.ru> References: <20151013032213.GA52162@lyxys.ka.sub.org> <561CA5CA.9040100@rdtc.ru> Date: Tue, 13 Oct 2015 09:10:50 -0700 Message-ID: Subject: Re: Edge Router Lite runs out of memory on buildworld From: Adrian Chadd To: Eugene Grosbein Cc: Wolfgang Zenker , "freebsd-mips@freebsd.org" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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: Tue, 13 Oct 2015 16:10:52 -0000 hm, is it gcc or clang? -a On 12 October 2015 at 23:33, Eugene Grosbein wrote: > On 13.10.2015 10:22, Wolfgang Zenker wrote: >> Hi, >> >> for a few months now I have been building CURRENT on an Edge Router Lite= , >> last successful build was about a week ago: >> >> % uname -a >> FreeBSD pomona 11.0-CURRENT FreeBSD 11.0-CURRENT #10: Wed Oct 7 07:15:4= 7 CEST 2015 wolfgang@pomona:/usr/obj/usr/src/sys/UBQTERL mips >> >> Today buildworld failed with the system running out of memory >> on building libc.so: >> >> # make buildworld >> [..] >> cc -fpic -DPIC -O -pipe -G0 -I/usr/src/lib/libc/include -I/usr/src/l= ib/libc/../../include -I/usr/src/lib/libc/mips -DNLS -DSOFTFLOAT -D__DBINT= ERFACE_PRIVATE -I/usr/src/lib/libc/../../contrib/gdtoa -I/usr/src/lib/libc/= ../../contrib/libc-vis -DINET6 -I/usr/obj/usr/src/lib/libc -I/usr/src/lib/l= ibc/resolv -D_ACL_PRIVATE -DPOSIX_MISTAKE -I/usr/src/lib/libc/../libmd -I/u= sr/src/lib/libc/../../contrib/jemalloc/include -I/usr/src/lib/libc/../../co= ntrib/tzcode/stdtime -I/usr/src/lib/libc/stdtime -I/usr/src/lib/libc/local= e -DBROKEN_DES -DPORTMAP -DDES_BUILTIN -I/usr/src/lib/libc/rpc -I/usr/src/l= ib/libc/mips/softfloat -I/usr/src/lib/libc/softfloat -DSOFTFLOAT_FOR_GCC -= DYP -DNS_CACHING -DSYMBOL_VERSIONING -std=3Dgnu99 -Wsystem-headers -Werror = -Wall -Wno-format-y2k -Wno-uninitialized -Wno-pointer-sign -I/usr/src/lib= /libutil -I/usr/src/lib/msun/mips -I/usr/src/lib/msun/src -c /usr/src/lib/l= ibc/string/wmemset.c -o wmemset.So >> building shared library libc.so.7 >> cc -nodefaultlibs -Wl,--version-script=3DVersion.map -shared -Wl,-x -= Wl,--fatal-warnings -Wl,--warn-shared-textrel -o libc.so.7 -Wl,-soname,lib= c.so.7 `NM=3D'nm' NMFLAGS=3D'' lorder bt_close.So bt_conv.So bt_debug.So b= t_delete.So bt_get.So bt_open.So bt_overflow.So bt_page.So [..] wmemcpy.So = wmemmove.So wmemset.So | tsort -q` -lcompiler_rt -lssp_nonshared >> cc: Internal error: Killed (program ld) >> Please submit a full bug report. >> See for instructions. >> *** Error code 1 >> >> [List of .So-files shortened for brevity] >> >> % dmesg -a >> [..] >> pid 37501 (ld), uid 0, was killed: out of swap space >> Oct 13 04:37:27 pomona kernel: pid 37501 (ld), uid 0, was killed: out of= swap space >> >> Kernel is built with "options NO_SWAPPING", so there is no swap space at= all. >> I will try again without tmpfs now, to see if this frees enough memory. >> >> Wolfgang > > Do you use cc option "-Os" too reduce code size? > I use it for MIPS32 while cross-compiling on amd64 and world compiles and= runs just fine. > I wonder if this would free some memory too because of smaller code. > > > _______________________________________________ > freebsd-mips@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-mips > To unsubscribe, send any mail to "freebsd-mips-unsubscribe@freebsd.org" From owner-freebsd-mips@freebsd.org Tue Oct 13 16:11:22 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 01B66A12844 for ; Tue, 13 Oct 2015 16:11:22 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-io0-x22e.google.com (mail-io0-x22e.google.com [IPv6:2607:f8b0:4001:c06::22e]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id B8E8DF03 for ; Tue, 13 Oct 2015 16:11:21 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by iofl186 with SMTP id l186so26352740iof.2 for ; Tue, 13 Oct 2015 09:11:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=129mRytqDeXa/V46dg9LAsoffk8RP7O7SkXN+Lb73d0=; b=njPYzLa2Jb2MtqG99ufOEBd7JUfKKKo/1SddBf7ETW1MiFYzXf3S8azNYUhrie68oC 2CyWUaVBPJYl1+9jV8EQ0HUvTvmF8bQ0CWMeSXKlSGbF54tRjUjxPQQgd0KIJSAt3zrz X7KJbh+9hvhdHz9MMD2jQ1fMyMbTTGyj1TjbDnjqkC1u49TXXulh5jv5Gf7VLEpGvNLR bahRicY5N1yduy00RgRno+Ep22+nme9KNQYVAQSnuyeCfIhD8yB3ThcxoVpQvoSipPq0 Jfjr/LNpdVnVG0//fpEUbMFOrROPGS5JJEa5Ct3YW22THpGhy4JL+CsPgsbdMy23rF9h bomQ== MIME-Version: 1.0 X-Received: by 10.107.13.75 with SMTP id 72mr33602864ion.75.1444752681153; Tue, 13 Oct 2015 09:11:21 -0700 (PDT) Received: by 10.36.2.10 with HTTP; Tue, 13 Oct 2015 09:11:21 -0700 (PDT) In-Reply-To: <561CC146.6060407@riseup.net> References: <561CBE04.1040900@riseup.net> <561CC089.3070105@rdtc.ru> <561CC146.6060407@riseup.net> Date: Tue, 13 Oct 2015 09:11:21 -0700 Message-ID: Subject: Re: Dropbear installed by default From: Adrian Chadd To: Piotr Kubaj Cc: "freebsd-mips@freebsd.org" , Eugene Grosbein Content-Type: text/plain; charset=UTF-8 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: Tue, 13 Oct 2015 16:11:22 -0000 I'm very tempted to put dropbear in base/contrib because of exactly this. -a On 13 October 2015 at 01:31, Piotr Kubaj wrote: > On MIPS itself it's fine, it's just that it's too big too fit in hardware > like TP-LINK routers with 8/16MB flash. OpenWRT does the same, they make > OpenSSH available in their repo, but Dropbear is the default. > > > On 10/13/15 10:27, Eugene Grosbein wrote: >> >> On 13.10.2015 15:17, Piotr Kubaj wrote: >>> >>> Hi, >>> >>> I (and I think many people as well) would like to have remote access to >>> MIPS systems (as opposed to serial-only). Although it's impossible with >>> OpenSSH, it's quite possible with Dropbear >> >> What the problem with OpenSSH under FreeBSD/mips? >> >> > > _______________________________________________ > freebsd-mips@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-mips > To unsubscribe, send any mail to "freebsd-mips-unsubscribe@freebsd.org" From owner-freebsd-mips@freebsd.org Tue Oct 13 16:11:52 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 2E89AA12863 for ; Tue, 13 Oct 2015 16:11:52 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-io0-x229.google.com (mail-io0-x229.google.com [IPv6:2607:f8b0:4001:c06::229]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id F054BF85 for ; Tue, 13 Oct 2015 16:11:51 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by iofl186 with SMTP id l186so26370168iof.2 for ; Tue, 13 Oct 2015 09:11:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=Hpv/apI9iWVDrSJkt13oR6N7BplSQu7+qzjSp3UexWc=; b=q8WCySzAqJYmEzKiyopxv1eXe9/XEeQ/LQCG+oKLmyDxNhOowH67ytqKmLLCwfziQK 0+nIjBRBequWAiroenLdMM0N6SU3hVq2cZ7P8EQ08FXmb13prUF1hCANKkDVIQrAD7vC O62zQDjOAWw0V3GXbZ5OggI8poFj9S5vKdBvYh9YTdrArqbPkNylOKJ82a4pJTpoZrAn IZN/pMaEPRrjhYEMcGeUjp0NNHUv/IcZNnTgV5vMsvQh76zQYw76F9XyzSPLN1w3ISSh lTZSj15WfO/XWPpx6ntuitxKYKyPB1/a+03bey2dnoazb+g9LgXpgA9BKBWvstOe7Mxf YBgQ== MIME-Version: 1.0 X-Received: by 10.107.13.75 with SMTP id 72mr33606376ion.75.1444752711366; Tue, 13 Oct 2015 09:11:51 -0700 (PDT) Received: by 10.36.2.10 with HTTP; Tue, 13 Oct 2015 09:11:51 -0700 (PDT) In-Reply-To: <561D24D0.6090707@grosbein.net> References: <561ADF43.8080005@grosbein.net> <561B682E.8060607@grosbein.net> <561D24D0.6090707@grosbein.net> Date: Tue, 13 Oct 2015 09:11:51 -0700 Message-ID: Subject: Re: mib0 flash partition TL-WDR3600 From: Adrian Chadd To: Eugene Grosbein Cc: "freebsd-mips@freebsd.org" Content-Type: text/plain; charset=UTF-8 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: Tue, 13 Oct 2015 16:11:52 -0000 It doesn't; it dd's 64k chunks at a time and that causes an erase/write cycle. If yo'ure just expanding cfg then yeah, cfg_save will do it via dd. -a On 13 October 2015 at 08:35, Eugene Grosbein wrote: > On 13.10.2015 00:51, Adrian Chadd wrote: >> Yes. The bootloader doesn't care what you do as long as: >> >> * you don't overwrite uboot; >> * you don't ovewrite uboot-env if it exists; >> * you put the "uboot application" (ie, the kernel) in the right place >> (which on these devices is at the beginning of the usable flash area); >> and >> * don't ovewrite ART. >> >> Just make sure you erase the extra space before you write into it. :) > > I don't see how cfg_save erases flash before writing. > From owner-freebsd-mips@freebsd.org Tue Oct 13 16:13:38 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 BFCF3A1290C for ; Tue, 13 Oct 2015 16:13:38 +0000 (UTC) (envelope-from pkubaj@riseup.net) Received: from mx1.riseup.net (mx1.riseup.net [198.252.153.129]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.riseup.net", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 9AA161152 for ; Tue, 13 Oct 2015 16:13:38 +0000 (UTC) (envelope-from pkubaj@riseup.net) Received: from cotinga.riseup.net (unknown [10.0.1.161]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client CN "*.riseup.net", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.riseup.net (Postfix) with ESMTPS id 2A0F8C0F6E; Tue, 13 Oct 2015 09:13:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1444752817; bh=5j1HDxUTHapSpHeKFeMVIQl3CjVwz7NpGZebd7b7pOI=; h=Subject:To:References:Cc:From:Date:In-Reply-To:From; b=OP0F+6tt3qEPJJogXEx+HHhJGc4f4r2ZDjybUwNVVQ1hPRTsF86Ybof14db+sc5yp Q1iOMGmcpi/A2xuWFvnRVuSALZJKHVAi10i2m4HjbnnvMohmx30JM/nJDsqBe7tHeE qGeF1FcpQUGI82DLF3MtVk6DLTQiPjss7PIN4A/8= Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: pkubaj) with ESMTPSA id B89E71C034D Subject: Re: Dropbear installed by default To: Adrian Chadd References: <561CBE04.1040900@riseup.net> <561CC089.3070105@rdtc.ru> <561CC146.6060407@riseup.net> Cc: "freebsd-mips@freebsd.org" , Eugene Grosbein From: Piotr Kubaj Message-ID: <561D2D92.6010705@riseup.net> Date: Tue, 13 Oct 2015 18:13:06 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="Kl7okfWtkJoT8Kxwudke8gLgm3exQ5xlr" X-Virus-Scanned: clamav-milter 0.98.7 at mx1.riseup.net X-Virus-Status: Clean 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: Tue, 13 Oct 2015 16:13:38 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --Kl7okfWtkJoT8Kxwudke8gLgm3exQ5xlr Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 10/13/2015 18:11, Adrian Chadd wrote: > I'm very tempted to put dropbear in base/contrib because of exactly thi= s. >=20 >=20 >=20 > -a >=20 > On 13 October 2015 at 01:31, Piotr Kubaj wrote: >> On MIPS itself it's fine, it's just that it's too big too fit in hardw= are >> like TP-LINK routers with 8/16MB flash. OpenWRT does the same, they ma= ke >> OpenSSH available in their repo, but Dropbear is the default. >> >> >> On 10/13/15 10:27, Eugene Grosbein wrote: >>> >>> On 13.10.2015 15:17, Piotr Kubaj wrote: >>>> >>>> Hi, >>>> >>>> I (and I think many people as well) would like to have remote access= to >>>> MIPS systems (as opposed to serial-only). Although it's impossible = with >>>> OpenSSH, it's quite possible with Dropbear >>> >>> What the problem with OpenSSH under FreeBSD/mips? >>> >>> >> >> _______________________________________________ >> freebsd-mips@freebsd.org mailing list >> https://lists.freebsd.org/mailman/listinfo/freebsd-mips >> To unsubscribe, send any mail to "freebsd-mips-unsubscribe@freebsd.org= " That's exactly what I've proposed, except that I also want to write the usr.sbin glue. --Kl7okfWtkJoT8Kxwudke8gLgm3exQ5xlr Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQIcBAEBCgAGBQJWHS2iAAoJEC9nKukRsfY+EE4QANQXweZOTPjRHHuaY99/UibR dWaOS0/oKjpY9+3ULuk5BWFNgSuBulFRo4fVFfAuiVJBIGM+VP4D9s0KtVjHyQ7j 4ZMYK/DMBjDGKQHM9vuqylD/Iq2evXAgWWhCP19XXO9a9RRJ56dfEaNc9YUWDjdl tqxhzgHI3A34zxLPHWw3L0kpy1nic+AmBFEWQUkxTM+YLA4YWyu4ietRFem4Py4y OD8rSe17zjswL4pj6BxWFsDslxsQNryPaO1AqUzvW5OhlcIT3CF1/X2DqKMptJrC MSnt0qtJPKJeldtVUSX+Oxw/kEABu6BiuaB5Y2DeNYOzAlapUTbUOj1cpnldSTs7 Z9opGIZpRvaCGG3QKc76JVbpWgu+f4BLjReIejK/8vc6QzQ+E2YQjctHzP5UOs9J cGwRTDGmzyUNe0dttHvUzkjqyeilQdILS2aNv2egeA/lpf42qVOMLIFZQ7fBENdZ pFX1GCPStixc41B4D1AEM3jqvXDFtGb5hcPhAB0RyRAg/rwVvDYRLDT6qDDmBLqz gsPmuY0f3MJ8NJP5EnoQIzO3cJBlSGOibNlNS6AOPV11mrlO1FpF1iouap/i1S/7 CPuamqxwxiKv7LnIu1PlEe+dZQP9uCcbZIKtz1s+vukViBxTTyi4b66e0o+qcFhJ iPrT/XmH+pSwJC5ef2bg =zWdL -----END PGP SIGNATURE----- --Kl7okfWtkJoT8Kxwudke8gLgm3exQ5xlr-- From owner-freebsd-mips@freebsd.org Tue Oct 13 16:18:23 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 9D549A129C4 for ; Tue, 13 Oct 2015 16:18:23 +0000 (UTC) (envelope-from eugen@grosbein.net) Received: from hz.grosbein.net (hz.grosbein.net [78.47.246.247]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "hz.grosbein.net", Issuer "hz.grosbein.net" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 34CC11211 for ; Tue, 13 Oct 2015 16:18:22 +0000 (UTC) (envelope-from eugen@grosbein.net) Received: from eg.sd.rdtc.ru (root@eg.sd.rdtc.ru [62.231.161.221]) by hz.grosbein.net (8.14.9/8.14.9) with ESMTP id t9DGIHfK049510 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Tue, 13 Oct 2015 18:18:18 +0200 (CEST) (envelope-from eugen@grosbein.net) X-Envelope-From: eugen@grosbein.net X-Envelope-To: Received: from eg.sd.rdtc.ru (eugen@localhost [127.0.0.1]) by eg.sd.rdtc.ru (8.15.2/8.15.2) with ESMTP id t9DGI96T013033 for ; Tue, 13 Oct 2015 23:18:09 +0700 (KRAT) (envelope-from eugen@grosbein.net) To: freebsd-mips@freebsd.org From: Eugene Grosbein Subject: jemalloc aborts: lloc_arena.c:363: Failed assertion: "p[i] == 0" Message-ID: <561D2EC1.6030402@grosbein.net> Date: Tue, 13 Oct 2015 23:18:09 +0700 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=1.3 required=5.0 tests=BAYES_00, DATE_IN_FUTURE_96_Q, LOCAL_FROM autolearn=no version=3.3.2 X-Spam-Report: * 1.0 DATE_IN_FUTURE_96_Q Date: is 4 days to 4 months after Received: date * -2.3 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * 2.6 LOCAL_FROM From my domains X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on hz.grosbein.net X-Spam-Level: * 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: Tue, 13 Oct 2015 16:18:23 -0000 Hi! While trying numerous variants of building FreeBSD/mips and booting them on TL WDR3600, I found a variant that reliably fails same way: Trying to mount root from ufs:map/rootfs.uncompress []... warning: no time-of-day clock registered, system time will not be set accurately start_init: trying /sbin/init : jemapid 13 (sh), uid 0: exited on signal 6 lloc_arena.c:363: Failed assertion: "p[i] == 0" Oct 13 16:10:57 init: /bin/sh on /etc/rc terminated abnormally, going to single user mode Enter full pathname of shell or RETURN for /bin/sh: What does this error mean? From owner-freebsd-mips@freebsd.org Tue Oct 13 18:12:01 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 4257DA12361 for ; Tue, 13 Oct 2015 18:12:01 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-ig0-x235.google.com (mail-ig0-x235.google.com [IPv6:2607:f8b0:4001:c05::235]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 19A89D1C for ; Tue, 13 Oct 2015 18:12:01 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by igbkq10 with SMTP id kq10so96435998igb.0 for ; Tue, 13 Oct 2015 11:12:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=HzLgrghVqcJQPAoXonC/zLAYyt1NS7HSWfI8XTTkzMQ=; b=H/7ScrnIuChBNqrhYG44bxiblZdvYEvgvxp2vjuESjweC1coUIx8FfA/k1CdtKMWBr YHizmAd9qe8HY1dn3mXB+5wgUw8cl+09x3sw9Ev4aSs5y+a/MGdLJiTmiy9w/ffiwucZ Xuu+g7yqj4KwvKkWVVaMEC1BwwG5OS465OL4RaIAKI4OZlsdCNnLqx9dJ+z6RkulDHzT 6xAp26JGAv2k9UKig9EfYozF/5d2XiOVUMp9vDYaLOMTpxji5o0AI2MSGavG795705cX b0BGCsAqTUwEmUCm9HGEDAzSORKCaiEYxALOcs9G03eHNal15uSIcWnw1QyX4bQx9jNI PZBA== MIME-Version: 1.0 X-Received: by 10.50.111.226 with SMTP id il2mr8508200igb.61.1444759917945; Tue, 13 Oct 2015 11:11:57 -0700 (PDT) Received: by 10.36.2.10 with HTTP; Tue, 13 Oct 2015 11:11:57 -0700 (PDT) In-Reply-To: <561D2EC1.6030402@grosbein.net> References: <561D2EC1.6030402@grosbein.net> Date: Tue, 13 Oct 2015 11:11:57 -0700 Message-ID: Subject: Re: jemalloc aborts: lloc_arena.c:363: Failed assertion: "p[i] == 0" From: Adrian Chadd To: Eugene Grosbein Cc: "freebsd-mips@freebsd.org" Content-Type: text/plain; charset=UTF-8 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: Tue, 13 Oct 2015 18:12:01 -0000 This was a recentish thing, I thought it was fixed. Which version of which tree are you building from? -a On 13 October 2015 at 09:18, Eugene Grosbein wrote: > Hi! > > While trying numerous variants of building FreeBSD/mips and booting them > on TL WDR3600, I found a variant that reliably fails same way: > > Trying to mount root from ufs:map/rootfs.uncompress []... > warning: no time-of-day clock registered, system time will not be set accurately > start_init: trying /sbin/init > : jemapid 13 (sh), uid 0: exited on signal 6 > lloc_arena.c:363: Failed assertion: "p[i] == 0" > Oct 13 16:10:57 init: /bin/sh on /etc/rc terminated abnormally, going to single user mode > Enter full pathname of shell or RETURN for /bin/sh: > > What does this error mean? > _______________________________________________ > freebsd-mips@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-mips > To unsubscribe, send any mail to "freebsd-mips-unsubscribe@freebsd.org" From owner-freebsd-mips@freebsd.org Tue Oct 13 18:58:50 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 9AFD5A12494 for ; Tue, 13 Oct 2015 18:58:50 +0000 (UTC) (envelope-from eugen@grosbein.net) Received: from hz.grosbein.net (hz.grosbein.net [78.47.246.247]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "hz.grosbein.net", Issuer "hz.grosbein.net" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 3074B1B32 for ; Tue, 13 Oct 2015 18:58:49 +0000 (UTC) (envelope-from eugen@grosbein.net) Received: from eg.sd.rdtc.ru (root@eg.sd.rdtc.ru [62.231.161.221]) by hz.grosbein.net (8.14.9/8.14.9) with ESMTP id t9DIwcRZ049887 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Tue, 13 Oct 2015 20:58:39 +0200 (CEST) (envelope-from eugen@grosbein.net) X-Envelope-From: eugen@grosbein.net X-Envelope-To: adrian.chadd@gmail.com Received: from eg.sd.rdtc.ru (eugen@localhost [127.0.0.1]) by eg.sd.rdtc.ru (8.15.2/8.15.2) with ESMTP id t9DIwXdR013812; Wed, 14 Oct 2015 01:58:34 +0700 (KRAT) (envelope-from eugen@grosbein.net) Subject: Re: jemalloc aborts: lloc_arena.c:363: Failed assertion: "p[i] == 0" To: Adrian Chadd References: <561D2EC1.6030402@grosbein.net> Cc: "freebsd-mips@freebsd.org" From: Eugene Grosbein X-Enigmail-Draft-Status: N1110 Message-ID: <561D5459.70900@grosbein.net> Date: Wed, 14 Oct 2015 01:58:33 +0700 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=0.3 required=5.0 tests=BAYES_00,LOCAL_FROM autolearn=no version=3.3.2 X-Spam-Report: * -2.3 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * 2.6 LOCAL_FROM From my domains X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on hz.grosbein.net 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: Tue, 13 Oct 2015 18:58:50 -0000 On 14.10.2015 01:11, Adrian Chadd wrote: > This was a recentish thing, I thought it was fixed. Which version of > which tree are you building from? I build MIPS code using HEAD sources r289028 but build box itself is 10-STABLE/amd64 r287164 From owner-freebsd-mips@freebsd.org Tue Oct 13 19:08:42 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 A0A43A12943 for ; Tue, 13 Oct 2015 19:08:42 +0000 (UTC) (envelope-from egrosbein@rdtc.ru) Received: from hz.grosbein.net (hz.grosbein.net [78.47.246.247]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "hz.grosbein.net", Issuer "hz.grosbein.net" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 5CB07F9 for ; Tue, 13 Oct 2015 19:08:40 +0000 (UTC) (envelope-from egrosbein@rdtc.ru) Received: from eg.sd.rdtc.ru (root@eg.sd.rdtc.ru [62.231.161.221]) by hz.grosbein.net (8.14.9/8.14.9) with ESMTP id t9DJ8Y0a049924 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Tue, 13 Oct 2015 21:08:36 +0200 (CEST) (envelope-from egrosbein@rdtc.ru) X-Envelope-From: egrosbein@rdtc.ru X-Envelope-To: Received: from eg.sd.rdtc.ru (eugen@localhost [127.0.0.1]) by eg.sd.rdtc.ru (8.15.2/8.15.2) with ESMTP id t9DJ8VcA013854 for ; Wed, 14 Oct 2015 02:08:31 +0700 (KRAT) (envelope-from egrosbein@rdtc.ru) To: freebsd-mips@freebsd.org From: Eugene Grosbein Subject: TPLINK_FIRMWARE_RESERV Message-ID: <561D56AF.8050202@rdtc.ru> Date: Wed, 14 Oct 2015 02:08:31 +0700 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00, DATE_IN_FUTURE_96_Q, T_RP_MATCHES_RCVD autolearn=no version=3.3.2 X-Spam-Report: * 1.0 DATE_IN_FUTURE_96_Q Date: is 4 days to 4 months after Received: date * -0.0 T_RP_MATCHES_RCVD Envelope sender domain matches handover relay * domain * -2.3 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on hz.grosbein.net 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: Tue, 13 Oct 2015 19:08:42 -0000 Hi! Why does "freebsd-wifi-build/build/cfg/tl-wdr3600" configuration file has "TPLINK_FIRMWARE_RESERV=0x40000" setting? That is 256KB of precious flash space reserved for unknown reason that could be used for rootfs instead. From owner-freebsd-mips@freebsd.org Tue Oct 13 19:12:17 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 8B696A12B5E for ; Tue, 13 Oct 2015 19:12:17 +0000 (UTC) (envelope-from egrosbein@rdtc.ru) Received: from hz.grosbein.net (hz.grosbein.net [78.47.246.247]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "hz.grosbein.net", Issuer "hz.grosbein.net" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 1FA537EB for ; Tue, 13 Oct 2015 19:12:16 +0000 (UTC) (envelope-from egrosbein@rdtc.ru) Received: from eg.sd.rdtc.ru (root@eg.sd.rdtc.ru [62.231.161.221]) by hz.grosbein.net (8.14.9/8.14.9) with ESMTP id t9DJCBr4049952 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Tue, 13 Oct 2015 21:12:12 +0200 (CEST) (envelope-from egrosbein@rdtc.ru) X-Envelope-From: egrosbein@rdtc.ru X-Envelope-To: Received: from eg.sd.rdtc.ru (eugen@localhost [127.0.0.1]) by eg.sd.rdtc.ru (8.15.2/8.15.2) with ESMTP id t9DJC3fi013884 for ; Wed, 14 Oct 2015 02:12:03 +0700 (KRAT) (envelope-from egrosbein@rdtc.ru) Subject: Re: TPLINK_FIRMWARE_RESERV To: freebsd-mips@freebsd.org References: <561D56AF.8050202@rdtc.ru> From: Eugene Grosbein Message-ID: <561D5783.2030406@rdtc.ru> Date: Wed, 14 Oct 2015 02:12:03 +0700 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 In-Reply-To: <561D56AF.8050202@rdtc.ru> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00, DATE_IN_FUTURE_96_Q, T_RP_MATCHES_RCVD autolearn=no version=3.3.2 X-Spam-Report: * 1.0 DATE_IN_FUTURE_96_Q Date: is 4 days to 4 months after Received: date * -0.0 T_RP_MATCHES_RCVD Envelope sender domain matches handover relay * domain * -2.3 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on hz.grosbein.net 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: Tue, 13 Oct 2015 19:12:17 -0000 On 14.10.2015 02:08, Eugene Grosbein wrote: > Hi! > > Why does "freebsd-wifi-build/build/cfg/tl-wdr3600" configuration file > has "TPLINK_FIRMWARE_RESERV=0x40000" setting? > > That is 256KB of precious flash space reserved for unknown reason > that could be used for rootfs instead. Nevermind, I just realized they are reverved for cfg and mib0 partitions. From owner-freebsd-mips@freebsd.org Tue Oct 13 20:06:01 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 93B8CA12AD1 for ; Tue, 13 Oct 2015 20:06:01 +0000 (UTC) (envelope-from wolfgang@lyxys.ka.sub.org) Received: from saturn.lyxys.ka.sub.org (saturn.lyxys.ka.sub.org [217.29.35.151]) (using TLSv1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 1F1D4FB1 for ; Tue, 13 Oct 2015 20:06:00 +0000 (UTC) (envelope-from wolfgang@lyxys.ka.sub.org) Received: from juno.lyxys.ka.sub.org (juno.lyx [IPv6:fd2a:89ca:7d54:0:240:caff:fe92:4f47]) by saturn.lyxys.ka.sub.org (8.15.2/8.15.2) with ESMTPS id t9DK5ga9028959 (version=TLSv1 cipher=DHE-RSA-AES128-SHA bits=128 verify=FAIL) for ; Tue, 13 Oct 2015 22:05:43 +0200 (CEST) (envelope-from wolfgang@lyxys.ka.sub.org) Received: from juno.lyxys.ka.sub.org (localhost [127.0.0.1]) by juno.lyxys.ka.sub.org (8.15.2/8.15.2) with ESMTPS id t9DK5gvm068378 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Tue, 13 Oct 2015 22:05:42 +0200 (CEST) (envelope-from wolfgang@lyxys.ka.sub.org) Received: (from wolfgang@localhost) by juno.lyxys.ka.sub.org (8.15.2/8.15.2/Submit) id t9DK5foA068377 for freebsd-mips@freebsd.org; Tue, 13 Oct 2015 22:05:41 +0200 (CEST) (envelope-from wolfgang@lyxys.ka.sub.org) X-Authentication-Warning: juno.lyx: wolfgang set sender to wolfgang@lyxys.ka.sub.org using -f Date: Tue, 13 Oct 2015 22:05:41 +0200 From: Wolfgang Zenker To: freebsd-mips@freebsd.org Subject: Re: Edge Router Lite runs out of memory on buildworld Message-ID: <20151013200541.GA68251@lyxys.ka.sub.org> References: <20151013032213.GA52162@lyxys.ka.sub.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20151013032213.GA52162@lyxys.ka.sub.org> Organization: private site User-Agent: Mutt/1.5.24 (2015-08-30) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (saturn.lyxys.ka.sub.org [IPv6:fd2a:89ca:7d54:1:200:24ff:feca:b4cc]); Tue, 13 Oct 2015 22:05:43 +0200 (CEST) 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: Tue, 13 Oct 2015 20:06:01 -0000 Hi, * Wolfgang Zenker [151013 05:22]: > for a few months now I have been building CURRENT on an Edge Router Lite, > last successful build was about a week ago: > % uname -a > FreeBSD pomona 11.0-CURRENT FreeBSD 11.0-CURRENT #10: Wed Oct 7 07:15:47 CEST 2015 wolfgang@pomona:/usr/obj/usr/src/sys/UBQTERL mips > Today buildworld failed with the system running out of memory > on building libc.so: [..] > Kernel is built with "options NO_SWAPPING", so there is no swap space at all. > I will try again without tmpfs now, to see if this frees enough memory. strangely enough, with /tmp on flash instead of a ramdisk, it fails a bit earlier: compiling the first sourcefile of libc: [..] echo libc.so.7: /usr/obj/usr/src/tmp/usr/lib/libcompiler_rt.a /usr/obj/usr/src/tmp/usr/lib/libssp_nonshared.a >> .depend cc -O -pipe -G0 -I/usr/src/lib/libc/include -I/usr/src/lib/libc/../../include -I/usr/src/lib/libc/mips -DNLS -DSOFTFLOAT -D__DBINTERFACE_PRIVATE -I/usr/src/lib/libc/../../contrib/gdtoa -I/usr/src/lib/libc/../../contrib/libc-vis -DINET6 -I/usr/obj/usr/src/lib/libc -I/usr/src/lib/libc/resolv -D_ACL_PRIVATE -DPOSIX_MISTAKE -I/usr/src/lib/libc/../libmd -I/usr/src/lib/libc/../../contrib/jemalloc/include -I/usr/src/lib/libc/../../contrib/tzcode/stdtime -I/usr/src/lib/libc/stdtime -I/usr/src/lib/libc/locale -DBROKEN_DES -DPORTMAP -DDES_BUILTIN -I/usr/src/lib/libc/rpc -I/usr/src/lib/libc/mips/softfloat -I/usr/src/lib/libc/softfloat -DSOFTFLOAT_FOR_GCC -DYP -DNS_CACHING -DSYMBOL_VERSIONING -std=gnu99 -Wsystem-headers -Werror -Wall -Wno-format-y2k -Wno-uninitialized -Wno-pointer-sign -I/usr/src/lib/libutil -I/usr/src/lib/msun/mips -I/usr/src/lib/msun/src -c /usr/src/lib/libc/db/btree/bt_close.c -o bt_close.o Killed *** Error code 137 % dmesg pid 20537 (make), uid 0, was killed: out of swap space Oct 13 11:19:31 pomona kernel: pid 20537 (make), uid 0, was killed: out of swap space Maybe the memory used for the tmpfs before is not being returned even after unmonting /tmp? I will try again with a reboot after commenting out /tmp in fstab. Wolfgang From owner-freebsd-mips@freebsd.org Tue Oct 13 20:08:57 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 A9211A12CBE for ; Tue, 13 Oct 2015 20:08:57 +0000 (UTC) (envelope-from mmitchel@gmail.com) Received: from mail-qg0-x229.google.com (mail-qg0-x229.google.com [IPv6:2607:f8b0:400d:c04::229]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 6E3EE11F2 for ; Tue, 13 Oct 2015 20:08:57 +0000 (UTC) (envelope-from mmitchel@gmail.com) Received: by qgeb31 with SMTP id b31so25077113qge.0 for ; Tue, 13 Oct 2015 13:08:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=w2WXY3+ctFFT0WQpK7JQuwKFlsrMor19s2WwfPBBYBw=; b=IjBtp05VXjs2tWJgz8r86740PVXY6pp42nKdLrTgjPdvgNTW41Xp3bmNxKJdxTovoy KulXEbkYP1m8kXbhnqst1A49SlNLC/TfJB5iW+WU1XRaQRcfF24cGCzynLyzKxiViOi7 P2B/r/pLenq3ffiz75CIQoTVabOqDr7lb3q3vWC9Hk/8O37OAXiBzneR/iPCdexoWcBf k7tPebAMUFXokiLWlS5UvVY0CTRpdpwf5zj4akkMegusRQGR0LQ8GzdJdt/LsAC1Fucn CsIXGsgg07KUMjHzwAMX9F7S2qMT639Pk+TFlRO7J6CNYTBtehqyLttb6y63C0xcnaRQ NNEg== MIME-Version: 1.0 X-Received: by 10.140.97.136 with SMTP id m8mr41888746qge.74.1444766936594; Tue, 13 Oct 2015 13:08:56 -0700 (PDT) Received: by 10.55.177.133 with HTTP; Tue, 13 Oct 2015 13:08:56 -0700 (PDT) In-Reply-To: <20151013200541.GA68251@lyxys.ka.sub.org> References: <20151013032213.GA52162@lyxys.ka.sub.org> <20151013200541.GA68251@lyxys.ka.sub.org> Date: Tue, 13 Oct 2015 13:08:56 -0700 Message-ID: Subject: Re: Edge Router Lite runs out of memory on buildworld From: Michael Mitchell To: Wolfgang Zenker Cc: freebsd-mips@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.20 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: Tue, 13 Oct 2015 20:08:57 -0000 you might want to try adding swap space (1 GB?) and restart the process https://www.freebsd.org/doc/handbook/adding-swap-space.html : mdm On Tue, Oct 13, 2015 at 1:05 PM, Wolfgang Zenker wrote: > Hi, > > * Wolfgang Zenker [151013 05:22]: > > for a few months now I have been building CURRENT on an Edge Router Lite, > > last successful build was about a week ago: > > > % uname -a > > FreeBSD pomona 11.0-CURRENT FreeBSD 11.0-CURRENT #10: Wed Oct 7 > 07:15:47 CEST 2015 wolfgang@pomona:/usr/obj/usr/src/sys/UBQTERL mips > > > Today buildworld failed with the system running out of memory > > on building libc.so: > [..] > > > Kernel is built with "options NO_SWAPPING", so there is no swap space at > all. > > I will try again without tmpfs now, to see if this frees enough memory. > > strangely enough, with /tmp on flash instead of a ramdisk, it fails > a bit earlier: compiling the first sourcefile of libc: > > [..] > echo libc.so.7: /usr/obj/usr/src/tmp/usr/lib/libcompiler_rt.a > /usr/obj/usr/src/tmp/usr/lib/libssp_nonshared.a >> .depend > cc -O -pipe -G0 -I/usr/src/lib/libc/include > -I/usr/src/lib/libc/../../include -I/usr/src/lib/libc/mips -DNLS > -DSOFTFLOAT -D__DBINTERFACE_PRIVATE -I/usr/src/lib/libc/../../contrib/gdtoa > -I/usr/src/lib/libc/../../contrib/libc-vis -DINET6 > -I/usr/obj/usr/src/lib/libc -I/usr/src/lib/libc/resolv -D_ACL_PRIVATE > -DPOSIX_MISTAKE -I/usr/src/lib/libc/../libmd > -I/usr/src/lib/libc/../../contrib/jemalloc/include > -I/usr/src/lib/libc/../../contrib/tzcode/stdtime > -I/usr/src/lib/libc/stdtime -I/usr/src/lib/libc/locale -DBROKEN_DES > -DPORTMAP -DDES_BUILTIN -I/usr/src/lib/libc/rpc > -I/usr/src/lib/libc/mips/softfloat -I/usr/src/lib/libc/softfloat > -DSOFTFLOAT_FOR_GCC -DYP -DNS_CACHING -DSYMBOL_VERSIONING -std=gnu99 > -Wsystem-headers -Werror -Wall -Wno-format-y2k -Wno-uninitialized > -Wno-pointer-sign -I/usr/src/lib/libutil -I/usr/src/lib/msun/mips > -I/usr/src/lib/msun/src -c /usr/src/lib/libc/db/btree/bt_close.c -o > bt_close.o > Killed > *** Error code 137 > > % dmesg > pid 20537 (make), uid 0, was killed: out of swap space > Oct 13 11:19:31 pomona kernel: pid 20537 (make), uid 0, was killed: out of > swap space > > Maybe the memory used for the tmpfs before is not being returned even > after unmonting /tmp? I will try again with a reboot after commenting > out /tmp in fstab. > > Wolfgang > _______________________________________________ > freebsd-mips@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-mips > To unsubscribe, send any mail to "freebsd-mips-unsubscribe@freebsd.org" > From owner-freebsd-mips@freebsd.org Tue Oct 13 20:12:30 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 E7365A12E7F for ; Tue, 13 Oct 2015 20:12:30 +0000 (UTC) (envelope-from wolfgang@lyxys.ka.sub.org) Received: from saturn.lyxys.ka.sub.org (saturn.lyxys.ka.sub.org [217.29.35.151]) (using TLSv1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 69E8914A1 for ; Tue, 13 Oct 2015 20:12:30 +0000 (UTC) (envelope-from wolfgang@lyxys.ka.sub.org) Received: from juno.lyxys.ka.sub.org (juno.lyx [IPv6:fd2a:89ca:7d54:0:240:caff:fe92:4f47]) by saturn.lyxys.ka.sub.org (8.15.2/8.15.2) with ESMTPS id t9DKCDed028991 (version=TLSv1 cipher=DHE-RSA-AES128-SHA bits=128 verify=FAIL); Tue, 13 Oct 2015 22:12:14 +0200 (CEST) (envelope-from wolfgang@lyxys.ka.sub.org) Received: from juno.lyxys.ka.sub.org (localhost [127.0.0.1]) by juno.lyxys.ka.sub.org (8.15.2/8.15.2) with ESMTPS id t9DKCDZQ068452 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Tue, 13 Oct 2015 22:12:13 +0200 (CEST) (envelope-from wolfgang@lyxys.ka.sub.org) Received: (from wolfgang@localhost) by juno.lyxys.ka.sub.org (8.15.2/8.15.2/Submit) id t9DKCCJ4068451; Tue, 13 Oct 2015 22:12:12 +0200 (CEST) (envelope-from wolfgang@lyxys.ka.sub.org) X-Authentication-Warning: juno.lyx: wolfgang set sender to wolfgang@lyxys.ka.sub.org using -f Date: Tue, 13 Oct 2015 22:12:12 +0200 From: Wolfgang Zenker To: Eugene Grosbein Cc: freebsd-mips@freebsd.org Subject: Re: Edge Router Lite runs out of memory on buildworld Message-ID: <20151013201212.GB68409@lyxys.ka.sub.org> References: <20151013032213.GA52162@lyxys.ka.sub.org> <561CA5CA.9040100@rdtc.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <561CA5CA.9040100@rdtc.ru> Organization: private site User-Agent: Mutt/1.5.24 (2015-08-30) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (saturn.lyxys.ka.sub.org [IPv6:fd2a:89ca:7d54:1:200:24ff:feca:b4cc]); Tue, 13 Oct 2015 22:12:14 +0200 (CEST) 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: Tue, 13 Oct 2015 20:12:31 -0000 Hi, * Eugene Grosbein [151013 08:33]: > On 13.10.2015 10:22, Wolfgang Zenker wrote: >> [..] >> Today buildworld failed with the system running out of memory >> on building libc.so: >> [..] > Do you use cc option "-Os" too reduce code size? > I use it for MIPS32 while cross-compiling on amd64 and world compiles and runs just fine. > I wonder if this would free some memory too because of smaller code. I have not tried that yet, might be on of the next things to try. Wolfgang From owner-freebsd-mips@freebsd.org Tue Oct 13 20:14:26 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 3584EA12EEC for ; Tue, 13 Oct 2015 20:14:26 +0000 (UTC) (envelope-from wolfgang@lyxys.ka.sub.org) Received: from saturn.lyxys.ka.sub.org (saturn.lyxys.ka.sub.org [217.29.35.151]) (using TLSv1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B74E51831 for ; Tue, 13 Oct 2015 20:14:25 +0000 (UTC) (envelope-from wolfgang@lyxys.ka.sub.org) Received: from juno.lyxys.ka.sub.org (juno.lyx [IPv6:fd2a:89ca:7d54:0:240:caff:fe92:4f47]) by saturn.lyxys.ka.sub.org (8.15.2/8.15.2) with ESMTPS id t9DKE8CD028997 (version=TLSv1 cipher=DHE-RSA-AES128-SHA bits=128 verify=FAIL); Tue, 13 Oct 2015 22:14:10 +0200 (CEST) (envelope-from wolfgang@lyxys.ka.sub.org) Received: from juno.lyxys.ka.sub.org (localhost [127.0.0.1]) by juno.lyxys.ka.sub.org (8.15.2/8.15.2) with ESMTPS id t9DKE8iM068466 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Tue, 13 Oct 2015 22:14:08 +0200 (CEST) (envelope-from wolfgang@lyxys.ka.sub.org) Received: (from wolfgang@localhost) by juno.lyxys.ka.sub.org (8.15.2/8.15.2/Submit) id t9DKE8TC068465; Tue, 13 Oct 2015 22:14:08 +0200 (CEST) (envelope-from wolfgang@lyxys.ka.sub.org) X-Authentication-Warning: juno.lyx: wolfgang set sender to wolfgang@lyxys.ka.sub.org using -f Date: Tue, 13 Oct 2015 22:14:08 +0200 From: Wolfgang Zenker To: Adrian Chadd Cc: Eugene Grosbein , "freebsd-mips@freebsd.org" Subject: Re: Edge Router Lite runs out of memory on buildworld Message-ID: <20151013201408.GC68409@lyxys.ka.sub.org> References: <20151013032213.GA52162@lyxys.ka.sub.org> <561CA5CA.9040100@rdtc.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: private site User-Agent: Mutt/1.5.24 (2015-08-30) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (saturn.lyxys.ka.sub.org [IPv6:fd2a:89ca:7d54:1:200:24ff:feca:b4cc]); Tue, 13 Oct 2015 22:14:10 +0200 (CEST) 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: Tue, 13 Oct 2015 20:14:26 -0000 * Adrian Chadd [151013 18:10]: > hm, is it gcc or clang? I have nothing cc-related in my make.conf, so I guess it will be gcc: % cc --version cc (GCC) 4.2.1 20070831 patched [FreeBSD] Copyright (C) 2007 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Wolfgang From owner-freebsd-mips@freebsd.org Tue Oct 13 20:17:27 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 C1A04A12FD6 for ; Tue, 13 Oct 2015 20:17:27 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-io0-x232.google.com (mail-io0-x232.google.com [IPv6:2607:f8b0:4001:c06::232]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 8E09318C1 for ; Tue, 13 Oct 2015 20:17:27 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by iow1 with SMTP id 1so34116521iow.1 for ; Tue, 13 Oct 2015 13:17:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=USaAyUIIIlzqaKshNc8m5pHipjdRivtUpaKZEDxi7Z0=; b=k0J3bzjd3QJTCnve77Hk5bUgCFFigQjbfBel657G31Jlb+lvj5pi0NYELqVGUVpott vhmckIFe+FH+hWnJo1ZDiWIK3iLmVi00NWXwHKMaVBnXEhypbMoL5yEea1II5OP6gZSn DjAYT5lOhcBFugsn5UKgOhexHMnSUYTwE3FiCmWlDagW+Hjao1nyRvFe57XggEyTBK8j PiEG6Qahxej6mWbDYlJZszcx63A14iIZ8S8a/ItMRGU22JiLNatJI0g+k/4k+J9g/yOa WCeC/V/sSibS4KLPgzJ7ku9Ls9EHipMIGtn8KKNzwXcM9lTy6KEIetXPaOLFURdhqFNN 02BQ== MIME-Version: 1.0 X-Received: by 10.107.35.78 with SMTP id j75mr34562381ioj.123.1444767446889; Tue, 13 Oct 2015 13:17:26 -0700 (PDT) Received: by 10.36.2.10 with HTTP; Tue, 13 Oct 2015 13:17:26 -0700 (PDT) In-Reply-To: <20151013201408.GC68409@lyxys.ka.sub.org> References: <20151013032213.GA52162@lyxys.ka.sub.org> <561CA5CA.9040100@rdtc.ru> <20151013201408.GC68409@lyxys.ka.sub.org> Date: Tue, 13 Oct 2015 13:17:26 -0700 Message-ID: Subject: Re: Edge Router Lite runs out of memory on buildworld From: Adrian Chadd To: Wolfgang Zenker Cc: Eugene Grosbein , "freebsd-mips@freebsd.org" Content-Type: text/plain; charset=UTF-8 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: Tue, 13 Oct 2015 20:17:27 -0000 ok, so i wonder what bumped the memory requirements. Maybe it was the newer jemalloc import. -a On 13 October 2015 at 13:14, Wolfgang Zenker wrote: > * Adrian Chadd [151013 18:10]: >> hm, is it gcc or clang? > > I have nothing cc-related in my make.conf, so I guess it will be gcc: > % cc --version > cc (GCC) 4.2.1 20070831 patched [FreeBSD] > Copyright (C) 2007 Free Software Foundation, Inc. > This is free software; see the source for copying conditions. There is NO > warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. > > Wolfgang > _______________________________________________ > freebsd-mips@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-mips > To unsubscribe, send any mail to "freebsd-mips-unsubscribe@freebsd.org" From owner-freebsd-mips@freebsd.org Tue Oct 13 20:19:18 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 DC225A1201A for ; Tue, 13 Oct 2015 20:19:18 +0000 (UTC) (envelope-from wolfgang@lyxys.ka.sub.org) Received: from saturn.lyxys.ka.sub.org (saturn.lyxys.ka.sub.org [217.29.35.151]) (using TLSv1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 5CE45190A for ; Tue, 13 Oct 2015 20:19:17 +0000 (UTC) (envelope-from wolfgang@lyxys.ka.sub.org) Received: from juno.lyxys.ka.sub.org (juno.lyx [IPv6:fd2a:89ca:7d54:0:240:caff:fe92:4f47]) by saturn.lyxys.ka.sub.org (8.15.2/8.15.2) with ESMTPS id t9DKJ1hb029010 (version=TLSv1 cipher=DHE-RSA-AES128-SHA bits=128 verify=FAIL); Tue, 13 Oct 2015 22:19:03 +0200 (CEST) (envelope-from wolfgang@lyxys.ka.sub.org) Received: from juno.lyxys.ka.sub.org (localhost [127.0.0.1]) by juno.lyxys.ka.sub.org (8.15.2/8.15.2) with ESMTPS id t9DKJ18i068752 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Tue, 13 Oct 2015 22:19:01 +0200 (CEST) (envelope-from wolfgang@lyxys.ka.sub.org) Received: (from wolfgang@localhost) by juno.lyxys.ka.sub.org (8.15.2/8.15.2/Submit) id t9DKJ1D7068749; Tue, 13 Oct 2015 22:19:01 +0200 (CEST) (envelope-from wolfgang@lyxys.ka.sub.org) X-Authentication-Warning: juno.lyx: wolfgang set sender to wolfgang@lyxys.ka.sub.org using -f Date: Tue, 13 Oct 2015 22:19:01 +0200 From: Wolfgang Zenker To: Michael Mitchell Cc: freebsd-mips@freebsd.org Subject: Re: Edge Router Lite runs out of memory on buildworld Message-ID: <20151013201901.GD68409@lyxys.ka.sub.org> References: <20151013032213.GA52162@lyxys.ka.sub.org> <20151013200541.GA68251@lyxys.ka.sub.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: private site User-Agent: Mutt/1.5.24 (2015-08-30) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (saturn.lyxys.ka.sub.org [IPv6:fd2a:89ca:7d54:1:200:24ff:feca:b4cc]); Tue, 13 Oct 2015 22:19:03 +0200 (CEST) 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: Tue, 13 Oct 2015 20:19:19 -0000 Hi, * Michael Mitchell [151013 22:08]: > you might want to try adding swap space (1 GB?) and restart the process > https://www.freebsd.org/doc/handbook/adding-swap-space.html yes, I will try that. Just need to build a kernel with swap-support first. Wolfgang From owner-freebsd-mips@freebsd.org Tue Oct 13 20:23:24 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 F1FD2A12270 for ; Tue, 13 Oct 2015 20:23:24 +0000 (UTC) (envelope-from wolfgang@lyxys.ka.sub.org) Received: from saturn.lyxys.ka.sub.org (saturn.lyxys.ka.sub.org [217.29.35.151]) (using TLSv1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 7D785106D for ; Tue, 13 Oct 2015 20:23:24 +0000 (UTC) (envelope-from wolfgang@lyxys.ka.sub.org) Received: from juno.lyxys.ka.sub.org (juno.lyx [IPv6:fd2a:89ca:7d54:0:240:caff:fe92:4f47]) by saturn.lyxys.ka.sub.org (8.15.2/8.15.2) with ESMTPS id t9DKN8aQ029030 (version=TLSv1 cipher=DHE-RSA-AES128-SHA bits=128 verify=FAIL); Tue, 13 Oct 2015 22:23:09 +0200 (CEST) (envelope-from wolfgang@lyxys.ka.sub.org) Received: from juno.lyxys.ka.sub.org (localhost [127.0.0.1]) by juno.lyxys.ka.sub.org (8.15.2/8.15.2) with ESMTPS id t9DKN77o068784 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Tue, 13 Oct 2015 22:23:07 +0200 (CEST) (envelope-from wolfgang@lyxys.ka.sub.org) Received: (from wolfgang@localhost) by juno.lyxys.ka.sub.org (8.15.2/8.15.2/Submit) id t9DKN7dx068783; Tue, 13 Oct 2015 22:23:07 +0200 (CEST) (envelope-from wolfgang@lyxys.ka.sub.org) X-Authentication-Warning: juno.lyx: wolfgang set sender to wolfgang@lyxys.ka.sub.org using -f Date: Tue, 13 Oct 2015 22:23:07 +0200 From: Wolfgang Zenker To: Adrian Chadd Cc: Eugene Grosbein , "freebsd-mips@freebsd.org" Subject: Re: Edge Router Lite runs out of memory on buildworld Message-ID: <20151013202307.GE68409@lyxys.ka.sub.org> References: <20151013032213.GA52162@lyxys.ka.sub.org> <561CA5CA.9040100@rdtc.ru> <20151013201408.GC68409@lyxys.ka.sub.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: private site User-Agent: Mutt/1.5.24 (2015-08-30) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (saturn.lyxys.ka.sub.org [IPv6:fd2a:89ca:7d54:1:200:24ff:feca:b4cc]); Tue, 13 Oct 2015 22:23:09 +0200 (CEST) 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: Tue, 13 Oct 2015 20:23:25 -0000 Hi, * Adrian Chadd [151013 22:17]: > ok, so i wonder what bumped the memory requirements. Maybe it was the > newer jemalloc import. can I do anything to find out? Wolfgang From owner-freebsd-mips@freebsd.org Tue Oct 13 20:27:42 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 6216DA123D5 for ; Tue, 13 Oct 2015 20:27:42 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-ig0-x229.google.com (mail-ig0-x229.google.com [IPv6:2607:f8b0:4001:c05::229]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 2D2B8135F for ; Tue, 13 Oct 2015 20:27:42 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by igbhv6 with SMTP id hv6so2313085igb.0 for ; Tue, 13 Oct 2015 13:27:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=wqLV45iEfWh8nbNpobO2+NPgL1RnjRqgrorm4c8RVFg=; b=fTF8JpvZo2XwXiyR+Fpk8+yuhaJWGSIcfXtavmxak8niFZbt7PdOrIwu+Ur8kUTPh5 WbJFzU7cPJf9xQy+suEoo4zkJ54ha2igG6jl+uoaklWXlA2eUq7qjKPvb45Ogn8q0P5N 2yqCIWkoboucUw/SW+HecAXsWe0I4/9LNsB7QAu7/hVtxGSE1TL4dR9eC7pcPuCEgjLr VJQ2yqJ3Y9ahFgRUwR48iFugdOktQ9ntRjF7PDq9LhZysfkzkRj+xlFAw3xKuZIO8mty oSKXoRwesVk1yZ3yPjQuWgoiFyX5pw+C3kkCQbgua9TOsxvBkzKeg3vBG4vxdtPbIA/V QpLw== MIME-Version: 1.0 X-Received: by 10.50.66.137 with SMTP id f9mr20503536igt.22.1444768061665; Tue, 13 Oct 2015 13:27:41 -0700 (PDT) Received: by 10.36.2.10 with HTTP; Tue, 13 Oct 2015 13:27:41 -0700 (PDT) In-Reply-To: <20151013202307.GE68409@lyxys.ka.sub.org> References: <20151013032213.GA52162@lyxys.ka.sub.org> <561CA5CA.9040100@rdtc.ru> <20151013201408.GC68409@lyxys.ka.sub.org> <20151013202307.GE68409@lyxys.ka.sub.org> Date: Tue, 13 Oct 2015 13:27:41 -0700 Message-ID: Subject: Re: Edge Router Lite runs out of memory on buildworld From: Adrian Chadd To: Wolfgang Zenker Cc: Eugene Grosbein , "freebsd-mips@freebsd.org" Content-Type: text/plain; charset=UTF-8 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: Tue, 13 Oct 2015 20:27:42 -0000 Try building / running a root image from before the jemalloc import? -adrian On 13 October 2015 at 13:23, Wolfgang Zenker wrote: > Hi, > > * Adrian Chadd [151013 22:17]: >> ok, so i wonder what bumped the memory requirements. Maybe it was the >> newer jemalloc import. > > can I do anything to find out? > > Wolfgang > _______________________________________________ > freebsd-mips@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-mips > To unsubscribe, send any mail to "freebsd-mips-unsubscribe@freebsd.org" From owner-freebsd-mips@freebsd.org Tue Oct 13 20:45:58 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 A9A0DA12A08 for ; Tue, 13 Oct 2015 20:45:58 +0000 (UTC) (envelope-from wolfgang@lyxys.ka.sub.org) Received: from saturn.lyxys.ka.sub.org (saturn.lyxys.ka.sub.org [217.29.35.151]) (using TLSv1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 3452823C for ; Tue, 13 Oct 2015 20:45:57 +0000 (UTC) (envelope-from wolfgang@lyxys.ka.sub.org) Received: from juno.lyxys.ka.sub.org (juno.lyx [IPv6:fd2a:89ca:7d54:0:240:caff:fe92:4f47]) by saturn.lyxys.ka.sub.org (8.15.2/8.15.2) with ESMTPS id t9DKjfZo029080 (version=TLSv1 cipher=DHE-RSA-AES128-SHA bits=128 verify=FAIL); Tue, 13 Oct 2015 22:45:42 +0200 (CEST) (envelope-from wolfgang@lyxys.ka.sub.org) Received: from juno.lyxys.ka.sub.org (localhost [127.0.0.1]) by juno.lyxys.ka.sub.org (8.15.2/8.15.2) with ESMTPS id t9DKjepU069266 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Tue, 13 Oct 2015 22:45:41 +0200 (CEST) (envelope-from wolfgang@lyxys.ka.sub.org) Received: (from wolfgang@localhost) by juno.lyxys.ka.sub.org (8.15.2/8.15.2/Submit) id t9DKjejF069265; Tue, 13 Oct 2015 22:45:40 +0200 (CEST) (envelope-from wolfgang@lyxys.ka.sub.org) X-Authentication-Warning: juno.lyx: wolfgang set sender to wolfgang@lyxys.ka.sub.org using -f Date: Tue, 13 Oct 2015 22:45:40 +0200 From: Wolfgang Zenker To: Adrian Chadd Cc: Eugene Grosbein , "freebsd-mips@freebsd.org" Subject: Re: Edge Router Lite runs out of memory on buildworld Message-ID: <20151013204540.GF68409@lyxys.ka.sub.org> References: <20151013032213.GA52162@lyxys.ka.sub.org> <561CA5CA.9040100@rdtc.ru> <20151013201408.GC68409@lyxys.ka.sub.org> <20151013202307.GE68409@lyxys.ka.sub.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: private site User-Agent: Mutt/1.5.24 (2015-08-30) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (saturn.lyxys.ka.sub.org [IPv6:fd2a:89ca:7d54:1:200:24ff:feca:b4cc]); Tue, 13 Oct 2015 22:45:42 +0200 (CEST) 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: Tue, 13 Oct 2015 20:45:58 -0000 * Adrian Chadd [151013 22:27]: > Try building / running a root image from before the jemalloc import? The jemalloc import was done Sep 22nd, so my last successful build was building the new jemalloc, probably (I'm not entirely sure) running on a pre-import system. Unfortunately I don't have the old kernel anymore, so I will look if I can find a suitable image. Wolfgang From owner-freebsd-mips@freebsd.org Tue Oct 13 20:54:58 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 C90CBA12D5B for ; Tue, 13 Oct 2015 20:54:58 +0000 (UTC) (envelope-from hiren@strugglingcoder.info) Received: from mail.strugglingcoder.info (strugglingcoder.info [65.19.130.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.strugglingcoder.info", Issuer "mail.strugglingcoder.info" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id B5032B33 for ; Tue, 13 Oct 2015 20:54:58 +0000 (UTC) (envelope-from hiren@strugglingcoder.info) Received: from localhost (unknown [10.1.1.3]) (Authenticated sender: hiren@strugglingcoder.info) by mail.strugglingcoder.info (Postfix) with ESMTPA id 241CB109595; Tue, 13 Oct 2015 13:54:58 -0700 (PDT) Date: Tue, 13 Oct 2015 13:54:58 -0700 From: hiren panchasara To: Piotr Kubaj Cc: Adrian Chadd , Eugene Grosbein , "freebsd-mips@freebsd.org" Subject: Re: Dropbear installed by default Message-ID: <20151013205458.GB87252@strugglingcoder.info> References: <561CBE04.1040900@riseup.net> <561CC089.3070105@rdtc.ru> <561CC146.6060407@riseup.net> <561D2D92.6010705@riseup.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="VrqPEDrXMn8OVzN4" Content-Disposition: inline In-Reply-To: <561D2D92.6010705@riseup.net> User-Agent: Mutt/1.5.23 (2014-03-12) 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: Tue, 13 Oct 2015 20:54:58 -0000 --VrqPEDrXMn8OVzN4 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On 10/13/15 at 06:13P, Piotr Kubaj wrote: > On 10/13/2015 18:11, Adrian Chadd wrote: > > I'm very tempted to put dropbear in base/contrib because of exactly this. > > > That's exactly what I've proposed, except that I also want to write the > usr.sbin glue. That'd be awesome. Cheers, Hiren --VrqPEDrXMn8OVzN4 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQF8BAABCgBmBQJWHW+eXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXRBNEUyMEZBMUQ4Nzg4RjNGMTdFNjZGMDI4 QjkyNTBFMTU2M0VERkU1AAoJEIuSUOFWPt/lvGYH/38Gj23AkLc5FwsznQHkcVLy FjNLEAvrzQEQcB8SS6g36qQr2GKbAaSUN2QMKE9qOyT59A/P+803XsNc4A8Uadin Jjvb1HKcaU06cA1pig4D1GKBRfPNGnIzikxlMhc5g+56bXFtbY4bvdPCb7CV/RQC AgSsber/+37jprhJc3XJ6DFjeJHC94TaFzfeff5BlvEPqx2YQ98taT8t1VgntzW6 ilhQFfwa6uLeL18QfPd6IHUvpqXmZpn0yFY2+ED1kVi9QzJLXk2p+fL/yc/7dcXn l1Fdb6OwNXZ6HBispNdBubHJyRyxF9qBaTafuLom0kq2qF6XoAMNbmvVymPXoI8= =mukA -----END PGP SIGNATURE----- --VrqPEDrXMn8OVzN4-- From owner-freebsd-mips@freebsd.org Tue Oct 13 21:58:21 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 CEAF9A12F91 for ; Tue, 13 Oct 2015 21:58:21 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-ig0-x232.google.com (mail-ig0-x232.google.com [IPv6:2607:f8b0:4001:c05::232]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 99146129C for ; Tue, 13 Oct 2015 21:58:21 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by igbkq10 with SMTP id kq10so100551972igb.0 for ; Tue, 13 Oct 2015 14:58:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=VVTjqn5Fkko/tmsRUpO+So/dVaGLHpm+2VOCtppSnOk=; b=yvlGTWWVOEwiogHUkY9YspnzcIGi4SMQbXLLlcFvx2Fyk8iL3FLCT0eN34S9ZCo7vk a1dNDTdpOMozc4oNQcMFyIVHIb8uh2BCHQ4ZsHJsDWTYIkRfwayKuxww6VwoKxu1sE5Y xv3jPPYteC+Lvs0TxI8Ci3/ANGUXv3Iet0l0hhzsak4NRvUgi3MbZM+tRYgLgilZ2+ve PbeRZsA4hJIGq9IprklnkBHoV0pfo90y2p4iee1APbRNLHVdioHPqLKs3vRcY3w9dtO6 JLKR/98Hv+6hHv+JMVy0m3vW+H7vBGopPA5Nb7P/wkCLnKKg8BmQGGyX1TxUHdoWm8vI KGRg== MIME-Version: 1.0 X-Received: by 10.50.61.243 with SMTP id t19mr338633igr.22.1444773500613; Tue, 13 Oct 2015 14:58:20 -0700 (PDT) Received: by 10.36.2.10 with HTTP; Tue, 13 Oct 2015 14:58:20 -0700 (PDT) In-Reply-To: <20151013204540.GF68409@lyxys.ka.sub.org> References: <20151013032213.GA52162@lyxys.ka.sub.org> <561CA5CA.9040100@rdtc.ru> <20151013201408.GC68409@lyxys.ka.sub.org> <20151013202307.GE68409@lyxys.ka.sub.org> <20151013204540.GF68409@lyxys.ka.sub.org> Date: Tue, 13 Oct 2015 14:58:20 -0700 Message-ID: Subject: Re: Edge Router Lite runs out of memory on buildworld From: Adrian Chadd To: Wolfgang Zenker Cc: Eugene Grosbein , "freebsd-mips@freebsd.org" Content-Type: text/plain; charset=UTF-8 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: Tue, 13 Oct 2015 21:58:21 -0000 It's not a kernel; it's just the malloc libraries and some ancillary bits. -adrian On 13 October 2015 at 13:45, Wolfgang Zenker wrote: > * Adrian Chadd [151013 22:27]: >> Try building / running a root image from before the jemalloc import? > > The jemalloc import was done Sep 22nd, so my last successful build > was building the new jemalloc, probably (I'm not entirely sure) > running on a pre-import system. > Unfortunately I don't have the old kernel anymore, so I will > look if I can find a suitable image. > > Wolfgang > _______________________________________________ > freebsd-mips@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-mips > To unsubscribe, send any mail to "freebsd-mips-unsubscribe@freebsd.org" From owner-freebsd-mips@freebsd.org Wed Oct 14 17:10:43 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 558A7A150B2 for ; Wed, 14 Oct 2015 17:10:43 +0000 (UTC) (envelope-from eugen@grosbein.net) Received: from hz.grosbein.net (hz.grosbein.net [78.47.246.247]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "hz.grosbein.net", Issuer "hz.grosbein.net" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id DBEA01396 for ; Wed, 14 Oct 2015 17:10:42 +0000 (UTC) (envelope-from eugen@grosbein.net) Received: from eg.sd.rdtc.ru (root@eg.sd.rdtc.ru [62.231.161.221]) by hz.grosbein.net (8.14.9/8.14.9) with ESMTP id t9EHASlh053874 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Wed, 14 Oct 2015 19:10:29 +0200 (CEST) (envelope-from eugen@grosbein.net) X-Envelope-From: eugen@grosbein.net X-Envelope-To: adrian.chadd@gmail.com Received: from eg.sd.rdtc.ru (eugen@localhost [127.0.0.1]) by eg.sd.rdtc.ru (8.15.2/8.15.2) with ESMTP id t9EHAO93023188; Thu, 15 Oct 2015 00:10:24 +0700 (KRAT) (envelope-from eugen@grosbein.net) Subject: Re: jemalloc aborts: lloc_arena.c:363: Failed assertion: "p[i] == 0" To: Adrian Chadd References: <561D2EC1.6030402@grosbein.net> <561D5459.70900@grosbein.net> Cc: "freebsd-mips@freebsd.org" From: Eugene Grosbein Message-ID: <561E8C80.4030005@grosbein.net> Date: Thu, 15 Oct 2015 00:10:24 +0700 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 In-Reply-To: <561D5459.70900@grosbein.net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=1.3 required=5.0 tests=BAYES_00, DATE_IN_FUTURE_96_Q, LOCAL_FROM autolearn=no version=3.3.2 X-Spam-Report: * 1.0 DATE_IN_FUTURE_96_Q Date: is 4 days to 4 months after Received: date * -2.3 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * 2.6 LOCAL_FROM From my domains X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on hz.grosbein.net X-Spam-Level: * 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, 14 Oct 2015 17:10:43 -0000 On 14.10.2015 01:58, Eugene Grosbein wrote: > On 14.10.2015 01:11, Adrian Chadd wrote: >> This was a recentish thing, I thought it was fixed. Which version of >> which tree are you building from? > > I build MIPS code using HEAD sources r289028 > but build box itself is 10-STABLE/amd64 r287164 Should I use MALLOC_PRODUCTION=yes in the make.conf while building world? From owner-freebsd-mips@freebsd.org Wed Oct 14 17:53:49 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 95DFEA15BB9 for ; Wed, 14 Oct 2015 17:53:49 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-ig0-x22d.google.com (mail-ig0-x22d.google.com [IPv6:2607:f8b0:4001:c05::22d]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 62FDE1F42 for ; Wed, 14 Oct 2015 17:53:49 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by igbhv6 with SMTP id hv6so22954808igb.0 for ; Wed, 14 Oct 2015 10:53:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=p7EahzGubje27fqH9/Wtn3FgE+S1fQ0XHNGWizEXVFo=; b=q2MNT1FIJvaf4oAqM/KXVoDvGwW4s6HP/x9xUOWij5ZV2tHwp5msNGvM7Q63XzeC3+ aviuIJeg1sDlJErXZMLykR1WysHZJh9Fc9oJ1NArQE5l7U9WBd1tBQUqa2MaW5e/ySwb j3Bt4haP0XS+mmVRgHUK3FZgPTeBTkL7KLz6ZT5dP584DKFuZUFjGFJZqplTCeEiWuul T3LRXjYWNUqubI3yl895izAnd2P8TrwvXw71UcsR7FMOKfkRoXjV+jxmdxCrw/08+zAW XRmI2k9L8pbmbwAFnwo8ViU67VslZ4F6CU3Zf20XGbJpP0KiCkTJ8kbnh/W0kk9gjEv5 +hTQ== MIME-Version: 1.0 X-Received: by 10.50.111.226 with SMTP id il2mr14620177igb.61.1444845228647; Wed, 14 Oct 2015 10:53:48 -0700 (PDT) Received: by 10.36.46.66 with HTTP; Wed, 14 Oct 2015 10:53:48 -0700 (PDT) In-Reply-To: <561E8C80.4030005@grosbein.net> References: <561D2EC1.6030402@grosbein.net> <561D5459.70900@grosbein.net> <561E8C80.4030005@grosbein.net> Date: Wed, 14 Oct 2015 10:53:48 -0700 Message-ID: Subject: Re: jemalloc aborts: lloc_arena.c:363: Failed assertion: "p[i] == 0" From: Adrian Chadd To: Eugene Grosbein Cc: "freebsd-mips@freebsd.org" Content-Type: text/plain; charset=UTF-8 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, 14 Oct 2015 17:53:49 -0000 No, you're finding an actual real bug with jemalloc, so don't define MALLOC_PRODUCTION. -a On 14 October 2015 at 10:10, Eugene Grosbein wrote: > On 14.10.2015 01:58, Eugene Grosbein wrote: >> On 14.10.2015 01:11, Adrian Chadd wrote: >>> This was a recentish thing, I thought it was fixed. Which version of >>> which tree are you building from? >> >> I build MIPS code using HEAD sources r289028 >> but build box itself is 10-STABLE/amd64 r287164 > > Should I use MALLOC_PRODUCTION=yes in the make.conf while building world? From owner-freebsd-mips@freebsd.org Thu Oct 15 05:34:32 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 000EBA15914 for ; Thu, 15 Oct 2015 05:34:31 +0000 (UTC) (envelope-from eugen@grosbein.net) Received: from hz.grosbein.net (hz.grosbein.net [78.47.246.247]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "hz.grosbein.net", Issuer "hz.grosbein.net" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 8843ED47 for ; Thu, 15 Oct 2015 05:34:30 +0000 (UTC) (envelope-from eugen@grosbein.net) Received: from eg.sd.rdtc.ru (root@eg.sd.rdtc.ru [62.231.161.221]) by hz.grosbein.net (8.14.9/8.14.9) with ESMTP id t9F5YHuS056335 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Thu, 15 Oct 2015 07:34:18 +0200 (CEST) (envelope-from eugen@grosbein.net) X-Envelope-From: eugen@grosbein.net X-Envelope-To: adrian.chadd@gmail.com Received: from eg.sd.rdtc.ru (eugen@localhost [127.0.0.1]) by eg.sd.rdtc.ru (8.15.2/8.15.2) with ESMTP id t9F5YD0B027580; Thu, 15 Oct 2015 12:34:14 +0700 (KRAT) (envelope-from eugen@grosbein.net) Subject: Re: jemalloc aborts: lloc_arena.c:363: Failed assertion: "p[i] == 0" To: Adrian Chadd References: <561D2EC1.6030402@grosbein.net> <561D5459.70900@grosbein.net> <561E8C80.4030005@grosbein.net> Cc: "freebsd-mips@freebsd.org" From: Eugene Grosbein Message-ID: <561F3AD5.8040201@grosbein.net> Date: Thu, 15 Oct 2015 12:34:13 +0700 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=0.3 required=5.0 tests=BAYES_00,LOCAL_FROM autolearn=no version=3.3.2 X-Spam-Report: * -2.3 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * 2.6 LOCAL_FROM From my domains X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on hz.grosbein.net 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: Thu, 15 Oct 2015 05:34:32 -0000 On 15.10.2015 00:53, Adrian Chadd wrote: > No, you're finding an actual real bug with jemalloc, so don't define > MALLOC_PRODUCTION. But your scripts build replacement firmwares for routers with MALLOC_PRODUCTION defined. From owner-freebsd-mips@freebsd.org Thu Oct 15 18:42:42 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 2AA73A15174 for ; Thu, 15 Oct 2015 18:42:42 +0000 (UTC) (envelope-from eugen@grosbein.net) Received: from hz.grosbein.net (hz.grosbein.net [78.47.246.247]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "hz.grosbein.net", Issuer "hz.grosbein.net" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id B246C1034 for ; Thu, 15 Oct 2015 18:42:41 +0000 (UTC) (envelope-from eugen@grosbein.net) Received: from eg.sd.rdtc.ru (root@eg.sd.rdtc.ru [62.231.161.221]) by hz.grosbein.net (8.14.9/8.14.9) with ESMTP id t9FIgOGX058304 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Thu, 15 Oct 2015 20:42:25 +0200 (CEST) (envelope-from eugen@grosbein.net) X-Envelope-From: eugen@grosbein.net X-Envelope-To: adrian.chadd@gmail.com Received: from eg.sd.rdtc.ru (eugen@localhost [127.0.0.1]) by eg.sd.rdtc.ru (8.15.2/8.15.2) with ESMTP id t9FIgEKn032512; Fri, 16 Oct 2015 01:42:15 +0700 (KRAT) (envelope-from eugen@grosbein.net) Subject: Re: jemalloc aborts: lloc_arena.c:363: Failed assertion: "p[i] == 0" To: Adrian Chadd References: <561D2EC1.6030402@grosbein.net> <561D5459.70900@grosbein.net> <561E8C80.4030005@grosbein.net> Cc: "freebsd-mips@freebsd.org" From: Eugene Grosbein X-Enigmail-Draft-Status: N1110 Message-ID: <561FF386.7030307@grosbein.net> Date: Fri, 16 Oct 2015 01:42:14 +0700 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=0.3 required=5.0 tests=BAYES_00,LOCAL_FROM autolearn=no version=3.3.2 X-Spam-Report: * -2.3 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * 2.6 LOCAL_FROM From my domains X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on hz.grosbein.net 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: Thu, 15 Oct 2015 18:42:42 -0000 On 15.10.2015 00:53, Adrian Chadd wrote: > No, you're finding an actual real bug with jemalloc, so don't define > MALLOC_PRODUCTION. As a test, I've used qemu under FreeBSD/amd64 to build two packages for MIPS32: pkg-1.6.1.txz and mpd-5.7_3.txz and stored them to USB flash. I've mounted that USB flash as /usr/local in my TL WDR3600, extracted pkg-static and tried to install both packages and got kernel panic in process: # ./pkg-static install -yU /usr/local/pkg/*.txz pkg-static: Repository FreeBSD cannot be opened. 'pkg update' required Checking integrity... done (0 conflicting) The following 2 package(s) will be affected (of 0 checked): New packages to be INSTALLED: mpd5: 5.7_3 pkg: 1.6.1 The process will require 12 MiB more space. [1/2] Installing mpd5-5.7_3... [1/2] Extracting mpd5-5.7_3: 100% [2/2] Installing pkg-1.6.1... [2/2] Extracting pkg-1.6.1: 16% Trap cause = 2 (TLB miss (load or instr. fetch) - kernel mode) panic: trap Uptime: 3m7s panic: bufwrite: buffer is not busy??? Uptime: 3m7s This is repeatable. This time the device used system built using HEAD sources r289362 with MALLOC_PRODUCTION. From owner-freebsd-mips@freebsd.org Fri Oct 16 17:10:10 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 E4ABCA1680E for ; Fri, 16 Oct 2015 17:10:10 +0000 (UTC) (envelope-from egrosbein@rdtc.ru) Received: from hz.grosbein.net (hz.grosbein.net [78.47.246.247]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "hz.grosbein.net", Issuer "hz.grosbein.net" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 7D3C782A for ; Fri, 16 Oct 2015 17:10:09 +0000 (UTC) (envelope-from egrosbein@rdtc.ru) Received: from eg.sd.rdtc.ru (root@eg.sd.rdtc.ru [62.231.161.221]) by hz.grosbein.net (8.14.9/8.14.9) with ESMTP id t9GH9ujB062605 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Fri, 16 Oct 2015 19:10:00 +0200 (CEST) (envelope-from egrosbein@rdtc.ru) X-Envelope-From: egrosbein@rdtc.ru X-Envelope-To: Received: from eg.sd.rdtc.ru (eugen@localhost [127.0.0.1]) by eg.sd.rdtc.ru (8.15.2/8.15.2) with ESMTP id t9GH9pA4080584 for ; Sat, 17 Oct 2015 00:09:51 +0700 (KRAT) (envelope-from egrosbein@rdtc.ru) To: freebsd-mips@freebsd.org From: Eugene Grosbein Subject: strange error building print/texinfo Message-ID: <56212F5F.3020603@rdtc.ru> Date: Sat, 17 Oct 2015 00:09:51 +0700 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00, DATE_IN_FUTURE_96_Q, T_RP_MATCHES_RCVD autolearn=no version=3.3.2 X-Spam-Report: * 1.0 DATE_IN_FUTURE_96_Q Date: is 4 days to 4 months after Received: date * -0.0 T_RP_MATCHES_RCVD Envelope sender domain matches handover relay * domain * -2.3 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on hz.grosbein.net 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: Fri, 16 Oct 2015 17:10:11 -0000 Hi! contrib/texinfo was removed from head base system, so building gmake needs print/texinfo to be built previously but that fails with strange error: # make MAKE_JOBS_UNSAFE=yes ===> Building for texinfo-6.0.20151013 [skip] gmake-lite[5]: Entering directory '/var/tmp/usr/ports/print/texinfo/work/texinfo-6.0/tp' install -m 0644 ./t/include_reference/f--ile.png t/include_dir/f--ile.png install: t/include_dir/f--ile.png: Bad address Makefile:3603: recipe for target 't/include_dir/f--ile.png' failed gmake-lite[5]: *** [t/include_dir/f--ile.png] Error 71 I use mips32 and qemu-mips-static to build packages. How to debug this? From owner-freebsd-mips@freebsd.org Fri Oct 16 17:10:10 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 B6ED7A16803 for ; Fri, 16 Oct 2015 17:10:10 +0000 (UTC) (envelope-from eugen@grosbein.net) Received: from hz.grosbein.net (hz.grosbein.net [78.47.246.247]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "hz.grosbein.net", Issuer "hz.grosbein.net" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 5101C829 for ; Fri, 16 Oct 2015 17:10:09 +0000 (UTC) (envelope-from eugen@grosbein.net) Received: from eg.sd.rdtc.ru (root@eg.sd.rdtc.ru [62.231.161.221]) by hz.grosbein.net (8.14.9/8.14.9) with ESMTP id t9GHA010062606 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Fri, 16 Oct 2015 19:10:01 +0200 (CEST) (envelope-from eugen@grosbein.net) X-Envelope-From: eugen@grosbein.net X-Envelope-To: Received: from eg.sd.rdtc.ru (eugen@localhost [127.0.0.1]) by eg.sd.rdtc.ru (8.15.2/8.15.2) with ESMTP id t9GH9unu080591 for ; Sat, 17 Oct 2015 00:09:57 +0700 (KRAT) (envelope-from eugen@grosbein.net) To: freebsd-mips@freebsd.org From: Eugene Grosbein Subject: strange error building print/texinfo Message-ID: <56212F64.307@grosbein.net> Date: Sat, 17 Oct 2015 00:09:56 +0700 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=0.3 required=5.0 tests=BAYES_00,LOCAL_FROM autolearn=no version=3.3.2 X-Spam-Report: * -2.3 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * 2.6 LOCAL_FROM From my domains X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on hz.grosbein.net 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: Fri, 16 Oct 2015 17:10:10 -0000 Hi! contrib/texinfo was removed from head base system, so building gmake needs print/texinfo to be built previously but that fails with strange error: # make MAKE_JOBS_UNSAFE=yes ===> Building for texinfo-6.0.20151013 [skip] gmake-lite[5]: Entering directory '/var/tmp/usr/ports/print/texinfo/work/texinfo-6.0/tp' install -m 0644 ./t/include_reference/f--ile.png t/include_dir/f--ile.png install: t/include_dir/f--ile.png: Bad address Makefile:3603: recipe for target 't/include_dir/f--ile.png' failed gmake-lite[5]: *** [t/include_dir/f--ile.png] Error 71 I use mips32 and qemu-mips-static to build packages. How to debug this? From owner-freebsd-mips@freebsd.org Fri Oct 16 22:01:03 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 F1AE4A17E5A for ; Fri, 16 Oct 2015 22:01:03 +0000 (UTC) (envelope-from sbruno@freebsd.org) Received: from mail.ignoranthack.me (ignoranthack.me [199.102.79.106]) (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 D8507ABA for ; Fri, 16 Oct 2015 22:01:03 +0000 (UTC) (envelope-from sbruno@freebsd.org) Received: from [192.168.200.208] (unknown [50.136.155.142]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: sbruno@ignoranthack.me) by mail.ignoranthack.me (Postfix) with ESMTPSA id A80941928D7 for ; Fri, 16 Oct 2015 22:00:55 +0000 (UTC) Subject: Re: strange error building print/texinfo To: freebsd-mips@freebsd.org References: <56212F5F.3020603@rdtc.ru> From: Sean Bruno Message-ID: <56217396.1050509@freebsd.org> Date: Fri, 16 Oct 2015 15:00:54 -0700 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: <56212F5F.3020603@rdtc.ru> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit 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: Fri, 16 Oct 2015 22:01:04 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 On 10/16/15 10:09, Eugene Grosbein wrote: > Hi! > > contrib/texinfo was removed from head base system, so building > gmake needs print/texinfo to be built previously but that fails > with strange error: > > # make MAKE_JOBS_UNSAFE=yes ===> Building for > texinfo-6.0.20151013 [skip] gmake-lite[5]: Entering directory > '/var/tmp/usr/ports/print/texinfo/work/texinfo-6.0/tp' install -m > 0644 ./t/include_reference/f--ile.png t/include_dir/f--ile.png > install: t/include_dir/f--ile.png: Bad address Makefile:3603: > recipe for target 't/include_dir/f--ile.png' failed gmake-lite[5]: > *** [t/include_dir/f--ile.png] Error 71 > > I use mips32 and qemu-mips-static to build packages. How to debug > this? _______________________________________________ > freebsd-mips@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-mips To > unsubscribe, send any mail to > "freebsd-mips-unsubscribe@freebsd.org" > I just built print/texinfo with the lastes qemu-user-static without an issue: http://tasty.ysv.freebsd.org/build.html?mastername=11mips-default&build= 2015-10-16_18h26m15s My mips jail is at r289200 and my host is at r288681 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQF8BAEBCgBmBQJWIXOSXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXRCQUFENDYzMkU3MTIxREU4RDIwOTk3REQx MjAxRUZDQTFFNzI3RTY0AAoJEBIB78oecn5kpRoIAMtxEXhjCsD+4Ia3H8cnuY09 iQTtVO3egIDEoGQnUYLfBabolJYiYl5L/+NWv5Q5cqEZp2FgmnlLirSX8GBF98Lj 3mKUzZTi0CufMs0jHS9g+V74DKnU5ZdjIt4n+kpI7MgbeBMOc43lgPHwg79142lr 1r3kpFI/lp9l7gYC6q2mJra3MyvyLkUwPJjsNUjw6g5UPXle7x7j4WgbBHkXcorP vk8VGLlD3cRf+pW4vU8XyuBm0a51l1xACOY8yMDkOGWf1w1s4Nnk9tQc79nscMAl xybXN03p3eJL7pU0g77t31bMDIB+EiZFtWllEp+WDFC5Q5LExVSdvcklP1nwmAA= =mJCN -----END PGP SIGNATURE----- From owner-freebsd-mips@freebsd.org Sat Oct 17 09:57:27 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 8BD2FA161A2 for ; Sat, 17 Oct 2015 09:57:27 +0000 (UTC) (envelope-from eugen@grosbein.net) Received: from hz.grosbein.net (hz.grosbein.net [78.47.246.247]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "hz.grosbein.net", Issuer "hz.grosbein.net" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 22A5C1576; Sat, 17 Oct 2015 09:57:26 +0000 (UTC) (envelope-from eugen@grosbein.net) Received: from eg.sd.rdtc.ru (root@eg.sd.rdtc.ru [62.231.161.221]) by hz.grosbein.net (8.14.9/8.14.9) with ESMTP id t9H9v9OM066073 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sat, 17 Oct 2015 11:57:12 +0200 (CEST) (envelope-from eugen@grosbein.net) X-Envelope-From: eugen@grosbein.net X-Envelope-To: sbruno@freebsd.org Received: from eg.sd.rdtc.ru (eugen@localhost [127.0.0.1]) by eg.sd.rdtc.ru (8.15.2/8.15.2) with ESMTP id t9H9v0Ad092201; Sat, 17 Oct 2015 16:57:01 +0700 (KRAT) (envelope-from eugen@grosbein.net) Subject: Re: strange error building print/texinfo To: Sean Bruno , freebsd-mips@freebsd.org References: <56212F5F.3020603@rdtc.ru> <56217396.1050509@freebsd.org> From: Eugene Grosbein Message-ID: <56221B6C.1060406@grosbein.net> Date: Sat, 17 Oct 2015 16:57:00 +0700 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 In-Reply-To: <56217396.1050509@freebsd.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=0.3 required=5.0 tests=BAYES_00,LOCAL_FROM autolearn=no version=3.3.2 X-Spam-Report: * -2.3 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * 2.6 LOCAL_FROM From my domains X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on hz.grosbein.net 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: Sat, 17 Oct 2015 09:57:27 -0000 On 17.10.2015 05:00, Sean Bruno wrote: > I just built print/texinfo with the lastes qemu-user-static without an > issue: > http://tasty.ysv.freebsd.org/build.html?mastername=11mips-default&build= > 2015-10-16_18h26m15s I've digged it: install(1) calls mmap() inside its copy() function: /* * Mmap and write if less than 8M (the limit is so we don't totally * trash memory on big files. This is really a minor hack, but it * wins some CPU back. */ done_copy = 0; if (size <= 8 * 1048576 && trymmap(from_fd) && (p = mmap(NULL, (size_t)size, PROT_READ, MAP_SHARED, from_fd, (off_t)0)) != MAP_FAILED) { nw = write(to_fd, p, size); mmap() returns NULL in my case, not MAP_FAILD. There is no check for NULL and write() returns EFAULT for attempt to write to NULL. From owner-freebsd-mips@freebsd.org Sat Oct 17 10:03:51 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 D8CB0A1648E for ; Sat, 17 Oct 2015 10:03:51 +0000 (UTC) (envelope-from eugen@grosbein.net) Received: from hz.grosbein.net (hz.grosbein.net [78.47.246.247]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "hz.grosbein.net", Issuer "hz.grosbein.net" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 6E05E1902; Sat, 17 Oct 2015 10:03:50 +0000 (UTC) (envelope-from eugen@grosbein.net) Received: from eg.sd.rdtc.ru (root@eg.sd.rdtc.ru [62.231.161.221]) by hz.grosbein.net (8.14.9/8.14.9) with ESMTP id t9HA3keS066103 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sat, 17 Oct 2015 12:03:46 +0200 (CEST) (envelope-from eugen@grosbein.net) X-Envelope-From: eugen@grosbein.net X-Envelope-To: sbruno@freebsd.org Received: from eg.sd.rdtc.ru (eugen@localhost [127.0.0.1]) by eg.sd.rdtc.ru (8.15.2/8.15.2) with ESMTP id t9HA3fgZ092245; Sat, 17 Oct 2015 17:03:41 +0700 (KRAT) (envelope-from eugen@grosbein.net) Subject: Re: strange error building print/texinfo To: Sean Bruno , freebsd-mips@freebsd.org References: <56212F5F.3020603@rdtc.ru> <56217396.1050509@freebsd.org> <56221B6C.1060406@grosbein.net> From: Eugene Grosbein Message-ID: <56221CFD.2070204@grosbein.net> Date: Sat, 17 Oct 2015 17:03:41 +0700 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 In-Reply-To: <56221B6C.1060406@grosbein.net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=1.3 required=5.0 tests=BAYES_00, DATE_IN_FUTURE_96_Q, LOCAL_FROM autolearn=no version=3.3.2 X-Spam-Report: * 1.0 DATE_IN_FUTURE_96_Q Date: is 4 days to 4 months after Received: date * -2.3 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * 2.6 LOCAL_FROM From my domains X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on hz.grosbein.net X-Spam-Level: * 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: Sat, 17 Oct 2015 10:03:51 -0000 On 17.10.2015 16:57, Eugene Grosbein wrote: > On 17.10.2015 05:00, Sean Bruno wrote: > >> I just built print/texinfo with the lastes qemu-user-static without an >> issue: >> http://tasty.ysv.freebsd.org/build.html?mastername=11mips-default&build= >> 2015-10-16_18h26m15s > > I've digged it: install(1) calls mmap() inside its copy() function: > > /* > * Mmap and write if less than 8M (the limit is so we don't totally > * trash memory on big files. This is really a minor hack, but it > * wins some CPU back. > */ > done_copy = 0; > if (size <= 8 * 1048576 && trymmap(from_fd) && > (p = mmap(NULL, (size_t)size, PROT_READ, MAP_SHARED, > from_fd, (off_t)0)) != MAP_FAILED) { > nw = write(to_fd, p, size); > > > mmap() returns NULL in my case, not MAP_FAILD. > There is no check for NULL and write() returns EFAULT for attempt to write to NULL. Source file is zero bytes length. It seems, mmap returns NULL in such case only. From owner-freebsd-mips@freebsd.org Sat Oct 17 16:18:06 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 96D0FA17E10 for ; Sat, 17 Oct 2015 16:18:06 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-ig0-x22a.google.com (mail-ig0-x22a.google.com [IPv6:2607:f8b0:4001:c05::22a]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 64C451F15; Sat, 17 Oct 2015 16:18:06 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by igbdj2 with SMTP id dj2so32615022igb.1; Sat, 17 Oct 2015 09:18:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=OPCEq98pL7mZ9uo/x0KJKiWiIM9PNbLfDpdqKTCt+HQ=; b=1Ag4DKQLq6x2m+ghJn09QdV902TC8qDM9PpA/lTAjKjIvj9vEx04U2qCLXnwn7dvyX EiX1NKnIDgFa4fkJuiBnGYrJ0/k8D8NAavhgjYG+2OVdCbUzCV6WzzvCyTI86wUN/boQ gWKMumI9hS/wOJqXTUE7t/hNYD6cBEI99T1d6P7Ex51neg2RHvj0CYcIuL+I4JVVvZAV RFYNXq+cRrlHwbtPT7BjsX21W0Qj2WDL0u1G9NJg0B+wSvGDEVZCBlOQ1SBu7Glu5aew 8WzRTZ9Xpqh/uFNPc5DpjzMDj5ztXyd5z0xZUCLk5qsUdPibfRbUBK1J11IPGE1wRgtR 85OA== MIME-Version: 1.0 X-Received: by 10.50.61.137 with SMTP id p9mr11866990igr.37.1445098685775; Sat, 17 Oct 2015 09:18:05 -0700 (PDT) Received: by 10.36.46.66 with HTTP; Sat, 17 Oct 2015 09:18:05 -0700 (PDT) In-Reply-To: <56221CFD.2070204@grosbein.net> References: <56212F5F.3020603@rdtc.ru> <56217396.1050509@freebsd.org> <56221B6C.1060406@grosbein.net> <56221CFD.2070204@grosbein.net> Date: Sat, 17 Oct 2015 09:18:05 -0700 Message-ID: Subject: Re: strange error building print/texinfo From: Adrian Chadd To: Eugene Grosbein Cc: Sean Bruno , "freebsd-mips@freebsd.org" Content-Type: text/plain; charset=UTF-8 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: Sat, 17 Oct 2015 16:18:06 -0000 ... what's it do on non-mips? -a On 17 October 2015 at 03:03, Eugene Grosbein wrote: > On 17.10.2015 16:57, Eugene Grosbein wrote: >> On 17.10.2015 05:00, Sean Bruno wrote: >> >>> I just built print/texinfo with the lastes qemu-user-static without an >>> issue: >>> http://tasty.ysv.freebsd.org/build.html?mastername=11mips-default&build= >>> 2015-10-16_18h26m15s >> >> I've digged it: install(1) calls mmap() inside its copy() function: >> >> /* >> * Mmap and write if less than 8M (the limit is so we don't totally >> * trash memory on big files. This is really a minor hack, but it >> * wins some CPU back. >> */ >> done_copy = 0; >> if (size <= 8 * 1048576 && trymmap(from_fd) && >> (p = mmap(NULL, (size_t)size, PROT_READ, MAP_SHARED, >> from_fd, (off_t)0)) != MAP_FAILED) { >> nw = write(to_fd, p, size); >> >> >> mmap() returns NULL in my case, not MAP_FAILD. >> There is no check for NULL and write() returns EFAULT for attempt to write to NULL. > > Source file is zero bytes length. It seems, mmap returns NULL in such case only. > > > _______________________________________________ > freebsd-mips@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-mips > To unsubscribe, send any mail to "freebsd-mips-unsubscribe@freebsd.org" From owner-freebsd-mips@freebsd.org Sat Oct 17 17:57:29 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 CE58EA171B8 for ; Sat, 17 Oct 2015 17:57:29 +0000 (UTC) (envelope-from eugen@grosbein.net) Received: from hz.grosbein.net (hz.grosbein.net [78.47.246.247]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "hz.grosbein.net", Issuer "hz.grosbein.net" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 64347A9D; Sat, 17 Oct 2015 17:57:28 +0000 (UTC) (envelope-from eugen@grosbein.net) Received: from eg.sd.rdtc.ru (root@eg.sd.rdtc.ru [62.231.161.221]) by hz.grosbein.net (8.14.9/8.14.9) with ESMTP id t9HHvG67067308 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sat, 17 Oct 2015 19:57:17 +0200 (CEST) (envelope-from eugen@grosbein.net) X-Envelope-From: eugen@grosbein.net X-Envelope-To: adrian.chadd@gmail.com Received: from eg.sd.rdtc.ru (eugen@localhost [127.0.0.1]) by eg.sd.rdtc.ru (8.15.2/8.15.2) with ESMTP id t9HHv6LS094887; Sun, 18 Oct 2015 00:57:07 +0700 (KRAT) (envelope-from eugen@grosbein.net) Subject: Re: strange error building print/texinfo To: Adrian Chadd References: <56212F5F.3020603@rdtc.ru> <56217396.1050509@freebsd.org> <56221B6C.1060406@grosbein.net> <56221CFD.2070204@grosbein.net> Cc: Sean Bruno , "freebsd-mips@freebsd.org" From: Eugene Grosbein Message-ID: <56228BF2.6060708@grosbein.net> Date: Sun, 18 Oct 2015 00:57:06 +0700 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=0.3 required=5.0 tests=BAYES_00,LOCAL_FROM autolearn=no version=3.3.2 X-Spam-Report: * -2.3 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * 2.6 LOCAL_FROM From my domains X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on hz.grosbein.net 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: Sat, 17 Oct 2015 17:57:29 -0000 On 17.10.2015 23:18, Adrian Chadd wrote: > ... > > what's it do on non-mips? ktrace shows that for amd64, mmap returns MAP_FAILED when size==0 just like standards say. For mips32 it returns NULL. From owner-freebsd-mips@freebsd.org Sat Oct 17 18:26:10 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 3ABF9A1728B for ; Sat, 17 Oct 2015 18:26:10 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-ig0-x22b.google.com (mail-ig0-x22b.google.com [IPv6:2607:f8b0:4001:c05::22b]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 07CC91125; Sat, 17 Oct 2015 18:26:10 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by igbkq10 with SMTP id kq10so33172313igb.0; Sat, 17 Oct 2015 11:26:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=Dtdbsxbi2sPKoxqSbjVPxda7AOMpCw/TQbwv6YF1uxY=; b=T2Z5YIJrAm9pLjjhmqFbCzyCAs7/TfcXIpaLuPTHowzpx3z+oQhUBMBS04GGpgN0L9 6IRtDzfLBDx6XQ17wPGhEeV8EEwidIum8j7NwjTDMIVWUDRKXC1cCqcNuDOqx6uzPq4M Z+fwG3Nt2cjnEMCc8NklpY+WJK7CmQntwL02SIextFGAKaAZnZMO2shaVY9H2mqY/EiT Rh+JrwQ7Z2f2iZ/WfxnEaFPd6B6CHxlEgiZLW8nOVuHz9PvAbx+z7/2Sn11HJKPfz0bY Pa9gOJiHE3UTyzwsaJOWVpXDVxmIiIRc6IZ/JJSbcNK+NhYM5o3pgUz0DO4WaSyTG6f7 EuXA== MIME-Version: 1.0 X-Received: by 10.50.61.243 with SMTP id t19mr11406929igr.22.1445106368967; Sat, 17 Oct 2015 11:26:08 -0700 (PDT) Received: by 10.36.46.66 with HTTP; Sat, 17 Oct 2015 11:26:08 -0700 (PDT) In-Reply-To: <56228BF2.6060708@grosbein.net> References: <56212F5F.3020603@rdtc.ru> <56217396.1050509@freebsd.org> <56221B6C.1060406@grosbein.net> <56221CFD.2070204@grosbein.net> <56228BF2.6060708@grosbein.net> Date: Sat, 17 Oct 2015 11:26:08 -0700 Message-ID: Subject: Re: strange error building print/texinfo From: Adrian Chadd To: Eugene Grosbein Cc: Sean Bruno , "freebsd-mips@freebsd.org" Content-Type: text/plain; charset=UTF-8 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: Sat, 17 Oct 2015 18:26:10 -0000 Hah, oh lordie. Please file a PR for that. We should fix that ASAP! -a On 17 October 2015 at 10:57, Eugene Grosbein wrote: > On 17.10.2015 23:18, Adrian Chadd wrote: >> ... >> >> what's it do on non-mips? > > ktrace shows that for amd64, mmap returns MAP_FAILED when size==0 just like standards say. > For mips32 it returns NULL. > From owner-freebsd-mips@freebsd.org Sat Oct 17 18:30:58 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 2FD77A17375 for ; Sat, 17 Oct 2015 18:30:58 +0000 (UTC) (envelope-from eugen@grosbein.net) Received: from hz.grosbein.net (hz.grosbein.net [78.47.246.247]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "hz.grosbein.net", Issuer "hz.grosbein.net" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id B746111F3; Sat, 17 Oct 2015 18:30:56 +0000 (UTC) (envelope-from eugen@grosbein.net) Received: from eg.sd.rdtc.ru (root@eg.sd.rdtc.ru [62.231.161.221]) by hz.grosbein.net (8.14.9/8.14.9) with ESMTP id t9HIUo16067401 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sat, 17 Oct 2015 20:30:51 +0200 (CEST) (envelope-from eugen@grosbein.net) X-Envelope-From: eugen@grosbein.net X-Envelope-To: adrian.chadd@gmail.com Received: from eg.sd.rdtc.ru (eugen@localhost [127.0.0.1]) by eg.sd.rdtc.ru (8.15.2/8.15.2) with ESMTP id t9HIUknl095114; Sun, 18 Oct 2015 01:30:46 +0700 (KRAT) (envelope-from eugen@grosbein.net) Subject: Re: strange error building print/texinfo To: Adrian Chadd References: <56212F5F.3020603@rdtc.ru> <56217396.1050509@freebsd.org> <56221B6C.1060406@grosbein.net> <56221CFD.2070204@grosbein.net> <56228BF2.6060708@grosbein.net> Cc: Sean Bruno , "freebsd-mips@freebsd.org" From: Eugene Grosbein Message-ID: <562293D6.7020203@grosbein.net> Date: Sun, 18 Oct 2015 01:30:46 +0700 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=1.3 required=5.0 tests=BAYES_00, DATE_IN_FUTURE_96_Q, LOCAL_FROM autolearn=no version=3.3.2 X-Spam-Report: * 1.0 DATE_IN_FUTURE_96_Q Date: is 4 days to 4 months after Received: date * -2.3 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * 2.6 LOCAL_FROM From my domains X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on hz.grosbein.net X-Spam-Level: * 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: Sat, 17 Oct 2015 18:30:58 -0000 On 18.10.2015 01:26, Adrian Chadd wrote: > Hah, oh lordie. > > Please file a PR for that. We should fix that ASAP! I'm not sure if it is qemu-mips bug or kernel bug. From owner-freebsd-mips@freebsd.org Sat Oct 17 18:32:36 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 53309A17481 for ; Sat, 17 Oct 2015 18:32:36 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-io0-x235.google.com (mail-io0-x235.google.com [IPv6:2607:f8b0:4001:c06::235]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 1E3681437; Sat, 17 Oct 2015 18:32:36 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by iow1 with SMTP id 1so154661396iow.1; Sat, 17 Oct 2015 11:32:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=Y6iYo/Z/SfWEcm+y67jBCX8t7nT1hXMMjrWoKLc7pRc=; b=dr+myqHNcBNuzyJLyA6DW+ccGq9IDvMfstsJUhHmLUapmcAMx+cGTIemNDMpeap9uC w3X8ad1zser8j+c+TrrZJ8f15DTA9K9lVrUNtTdmoTDCSTdb+NrZbq4DVhBoixi5WsA9 SJyBAMnVDUb6Qg04ZyrzekzRoPUm1yx+HDD08g73hl03KSibqdJkBWIcN9xc16FU1Cxn TThyagv2803+crDkdL2HMgmGcoLwqMAAHXPsQO0ulWabDr8GZhAj2Tc0MbwdayKDkW2y u4NmCO+FSh5s0JG3at5OI0aMSPNGMgiaKZyVnS4yPpudDVU9qb7aOjGXbNyTZZlVLUGl aItw== MIME-Version: 1.0 X-Received: by 10.107.35.78 with SMTP id j75mr22346680ioj.123.1445106755516; Sat, 17 Oct 2015 11:32:35 -0700 (PDT) Received: by 10.36.46.66 with HTTP; Sat, 17 Oct 2015 11:32:35 -0700 (PDT) In-Reply-To: <562293D6.7020203@grosbein.net> References: <56212F5F.3020603@rdtc.ru> <56217396.1050509@freebsd.org> <56221B6C.1060406@grosbein.net> <56221CFD.2070204@grosbein.net> <56228BF2.6060708@grosbein.net> <562293D6.7020203@grosbein.net> Date: Sat, 17 Oct 2015 11:32:35 -0700 Message-ID: Subject: Re: strange error building print/texinfo From: Adrian Chadd To: Eugene Grosbein Cc: Sean Bruno , "freebsd-mips@freebsd.org" Content-Type: text/plain; charset=UTF-8 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: Sat, 17 Oct 2015 18:32:36 -0000 What's a minimal test case? i'll try it in a few minutes. -a On 17 October 2015 at 11:30, Eugene Grosbein wrote: > On 18.10.2015 01:26, Adrian Chadd wrote: >> Hah, oh lordie. >> >> Please file a PR for that. We should fix that ASAP! > > I'm not sure if it is qemu-mips bug or kernel bug. > > From owner-freebsd-mips@freebsd.org Sat Oct 17 18:34:57 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 11994A17522 for ; Sat, 17 Oct 2015 18:34:57 +0000 (UTC) (envelope-from eugen@grosbein.net) Received: from hz.grosbein.net (hz.grosbein.net [78.47.246.247]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "hz.grosbein.net", Issuer "hz.grosbein.net" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 95D4C1722; Sat, 17 Oct 2015 18:34:56 +0000 (UTC) (envelope-from eugen@grosbein.net) Received: from eg.sd.rdtc.ru (root@eg.sd.rdtc.ru [62.231.161.221]) by hz.grosbein.net (8.14.9/8.14.9) with ESMTP id t9HIYqF1067425 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sat, 17 Oct 2015 20:34:52 +0200 (CEST) (envelope-from eugen@grosbein.net) X-Envelope-From: eugen@grosbein.net X-Envelope-To: adrian.chadd@gmail.com Received: from eg.sd.rdtc.ru (eugen@localhost [127.0.0.1]) by eg.sd.rdtc.ru (8.15.2/8.15.2) with ESMTP id t9HIYmM8095157; Sun, 18 Oct 2015 01:34:48 +0700 (KRAT) (envelope-from eugen@grosbein.net) Subject: Re: strange error building print/texinfo To: Adrian Chadd References: <56212F5F.3020603@rdtc.ru> <56217396.1050509@freebsd.org> <56221B6C.1060406@grosbein.net> <56221CFD.2070204@grosbein.net> <56228BF2.6060708@grosbein.net> Cc: Sean Bruno , "freebsd-mips@freebsd.org" From: Eugene Grosbein Message-ID: <562294C8.8040208@grosbein.net> Date: Sun, 18 Oct 2015 01:34:48 +0700 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=1.3 required=5.0 tests=BAYES_00, DATE_IN_FUTURE_96_Q, LOCAL_FROM autolearn=no version=3.3.2 X-Spam-Report: * 1.0 DATE_IN_FUTURE_96_Q Date: is 4 days to 4 months after Received: date * -2.3 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * 2.6 LOCAL_FROM From my domains X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on hz.grosbein.net X-Spam-Level: * 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: Sat, 17 Oct 2015 18:34:57 -0000 On 18.10.2015 01:26, Adrian Chadd wrote: > Hah, oh lordie. > > Please file a PR for that. We should fix that ASAP! Ive checked using real MIPS32 device and the problem does not exist there. It shows inside qemu-mips-static only. Should I file a PR still? From owner-freebsd-mips@freebsd.org Sat Oct 17 18:36:54 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 6F428A175A3 for ; Sat, 17 Oct 2015 18:36:54 +0000 (UTC) (envelope-from eugen@grosbein.net) Received: from hz.grosbein.net (hz.grosbein.net [78.47.246.247]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "hz.grosbein.net", Issuer "hz.grosbein.net" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 02875189F; Sat, 17 Oct 2015 18:36:52 +0000 (UTC) (envelope-from eugen@grosbein.net) Received: from eg.sd.rdtc.ru (root@eg.sd.rdtc.ru [62.231.161.221]) by hz.grosbein.net (8.14.9/8.14.9) with ESMTP id t9HIam2A067439 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sat, 17 Oct 2015 20:36:49 +0200 (CEST) (envelope-from eugen@grosbein.net) X-Envelope-From: eugen@grosbein.net X-Envelope-To: adrian.chadd@gmail.com Received: from eg.sd.rdtc.ru (eugen@localhost [127.0.0.1]) by eg.sd.rdtc.ru (8.15.2/8.15.2) with ESMTP id t9HIai7l095174; Sun, 18 Oct 2015 01:36:45 +0700 (KRAT) (envelope-from eugen@grosbein.net) Subject: Re: strange error building print/texinfo To: Adrian Chadd References: <56212F5F.3020603@rdtc.ru> <56217396.1050509@freebsd.org> <56221B6C.1060406@grosbein.net> <56221CFD.2070204@grosbein.net> <56228BF2.6060708@grosbein.net> <562293D6.7020203@grosbein.net> Cc: Sean Bruno , "freebsd-mips@freebsd.org" From: Eugene Grosbein Message-ID: <5622953C.4010601@grosbein.net> Date: Sun, 18 Oct 2015 01:36:44 +0700 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=0.3 required=5.0 tests=BAYES_00,LOCAL_FROM autolearn=no version=3.3.2 X-Spam-Report: * -2.3 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * 2.6 LOCAL_FROM From my domains X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on hz.grosbein.net 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: Sat, 17 Oct 2015 18:36:54 -0000 On 18.10.2015 01:32, Adrian Chadd wrote: > What's a minimal test case? i'll try it in a few minutes. cd /tmp touch file install file newfile From owner-freebsd-mips@freebsd.org Sat Oct 17 18:42:33 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 2008EA17702 for ; Sat, 17 Oct 2015 18:42:33 +0000 (UTC) (envelope-from egrosbein@rdtc.ru) Received: from hz.grosbein.net (hz.grosbein.net [78.47.246.247]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "hz.grosbein.net", Issuer "hz.grosbein.net" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 9C81B1B32; Sat, 17 Oct 2015 18:42:31 +0000 (UTC) (envelope-from egrosbein@rdtc.ru) Received: from eg.sd.rdtc.ru (root@eg.sd.rdtc.ru [62.231.161.221]) by hz.grosbein.net (8.14.9/8.14.9) with ESMTP id t9HIgN8c067457 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sat, 17 Oct 2015 20:42:24 +0200 (CEST) (envelope-from egrosbein@rdtc.ru) X-Envelope-From: egrosbein@rdtc.ru X-Envelope-To: adrian.chadd@gmail.com Received: from eg.sd.rdtc.ru (eugen@localhost [127.0.0.1]) by eg.sd.rdtc.ru (8.15.2/8.15.2) with ESMTP id t9HIgFJa095208; Sun, 18 Oct 2015 01:42:15 +0700 (KRAT) (envelope-from egrosbein@rdtc.ru) Subject: Re: strange error building print/texinfo To: Adrian Chadd References: <56212F5F.3020603@rdtc.ru> <56217396.1050509@freebsd.org> <56221B6C.1060406@grosbein.net> <56221CFD.2070204@grosbein.net> <56228BF2.6060708@grosbein.net> <562293D6.7020203@grosbein.net> <5622953C.4010601@grosbein.net> Cc: Sean Bruno , "freebsd-mips@freebsd.org" From: Eugene Grosbein Message-ID: <56229687.8000908@rdtc.ru> Date: Sun, 18 Oct 2015 01:42:15 +0700 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 In-Reply-To: <5622953C.4010601@grosbein.net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00, DATE_IN_FUTURE_96_Q, T_RP_MATCHES_RCVD autolearn=no version=3.3.2 X-Spam-Report: * 1.0 DATE_IN_FUTURE_96_Q Date: is 4 days to 4 months after Received: date * -0.0 T_RP_MATCHES_RCVD Envelope sender domain matches handover relay * domain * -2.3 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on hz.grosbein.net 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: Sat, 17 Oct 2015 18:42:33 -0000 On 18.10.2015 01:36, Eugene Grosbein wrote: > On 18.10.2015 01:32, Adrian Chadd wrote: >> What's a minimal test case? i'll try it in a few minutes. > > cd /tmp > touch file > install file newfile Also, install(1) only tries to use mmap() for files residing on ufs or cd9660, so problem does not pop for nullfs-mounted file systems (verified) nor it should pop for zfs (not verified). From owner-freebsd-mips@freebsd.org Sat Oct 17 19:39:00 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 263CEA17321 for ; Sat, 17 Oct 2015 19:39:00 +0000 (UTC) (envelope-from sbruno@freebsd.org) Received: from mail.ignoranthack.me (ignoranthack.me [199.102.79.106]) (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 08B6ED49 for ; Sat, 17 Oct 2015 19:38:59 +0000 (UTC) (envelope-from sbruno@freebsd.org) Received: from [192.168.200.208] (unknown [50.136.155.142]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: sbruno@ignoranthack.me) by mail.ignoranthack.me (Postfix) with ESMTPSA id A04D31928D7; Sat, 17 Oct 2015 19:38:57 +0000 (UTC) Subject: Re: strange error building print/texinfo To: Eugene Grosbein , Adrian Chadd References: <56212F5F.3020603@rdtc.ru> <56217396.1050509@freebsd.org> <56221B6C.1060406@grosbein.net> <56221CFD.2070204@grosbein.net> <56228BF2.6060708@grosbein.net> <562294C8.8040208@grosbein.net> Cc: "freebsd-mips@freebsd.org" From: Sean Bruno Message-ID: <5622A3D0.3090105@freebsd.org> Date: Sat, 17 Oct 2015 12:38:56 -0700 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: <562294C8.8040208@grosbein.net> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit 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: Sat, 17 Oct 2015 19:39:00 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 On 10/17/15 11:34, Eugene Grosbein wrote: > On 18.10.2015 01:26, Adrian Chadd wrote: >> Hah, oh lordie. >> >> Please file a PR for that. We should fix that ASAP! > > Ive checked using real MIPS32 device and the problem does not exist > there. It shows inside qemu-mips-static only. Should I file a PR > still? > > > > > Yes, but file it against ports/qemu-user-static sean -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQF8BAEBCgBmBQJWIqPNXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXRCQUFENDYzMkU3MTIxREU4RDIwOTk3REQx MjAxRUZDQTFFNzI3RTY0AAoJEBIB78oecn5kuBYIAL3xnkdsorKoFke6508y1EMd WuCd3Cr8YwMSku/B5gRiPOJpojWlljSQw9yLCEmMlUfWasENiIXy0YlhSQ4APSi5 D5N+PiKhxFKFjnAvAyX2YOXAIDNt9T23BjkaQOVDdEuFnwDNnZ/3e0EDiCkSOrMO D0uoX8Rn3GbM5HUlCO/Hjykt38qmKgtpwIG8Vpz8s05+34c3kYhqP58j8yjUFJKw jVmuQ+nJB2Z8eZe2yXlESyGX11ylLyQIGz4E8LeFkhjYeUEtBySGJog0IeseEQnT +GWNybBc8tgxzQsZqKHQ/8XwcXOwzlYZqn2c9Ofh318cME/Ts7rXyz08QlVAoGA= =ELcb -----END PGP SIGNATURE-----