[OpenWrt-Devel] Booting D-Link DNS-313, kernel requirements for OpenWRT?

Linus Walleij linus.walleij at linaro.org
Fri Jan 19 16:27:15 EST 2018

On Wed, Jan 17, 2018 at 6:11 PM, Hans Ulli Kroll
<ulli.kroll at googlemail.com> wrote:

> OpenWRT is currently in (re)merging status from LEDE
> maybe LEDE images can work.
> I've done a testbuild with current LEDE and ext4 target which fails,
> make be a
> make -j1 V=s
> or a testbuild for my ALIX6F2 give me some light here.

Oh it is actually pretty simple, it fails when doing some extra dd magic
on the final ext4 image:

/home/linus/src/openwrt/staging_dir/host/bin/make_ext4fs -l 536870912
-b 4096 -m 0 -J -T 1516271982
Creating filesystem with parameters:
    Size: 536870912
    Block size: 4096
    Blocks per group: 32768
    Inodes per group: 8192
    Inode size: 256
    Journal blocks: 0
    Blocks: 131072
    Block groups: 4
    Reserved blocks: 0
    Reserved block group size: 31
Created filesystem with 962/32768 inodes and 5493/131072 blocks
dd if=/home/linus/src/openwrt/bin/targets/gemini/raidsonic/openwrt-gemini-raidsonic-ext4.img
of=/home/linus/src/openwrt/bin/targets/gemini/raidsonic/rd.gz bs=6144k
dd: failed to open
No such file or directory

The rootfs image
is not there.

However I guess it is looking for:
that was just created in the step before by make_ext4fs?

I just don't find my way around the openwrt build scripts well enough to
figure out how to fix this...

However the rootfs per se is finished and is in
so I'm using that (just untar it on the root partition) and it "should work".
However it is a bit reluctant to boot...

Linus Walleij
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org

More information about the openwrt-devel mailing list