Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FS#35 - mynet-n750 factory images don't find root partition #5125

Closed
openwrt-bot opened this issue Jun 28, 2016 · 3 comments
Closed

FS#35 - mynet-n750 factory images don't find root partition #5125

openwrt-bot opened this issue Jun 28, 2016 · 3 comments
Labels

Comments

@openwrt-bot
Copy link

CRCinAU:

The LEDE Project factory images do not boot when flashed from either the web interface or the emergency recovery web site.

Boot logs as of r813:
verify_seama: data=0x81000000, size=3406568
SEAMA ==========================================
magic : 5ea3a417
meta size : 24 bytes
meta data : signature=wrgnd13_wd_av
image size : 0 bytes

SEAMA ==========================================
magic : 5ea3a417
meta size : 36 bytes
meta data : dev=/dev/mtdblock/1
meta data : type=firmware
meta data :
meta data :
image size : 3406464 bytes
checksum : 8969D9077B2CAAF8CE87548FC252A30A
digest : 8969D9077B2CAAF8CE87548FC252A30A
Selected !!!

(ENV) begin addr=0x9f070000,end=0x9ffeffff
Erase Flash from 0x9f070000 to 0x9ffeffff in Bank # 1
First 0x7 last 0xfe sector size 0x10000 254
Erased 248 sectors
write addr: 9f070000

Write runtime image into flash...OK,dest addr=0x9f070000
Upload file OK!

U-Boot 1.1.4 (Mar 26 2012 - 21:53:42)

SVN revision: 51
Target board: WRG-ND13

DRAM:
sri
Wasp 1.2
wasp_ddr_initial_config(255): (32bit) ddr2 init
128 MB
Top of RAM usable for U-Boot at: 88000000
Reserving 242k for U-Boot at: 87fc0000
Reserving 192k for malloc() at: 87f90000
Reserving 44 Bytes for Board Info at: 87f8ffd4
Reserving 36 Bytes for Global Data at: 87f8ffb0
Reserving 128k for boot params() at: 87f6ffb0
Stack Pointer at: 87f6ff98
Now running in RAM - U-Boot at: 87fc0000
id read 0x100000ff
flash size 16 MB, sector count = 256
Flash: 16 MB
pci_init_board: PCIe PLL not set for 40MHz refclk
In: serial
Out: serial
Err: serial
Net: ag934x_enet_initialize...
wasp reset mask:c03300
WASP ----> S17 PHY *
: cfg1 0x7 cfg2 0x7114
eth0: 00:90:a9:ad:67:21
athrs17_reg_init: complete
eth0 up
GIGA: athrs17_link_down all port...
eth0
Hit any key to stop autoboot: 0

Booting image at 9f070000 ...

Verifying Checksum ...
Uncompressing SEAMA linux.lzma ... OK
do_boot_linux entry = 80002000

Transferring control to Linux (at address 00000000) ...

Giving linux memsize in bytes, 134217728

Starting kernel ...

OpenWrt kernel loader for AR7XXX/AR9XXX
Copyright (C) 2011 Gabor Juhos juhosg@openwrt.org
Decompressing kernel... done!
Starting kernel at 80060000...

[ 0.000000] Linux version 4.4.14 (openwrt@openwrt.crc.id.au) (gcc version 5.3.0 (LEDE GCC 5.3.0 r418) ) #2 Tue Jun 28 14:07:32 UTC 2016
[ 0.000000] bootconsole [early0] enabled
[ 0.000000] CPU0 revision is: 0001974c (MIPS 74Kc)
[ 0.000000] SoC: Atheros AR9344 rev 2
[ 0.000000] Determined physical RAM map:
[ 0.000000] memory: 08000000 @ 00000000 (usable)
[ 0.000000] Initrd not found or empty - disabling initrd
[ 0.000000] No valid device tree found, continuing without
[ 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] 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] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 32512
[ 0.000000] Kernel command line: board=MYNET-N750 console=ttyS0,115200 mtdparts=spi0.0:256k(u-boot)ro,64k(u-boot-env)ro,64k(devdata)ro,64k(devconf)ro,15872k(firmware),64k(radiocfg)ro rootfstype=squashfs,jffs2 noinitrd
[ 0.000000] PID hash table entries: 512 (order: -1, 2048 bytes)
[ 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: 125008K/131072K available (3058K kernel code, 162K rwdata, 768K rodata, 292K init, 205K bss, 6064K 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] Clocks: CPU:560.000MHz, DDR:480.000MHz, AHB:240.000MHz, Ref:40.000MHz
[ 0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 6825930166 ns
[ 0.000010] sched_clock: 32 bits at 280MHz, resolution 3ns, wraps every 7669584382ns
[ 0.008295] Calibrating delay loop... 278.93 BogoMIPS (lpj=1394688)
[ 0.081138] pid_max: default: 32768 minimum: 301
[ 0.086170] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.093222] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.103130] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.114813] NET: Registered protocol family 16
[ 0.120895] MIPS: machine is WD My Net N750
[ 0.152462] registering PCI controller with io_map_base unset
[ 0.401712] PCI host bridge to bus 0000:00
[ 0.406082] pci_bus 0000:00: root bus resource [mem 0x10000000-0x13ffffff]
[ 0.413443] pci_bus 0000:00: root bus resource [io 0x0000]
[ 0.419372] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
[ 0.426607] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[ 0.435105] pci 0000:00:00.0: invalid calibration data
[ 0.441018] pci 0000:00:00.0: BAR 0: assigned [mem 0x10000000-0x1001ffff 64bit]
[ 0.448817] pci 0000:00:00.0: BAR 6: assigned [mem 0x10020000-0x1002ffff pref]
[ 0.456533] pci 0000:00:00.0: using irq 40 for pin 1
[ 0.462678] clocksource: Switched to clocksource MIPS
[ 0.469411] NET: Registered protocol family 2
[ 0.474938] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.482368] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.489178] TCP: Hash tables configured (established 1024 bind 1024)
[ 0.496027] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.502253] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.509216] NET: Registered protocol family 1
[ 0.514876] futex hash table entries: 256 (order: -1, 3072 bytes)
[ 0.538034] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.544301] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[ 0.557084] io scheduler noop registered
[ 0.561270] io scheduler deadline registered (default)
[ 0.567034] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[ 0.576566] console [ttyS0] disabled
[ 0.600439] serial8250.0: ttyS0 at MMIO 0x18020000 (irq = 11, base_baud = 2500000) is a 16550A
[ 0.609633] console [ttyS0] enabled
[ 0.609633] console [ttyS0] enabled
[ 0.617055] bootconsole [early0] disabled
[ 0.617055] bootconsole [early0] disabled
[ 0.630332] m25p80 spi0.0: found mx25l12805d, expected m25p80
[ 0.636239] m25p80 spi0.0: mx25l12805d (16384 Kbytes)
[ 0.641394] 6 cmdlinepart partitions found on MTD device spi0.0
[ 0.647415] Creating 6 MTD partitions on "spi0.0":
[ 0.652285] 0x000000000000-0x000000040000 : "u-boot"
[ 0.659357] 0x000000040000-0x000000050000 : "u-boot-env"
[ 0.666314] 0x000000050000-0x000000060000 : "devdata"
[ 0.673008] 0x000000060000-0x000000070000 : "devconf"
[ 0.679646] 0x000000070000-0x000000ff0000 : "firmware"
[ 0.719345] 0x000000ff0000-0x000001000000 : "radiocfg"
[ 1.732792] switch0: Atheros AR8327 rev. 2 switch registered on ag71xx-mdio.0
[ 1.799647] libphy: ag71xx_mdio: probed
[ 3.391236] ag71xx ag71xx.0: connected to PHY at ag71xx-mdio.0:00 [uid=004dd033, driver=Atheros AR8216/AR8236/AR8316]
[ 3.402671] eth0: Atheros AG71xx at 0xb9000000, irq 4, mode:RGMII
[ 3.411028] NET: Registered protocol family 10
[ 3.419183] NET: Registered protocol family 17
[ 3.423820] bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this.
[ 3.436672] Bridge firewalling registered
[ 3.440862] 8021q: 802.1Q VLAN Support v1.8
[ 3.447760] VFS: Cannot open root device "(null)" or unknown-block(0,0): error -6
[ 3.455394] Please append a correct "root=" boot option; here are the available partitions:
[ 3.463882] 1f00 256 mtdblock0 (driver?)
[ 3.469016] 1f01 64 mtdblock1 (driver?)
[ 3.474154] 1f02 64 mtdblock2 (driver?)
[ 3.479284] 1f03 64 mtdblock3 (driver?)
[ 3.484424] 1f04 15872 mtdblock4 (driver?)
[ 3.489554] 1f05 64 mtdblock5 (driver?)
[ 3.494692] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[ 3.503948] Rebooting in 1 seconds..

The missing magic line seems to be:
[ 0.715565] 2 seama-fw partitions found on MTD device firmware

I CAN install openwrt-15.05.1-ar71xx-generic-mynet-n750-squashfs-factory.bin, then sysupgrade to r813 sysupgrade image without a problem.

I built r813 with a test patch from jow: http://openwrt.crc.id.au/r813/EXTRA_PATCHES/00-try-to-fix-factory-images.patch

This did not fix the factory images. I tested as far back as r555 - which also did not boot correctly when flashed via the emergency httpsvr in uboot.

@openwrt-bot
Copy link
Author

CRCinAU:

As a comparison, this is the mtd layout for a working r813 installed via sysupgrade:

[ 0.641377] 6 cmdlinepart partitions found on MTD device spi0.0
[ 0.647398] Creating 6 MTD partitions on "spi0.0":
[ 0.652268] 0x000000000000-0x000000040000 : "u-boot"
[ 0.659339] 0x000000040000-0x000000050000 : "u-boot-env"
[ 0.666300] 0x000000050000-0x000000060000 : "devdata"
[ 0.672994] 0x000000060000-0x000000070000 : "devconf"
[ 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
[ 0.746668] 0x0000003b0000-0x000000ff0000 : "rootfs_data"
[ 0.753793] 0x000000ff0000-0x000001000000 : "radiocfg"

EDIT: Nightly images to check are available at: http://openwrt.crc.id.au/

@openwrt-bot
Copy link
Author

CRCinAU:

Just to update the record, I pinged yousong regarding this as suggested by jow - got the following reply:

Probably because recently I submitted a patch to use mtdsplit to
auto-split rootfs from firmware partition for HiWiFi HC6361. I will
see if I can find the cause of issue in the case of mynet-n750 ;)

@openwrt-bot
Copy link
Author

john:

can you please test if this still happens with yousongs patch which i applied to my staging tree ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant