We're back again.
bldr> j 80020000
Jump to 80020000
UART ACTIVE!
[ 0.000000] Linux version 5.15.104 (ilyas@gsnoff-probook) (mips-openwrt-linux-musl-gcc (OpenWrt GCC 12.2.0 r22403-711755c195) 12.2.0, GNU ld (GNU Binutils) 2.40.0) #0 SMP Tue May 23 22:03:13 2023
[ 0.000000] ISPRAM0: PA=1c000000,Size=00010000,enabled
[ 0.000000] EcoNet SoC: RAM: DDR3 512 MB
[ 0.000000] CPU/SYS frequency: 900/225 MHz
[ 0.000000] printk: bootconsole [early0] enabled
[ 0.000000] CPU0 revision is: 00019558 (MIPS 34Kc)
[ 0.000000] Initrd not found or empty - disabling initrd
[ 0.000000] Detected 1 available secondary CPU(s)
[ 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-0x000000001bffffff]
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000000000000000-0x000000001bffffff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x000000001bffffff]
[ 0.000000] percpu: Embedded 11 pages/cpu s12752 r8192 d24112 u45056
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 113680
[ 0.000000] Kernel command line: console=ttyS0,115200
[ 0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes, linear)
[ 0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes, linear)
[ 0.000000] Writing ErrCtl register=00067c70
[ 0.000000] Readback ErrCtl register=00067c70
[ 0.000000] NMI base is 8000c200
[ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[ 0.000000] Memory: 439520K/458752K available (5693K kernel code, 556K rwdata, 1072K rodata, 2908K init, 355K bss, 19232K reserved, 0K cma-reserved)
[ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[ 0.000000] rcu: Hierarchical RCU implementation.
[ 0.000000] Tracing variant of Tasks RCU enabled.
[ 0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies.
[ 0.000000] NR_IRQS: 41
[ 0.000000] hpt: using 200.000 MHz high precision timer
[ 0.000000] ------------[ cut here ]------------
[ 0.000000] WARNING: CPU: 0 PID: 0 at kernel/irq/manage.c:1785 __setup_irq+0x7c4/0x834
[ 0.000000] Modules linked in:
[ 0.000000] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 5.15.104 #0
[ 0.000000] Stack : 87fd0000 8009e2d8 00000000 00000004 00000000 00000000 806bfd64 80a20000
[ 0.000000] 806d0000 80639f10 806c8fc8 806c8ae3 00000000 11000300 806bfd10 00000000
[ 0.000000] 00000000 00000000 80639f10 806bfbb0 ffffefff 00000000 00000000 ffffffea
[ 0.000000] 00000026 806bfbbc 00000026 806ce950 80639f10 00000000 00000000 800a3518
[ 0.000000] 00000009 806c446c 806c4440 87fd931c 00000018 00000030 8801e81c 8801e81c
[ 0.000000] ...
[ 0.000000] Call Trace:
[ 0.000000] [<800288c8>] show_stack+0x28/0xf0
[ 0.000000] [<803335f8>] dump_stack_lvl+0x60/0x80
[ 0.000000] [<80049744>] __warn+0x9c/0x124
[ 0.000000] [<80049828>] warn_slowpath_fmt+0x5c/0xac
[ 0.000000] [<800a3518>] __setup_irq+0x7c4/0x834
[ 0.000000] [<800a3aa0>] setup_percpu_irq+0x60/0xc0
[ 0.000000] [<80021660>] r4k_clockevent_init+0x120/0x184
[ 0.000000] [<8074d8e4>] time_init+0x18/0x88
[ 0.000000] [<80749ca4>] start_kernel+0x538/0x764
[ 0.000000]
[ 0.000000] ---[ end trace a648712241af2e81 ]---
[ 0.000000] clocksource: hpt: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 9556302233 ns
[ 0.000002] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns
[ 0.007911] printk: console [ttyS0] enabled
[ 0.007911] printk: console [ttyS0] enabled
[ 0.016146] printk: bootconsole [early0] disabled
[ 0.016146] printk: bootconsole [early0] disabled
[ 0.025542] Calibrating delay loop... 599.04 BogoMIPS (lpj=1198080)
[ 0.059641] pid_max: default: 32768 minimum: 301
[ 0.064471] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.071656] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.082478] rcu: Hierarchical SRCU implementation.
[ 0.087606] dyndbg: Ignore empty _ddebug table in a CONFIG_DYNAMIC_DEBUG_CORE build
[ 0.095572] smp: Bringing up secondary CPUs ...
[ 0.100933] ISPRAM0: PA=1c000000,Size=00010000,enabled
[ 0.100978] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
[ 0.100988] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
[ 0.101091] CPU1 revision is: 00019558 (MIPS 34Kc)
[ 0.132171] Synchronize counters for CPU 1: done.
[ 0.161248] smp: Brought up 1 node, 2 CPUs
[ 0.166783] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[ 0.176426] futex hash table entries: 512 (order: 2, 16384 bytes, linear)
[ 0.184346] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[ 0.571844] PCI host bridge to bus 0000:00
[ 0.575900] pci_bus 0000:00: root bus resource [mem 0x20000000-0x2fffffff]
[ 0.582665] pci_bus 0000:00: root bus resource [io 0x1f600000-0x1f60ffff]
[ 0.589525] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[ 0.597610] pci 0000:00:00.0: [14c3:0810] type 01 class 0x060400
[ 0.604812] pci 0000:00:01.0: [14c3:0811] type 01 class 0x060400
[ 0.611894] pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[ 0.619870] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[ 0.628370] pci 0000:01:00.0: [14c3:7603] type 00 class 0x028000
[ 0.634396] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x000fffff]
[ 0.641357] pci 0000:01:00.0: PME# supported from D0 D3hot D3cold
[ 0.647739] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[ 0.654839] pci 0000:02:00.0: [14c3:7662] type 00 class 0x028000
[ 0.660900] pci 0000:02:00.0: reg 0x10: [mem 0x00000000-0x000fffff 64bit]
[ 0.667824] pci 0000:02:00.0: reg 0x30: [mem 0x00000000-0x0000ffff pref]
[ 0.674928] pci 0000:02:00.0: PME# supported from D0 D3hot D3cold
[ 0.681320] pci_bus 0000:02: busn_res: [bus 02-ff] end is updated to 02
[ 0.687867] pci_bus 0000:00: busn_res: [bus 00-ff] end is updated to 02
[ 0.694429] pci 0000:00:00.0: BAR 8: assigned [mem 0x20000000-0x200fffff]
[ 0.701183] pci 0000:00:01.0: BAR 8: assigned [mem 0x20100000-0x202fffff]
[ 0.707955] pci 0000:01:00.0: BAR 0: assigned [mem 0x20000000-0x200fffff]
[ 0.714739] pci 0000:00:00.0: PCI bridge to [bus 01]
[ 0.719712] pci 0000:00:00.0: bridge window [mem 0x20000000-0x200fffff]
[ 0.726512] pci 0000:02:00.0: BAR 0: assigned [mem 0x20100000-0x201fffff 64bit]
[ 0.733835] pci 0000:02:00.0: BAR 6: assigned [mem 0x20200000-0x2020ffff pref]
[ 0.740935] pci 0000:00:01.0: PCI bridge to [bus 02]
[ 0.745913] pci 0000:00:01.0: bridge window [mem 0x20100000-0x202fffff]
[ 0.752969] clocksource: Switched to clocksource hpt
[ 0.758789] NET: Registered PF_INET protocol family
[ 0.763877] IP idents hash table entries: 8192 (order: 4, 65536 bytes, linear)
[ 0.772146] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[ 0.780432] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[ 0.788133] TCP established hash table entries: 4096 (order: 2, 16384 bytes, linear)
[ 0.795905] TCP bind hash table entries: 4096 (order: 3, 32768 bytes, linear)
[ 0.803044] TCP: Hash tables configured (established 4096 bind 4096)
[ 0.809458] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[ 0.815923] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[ 0.823216] NET: Registered PF_UNIX/PF_LOCAL protocol family
[ 0.828927] PCI: CLS 0 bytes, default 32
[ 0.837849] workingset: timestamp_bits=14 max_order=17 bucket_order=3
[ 0.850633] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.856381] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[ 0.870885] tc3162_uart: UART driver for EN751x SoC, buffer size is 4096 bytes
[ 0.878615] ttyS0 at I/O 0xbfbf0003 (irq = 1, base_baud = 7200) is a TC3162
[ 0.886578] EcoNET SPI NAND driver init
[ 0.886667] Set SPI Clock to 50 Mhz
[ 0.886703] Using Flash ECC
[ 0.886718] Detected SPI NAND Flash: TC58CVG1S3H, Flash Size: 256 MB
[ 0.887096] nand: device found, Manufacturer ID: 0x98, Chip ID: 0xcb
[ 0.887116] nand: Toshiba TC58CVG1S3H
[ 0.887130] nand: 256 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[ 0.949871] BMT pool size: 163
[ 0.951698] BBT found, bad block count: 3
[ 0.951709] BBT bad block: 3
[ 0.951717] BBT bad block: 1536
[ 0.951726] BBT bad block: 1537
[ 0.951778] BMT & BBT init success
[ 2.779508] NET: Registered PF_INET6 protocol family
[ 2.781990] Segment Routing with IPv6
[ 2.782105] In-situ OAM (IOAM) with IPv6
[ 2.782218] NET: Registered PF_PACKET protocol family
[ 2.782343] 8021q: 802.1Q VLAN Support v1.8
[ 2.795121] Freeing unused kernel image (initmem) memory: 2908K
[ 2.795172] This architecture does not have kernel memory protection.
[ 2.795196] Run /init as init process
[ 3.263918] init: Console is alive
[ 3.290954] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[ 3.294854] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[ 3.296614] init: - preinit -
[ 3.522749] random: jshn: uninitialized urandom read (4 bytes read)
[ 3.543376] random: jshn: uninitialized urandom read (4 bytes read)
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
[ 5.704294] procd: - early -
[ 6.241202] procd: - ubus -
[ 6.251436] random: ubusd: uninitialized urandom read (4 bytes read)
[ 6.291969] random: ubusd: uninitialized urandom read (4 bytes read)
[ 6.292687] random: ubusd: uninitialized urandom read (4 bytes read)
[ 6.296913] procd: - init -
Please press Enter to activate this console.
[ 6.881103] kmodloader: loading kernel modules from /etc/modules.d/*
[ 7.038711] urngd: v1.0.2 started.
[ 7.183087] Loading modules backported from Linux version v6.1-rc8-0-g76dcd734eca2
[ 7.183184] Backport generated by backports.git v5.15.81-1-41-g02e352527db5
[ 7.275871] pci 0000:00:00.0: enabling device (0000 -> 0002)
[ 7.277225] mt7603e 0000:01:00.0: enabling device (0000 -> 0002)
[ 7.277599] mt7603e 0000:01:00.0: ASIC revision: 76030010
[ 7.279005] mt7603e 0000:01:00.0: Invalid MAC address, using random address 62:9f:b7:50:9a:5a
[ 7.314458] random: crng init done
[ 7.314513] random: 22 urandom warning(s) missed due to ratelimiting
[ 8.299162] mt7603e 0000:01:00.0: Firmware Version: ap_pcie
[ 8.299225] mt7603e 0000:01:00.0: Build Time: 20160107100755
[ 8.336976] mt7603e 0000:01:00.0: firmware init done
[ 8.519554] pci 0000:00:01.0: enabling device (0000 -> 0002)
[ 8.521002] mt76x2e 0000:02:00.0: enabling device (0000 -> 0002)
[ 8.521343] mt76x2e 0000:02:00.0: ASIC revision: 76120044
[ 9.160987] mt76x2e 0000:02:00.0: Invalid MAC address, using random address e6:12:47:26:da:8d
[ 9.171238] mt76x2e 0000:02:00.0: ROM patch build: 20141115060606a
[ 9.175330] mt76x2e 0000:02:00.0: Firmware Version: 0.0.00
[ 9.175379] mt76x2e 0000:02:00.0: Build: 1
[ 9.175393] mt76x2e 0000:02:00.0: Build Time: 201607111443____
[ 9.596962] mt76x2e 0000:02:00.0: Firmware failed to start
[ 9.597110] mt76x2e: probe of 0000:02:00.0 failed with error -145
[ 9.656096] PPP generic driver version 2.4.2
[ 9.657609] NET: Registered PF_PPPOX protocol family
[ 9.665361] kmodloader: done loading kernel modules from /etc/modules.d/*
BusyBox v1.36.0 (2023-04-02 15:04:14 UTC) built-in shell (ash)
_______ ________ __
| |.-----.-----.-----.| | | |.----.| |_
| - || _ | -__| || | | || _|| _|
|_______|| __|_____|__|__||________||__| |____|
|__| W I R E L E S S F R E E D O M
-----------------------------------------------------
OpenWrt SNAPSHOT, r22404+2-69d4060b66
-----------------------------------------------------
=== 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.
--------------------------------------------------
root@OpenWrt:/#
I'm working on this with my colleague Ilyas Gasanov and the most recent updates are right now in his github: https://github.com/gsnoff/openwrt-tc3262/tree/feature-tc3262-support
Current status:
- Serial port works (clearly)
- PCI apparently works
- SPI NAND - seems working but we have not yet fed it the partition table
- mt7603e seems to work - was able to scan APs
- mt76x2e not loading firmware: We have not yet tried feeding it the EEPROM so this is potentially a non-issue
Next steps:
- Get flash partitions working (just with kernel command line for now)
- Try to get wifi fully working (test with EEPROM)
- Create a tclinux.bin file and flash it to disk so we don't need to siphon the kernel through xmodem each time
- Investigate porting of ethernet driver