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

Hans Ulli Kroll ulli.kroll at googlemail.com
Sat Jan 20 03:43:17 EST 2018


Hi Linus

On Fri, 19 Jan 2018, Linus Walleij wrote:

> 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
> /home/linus/src/openwrt/build_dir/target-arm_fa526_musl_eabi/linux-gemini_raidsonic/root.ext4
> /home/linus/src/openwrt/build_dir/target-arm_fa526_musl_eabi/root-gemini/
> Creating filesystem with parameters:
>     Size: 536870912
>     Block size: 4096
>     Blocks per group: 32768
>     Inodes per group: 8192
>     Inode size: 256
>     Journal blocks: 0
>     Label:
>     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
> count=1
> dd: failed to open
> '/home/linus/src/openwrt/bin/targets/gemini/raidsonic/openwrt-gemini-raidsonic-ext4.img':
> No such file or directory
> 
> The rootfs image
> /home/linus/src/openwrt/bin/targets/gemini/raidsonic/openwrt-gemini-raidsonic-ext4.img
> is not there.
> 
> However I guess it is looking for:
> /home/linus/src/openwrt/build_dir/target-arm_fa526_musl_eabi/linux-gemini_raidsonic/root.ext4
> 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
> /home/linus/src/openwrt/bin/targets/gemini/raidsonic/openwrt-gemini-raidsonic-default-rootfs.tar.gz
> so I'm using that (just untar it on the root partition) and it "should work".
> However it is a bit reluctant to boot...

great.
I'm currently awaiting my device, so I can start hacking.
Mebay I need to build me some "special" USB cables to work on the 
FOTG-USBdriver.

So they are three extra pins, not covered by Faradays IP, for each USB 
port. I have a (small) vision about the layout, but I need this NAS.

Oh, and for the soldering :
This is a piece of cake, part of my day job.

Greetings
Hans Ulli Kroll
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list