From owner-freebsd-mips@freebsd.org Sun May 1 16:04:12 2016 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 A7DFBB29032 for ; Sun, 1 May 2016 16:04:12 +0000 (UTC) (envelope-from sgalabov@gmail.com) Received: from mail-vk0-x233.google.com (mail-vk0-x233.google.com [IPv6:2607:f8b0:400c: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 50D121338 for ; Sun, 1 May 2016 16:04:12 +0000 (UTC) (envelope-from sgalabov@gmail.com) Received: by mail-vk0-x233.google.com with SMTP id o133so40782118vka.0 for ; Sun, 01 May 2016 09:04:12 -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; bh=DpyufIKlWIPjXz9rqOujUiSJEnhP83urVZZiMqI15PY=; b=vUDgcOXM3hrwumRgVE+RNlvWFdY1MLwD/uz/+2RLlZQXEF7bDwh7qxcugS/Tvsr4Uw 0Wn6vqFHGpoAtWaHE4GDBWUxYiFNHbZWbUodas+0UmLWQFwmWWAETIh4/6jF5KaROt9r zP+jIcrtNwScsD8olHPP1/3tAkqor4tc1/bpEzYxrtjY/ZF+IvAHF0GqVfTftF0nG0Xd eWYL9tCUSy27m6xIrKod38dVSzuXyoRQ4TwJOwsn53YQ+C1+aNKryUVPXrZE6G5SYEf4 h3iBoFG5oF00bOtyMMV3CsAlKZXUwFEijSyjqVx4fUeuwGbkNtLwfcn0hLjTYClu523u 9eLw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc; bh=DpyufIKlWIPjXz9rqOujUiSJEnhP83urVZZiMqI15PY=; b=eZ8wQrFo3hbFJi0VKoKwNHFsu40h/QF8/s4A5afgeTI72XHVvaSlHcYqgQdAWT+eK8 U4lxId41BnaS6/W6SHBPbLqtNkV3tG8omQSaCAL4yxhep9p7Rj/wD27xPI5N3RMlkIzL Cn8UF43U2XjTsEdkFSbX9D/L9mRmevYsCEye+6GpI4V7eTxirlJk0oEbUnGeOxxxzZWt Zc3aouoh5AZx8KwP89qqvy7v+oykVVfmV+V9Gi0ZKNKVwr/aIPghHAx1oHDGx8wONa1Y 61D/tOODVaEK59JKCEXkhljqGIWE9FAFnTrCPc19wwzk0oHZKbDmqaL76ktdhVpCatwu XbCg== X-Gm-Message-State: AOPr4FU5lsPH6CCkeps3thKQmfymIOmwp3H9HdPtOn+htwOuv3ujZvuyJj8WWEGVhMQYMNI6nx5zHzMfBSQ4XA== MIME-Version: 1.0 X-Received: by 10.31.190.202 with SMTP id o193mr4215477vkf.50.1462118651298; Sun, 01 May 2016 09:04:11 -0700 (PDT) Received: by 10.31.183.146 with HTTP; Sun, 1 May 2016 09:04:11 -0700 (PDT) In-Reply-To: <57261DAB.5010107@digiware.nl> References: <79DA8224-E857-4B86-81EC-D7A9E765E201@gmail.com> <572616AD.4020706@digiware.nl> <48872155-C822-4B18-9B00-1689692DD294@gmail.com> <57261DAB.5010107@digiware.nl> Date: Sun, 1 May 2016 19:04:11 +0300 Message-ID: Subject: Re: Mediatek / Ralink status From: Stanislav Galabov To: Willem Jan Withagen Cc: "freebsd-mips@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.22 X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 May 2016 16:04:12 -0000 Hi Willem, It seems you've missed the objcopy step to convert kernel to kernel.bin and then run mkimage on the kernel.bin. Please try that and let me know how it goes. Best wishes, Stanislav On Sun, May 1, 2016 at 6:15 PM, Willem Jan Withagen wrote: > On 1-5-2016 17:05, Stanislav Galabov wrote: > >> >> Hi Stanislav, >>> >>> I'm trying to boot my Witi board with the new -head. >>> On previous occasions I build a MT6720 version that booted. (I even >>> ignored the compression step for the time being, since lzma was giving >>> trouble) >>> And that worked for all things that were available then. (Even mounted a >>> disk) >>> Got ARP REPLY, set server/gtwy eth addr (1c:6f:65:82:ec:12) >>> Got it >>> ################################################################# >>> >>> ################################################################# >>> >>> ################################################################# >>> >>> ################################################################# >>> >>> ################################################################# >>> >>> ################################################################# >>> >>> ################################################################# >>> >>> ################################################################# >>> >>> ################################################################# >>> >>> ################################################################# >>> >>> ################################################################# >>> ################################### >>> done >>> Bytes transferred = 3838128 (3a90b0 hex) >>> NetBootFileXferSize= 003a90b0 >>> Automatic boot of image at addr 0x80A00000 ... >>> ## Booting image at 80a00000 ... >>> Image Name: FreeBSD Kernel Image >>> Image Type: MIPS Linux Kernel Image (uncompressed) >>> Data Size: 3838064 Bytes = 3.7 MB >>> Load Address: 80001100 >>> Entry Point: 80001100 >>> Verifying Checksum ... OK >>> OK >>> No initrd >>> ## Transferring control to Linux (at address 80001100) ... >>> ## Giving linux memsize in MB, 256 >>> >>> Starting kernel ... >>> >>> FDT DTB at: 0x8037f570 >>> CPU clock: 880MHz >>> SYS clock: 220MHz >>> UART clock: 50MHz >>> >>> U-Boot args (from 0 args): >>> None >>> Environment: >>> memsize=256 >>> initrd_start=0x00000000 >>> initrd_size=0x0 >>> flash_start=0x00000000 >>> flash_size=0x1000000 >>> entry: mips_init() >>> RAM size: 256MB (from memsize) >>> Cache info: >>> picache_stride = 4096 >>> picache_loopcount = 8 >>> pdcache_stride = 4096 >>> pdcache_loopcount = 8 >>> cpu0: MIPS Technologies processor v47.153 >>> MMU: Standard TLB, 32 entries (4K 16K 64K 256K 1M 16M 64M 256M pg >>> sizes) >>> L1 i-cache: 4 ways of 256 sets, 32 bytes per line >>> L1 d-cache: 4 ways of 256 sets, 32 bytes per line >>> L2 cache: 8 ways of 1024 sets, 32 bytes per line, 256 KiB total size >>> Config1=0xbea3519e >>> Config2=0x80000447 >>> Config3=0x2000242c >>> Physical memory chunk(s): >>> 0x434000 - 0xfffffff, 264028160 bytes (64460 pages) >>> Maxmem is 0x10000000 >>> KDB: debugger backends: ddb >>> KDB: current backend: ddb >>> Copyright (c) 1992-2016 The FreeBSD Project. >>> [And the stuff boots.] >>> >>> Now doing the same with the new kernel, it gets stuck at: >>> >>> Bytes transferred = 5109292 (4df62c hex) >>> NetBootFileXferSize= 004df62c >>> Automatic boot of image at addr 0x80A00000 ... >>> ## Booting image at 80a00000 ... >>> Image Name: FreeBSD Kernel Image >>> Image Type: MIPS Linux Kernel Image (uncompressed) >>> Data Size: 5109228 Bytes = 4.9 MB >>> Load Address: 80001100 >>> Entry Point: 80001100 >>> Verifying Checksum ... OK >>> OK >>> No initrd >>> ## Transferring control to Linux (at address 80001100) ... >>> ## Giving linux memsize in MB, 256 >>> >>> Starting kernel ... >>> [ And then the system freezes ] >>> >>> Any suggestions on how to diagnose this freeze? >>> >> >> Can you please post your build line? >> > > as per instuctions above > > sudo make clean > sudo bmake KERNCONF=MT7621_FDT FDT_DTS_FILE=WITI.dts TARGET=mips > TARGET_ARCH=mipsel kernel-toolchain buildkernel > > Then: > >> cd /usr/obj/mips.mipsel/usr/srcs/Mips/src/sys/MT7621_FDT >> readelf -h kernel | grep 'Entry point address:' >> > Entry point address: 0x80001100 > > mkimage -A mips -O linux -T kernel -C none -a 0x80001100 -e 0x80001100 -n >> 'FreeBSD Kernel Image' -d kernel kernel.uboot >> > [loading/exec at 0x80001120 as alternative has no success as well. ] > > Then load it with tftp. > > --WjW >