1

(64 odpowiedzi, napisanych Oprogramowanie / Software)

Ostatnia dzialajaca wersja u-boot, lacznie z binarka :
https://github.com/bizongod/u-boot_wdr7500v6

U-boot mocno nieoptymalny, ale dziala. Zajmuje pierwsze 192kB,
wtedy 64kB env, ostatnie 64kB flasha to art, a pomiedzy system.

2

(64 odpowiedzi, napisanych Oprogramowanie / Software)

No i WDR7500 v6 ma dzialajace LEDE :

https://i.imgur.com/539GngD.png
https://i.imgur.com/SucQtKY.png

Przygotowane konfiguracje pod oryginalny flash 8MB i nowy 16MB.

Teraz tylko patch przygotowac.

Na przyszlosc zostaly ewentualnie sterowniki switcha pod Linux'a.

3

(64 odpowiedzi, napisanych Oprogramowanie / Software)

GPIO dziala smile

Zostalo radio.
Co ciekawe, art-y sa na offsetach 0x1000 i 0x2000 a nie standardowo 0x5000..

4

(37 odpowiedzi, napisanych Oprogramowanie / Software)

No chyba ze bootloader wgrasz nowy, wtedy da sie.

Szczerze polecam programator flash SPI + lutownica.

5

(64 odpowiedzi, napisanych Oprogramowanie / Software)

Ethernet tez zaczal dzialac smile

[    0.000000] Linux version 4.4.92 (bizongod@bizonowo) (gcc version 5.5.0 (LEDE GCC 5.5.0 r5103-f6c4a9c) ) #0 Tue Oct 17 17:43:06 2017
[    0.000000] MyLoader: sysp=ead62f98, boardp=6d5d0d18, parts=8fe87642
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 00019750 (MIPS 74Kc)
[    0.000000] SoC: Qualcomm Atheros QCA956X ver 1 rev 0
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 04000000 @ 00000000 (usable)
[    0.000000] User-defined physical RAM map:
[    0.000000]  memory: 04000000 @ 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-0x0000000003ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x0000000003ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000003ffffff]
[    0.000000] On node 0 totalpages: 16384
[    0.000000] free_area_init_node: node 0, pgdat 804123d0, node_mem_map 81000000
[    0.000000]   Normal zone: 128 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 16384 pages, LIFO batch:3
[    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] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 16256
[    0.000000] Kernel command line: mem=64M console=ttyS0,120000 loglevel=7 root=/dev/ram0 rootfstype=ramfs board=SR3200
[    0.000000] PID hash table entries: 256 (order: -2, 1024 bytes)
[    0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Writing ErrCtl register=00000000
[    0.000000] Readback ErrCtl register=00000000
[    0.000000] Memory: 58244K/65536K available (2996K kernel code, 144K rwdata, 756K rodata, 2176K init, 200K bss, 7292K 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:775.000MHz, DDR:650.000MHz, AHB:258.333MHz, Ref:25.000MHz
[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 4932285024 ns
[    0.000006] sched_clock: 32 bits at 387MHz, resolution 2ns, wraps every 5541893118ns
[    0.008203] Calibrating delay loop... 385.84 BogoMIPS (lpj=1929216)
[    0.071016] pid_max: default: 32768 minimum: 301
[    0.075977] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.082951] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.092493] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.102902] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.109902] NET: Registered protocol family 16
[    0.115854] MIPS: machine is YunCore SR3200
[    0.120406] ar71xx: using random MAC address for eth0
[    0.342785] clocksource: Switched to clocksource MIPS
[    0.349215] NET: Registered protocol family 2
[    0.354450] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.361799] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.368545] TCP: Hash tables configured (established 1024 bind 1024)
[    0.375334] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.381497] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.388370] NET: Registered protocol family 1
[    0.393064] PCI: CLS 0 bytes, default 32
[    2.171224] Crashlog allocated RAM at address 0x3f00000
[    2.188385] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    2.194584] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    2.242451] io scheduler noop registered
[    2.246632] io scheduler deadline registered (default)
[    2.252281] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[    2.259347] console [ttyS0] disabled
[    2.283187] serial8250.0: ttyS0 at MMIO 0x18020000 (irq = 11, base_baud = 1562500) is a 16550A
[    2.292277] console [ttyS0] enabled
[    2.299290] bootconsole [early0] disabled
[    2.309935] m25p80 spi0.0: found w25q128, expected m25p80
[    2.315175] m25p80 spi0.0: w25q128 (16384 Kbytes)
[    2.335325] libphy: ag71xx_mdio: probed
[    2.924567] eth0: Atheros AG71xx at 0xb9000000, irq 4, mode:SGMII
[    2.931662] NET: Registered protocol family 10
[    2.938515] NET: Registered protocol family 17
[    2.942902] bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this.
[    2.955118] 8021q: 802.1Q VLAN Support v1.8
[    2.972827] Freeing unused kernel memory: 2176K
[    2.986918] init: Console is alive
[    2.990350] init: - watchdog -
[    3.005588] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    3.022588] usbcore: registered new interface driver usbfs
[    3.027982] usbcore: registered new interface driver hub
[    3.033178] usbcore: registered new device driver usb
[    3.042339] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    3.049996] ehci-platform: EHCI generic platform driver
[    3.057241] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    3.064290] ohci-platform: OHCI generic platform driver
[    3.069915] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    3.087239] init: - preinit -
[    3.217213] eth0: link up (1000Mbps/Full duplex)
[    6.334233] eth0: link down
[    6.346018] procd: - early -
[    6.348861] procd: - watchdog -
[    6.872892] procd: - watchdog -
[    6.876112] procd: - ubus -
[    6.884692] random: ubusd: uninitialized urandom read (4 bytes read, 11 bits of entropy available)
[    6.929008] random: ubusd: uninitialized urandom read (4 bytes read, 11 bits of entropy available)
[    6.938028] random: ubusd: uninitialized urandom read (4 bytes read, 11 bits of entropy available)
[    6.946712] random: ubusd: uninitialized urandom read (4 bytes read, 11 bits of entropy available)
[    6.955562] random: ubusd: uninitialized urandom read (4 bytes read, 11 bits of entropy available)
[    6.964223] random: ubusd: uninitialized urandom read (4 bytes read, 11 bits of entropy available)
[    6.972996] random: ubusd: uninitialized urandom read (4 bytes read, 11 bits of entropy available)
[    6.981731] random: ubusd: uninitialized urandom read (4 bytes read, 11 bits of entropy available)
[    6.990681] procd: - init -
[    7.124977] kmodloader: loading kernel modules from /etc/modules.d/*
[    7.134702] ip6_tables: (C) 2000-2006 Netfilter Core Team
[    7.150325] Loading modules backported from Linux version wt-2017-10-06-0-ga7a22fbbd1f0
[    7.158047] Backport generated by backports.git v4.14-rc2-1-6-gedfb595c
[    7.166789] ip_tables: (C) 2000-2006 Netfilter Core Team
[    7.178413] nf_conntrack version 0.5.0 (944 buckets, 3776 max)
[    7.221598] xt_time: kernel timezone is -0000
[    7.275931] PPP generic driver version 2.4.2
[    7.282066] NET: Registered protocol family 24
[    7.317392] kmodloader: done loading kernel modules from /etc/modules.d/*
[    8.415954] random: jshn: uninitialized urandom read (4 bytes read, 13 bits of entropy available)
[    8.469797] random: jshn: uninitialized urandom read (4 bytes read, 14 bits of entropy available)
[   13.832570] eth0: link up (1000Mbps/Full duplex)
[   13.865287] device eth0.1 entered promiscuous mode
[   13.869889] device eth0 entered promiscuous mode
[   13.893367] br-lan: port 1(eth0.1) entered forwarding state
[   13.898762] br-lan: port 1(eth0.1) entered forwarding state
[   15.892792] br-lan: port 1(eth0.1) entered forwarding state
root@LEDE:/# ifcofnig
/bin/ash: ifcofnig: not found
root@LEDE:/# ifconfig
br-lan    Link encap:Ethernet  HWaddr CA:F8:4A:B5:57:08
          inet addr:192.168.1.1  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fd68:c2aa:484f::1/60 Scope:Global
          inet6 addr: fe80::c8f8:4aff:feb5:5708/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:1780 (1.7 KiB)

eth0      Link encap:Ethernet  HWaddr CA:F8:4A:B5:57:08
          inet6 addr: fe80::c8f8:4aff:feb5:5708/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:57 errors:0 dropped:0 overruns:0 frame:0
          TX packets:54 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:10314 (10.0 KiB)  TX bytes:10280 (10.0 KiB)
          Interrupt:4

eth0.1    Link encap:Ethernet  HWaddr CA:F8:4A:B5:57:08
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:1780 (1.7 KiB)

eth0.2    Link encap:Ethernet  HWaddr CA:F8:4A:B5:57:08
          inet6 addr: fe80::c8f8:4aff:feb5:5708/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:28 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:5971 (5.8 KiB)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:44 errors:0 dropped:0 overruns:0 frame:0
          TX packets:44 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1
          RX bytes:2972 (2.9 KiB)  TX bytes:2972 (2.9 KiB)

root@LEDE:/# [   63.332809] random: nonblocking pool is initialized

root@LEDE:/#
root@LEDE:/# ifconfig eth0 192.168.1.121
root@LEDE:/# ifconfig eth0
eth0      Link encap:Ethernet  HWaddr CA:F8:4A:B5:57:08
          inet addr:192.168.1.121  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::c8f8:4aff:feb5:5708/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:161 errors:0 dropped:0 overruns:0 frame:0
          TX packets:73 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:29453 (28.7 KiB)  TX bytes:16677 (16.2 KiB)
          Interrupt:4

root@LEDE:/# ping 192.168.1.1
PING 192.168.1.1 (192.168.1.1): 56 data bytes
64 bytes from 192.168.1.1: seq=0 ttl=64 time=0.268 ms
64 bytes from 192.168.1.1: seq=1 ttl=64 time=0.226 ms
64 bytes from 192.168.1.1: seq=2 ttl=64 time=0.234 ms
64 bytes from 192.168.1.1: seq=3 ttl=64 time=0.237 ms
64 bytes from 192.168.1.1: seq=4 ttl=64 time=0.224 ms
64 bytes from 192.168.1.1: seq=5 ttl=64 time=0.223 ms
64 bytes from 192.168.1.1: seq=6 ttl=64 time=0.241 ms
64 bytes from 192.168.1.1: seq=7 ttl=64 time=0.224 ms
^C
--- 192.168.1.1 ping statistics ---
8 packets transmitted, 8 packets received, 0% packet loss
round-trip min/avg/max = 0.223/0.234/0.268 ms
root@LEDE:/#

Teraz zostaly GPIO, WLAN i ewentualnie sterownik switcha.

GPIO:
-  1 - BTN reset, aktywny niski
-  5 - BTN turbo, aktywny niski
-  6 - LED turbo, aktywny niski
- 21 - LED status, aktywny niski

6

(64 odpowiedzi, napisanych Oprogramowanie / Software)

Pierwszy sukces !!

Obraz sie odpala smile

ap151> tftp 0x80800000 lede-ar71xx-generic-uImage-initramfs-lzma.bin
Trying eth0
dup 1 speed 1000
Using eth0 device
TFTP from server 192.168.1.8; our IP address is 192.168.1.73
Filename 'lede-ar71xx-generic-uImage-initramfs-lzma.bin'.
Load address: 0x80800000
Loading: #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         ################################################
done
Bytes transferred = 3239895 (316fd7 hex)
ap151> bootm 0x80800000
Booting image from 0x80800000...

   Image name:    MIPS OpenWrt Linux-4.4.92
   Build date:    2017-10-17 17:43:06 UTC
   Architecture:  MIPS
   OS/image type: Linux Kernel
   Compression:   LZMA
   Data size:      3.1 MB (3239831 bytes)
   Load address:  0x80060000
   Entry point:   0x80060000

   Header CRC...  OK!
   Data CRC...    skipped

Uncompressing Kernel... OK!
## Bootargs: 'console=ttyS0,115200 root=31:02 rootfstype=squashfs init=/sbin/init mtdparts=ath-nor0:128k(u-boot),1024k(uImage),15104k(rootfs),64k(config),64k(ART) '
## Transferring control to Linux (at address 0x80060000) ...
## Giving linux memsize in MB, 64
Starting kernel...

[    0.000000] Linux version 4.4.92 (bizongod@bizonowo) (gcc version 5.5.0 (LEDE GCC 5.5.0 r5103-f6c4a9c) ) #0 Tue Oct 17 17:43:06 2017
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 00019750 (MIPS 74Kc)
[    0.000000] SoC: Qualcomm Atheros QCA956X ver 1 rev 0
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 04000000 @ 00000000 (usable)
[    0.000000] User-defined physical RAM map:
[    0.000000]  memory: 04000000 @ 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-0x0000000003ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x0000000003ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000003ffffff]
[    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: 16256
[    0.000000] Kernel command line: mem=64M console=ttyS0,120000 loglevel=7 root=/dev/ram0 rootfstype=ramfs board=SR3200
[    0.000000] PID hash table entries: 256 (order: -2, 1024 bytes)
[    0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Writing ErrCtl register=00000000
[    0.000000] Readback ErrCtl register=00000000
[    0.000000] Memory: 58244K/65536K available (2996K kernel code, 144K rwdata, 756K rodata, 2176K init, 200K bss, 7292K 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:775.000MHz, DDR:650.000MHz, AHB:258.333MHz, Ref:25.000MHz
[    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.008203] Calibrating delay loop... 385.84 BogoMIPS (lpj=1929216)
[    0.071017] pid_max: default: 32768 minimum: 301
[    0.075979] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.082959] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.092507] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.102918] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.109922] NET: Registered protocol family 16
[    0.115863] MIPS: machine is YunCore SR3200
[    0.339275] registering PCI controller with io_map_base unset
[    0.353768] PCI host bridge to bus 0000:00
[    0.358139] pci_bus 0000:00: root bus resource [mem 0x12000000-0x13ffffff]
[    0.365378] pci_bus 0000:00: root bus resource [io  0x0001]
[    0.371254] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
[    0.378400] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[    0.386809] pci 0000:00:00.0: invalid calibration data
[    0.392578] pci 0000:00:00.0: BAR 0: assigned [mem 0x12000000-0x121fffff 64bit]
[    0.400322] pci 0000:00:00.0: BAR 6: assigned [mem 0x12200000-0x1220ffff pref]
[    0.407933] pci 0000:00:00.0: using irq 40 for pin 1
[    0.413819] clocksource: Switched to clocksource MIPS
[    0.420190] NET: Registered protocol family 2
[    0.425454] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.432804] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.439547] TCP: Hash tables configured (established 1024 bind 1024)
[    0.446332] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.452500] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.459370] NET: Registered protocol family 1
[    2.244323] Crashlog allocated RAM at address 0x3f00000
[    2.261684] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    2.267881] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    2.315859] io scheduler noop registered
[    2.319998] io scheduler deadline registered (default)
[    2.325679] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[    2.332708] console [ttyS0] disabled
[    2.356559] serial8250.0: ttyS0 at MMIO 0x18020000 (irq = 11, base_baud = 1562500) is a 16550A
[    2.365653] console [ttyS0] enabled
[    2.365653] console [ttyS0] enabled
[    2.372653] bootconsole [early0] disabled
[    2.372653] bootconsole [early0] disabled
[    2.383364] m25p80 spi0.0: found w25q128, expected m25p80
[    2.388598] m25p80 spi0.0: w25q128 (16384 Kbytes)
[    2.408665] libphy: ag71xx_mdio: probed
[    2.995078] ag71xx ag71xx.0: no PHY found with phy_mask=00000001
[    3.002347] NET: Registered protocol family 10
[    3.009021] NET: Registered protocol family 17
[    3.013357] bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this.
[    3.025621] 8021q: 802.1Q VLAN Support v1.8
[    3.043330] Freeing unused kernel memory: 2176K
[    3.057410] init: Console is alive
[    3.060849] init: - watchdog -
[    3.076081] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    3.093088] usbcore: registered new interface driver usbfs
[    3.098473] usbcore: registered new interface driver hub
[    3.103636] usbcore: registered new device driver usb
[    3.112867] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    3.120524] ehci-platform: EHCI generic platform driver
[    3.125668] ehci-platform ehci-platform.0: EHCI Host Controller
[    3.131384] ehci-platform ehci-platform.0: new USB bus registered, assigned bus number 1
[    3.141228] ehci-platform ehci-platform.0: irq 48, io mem 0x1b000000
[    3.163851] ehci-platform ehci-platform.0: USB 2.0 started, EHCI 1.00
[    3.170745] hub 1-0:1.0: USB hub found
[    3.174687] hub 1-0:1.0: 1 port detected
[    3.178749] ehci-platform ehci-platform.1: EHCI Host Controller
[    3.184508] ehci-platform ehci-platform.1: new USB bus registered, assigned bus number 2
[    3.194381] ehci-platform ehci-platform.1: irq 49, io mem 0x1b400000
[    3.213838] ehci-platform ehci-platform.1: USB 2.0 started, EHCI 1.00
[    3.220713] hub 2-0:1.0: USB hub found
[    3.224678] hub 2-0:1.0: 1 port detected
[    3.230695] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    3.237840] ohci-platform: OHCI generic platform driver
[    3.243474] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    3.260805] init: - preinit -
[    3.400853] random: procd: uninitialized urandom read (4 bytes read, 5 bits of entropy available)
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
[    6.497286] procd: - early -
[    6.500130] procd: - watchdog -
[    7.027029] procd: - watchdog -
[    7.030250] procd: - ubus -
[    7.038859] random: ubusd: uninitialized urandom read (4 bytes read, 11 bits of entropy available)
[    7.083233] random: ubusd: uninitialized urandom read (4 bytes read, 11 bits of entropy available)
[    7.092239] random: ubusd: uninitialized urandom read (4 bytes read, 11 bits of entropy available)
[    7.100976] random: ubusd: uninitialized urandom read (4 bytes read, 11 bits of entropy available)
[    7.109814] random: ubusd: uninitialized urandom read (4 bytes read, 11 bits of entropy available)
[    7.118508] random: ubusd: uninitialized urandom read (4 bytes read, 11 bits of entropy available)
[    7.127284] random: ubusd: uninitialized urandom read (4 bytes read, 11 bits of entropy available)
[    7.136090] random: ubusd: uninitialized urandom read (4 bytes read, 11 bits of entropy available)
[    7.145029] procd: - init -
Please press Enter to activate this console.
[    7.277457] kmodloader: loading kernel modules from /etc/modules.d/*
[    7.287143] ip6_tables: (C) 2000-2006 Netfilter Core Team
[    7.302862] Loading modules backported from Linux version wt-2017-10-06-0-ga7a22fbbd1f0
[    7.310585] Backport generated by backports.git v4.14-rc2-1-6-gedfb595c
[    7.319372] ip_tables: (C) 2000-2006 Netfilter Core Team
[    7.330989] nf_conntrack version 0.5.0 (944 buckets, 3776 max)
[    7.375111] xt_time: kernel timezone is -0000
[    7.426725] PPP generic driver version 2.4.2
[    7.432871] NET: Registered protocol family 24
[    7.482931] Data bus error, epc == 82803774, ra == 82803774
[    7.488284] Oops[#1]:
[    7.490466] CPU: 0 PID: 353 Comm: kmodloader Not tainted 4.4.92 #0
[    7.496387] task: 839bd928 ti: 83970000 task.ti: 83970000
[    7.501557] $ 0   : 00000000 00000025 deadc0de 00000000
[    7.506599] $ 4   : b8115f18 00015f18 00000007 00000004
[    7.511641] $ 8   : 00000001 7c7c3c7c 7c7c7c7c 7c7c7c7c
[    7.516683] $12   : 7c7c3c7c 94cb6583 00000000 7c7c7c3c
[    7.521725] $16   : 00000064 82e08010 00000000 00015f18
[    7.526767] $20   : 00000007 00000004 00000004 000003ff
[    7.531809] $24   : 00000000 df93723e                  
[    7.536851] $28   : 83970000 83971a10 83971a9c 82803774
[    7.541894] Hi    : 00000000
[    7.544655] Lo    : 00000064
[    7.547455] epc   : 82803774 ath9k_hw_wait+0x64/0xb0 [ath9k_hw]
[    7.553137] ra    : 82803774 ath9k_hw_wait+0x64/0xb0 [ath9k_hw]
[    7.558808] Status: 1100cc03KERNEL EXL IE 
[    7.562845] Cause : 0080001c (ExcCode 07)
[    7.566687] PrId  : 00019750 (MIPS 74Kc)
[    7.570447] Modules linked in: ath9k(+) ath9k_common pppoe ppp_async ath9k_hw ath pppox ppp_generic nf_conntrack_ipv6 mac80211 iptable_nat ipt_REJECT ipt_MASQUERADE cfg80211 xt_time xt_tcpudp xt_state xt_nat xt_multiport xt_mark xt_mac xt_limit xt_conntrack xt_comment xt_TCPMSS xt_REDIRECT xt_LOG slhc nf_reject_ipv4 nf_nat_redirect nf_nat_masquerade_ipv4 nf_conntrack_ipv4 nf_nat_ipv4 nf_nat nf_log_ipv4 nf_defrag_ipv6 nf_defrag_ipv4 nf_conntrack_rtcache nf_conntrack iptable_mangle iptable_filter ip_tables crc_ccitt compat ledtrig_usbport ip6t_REJECT nf_reject_ipv6 nf_log_ipv6 nf_log_common ip6table_mangle ip6table_filter ip6_tables x_tables ohci_platform ohci_hcd ehci_platform ehci_hcd gpio_button_hotplug usbcore nls_base usb_common
[    7.633044] Process kmodloader (pid: 353, threadinfo=83970000, task=839bd928, tls=77785dec)
[    7.641042] Stack : 80410000 0000002f 00000000 00000025 000000c0 82e08010 00000000 00030000
  00000300 00000400 00010000 8281f7d4 00000000 503f59a2 241cd987 94cb6583
  000003e8 42bb9340 00002710 00000018 000003ff 82820000 8386d800 82e08010
  99999999 00000001 83971b2c 82e08438 00000001 8281e9fc 83970000 83971ab0
  800c2c64 82e08010 00020000 ffffffff 00000220 8281facc 82e08038 82803b44
  ...
[    7.675388] Call Trace:
[    7.677745] [<82803774>] ath9k_hw_wait+0x64/0xb0 [ath9k_hw]
[    7.683104] [<8281f7d4>] ath9k_hw_setup_statusring+0xe18/0x1df8 [ath9k_hw]
[    7.689696] 
[    7.691120] 
Code: 02202025  0040f809  00000000 <00541024> 10550008  24020001  0c06d836  2404000a  1000fff4 
[    7.700729] ---[ end trace d9df4eff608dc808 ]---
[    7.706314] Fatal exception: panic in 5 seconds
[   12.713823] Kernel panic - not syncing: Fatal exception
[   12.719642] Rebooting in 1 seconds..
€

Okazalo sie, ze wystarczylo zmienic adres gdzie wrzucany byl obraz.

7

(64 odpowiedzi, napisanych Oprogramowanie / Software)

Przy okazji przydalo by sie zczytac ustawienia GPIO.
Najwygodniej bylo by z oryginalnego systemu.
W flash'u znalazlem takie info:

passwd:

root:$1$/e66eR0s$WEoPwBaGxca4PV69/cp/10:0:0:root:/root:/bin/ash
nobody:*:65534:65534:nobody:/var:/bin/false
admin:*:500:500:admin:/var:/bin/false
guest:*:500:500:guest:/var:/bin/false
ftp:*:55:55:ftp:/home/ftp:/bin/false

Moze ktos kojarzy to haslo?

8

(64 odpowiedzi, napisanych Oprogramowanie / Software)

Dopiescilem troche u-boota, poprawilem sterowniki od switcha i
podmienilem cmd_bootm.c i wszystko od lzma z repo Pepe2k.

Teraz wyglada to tak:

U-Boot 1.1.4 (Oct 22 2017 - 17:00:34)

ap152 - Dragonfly 1.0

DRAM:  64 MB
Top of RAM usable for U-Boot at: 84000000
Reserving 360k for U-Boot at: 83fa4000
Reserving 192k for malloc() at: 83f74000
Reserving 44 Bytes for Board Info at: 83f73fd4
Reserving 36 Bytes for Global Data at: 83f73fb0
Reserving 128k for boot params() at: 83f53fb0
Stack Pointer at: 83f53f98
Now running in RAM - U-Boot at: 83fa4000
Flash Manuf Id 0xef, DeviceId0 0x40, DeviceId1 0x18
flash size 16MB, sector count = 256
Flash: 16 MB
In:  serial
Out: serial
Err: serial
Net:   ath_gmac_enet_initialize...
No valid address in Flash. Using fixed address
ath_gmac_enet_initialize: reset mask:c02200
athr_mgmt_init ::done
Dragonfly  ----> S17 PHY *
RTL8376S switch config start
RTL8376S switch config done
SGMII in forced mode
athr_gmac_sgmii_setup SGMII done
: cfg1 0x80000000 cfg2 0x7114
eth0: 00:03:7f:09:0b:ad
eth0 up
eth0
Setting 0x181162c0 to 0x4b962100
Enter 'tpl' to stop booting:  0

ap151> tftp 0x80060000 lede-17.01.4-ar71xx-generic-tl-wr1043nd-v4-squashfs-factory.bin
Trying eth0
dup 1 speed 1000
Using eth0 device
TFTP from server 192.168.1.8; our IP address is 192.168.1.73
Filename 'lede-17.01.4-ar71xx-generic-tl-wr1043nd-v4-squashfs-factory.bin'.
Load address: 0x80060000
Loading: #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         ###########################################################
done
Bytes transferred = 3626198 (3754d6 hex)
ap151> bootm 0x80060000
Booting image from 0x80060000...
## Error: unsupported image header

Jednak dalej mam problemy z uruchomieniem jakiegokolwiek obrazu, przyklady:

Filename 'lede-17.01.4-ar71xx-generic-tl-wr1043nd-v4-squashfs-factory.bin'.
Load address: 0x80060000
Loading: #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         ###########################################################
done
Bytes transferred = 3626198 (3754d6 hex)
ap151> bootm 0x80060000
Booting image from 0x80060000...
## Error: unsupported image header
ap151> tftp 0x80060000 lede-ar71xx-generic-vmlinux-initramfs.bin
Trying eth0
Using eth0 device
TFTP from server 192.168.1.8; our IP address is 192.168.1.73
Filename 'lede-ar71xx-generic-vmlinux-initramfs.bin'.
Load address: 0x80060000
Loading: #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         ####################################
done
Bytes transferred = 6171276 (5e2a8c hex)
ap151> bootm 0x80060000
Booting image from 0x80060000...
## Error: unsupported image header
ap151> tftp 0x80060000 lede-ar71xx-generic-uImage-initramfs-lzma.bin
Trying eth0
Using eth0 device
TFTP from server 192.168.1.8; our IP address is 192.168.1.73
Filename 'lede-ar71xx-generic-uImage-initramfs-lzma.bin'.
Load address: 0x80060000
Loading: #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         ################################################
done
Bytes transferred = 3239895 (316fd7 hex)
ap151> bootm 0x80060000
Booting image from 0x80060000...

   Image name:    MIPS OpenWrt Linux-4.4.92
   Build date:    2017-10-17 17:43:06 UTC
   Architecture:  MIPS
   OS/image type: Linux Kernel
   Compression:   LZMA
   Data size:      3.1 MB (3239831 bytes)
   Load address:  0x80060000
   Entry point:   0x80060000

   Header CRC...  OK!
   Data CRC...    skipped

Uncompressing Kernel... ERROR
## Error: LZMA error '1'!
ap151> tftp lede-ar71xx-generic-vmlinux.bin
Trying eth0
Using eth0 device
TFTP from server 192.168.1.8; our IP address is 192.168.1.73
Filename 'lede-ar71xx-generic-uImage-initramfs-lzma.bin'.
Load address: 0x0
Loading: #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         ################################################
done
Bytes transferred = 3239895 (316fd7 hex)
ap151> tftp 0x80060000 lede-ar71xx-generic-vmlinux.bin
Trying eth0
Using eth0 device
TFTP from server 192.168.1.8; our IP address is 192.168.1.73
Filename 'lede-ar71xx-generic-vmlinux.bin'.
Load address: 0x80060000
Loading: #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         ########################################################
done
Bytes transferred = 4276220 (413ffc hex)
ap151> bootm 0x80060000
Booting image from 0x80060000...
## Error: unsupported image header
ap151> tftp 0x80060000 lede-ar71xx-generic-uImage-initramfs-lzma.bin
Trying eth0
Using eth0 device
TFTP from server 192.168.1.8; our IP address is 192.168.1.73
Filename 'lede-ar71xx-generic-uImage-initramfs-lzma.bin'.
Load address: 0x80060000
Loading: #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         ################################################
done
Bytes transferred = 3239895 (316fd7 hex)
ap151> bootm 0x80060000
Booting image from 0x80060000...

   Image name:    MIPS OpenWrt Linux-4.4.92
   Build date:    2017-10-17 17:43:06 UTC
   Architecture:  MIPS
   OS/image type: Linux Kernel
   Compression:   LZMA
   Data size:      3.1 MB (3239831 bytes)
   Load address:  0x80060000
   Entry point:   0x80060000

   Header CRC...  OK!
   Data CRC...    skipped

Uncompressing Kernel... ERROR
## Error: LZMA error '1'!

Czy informacje jak zrobic obraz z initramfs podana nizej jest
wlasciwa?
https://lede-project.org/docs/guide-dev … new_device

9

(64 odpowiedzi, napisanych Oprogramowanie / Software)

No wlasnie jak napisalem w poscie 39, druga ramka,
naglowek znaleziony we flash'u pasuje to dosc dobrze do
naglowka w wersji 3 (chyba).

Ten ponoc sie az tak bardzo nie rozni od poprzednich wersji,
a co przegladalem obrazy LEDE, to nic podobnego nie znalazlem.

====
Narazie wrocilem do u-boota.
Ten od WR1043v4 dziala, ale z jednym ale smile
Switch nie skonfigurowany, to eth nie ma.
Sprobuje wrzucic mu te dane po MDIO co wczesniej spisalem.

====

switch na nowym bootloaderze dziala smile

U-Boot 1.1.4 (Oct 22 2017 - 01:36:07)

ap152 - Dragonfly 1.0

DRAM:  64 MB
Top of RAM usable for U-Boot at: 84000000
Reserving 366k for U-Boot at: 83fa4000
Reserving 192k for malloc() at: 83f74000
Reserving 44 Bytes for Board Info at: 83f73fd4
Reserving 36 Bytes for Global Data at: 83f73fb0
Reserving 128k for boot params() at: 83f53fb0
Stack Pointer at: 83f53f98
Now running in RAM - U-Boot at: 83fa4000
Flash Manuf Id 0xef, DeviceId0 0x40, DeviceId1 0x18
flash size 16MB, sector count = 256
Flash: 16 MB
Using default environment

In:    serial
Out:   serial
Err:   serial
Net:   ath_gmac_enet_initialize...
No valid address in Flash. Using fixed address
ath_gmac_enet_initialize: reset mask:c02200 
athr_mgmt_init ::done
Dragonfly  ----> S17 PHY *
 MDIO read reg: 2002 val: 1C ,expected 1C 
 MDIO read reg: 1301 val: A0 ,expected A0 
 MDIO read reg: 18 val: C00 ,expected C00 
 MDIO read reg: 18 val: C00 ,expected C00 
 MDIO read reg: 18 val: C00 ,expected C00 
 MDIO read reg: 18 val: E00 ,expected E00 
 MDIO read reg: 1D15 val: A69 ,expected A69 
 MDIO read reg: 2014 val: 0 ,expected 0 
 MDIO read reg: 1D15 val: A69 ,expected A69 
 MDIO read reg: 1D15 val: A69 ,expected A69 
 MDIO read reg: 2708 val: 0 ,expected 0 
 MDIO read reg: 1D15 val: A69 ,expected A69 
 MDIO read reg: 38 val: C00 ,expected C00 
 MDIO read reg: 38 val: C00 ,expected C00 
 MDIO read reg: 38 val: C00 ,expected C00 
 MDIO read reg: 38 val: E00 ,expected E00 
 MDIO read reg: 1D15 val: A69 ,expected A69 
 MDIO read reg: 2034 val: 0 ,expected 0 
 MDIO read reg: 1D15 val: A69 ,expected A69 
 MDIO read reg: 1D15 val: A69 ,expected A69 
 MDIO read reg: 2728 val: 0 ,expected 0 
 MDIO read reg: 1D15 val: A69 ,expected A69 
 MDIO read reg: 58 val: C00 ,expected C00 
 MDIO read reg: 58 val: C00 ,expected C00 
 MDIO read reg: 58 val: C00 ,expected C00 
 MDIO read reg: 58 val: E00 ,expected E00 
 MDIO read reg: 1D15 val: A69 ,expected A69 
 MDIO read reg: 2054 val: 0 ,expected 0 
 MDIO read reg: 1D15 val: A69 ,expected A69 
 MDIO read reg: 1D15 val: A69 ,expected A69 
 MDIO read reg: 2748 val: 0 ,expected 0 
 MDIO read reg: 1D15 val: A69 ,expected A69 
 MDIO read reg: 78 val: C00 ,expected C00 
 MDIO read reg: 78 val: C00 ,expected C00 
 MDIO read reg: 78 val: C00 ,expected C00 
 MDIO read reg: 78 val: E00 ,expected E00 
 MDIO read reg: 1D15 val: A69 ,expected A69 
 MDIO read reg: 2074 val: 0 ,expected 0 
 MDIO read reg: 1D15 val: A69 ,expected A69 
 MDIO read reg: 1D15 val: A69 ,expected A69 
 MDIO read reg: 2768 val: 0 ,expected 0 
 MDIO read reg: 1D15 val: A69 ,expected A69 
 MDIO read reg: 98 val: C00 ,expected C00 
 MDIO read reg: 98 val: C00 ,expected C00 
 MDIO read reg: 98 val: C00 ,expected C00 
 MDIO read reg: 98 val: E00 ,expected E00 
 MDIO read reg: 1D15 val: A69 ,expected A69 
 MDIO read reg: 2094 val: 0 ,expected 0 
 MDIO read reg: 1D15 val: A69 ,expected A69 
 MDIO read reg: 1D15 val: A69 ,expected A69 
 MDIO read reg: 2788 val: 0 ,expected 0 
 MDIO read reg: 1D15 val: A69 ,expected A69 
 MDIO read reg: 18E0 val: 4004 ,expected 4004 
 MDIO read reg: 122B val: 641C ,expected 641C 
 MDIO read reg: 1305 val: 0 ,expected 0 
 MDIO read reg: 1200 val: 7FCB ,expected 7FCB 
 MDIO read reg: 884 val: 0 ,expected 0 
 MDIO read reg: 6EB val: 0 ,expected 0 
 MDIO read reg: D0 val: 1 ,expected 1 
 MDIO read reg: CE val: 48B0 ,expected 48B0 
 MDIO read reg: CE val: 48B0 ,expected 48B0 
 MDIO read reg: 399 val: 1 ,expected 1 
 MDIO read reg: 300 val: 1 ,expected 1 
 MDIO read reg: 8C8 val: 0 ,expected 0 
 MDIO read reg: A30 val: 206 ,expected 206 
 MDIO read reg: 800 val: 0 ,expected 0 
 MDIO read reg: 9DA val: 13 ,expected 13 
 MDIO read reg: 1D32 val: 0 ,expected 0 
 MDIO read reg: 130F val: 87D ,expected 87D 
 MDIO read reg: 1D15 val: A69 ,expected A69 
 MDIO read reg: 2000 val: 1940 ,expected 1940 
 MDIO read reg: 1D15 val: A69 ,expected A69 
 MDIO read reg: 1D15 val: A69 ,expected A69 
 MDIO read reg: 2020 val: 1940 ,expected 1940 
 MDIO read reg: 1D15 val: A69 ,expected A69 
 MDIO read reg: 1D15 val: A69 ,expected A69 
 MDIO read reg: 2040 val: 1940 ,expected 1940 
 MDIO read reg: 1D15 val: A69 ,expected A69 
 MDIO read reg: 1D15 val: A69 ,expected A69 
 MDIO read reg: 2060 val: 1940 ,expected 1940 
 MDIO read reg: 1D15 val: A69 ,expected A69 
 MDIO read reg: 1D15 val: A69 ,expected A69 
 MDIO read reg: 2080 val: 1940 ,expected 1940 
 MDIO read reg: 1D15 val: A69 ,expected A69 
 MDIO read reg: 3F7 val: 0 ,expected 0 
 MDIO read reg: 1D11 val: 1500 ,expected 1500 
 MDIO read reg: 1D11 val: 1540 ,expected 1540 
 MDIO read reg: 1305 val: C000 ,expected C000 
 MDIO read reg: 1D11 val: 1540 ,expected 1540 
 MDIO read reg: 1D11 val: 1540 ,expected 1540 
 MDIO read reg: 1D11 val: 1540 ,expected 1540 
 MDIO read reg: 1D11 val: 1540 ,expected 1540 
 MDIO read reg: 1D11 val: 1540 ,expected 1540 
 MDIO read reg: 1D11 val: 1540 ,expected 1540 
 MDIO read reg: 1D11 val: 1540 ,expected 1540 
 MDIO read reg: 1D11 val: 1540 ,expected 1540 
 MDIO read reg: 1D11 val: 1540 ,expected 1540 
 MDIO read reg: 1D11 val: 1540 ,expected 1540 
 MDIO read reg: 1D11 val: 1740 ,expected 1740 
 MDIO read reg: 1D11 val: 3740 ,expected 3740 
 MDIO read reg: 1D15 val: A69 ,expected A69 
 MDIO read reg: 2101 val: 418 ,expected 418 
 MDIO read reg: 1D15 val: A69 ,expected A69 
 MDIO read reg: 1D15 val: A69 ,expected A69 
 MDIO read reg: 2121 val: 418 ,expected 418 
 MDIO read reg: 1D15 val: A69 ,expected A69 
 MDIO read reg: 1D15 val: A69 ,expected A69 
 MDIO read reg: 2141 val: 418 ,expected 418 
 MDIO read reg: 1D15 val: A69 ,expected A69 
 MDIO read reg: 1D15 val: A69 ,expected A69 
 MDIO read reg: 2161 val: 418 ,expected 418 
 MDIO read reg: 1D15 val: A69 ,expected A69 
 MDIO read reg: 1D15 val: A69 ,expected A69 
 MDIO read reg: 2181 val: 418 ,expected 418 
 MDIO read reg: 1D15 val: A69 ,expected A69 
SGMII in forced mode
athr_gmac_sgmii_setup SGMII done
: cfg1 0x80000000 cfg2 0x7114
eth0: 00:03:7f:09:0b:ad
eth0 up
eth0
Setting 0x181162c0 to 0x4b962100
is_auto_upload_firmware=1
Trying eth0
dup 1 speed 1000
Using eth0 device
TFTP from server 192.168.0.8; our IP address is 192.168.0.86
Filename 'wr1043ndv4_tp_recovery.bin'.
Load address: 0x80800000
Loading: *T T T eth0 up
eth0
Setting 0x181162c0 to 0x4b962100
is_auto_upload_firmware=1
Trying eth0
dup 1 speed 1000
Using eth0 device
TFTP from server 192.168.0.8; our IP address is 192.168.0.86
Filename 'wr1043ndv4_tp_recovery.bin'.
Load address: 0x80800000
Loading: *
Abort
Firmware recovery: FLASH_SIZE = 16 filesize = 0x0.
Do cmd fwrecov 0x80800000 0x00000000
Usage:
fwrecov - TP-Link Firmware Recovery Tools

Autobooting in 5 seconds
delay key:<NULL>
delay key:<NULL>
stop key:<tpl>
stop key:<NULL>
tplgot stopkey
ap151> 

ap151> tfttp  0x80060000 sr3200.bin


Trying eth0
Using eth0 device
TFTP from server 192.168.1.8; our IP address is 192.168.1.214
Filename 'sr3200.bin'.
Load address: 0x80060000
Loading: *#################################################################
 #################################################################
 #################################################################
 #################################################################
 #################################################################
 #################################################################
 #################################################################
 #################################################################
 #################################################################
 #################################################################
 #################
done
Bytes transferred = 3412457 (3411e9 hex)
ap151> 

Choc TPLink strasznie go okaleczyl..

10

(64 odpowiedzi, napisanych Oprogramowanie / Software)

No niestety probowalem i nie zadzialalo - patrz post 34.
Probowalem cos zrobic z WR1043v4, lecz tez naglowek ma sie
nijak do tego co opisalem..
Temu o pomoc pytam.

11

(64 odpowiedzi, napisanych Oprogramowanie / Software)

Wrocilem do robienia kernela, jednak utknelem na tym, jak zrobic
obraz z initramfs oraz naglowkiem. Moze jakas mala podpowiedz jak dalej ruszyc? smile

12

(64 odpowiedzi, napisanych Oprogramowanie / Software)

Dane sterujace switchem zdekodowane, wyglada na to, ze dosc podobny to RTL8367C smile

Oto dane, wraz z nazwami rejestrow:

Write/Read    MDIO addr : MDIO data                  RTL8370 ASIC address, data

W 0x1F:0x000E  W 0x17:0x2002  W 0x15:0x0001  R 0x19:0x001C    R Addr:0x2002 = 0x001C PHY 0, reg 0x02
W 0x1F:0x000E  W 0x17:0x13C2  W 0x18:0x0249  W 0x15:0x0003    W Addr:0x13C2 = 0x0249
W 0x1F:0x000E  W 0x17:0x1301  W 0x15:0x0001  R 0x19:0x00A0    R Addr:0x1301 = 0x00A0
W 0x1F:0x000E  W 0x17:0x13C2  W 0x18:0x0000  W 0x15:0x0003    W Addr:0x13C2 = 0x0000

W 0x1F:0x000E  W 0x17:0x0018  W 0x15:0x0001  R 0x19:0x0C00    R Addr:0x0018 = 0x0C00 RTL8367C_REG_PORT0_EEECFG
W 0x1F:0x000E  W 0x17:0x0018  W 0x18:0x0C00  W 0x15:0x0003    W Addr:0x0018 = 0x0C00 RTL8367C_REG_PORT0_EEECFG
W 0x1F:0x000E  W 0x17:0x0018  W 0x15:0x0001  R 0x19:0x0C00    R Addr:0x0018 = 0x0C00 RTL8367C_REG_PORT0_EEECFG
W 0x1F:0x000E  W 0x17:0x0018  W 0x18:0x0C00  W 0x15:0x0003    W Addr:0x0018 = 0x0C00 RTL8367C_REG_PORT0_EEECFG
W 0x1F:0x000E  W 0x17:0x0018  W 0x15:0x0001  R 0x19:0x0C00    R Addr:0x0018 = 0x0C00 RTL8367C_REG_PORT0_EEECFG
W 0x1F:0x000E  W 0x17:0x0018  W 0x18:0x0E00  W 0x15:0x0003    W Addr:0x0018 = 0x0E00 RTL8367C_REG_PORT0_EEECFG
W 0x1F:0x000E  W 0x17:0x0018  W 0x15:0x0001  R 0x19:0x0E00    R Addr:0x0018 = 0x0E00 RTL8367C_REG_PORT0_EEECFG
W 0x1F:0x000E  W 0x17:0x0018  W 0x18:0x0F00  W 0x15:0x0003    W Addr:0x0018 = 0x0F00 RTL8367C_REG_PORT0_EEECFG
W 0x1F:0x000E  W 0x17:0x1D15  W 0x15:0x0001  R 0x19:0x0A69    R Addr:0x1D15 = 0x0A69 RTL8367C_REG_GPHY_OCP_MSB_0    
W 0x1F:0x000E  W 0x17:0x1D15  W 0x18:0x0A69  W 0x15:0x0003    W Addr:0x1D15 = 0x0A69 RTL8367C_REG_GPHY_OCP_MSB_0 
W 0x1F:0x000E  W 0x17:0x2014  W 0x15:0x0001  R 0x19:0x0000    R Addr:0x2014 = 0x0000 PHY 0, reg 0x14
W 0x1F:0x000E  W 0x17:0x1D15  W 0x15:0x0001  R 0x19:0x0A69    R Addr:0x1D15 = 0x0A69 RTL8367C_REG_GPHY_OCP_MSB_0 
W 0x1F:0x000E  W 0x17:0x1D15  W 0x18:0x0A69  W 0x15:0x0003    W Addr:0x1D15 = 0x0A69 RTL8367C_REG_GPHY_OCP_MSB_0 
W 0x1F:0x000E  W 0x17:0x2014  W 0x18:0x0000  W 0x15:0x0003    W Addr:0x2014 = 0x0000 PHY 0, reg 0x14
W 0x1F:0x000E  W 0x17:0x1D15  W 0x15:0x0001  R 0x19:0x0A69    R Addr:0x1D15 = 0x0A69 RTL8367C_REG_GPHY_OCP_MSB_0 
W 0x1F:0x000E  W 0x17:0x1D15  W 0x18:0x0A69  W 0x15:0x0003    W Addr:0x1D15 = 0x0A69 RTL8367C_REG_GPHY_OCP_MSB_0 
W 0x1F:0x000E  W 0x17:0x2708  W 0x15:0x0001  R 0x19:0x0000    R Addr:0x2708 = 0x0000 rtl8367c_getAsicPHYOCPReg
W 0x1F:0x000E  W 0x17:0x1D15  W 0x15:0x0001  R 0x19:0x0A69    R Addr:0x1D15 = 0x0A69 RTL8367C_REG_GPHY_OCP_MSB_0 
W 0x1F:0x000E  W 0x17:0x1D15  W 0x18:0x0A69  W 0x15:0x0003    W Addr:0x1D15 = 0x0A69 RTL8367C_REG_GPHY_OCP_MSB_0 
W 0x1F:0x000E  W 0x17:0x2708  W 0x18:0x0006  W 0x15:0x0003    W Addr:0x2708 = 0x0006 rtl8367c_setAsicPHYOCPReg

W 0x1F:0x000E  W 0x17:0x0038  W 0x15:0x0001  R 0x19:0x0C00    R Addr:0x0038 = 0x0C00 --//--
W 0x1F:0x000E  W 0x17:0x0038  W 0x18:0x0C00  W 0x15:0x0003    W Addr:0x0038 = 0x0C00
W 0x1F:0x000E  W 0x17:0x0038  W 0x15:0x0001  R 0x19:0x0C00    R Addr:0x0038 = 0x0C00
W 0x1F:0x000E  W 0x17:0x0038  W 0x18:0x0C00  W 0x15:0x0003    W Addr:0x0038 = 0x0C00
W 0x1F:0x000E  W 0x17:0x0038  W 0x15:0x0001  R 0x19:0x0C00    R Addr:0x0038 = 0x0C00
W 0x1F:0x000E  W 0x17:0x0038  W 0x18:0x0E00  W 0x15:0x0003    W Addr:0x0038 = 0x0E00
W 0x1F:0x000E  W 0x17:0x0038  W 0x15:0x0001  R 0x19:0x0E00    R Addr:0x0038 = 0x0E00
W 0x1F:0x000E  W 0x17:0x0038  W 0x18:0x0F00  W 0x15:0x0003    W Addr:0x0038 = 0x0F00
W 0x1F:0x000E  W 0x17:0x1D15  W 0x15:0x0001  R 0x19:0x0A69    R Addr:0x1D15 = 0x0A69
W 0x1F:0x000E  W 0x17:0x1D15  W 0x18:0x0A69  W 0x15:0x0003    W Addr:0x1D15 = 0x0A69
W 0x1F:0x000E  W 0x17:0x2034  W 0x15:0x0001  R 0x19:0x0000    R Addr:0x2034 = 0x0000
W 0x1F:0x000E  W 0x17:0x1D15  W 0x15:0x0001  R 0x19:0x0A69    R Addr:0x1D15 = 0x0A69
W 0x1F:0x000E  W 0x17:0x1D15  W 0x18:0x0A69  W 0x15:0x0003    W Addr:0x1D15 = 0x0A69
W 0x1F:0x000E  W 0x17:0x2034  W 0x18:0x0000  W 0x15:0x0003    W Addr:0x2034 = 0x0000
W 0x1F:0x000E  W 0x17:0x1D15  W 0x15:0x0001  R 0x19:0x0A69    R Addr:0x1D15 = 0x0A69
W 0x1F:0x000E  W 0x17:0x1D15  W 0x18:0x0A69  W 0x15:0x0003    W Addr:0x1D15 = 0x0A69
W 0x1F:0x000E  W 0x17:0x2728  W 0x15:0x0001  R 0x19:0x0000    R Addr:0x2728 = 0x0000
W 0x1F:0x000E  W 0x17:0x1D15  W 0x15:0x0001  R 0x19:0x0A69    R Addr:0x1D15 = 0x0A69
W 0x1F:0x000E  W 0x17:0x1D15  W 0x18:0x0A69  W 0x15:0x0003    W Addr:0x1D15 = 0x0A69
W 0x1F:0x000E  W 0x17:0x2728  W 0x18:0x0006  W 0x15:0x0003    W Addr:0x2728 = 0x0006

W 0x1F:0x000E  W 0x17:0x0058  W 0x15:0x0001  R 0x19:0x0C00    R Addr:0x0058 = 0x0C00 --//--
W 0x1F:0x000E  W 0x17:0x0058  W 0x18:0x0C00  W 0x15:0x0003    W Addr:0x0058 = 0x0C00
W 0x1F:0x000E  W 0x17:0x0058  W 0x15:0x0001  R 0x19:0x0C00    R Addr:0x0058 = 0x0C00
W 0x1F:0x000E  W 0x17:0x0058  W 0x18:0x0C00  W 0x15:0x0003    W Addr:0x0058 = 0x0C00
W 0x1F:0x000E  W 0x17:0x0058  W 0x15:0x0001  R 0x19:0x0C00    R Addr:0x0058 = 0x0C00
W 0x1F:0x000E  W 0x17:0x0058  W 0x18:0x0E00  W 0x15:0x0003    W Addr:0x0058 = 0x0E00
W 0x1F:0x000E  W 0x17:0x0058  W 0x15:0x0001  R 0x19:0x0E00    R Addr:0x0058 = 0x0E00
W 0x1F:0x000E  W 0x17:0x0058  W 0x18:0x0F00  W 0x15:0x0003    W Addr:0x0058 = 0x0F00
W 0x1F:0x000E  W 0x17:0x1D15  W 0x15:0x0001  R 0x19:0x0A69    R Addr:0x1D15 = 0x0A69
W 0x1F:0x000E  W 0x17:0x1D15  W 0x18:0x0A69  W 0x15:0x0003    W Addr:0x1D15 = 0x0A69
W 0x1F:0x000E  W 0x17:0x2054  W 0x15:0x0001  R 0x19:0x0000    R Addr:0x2054 = 0x0000
W 0x1F:0x000E  W 0x17:0x1D15  W 0x15:0x0001  R 0x19:0x0A69    R Addr:0x1D15 = 0x0A69
W 0x1F:0x000E  W 0x17:0x1D15  W 0x18:0x0A69  W 0x15:0x0003    W Addr:0x1D15 = 0x0A69
W 0x1F:0x000E  W 0x17:0x2054  W 0x18:0x0000  W 0x15:0x0003    W Addr:0x2054 = 0x0000
W 0x1F:0x000E  W 0x17:0x1D15  W 0x15:0x0001  R 0x19:0x0A69    R Addr:0x1D15 = 0x0A69
W 0x1F:0x000E  W 0x17:0x1D15  W 0x18:0x0A69  W 0x15:0x0003    W Addr:0x1D15 = 0x0A69
W 0x1F:0x000E  W 0x17:0x2748  W 0x15:0x0001  R 0x19:0x0000    R Addr:0x2748 = 0x0000
W 0x1F:0x000E  W 0x17:0x1D15  W 0x15:0x0001  R 0x19:0x0A69    R Addr:0x1D15 = 0x0A69
W 0x1F:0x000E  W 0x17:0x1D15  W 0x18:0x0A69  W 0x15:0x0003    W Addr:0x1D15 = 0x0A69
W 0x1F:0x000E  W 0x17:0x2748  W 0x18:0x0006  W 0x15:0x0003    W Addr:0x2748 = 0x0006

W 0x1F:0x000E  W 0x17:0x0078  W 0x15:0x0001  R 0x19:0x0C00    R Addr:0x0078 = 0x0C00 --//--
W 0x1F:0x000E  W 0x17:0x0078  W 0x18:0x0C00  W 0x15:0x0003    W Addr:0x0078 = 0x0C00
W 0x1F:0x000E  W 0x17:0x0078  W 0x15:0x0001  R 0x19:0x0C00    R Addr:0x0078 = 0x0C00
W 0x1F:0x000E  W 0x17:0x0078  W 0x18:0x0C00  W 0x15:0x0003    W Addr:0x0078 = 0x0C00
W 0x1F:0x000E  W 0x17:0x0078  W 0x15:0x0001  R 0x19:0x0C00    R Addr:0x0078 = 0x0C00
W 0x1F:0x000E  W 0x17:0x0078  W 0x18:0x0E00  W 0x15:0x0003    W Addr:0x0078 = 0x0E00
W 0x1F:0x000E  W 0x17:0x0078  W 0x15:0x0001  R 0x19:0x0E00    R Addr:0x0078 = 0x0E00
W 0x1F:0x000E  W 0x17:0x0078  W 0x18:0x0F00  W 0x15:0x0003    W Addr:0x0078 = 0x0F00
W 0x1F:0x000E  W 0x17:0x1D15  W 0x15:0x0001  R 0x19:0x0A69    R Addr:0x1D15 = 0x0A69
W 0x1F:0x000E  W 0x17:0x1D15  W 0x18:0x0A69  W 0x15:0x0003    W Addr:0x1D15 = 0x0A69
W 0x1F:0x000E  W 0x17:0x2074  W 0x15:0x0001  R 0x19:0x0000    R Addr:0x2074 = 0x0000
W 0x1F:0x000E  W 0x17:0x1D15  W 0x15:0x0001  R 0x19:0x0A69    R Addr:0x1D15 = 0x0A69
W 0x1F:0x000E  W 0x17:0x1D15  W 0x18:0x0A69  W 0x15:0x0003    W Addr:0x1D15 = 0x0A69
W 0x1F:0x000E  W 0x17:0x2074  W 0x18:0x0000  W 0x15:0x0003    W Addr:0x2074 = 0x0000
W 0x1F:0x000E  W 0x17:0x1D15  W 0x15:0x0001  R 0x19:0x0A69    R Addr:0x1D15 = 0x0A69
W 0x1F:0x000E  W 0x17:0x1D15  W 0x18:0x0A69  W 0x15:0x0003    W Addr:0x1D15 = 0x0A69
W 0x1F:0x000E  W 0x17:0x2768  W 0x15:0x0001  R 0x19:0x0000    R Addr:0x2768 = 0x0000
W 0x1F:0x000E  W 0x17:0x1D15  W 0x15:0x0001  R 0x19:0x0A69    R Addr:0x1D15 = 0x0A69
W 0x1F:0x000E  W 0x17:0x1D15  W 0x18:0x0A69  W 0x15:0x0003    W Addr:0x1D15 = 0x0A69
W 0x1F:0x000E  W 0x17:0x2768  W 0x18:0x0006  W 0x15:0x0003    W Addr:0x2768 = 0x0006

W 0x1F:0x000E  W 0x17:0x0098  W 0x15:0x0001  R 0x19:0x0C00    R Addr:0x0098 = 0x0C00 --//--
W 0x1F:0x000E  W 0x17:0x0098  W 0x18:0x0C00  W 0x15:0x0003    W Addr:0x0098 = 0x0C00
W 0x1F:0x000E  W 0x17:0x0098  W 0x15:0x0001  R 0x19:0x0C00    R Addr:0x0098 = 0x0C00
W 0x1F:0x000E  W 0x17:0x0098  W 0x18:0x0C00  W 0x15:0x0003    W Addr:0x0098 = 0x0C00
W 0x1F:0x000E  W 0x17:0x0098  W 0x15:0x0001  R 0x19:0x0C00    R Addr:0x0098 = 0x0C00
W 0x1F:0x000E  W 0x17:0x0098  W 0x18:0x0E00  W 0x15:0x0003    W Addr:0x0098 = 0x0E00
W 0x1F:0x000E  W 0x17:0x0098  W 0x15:0x0001  R 0x19:0x0E00    R Addr:0x0098 = 0x0E00
W 0x1F:0x000E  W 0x17:0x0098  W 0x18:0x0F00  W 0x15:0x0003    W Addr:0x0098 = 0x0F00
W 0x1F:0x000E  W 0x17:0x1D15  W 0x15:0x0001  R 0x19:0x0A69    R Addr:0x1D15 = 0x0A69
W 0x1F:0x000E  W 0x17:0x1D15  W 0x18:0x0A69  W 0x15:0x0003    W Addr:0x1D15 = 0x0A69
W 0x1F:0x000E  W 0x17:0x2094  W 0x15:0x0001  R 0x19:0x0000    R Addr:0x2094 = 0x0000
W 0x1F:0x000E  W 0x17:0x1D15  W 0x15:0x0001  R 0x19:0x0A69    R Addr:0x1D15 = 0x0A69
W 0x1F:0x000E  W 0x17:0x1D15  W 0x18:0x0A69  W 0x15:0x0003    W Addr:0x1D15 = 0x0A69
W 0x1F:0x000E  W 0x17:0x2094  W 0x18:0x0000  W 0x15:0x0003    W Addr:0x2094 = 0x0000
W 0x1F:0x000E  W 0x17:0x1D15  W 0x15:0x0001  R 0x19:0x0A69    R Addr:0x1D15 = 0x0A69
W 0x1F:0x000E  W 0x17:0x1D15  W 0x18:0x0A69  W 0x15:0x0003    W Addr:0x1D15 = 0x0A69
W 0x1F:0x000E  W 0x17:0x2788  W 0x15:0x0001  R 0x19:0x0000    R Addr:0x2788 = 0x0000
W 0x1F:0x000E  W 0x17:0x1D15  W 0x15:0x0001  R 0x19:0x0A69    R Addr:0x1D15 = 0x0A69
W 0x1F:0x000E  W 0x17:0x1D15  W 0x18:0x0A69  W 0x15:0x0003    W Addr:0x1D15 = 0x0A69
W 0x1F:0x000E  W 0x17:0x2788  W 0x18:0x0006  W 0x15:0x0003    W Addr:0x2788 = 0x0006

W 0x1F:0x000E  W 0x17:0x13EB  W 0x18:0x15BB  W 0x15:0x0003    W Addr:0x13EB = 0x15BB RTL8367C_REG_UTP_FIB_DET
W 0x1F:0x000E  W 0x17:0x1303  W 0x18:0x06D6  W 0x15:0x0003    W Addr:0x1303 = 0x06D6 RTL8367C_REG_CHIP_DEBUG0
W 0x1F:0x000E  W 0x17:0x1304  W 0x18:0x0700  W 0x15:0x0003    W Addr:0x1304 = 0x0700 RTL8367C_REG_CHIP_DEBUG1
W 0x1F:0x000E  W 0x17:0x13E2  W 0x18:0x003F  W 0x15:0x0003    W Addr:0x13E2 = 0x003F RTL8367C_REG_CHIP_DEBUG2
W 0x1F:0x000E  W 0x17:0x13F9  W 0x18:0x0090  W 0x15:0x0003    W Addr:0x13F9 = 0x0090 RTL8367C_REG_EXT_TXC_DLY
W 0x1F:0x000E  W 0x17:0x121E  W 0x18:0x03CA  W 0x15:0x0003    W Addr:0x121E = 0x03CA RTL8367C_REG_FLOWCTRL_ALL_ON
W 0x1F:0x000E  W 0x17:0x1233  W 0x18:0x0352  W 0x15:0x0003    W Addr:0x1233 = 0x0352 RTL8367C_REG_FLOWCTRL_JUMBO_SYS_ON
W 0x1F:0x000E  W 0x17:0x1237  W 0x18:0x00A0  W 0x15:0x0003    W Addr:0x1237 = 0x00A0 RTL8367C_REG_FLOWCTRL_JUMBO_PORT_ON
W 0x1F:0x000E  W 0x17:0x123A  W 0x18:0x0030  W 0x15:0x0003    W Addr:0x123A = 0x0030 RTL8367C_REG_FLOWCTRL_JUMBO_PORT_PRIVATE_OFF
W 0x1F:0x000E  W 0x17:0x1239  W 0x18:0x0084  W 0x15:0x0003    W Addr:0x1239 = 0x0084 RTL8367C_REG_FLOWCTRL_JUMBO_PORT_PRIVATE_ON
W 0x1F:0x000E  W 0x17:0x0301  W 0x18:0x1000  W 0x15:0x0003    W Addr:0x0301 = 0x1000 RTL8367C_REG_SCHEDULE_WFQ_BURST_SIZE
W 0x1F:0x000E  W 0x17:0x1349  W 0x18:0x001F  W 0x15:0x0003    W Addr:0x1349 = 0x001F RTL8367C_REG_BYPASS_ABLTY_LOCK
W 0x1F:0x000E  W 0x17:0x18E0  W 0x15:0x0001  R 0x19:0x4004    R Addr:0x18E0 = 0x4004 RTL8367C_REG_RLDP_CTRL0
W 0x1F:0x000E  W 0x17:0x18E0  W 0x18:0x4004  W 0x15:0x0003    W Addr:0x18E0 = 0x4004 RTL8367C_REG_RLDP_CTRL0
W 0x1F:0x000E  W 0x17:0x122B  W 0x15:0x0001  R 0x19:0x641C    R Addr:0x122B = 0x641C RTL8367C_REG_RRCP_CTRL0
W 0x1F:0x000E  W 0x17:0x122B  W 0x18:0x641C  W 0x15:0x0003    W Addr:0x122B = 0x641C RTL8367C_REG_RRCP_CTRL0
W 0x1F:0x000E  W 0x17:0x1305  W 0x15:0x0001  R 0x19:0x0000    R Addr:0x1305 = 0x0000 RTL8367C_REG_DIGITAL_INTERFACE_SELECT
W 0x1F:0x000E  W 0x17:0x1305  W 0x18:0xC000  W 0x15:0x0003    W Addr:0x1305 = 0xC000 RTL8367C_REG_DIGITAL_INTERFACE_SELECT
W 0x1F:0x000E  W 0x17:0x1200  W 0x15:0x0001  R 0x19:0x7FCB    R Addr:0x1200 = 0x7FCB RTL8367C_REG_MAX_LENGTH_LIMINT_IPG
W 0x1F:0x000E  W 0x17:0x1200  W 0x18:0x7FCB  W 0x15:0x0003    W Addr:0x1200 = 0x7FCB RTL8367C_REG_MAX_LENGTH_LIMINT_IPG
W 0x1F:0x000E  W 0x17:0x0884  W 0x15:0x0001  R 0x19:0x0000    R Addr:0x0884 = 0x0000 RTL8367C_REG_MAX_LEN_RX_TX
W 0x1F:0x000E  W 0x17:0x0884  W 0x18:0x0003  W 0x15:0x0003    W Addr:0x0884 = 0x0003 RTL8367C_REG_MAX_LEN_RX_TX
W 0x1F:0x000E  W 0x17:0x06EB  W 0x15:0x0001  R 0x19:0x0000    R Addr:0x06EB = 0x0000 RTL8367C_REG_ACL_ACCESS_MODE
W 0x1F:0x000E  W 0x17:0x06EB  W 0x18:0x0001  W 0x15:0x0003    W Addr:0x06EB = 0x0001 RTL8367C_REG_ACL_ACCESS_MODE
W 0x1F:0x000E  W 0x17:0x00CF  W 0x18:0xFFFF  W 0x15:0x0003    W Addr:0x00CF = 0xFFFF RTL8367C_REG_INGRESSBW_PORT6_RATE_CTRL0
W 0x1F:0x000E  W 0x17:0x00D0  W 0x15:0x0001  R 0x19:0x0001    R Addr:0x00D0 = 0x0001 RTL8367C_REG_INGRESSBW_PORT6_RATE_CTRL1
W 0x1F:0x000E  W 0x17:0x00D0  W 0x18:0x0007  W 0x15:0x0003    W Addr:0x00D0 = 0x0007 RTL8367C_REG_INGRESSBW_PORT6_RATE_CTRL1
W 0x1F:0x000E  W 0x17:0x00CE  W 0x15:0x0001  R 0x19:0x48B0    R Addr:0x00CE = 0x48B0 RTL8367C_REG_PORT6_MISC_CFG
W 0x1F:0x000E  W 0x17:0x00CE  W 0x18:0x48B0  W 0x15:0x0003    W Addr:0x00CE = 0x48B0 RTL8367C_REG_PORT6_MISC_CFG
W 0x1F:0x000E  W 0x17:0x00CE  W 0x15:0x0001  R 0x19:0x48B0    R Addr:0x00CE = 0x48B0 RTL8367C_REG_PORT6_MISC_CFG
W 0x1F:0x000E  W 0x17:0x00CE  W 0x18:0x48B0  W 0x15:0x0003    W Addr:0x00CE = 0x48B0 RTL8367C_REG_PORT6_MISC_CFG
W 0x1F:0x000E  W 0x17:0x0398  W 0x18:0xFFFF  W 0x15:0x0003    W Addr:0x0398 = 0xFFFF RTL8367C_REG_PORT6_EGRESSBW_CTRL0
W 0x1F:0x000E  W 0x17:0x0399  W 0x15:0x0001  R 0x19:0x0001    R Addr:0x0399 = 0x0001 RTL8367C_REG_PORT6_EGRESSBW_CTRL1
W 0x1F:0x000E  W 0x17:0x0399  W 0x18:0x0007  W 0x15:0x0003    W Addr:0x0399 = 0x0007 RTL8367C_REG_PORT6_EGRESSBW_CTRL1
W 0x1F:0x000E  W 0x17:0x0300  W 0x15:0x0001  R 0x19:0x0001    R Addr:0x0300 = 0x0001 RTL8367C_REG_SCHEDULE_WFQ_CTRL
W 0x1F:0x000E  W 0x17:0x0300  W 0x18:0x0001  W 0x15:0x0003    W Addr:0x0300 = 0x0001 RTL8367C_REG_SCHEDULE_WFQ_CTRL
W 0x1F:0x000E  W 0x17:0x03FA  W 0x18:0x0007  W 0x15:0x0003    W Addr:0x03FA = 0x0007 RTL8367C_REG_LINE_RATE_HSG_H
W 0x1F:0x000E  W 0x17:0x08C8  W 0x15:0x0001  R 0x19:0x0000    R Addr:0x08C8 = 0x0000 RTL8367C_REG_PORT_SECURITY_CTRL
W 0x1F:0x000E  W 0x17:0x08C8  W 0x18:0x00C0  W 0x15:0x0003    W Addr:0x08C8 = 0x00C0 RTL8367C_REG_PORT_SECURITY_CTRL
W 0x1F:0x000E  W 0x17:0x0A30  W 0x15:0x0001  R 0x19:0x0206    R Addr:0x0A30 = 0x0206 RTL8367C_REG_LUT_CFG
W 0x1F:0x000E  W 0x17:0x0A30  W 0x18:0x020E  W 0x15:0x0003    W Addr:0x0A30 = 0x020E RTL8367C_REG_LUT_CFG
W 0x1F:0x000E  W 0x17:0x0800  W 0x15:0x0001  R 0x19:0x0000    R Addr:0x0800 = 0x0000 RTL8367C_REG_RMA_CTRL00
W 0x1F:0x000E  W 0x17:0x0800  W 0x18:0x0000  W 0x15:0x0003    W Addr:0x0800 = 0x0000 RTL8367C_REG_RMA_CTRL00
W 0x1F:0x000E  W 0x17:0x0802  W 0x18:0x0000  W 0x15:0x0003    W Addr:0x0802 = 0x0000 RTL8367C_REG_RMA_CTRL02
W 0x1F:0x000E  W 0x17:0x09DA  W 0x15:0x0001  R 0x19:0x0013    R Addr:0x09DA = 0x0013 RTL8367C_REG_MIRROR_CTRL2
W 0x1F:0x000E  W 0x17:0x09DA  W 0x18:0x0017  W 0x15:0x0003    W Addr:0x09DA = 0x0017 RTL8367C_REG_MIRROR_CTRL2
W 0x1F:0x000E  W 0x17:0x1D32  W 0x15:0x0001  R 0x19:0x0000    R Addr:0x1D32 = 0x0000 RTL8367C_REG_IO_MISC_FUNC
W 0x1F:0x000E  W 0x17:0x1D32  W 0x18:0x0002  W 0x15:0x0003    W Addr:0x1D32 = 0x0002 RTL8367C_REG_IO_MISC_FUNC
W 0x1F:0x000E  W 0x17:0x130F  W 0x15:0x0001  R 0x19:0x087D    R Addr:0x130F = 0x087D RTL8367C_REG_PHY_AD
W 0x1F:0x000E  W 0x17:0x130F  W 0x18:0x085D  W 0x15:0x0003    W Addr:0x130F = 0x085D RTL8367C_REG_PHY_AD

W 0x1F:0x000E  W 0x17:0x1D15  W 0x15:0x0001  R 0x19:0x0A69    R Addr:0x1D15 = 0x0A69 RTL8367C_REG_GPHY_OCP_MSB_0    
W 0x1F:0x000E  W 0x17:0x1D15  W 0x18:0x0A69  W 0x15:0x0003    W Addr:0x1D15 = 0x0A69 RTL8367C_REG_GPHY_OCP_MSB_0    
W 0x1F:0x000E  W 0x17:0x2000  W 0x15:0x0001  R 0x19:0x1940    R Addr:0x2000 = 0x1940 PHY 0, reg 0x00
W 0x1F:0x000E  W 0x17:0x1D15  W 0x15:0x0001  R 0x19:0x0A69    R Addr:0x1D15 = 0x0A69 RTL8367C_REG_GPHY_OCP_MSB_0    
W 0x1F:0x000E  W 0x17:0x1D15  W 0x18:0x0A69  W 0x15:0x0003    W Addr:0x1D15 = 0x0A69 RTL8367C_REG_GPHY_OCP_MSB_0    
W 0x1F:0x000E  W 0x17:0x2000  W 0x18:0x1340  W 0x15:0x0003    W Addr:0x2000 = 0x1340 PHY 0, reg 0x00

W 0x1F:0x000E  W 0x17:0x1D15  W 0x15:0x0001  R 0x19:0x0A69    R Addr:0x1D15 = 0x0A69 --//--
W 0x1F:0x000E  W 0x17:0x1D15  W 0x18:0x0A69  W 0x15:0x0003    W Addr:0x1D15 = 0x0A69
W 0x1F:0x000E  W 0x17:0x2020  W 0x15:0x0001  R 0x19:0x1940    R Addr:0x2020 = 0x1940
W 0x1F:0x000E  W 0x17:0x1D15  W 0x15:0x0001  R 0x19:0x0A69    R Addr:0x1D15 = 0x0A69
W 0x1F:0x000E  W 0x17:0x1D15  W 0x18:0x0A69  W 0x15:0x0003    W Addr:0x1D15 = 0x0A69
W 0x1F:0x000E  W 0x17:0x2020  W 0x18:0x1340  W 0x15:0x0003    W Addr:0x2020 = 0x1340

W 0x1F:0x000E  W 0x17:0x1D15  W 0x15:0x0001  R 0x19:0x0A69    R Addr:0x1D15 = 0x0A69 --//--
W 0x1F:0x000E  W 0x17:0x1D15  W 0x18:0x0A69  W 0x15:0x0003    W Addr:0x1D15 = 0x0A69
W 0x1F:0x000E  W 0x17:0x2040  W 0x15:0x0001  R 0x19:0x1940    R Addr:0x2040 = 0x1940
W 0x1F:0x000E  W 0x17:0x1D15  W 0x15:0x0001  R 0x19:0x0A69    R Addr:0x1D15 = 0x0A69
W 0x1F:0x000E  W 0x17:0x1D15  W 0x18:0x0A69  W 0x15:0x0003    W Addr:0x1D15 = 0x0A69
W 0x1F:0x000E  W 0x17:0x2040  W 0x18:0x1340  W 0x15:0x0003    W Addr:0x2040 = 0x1340

W 0x1F:0x000E  W 0x17:0x1D15  W 0x15:0x0001  R 0x19:0x0A69    R Addr:0x1D15 = 0x0A69 --//--
W 0x1F:0x000E  W 0x17:0x1D15  W 0x18:0x0A69  W 0x15:0x0003    W Addr:0x1D15 = 0x0A69
W 0x1F:0x000E  W 0x17:0x2060  W 0x15:0x0001  R 0x19:0x1940    R Addr:0x2060 = 0x1940
W 0x1F:0x000E  W 0x17:0x1D15  W 0x15:0x0001  R 0x19:0x0A69    R Addr:0x1D15 = 0x0A69
W 0x1F:0x000E  W 0x17:0x1D15  W 0x18:0x0A69  W 0x15:0x0003    W Addr:0x1D15 = 0x0A69
W 0x1F:0x000E  W 0x17:0x2060  W 0x18:0x1340  W 0x15:0x0003    W Addr:0x2060 = 0x1340

W 0x1F:0x000E  W 0x17:0x1D15  W 0x15:0x0001  R 0x19:0x0A69    R Addr:0x1D15 = 0x0A69 --//--
W 0x1F:0x000E  W 0x17:0x1D15  W 0x18:0x0A69  W 0x15:0x0003    W Addr:0x1D15 = 0x0A69
W 0x1F:0x000E  W 0x17:0x2080  W 0x15:0x0001  R 0x19:0x1940    R Addr:0x2080 = 0x1940
W 0x1F:0x000E  W 0x17:0x1D15  W 0x15:0x0001  R 0x19:0x0A69    R Addr:0x1D15 = 0x0A69
W 0x1F:0x000E  W 0x17:0x1D15  W 0x18:0x0A69  W 0x15:0x0003    W Addr:0x1D15 = 0x0A69
W 0x1F:0x000E  W 0x17:0x2080  W 0x18:0x1340  W 0x15:0x0003    W Addr:0x2080 = 0x1340

W 0x1F:0x000E  W 0x17:0x03F7  W 0x15:0x0001  R 0x19:0x0000    R Addr:0x03F7 = 0x0000 RTL8367C_REG_BYPASS_LINE_RATE
W 0x1F:0x000E  W 0x17:0x03F7  W 0x18:0x0000  W 0x15:0x0003    W Addr:0x03F7 = 0x0000 RTL8367C_REG_BYPASS_LINE_RATE

W 0x1F:0x000E  W 0x17:0x6602  W 0x18:0x7180  W 0x15:0x0003    W Addr:0x6602 = 0x7180 RTL8367C_REG_SDS_INDACS_DATA    
W 0x1F:0x000E  W 0x17:0x6601  W 0x18:0x0002  W 0x15:0x0003    W Addr:0x6601 = 0x0002 RTL8367C_REG_SDS_INDACS_ADR    
W 0x1F:0x000E  W 0x17:0x6600  W 0x18:0x00C0  W 0x15:0x0003    W Addr:0x6600 = 0x00C0 RTL8367C_REG_SDS_INDACS_CMD
    
W 0x1F:0x000E  W 0x17:0x6602  W 0x18:0x04D7  W 0x15:0x0003    W Addr:0x6602 = 0x04D7 RTL8367C_REG_SDS_INDACS_DATA
W 0x1F:0x000E  W 0x17:0x6601  W 0x18:0x0480  W 0x15:0x0003    W Addr:0x6601 = 0x0480 RTL8367C_REG_SDS_INDACS_ADR
W 0x1F:0x000E  W 0x17:0x6600  W 0x18:0x00C0  W 0x15:0x0003    W Addr:0x6600 = 0x00C0 RTL8367C_REG_SDS_INDACS_CMD

W 0x1F:0x000E  W 0x17:0x6602  W 0x18:0xF994  W 0x15:0x0003    W Addr:0x6602 = 0xF994 RTL8367C_REG_SDS_INDACS_DATA
W 0x1F:0x000E  W 0x17:0x6601  W 0x18:0x0481  W 0x15:0x0003    W Addr:0x6601 = 0x0481 RTL8367C_REG_SDS_INDACS_ADR
W 0x1F:0x000E  W 0x17:0x6600  W 0x18:0x00C0  W 0x15:0x0003    W Addr:0x6600 = 0x00C0 RTL8367C_REG_SDS_INDACS_CMD

W 0x1F:0x000E  W 0x17:0x6602  W 0x18:0x31A2  W 0x15:0x0003    W Addr:0x6602 = 0x31A2 RTL8367C_REG_SDS_INDACS_DATA
W 0x1F:0x000E  W 0x17:0x6601  W 0x18:0x0482  W 0x15:0x0003    W Addr:0x6601 = 0x0482 RTL8367C_REG_SDS_INDACS_ADR
W 0x1F:0x000E  W 0x17:0x6600  W 0x18:0x00C0  W 0x15:0x0003    W Addr:0x6600 = 0x00C0 RTL8367C_REG_SDS_INDACS_CMD

W 0x1F:0x000E  W 0x17:0x6602  W 0x18:0x6960  W 0x15:0x0003    W Addr:0x6602 = 0x6960 RTL8367C_REG_SDS_INDACS_DATA
W 0x1F:0x000E  W 0x17:0x6601  W 0x18:0x0483  W 0x15:0x0003    W Addr:0x6601 = 0x0483 RTL8367C_REG_SDS_INDACS_ADR
W 0x1F:0x000E  W 0x17:0x6600  W 0x18:0x00C0  W 0x15:0x0003    W Addr:0x6600 = 0x00C0 RTL8367C_REG_SDS_INDACS_CMD

W 0x1F:0x000E  W 0x17:0x6602  W 0x18:0x9728  W 0x15:0x0003    W Addr:0x6602 = 0x9728 RTL8367C_REG_SDS_INDACS_DATA
W 0x1F:0x000E  W 0x17:0x6601  W 0x18:0x0484  W 0x15:0x0003    W Addr:0x6601 = 0x0484 RTL8367C_REG_SDS_INDACS_ADR
W 0x1F:0x000E  W 0x17:0x6600  W 0x18:0x00C0  W 0x15:0x0003    W Addr:0x6600 = 0x00C0 RTL8367C_REG_SDS_INDACS_CMD

W 0x1F:0x000E  W 0x17:0x6602  W 0x18:0x9D85  W 0x15:0x0003    W Addr:0x6602 = 0x9D85 RTL8367C_REG_SDS_INDACS_DATA
W 0x1F:0x000E  W 0x17:0x6601  W 0x18:0x0423  W 0x15:0x0003    W Addr:0x6601 = 0x0423 RTL8367C_REG_SDS_INDACS_ADR
W 0x1F:0x000E  W 0x17:0x6600  W 0x18:0x00C0  W 0x15:0x0003    W Addr:0x6600 = 0x00C0 RTL8367C_REG_SDS_INDACS_CMD

W 0x1F:0x000E  W 0x17:0x6602  W 0x18:0xD810  W 0x15:0x0003    W Addr:0x6602 = 0xD810 RTL8367C_REG_SDS_INDACS_DATA
W 0x1F:0x000E  W 0x17:0x6601  W 0x18:0x0424  W 0x15:0x0003    W Addr:0x6601 = 0x0424 RTL8367C_REG_SDS_INDACS_ADR
W 0x1F:0x000E  W 0x17:0x6600  W 0x18:0x00C0  W 0x15:0x0003    W Addr:0x6600 = 0x00C0 RTL8367C_REG_SDS_INDACS_CMD

W 0x1F:0x000E  W 0x17:0x1D11  W 0x15:0x0001  R 0x19:0x1500    R Addr:0x1D11 = 0x1500 RTL8367C_REG_SDS_MISC
W 0x1F:0x000E  W 0x17:0x1D11  W 0x18:0x1540  W 0x15:0x0003    W Addr:0x1D11 = 0x1540 RTL8367C_REG_SDS_MISC
W 0x1F:0x000E  W 0x17:0x1D11  W 0x15:0x0001  R 0x19:0x1540    R Addr:0x1D11 = 0x1540 RTL8367C_REG_SDS_MISC
W 0x1F:0x000E  W 0x17:0x1D11  W 0x18:0x1540  W 0x15:0x0003    W Addr:0x1D11 = 0x1540 RTL8367C_REG_SDS_MISC
W 0x1F:0x000E  W 0x17:0x1305  W 0x15:0x0001  R 0x19:0xC000    R Addr:0x1305 = 0xC000 RTL8367C_REG_DIGITAL_INTERFACE_SELECT
W 0x1F:0x000E  W 0x17:0x1305  W 0x18:0xC090  W 0x15:0x0003    W Addr:0x1305 = 0xC090 RTL8367C_REG_DIGITAL_INTERFACE_SELECT

W 0x1F:0x000E  W 0x17:0x6602  W 0x18:0x7106  W 0x15:0x0003    W Addr:0x6602 = 0x7106
W 0x1F:0x000E  W 0x17:0x6601  W 0x18:0x0003  W 0x15:0x0003    W Addr:0x6601 = 0x0003
W 0x1F:0x000E  W 0x17:0x6600  W 0x18:0x00C0  W 0x15:0x0003    W Addr:0x6600 = 0x00C0

W 0x1F:0x000E  W 0x17:0x1D11  W 0x15:0x0001  R 0x19:0x1540    R Addr:0x1D11 = 0x1540 RTL8367C_REG_SDS_MISC
W 0x1F:0x000E  W 0x17:0x1D11  W 0x15:0x0001  R 0x19:0x1540    R Addr:0x1D11 = 0x1540 RTL8367C_REG_SDS_MISC
W 0x1F:0x000E  W 0x17:0x1D11  W 0x15:0x0001  R 0x19:0x1540    R Addr:0x1D11 = 0x1540 RTL8367C_REG_SDS_MISC
W 0x1F:0x000E  W 0x17:0x1D11  W 0x15:0x0001  R 0x19:0x1540    R Addr:0x1D11 = 0x1540 RTL8367C_REG_SDS_MISC
W 0x1F:0x000E  W 0x17:0x1D11  W 0x15:0x0001  R 0x19:0x1540    R Addr:0x1D11 = 0x1540 RTL8367C_REG_SDS_MISC
W 0x1F:0x000E  W 0x17:0x1D11  W 0x15:0x0001  R 0x19:0x1540    R Addr:0x1D11 = 0x1540 RTL8367C_REG_SDS_MISC
W 0x1F:0x000E  W 0x17:0x1D11  W 0x15:0x0001  R 0x19:0x1540    R Addr:0x1D11 = 0x1540 RTL8367C_REG_SDS_MISC
W 0x1F:0x000E  W 0x17:0x1D11  W 0x15:0x0001  R 0x19:0x1540    R Addr:0x1D11 = 0x1540 RTL8367C_REG_SDS_MISC
W 0x1F:0x000E  W 0x17:0x1D11  W 0x18:0x1540  W 0x15:0x0003    W Addr:0x1D11 = 0x1540 RTL8367C_REG_SDS_MISC
W 0x1F:0x000E  W 0x17:0x1D11  W 0x15:0x0001  R 0x19:0x1540    R Addr:0x1D11 = 0x1540 RTL8367C_REG_SDS_MISC
W 0x1F:0x000E  W 0x17:0x1D11  W 0x18:0x1540  W 0x15:0x0003    W Addr:0x1D11 = 0x1540 RTL8367C_REG_SDS_MISC
W 0x1F:0x000E  W 0x17:0x1D11  W 0x15:0x0001  R 0x19:0x1540    R Addr:0x1D11 = 0x1540 RTL8367C_REG_SDS_MISC
W 0x1F:0x000E  W 0x17:0x1D11  W 0x18:0x1740  W 0x15:0x0003    W Addr:0x1D11 = 0x1740 RTL8367C_REG_SDS_MISC
W 0x1F:0x000E  W 0x17:0x1D11  W 0x15:0x0001  R 0x19:0x1740    R Addr:0x1D11 = 0x1740 RTL8367C_REG_SDS_MISC
W 0x1F:0x000E  W 0x17:0x1D11  W 0x18:0x3740  W 0x15:0x0003    W Addr:0x1D11 = 0x3740 RTL8367C_REG_SDS_MISC
W 0x1F:0x000E  W 0x17:0x1D11  W 0x15:0x0001  R 0x19:0x3740    R Addr:0x1D11 = 0x3740 RTL8367C_REG_SDS_MISC
W 0x1F:0x000E  W 0x17:0x1D11  W 0x18:0x7740  W 0x15:0x0003    W Addr:0x1D11 = 0x7740 RTL8367C_REG_SDS_MISC
W 0x1F:0x000E  W 0x17:0x1311  W 0x18:0x1076  W 0x15:0x0003    W Addr:0x1311 = 0x1076 RTL8367C_REG_DIGITAL_INTERFACE1_FORCE
W 0x1F:0x000E  W 0x17:0x08A2  W 0x18:0x0040  W 0x15:0x0003    W Addr:0x08A2 = 0x0040 RTL8367C_REG_PORT_ISOLATION_PORT0_MASK
W 0x1F:0x000E  W 0x17:0x08A3  W 0x18:0x005E  W 0x15:0x0003    W Addr:0x08A3 = 0x005E RTL8367C_REG_PORT_ISOLATION_PORT1_MASK
W 0x1F:0x000E  W 0x17:0x08A4  W 0x18:0x005E  W 0x15:0x0003    W Addr:0x08A4 = 0x005E RTL8367C_REG_PORT_ISOLATION_PORT2_MASK
W 0x1F:0x000E  W 0x17:0x08A5  W 0x18:0x005E  W 0x15:0x0003    W Addr:0x08A5 = 0x005E RTL8367C_REG_PORT_ISOLATION_PORT3_MASK
W 0x1F:0x000E  W 0x17:0x08A6  W 0x18:0x005E  W 0x15:0x0003    W Addr:0x08A6 = 0x005E RTL8367C_REG_PORT_ISOLATION_PORT4_MASK

W 0x1F:0x000E  W 0x17:0x1D15  W 0x15:0x0001  R 0x19:0x0A69    R Addr:0x1D15 = 0x0A69 RTL8367C_REG_GPHY_OCP_MSB_0
W 0x1F:0x000E  W 0x17:0x1D15  W 0x18:0x0A69  W 0x15:0x0003    W Addr:0x1D15 = 0x0A69 RTL8367C_REG_GPHY_OCP_MSB_0
W 0x1F:0x000E  W 0x17:0x2101  W 0x15:0x0001  R 0x19:0x0418    R Addr:0x2101 = 0x0418 rtl8367c_getAsicPHYOCPReg
W 0x1F:0x000E  W 0x17:0x1D15  W 0x15:0x0001  R 0x19:0x0A69    R Addr:0x1D15 = 0x0A69 RTL8367C_REG_GPHY_OCP_MSB_0
W 0x1F:0x000E  W 0x17:0x1D15  W 0x18:0x0A69  W 0x15:0x0003    W Addr:0x1D15 = 0x0A69 RTL8367C_REG_GPHY_OCP_MSB_0
W 0x1F:0x000E  W 0x17:0x2101  W 0x18:0x0438  W 0x15:0x0003    W Addr:0x2101 = 0x0438 rtl8367c_setAsicPHYOCPReg

W 0x1F:0x000E  W 0x17:0x1D15  W 0x15:0x0001  R 0x19:0x0A69    R Addr:0x1D15 = 0x0A69 --//--
W 0x1F:0x000E  W 0x17:0x1D15  W 0x18:0x0A69  W 0x15:0x0003    W Addr:0x1D15 = 0x0A69
W 0x1F:0x000E  W 0x17:0x2121  W 0x15:0x0001  R 0x19:0x0418    R Addr:0x2121 = 0x0418
W 0x1F:0x000E  W 0x17:0x1D15  W 0x15:0x0001  R 0x19:0x0A69    R Addr:0x1D15 = 0x0A69
W 0x1F:0x000E  W 0x17:0x1D15  W 0x18:0x0A69  W 0x15:0x0003    W Addr:0x1D15 = 0x0A69
W 0x1F:0x000E  W 0x17:0x2121  W 0x18:0x0438  W 0x15:0x0003    W Addr:0x2121 = 0x0438

W 0x1F:0x000E  W 0x17:0x1D15  W 0x15:0x0001  R 0x19:0x0A69    R Addr:0x1D15 = 0x0A69 --//--
W 0x1F:0x000E  W 0x17:0x1D15  W 0x18:0x0A69  W 0x15:0x0003    W Addr:0x1D15 = 0x0A69
W 0x1F:0x000E  W 0x17:0x2141  W 0x15:0x0001  R 0x19:0x0418    R Addr:0x2141 = 0x0418
W 0x1F:0x000E  W 0x17:0x1D15  W 0x15:0x0001  R 0x19:0x0A69    R Addr:0x1D15 = 0x0A69
W 0x1F:0x000E  W 0x17:0x1D15  W 0x18:0x0A69  W 0x15:0x0003    W Addr:0x1D15 = 0x0A69
W 0x1F:0x000E  W 0x17:0x2141  W 0x18:0x0438  W 0x15:0x0003    W Addr:0x2141 = 0x0438

W 0x1F:0x000E  W 0x17:0x1D15  W 0x15:0x0001  R 0x19:0x0A69    R Addr:0x1D15 = 0x0A69 --//--
W 0x1F:0x000E  W 0x17:0x1D15  W 0x18:0x0A69  W 0x15:0x0003    W Addr:0x1D15 = 0x0A69
W 0x1F:0x000E  W 0x17:0x2161  W 0x15:0x0001  R 0x19:0x0418    R Addr:0x2161 = 0x0418
W 0x1F:0x000E  W 0x17:0x1D15  W 0x15:0x0001  R 0x19:0x0A69    R Addr:0x1D15 = 0x0A69
W 0x1F:0x000E  W 0x17:0x1D15  W 0x18:0x0A69  W 0x15:0x0003    W Addr:0x1D15 = 0x0A69
W 0x1F:0x000E  W 0x17:0x2161  W 0x18:0x0438  W 0x15:0x0003    W Addr:0x2161 = 0x0438

W 0x1F:0x000E  W 0x17:0x1D15  W 0x15:0x0001  R 0x19:0x0A69    R Addr:0x1D15 = 0x0A69 --//--
W 0x1F:0x000E  W 0x17:0x1D15  W 0x18:0x0A69  W 0x15:0x0003    W Addr:0x1D15 = 0x0A69
W 0x1F:0x000E  W 0x17:0x2181  W 0x15:0x0001  R 0x19:0x0418    R Addr:0x2181 = 0x0418
W 0x1F:0x000E  W 0x17:0x1D15  W 0x15:0x0001  R 0x19:0x0A69    R Addr:0x1D15 = 0x0A69
W 0x1F:0x000E  W 0x17:0x1D15  W 0x18:0x0A69  W 0x15:0x0003    W Addr:0x1D15 = 0x0A69
W 0x1F:0x000E  W 0x17:0x2181  W 0x18:0x0438  W 0x15:0x0003    W Addr:0x2181 = 0x0438

Jest to bardzo podobne do tego API:
https://github.com/RMerl/asuswrt-merlin … /rtl8365mb

13

(64 odpowiedzi, napisanych Oprogramowanie / Software)

Przebiegi z bootloadera, ktore ustawiaja switch zrzucone, jutro je opracuje i wyciagne juz konkretne
zapisywane i odczytywane adresy oraz dane. Moze faktycznie jakies stery beda pasowac, trzeba porownac.

https://ufile.io/nbo1q

Drugi bootloader wykonuje polecenie

bootcmd=bootm 0x9f040000

A pod adresem 0x40000 w flash'u taki oto naglowek sie znajduje:


00 00 01 00 55 AA 9D D1 A8 C8 83 31 C9 69 FB BF 
BC F0 D4 32 70 C7 AA 55 80 06 00 00 80 06 00 00 
00 00 00 00 00 00 00 09 00 00 00 00 00 01 D8 00 
00 01 D8 00 00 00 08 00 00 01 E0 00 00 00 20 00 
00 02 00 00 00 01 00 00 00 03 00 00 00 01 00 00 
00 04 00 00 00 00 02 00 00 04 02 00 00 10 00 7C 
00 14 02 7C 00 56 FD 84 00 6B 00 00 00 15 00 00 
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
DA C2 BF 10 6E C5 C8 D7 15 29 E5 A0 5E F8 3E B3 
F7 2C 45 0A C3 D8 D9 DC BC 3D 3B B5 2C DB 9A 92 
FA EB BB B5 0E 14 8A F4 B5 E7 C2 FE FB BD 0C B8 
57 44 52 37 35 30 30 56 36 00 00 00 00 00 00 02 
B7 04 64 ED B4 28 5E 5F 58 22 F6 6F CF 0F A5 8C 
E6 D1 C7 6D 2D 60 24 D1 84 DC D8 84 73 65 D6 6D 
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

Daje on takie informacje:

struct fw_header {
    uint32_t     version;        /* 0x00: header version */ --> 00 00 01 00
    char         fw_version[48]; /* 0x04: fw version string */ --> 55 AA 9D D1 A8 C8 83 31 C9 69 FB BF BC F0 D4 32 70 C7 AA 55 80 06 00 00 80 06 00 00 00 00 00 00 00 00 00 09 00 00 00 00 00 01 D8 00 00 01 D8 00
    uint32_t     hw_id;          /* 0x34: product id */ --> 00 00 08 00
    uint32_t     hw_ver;         /* 0x38: product version */ --> 00 01 E0 00
    uint32_t     add_hw_ver;     /* 0x3c: additional hardware version */ --> 00 00 20 00
    uint8_t      md5sum1[MD5SUM_LEN]; /* 0x40 */ --> 00 02 00 00 00 01 00 00 00 03 00 00 00 01 00 00
    uint32_t     unk1;           /* 0x50: 0x00000000 */ --> 00 04 00 00
    uint8_t      md5sum2[MD5SUM_LEN]; /* 0x54 */ --> 00 00 02 00 00 04 02 00 00 10 00 7C 00 14 02 7C
    uint32_t     unk2;           /* 0x64: 0xffffffff */ --> 00 56 FD 84
    uint32_t     kernel_la;      /* 0x68: kernel load address */ --> 00 6B 00 00
    uint32_t     kernel_ep;      /* 0x6c: kernel entry point */ --> 00 15 00 00
    uint32_t     fw_length;      /* 0x70: total length of the image */ --> 00 00 00 00
    uint32_t     kernel_ofs;     /* 0x74: kernel data offset */ --> 00 00 00 00
    uint32_t     kernel_len;     /* 0x78: kernel data length */ --> 00 00 00 00
    uint32_t     rootfs_ofs;     /* 0x7c: rootfs data offset */ --> 00 00 00 00
    uint32_t     rootfs_len;     /* 0x80: rootfs data length */ --> 00 00 00 00
    uint32_t     boot_ofs;       /* 0x84: bootloader offset */ --> 00 00 00 00
    uint32_t     boot_len;       /* 0x88: bootloader length */ --> 00 00 00 00
    uint16_t     magic1;         /* 0x8c: swRevision[0] */--> 00 00
    uint8_t      sver_hi;        /* 0x8e: swRevision[1] */ --> 00
    uint8_t      sver_lo;        /* 0x8f: swRevision[2] */ --> 00
    uint8_t      magic2;         /* 0x90: platformVer[0] */ --> DA
    uint8_t      ver_hi;         /* 0x91: platformVer[1] */ --> C2
    uint8_t      ver_mid;        /* 0x92: platformVer[2] */ --> BF
    uint8_t      ver_lo;         /* 0x93: platformVer[3] */ --> 10
    uint32_t     unk3;           /* 0x94: FIXME: changing value */ --> 6E C5 C8 D7
    uint8_t      sig1[128];      /* 0xD0: signature (boot)+kernel+rootfs */ --> B7 04 64 ED B4 28 5E 5F 58 22 F6 6F CF 0F A5 8C E6 D1 C7 6D 2D 60 24 D1 84 DC D8 84 73 65 D6 6D
    uint8_t      sig2[128];      /* 0x150: unused: 0x00 */
    uint8_t      pad[48];
}

A to jest fragment bootlog'u :

## Booting image at 9f040000 ...
   Uncompressing Kernel Image ... OK
No initrd
## Transferring control to Linux (at address 80060000) ...
## Giving linux memsize in bytes, 67108864

I tu cos mi ten adres 0x80060000 kupy sie nie trzyma z naglowkiem (?)

14

(64 odpowiedzi, napisanych Oprogramowanie / Software)

Ok, dzieki za podpowiedz.
Sprawa sie nieco wyjasnila.

Zastanawiam sie czy nie podejsc do tego z innej strony,
czyli od wymiany pierwszego bootloadera.

Spojrze na kody od WR1043 V4, gdzie tez jest QCA9563, a
jutro jak sie uda zrzuce transmisje MDIO ustawiajaca switcha.

Moze uda mi sie to jakos do kupy skleic.

Co o takim podejsciu myslisz?

15

(64 odpowiedzi, napisanych Oprogramowanie / Software)

No wlasnie ta linijka mi nie pasowala.
Na co to moze wskazywac? Moze jakas podpowiedz? smile

Sprzet jak sprzet, switcha ma tylko dziwacznego.

Jesli tylko kernel zaczal by sie uruchamiac, to bedzie sens zeby
zrzucic i zdekodowac transmisje po MDIO z konfiguracja switcha.
Puki co to za pomoca polecenia w bootloaderze odczytalem jakies
tam rejestry, choc zbyt serio do tych odczytow nie podchodze.

Read phy_reg 0x0 : 0x0
Read phy_reg 0x1 : 0x10
Read phy_reg 0x2 : 0x0
Read phy_reg 0x3 : 0x0
Read phy_reg 0x4 : 0x0
Read phy_reg 0x5 : 0x0
Read phy_reg 0x6 : 0x0
Read phy_reg 0x7 : 0x0
Read phy_reg 0x8 : 0x0
Read phy_reg 0x9 : 0x0
Read phy_reg 0xa : 0x0
Read phy_reg 0xb : 0x0
Read phy_reg 0xc : 0x0
Read phy_reg 0xd : 0x0
Read phy_reg 0xe : 0x48b0
Read phy_reg 0xf : 0xffff
Read phy_reg 0x10 : 0x1
Read phy_reg 0x11 : 0x0
Read phy_reg 0x12 : 0x0
Read phy_reg 0x13 : 0x4
Read phy_reg 0x14 : 0xffff
Read phy_reg 0x15 : 0x0
Read phy_reg 0x16 : 0x0
Read phy_reg 0x17 : 0x0
Read phy_reg 0x18 : 0xf00
Read phy_reg 0x19 : 0x0
Read phy_reg 0x1a : 0x0
Read phy_reg 0x1b : 0x0
Read phy_reg 0x1c : 0x0
Read phy_reg 0x1d : 0x0
Read phy_reg 0x1e : 0x0
Read phy_reg 0x1f : 0x1
Read phy_reg 0x20 : 0x0
Read phy_reg 0x21 : 0x10
Read phy_reg 0x22 : 0x0
Read phy_reg 0x23 : 0x0
Read phy_reg 0x24 : 0x0
Read phy_reg 0x25 : 0x0
Read phy_reg 0x26 : 0x0
Read phy_reg 0x27 : 0x0
Read phy_reg 0x28 : 0x0
Read phy_reg 0x29 : 0x0
Read phy_reg 0x30 : 0x1
Read phy_reg 0x31 : 0x0
Read phy_reg 0x32 : 0x0
Read phy_reg 0x33 : 0x4
Read phy_reg 0x34 : 0xffff
Read phy_reg 0x35 : 0x0
Read phy_reg 0x36 : 0x0
Read phy_reg 0x37 : 0x0
Read phy_reg 0x38 : 0xf00
Read phy_reg 0x39 : 0x0
Read phy_reg 0x40 : 0x0
Read phy_reg 0x41 : 0x10
Read phy_reg 0x42 : 0x0
Read phy_reg 0x43 : 0x0
Read phy_reg 0x44 : 0x0
Read phy_reg 0x45 : 0x0
Read phy_reg 0x46 : 0x0
Read phy_reg 0x47 : 0x0
Read phy_reg 0x48 : 0x0
Read phy_reg 0x49 : 0x0
Read phy_reg 0x50 : 0x1
Read phy_reg 0x51 : 0x0
Read phy_reg 0x52 : 0x0
Read phy_reg 0x53 : 0x23
Read phy_reg 0x54 : 0xffff
Read phy_reg 0x55 : 0x0
Read phy_reg 0x56 : 0x1
Read phy_reg 0x57 : 0x0
Read phy_reg 0x58 : 0xf00
Read phy_reg 0x59 : 0x0
Read phy_reg 0x60 : 0x0

A jesli o uboot'a chodzi, to od sporego czasu patrze czy cos tam
sie u Ciebie rusza na QCA956x smile

16

(64 odpowiedzi, napisanych Oprogramowanie / Software)

Z tego co widze to nie ma go w pandorabox.

Mysle ze znajdzie sie pare urzadzen w Polsce jak i europie smile

Uwazam, ze temat jest do ruszenia, tylko poczatki nieco kiepskie..
Zeby chociaz cokolwiek sie kernel odezwal, a potem juz pojdzie,

17

(64 odpowiedzi, napisanych Oprogramowanie / Software)

Po odpieciu MDIO switcha od CPU switch pozostal w stanie wylaczonym,
czyli trzeba przeslac mu ustawienia zeby wogole eth dzialal.

Poprobowalem jeszcze z obrazami, jednak zaden nie dal mi nic na UART.

Serio nikt nie jest zainteresowany tym sprzetem?

18

(64 odpowiedzi, napisanych Oprogramowanie / Software)

update 17.10.2017

I skompilowalem initramfs, ale cos nie bardzo widac efekt..

ath> bootm 0x80060400


## Booting image at 80060400 ...
   Uncompressing Kernel Image ... OK
No initrd
## Transferring control to Linux (at address 00000000) ...
## Giving linux memsize in bytes, 67108864

Starting kernel ...

I na tym koniec na UART

Moze ktos ma pomysly?

19

(64 odpowiedzi, napisanych Oprogramowanie / Software)

Troche informacji :

- QCA9563 laczy sie ze switchem za pomoca SGMII
- sterowanie switchem za pomoca MDIO

Oto polaczenia:

https://i.imgur.com/T1kEtnv.jpg

Mozna by bylo wykorzystac na poczatek kod z sr3200/xd3200. , za wyjatkiem sterowania switchem.
Na poczatek przyjmijmy, ze jego inicjalizacja zajmie sie U-boot, a wiec proponowana zmiana:

static void __init sr3200_xd3200_common_setup(void)
{
    u8 *mac = (u8 *) KSEG1ADDR(0x1fff0000);

    ath79_register_m25p80(NULL);

-    ath79_register_mdio(0, 0x0);
-    mdiobus_register_board_info(sr3200_xd3200_mdio0_info,
                    ARRAY_SIZE(sr3200_xd3200_mdio0_info));

    /* GMAC0 is connected to QCA8334/QCA8337N switch */
    ath79_eth0_data.mii_bus_dev = &ath79_mdio0_device.dev;
    ath79_eth0_data.phy_if_mode = PHY_INTERFACE_MODE_SGMII;
    ath79_eth0_data.phy_mask = BIT(0);
    ath79_eth0_data.speed = SPEED_1000;
    ath79_eth0_data.duplex = DUPLEX_FULL;

    ath79_init_mac(ath79_eth0_data.mac_addr, mac, 0);
    ath79_register_eth(0);

    ath79_register_wmac(mac + 0x1000, NULL);

    ap91_pci_init(mac + 0x5000, NULL);

-    ath79_gpio_direction_select(SR3200_XD3200_GPIO_LED_SYSTEM, true);
-    ath79_gpio_direction_select(SR3200_XD3200_GPIO_LED_WLAN2G, true);

    /* Mute LEDs on boot */
-    gpio_set_value(SR3200_XD3200_GPIO_LED_SYSTEM, 1);
-    gpio_set_value(SR3200_XD3200_GPIO_LED_WLAN2G, 1);

-    ath79_gpio_output_select(SR3200_XD3200_GPIO_LED_SYSTEM, 0);
-    ath79_gpio_output_select(SR3200_XD3200_GPIO_LED_WLAN2G, 0);

-    ath79_register_gpio_keys_polled(-1, SR3200_XD3200_KEYS_POLL_INTERVAL,
                    ARRAY_SIZE(sr3200_xd3200_gpio_keys),
                    sr3200_xd3200_gpio_keys);
}

Teraz skompilowac z initramfs, tak by flash'a nie ruszac, i zobaczyc czy ruszy smile

A tu caly zrzut flash'a :

https://ufile.io/0kdgg

Nie wiem na ile rejestry tego dziwacznego switcha zgadzaja sie z innymi z rodziny,
w razie potrzeby zrzuce przebiegi na MDIO oscyloskopem czy tam analizatorem logicznym.

W przyszlosci przydal by sie tez porzadny u-boot, moze @pepe2k ma cos schowane w szafladzie?

Ktos chetny do pomocy? smile

Czy mozesz podac wiecej informacji o tym G103?
Np:
- CPU
- RAM
- flash
- gdzie mozna znalezc zrodla OpenWRT, jesli gdzies sa smile
- bootlog

Dzieki!

21

(49 odpowiedzi, napisanych Oprogramowanie / Software)

Dzieki za zdjecia!

Zrobilem mala analize, na zdjeciach widac wyniki :

Annex A, bottom
http://s5.ifotos.pl/mini/annAbot3j_aweprqq.jpg

Annex B, bottom
http://s5.ifotos.pl/mini/annBbotDS_awepxpr.jpg

Annex A, top:
http://s2.ifotos.pl/mini/annAtopWP_awepxpe.jpg

Annex B, top:
http://s5.ifotos.pl/mini/annBtopDS_awepxps.jpg

Gratis,  HH5A, Annex A:
http://s5.ifotos.pl/mini/annAHH520_awepxpq.jpg

Wyglada na to,  ze VRX208 rozpoznaje sprzet annexu po
rezystorach R47-R109, R110-R49, R111-R50.

Roznica jest w obsadzeniu rezystorow (R143,R144)/(R143,R145) ,
R126, R116 i (R117,R118). Rezystory mniejsze, w obudowie 0402 to
prawdopodobnie 0Ohm. Oczywiscie sa tez roznice o ktorych wczesniej
pisalem wink

Bardzo przydaly by sie dokladne zdjecia Fritz'a 7360 w wersji
international. Ponoc obsluguje oba annexy jednoczesnie.
https://en.avm.de/products/fritzbox/fri … ical-data/

Moze ktos mialby takie zdjecia? smile

Pozdrawiam

22

(49 odpowiedzi, napisanych Oprogramowanie / Software)

Scotch napisał/a:

Całkiem możliwe, mam również Asusa DSL-AC68U i podobno też działa na liniach z A i B:

ASUS DSL-AC68U Firmware version 3.0.0.4.380_4291 (This product supports both Annex A and Annex B)

No tu jest nieco inna sytuacja. Jest on z tego co widze na MT7510.

Jakies schematy modemow/routerow xDSL mozna znalezc na https://fcc.io/
i widac na nich, ze front-end dla xDSL mocno sie roznia w zaleznosci czy to Broadcom czy inny
producent scalaka.

Tu kilka przykladow z wariantami dla Annex'ow:
https://fccid.io/pdf.php?id=717823
https://fccid.io/pdf.php?id=906154
https://fccid.io/pdf.php?id=412521
https://fccid.io/pdf.php?id=1440662

A tu rozne inne modemy/routery xDSL, raczej leciwe:
https://fccid.io/pdf.php?id=251981
https://fccid.io/pdf.php?id=1317158
https://fccid.io/pdf.php?id=767666
https://fccid.io/pdf.php?id=667328
https://fccid.io/pdf.php?id=2060932
https://fccid.io/pdf.php?id=78599
https://fccid.io/pdf.php?id=1526961

Pozdrawiam,
Karol

23

(49 odpowiedzi, napisanych Oprogramowanie / Software)

Dzieki za zdjecia.

Tak, stanawiam sie na ile jest to wykonalne.
Z tego co widze, to layout jest bardzo zblizony.
Tu taka tabelka z porownaniem oczywistych roznic w
wartosciach elementow:

Element   F1(Annex A)     F3(Annex B)
R135        24.9R              10R
T6            UTB01802S-A  UTB01930S-A
C110        27nF                22nF
C113        ??                    brak
C115        ??                    brak
R140        1k                    brak
R141        1k                    brak

Transformatory to rzecz oczywista, jeden ma
1.4mH (Annex A), drugi 270uH (Annex B).
Kondensatory C110 tez prosta sprawa.
Wieksze wartosci przenosza nizsze czestotliwosci (Annex A).

Jest jeszcze roznica w okolicach CP18-CP22, ale jak sadze sa
to kondensatory odsprzegajace zasilanie, wiec bez wplywu na
Annex.

Gdzies na forach widzialem, ze przy zamianie Annexu przez sam
firmware krzyczy ze jest niewlasciwy.

Jestem ciekaw, czy rozpoznaje tylko po ww elementach, czy
jest cos jeszcze.

Wiesz moze, czy nie ma problemu z uruchomieniem firmware od
Annex B na sprzecie z Annex A? Bo teoretycznie wartosci
elementow powinny na to pozwolic.

Moze to ktores elementy po drugiej stronie PCB?

Nie wiem na ile dobrze zrozumialem, ale ponoc jakies Fritz'e
w wersji international z VR9 moga pracowac zarowno z Annexem A i B.

Zalaczam zdjecia wersji F3, tak dla porownania smile

http://s2.ifotos.pl/mini/DSC003092_awrrsna.jpg
http://s10.ifotos.pl/mini/DSC00310J_awrrsep.jpg
http://s5.ifotos.pl/mini/DSC003212_awrrsqx.jpg

Jak masz, to wrzuc jeszcze zdjecie PCB od tylu.

Pozdrawiam,
Karol

24

(49 odpowiedzi, napisanych Oprogramowanie / Software)

Witajcie!
Czy ma ktos moze dokladne zdjecie P-2812HNU-F1?
Interesuja mnie okolice ukladu VRX208 - chcialbym porownac
wersje F1 i F3.

Pozdrawiam,
Karol

25

(11 odpowiedzi, napisanych Oprogramowanie / Software)

Dzieki za fotke!
Mozesz zrzucic logi?
Widze ze masz juz piny UARTa wlutowane smile

Sprobuj kombinacji login/passwd :
admin / 1234
admin / admin
root / admin
root / 1234