openwrt Bin file not being generated

ovdleun
 
Posts: 10
Joined: Thu Jan 26, 2017 7:51 am

openwrt Bin file not being generated

Sun Feb 05, 2017 4:42 pm

Hi,

I'm trying to build the .bin image for the vocore2. I've setup my environment according to https://wiki.openwrt.org/doc/howto/build
Then I copied the profile and ran make menuconfig to make the same selection as when one would download the toolchain.

However, at the end all packages are created, except for the BIN files. So what am I missing? I've read something about the bin file not being generated when it's to large, but I couldn't find the 'is too big' string anywhere in the output.

Hope someone has an idea?

KR,
Onno.

noblepepper
 
Posts: 240
Joined: Sat Nov 29, 2014 3:22 pm

Re: openwrt Bin file not being generated

Sun Feb 05, 2017 5:53 pm

What are you trying to build? OpenWrt Chaos Calmer? OpenWrt Designated Driver? Lede? Vonger's sources?

Copied the profile? What profile? I don't do anything with a "profile" when I build.

make the same selection as when one would download the toolchain? What selections do you make when you download a toolchain? If you download a toolchain it should be ready to go without anything else needed.

Download Vonger's sources, disable libgphoto in make menuconfig if needed (it gives me an error), type make, wait until it finishes.

If you have trouble, be specific in describing what you did so someone can answer intelligently.

ovdleun
 
Posts: 10
Joined: Thu Jan 26, 2017 7:51 am

Re: openwrt Bin file not being generated

Sun Feb 05, 2017 8:42 pm

Hi Noblepepper,

Sorry, you're completely right. In hurry so forgot valuable info.
I cloned the trunk branch as it seems. But for that matter, I'm now retrying with "git clone -b chaos_calmer git://github.com/openwrt/openwrt.git", as your comment triggered me to look into the version branches.

I've selected some addition modules to be compiled with the BIN like the usb-serial driver and cp210x module. Deselected the usb-printer module. Rest is based on the configdiff created with: ./scripts/diffconfig.sh

Regarding the profile, I meant this one:
./target/linux/ramips/mt7628/profiles/01-vocore.mk ::
#
# Copyright (C) 2011 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#

define Profile/VOCORE2
NAME:=VoCore2
PACKAGES:=\
kmod-usb-core kmod-usb2 kmod-usb-ohci \
kmod-ledtrig-usbdev
endef

define Profile/VOCORE2/Description
Package set for Vocore2
endef
$(eval $(call Profile,VOCORE2))

However I think the trunk branch might be a bit to much bleeding edge ;o) So I'm trying now with the clone of Chaos Calmer.
It will probably take about an hour to finish so will report back the results as soon as possible.

Will post more details next time I post a question.

KR,
Onno.

ovdleun
 
Posts: 10
Joined: Thu Jan 26, 2017 7:51 am

Re: openwrt Bin file not being generated

Sun Feb 05, 2017 10:41 pm

Ok, so this time it at least generated some more files:
openwrt-ramips-mt7628-root.squashfs
openwrt-ramips-mt7628-uImage.bin
openwrt-ramips-mt7628-vmlinux.bin
openwrt-ramips-mt7628-vmlinux.elf

However .. still missing the openwrt-ramips-mt7628-vocore2-squashfs-sysupgrade.bin (Full path: /home/builder/openwrt/bin/ramips/openwrt-ramips-mt7628-vocore2-squashfs-sysupgrade.bin); I do find an if statement containing 'is too big' however, it doesn't seem to be too big. Maybe because after it finished, /home/builder/openwrt/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_mt7628/openwrt-ramips-mt7628-vocore2-squashfs-sysupgrade.bin doesn't exist (anymore):

(..SNIP..)
LZMA 4.65 : Igor Pavlov : Public domain : 2009-02-03
mkimage -A mips -O linux -T kernel -C lzma -a 0x80000000 -e 0x80000000 -n "MIPS OpenWrt Linux-3.18.29" -d /home/builder/openwrt/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_mt7628/vmlinux-vocore2.bin.lzma /home/builder/openwrt/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_mt7628/vmlinux-vocore2.uImage
Image Name: MIPS OpenWrt Linux-3.18.29
Created: Sun Feb 5 16:30:43 2017
Image Type: MIPS Linux Kernel Image (lzma compressed)
Data Size: 1146244 Bytes = 1119.38 kB = 1.09 MB
Load Address: 80000000
Entry Point: 80000000
cat /home/builder/openwrt/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_mt7628/vmlinux-vocore2.uImage /home/builder/openwrt/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_mt7628/root.squashfs > /home/builder/openwrt/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_mt7628/openwrt-ramips-mt7628-vocore2-squashfs-sysupgrade.bin
/home/builder/openwrt/staging_dir/host/bin/padjffs2 /home/builder/openwrt/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_mt7628/openwrt-ramips-mt7628-vocore2-squashfs-sysupgrade.bin 4 8 16 64 128 256
padding image to 00697000
padding image to 00698000
padding image to 006a0000
padding image to 006c0000
if [ `stat -c%s "/home/builder/openwrt/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_mt7628/openwrt-ramips-mt7628-vocore2-squashfs-sysupgrade.bin"` -gt 16121856 ]; then echo "Warning: /home/builder/openwrt/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_mt7628/openwrt-ramips-mt7628-vocore2-squashfs-sysupgrade.bin is too big" >&2; else cp -fpR /home/builder/openwrt/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_mt7628/openwrt-ramips-mt7628-vocore2-squashfs-sysupgrade.bin /home/builder/openwrt/bin/ramips/openwrt-ramips-mt7628-vocore2-squashfs-sysupgrade.bin; fi
( cd /home/builder/openwrt/bin/ramips ; find -maxdepth 1 -type f \! -name 'md5sums' -printf "%P\n" | sort | xargs md5sum --binary > md5sums )
( cd /home/builder/openwrt/bin/ramips ; find -maxdepth 1 -type f \! -name 'md5sums' -printf "%P\n" | sort | xargs openssl dgst -sha256 > sha256sums )
(..SNIP..)

BTW, I did a new run after running 'make clean', and still no openwrt-ramips-mt7628-vocore2-squashfs-sysupgrade.bin; But also no 'if [`stat ' message.

Regards,
Onno.

noblepepper
 
Posts: 240
Joined: Sat Nov 29, 2014 3:22 pm

Re: openwrt Bin file not being generated

Mon Feb 06, 2017 8:50 am

OpenWrt has not added support for the VoCore2 (neither CC or DD). Lede does have support but uses the open source mt76 wifi driver. The mt76 driver has problems with the 7628, speed varies from ~1/2 to 1/10 of what the proprietary driver gets depending on which board it is loaded on. The Mediatek proprietary driver hasn't been ported to 4.xx series kernels so it works only on Chaos Calmer (3.18 kernels).

If you want to "roll your own" details of adding a device are here and here, an example is ndoo's pull request to Lede.

It is easier to
Download Vonger's sources, disable libgphoto in make menuconfig if needed (it gives me an error), type make, wait until it finishes.
or use his github repo.

As far as the image being to big if you look at the command from make in your post you can run
Code: Select all
stat -c%s "/home/builder/openwrt/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_mt7628/openwrt-ramips-mt7628-vocore2-squashfs-sysupgrade.bin

or just
Code: Select all
ls -l /home/builder/openwrt/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_mt7628/openwrt-ramips-mt7628-vocore2-squashfs-sysupgrade.bin

to see the size of the image the magic number it has to be smaller than would be 16121856.

ovdleun
 
Posts: 10
Joined: Thu Jan 26, 2017 7:51 am

Re: openwrt Bin file not being generated

Mon Feb 06, 2017 4:21 pm

Hi Noblepepper,

Ok, that's clear on that one. Guess I'll just stick with Vongers sources/toolchain.

Maybe because after it finished, /home/builder/openwrt/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_mt7628/openwrt-ramips-mt7628-vocore2-squashfs-sysupgrade.bin doesn't exist (anymore)

As said before, the file just isn't there in the build_dir.. so it triggers the 'else' ..

But thanks again for your time and valuable info and link references.

KR!
Onno.

Vonger
 
Posts: 896
Joined: Sun Oct 19, 2014 6:00 am

Re: openwrt Bin file not being generated

Wed Feb 08, 2017 8:46 am


ovdleun
 
Posts: 10
Joined: Thu Jan 26, 2017 7:51 am

Re: openwrt Bin file not being generated

Sat Feb 11, 2017 6:13 pm

Vonger wrote:use this source: http://vonger.cn/misc/vocore2/openwrt.tar.bz2


Thanks Vonger! Managed to use that source and made the required mods to get a serial usb converter working.

KR,
Onno.

Return to VoCore2/Lite/Ultimate

Who is online

Users browsing this forum: No registered users and 17 guests