the device is very very similar to the dir-645 which is supported.
i proceeded to modify the dir-645.dts and compile.
uploading the image via tftp i can get it to almost boot, but it's obvious the kernel can't load the filesystem. i imagine there are other places i need to modify to make it boot, but as of now i don't know where.
here is the boot log
U-Boot 1.1.3 (Jul 16 2010 - 11:25:10) (ALPHA)
SVN revision: 359
Target board: WRG-ND08
Board: Ralink APSoC DRAM: 32 MB
Flash: Bank 0, ID:000322a8, Size 4194304 (0x00400000)
============================================
Ralink UBoot Version: 3.3
--------------------------------------------
ASIC 3883_MP (MAC to MAC 100F MII Mode)
DRAM component: 256 Mbits SDR
DRAM bus: 16 bit
Total memory: 32 MBytes
Flash component: NOR Flash
Date:Jul 16 2010 Time:11:25:10
============================================
icache: sets:512, ways:4, linesz:32 ,total:65536
dcache: sets:256, ways:4, linesz:32 ,total:32768
GPIO pin 24 reset to switch
Please choose the operation:
1: Load system code to SDRAM via TFTP.
2: Load system code then write to Flash via TFTP.
3: Boot system code via Flash (default).
4: Entr boot command line interface.
7: Load Boot Loader code then write to Flash via Serial.
9: Load Boot Loader code then write to Flash via TFTP. 0
3: System Boot system code via Flash.
## Booting image at bc050000 ...
We have SEAMA, Image Size = 1114048
Verifying Checksum ...
Uncompressing SEAMA linux.lzma ... OK
## Transferring control to Linux (at address bc05000c) ...
## Giving linux memsize in MB, 32
Starting kernel ...
[ 0.000000] Linux version 3.18.45 (bracco@bracco-VirtualBox) (gcc version 4.8.3 (OpenWrt/Linaro GCC 4.8-2014.04 r49389) ) #5 Mon Dec 19 22:13:37 CET 2016
[ 0.000000] SoC Type: Ralink RT3883 ver:1 eco:5
[ 0.000000] bootconsole [early0] enabled
[ 0.000000] CPU0 revision is: 0001974c (MIPS 74Kc)
[ 0.000000] MIPS: machine is D-Link DIR-645
[ 0.000000] Determined physical RAM map:
[ 0.000000] memory: 02000000 @ 00000000 (usable)
[ 0.000000] Initrd not found or empty - disabling initrd
[ 0.000000] Zone ranges:
[ 0.000000] Normal [mem 0x00000000-0x01ffffff]
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x00000000-0x01ffffff]
[ 0.000000] Initmem setup node 0 [mem 0x00000000-0x01ffffff]
[ 0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
[ 0.000000] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 8128
[ 0.000000] Kernel command line: console=ttyS0,57600 rootfstype=squashfs,jffs2
[ 0.000000] PID hash table entries: 128 (order: -3, 512 bytes)
[ 0.000000] Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.000000] Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.000000] Writing ErrCtl register=00000000
[ 0.000000] Readback ErrCtl register=00000000
[ 0.000000] Memory: 29072K/32768K available (2393K kernel code, 122K rwdata, 436K rodata, 176K init, 185K bss, 3696K reserved)
[ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] NR_IRQS:256
[ 0.000000] CPU Clock: 500MHz
[ 0.000000] Calibrating delay loop... 249.44 BogoMIPS (lpj=1247232)
[ 0.070000] pid_max: default: 32768 minimum: 301
[ 0.070000] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.080000] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.090000] pinctrl core: initialized pinctrl subsystem
[ 0.100000] NET: Registered protocol family 16
[ 0.130000] rt2880_gpio 10000600.gpio: registering 24 gpios
[ 0.140000] rt2880_gpio 10000600.gpio: registering 24 irq handlers
[ 0.150000] rt2880_gpio 10000638.gpio: registering 16 gpios
[ 0.160000] Switched to clocksource MIPS
[ 0.170000] NET: Registered protocol family 2
[ 0.170000] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.190000] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.200000] TCP: Hash tables configured (established 1024 bind 1024)
[ 0.210000] TCP: reno registered
[ 0.220000] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.230000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.240000] NET: Registered protocol family 1
[ 0.250000] rt-timer 10000100.timer: maximum frequency is 7629Hz
[ 0.270000] futex hash table entries: 256 (order: -1, 3072 bytes)
[ 0.290000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.300000] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[ 0.320000] msgmni has been set to 56
[ 0.340000] io scheduler noop registered
[ 0.350000] io scheduler deadline registered (default)
[ 0.360000] ralink-usb-phy usbphy: invalid resource
[ 0.370000] gpio-export gpio_export: 1 gpio(s) exported
[ 0.380000] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[ 0.400000] console [ttyS0] disabled
[ 0.400000] 10000c00.uartlite: ttyS0 at MMIO 0x10000c00 (irq = 20, base_baud = 2500000) is a 16550A
[ 0.420000] console [ttyS0] enabled
[ 0.420000] console [ttyS0] enabled
[ 0.440000] bootconsole [early0] disabled
[ 0.440000] bootconsole [early0] disabled
[ 0.460000] ralink_soc_eth 10100000.ethernet: generated random MAC address e6:e4:d7:7c:05:09
[ 0.480000] ralink_soc_eth 10100000.ethernet: using fixed link parameters
[ 0.490000] ralink_soc_eth 10100000.ethernet eth0 (uninitialized): link up (1000Mbps/Full duplex)
[ 0.510000] ralink_soc_eth 10100000.ethernet eth0: ralink at 0xb0100000, irq 5
[ 0.530000] rt2880_wdt 10000120.watchdog: Initialized
[ 0.540000] TCP: cubic registered
[ 0.540000] NET: Registered protocol family 17
[ 0.550000] bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this.
[ 0.580000] 8021q: 802.1Q VLAN Support v1.8
[ 0.590000] VFS: Cannot open root device "(null)" or unknown-block(0,0): error -6
[ 0.610000] Please append a correct "root=" boot option; here are the available partitions:
[ 0.620000] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[ 0.620000] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[ 82.690000] random: nonblocking pool is initialized
anybody help?