Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 1 https://pastebin.com/gyzLGKEs first successful mips32 compile
- 2 https://pastebin.com/nHzYRDps copied over missing libc files/tidied up (missed copying c++ over in this one)
- 3 https://pastebin.com/AzFHxnPD libqmi (glib 2.52 and util-linux 2.29 upgraded as well)
- 4 https://pastebin.com/Cyh8eivj minidlna update
- 5 https://pastebin.com/L9w8arvC gudev added
- 6 https://pastebin.com/h2xFLf2V php7 updates etc
- 7 https://pastebin.com/bHPpZrRx updated ar71xx for 4.9 (also did it for ar934x platform ["wasp"--mips74k])
- 8 https://pastebin.com/zsdTjjKQ status update on the firmware (not really exclusive to the AC55U, just packing it using mkimage vs lzma-loader etc).
- 9 https://pastebin.com/qNMiWkD9 failure of AC55U due to sensitive MTD flash partitioning (likely due to shoe-horning of AR7134 devicetree file for QCA9558)
- 10 https://pastebin.com/1BPUmMzx just an update to glibc 2.29 and using the latest 4.9 committed by brainslayer to ensure we're all on teh same page.
- 11 https://pastebin.com/9jrT1gkP raw bootlog from the r6700v2/r6800/r6900v2. included so people can observe how the u-boot and "stage code seem to be "together"; that is, the u-boot seems to be customised to deal with the sercomm utilities (no mtdparts, but there is an sc_nand).
- 12 https://pastebin.com/TJHeu9VC discussing the sercomm boot tools and such.
- 13 https://pastebin.com/uadhgmvS just showing the boot log (without initramfs enabled).
- 14 https://pastebin.com/jNmY4y9D was just sharing the observation about initrd that wasn't really useful to the problem
- 15 https://pastebin.com/EUeDuLHZ briefly discussing the boot and problem with the dtb (device tree binary) not being "seen" by the kernel
- 16 https://pastebin.com/K7yuBYfv just a nothingness update (talking about clocksource driver being picked up when disabling the devicetree node calls in mt7621.c)
- 17 https://pastebin.com/LAewauYh discussing the devicetree hack created by The oh-so-clever Crispy One John Crispin (blogic), and how it must be used instead of the "appended_dtb" kernel configuration options. also pointed out the resulting file system driver issue
- good day.
- below i present a nearly-functional bootlog of an MT7621 (Netgear R6700v2/R6800/R6900v2) SoC with 256 MB ram and a 128MB Macronix NAND flash. the remaining issue seems to be, and i suspected this wouldn't be trivial as i started out, how to initialise the kernel.
- i have a statically-linked bash executable in the /bin/ directory, as well as an 'init' (presumably created by dd-wrt) in the /sbin directory. i will have to see what options are available to me in order to debug the panic, as the files are there, but i am being asked to pass an argument to init=.
- will do more digging. i believe everything else looks good though. keen observers may note the lack of initialisation of the pci/usb busses, but i am not worried about that at this time. my focus at this time is fixing the init issue, and if i can get past that, i *hope* (key word) that whatever has not been "seen" will get picked up.
- ugh, seems this init problem may be annoying as hell. have little room for an initrd and i can't see it being helpful here, in light of mtd being able to create partitions that i can read/write to.
- #mipslinux#mipslinux#mipslinux#mipslinux#mipslinux#mipslinux#mipslinux#mipslinux#mipslinux#mipslinux#mipslinux
- Starting kernel ...
- Linux version 4.9.44 (Gagan@GagansMacPro) (gcc version 7.2.0 (GCC) ) #277 SMP Wed Aug 30 11:26:20 MDT 2017
- SoC Type: MediaTek MT7621 ver:1 eco:3
- bootconsole [early0] enabled
- CPU0 revision is: 0001992f (MIPS 1004Kc)
- MIPS: machine is Mediatek MT7621
- Determined physical RAM map:
- memory: 10000000 @ 00000000 (usable)
- VPE topology {2,2} total 4
- Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
- Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
- MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
- Zone ranges:
- Normal [mem 0x0000000000000000-0x000000000fffffff]
- HighMem empty
- Movable zone start for each node
- Early memory node ranges
- node 0: [mem 0x0000000000000000-0x000000000fffffff]
- Initmem setup node 0 [mem 0x0000000000000000-0x000000000fffffff]
- percpu: Embedded 13 pages/cpu @817f6000 s23376 r8192 d21680 u53248
- Built 1 zonelists in Zone order, mobility grouping on. Total pages: 65024
- Kernel command line: console=ttyS0,57600 root=/dev/mtdblock3 rw rootfstype=squashfs rootdelay=5 init=/bin/bash
- log_buf_len individual max cpu contribution: 4096 bytes
- log_buf_len total cpu_extra contributions: 12288 bytes
- log_buf_len min size: 16384 bytes
- log_buf_len: 32768 bytes
- early log buf free: 14336(87%)
- PID hash table entries: 1024 (order: 0, 4096 bytes)
- Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
- Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
- Writing ErrCtl register=00000071
- Readback ErrCtl register=00000071
- Memory: 237152K/262144K available (4687K kernel code, 257K rwdata, 652K rodata, 280K init, 140K bss, 24992K reserved, 0K cma-reserved, 0K highmem)
- Hierarchical RCU implementation.
- Build-time adjustment of leaf fanout to 32.
- NR_IRQS:256
- clocksource: GIC: mask: 0xffffffffffffffff max_cycles: 0xcaf478abb4, max_idle_ns: 440795247997 ns
- clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 4343773742 ns
- sched_clock: 32 bits at 440MHz, resolution 2ns, wraps every 4880645118ns
- Calibrating delay loop... 586.13 BogoMIPS (lpj=2930688)
- pid_max: default: 4096 minimum: 301
- Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
- Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
- Performance counters: mips/1004K PMU enabled, 2 32-bit counters available to each CPU, irq 17
- Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
- Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
- MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
- CPU1 revision is: 0001992f (MIPS 1004Kc)
- Synchronize counters for CPU 1:
- done.
- Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
- Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
- MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
- CPU2 revision is: 0001992f (MIPS 1004Kc)
- Synchronize counters for CPU 2:
- done.
- Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
- Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
- MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
- CPU3 revision is: 0001992f (MIPS 1004Kc)
- Synchronize counters for CPU 3:
- done.
- Brought up 4 CPUs
- devtmpfs: initialized
- clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
- pinctrl core: initialized pinctrl subsystem
- NET: Registered protocol family 16
- Can't analyze schedule() prologue at 81011348
- mt7621_gpio 1e000600.gpio: registering 32 gpios
- mt7621_gpio 1e000600.gpio: registering 32 gpios
- mt7621_gpio 1e000600.gpio: registering 32 gpios
- vgaarb: loaded
- SCSI subsystem initialized
- clocksource: Switched to clocksource GIC
- NET: Registered protocol family 2
- TCP established hash table entries: 2048 (order: 1, 8192 bytes)
- TCP bind hash table entries: 2048 (order: 2, 16384 bytes)
- TCP: Hash tables configured (established 2048 bind 2048)
- UDP hash table entries: 128 (order: 0, 4096 bytes)
- UDP-Lite hash table entries: 128 (order: 0, 4096 bytes)
- NET: Registered protocol family 1
- 4 CPUs re-calibrate udelay(lpj = 2924544)
- workingset: timestamp_bits=30 max_order=16 bucket_order=0
- squashfs: version 4.0 (2009/01/31) Phillip Lougher
- jffs2: version 2.2. (NAND) (SUMMARY) (ZLIB) (LZMA) (RTIME) (CMODE_PRIORITY) © 2001-2006 Red Hat, Inc.
- fuse init (API version 7.26)
- io scheduler noop registered
- io scheduler deadline registered (default)
- random: fast init done
- serial8250_init
- Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
- console [ttyS0] disabled
- 1e000c00.uartlite: ttyS0 at MMIO 0x1e000c00 (irq = 19, base_baud = 3125000) is a 16550A
- console [ttyS0] enabled
- console [ttyS0] enabled
- bootconsole [early0] disabled
- bootconsole [early0] disabled
- Ralink gpio driver initialized
- MediaTek Nand driver init, version v2.1 Fix AHB virt2phys error
- Allocate 16 byte aligned buffer: 815d96d0
- Enable NFI Clock
- # MTK NAND # : Use HW ECC
- Device found in MTK table, ID: c2f1, EXT_ID: 809502
- Support this Device in MTK table! c2f1
- [NAND]select ecc bit:4, sparesize :64 spare_per_sector=16
- nand: device found, Manufacturer ID: 0xc2, Chip ID: 0xf1
- nand: Macronix NAND 128MiB 3,3V 8-bit
- nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
- Scanning device for bad blocks
- Bad eraseblock 640 at 0x000005000000
- Bad eraseblock 641 at 0x000005020000
- Bad eraseblock 642 at 0x000005040000
- Bad eraseblock 643 at 0x000005060000
- Bad eraseblock 644 at 0x000005080000
- Bad eraseblock 645 at 0x0000050a0000
- Bad eraseblock 646 at 0x0000050c0000
- Bad eraseblock 647 at 0x0000050e0000
- Bad eraseblock 648 at 0x000005100000
- Bad eraseblock 649 at 0x000005120000
- Bad eraseblock 650 at 0x000005140000
- Bad eraseblock 651 at 0x000005160000
- Bad eraseblock 652 at 0x000005180000
- Bad eraseblock 653 at 0x0000051a0000
- Bad eraseblock 654 at 0x0000051c0000
- Bad eraseblock 655 at 0x0000051e0000
- Bad eraseblock 656 at 0x000005200000
- Bad eraseblock 657 at 0x000005220000
- Bad eraseblock 658 at 0x000005240000
- Bad eraseblock 659 at 0x000005260000
- Bad eraseblock 660 at 0x000005280000
- Bad eraseblock 661 at 0x0000052a0000
- Bad eraseblock 662 at 0x0000052c0000
- Bad eraseblock 663 at 0x0000052e0000
- 29 ofpart partitions found on MTD device MT7621-NAND
- Creating 29 MTD partitions on "MT7621-NAND":
- 0x000000000000-0x000000100000 : "boot"
- 0x000000100000-0x000000200000 : "part_map"
- 0x000000200000-0x000000600000 : "kernel"
- 0x000000600000-0x000002e00000 : "rootfs"
- mtd: partition "rootfs" set to be root filesystem
- magic 73717368 vs 73717368
- mtd: partition "ddwrt" created automatically, ofs=22C0000, len=B40000
- 0x0000022c0000-0x000002e00000 : "ddwrt"
- 0x000002e00000-0x000003000000 : "english_ui"
- 0x000003000000-0x000003200000 : "ml1"
- 0x000003200000-0x000003400000 : "ml2"
- 0x000003400000-0x000003600000 : "ml3"
- 0x000003600000-0x000003800000 : "ml4"
- 0x000003800000-0x000003a00000 : "ml5"
- 0x000003a00000-0x000003c00000 : "ml6"
- 0x000003c00000-0x000003e00000 : "ml7"
- 0x000003e00000-0x000004000000 : "ml8"
- 0x000004000000-0x000004200000 : "ml9"
- 0x000004200000-0x000004400000 : "ml10"
- 0x000004400000-0x000004600000 : "ml11"
- 0x000004600000-0x000004800000 : "factory"
- 0x000004800000-0x000004a00000 : "sc_private"
- 0x000004a00000-0x000004c00000 : "pop"
- 0x000004c00000-0x000004e00000 : "traffic meter"
- 0x000004e00000-0x000005000000 : "sc_pid"
- 0x000005000000-0x000005200000 : "sc_nvram"
- 0x000005200000-0x000005400000 : "ralink_nvram"
- 0x000005400000-0x000005600000 : "reserved1"
- 0x000005600000-0x000005800000 : "reserved2"
- 0x000005800000-0x000005a00000 : "reserved3"
- 0x000005a00000-0x000005c00000 : "reserved4"
- 0x000005c00000-0x000005e00000 : "reserved5"
- 0x000005e00000-0x000007f80000 : "reserved6"
- [mtk_nand] probe successfully!
- Signature matched and data read!
- load_fact_bbt success 1023
- libphy: Fixed MDIO Bus: probed
- tun: Universal TUN/TAP device driver, 1.6
- tun: (C) 1999-2004 Max Krasnyansky <[email protected]>
- netif_napi_add() called with weight 128 on device eth%d
- mtk_soc_eth 1e100000.ethernet: generated random MAC address d6:d7:f3:ac:70:a7
- libphy: mdio: probed
- mtk_soc_eth 1e100000.ethernet: loaded mt7530 driver
- mtk_soc_eth 1e100000.ethernet eth0: mediatek frame engine at 0xbe100000, irq 22
- u32 classifier
- Performance counters on
- Actions configured
- Netfilter messages via NETLINK v0.30.
- nf_conntrack version 0.5.0 (4096 buckets, 16384 max)
- ctnetlink v0.93: registering with nfnetlink.
- ipip: IPv4 and MPLS over IPv4 tunneling driver
- ip_tables: (C) 2000-2006 Netfilter Core Team
- ipt_CLUSTERIP: ClusterIP Version 0.8 loaded successfully
- NET: Registered protocol family 17
- Bridge firewalling registered
- 8021q: 802.1Q VLAN Support v1.8
- Waiting 5 sec before mounting root device...
- mtk_soc_eth 1e100000.ethernet eth0: port 3 link up
- VFS: Mounted root (squashfs filesystem) readonly on device 31:3.
- devtmpfs: mounted
- Freeing unused kernel memory: 280K
- This architecture does not have kernel memory protection.
- Kernel panic - not syncing: No init found. Try passing init= option to kernel. See Linux Documentation/init.txt for guidance.
- Rebooting in 1 seconds..
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement