Solved Compiling FreeBSD for MT7628.dts with freebsd-wifi

I can't compile FreeBSD for MT7628.dts with freebsd-wifi script. I followed the instructions and created

head at: /data/freebsd/head/src
freebsd-wifi at: /data/freebsd/build/build

I applied chown -R user data

I run in /data/freebsd/head/src:
../../build/build/bin/build ralink MT7628.dts

But here end is build log:

Code:
*** Target Done.
*** Target        : mfsroot
*** Deleting old file system..
*** Creating new filesystem...
*** Populating filesystem...
*** Target Done.
*** Target        : fsimage
*** Running makefs to build compressed image ..
*** from /data/freebsd/head/src/../mfsroot/ralink ..
Calculated size of `/data/freebsd/head/src/../img//mfsroot-ralink.img': 17899520 bytes, 1266 inodes
Extent size set to 4096
/data/freebsd/head/src/../img//mfsroot-ralink.img: 17.1MB (34960 sectors) block size 4096, fragment size 512
    using 2 cylinder groups of 12.92MB, 3308 blks, 992 inodes.
super-block backups (for fsck -b #) at:
    32, 26496,
Populating `/data/freebsd/head/src/../img//mfsroot-ralink.img'
Image `/data/freebsd/head/src/../img//mfsroot-ralink.img' complete
*** Running mkuzip to create a compressed filesystem ..
*** Target Done.
*** Target        : netboot
Can't locate mfs section within kernel
 
I found the kernel config now, thank you. I just need to specify it with build script. The problem is I don't now how to do that. So I will play with build script a little.

OK. Found it. Thank you IPTRACE.

Anyone who has the same problem get bash cmd. Run X_DTS_FILE=MT7628.dts KERNCONF=MT7628_FDT ../../build/build/bin/build ralink
 
I found the kernel config now, thank you. I just need to specify it with build script. The problem is I don't now how to do that. So I will play with build script a little.

OK. Found it. Thank you IPTRACE.

Anyone who has the same problem get bash cmd. Run X_DTS_FILE=MT7628.dts KERNCONF=MT7628_FDT ../../build/build/bin/build ralink

Hi , I have encountered the same problem, I hope you can get help I use the MT7628 board FreeBSD 12, Thx :)

output
*** Target : mfsroot
*** Deleting old file system..
chflags: /data/freebsd/head/src/../mfsroot/ralink: No such file or directory
*** Creating new filesystem...
*** Populating filesystem...
install: /data/freebsd/head/src/../root/mipsel_ap/usr/local/bin/wlanwds: No such file or directory
*** Target Done.
*** Target : fsimage
*** Running makefs to build compressed image ..
*** from /data/freebsd/head/src/../mfsroot/ralink ..
Calculated size of /data/freebsd/head/src/../img//mfsroot-ralink.img': 18882560 bytes, 1267 inodes Extent size set to 4096 /data/freebsd/head/src/../img//mfsroot-ralink.img: 18.0MB (36880 sectors) block size 4096, fragment size 512 using 2 cylinder groups of 12.95MB, 3315 blks, 928 inodes. super-block backups (for fsck -b #) at: 32, 26552, Populating/data/freebsd/head/src/../img//mfsroot-ralink.img'
Image `/data/freebsd/head/src/../img//mfsroot-ralink.img' complete
*** Running mkuzip to create a compressed filesystem ..
*** Target Done.
*** Target : netboot
Can't locate mfs section within kernel
 
Back
Top