Date: Thu, 24 Jan 2013 16:40:36 +0200 From: Aleksandr Rybalko <ray@freebsd.org> To: Stefan Kooman <stefan@kooman.org> Cc: freebsd-mips@freebsd.org 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> <CA%2BsBSoJ_vPrWOqyqMH6rzfmAndGJ5v%2Bf6irSihKe9k6Ew4Ej%2Bw@mail.gmail.com> <20130124025512.GA504@archie.kooman.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 24 Jan 2013 03:55:12 +0100 Stefan Kooman <stefan@kooman.org> 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 <ray@freebsd.org>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20130124164036.8120091a7711983037c2b4b4>