From owner-freebsd-mips@FreeBSD.ORG Thu Jan 24 14:39:08 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 D31A1309 for ; Thu, 24 Jan 2013 14:39:08 +0000 (UTC) (envelope-from ray@freebsd.org) Received: from smtp.dlink.ua (smtp.dlink.ua [193.138.187.146]) by mx1.freebsd.org (Postfix) with ESMTP id 93400B3B for ; Thu, 24 Jan 2013 14:39:08 +0000 (UTC) Received: from terran (unknown [192.168.99.1]) (Authenticated sender: ray) by smtp.dlink.ua (Postfix) with ESMTPA id 4ED23C4927; Thu, 24 Jan 2013 16:39:01 +0200 (EET) Date: Thu, 24 Jan 2013 16:40:36 +0200 From: Aleksandr Rybalko To: Stefan Kooman Subject: Re: kernel build fails for Routerboard 450g Message-Id: <20130124164036.8120091a7711983037c2b4b4@freebsd.org> In-Reply-To: <20130124025512.GA504@archie.kooman.org> References: <20130107214419.GB16119@archie.kooman.org> <20130124025512.GA504@archie.kooman.org> X-Mailer: Sylpheed 3.2.0 (GTK+ 2.24.6; amd64-portbld-freebsd9.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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 14:39:08 -0000 On Thu, 24 Jan 2013 03:55:12 +0100 Stefan Kooman wrote: > 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. Please try to add "uart_ar71xx" also: device uart device uart_ar71xx > 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 Somebody said we have bad address in ELF header, so try to check what RouterBOOT want and what we have now. > > After half a minute or so the Mikrotik image gets loaded. > > Any ideas on the best way to debug? > > Thanks, > > Stefan > > > _______________________________________________ > freebsd-mips@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-mips > To unsubscribe, send any mail to "freebsd-mips-unsubscribe@freebsd.org" Thanks! WBW -- Aleksandr Rybalko