From owner-freebsd-arm@freebsd.org Sat Apr 1 10:07:27 2017 Return-Path: Delivered-To: freebsd-arm@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 005D0D274CD for ; Sat, 1 Apr 2017 10:07:27 +0000 (UTC) (envelope-from jensrasmus@gmail.com) Received: from mail-wr0-x229.google.com (mail-wr0-x229.google.com [IPv6:2a00:1450:400c:c0c::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 80A95B0A for ; Sat, 1 Apr 2017 10:07:26 +0000 (UTC) (envelope-from jensrasmus@gmail.com) Received: by mail-wr0-x229.google.com with SMTP id l43so122447344wre.1 for ; Sat, 01 Apr 2017 03:07:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:subject:message-id:reply-to:mail-followup-to :references:mime-version:content-disposition :content-transfer-encoding:in-reply-to; bh=dnQtxzMg1mCnSDl6tLAsPCLbEujhLsuS4RTTfqw+UuI=; b=RmXWK/PaSLG/uU12eCRhkcDae21sT3By1N53k9qGejJj+Mduf0u3FsJskjbNIq5wlQ 5QeysZ14wi1seP2eRNhkh2POGAFmpbJdYOcRAcylQNw1Q8cAg0fmcAQXD4y+zd+zNkGK vi58SVPSpQLlchf6IscybywiyMcyhqFC2jFprYzpN31+58HiqgqyGrwFmJfKsKiTAh7S bSKlzX72lzCue6/6LMuMh4Bzz/odSurwWSjzvrZkxTZqJ/rysdd/iVLibV9gVSkDkRyM 1EyAbnl7WWk/6XeTj8+LAF+Wp3/0hmdpjxj+QB0n7t9goRwm6vsAJq9AsrAWSqArdSPI a2DQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:reply-to :mail-followup-to:references:mime-version:content-disposition :content-transfer-encoding:in-reply-to; bh=dnQtxzMg1mCnSDl6tLAsPCLbEujhLsuS4RTTfqw+UuI=; b=pOS0Q98jfvGxihraRRjZC2fYQq9xNH+G5PZY+QPUFfle69G/YvHs29Nf3/FQLSmL5M FVwx6msFocjIYg0vjCZNoh3ADz3NutTvSrCtn/WXWo2T8NlVjnU55aQSItWGWmb3Jx5D 3LvB6cyPFDkAW0/nqZJ6QiTkQB7M9ZRkaDQlls3TH9WDROTGju3NkFi7E+G/E5h8VekC SefjUBD3jLXc2+0BpWj9ObE/JcxSRYp2VJcqzNIsboNInh57c7XPszU2YTVpAgUC0+bK gHZcavSjHSY4FP7wHyTeGGCAvFbP0wcwlsazdKlPpcxbjWCqkTvGsjvEmk8guPoDfcv7 Cw3w== X-Gm-Message-State: AFeK/H0REpeKsWk0e9xh46DN2mmukdsr+6AjtaG24BR6rhrlPiVSmtUWo9lns/N2wS3gEQ== X-Received: by 10.223.178.66 with SMTP id y2mr6935380wra.161.1491041243030; Sat, 01 Apr 2017 03:07:23 -0700 (PDT) Received: from jrl.uk.to (cm-84.211.229.154.getinternet.no. [84.211.229.154]) by smtp.gmail.com with ESMTPSA id s27sm5229438wra.69.2017.04.01.03.07.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 01 Apr 2017 03:07:22 -0700 (PDT) Date: Sat, 1 Apr 2017 12:06:31 +0200 From: Rasmus Liland To: Jan Sieka , Mori Hiroki , freebsd-arm Subject: [SOLUTION] DB-88F6XXX kernel on 88F6281_A0 (GoFlex Net) Message-ID: <20170401100631.GA29011@jrl.uk.to> Reply-To: Rasmus Liland Mail-Followup-To: Jan Sieka , Mori Hiroki , freebsd-arm References: <20170330232907.GA21389@jrl.uk.to> <888745.43951.qm@web101706.mail.ssk.yahoo.co.jp> <20170331094127.GA29618@jrl.uk.to> <20170331111538.GB31398@jrl.uk.to> <20170331234216.GA16657@jrl.uk.to> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="X1bOJ3K7DJ5YkBrT" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20170331234216.GA16657@jrl.uk.to> X-GPG-Key-Server: http://pgp.mit.edu X-GPG-Key-FingerPrint: DD51 6042 15B2 DC18 B546 B847 9807 9AF9 3DFD 5DF7 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 Apr 2017 10:07:27 -0000 --X1bOJ3K7DJ5YkBrT Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit On 2017-04-01 01:42 +0200, Rasmus Liland wrote: > > Unable to calculate the addresses myself, I found in U-boot > already stated address variables of Linux kernel /boot/uImage and > ramdisk /uInitrd to be respecively addr_kern=0x680000, and > addr_rd=0x1100000, which is an offset of 5568KiB. > > As stated earlier, it is possible to load kernel.bin from address > 0x600000, perhaps 0x680000 is just enough. Will try this, > reporting back in some hours. GUYS!!! IT'S BOOTING!!! The proper way of booting is: · Taking the DOCKSTAR kernel, ripping out the IPSEC_NAT_T to make it compile at all (why this module does not compile on TARGET_ARCH=arm despite being enabled in this stock kernel I do not know) · Loading resulting kernel.bin to address 0x1100000, which is the address already defined in $addr_rd to normally load the Linux ramdisk uInitrd /Rasmus --X1bOJ3K7DJ5YkBrT Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="success_DOCKSTAR.diff" --- DOCKSTAR 2017-03-31 12:30:26.752632000 +0200 +++ DOCKSTARWOIPSECNATT 2017-04-01 10:33:02.845141000 +0200 @@ -118,7 +118,6 @@ # IPSec device enc options IPSEC -options IPSEC_NAT_T options TCP_SIGNATURE # include support for RFC 2385 # IPFW --X1bOJ3K7DJ5YkBrT Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="success_dmesg.txt" Marvell>> dhcp BOOTP broadcast 1 *** Unhandled DHCP Option in OFFER/ACK: 28 *** Unhandled DHCP Option in OFFER/ACK: 28 DHCP client bound to address 10.6.6.26 *** Warning: no boot file name; using '0A06061A.img' Using egiga0 device TFTP from server 10.6.6.1; our IP address is 10.6.6.26 Filename '0A06061A.img'. Load address: 0x800000 Loading: * TFTP error: 'File not found' (1) Not retrying... Marvell>> printenv addr_rd addr_rd=0x1100000 Marvell>> tftpboot $addr_rd dockstarwoipsecnatt Using egiga0 device TFTP from server 10.6.6.1; our IP address is 10.6.6.26 Filename 'dockstarwoipsecnatt'. Load address: 0x1100000 Loading: ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ########################################################### done Bytes transferred = 6587876 (6485e4 hex) Marvell>> go $addr_rd ## Starting application at 0x01100000 ... Copyright (c) 1992-2017 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 11.0-STABLE #0 r316330: Sat Apr 1 10:45:38 CEST 2017 root@node:/usr/obj/arm.arm/usr/src/stable/11/sys/DOCKSTARWOIPSECNATT arm FreeBSD clang version 3.9.1 (tags/RELEASE_391/final 289601) (based on LLVM 3.9.1) CPU: Feroceon 88FR131 rev 1 (**unknown 4** core) Little-endian DC enabled IC disabled WA disabled DC streaming enabled BTB disabled L2 enabled L2 prefetch enabled WB enabled LABT branch prediction disabled 16KB/32B 4-way instruction cache 16KB/32B 4-way write-back-locking-C data cache real memory = 134213632 (127 MB) avail memory = 122802176 (117 MB) SOC: Marvell 88F6281 rev A1, TClock 200MHz Instruction cache prefetch disabled, data cache prefetch disabled 256KB 4-way set-associative write-through unified L2 cache random: entropy device external interface ofwbus0: simplebus0: on ofwbus0 cpulist0: on ofwbus0 cpu0: on cpulist0 localbus0: on ofwbus0 ic0: mem 0x20200-0x2023b on simplebus0 timer0: mem 0x20300-0x2032f irq 1 on simplebus0 Event timer "CPUTimer0" frequency 200000000 Hz quality 1000 Timecounter "CPUTimer1" frequency 200000000 Hz quality 1000 gpio0: mem 0x10100-0x1011f irq 35,36,37,38,39,40,41 on simplebus0 rtc0: mem 0x10300-0x10307 on simplebus0 twsi0: mem 0x11000-0x1101f irq 43 on simplebus0 iicbus0: on twsi0 iic0: on iicbus0 mge0: mem 0x72000-0x73fff irq 12,13,14,11,46 on simplebus0 mge0: PHY0 attached, phy_sc points to mge0 mge0: Ethernet address: 00:10:75:26:68:44 miibus0: on mge0 e1000phy0: PHY 0 on miibus0 e1000phy0: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-master, 1000baseT-FDX, 1000baseT-FDX-master, auto uart0: <16550 or compatible> mem 0x12000-0x1201f irq 33 on simplebus0 uart0: console (1056,n,8,1) uart1: <16550 or compatible> mem 0x12100-0x1211f irq 34 on simplebus0 cesa0: mem 0x30000-0x30fff,0x3d000-0x3dfff irq 22 on simplebus0 ehci0: mem 0x50000-0x50fff irq 48,19 on simplebus0 usbus0: EHCI version 1.0 usbus0 on ehci0 cryptosoft0: Timecounters tick every 10.000 msec ipfw2 (+ipv6) initialized, divert enabled, nat enabled, default to accept, logging disabled DUMMYNET 0 with IPv6 initialized (100409) load_dn_sched dn_sched PRIO loaded load_dn_sched dn_sched QFQ loaded load_dn_sched dn_sched RR loaded load_dn_sched dn_sched WF2Q+ loaded load_dn_sched dn_sched FIFO loaded load_dn_sched dn_sched FQ_CODEL loaded load_dn_sched dn_sched FQ_PIE loaded load_dn_aqm dn_aqm CODEL loaded load_dn_aqm dn_aqm PIE loaded usbus0: 480Mbps High Speed USB v2.0 Trying to mount root from ufs:/dev/da0s1a []... Root mount waiting for: usbus0 ugen0.1: at usbus0 uhub0: on usbus0 uhub0: 1 port with 1 removable, self powered mountroot: waiting for device /dev/da0s1a... Mounting from ufs:/dev/da0s1a failed with error 19. Loader variables: Manual root filesystem specification: : [options] Mount using filesystem and with the specified (optional) option list. eg. ufs:/dev/da0s1a zfs:tank cd9660:/dev/cd0 ro (which is equivalent to: mount -t cd9660 -o ro /dev/cd0 /) ? List valid disk boot devices . Yield 1 second (for background tasks) Abort manual input mountroot> --X1bOJ3K7DJ5YkBrT--