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..