Jump to content

Firmware Recovery Help


Ninja_Hobo

Recommended Posts

Hello fam,

Plz in dire need of your assistance.

Had been running my tetra fine on latest firmware for weeks as my main access point at home,

suddenly went to do a mac change and it went offline with all 3 lights on.

tried the reset button with no luck of seeing the pineapple come back up.

Decided to do a firmware recovery as per Hak5 Docs

Being on Manjaro XFCE, i used the ip command to try and set the static ip address

ip link show 

revealed the name of the network interface

10: enp0s20f0u5

Following this guide i used 

sudo ip addr add 192.168.1.2/24 dev enp0s20f0u5

This says its connected me, however I get pings  from

192.168.1.2

but no pings from 192.168.1.1

ping: sendmsg: Operation not permitted

and no browser connection.

Can you please tell me what im doing wrong?

Link to comment
Share on other sites

  • 2 weeks later...

What output do you get from the UART port when connecting by Serial? That would be really helpful in diagnosing the issue. It's possible the device is not in the bootloader. If you connect by serial, you will have the option to enter the bootloader by key press rather than holding the button.

Link to comment
Share on other sites

Thanks Darren,
When the minicom data was done I pressed enter and it asked me to login as with ssh.
Managed to get into the tetra, but not sure where to go from here to reset or get web interface working again...
- no leds on
- when i connect Ethernet to PC i get no connection
minicom output is as follows...

Welcome to minicom 2.7.1

OPTIONS: I18n 
Compiled on Jul  5 2020, 23:23:36.
Port /dev/ttyUSB0, 10:13:45

Press CTRL-A Z for help on special keys

eth0 up
WASP ----> S27 PHY 
s27 reg init lan 
ATHRS27: resetting s27
ATHRS27: s27 reset done
: cfg1 0x800c0000 cfg2 0x7214
eth1: 00:03:7f:09:0b:ad
athrs27_phy_setup ATHR_PHY_CONTROL 0 :1000
athrs27_phy_setup ATHR_PHY_SPEC_STAUS 0 :10
athrs27_phy_setup ATHR_PHY_CONTROL 1 :1000
athrs27_phy_setup ATHR_PHY_SPEC_STAUS 1 :10
athrs27_phy_setup ATHR_PHY_CONTROL 2 :1000
athrs27_phy_setup ATHR_PHY_SPEC_STAUS 2 :10
athrs27_phy_setup ATHR_PHY_CONTROL 3 :1000
athrs27_phy_setup ATHR_PHY_SPEC_STAUS 3 :10                                                        
eth1 up                                                                                            
eth0, eth1                                                                                         
Atheros on-chip NAND FLash Controller Driver, Version 0.1 (c) 2010 Atheros Communications, Ltd.    
Ath Nand ID[87fef17c]: 2c:48:00:26:89                                                              
ONFI MICRON      MT29F16G08ABABAWP                                                                 
Micronset ns -0x80000-0x1000                                                                       
====== NAND Parameters ======                                                                      
sc = 0x87fef158 bbt = 0x87f98538 bbt_size = 0x400 nf_ctrl = 0x485                                  
page = 0x1000 block = 0x80000 oob = 0xe0                                                           
size = 2048MB                                                                                      
Setting 0xb8116290 to 0x20402d0f                                                                   
Hit any key to stop autoboot:  0                                                                   
                                                                                                   
Loading from device 0: ath-nand (offset 0x0)                                                       
Booting image at: 0x81000000                                                                       
   Image Name:   MIPS OpenWrt Linux-4.14.171                                                       
   Created:      2020-02-27  21:05:12 UTC                                                          
   Image Type:   MIPS Linux Kernel Image (lzma compressed)                                         
   Data Size:    1965951 Bytes =  1.9 MB                                                           
   Load Address: 80060000                                                                          
   Entry Point:  80060000                                                                          
Uncompressing kernel image... OK!                                                                  
No initrd                                                                                          
## Transferring control to Linux (at address 80060000) ...                                         
## Giving linux memsize in bytes, 134217728                                                        
                                                                                                   
Starting kernel ...                                                                                
                                                                                                   
[    0.000000] Linux version 4.14.171 (@ddede1978581) (gcc version 7.5.0 (OpenWrt GCC 7.5.0 r109470
[    0.000000] bootconsole [early0] enabled                                                        
[    0.000000] CPU0 revision is: 0001974c (MIPS 74Kc)                                              
[    0.000000] SoC: Atheros AR9344 rev 3                                                           
[    0.000000] Determined physical RAM map:                                                        
[    0.000000]  memory: 08000000 @ 00000000 (usable)                                               
[    0.000000] Initrd not found or empty - disabling initrd                                        
[    0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.                     
[    0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes              
[    0.000000] Zone ranges:                                                                        
[    0.000000]   Normal   [mem 0x0000000000000000-0x0000000007ffffff]                              
[    0.000000] Movable zone start for each node                                                    
[    0.000000] Early memory node ranges                                                            
[    0.000000]   node   0: [mem 0x0000000000000000-0x0000000007ffffff]                             
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000007ffffff]                    
[    0.000000] random: get_random_bytes called from start_kernel+0x90/0x478 with crng_init=0       
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 32512                        
[    0.000000] Kernel command line:  board=PINEAPPLE-TETRA console=ttyS0,115200 mtdparts=spi0.0:25d
[    0.000000] PID hash table entries: 512 (order: -1, 2048 bytes)                                 
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)                      
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)                        
[    0.000000] Writing ErrCtl register=00000000                                                    
[    0.000000] Readback ErrCtl register=00000000                                                   
[    0.000000] Memory: 124044K/131072K available (3993K kernel code, 166K rwdata, 900K rodata, 180)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1                          
[    0.000000] NR_IRQS: 51                                                                         
[    0.000000] Clocks: CPU:560.000MHz, DDR:400.000MHz, AHB:200.000MHz, Ref:40.000MHz               
[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 6825930166s
[    0.000009] sched_clock: 32 bits at 280MHz, resolution 3ns, wraps every 7669584382ns            
[    0.008314] Calibrating delay loop... 278.93 BogoMIPS (lpj=1394688)                             
[    0.084945] pid_max: default: 32768 minimum: 301                                                
[    0.090077] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)                         
[    0.097139] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)                    
[    0.106938] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1911260s
[    0.117450] futex hash table entries: 256 (order: -1, 3072 bytes)                               
[    0.124437] NET: Registered protocol family 16                                                  
[    0.130582] MIPS: machine is Hak5 WiFi Pineapple TETRA                                          
[    0.613905] registering PCI controller with io_map_base unset                                   
[    0.636439] PCI host bridge to bus 0000:00                                                      
[    0.640865] pci_bus 0000:00: root bus resource [mem 0x10000000-0x13ffffff]                      
[    0.648178] pci_bus 0000:00: root bus resource [io  0x0000]                                     
[    0.654125] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]                       
[    0.661350] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]          
[    0.669847] pci 0000:00:00.0: invalid calibration data                                          
[    0.675749] pci 0000:00:00.0: BAR 0: assigned [mem 0x10000000-0x1001ffff 64bit]                 
[    0.683582] pci 0000:00:00.0: BAR 6: assigned [mem 0x10020000-0x1002ffff pref]                  
[    0.691924] clocksource: Switched to clocksource MIPS                                           
[    0.698429] NET: Registered protocol family 2                                                   
[    0.703886] TCP established hash table entries: 1024 (order: 0, 4096 bytes)                     
[    0.711312] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)                            
[    0.718145] TCP: Hash tables configured (established 1024 bind 1024)                            
[    0.725056] UDP hash table entries: 256 (order: 0, 4096 bytes)                                 .
[    0.773260] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 R
[    0.794660] io scheduler noop registered
[    0.798837] io scheduler deadline registered (default)
[    0.804728] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[    0.811855] console [ttyS0] disabled
[    0.835782] serial8250.0: ttyS0 at MMIO 0x18020000 (irq = 11, base_baud = 2500000) is a 16550A
[    0.844981] console [ttyS0] enabled
[    0.844981] console [ttyS0] enabled
[    0.852407] bootconsole [early0] disabled
[    0.852407] bootconsole [early0] disabled
[    0.864729] m25p80 spi0.0: found s25fl008k, expected m25p80
[    0.879954] m25p80 spi0.0: s25fl008k (1024 Kbytes)
[    0.884874] 4 cmdlinepart partitions found on MTD device spi0.0
[    0.890874] Creating 4 MTD partitions on "spi0.0":
[    0.895768] 0x000000000000-0x000000040000 : "u-boot"
[    0.902625] 0x000000040000-0x000000080000 : "u-boot-env"
[    0.909414] 0x000000080000-0x0000000c0000 : "caldata"
[    0.916676] 0x0000000c0000-0x000000100000 : "mb0"
[    0.924498] nand: device found, Manufacturer ID: 0x2c, Chip ID: 0x48
[    0.930951] nand: Micron MT29F16G08ABABAWP 2GiB 3.3V 8-bit
[    0.936562] nand: 2048 MiB, SLC, erase size: 512 KiB, page size: 4096, OOB size: 224
[    0.944486] Scanning 
[    0.954329] random: fast init done
[    1.227808] 2 cmdlinepart partitions found on MTD device ar934x-nfc
[    1.234184] Creating 2 MTD partitions on "ar934x-nfc":
[    1.239411] 0x000000000000-0x000000200000 : "kernel"
[    1.245855] 0x000000200000-0x000080000000 : "ubi"
[    1.256146] libphy: Fixed MDIO Bus: probed
[    1.272304] libphy: ag71xx_mdio: probed
[    1.903808] ag71xx-mdio.1: Found an AR934X built-in switch
[    1.955998] eth0: Atheros AG71xx at 0xba000000, irq 5, mode: gmii
[    2.593913] ag71xx ag71xx.0: connected to PHY at ag71xx-mdio.1:04 [uid=004dd042, driver=Generic]
[    2.603822] eth1: Atheros AG71xx at 0xb9000000, irq 4, mode: mii
[    2.611750] NET: Registered protocol family 10
[    2.621009] Segment Routing with IPv6
[    2.624904] NET: Registered protocol family 17
[    2.630023] 8021q: 802.1Q VLAN Support v1.8
[    2.638594] UBI: auto-attach mtd5
[    2.642033] ubi0: attaching mtd5
[    4.115304] random: crng init done
[   14.199522] ubi0: scanning is finished
[   14.228700] ubi0: attached mtd5 (name "ubi", size 2046 MiB)
[   14.234414] ubi0: PEB size: 524288 bytes (512 KiB), LEB size: 516096 bytes
[   14.241392] ubi0: min./max. I/O unit sizes: 4096/4096, sub-page size 4096
[   14.248293] ubi0: VID header offset: 4096 (aligned 4096), data offset: 8192
[   14.255375] ubi0: good PEBs: 4092, bad PEBs: 0, corrupted PEBs: 0
[   14.261561] ubi0: user volume: 2, internal volumes: 1, max. volumes count: 128
[   14.268903] ubi0: max/mean erase counter: 34/2, WL threshold: 4096, image sequence number: 85853
[   14.278185] ubi0: available PEBs: 0, total reserved PEBs: 4092, PEBs reserved for bad PEB handl0
[   14.287692] ubi0: background thread "ubi_bgt0d" started, PID 295
[   14.295693] block ubiblock0_0: created from ubi0:0(rootfs)
[   14.301268] ubiblock: device ubiblock0_0 (rootfs) set to be root filesystem
[   14.316944] VFS: Mounted root (squashfs filesystem) readonly on device 254:0.
[   14.325156] Freeing unused kernel memory: 180K
[   14.329669] This architecture does not have kernel memory protection.
[   14.922158] init: Console is alive
[   14.925858] init: - watchdog -
[   16.833066] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[   17.022787] usbcore: registered new interface driver usbfs
[   17.028427] usbcore: registered new interface driver hub
[   17.033969] usbcore: registered new device driver usb
[   17.076850] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[   17.093659] SCSI subsystem initialized
[   17.103195] ehci-platform: EHCI generic platform driver
[   17.108614] ehci-platform ehci-platform: EHCI Host Controller
[   17.114513] ehci-platform ehci-platform: new USB bus registered, assigned bus number 1
[   17.124651] ehci-platform ehci-platform: TX-TX IDP fix enabled
[   17.130588] ehci-platform ehci-platform: irq 3, io mem 0x1b000000
[   17.161972] ehci-platform ehci-platform: USB 2.0 started, EHCI 1.00
[   17.169215] hub 1-0:1.0: USB hub found
[   17.173459] hub 1-0:1.0: 1 port detected
[   17.181248] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[   17.189392] ohci-platform: OHCI generic platform driver
[   17.197505] uhci_hcd: USB Universal Host Controller Interface driver
[   17.209014] usbcore: registered new interface driver usb-storage
[   17.215889] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[   17.225814] init: - preinit -
[   18.307241] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   18.543744] mount_root: loading kmods from internal overlay
[   18.596946] kmodloader: loading kernel modules from //etc/modules-boot.d/*
[   18.609491] kmodloader: done loading kernel modules from //etc/modules-boot.d/*
[   19.023966] print_req_error: I/O error, dev mtdblock4, sector 3184
[   19.030318] print_req_error: I/O error, dev mtdblock4, sector 3184
[   19.036595] Buffer I/O error on dev mtdblock4, logical block 398, async page read
[   19.110895] UBIFS (ubi0:1): background thread "ubifs_bgt0_1" started, PID 401
[   19.616575] UBIFS (ubi0:1): recovery needed
[   20.674902] UBIFS (ubi0:1): recovery completed
[   20.679492] UBIFS (ubi0:1): UBIFS: mounted UBI device 0, volume 1, name "rootfs_data"
[   20.687488] UBIFS (ubi0:1): LEB size: 516096 bytes (504 KiB), min./max. I/O unit sizes: 4096 bys
[   20.697565] UBIFS (ubi0:1): FS size: 2048901120 bytes (1953 MiB, 3970 LEBs), journal size 33546)
[   20.708794] UBIFS (ubi0:1): reserved for root: 4952683 bytes (4836 KiB)
[   20.715533] UBIFS (ubi0:1): media format: w4/r0 (latest is w5/r0), UUID BBD53F48-3B7F-4E90-9D1Fl
[   20.731415] block: attempting to load /tmp/ubifs_cfg/upper/etc/config/fstab
[   20.756982] block: extroot: not configured
[   20.761389] UBIFS (ubi0:1): un-mount UBI device 0
[   20.766240] UBIFS (ubi0:1): background thread "ubifs_bgt0_1" stops
[   20.779009] UBIFS (ubi0:1): background thread "ubifs_bgt0_1" started, PID 404
[   21.859592] UBIFS (ubi0:1): UBIFS: mounted UBI device 0, volume 1, name "rootfs_data"
[   21.867607] UBIFS (ubi0:1): LEB size: 516096 bytes (504 KiB), min./max. I/O unit sizes: 4096 bys
[   21.877691] UBIFS (ubi0:1): FS size: 2048901120 bytes (1953 MiB, 3970 LEBs), journal size 33546)
[   21.888909] UBIFS (ubi0:1): reserved for root: 4952683 bytes (4836 KiB)
[   21.895637] UBIFS (ubi0:1): media format: w4/r0 (latest is w5/r0), UUID BBD53F48-3B7F-4E90-9D1Fl
[   21.918005] mount_root: loading kmods from internal overlay
[   21.972837] kmodloader: loading kernel modules from /tmp/overlay/upper/etc/modules-boot.d/*
[   21.986367] kmodloader: done loading kernel modules from /tmp/overlay/upper/etc/modules-boot.d/*
[   22.214585] print_req_error: I/O error, dev mtdblock4, sector 3184
[   22.220931] print_req_error: I/O error, dev mtdblock4, sector 3184
[   22.227210] Buffer I/O error on dev mtdblock4, logical block 398, async page read
[   22.290779] block: attempting to load /tmp/ubifs_cfg/upper/etc/config/fstab
[   22.309399] block: extroot: not configured
[   22.320446] mount_root: switching to ubifs overlay
[   22.397467] urandom-seed: Seeding with /etc/urandom.seed
[   22.590404] procd: - early -
[   22.593512] procd: - watchdog - Failed to connect to ubus
[   23.381883] procd: - watchdog -
[   23.385484] procd: - ubus - sh: NANO: unknown operand
[   24.237164] procd: - init - Please press Enter to activate this console.
[   25.293875] kmodloader: loading kernel modules from /etc/modules.d/*
[   25.327058] Loading modules backported from Linux version v4.19.98-0-gd183c8e2647a
[   25.334812] Backport generated by backports.git v4.19.98-1-0-g8204eb99
[   25.646824] ieee80211 phy0: Atheros AR9340 Rev:3 mem=0xb8100000, irq=47
[   25.653818] pci 0000:00:00.0: using irq 40 for pin 1
[   25.658883] PCI: Enabling device 0000:00:00.0 (0000 -> 0002)
[   25.831143] ieee80211 phy1: Atheros AR9300 Rev:4 mem=0xb0000000, irq=40
[   25.993892] urngd: v1.0.2 started.
[   26.125613] usbcore: registered new interface driver ath9k_htc
[   26.182423] RPC: Registered named UNIX socket transport module.
[   26.188437] RPC: Registered udp transport module.
[   26.193262] RPC: Registered tcp transport module.
[   26.198036] RPC: Registered tcp NFSv4.1 backchannel transport module.
[   26.336993] usbcore: registered new interface driver mt76x2u
[   26.422281] usbcore: registered new interface driver rt2800usb
[   26.446202] usbcore: registered new interface driver rtl8187
[   26.521742] usbcore: registered new interface driver rtl8192cu
[   26.643932] ip6_tables: (C) 2000-2006 Netfilter Core Team
[   26.698478] usbcore: registered new interface driver cdc_acm
[   26.704290] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
[   26.763690] usbcore: registered new interface driver cdc_wdm
[   26.791209] ip_tables: (C) 2000-2006 Netfilter Core Team
[   26.837547] nf_conntrack version 0.5.0 (2048 buckets, 8192 max)
[   27.202435] usbcore: registered new interface driver ums-alauda
[   27.214009] usbcore: registered new interface driver ums-cypress
[   27.234103] usbcore: registered new interface driver ums-datafab
[   27.253829] usbcore: registered new interface driver ums-freecom
[   27.274070] usbcore: registered new interface driver ums-isd200
[   27.283147] usbcore: registered new interface driver ums-jumpshot
[   27.303895] usbcore: registered new interface driver ums-karma
[   27.324762] usbcore: registered new interface driver ums-sddr09
[   27.344190] usbcore: registered new interface driver ums-sddr55
[   27.353540] usbcore: registered new interface driver ums-usbat
[   27.418372] usbcore: registered new interface driver usbserial
[   27.424467] usbcore: registered new interface driver usbserial_generic
[   27.431178] usbserial: USB Serial support registered for generic
[   27.548192] xt_time: kernel timezone is -0000
[   27.570832] usbcore: registered new interface driver asix
[   27.599714] usbcore: registered new interface driver ax88179_178a
[   27.634900] usbcore: registered new interface driver cdc_ether
[   27.668582] usbcore: registered new interface driver pl2303
[   27.674395] usbserial: USB Serial support registered for pl2303
[   27.716248] PPP generic driver version 2.4.2
[   27.743595] NET: Registered protocol family 24
[   27.755093] usbcore: registered new interface driver rndis_host
[   27.793182] kmodloader: done loading kernel modules from /etc/modules.d/*
[   33.939310] print_req_error: I/O error, dev mtdblock4, sector 3184
[   33.952011] print_req_error: I/O error, dev mtdblock4, sector 3184
[   33.958300] Buffer I/O error on dev mtdblock4, logical block 398, async page read
[   37.616377] br-lan: port 1(eth1) entered blocking state
[   37.621695] br-lan: port 1(eth1) entered disabled state
[   37.627359] device eth1 entered promiscuous mode
[   37.658405] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
[   37.857097] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   39.724228] eth1: link up (100Mbps/Full duplex)
[   39.728880] br-lan: port 1(eth1) entered blocking state
[   39.734237] br-lan: port 1(eth1) entered forwarding state
[   39.848787] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[   42.667884] IPv6: ADDRCONF(NETDEV_UP): wlan1: link is not ready

 

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...