OpenWrt Forum Archive

Topic: Imagebuilder DIR-860L B1

The content of this topic has been archived on 28 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi, i'd like to build with image builder an image for my DIR-860L.
I was using image builder for archer c7.
I was able to find in the image builder directory the tp-link profile..
Now for the D-link, on ramips/mt7621/ target directory there is not a pre-build profile.
Is possible to make a profile for my router?
i'd like to add in the image some packages.
How can i do it?
Tnx for help

You need to download and use the ramips image builder. Archer C7 is Atheros.

I know.
I downloaded ramips image builder.
There is no profile for dlink

Check out trunk, and use the ramips / mt7621 target, DIR-860L is supported by that.

Regards,
-w-

wigyori wrote:

Check out trunk, and use the ramips / mt7621 target, DIR-860L is supported by that.

Regards,
-w-

Tnx!!
Can i copy the target prifile file from trunk and use it on CC?

i downloaded the trunk image builder.
Also on DD version there is not any pre-build profile for drink dir 860L.
Any suggestion??

you can find the profile in

target/linux/ramips/image/mt7621.mk

kyzhk wrote:

you can find the profile in

target/linux/ramips/image/mt7621.mk

tnx for your answer.
i founded the profile file and i added the packages...
anyway the image is generated without the extra packages... how is possible?

Deus3X wrote:
kyzhk wrote:

you can find the profile in

target/linux/ramips/image/mt7621.mk

tnx for your answer.
i founded the profile file and i added the packages...
anyway the image is generated without the extra packages... how is possible?

This is probably not the correct way to do this but the packages option in commandline / profile wasn't working for me, and I only tried this on a wnr612v2 which needs a custom image to fit sqm-scripts on the 4mb chip.

I simply add the packages in target.mk DEFAULT_PACKAGES

in your case it should be source/target/linux/ramips/mt7621/target.mk.

You can check the build log to see if the specified package and dependencies got added.

(Last edited by kyzhk on 19 Feb 2017, 22:01)

kyzhk wrote:
Deus3X wrote:
kyzhk wrote:

you can find the profile in

target/linux/ramips/image/mt7621.mk

tnx for your answer.
i founded the profile file and i added the packages...
anyway the image is generated without the extra packages... how is possible?

This is probably not the correct way to do this but the packages option in commandline / profile wasn't working for me, and I only tried this on a wnr612v2 which needs a custom image to fit sqm-scripts on the 4mb chip.

I simply add the packages in target.mk DEFAULT_PACKAGES

in your case it should be source/target/linux/ramips/mt7621/target.mk.

You can check the build log to see if the specified package and dependencies got added.

also on target.mk is not working...
on BB i was able to edit profile on /target/linux/ramips/mt7621/profiles
now i can't find the file were image builder get default packages...

Deus3X wrote:
kyzhk wrote:
Deus3X wrote:

tnx for your answer.
i founded the profile file and i added the packages...
anyway the image is generated without the extra packages... how is possible?

This is probably not the correct way to do this but the packages option in commandline / profile wasn't working for me, and I only tried this on a wnr612v2 which needs a custom image to fit sqm-scripts on the 4mb chip.

I simply add the packages in target.mk DEFAULT_PACKAGES

in your case it should be source/target/linux/ramips/mt7621/target.mk.

You can check the build log to see if the specified package and dependencies got added.

also on target.mk is not working...
on BB i was able to edit profile on /target/linux/ramips/mt7621/profiles
now i can't find the file were image builder get default packages...

Then I have no idea. I just custom built a lede image for wnr612v2 two days ago with sqm-scripts and the dependencies added to squashfs and removed a lot other packages.

(Last edited by kyzhk on 19 Feb 2017, 22:13)

Deus3X wrote:
kyzhk wrote:
Deus3X wrote:

tnx for your answer.
i founded the profile file and i added the packages...
anyway the image is generated without the extra packages... how is possible?

This is probably not the correct way to do this but the packages option in commandline / profile wasn't working for me, and I only tried this on a wnr612v2 which needs a custom image to fit sqm-scripts on the 4mb chip.

I simply add the packages in target.mk DEFAULT_PACKAGES

in your case it should be source/target/linux/ramips/mt7621/target.mk.

You can check the build log to see if the specified package and dependencies got added.

also on target.mk is not working...
on BB i was able to edit profile on /target/linux/ramips/mt7621/profiles
now i can't find the file were image builder get default packages...

I used lede-imagebuilder-17.01.0-rc2-ramips-mt7621.Linux-x86_64 for this:
I edited this file target/linux/ramips/mt7621/target.mk and added sqm-scripts to default packages

DEFAULT_PACKAGES += kmod-mt76 sqm-scripts

and built with
make image profile=dir-860l-b1

I can confirm from the build log that sqm-scripts and the dependencies got added properly to squashfs.

The discussion might have continued from here.