Building a new version for my WiTi board

Stanislav Galabov sgalabov at gmail.com
Wed Nov 14 08:25:39 UTC 2018


And here’s a kernel build with today’s current:
https://www.dropbox.com/s/tp3a9naxfgohy99/kernel.current.uboot?dl=0 <https://www.dropbox.com/s/tp3a9naxfgohy99/kernel.current.uboot?dl=0>


> On 14 Nov 2018, at 9:52, Stanislav Galabov <sgalabov at gmail.com> wrote:
> 
> Hi Willem,
> 
> Can you try this kernel:
> https://www.dropbox.com/s/t1wevprzlsfegr0/kernel.uboot?dl=0 <https://www.dropbox.com/s/t1wevprzlsfegr0/kernel.uboot?dl=0>
> 
> 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.
> 
> Best wishes,
> Stanislav
> 
>> On 13 Nov 2018, at 18:38, Willem Jan Withagen <wjw at digiware.nl <mailto:wjw at digiware.nl>> wrote:
>> 
>> On 13-11-2018 14:13, Willem Jan Withagen wrote:
>>> On 13-11-2018 13:59, Michael Zhilin wrote:
>>>> Hi,
>>>> 
>>>> You need to specify FDT DTS file. Try to uncomment first line of kernel configuration file MT7621_FDT:
>>>> #makeoptions    FDT_DTS_FILE=WITI.dts
>>>> 
>>> Hi Michael,
>>> That helps....
>> 
>> What I've done....
>> 
>> sudo make KERNCONF=MT7621_FDT FDT_DTS_FILE=WITI.dts TARGET=mips
>> TARGET_ARCH=mipsel kernel-toolchain buildkernel
>> 
>> 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
>> 
>> mkimage -A mips -O linux -T kernel -C none -a 0x80001100 -e 0x80001100 -n 'FreeBSD Kernel Image' -d kernel kernel.uboot
>> 
>> And then I TFTPboot this kernel in uboot on the WiTi board
>> 
>> 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 =  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
>> 
>> Starting kernel ...
>> 
>> ----------------------
>> 
>> And then it freezes.
>> 
>> Is this because there is no serial device in the kernel any longer?
>> 
>> Or do I need to do different things.
>> 
>> --WjW
>> _______________________________________________
>> freebsd-mips at freebsd.org <mailto:freebsd-mips at 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 at freebsd.org"
> 



More information about the freebsd-mips mailing list