Support for D-Link DIR-842 (Rev C2)

Hello,

I have a router in my hand, I am trying (learning) to compile openwrt for DIR-842 C2, witch is very similar to https://wikidevi.com/wiki/D-Link_DIR-842_rev_C1 with an USB2 port.

Qualcomm Atheros QCA9563 SoC
+
Qualcomm Atheros QCA9888 Wifi Chip
+
Qualcomm Atheros AR8327 Switch

I am able to connect to the serial interface and get the bootlog,

information i gathered so far:

Flash Chip: Winbond W25Q128 16MB Flash

Layout:

 0x000000000000-0x000000040000 : "u-boot"
 0x000000040000-0x000000050000 : "u-boot-env"
 0x000000050000-0x000000060000 : "devdata"
 0x000000060000-0x000000070000 : "devconf"
 0x000000070000-0x000000080000 : "misc"
 0x000000080000-0x000000f50000 : "upgrade"
 0x000000f50000-0x000000fd0000 : "mydlink"
 0x000000fd0000-0x000000fe0000 : "art"
 0x000000fe0000-0x000000ff0000 : "alpha_boarddat"
 0x000000240060-0x000000dd7060 : "rootfs"

Now I am trying to get access to the serial console, but I can't figure out what is the login password.

Now I managed to get the kernel booting, but it cant seems to find rootfs

[    0.400601] m25p80 spi0.0: w25q128 (16384 Kbytes)
[    0.405556] 7 fixed-partitions partitions found on MTD device spi0.0
[    0.412113] Creating 7 MTD partitions on "spi0.0":
[    0.417104] 0x000000000000-0x000000040000 : "u-boot"
[    0.422961] 0x000000040000-0x000000050000 : "u-boot-env"
[    0.429265] 0x000000050000-0x000000060000 : "devdata"
[    0.435230] 0x000000060000-0x000000070000 : "devconf"
[    0.441136] 0x000000070000-0x000000080000 : "misc"
[    0.446828] 0x000000080000-0x000000fd0000 : "firmware"
[    0.452818] 0x000000fd0000-0x000000fe0000 : "art"
[    0.459432] libphy: Fixed MDIO Bus: probed
[    0.466087] ag71xx 19000000.eth: invalid MAC address, using random address
[    1.144775] libphy: ag71xx_mdio: probed
[    1.151798] switch0: Atheros AR8337 rev. 2 switch registered on mdio-bus.0
[    1.805874] ag71xx 19000000.eth: connected to PHY at mdio-bus.0:00 [uid=004dd036, driver=Atheros AR8216/AR8236/AR8316]
[    1.817516] eth0: Atheros AG71xx at 0xb9000000, irq 4, mode: sgmii
[    1.826064] NET: Registered protocol family 10
[    1.835376] Segment Routing with IPv6
[    1.839257] NET: Registered protocol family 17
[    1.843900] 8021q: 802.1Q VLAN Support v1.8
[    1.850643] VFS: Cannot open root device "(null)" or unknown-block(0,0): error -6
[    1.858423] Please append a correct "root=" boot option; here are the available partitions:
[    1.867068] 1f00             256 mtdblock0
[    1.867072]  (driver?)
[    1.873818] 1f01              64 mtdblock1
[    1.873821]  (driver?)
[    1.880582] 1f02              64 mtdblock2
[    1.880585]  (driver?)
[    1.887338] 1f03              64 mtdblock3
[    1.887341]  (driver?)
[    1.894085] 1f04              64 mtdblock4
[    1.894087]  (driver?)
[    1.900840] 1f05           15680 mtdblock5
[    1.900843]  (driver?)
[    1.907596] 1f06              64 mtdblock6

here is the kernel configuration in the dts file

partitions {
			compatible = "fixed-partitions";
			#address-cells = <1>;
			#size-cells = <1>;

			partition@0 {
				label = "u-boot";
				reg = <0x000000 0x40000>;
				read-only;
			};

			partition@40000 {
				label = "u-boot-env";
				reg = <0x040000 0x10000>;
				read-only;
			};

			partition@50000 {
				label = "devdata";
				reg = <0x050000 0x10000>;
				read-only;
			};

			partition@60000 {
				label = "devconf";
				reg = <0x060000 0x10000>;
				read-only;
			};
			
			partition@70000 {
				label = "misc";
				reg = <0x070000 0x10000>;
			};

			partition@80000 {
				compatible = "seama";
				label = "firmware";
				reg = <0x080000 0xf50000>;
			};

			art: partition@fd0000 {
				label = "art";
				reg = <0xfd0000 0x010000>;
				read-only;
			};

I ran through the wiki and I cant find any further help.

Please help me continue, thanks in advance!

Check your kernel boot args

I'd also check into "seama", which I've never seen before myself (and may be right)

Thanks for the quick reply, I am a little bit confused about the bootargs

In the dts file, I set the bootargs to

chosen {
		bootargs = "console=ttyS0,115200n8";
	};

But in the bootloader, if I use printenv, I can see the bootargs as

bootargs=console=ttyS0,115200 root=31:02 rootfstype=jffs2 init=/sbin/init mtdparts=ath-nor0:256k(u-boot),64k(u-boot-env),14528k(rootfs),1408k(uImage),64k(mib0),64k(ART)

May I know what is the bootargs the kernel actually uses to boot?

Check what the kernel prints in the early init phase -- it depends on the platform as to if the boot-loader args are taken, munged, or ignored

Thanks again

I tried to set

setenv bootargs=console=ttyS0,960000=root=31:06

But I still find

Kernel command line: console=ttyS0,115200n8 rootfstype=squashfs,jffs2

can I safely assume the boot-loader args is ignored?

Here is the complete bootlog

ath> bootm 9f080000
## Booting image at 9f080000 ...
Verifying Checksum ...
Uncompressing SEAMA linux.lzma ... OK
do_boot_linux entry = 80060000
## Transferring control to Linux (at address 80060000) ...
## Giving linux memsize in bytes, 134217728

Starting kernel ...

[    0.000000] Linux version 4.19.57 (ha@ha-Inspiron-7559) (gcc version 7.4.0 (OpenWrt GCC 7.4.0 r10495-ba5878f056)) #0 Fri Jul 12 14:12:01 2019
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 00019750 (MIPS 74Kc)
[    0.000000] MIPS: machine is D-Link DIR-842 C2
[    0.000000] SoC: Qualcomm Atheros QCA956X ver 1 rev 0
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 08000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000] random: get_random_bytes called from start_kernel+0x98/0x4a8 with crng_init=0
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 32480
[    0.000000] Kernel command line: console=ttyS0,115200n8 rootfstype=squashfs,jffs2
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Writing ErrCtl register=00000000
[    0.000000] Readback ErrCtl register=00000000
[    0.000000] Memory: 122488K/131072K available (4264K kernel code, 172K rwdata, 1004K rodata, 1208K init, 207K bss, 8584K reserved, 0K cma-reserved)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS: 51
[    0.000000] CPU clock: 775.000 MHz
[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 4932285024 ns
[    0.000007] sched_clock: 32 bits at 387MHz, resolution 2ns, wraps every 5541893118ns
[    0.008217] Calibrating delay loop... 385.84 BogoMIPS (lpj=1929216)
[    0.074761] pid_max: default: 32768 minimum: 301
[    0.079809] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.086793] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.098427] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.108837] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.115388] pinctrl core: initialized pinctrl subsystem
[    0.121790] NET: Registered protocol family 16
[    0.132963] PCI host bridge /ahb/apb/pcie-controller@18250000 ranges:
[    0.139764]  MEM 0x0000000012000000..0x0000000013ffffff
[    0.145309]   IO 0x0000000000000000..0x0000000000000000
[    0.169454] PCI host bridge to bus 0000:00
[    0.173783] pci_bus 0000:00: root bus resource [mem 0x12000000-0x13ffffff]
[    0.181077] pci_bus 0000:00: root bus resource [io  0x0000]
[    0.186946] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
[    0.194107] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[    0.203641] pci 0000:00:00.0: BAR 0: assigned [mem 0x12000000-0x121fffff 64bit]
[    0.214413] clocksource: Switched to clocksource MIPS
[    0.220799] NET: Registered protocol family 2
[    0.226168] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes)
[    0.234278] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.241679] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.248400] TCP: Hash tables configured (established 1024 bind 1024)
[    0.255234] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.261407] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.268397] NET: Registered protocol family 1
[    0.275897] Crashlog allocated RAM at address 0x3f00000
[    0.282819] workingset: timestamp_bits=14 max_order=15 bucket_order=1
[    0.295614] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.301758] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.324792] io scheduler noop registered
[    0.328924] io scheduler deadline registered (default)
[    0.336045] pinctrl-single 1804002c.pinmux: 544 pins, size 68
[    0.342548] gpio-export gpio-export: 1 gpio(s) exported
[    0.348861] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[    0.356239] console [ttyS0] disabled
[    0.360033] 18020000.uart: ttyS0 at MMIO 0x18020000 (irq = 9, base_baud = 1562500) is a 16550A
[    0.369175] console [ttyS0] enabled
[    0.369175] console [ttyS0] enabled
[    0.376736] bootconsole [early0] disabled
[    0.376736] bootconsole [early0] disabled
[    0.400632] m25p80 spi0.0: w25q128 (16384 Kbytes)
[    0.405582] 7 fixed-partitions partitions found on MTD device spi0.0
[    0.412139] Creating 7 MTD partitions on "spi0.0":
[    0.417130] 0x000000000000-0x000000040000 : "u-boot"
[    0.422990] 0x000000040000-0x000000050000 : "u-boot-env"
[    0.429299] 0x000000050000-0x000000060000 : "devdata"
[    0.435266] 0x000000060000-0x000000070000 : "devconf"
[    0.441167] 0x000000070000-0x000000080000 : "misc"
[    0.446854] 0x000000080000-0x000000fd0000 : "firmware"
[    0.452842] 0x000000fd0000-0x000000fe0000 : "art"
[    0.459450] libphy: Fixed MDIO Bus: probed
[    0.466106] ag71xx 19000000.eth: invalid MAC address, using random address
[    1.144786] libphy: ag71xx_mdio: probed
[    1.151804] switch0: Atheros AR8337 rev. 2 switch registered on mdio-bus.0
[    1.805884] ag71xx 19000000.eth: connected to PHY at mdio-bus.0:00 [uid=004dd036, driver=Atheros AR8216/AR8236/AR8316]
[    1.817533] eth0: Atheros AG71xx at 0xb9000000, irq 4, mode: sgmii
[    1.826100] NET: Registered protocol family 10
[    1.835422] Segment Routing with IPv6
[    1.839309] NET: Registered protocol family 17
[    1.843952] 8021q: 802.1Q VLAN Support v1.8
[    1.850690] VFS: Cannot open root device "(null)" or unknown-block(0,0): error -6
[    1.858466] Please append a correct "root=" boot option; here are the available partitions:
[    1.867112] 1f00             256 mtdblock0
[    1.867115]  (driver?)
[    1.873861] 1f01              64 mtdblock1
[    1.873863]  (driver?)
[    1.880625] 1f02              64 mtdblock2
[    1.880628]  (driver?)
[    1.887380] 1f03              64 mtdblock3
[    1.887383]  (driver?)
[    1.894127] 1f04              64 mtdblock4
[    1.894129]  (driver?)
[    1.900883] 1f05           15680 mtdblock5
[    1.900886]  (driver?)
[    1.907639] 1f06              64 mtdblock6
[    1.907642]  (driver?)
[    1.914384] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[    1.923534] Rebooting in 1 seconds..

Thanks, the compatible = "seama" line is copied from qca9563_dlink_dir-859-a1.dts

I think this two device is very similar so I copied the dts file and edited the partitions. I will look more into it.

Seems like I am able to boot initramfs from tftpboot, so I assume the only problem preventing it from booting now is it cannot create seama-fw partition sucessfully for rootfs and kernel

bootm 2000000
## Booting image at 02000000 ...
Verifying Checksum ...
Uncompressing SEAMA linux.lzma ... OK
do_boot_linux entry = 80060000
## Transferring control to Linux (at address 80060000) ...
## Giving linux memsize in bytes, 134217728

Starting kernel ...

[    0.000000] Linux version 4.19.57 (ha@ha-Inspiron-7559) (gcc version 7.4.0 (OpenWrt GCC 7.4.0 r10495-ba5878f056)) #0 Fri Jul 12 14:12:01 2019
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 00019750 (MIPS 74Kc)
[    0.000000] MIPS: machine is D-Link DIR-842 C2
[    0.000000] SoC: Qualcomm Atheros QCA956X ver 1 rev 0
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 08000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000] random: get_random_bytes called from start_kernel+0x98/0x4a8 with crng_init=0
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 32480
[    0.000000] Kernel command line: console=ttyS0,115200n8 rootfstype=squashfs,jffs2
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Writing ErrCtl register=00000000
[    0.000000] Readback ErrCtl register=00000000
[    0.000000] Memory: 115964K/131072K available (4264K kernel code, 172K rwdata, 1004K rodata, 7736K init, 207K bss, 15108K reserved, 0K cma-reserved)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS: 51
[    0.000000] CPU clock: 775.000 MHz
[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 4932285024 ns
[    0.000007] sched_clock: 32 bits at 387MHz, resolution 2ns, wraps every 5541893118ns
[    0.008217] Calibrating delay loop... 385.84 BogoMIPS (lpj=1929216)
[    0.074761] pid_max: default: 32768 minimum: 301
[    0.079812] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.086802] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.098424] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.108837] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.115389] pinctrl core: initialized pinctrl subsystem
[    0.121783] NET: Registered protocol family 16
[    0.132946] PCI host bridge /ahb/apb/pcie-controller@18250000 ranges:
[    0.139748]  MEM 0x0000000012000000..0x0000000013ffffff
[    0.145291]   IO 0x0000000000000000..0x0000000000000000
[    0.169375] PCI host bridge to bus 0000:00
[    0.173699] pci_bus 0000:00: root bus resource [mem 0x12000000-0x13ffffff]
[    0.180995] pci_bus 0000:00: root bus resource [io  0x0000]
[    0.186863] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
[    0.194024] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[    0.203540] pci 0000:00:00.0: BAR 0: assigned [mem 0x12000000-0x121fffff 64bit]
[    0.214299] clocksource: Switched to clocksource MIPS
[    0.220688] NET: Registered protocol family 2
[    0.226060] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes)
[    0.234171] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.241569] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.248293] TCP: Hash tables configured (established 1024 bind 1024)
[    0.255128] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.261299] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.268290] NET: Registered protocol family 1
[    0.407509] Crashlog allocated RAM at address 0x3f00000
[    0.414562] workingset: timestamp_bits=14 max_order=15 bucket_order=1
[    0.427286] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.433431] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.512827] io scheduler noop registered
[    0.517009] io scheduler deadline registered (default)
[    0.524091] pinctrl-single 1804002c.pinmux: 544 pins, size 68
[    0.530650] gpio-export gpio-export: 1 gpio(s) exported
[    0.536963] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[    0.544262] console [ttyS0] disabled
[    0.548116] 18020000.uart: ttyS0 at MMIO 0x18020000 (irq = 9, base_baud = 1562500) is a 16550A
[    0.557222] console [ttyS0] enabled
[    0.557222] console [ttyS0] enabled
[    0.564783] bootconsole [early0] disabled
[    0.564783] bootconsole [early0] disabled
[    0.588624] m25p80 spi0.0: w25q128 (16384 Kbytes)
[    0.593529] 6 fixed-partitions partitions found on MTD device spi0.0
[    0.600124] Creating 6 MTD partitions on "spi0.0":
[    0.605108] 0x000000000000-0x000000040000 : "u-boot"
[    0.610971] 0x000000040000-0x000000050000 : "u-boot-env"
[    0.617204] 0x000000050000-0x000000060000 : "devdata"
[    0.623090] 0x000000060000-0x000000070000 : "devconf"
[    0.629141] 0x000000070000-0x000000fd0000 : "firmware"
[    0.635187] 0x000000fd0000-0x000000fe0000 : "art"
[    0.641718] libphy: Fixed MDIO Bus: probed
[    0.648358] ag71xx 19000000.eth: invalid MAC address, using random address
[    1.334671] libphy: ag71xx_mdio: probed
[    1.360494] switch0: Atheros AR8337 rev. 2 switch registered on mdio-bus.0
[    2.015766] ag71xx 19000000.eth: connected to PHY at mdio-bus.0:00 [uid=004dd036, driver=Atheros AR8216/AR8236/AR8316]
[    2.027399] eth0: Atheros AG71xx at 0xb9000000, irq 4, mode: sgmii
[    2.035964] NET: Registered protocol family 10
[    2.045336] Segment Routing with IPv6
[    2.049218] NET: Registered protocol family 17
[    2.053870] 8021q: 802.1Q VLAN Support v1.8
[    2.103291] Freeing unused kernel memory: 7736K
[    2.108003] This architecture does not have kernel memory protection.
[    2.114662] Run /init as init process
[    2.131133] init: Console is alive
[    2.134997] init: - watchdog -
[    2.157570] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    2.175737] usbcore: registered new interface driver usbfs
[    2.181452] usbcore: registered new interface driver hub
[    2.187088] usbcore: registered new device driver usb
[    2.197772] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    2.206171] ehci-platform: EHCI generic platform driver
[    2.212354] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    2.230266] init: - preinit -
[    2.412200] random: jshn: uninitialized urandom read (4 bytes read)
[    2.489222] random: jshn: uninitialized urandom read (4 bytes read)
[    2.536355] random: jshn: uninitialized urandom read (4 bytes read)
[    2.710053] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
Press the [f] key and hit [enter] to enter failsafe mode
Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level
[    3.795626] eth0: link up (1000Mbps/Full duplex)
[    3.800491] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[    4.774297] random: fast init done
[    5.841321] eth0: link down
[    5.854020] procd: - early -
[    5.857746] procd: - watchdog -
[    6.406054] procd: - watchdog -
[    6.409557] procd: - ubus -
[    6.418637] urandom_read: 5 callbacks suppressed
[    6.418644] random: ubusd: uninitialized urandom read (4 bytes read)
[    6.462924] random: ubusd: uninitialized urandom read (4 bytes read)
[    6.470794] procd: - init -
Please press Enter to activate this console.
[    6.873298] kmodloader: loading kernel modules from /etc/modules.d/*
[    6.888697] urngd: v1.0.0 started.
[    6.917862] Loading modules backported from Linux version v4.19.32-0-g3a2156c839c7
[    6.925736] Backport generated by backports.git v4.19.32-1-0-g1c4f7569
[    6.985202] xt_time: kernel timezone is -0000
[    7.111386] PPP generic driver version 2.4.2
[    7.124215] random: crng init done
[    7.133568] NET: Registered protocol family 24
[    7.170697] ath10k 4.19 driver, optimized for CT firmware, probing pci device: 0x56.
[    7.180308] ath10k_pci 0000:00:00.0: enabling device (0000 -> 0002)
[    7.187133] ath10k_pci 0000:00:00.0: pci irq legacy oper_irq_mode 1 irq_mode 0 reset_mode 0
[    7.474178] firmware ath10k!fwcfg-pci-0000:00:00.0.txt: firmware_loading_store: map pages failed
[    7.661781] firmware ath10k!pre-cal-pci-0000:00:00.0.bin: firmware_loading_store: map pages failed
[    7.845309] firmware ath10k!cal-pci-0000:00:00.0.bin: firmware_loading_store: map pages failed
[    8.029153] firmware ath10k!QCA9888!hw2.0!ct-firmware-5.bin: firmware_loading_store: map pages failed
[    8.217665] firmware ath10k!QCA9888!hw2.0!ct-firmware-2.bin: firmware_loading_store: map pages failed
[    8.402488] firmware ath10k!QCA9888!hw2.0!firmware-6.bin: firmware_loading_store: map pages failed
[    8.586842] firmware ath10k!QCA9888!hw2.0!firmware-5.bin: firmware_loading_store: map pages failed
[    8.774176] firmware ath10k!QCA9888!hw2.0!firmware-4.bin: firmware_loading_store: map pages failed
[    8.957107] firmware ath10k!QCA9888!hw2.0!firmware-3.bin: firmware_loading_store: map pages failed
[    9.140987] firmware ath10k!QCA9888!hw2.0!firmware-2.bin: firmware_loading_store: map pages failed
[    9.150460] ath10k_pci 0000:00:00.0: Failed to find firmware-N.bin (N between 2 and 6) from ath10k/QCA9888/hw2.0: -11
[    9.161453] ath10k_pci 0000:00:00.0: could not fetch firmware files (-11)
[    9.168473] ath10k_pci 0000:00:00.0: could not probe fw (-11)
[    9.254016] ath9k 18100000.wmac: Direct firmware load for ath9k-eeprom-ahb-18100000.wmac.bin failed with error -2
[    9.264669] ath9k 18100000.wmac: Falling back to syfs fallback for: ath9k-eeprom-ahb-18100000.wmac.bin
[    9.410427] firmware ath9k-eeprom-ahb-18100000.wmac.bin: firmware_loading_store: map pages failed
[    9.420285] ath: phy1: Unable to load EEPROM file ath9k-eeprom-ahb-18100000.wmac.bin
[    9.428353] ath9k 18100000.wmac: failed to initialize device
[    9.434243] ath9k: probe of 18100000.wmac failed with error -22
[    9.457948] kmodloader: done loading kernel modules from /etc/modules.d/*
[   21.656440] br-lan: port 1(eth0) entered blocking state
[   21.661846] br-lan: port 1(eth0) entered disabled state
[   21.667578] device eth0 entered promiscuous mode
[   21.690280] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
[   22.675641] eth0: link up (1000Mbps/Full duplex)
[   22.680506] br-lan: port 1(eth0) entered blocking state
[   22.685943] br-lan: port 1(eth0) entered forwarding state
[   22.692995] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready



BusyBox v1.31.0 () built-in shell (ash)

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 OpenWrt SNAPSHOT, r10495-ba5878f056
 -----------------------------------------------------
=== WARNING! =====================================
There is no root password defined on this device!
Use the "passwd" command to set up a new password
in order to prevent unauthorized SSH logins.
--------------------------------------------------

Please provide help, thanks!

Just throw it in the dts to test.... uboot might be setting on the fly.... or else where in the buildroot

chosen {
bootargs = "console=ttyS0,115200  root=31:06"

This was off anyway

setenv bootargs=console=ttyS0,960000=root=31:06
                                   !^

Would be more like;

setenv bootargs 'console=ttyS0,115200 root=31:02 rootfstype=jffs2 init=/sbin/init mtdparts=ath-nor0:256k(u-boot),64k(u-boot-env),14528k(rootfs),1408k(uImage),64k(mib0),64k(ART)'
then do 
printenv
to verify!

( if it sticks but does not show in the dmesg.... you can try >make kernel_menuconfig > boot > enable ATAG traditional + enable mangle [ combine ] )

Post a full printenv... ( in code tags )

OK, building now

Here you are:

ath> printenv
bootargs=console=ttyS0,115200 root=31:02 rootfstype=jffs2 init=/sbin/init mtdparts=ath-nor0:256k(u-boot),64k(u-boot-env),14528k(rootfs),1408k(uImage),64k(mib0),64k(ART)
bootdelay=2
baudrate=115200
ethaddr=0x00:0xaa:0xbb:0xcc:0xdd:0xee
dir=
lu=tftp 0x80060000 ${dir}u-boot.bin&&erase 0x9f000000 +$filesize&&cp.b $fileaddr 0x9f000000 $filesize
lf=tftp 0x80060000 ${dir}ap152${bc}-jffs2&&erase 0x9f050000 +0xE30000&&cp.b $fileaddr 0x9f050000 $filesize
lk=tftp 0x80060000 ${dir}vmlinux${bc}.lzma.uImage&&erase 0x9fe80000 +$filesize&&cp.b $fileaddr 0x9fe80000 $filesize
loalpha=tftp 0x80060000 DIR842_FW100b01_gcgc.bin && erase 0x9f080000 +${filesize}  && cp.b $fileaddr 0x9f080000 $filesize
filesize=a2b090
fileaddr=80060000
ipaddr=192.168.0.1
serverip=192.168.0.100
bootcmd=bootm 0x9f080040
stdin=serial
stdout=serial
stderr=serial
ethact=eth0

Environment size: 841/65532 bytes

1 Like

Now I get a different error

ath> bootm 9f080000
## Booting image at 9f080000 ...
Verifying Checksum ...
Uncompressing SEAMA linux.lzma ... OK
do_boot_linux entry = 80060000
## Transferring control to Linux (at address 80060000) ...
## Giving linux memsize in bytes, 134217728

Starting kernel ...

[    0.000000] Linux version 4.19.57 (ha@ha-Inspiron-7559) (gcc version 7.4.0 (OpenWrt GCC 7.4.0 r10495-ba5878f056)) #0 Fri Jul 12 14:12:01 2019
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 00019750 (MIPS 74Kc)
[    0.000000] MIPS: machine is D-Link DIR-842 C2
[    0.000000] SoC: Qualcomm Atheros QCA956X ver 1 rev 0
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 08000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000] random: get_random_bytes called from start_kernel+0x98/0x4a8 with crng_init=0
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 32480
[    0.000000] Kernel command line: console=ttyS0,115200n8 root=31:06 rootfstype=squashfs,jffs2
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Writing ErrCtl register=00000000
[    0.000000] Readback ErrCtl register=00000000
[    0.000000] Memory: 122488K/131072K available (4264K kernel code, 172K rwdata, 1004K rodata, 1208K init, 207K bss, 8584K reserved, 0K cma-reserved)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS: 51
[    0.000000] CPU clock: 775.000 MHz
[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 4932285024 ns
[    0.000007] sched_clock: 32 bits at 387MHz, resolution 2ns, wraps every 5541893118ns
[    0.008218] Calibrating delay loop... 385.84 BogoMIPS (lpj=1929216)
[    0.074761] pid_max: default: 32768 minimum: 301
[    0.079810] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.086794] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.098430] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.108837] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.115387] pinctrl core: initialized pinctrl subsystem
[    0.121792] NET: Registered protocol family 16
[    0.132980] PCI host bridge /ahb/apb/pcie-controller@18250000 ranges:
[    0.139780]  MEM 0x0000000012000000..0x0000000013ffffff
[    0.145326]   IO 0x0000000000000000..0x0000000000000000
[    0.169457] PCI host bridge to bus 0000:00
[    0.173783] pci_bus 0000:00: root bus resource [mem 0x12000000-0x13ffffff]
[    0.181078] pci_bus 0000:00: root bus resource [io  0x0000]
[    0.186946] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
[    0.194108] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[    0.203640] pci 0000:00:00.0: BAR 0: assigned [mem 0x12000000-0x121fffff 64bit]
[    0.214415] clocksource: Switched to clocksource MIPS
[    0.220803] NET: Registered protocol family 2
[    0.226168] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes)
[    0.234278] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.241678] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.248400] TCP: Hash tables configured (established 1024 bind 1024)
[    0.255234] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.261407] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.268398] NET: Registered protocol family 1
[    0.275914] Crashlog allocated RAM at address 0x3f00000
[    0.282837] workingset: timestamp_bits=14 max_order=15 bucket_order=1
[    0.295637] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.301783] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.324796] io scheduler noop registered
[    0.328932] io scheduler deadline registered (default)
[    0.336061] pinctrl-single 1804002c.pinmux: 544 pins, size 68
[    0.342566] gpio-export gpio-export: 1 gpio(s) exported
[    0.348876] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[    0.356251] console [ttyS0] disabled
[    0.360042] 18020000.uart: ttyS0 at MMIO 0x18020000 (irq = 9, base_baud = 1562500) is a 16550A
[    0.369182] console [ttyS0] enabled
[    0.369182] console [ttyS0] enabled
[    0.376744] bootconsole [early0] disabled
[    0.376744] bootconsole [early0] disabled
[    0.400641] m25p80 spi0.0: w25q128 (16384 Kbytes)
[    0.405589] 7 fixed-partitions partitions found on MTD device spi0.0
[    0.412148] Creating 7 MTD partitions on "spi0.0":
[    0.417139] 0x000000000000-0x000000040000 : "u-boot"
[    0.422996] 0x000000040000-0x000000050000 : "u-boot-env"
[    0.429301] 0x000000050000-0x000000060000 : "devdata"
[    0.435264] 0x000000060000-0x000000070000 : "devconf"
[    0.441172] 0x000000070000-0x000000080000 : "misc"
[    0.446861] 0x000000080000-0x000000fd0000 : "firmware"
[    0.452850] 0x000000fd0000-0x000000fe0000 : "art"
[    0.459458] libphy: Fixed MDIO Bus: probed
[    0.466102] ag71xx 19000000.eth: invalid MAC address, using random address
[    1.144786] libphy: ag71xx_mdio: probed
[    1.151803] switch0: Atheros AR8337 rev. 2 switch registered on mdio-bus.0
[    1.805886] ag71xx 19000000.eth: connected to PHY at mdio-bus.0:00 [uid=004dd036, driver=Atheros AR8216/AR8236/AR8316]
[    1.817532] eth0: Atheros AG71xx at 0xb9000000, irq 4, mode: sgmii
[    1.826097] NET: Registered protocol family 10
[    1.835422] Segment Routing with IPv6
[    1.839308] NET: Registered protocol family 17
[    1.843952] 8021q: 802.1Q VLAN Support v1.8
[    1.852116] jffs2: Too few erase blocks (1)
[    1.856502] List of all partitions:
[    1.860113] 1f00             256 mtdblock0
[    1.860116]  (driver?)
[    1.866890] 1f01              64 mtdblock1
[    1.866894]  (driver?)
[    1.873644] 1f02              64 mtdblock2
[    1.873647]  (driver?)
[    1.880409] 1f03              64 mtdblock3
[    1.880412]  (driver?)
[    1.887166] 1f04              64 mtdblock4
[    1.887169]  (driver?)
[    1.893912] 1f05           15680 mtdblock5
[    1.893915]  (driver?)
[    1.900667] 1f06              64 mtdblock6
[    1.900670]  (driver?)
[    1.907419] No filesystem could mount root, tried:
[    1.907422]  squashfs
[    1.912454]  jffs2
[    1.914804]
[    1.918418] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(31,6)
[    1.927673] Rebooting in 1 seconds..

Thank you very much!

If i set

bootargs = "console=ttyS0,115200 root=31:05"

in dts, I got

 0.412206] Creating 7 MTD partitions on "spi0.0":
[    0.417197] 0x000000000000-0x000000040000 : "u-boot"
[    0.423051] 0x000000040000-0x000000050000 : "u-boot-env"
[    0.429356] 0x000000050000-0x000000060000 : "devdata"
[    0.435325] 0x000000060000-0x000000070000 : "devconf"
[    0.441229] 0x000000070000-0x000000080000 : "misc"
[    0.446924] 0x000000080000-0x000000fd0000 : "firmware"
[    0.452907] 0x000000fd0000-0x000000fe0000 : "art"
[    0.459516] libphy: Fixed MDIO Bus: probed
[    0.466180] ag71xx 19000000.eth: invalid MAC address, using random address
[    1.144830] libphy: ag71xx_mdio: probed
[    1.151855] switch0: Atheros AR8337 rev. 2 switch registered on mdio-bus.0
[    1.805927] ag71xx 19000000.eth: connected to PHY at mdio-bus.0:00 [uid=004dd036, driver=Atheros AR8216/AR8236/AR8316]
[    1.817572] eth0: Atheros AG71xx at 0xb9000000, irq 4, mode: sgmii
[    1.826129] NET: Registered protocol family 10
[    1.835440] Segment Routing with IPv6
[    1.839322] NET: Registered protocol family 17
[    1.843965] 8021q: 802.1Q VLAN Support v1.8
[    1.852549] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000000: 0x5ea3 instead
[    1.862393] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000008: 0x0042 instead
[    1.872229] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0000000c: 0xbff1 instead
[    1.882035] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000010: 0xca58 instead
[    1.891831] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000014: 0x3364 instead
[    1.901622] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000018: 0x1379 instead
[    1.911416] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0000001c: 0x6465 instead
[    1.921210] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000020: 0x2f64 instead
[    1.931003] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000024: 0x2f6d instead
[    1.940797] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000028: 0x626c instead
[    1.950585] jffs2: Further such events for this erase block will not be printed
[    2.022812] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00010000: 0xe04c instead
[    2.032621] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00010004: 0xd2a6 instead
[    2.042423] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00010008: 0x8eee instead
[    2.052214] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0001000c: 0x311a instead
[    2.062006] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00010010: 0x6a2c instead
[    2.071799] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00010014: 0x1c48 instead
[    2.081592] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00010018: 0x6d1a instead
[    2.091386] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0001001c: 0x0952 instead
[    2.101179] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00010020: 0x240e instead
[    2.110972] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00010024: 0x8089 instead
[    2.120761] jffs2: Further such events for this erase block will not be printed
[    2.168588] jffs2: Old JFFS2 bitmask found at 0x00019c70
[    2.174075] jffs2: You cannot use older JFFS2 filesystems with newer kernels
[    2.205779] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00020000: 0x0409 instead
[    2.215584] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00020004: 0x14a0 instead
[    2.225374] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00020008: 0xc732 instead
[    2.235167] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0002000c: 0xfd1e instead
[    2.244961] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00020010: 0x557c instead
[    2.254753] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00020014: 0x5cd9 instead
[    2.264547] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00020018: 0x789d instead
[    2.274330] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0002001c: 0x55bb instead
[    2.284125] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00020020: 0xe1d0 instead
[    2.293918] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00020024: 0x1bcf instead
[    2.303707] jffs2: Further such events for this erase block will not be printed
[    2.340314] jffs2: Old JFFS2 bitmask found at 0x00025cbc
[    2.345819] jffs2: You cannot use older JFFS2 filesystems with newer kernels
[    2.393617] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00030000: 0x524d instead
[    2.403430] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00030004: 0xe7c0 instead
[    2.413220] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00030008: 0x0d53 instead
[    2.423014] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0003000c: 0x7db3 instead
[    2.432806] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00030010: 0x5fb9 instead
[    2.442599] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00030014: 0xbca3 instead
[    2.452392] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00030018: 0xbe46 instead
[    2.462187] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0003001c: 0x7a80 instead
[    2.471980] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00030020: 0x1267 instead
[    2.481773] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00030024: 0x09f8 instead
[    2.491562] jffs2: Further such events for this erase block will not be printed
[    2.503010] jffs2: Old JFFS2 bitmask found at 0x000304b4
[    2.508515] jffs2: You cannot use older JFFS2 filesystems with newer kernels
[    2.554453] random: fast init done
[    2.580100] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00040000: 0x6b2a instead
[    2.589906] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00040004: 0xa4cd instead
[    2.599705] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00040008: 0x6fcc instead
[    2.609497] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0004000c: 0xf600 instead
[    2.619291] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00040010: 0xd8df instead
[    2.629085] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00040014: 0x1945 instead
[    2.638877] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00040018: 0x9471 instead
[    2.648671] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0004001c: 0x37de instead
[    2.658465] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00040020: 0x0e4b instead
[    2.668257] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00040024: 0x4953 instead
[    2.678047] jffs2: Further such events for this erase block will not be printed
[    2.749898] jffs2: Old JFFS2 bitmask found at 0x0004fab0
[    2.755398] jffs2: You cannot use older JFFS2 filesystems with newer kernels
[    2.763037] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00050000: 0x7341 instead
[    2.772842] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00050004: 0x0999 instead
[    2.782632] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00050008: 0x0bdc instead
[    2.792425] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0005000c: 0x63ad instead
[    2.802219] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00050010: 0x1269 instead
[    2.812011] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00050014: 0xaed9 instead
[    2.821805] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00050018: 0x03d7 instead
[    2.836493] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0005001c: 0x48ee instead
[    2.846299] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00050020: 0xb1a4 instead
[    2.856095] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00050024: 0x6c7e instead
[    2.865884] jffs2: Further such events for this erase block will not be printed
[    2.938098] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00060000: 0x50e1 instead
[    2.947911] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00060004: 0xf139 instead
[    2.957702] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00060008: 0xb60a instead
[    2.967495] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0006000c: 0xa285 instead
[    2.977288] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00060010: 0x90f6 instead
[    2.987081] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00060014: 0xecc6 instead
[    2.996874] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00060018: 0x2726 instead
[    3.006668] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0006001c: 0x6639 instead
[    3.016462] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00060020: 0x3619 instead
[    3.026254] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00060024: 0x549c instead
[    3.036045] jffs2: Further such events for this erase block will not be printed
[    3.108259] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00070000: 0x1dc4 instead
[    3.118071] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00070004: 0xa645 instead
[    3.127861] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00070008: 0x1097 instead
[    3.137654] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0007000c: 0xe3e1 instead
[    3.147447] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00070010: 0x00c2 instead
[    3.157241] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00070014: 0x0281 instead
[    3.167034] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00070018: 0x9b4a instead
[    3.176827] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0007001c: 0xe920 instead
[    3.186621] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00070020: 0x8455 instead
[    3.196419] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00070024: 0xfa43 instead
[    3.206212] jffs2: Further such events for this erase block will not be printed
[    3.249970] jffs2: Old JFFS2 bitmask found at 0x0007894c
[    3.255475] jffs2: You cannot use older JFFS2 filesystems with newer kernels
[    3.291228] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00080000: 0xa294 instead
[    3.301033] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00080004: 0x7afa instead
[    3.310823] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00080008: 0x7595 instead
[    3.320617] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0008000c: 0xcd96 instead
[    3.330411] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00080010: 0x741a instead
[    3.340203] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00080014: 0x006b instead
[    3.354561] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00080018: 0x4909 instead
[    3.364350] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0008001c: 0x726a instead
[    3.374473] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00080020: 0x5887 instead
[    3.384259] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00080024: 0xa804 instead
[    3.394053] jffs2: Further such events for this erase block will not be printed
[    3.466277] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00090000: 0x91df instead
[    3.476085] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00090004: 0xbfa0 instead
[    3.485876] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00090008: 0x6f39 instead
[    3.495669] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0009000c: 0x2408 instead
[    3.505463] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00090010: 0xbd7c instead
[    3.515255] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00090014: 0x871b instead
[    3.525049] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00090018: 0x0ca7 instead
[    3.534841] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0009001c: 0x4d04 instead
[    3.544635] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00090020: 0xd636 instead
[    3.554419] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00090024: 0x61de instead
[    3.564209] jffs2: Further such events for this erase block will not be printed
[    3.632216] jffs2: Old JFFS2 bitmask found at 0x0009efb8
[    3.637716] jffs2: You cannot use older JFFS2 filesystems with newer kernels
[    3.649203] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000a0000: 0x866e instead
[    3.659012] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000a0004: 0x62ca instead
[    3.668803] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000a0008: 0x9026 instead
[    3.678596] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000a000c: 0x964e instead
[    3.688389] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000a0010: 0x17ac instead
[    3.698183] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000a0014: 0x1e32 instead
[    3.707976] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000a0018: 0xe5ce instead
[    3.717769] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000a001c: 0x4e51 instead
[    3.727562] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000a0020: 0xa1e4 instead
[    3.737355] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000a0024: 0xd72a instead
[    3.747144] jffs2: Further such events for this erase block will not be printed
[    3.819335] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000b0000: 0x18a0 instead
[    3.829145] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000b0004: 0x029c instead
[    3.838938] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000b0008: 0xc3b1 instead
[    3.848729] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000b000c: 0xb8c5 instead
[    3.858521] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000b0010: 0x8a20 instead
[    3.868314] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000b0014: 0x3ad9 instead
[    3.878131] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000b0018: 0x7646 instead
[    3.892804] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000b001c: 0xd78c instead
[    3.902605] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000b0020: 0x5a39 instead
[    3.912398] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000b0024: 0x1415 instead
[    3.922188] jffs2: Further such events for this erase block will not be printed
[    3.994407] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000c0000: 0x09bf instead
[    4.004214] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000c0004: 0x97b2 instead
[    4.014005] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000c0008: 0xe543 instead
[    4.023798] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000c000c: 0x414c instead
[    4.033591] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000c0010: 0xfe7b instead
[    4.043386] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000c0014: 0xe5ff instead
[    4.053177] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000c0018: 0x106e instead
[    4.062970] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000c001c: 0xac34 instead
[    4.072764] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000c0020: 0x5d61 instead
[    4.082557] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000c0024: 0x1892 instead
[    4.092347] jffs2: Further such events for this erase block will not be printed
[    4.164563] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000d0000: 0x58f9 instead
[    4.174354] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000d0004: 0xcb6c instead
[    4.184151] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000d0008: 0x49a3 instead
[    4.193948] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000d000c: 0x061c instead
[    4.203743] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000d0010: 0xcf74 instead
[    4.213535] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000d0014: 0x1b82 instead
[    4.223328] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000d0018: 0x9624 instead
[    4.233122] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000d001c: 0xae99 instead
[    4.242915] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000d0020: 0xcd73 instead
[    4.252708] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000d0024: 0xfa63 instead
[    4.262497] jffs2: Further such events for this erase block will not be printed
[    4.334721] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000e0000: 0xd257 instead
[    4.344532] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000e0004: 0xc2da instead
[    4.354313] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000e0008: 0x71f5 instead
[    4.364108] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000e000c: 0xe9b7 instead
[    4.373902] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000e0010: 0xdffb instead
[    4.383695] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000e0014: 0x1cac instead
[    4.393488] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000e0018: 0x22b9 instead
[    4.408167] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000e001c: 0x78cb instead
[    4.417970] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000e0020: 0xc7a9 instead
[    4.427760] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000e0024: 0x79f1 instead
[    4.437549] jffs2: Further such events for this erase block will not be printed
[    4.509767] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000f0000: 0xea52 instead
[    4.519577] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000f0004: 0xfa6c instead
[    4.529375] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000f0008: 0x0081 instead
[    4.539167] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000f000c: 0x9c1a instead
[    4.548960] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000f0010: 0xf3f4 instead
[    4.558755] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000f0014: 0x4c6d instead
[    4.568548] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000f0018: 0x29e6 instead
[    4.578341] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000f001c: 0x529d instead
[    4.588134] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000f0020: 0xb4e9 instead
[    4.597927] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000f0024: 0x2b76 instead
[    4.607716] jffs2: Further such events for this erase block will not be printed
[    4.679927] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00100000: 0x06d9 instead
[    4.689737] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00100004: 0x66f8 instead
[    4.699535] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00100008: 0x184a instead
[    4.709328] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0010000c: 0xf6d9 instead
[    4.719121] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00100010: 0x52fe instead
[    4.728914] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00100014: 0x2c0a instead
[    4.738707] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00100018: 0x5e5d instead
[    4.748501] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0010001c: 0xe540 instead
[    4.758294] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00100020: 0x5264 instead
[    4.768087] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00100024: 0x91f9 instead
[    4.777875] jffs2: Further such events for this erase block will not be printed
[    4.850076] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00110000: 0xec67 instead
[    4.859886] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00110004: 0x9b47 instead
[    4.869676] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00110008: 0x2e69 instead
[    4.879469] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0011000c: 0x459b instead
[    4.889262] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00110010: 0xe896 instead
[    4.899056] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00110014: 0x8889 instead
[    4.908849] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00110018: 0x87a8 instead
[    4.923524] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0011001c: 0x75f5 instead
[    4.933328] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00110020: 0x717a instead
[    4.943121] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00110024: 0x189f instead
[    4.952910] jffs2: Further such events for this erase block will not be printed
[    5.025129] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00120000: 0xb006 instead
[    5.034938] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00120004: 0xefb5 instead
[    5.044736] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00120008: 0xb6f8 instead
[    5.054529] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 

......
 

I saw other seama devices printing something like

[    0.679627] 0x000000070000-0x000000ff0000 : "firmware"
[    0.715565] 2 seama-fw partitions found on MTD device firmware
[    0.721501] 0x000000070040-0x0000001d0000 : "kernel"
[    0.727929] 0x0000001d0000-0x000000ff0000 : "rootfs"
[    0.734550] mtd: device 6 (rootfs) set to be root filesystem
[    0.740345] 1 squashfs-split partitions found on MTD device rootfs
when booting, but it doesn't appear, is this a problem?

Thanks in advance!

did you get an oem layout ( dmesg of whats really there )? your current vs initram log shows a "misc" partition which throws root out by 100000 ( 70000 vs 80000 ).....

if the initramfs sees your firmware@70000 then maybe try a dts with that.... ( comment out or remove misc )???

The initram bootlog is based on the old build which I set the layout incorrectly, I already fixed it. The bootlog of the original dlink firmware shows

[    0.620000] 0x000000000000-0x000000040000 : "u-boot"
[    0.620000] 0x000000040000-0x000000050000 : "u-boot-env"
[    0.630000] 0x000000050000-0x000000060000 : "devdata"
[    0.640000] 0x000000060000-0x000000070000 : "devconf"
[    0.640000] 0x000000070000-0x000000080000 : "misc"
[    0.650000] 0x000000080000-0x000000fd0000 : "upgrade"
[    0.660000] 0x0000001b0060-0x000000ad0060 : "rootfs"
[    0.660000] 0x000000fd0000-0x000000fe0000 : "art"
[    0.670000] mtd: partition "rootfs" set to be root filesystem
[    0.670000] 0x000000000000-0x000001000000 : "flash"
1 Like

so if I analyse the problem correctly, the problem I am facing now is the kernel is unable to create rootfs and kernel partition when booting, because of the missing of

2 seama-fw partitions found on MTD device firmware

when booting (other seama devices shows it) , am i correct?

Thanks again

i'd say "detect"

see if you can enter the bootarg command i wrote above in uboot and if it sticks, and if the kernel prints it..... then it will be fast to try some variations.... rather than the dts

if you try a few more things and it still aint happy, yes... next stop is the seama logic...... i cant find the c1 config anywhere.... dunno what your basing your stuff on.....

Thanks!

see if you can enter the bootarg command i wrote above in uboot and if it sticks, and if the kernel prints it..... then it will be fast to try some variations.... rather than the dts

I worte

setenv bootargs=console=ttyS0,960000 root=31:05

and it does show in printenv, but the kernel doesn't print it when booting.

I will try to enable ATAG traditional + enable mangle [ combine ] , I will let you know the result in a second.

hey where did 06/05 come from.... this says 31:02....

What about something like

bootargs-append = " mtdparts= root=31:06";

in dts. This will drop all u-boot params regarding mtd.

But this

setenv bootargs 'console=ttyS0,115200 root=31:02 rootfstype=jffs2 init=/sbin/init mtdparts=ath-nor0:256k(u-boot),64k(u-boot-env),14528k(rootfs),1408k(uImage),64k(mib0),64k(ART)'

Oops, sorry for my mistake, but it still doesn't show in the kernel bootlong