From owner-freebsd-mips@FreeBSD.ORG Thu Jan 24 02:55:16 2013 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 3FCBFD0 for ; Thu, 24 Jan 2013 02:55:16 +0000 (UTC) (envelope-from stefan@kooman.org) Received: from mail.kooman.org (mail.kooman.org [IPv6:2001:7b8:60a:1:213:136:13:33]) by mx1.freebsd.org (Postfix) with ESMTP id 0740BF9B for ; Thu, 24 Jan 2013 02:55:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=kooman.org; s=mail-kooman; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date; bh=4XGVNt3Tt2jTbK19Mr7SosJTfmMpqPRctCP+YYZmFnk=; b=QlC2aJCvZ2936BNpNrVmkPPLXdMuAVoNBOPV73WVRxpWV3UzHCKCmYYZy6XkVi/UE+x0IQkD4v15D0ah6G+OX5ww/3YBG9uqpAWT0CqcZFipaZw3nF4mIsHc77/55QB4Xm1EPAQVJXHzwrLSDnEtzjGsIwZK/q6O0JCpeL+Xons=; Received: from archie.kooman.org ([2001:7b8:803:1::3]) by mail.kooman.org with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.72) (envelope-from ) id 1TyCy8-0000gf-Fs; Thu, 24 Jan 2013 03:55:12 +0100 Date: Thu, 24 Jan 2013 03:55:12 +0100 From: Stefan Kooman To: Monthadar Al Jaberi Subject: Re: kernel build fails for Routerboard 450g Message-ID: <20130124025512.GA504@archie.kooman.org> References: <20130107214419.GB16119@archie.kooman.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-GPG-ID: D14839C6 X-GPG-Fingerprint: 93E6 F01E F7EE 5B3B 0771 4DEB 4F21 A061 D148 39C6 User-Agent: Mutt/1.5.21 (2010-09-15) Cc: freebsd-mips@freebsd.org X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Jan 2013 02:55:16 -0000 On Mon, Jan 07, 2013 at 11:48:17PM +0100, Monthadar Al Jaberi wrote: > Hi, > > Try not using setenv. but modify the kernel config to have > > machine mips mips > > in the begining. Thanks, that got it going. I'm running into the next problem, build fails on uart: "uart_core.o: In function `uart_bus_probe': uart_core.c:(.text+0x3d0): undefined reference to `uart_cpu_eqres' uart_core.c:(.text+0x3d0): relocation truncated to fit: R_MIPS_26 against `uart_cpu_eqres' uart_subr.o: In function `uart_getenv': uart_subr.c:(.text+0x2b8): undefined reference to `uart_bus_space_mem' uart_subr.c:(.text+0x2bc): undefined reference to `uart_bus_space_mem' uart_subr.c:(.text+0x2d8): undefined reference to `uart_bus_space_io' uart_subr.c:(.text+0x2dc): undefined reference to `uart_bus_space_io' uart_tty.o: In function `uart_cnprobe': uart_tty.c:(.text+0x80): undefined reference to `uart_cpu_getdev' uart_tty.c:(.text+0x80): relocation truncated to fit: R_MIPS_26 against `uart_cpu_getdev' *** [kernel] Error code 1 1 error *** [buildkernel] Error code 2 1 error *** [buildkernel] Error code 2 1 error" If I remove "options uart" and "options gpioled" kernel builds fine. However, the routerboard does not boot with this kernel: RouterBOOT booter 3.02 RouterBoard 450G CPU frequency: 680 MHz Memory size: 256 MiB NAND size: 512 MiB Press any key within 2 seconds to enter setup.. writing settings to flash... OK trying dhcp protocol... OK resolved mac address B8:27:EB:48:F3:64 Gateway: 192.168.2.1 transfer started ....................................... transfer ok, time=102.51s setting up elf image... OK jumping to kernel code After half a minute or so the Mikrotik image gets loaded. Any ideas on the best way to debug? Thanks, Stefan