Date: Wed, 14 Nov 2018 10:25:32 +0200 From: Stanislav Galabov <sgalabov@gmail.com> To: Willem Jan Withagen <wjw@digiware.nl> Cc: Michael Zhilin <mizhka@gmail.com>, freebsd-mips@freebsd.org Subject: Re: Building a new version for my WiTi board Message-ID: <E490CB74-93E2-45F8-B4D8-88367DB3D681@gmail.com> In-Reply-To: <D593CDCF-2074-452D-8ED2-448E2A49555A@gmail.com> References: <b8b2e91a-afd3-60c5-6ad4-3fbac9011718@digiware.nl> <CAF19XBK_JZ8OPLZuqTH%2BUGAhvB2r90FyeN48qq9z7JaYT0TbYw@mail.gmail.com> <09b2150d-ef55-c032-59c4-4b218a03f186@digiware.nl> <e12386f8-5e52-3adb-e8ee-ea276b3ecfde@digiware.nl> <D593CDCF-2074-452D-8ED2-448E2A49555A@gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
And here=E2=80=99s a kernel build with today=E2=80=99s current: https://www.dropbox.com/s/tp3a9naxfgohy99/kernel.current.uboot?dl=3D0 = <https://www.dropbox.com/s/tp3a9naxfgohy99/kernel.current.uboot?dl=3D0> > On 14 Nov 2018, at 9:52, Stanislav Galabov <sgalabov@gmail.com> wrote: >=20 > Hi Willem, >=20 > Can you try this kernel: > https://www.dropbox.com/s/t1wevprzlsfegr0/kernel.uboot?dl=3D0 = <https://www.dropbox.com/s/t1wevprzlsfegr0/kernel.uboot?dl=3D0> >=20 > What I notice in your build process is that after your objcopy step = you use kernel instead of kernel.bin in the mkimage step. Try using = kernel.bin produced in the objcopy step instead as input to mkimage and = that should work. >=20 > Best wishes, > Stanislav >=20 >> On 13 Nov 2018, at 18:38, Willem Jan Withagen <wjw@digiware.nl = <mailto:wjw@digiware.nl>> wrote: >>=20 >> On 13-11-2018 14:13, Willem Jan Withagen wrote: >>> On 13-11-2018 13:59, Michael Zhilin wrote: >>>> Hi, >>>>=20 >>>> You need to specify FDT DTS file. Try to uncomment first line of = kernel configuration file MT7621_FDT: >>>> #makeoptions FDT_DTS_FILE=3DWITI.dts >>>>=20 >>> Hi Michael, >>> That helps.... >>=20 >> What I've done.... >>=20 >> sudo make KERNCONF=3DMT7621_FDT FDT_DTS_FILE=3DWITI.dts TARGET=3Dmips >> TARGET_ARCH=3Dmipsel kernel-toolchain buildkernel >>=20 >> cd /usr/obj/mips.mipsel/usr/srcs/Mips/src/sys/MT7621_FDT >> readelf -h kernel | grep 'Entry point address:' >> Entry point address: 0x80001100 >> ../../tmp/usr/bin/objcopy -O binary kernel kernel.bin >>=20 >> mkimage -A mips -O linux -T kernel -C none -a 0x80001100 -e = 0x80001100 -n 'FreeBSD Kernel Image' -d kernel kernel.uboot >>=20 >> And then I TFTPboot this kernel in uboot on the WiTi board >>=20 >> But it freezes like this: >> MT7621 # bootm >> ## Booting image at 80100000 ... >> Image Name: FreeBSD Kernel Image >> Image Type: MIPS Linux Kernel Image (uncompressed) >> Data Size: 5998108 Bytes =3D 5.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 >>=20 >> Starting kernel ... >>=20 >> ---------------------- >>=20 >> And then it freezes. >>=20 >> Is this because there is no serial device in the kernel any longer? >>=20 >> Or do I need to do different things. >>=20 >> --WjW >> _______________________________________________ >> freebsd-mips@freebsd.org <mailto:freebsd-mips@freebsd.org> mailing = list >> https://lists.freebsd.org/mailman/listinfo/freebsd-mips = <https://lists.freebsd.org/mailman/listinfo/freebsd-mips> >> To unsubscribe, send any mail to = "freebsd-mips-unsubscribe@freebsd.org" >=20
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E490CB74-93E2-45F8-B4D8-88367DB3D681>