Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 1 https://pastebin.com/gyzLGKEs first successful mips32 compile
- 2 https://pastebin.com/nHzYRDps copied over missing libc files/tidied up (missed copying c++ over in this one)
- 3 https://pastebin.com/AzFHxnPD libqmi (glib 2.52 and util-linux 2.29 upgraded as well)
- 4 https://pastebin.com/Cyh8eivj minidlna update
- 5 https://pastebin.com/L9w8arvC gudev added
- 6 https://pastebin.com/h2xFLf2V php7 updates etc
- 7 https://pastebin.com/bHPpZrRx updated ar71xx for 4.9 (also did it for ar934x platform ["wasp"--mips74k])
- 8 https://pastebin.com/zsdTjjKQ status update on the firmware (not really exclusive to the AC55U, just packing it using mkimage vs lzma-loader etc).
- well,
- now i know why a qca955x chipset was a freakin' 69 dollar STEAL at STAPLES of all places (i got memoryexpress to pricematch), lol.
- bloody thing is using the mips AR9331.dtsi, and a weird-ass bootloader that results in the FW looking for UBI before u-boot *and* after (WTF?).
- w/e lol i totally expected to brick this shit.
- brick dump:
- ath> ? ubi
- ubi part [part] - Show or set current partition
- ubi detach - Detach UBI device.
- ubi info [l[ayout]]|[w[layout]] - Display volume and ubi layout information
- ubi create[vol] volume [size] [type] - create volume name with size
- ubi write[vol] address volume size - Write volume from address with size
- ubi read[vol] address volume [size] [offset] - Read volume to address with size
- [Legends]
- volume: character name
- size: specified in bytes
- type: s[tatic] or d[ynamic] (default=dynamic)
- ath> ubi detach
- ath> ubi create
- Error, no UBI device/partition selected!
- ath> ? mtd
- mtdparts
- - list partition table
- mtdparts delall
- - delete all partitions
- mtdparts del part-id
- - delete partition (e.g. part-id = nand0,1)
- mtdparts add <mtd-dev> <size>[@<offset>] [<name>] [ro]
- - add partition
- mtdparts default
- - reset partition table to defaults
- -----
- this command uses three environment variables:
- 'partition' - keeps current partition identifier
- partition := <part-id>
- <part-id> := <dev-id>,part_num
- 'mtdids' - linux kernel mtd device id <-> u-boot device id mapping
- mtdids=<idmap>[,<idmap>,...]
- <idmap> := <dev-id>=<mtd-id>
- <dev-id> := 'nand'|'nor'|'onenand'<dev-num>
- <dev-num> := mtd device number, 0...
- <mtd-id> := unique device tag used by linux kernel to find mtd device (mtd->name)
- 'mtdparts' - partition list
- mtdparts=mtdparts=<mtd-def>[;<mtd-def>...]
- <mtd-def> := <mtd-id>:<part-def>[,<part-def>...]
- <mtd-id> := unique device tag used by linux kernel to find mtd device (mtd->name)
- <part-def> := <size>[@<offset>][<name>][<ro-flag>]
- <size> := standard linux memsize OR '-' to denote all remaining space
- <offset> := partition start offset within the device
- <name> := '(' NAME ')'
- <ro-flag> := when set to 'ro' makes partition read-only (not used, passed to kernel)
- ath> ? nand
- nand info - show available NAND devices
- nand device [dev] - show or set current device
- nand read[.jffs2] - addr off size
- nand write[.jffs2] - addr off size - read/write `size' bytes starting
- at offset `off' to/from memory address `addr'
- nand erase [clean] [off size] - erase `size' bytes from
- offset `off' (entire device if not specified)
- nand bad - show bad blocks
- nand dump[.oob] off - dump page
- ath> mtdparts
- device nand0 <nand0>, # parts = 2
- #: name size offset mask_flags
- 0: Bootloader 0x000e0000 0x00000000 0
- 1: environment 0x00020000 0x000e0000 0
- active partition: nand0,0 - (Bootloader) 0x000e0000 @ 0x00000000
- defaults:
- mtdids : nor0=ath-nor0
- mtdparts: none
- ath> mtdparts add<INTERRUPT>
- ath> printenv
- bootcmd=tftp
- bootdelay=2
- baudrate=115200
- ethaddr=0x00:0xaa:0xbb:0xcc:0xdd:0xee
- preferred_nic=eth1
- mtdids=nand0=nand0
- filesize=2758000
- fileaddr=81000000
- ipaddr=192.168.1.1
- serverip=192.168.1.11
- autostart=no
- bootfile=dd-wrt.v24-K4-RT_AC55U.trx
- ethact=eth0
- mtdparts=mtdparts=nand0:896k(Bootloader),128k(environment)
- stdin=serial
- stdout=serial
- stderr=serial
- partition=nand0,0
- mtddevnum=0
- mtddevname=Bootloader
- Environment size: 406/131068 bytes
- ath> mtdparts add nand0 0x07e00000@0x00100000 UBI_DEV
- ath> mtdparts
- device nand0 <nand0>, # parts = 3
- #: name size offset mask_flags
- 0: Bootloader 0x000e0000 0x00000000 0
- 1: environment 0x00020000 0x000e0000 0
- 2: UBI_DEV 0x07e00000 0x00100000 0
- active partition: nand0,0 - (Bootloader) 0x000e0000 @ 0x00000000
- defaults:
- mtdids : nor0=ath-nor0
- mtdparts: none
- ath> ubi info
- Error, no UBI device/partition selected!
- ath> setenv mtdparts mtdparts=nand0:896k(Bootloader),128k(environment),126m(UBI_DEV)
- ath> saveenv
- Saving Environment to NAND...
- Erasing Nand...Writing to Nand... done
- ath> reset
- __________________sri____________________
- 944x BootROM Ver. (asic) 1.0 [Nov 8 2011 13:42:57]
- _________________________________________
- find_hif: bootstrap = 0x31e50
- Nand Flash init
- otp_get_nand_table: 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0
- ONFI: Control Setting = 0xb44
- hdr: [0xffffffff : 0xffffffff : 0xffffffff : 0xffffffff]
- nand_load_fw: read 2097151 pages
- ExcCode 03 -> TLB(store)
- EPC bfc01a28, BadVAddr ffffffff, Cause 0000000c, Status 10400006
- R0 (r0) = 00000000 R8 (t0) = ffffffff R16(s0) = bd000000 R24(t8) = 01010000
- R1 (at) = 00000001 R9 (t1) = bd0009b4 R17(s1) = 00000800 R25(t9) = bfc01284
- R2 (v0) = 000000ff R10(t2) = 00000000 R18(s2) = 00030000 R26(k0) = ffffffff
- R3 (v1) = 00000001 R11(t3) = bd000520 R19(s3) = 00010000 R27(k1) = bd007bf0
- R4 (a0) = ffffffff R12(t4) = 00000000 R20(s4) = 00000800 R28(gp) = 87e265b0
- R5 (a1) = bd004010 R13(t5) = 00000500 R21(s5) = ffffffff R29(sp) = bd007f58
- R6 (a2) = 000007ef R14(t6) = 86dab2bc R22(s6) = ffffffff R30(fp) = 00000000
- R7 (a3) = ffffffff R15(t7) = 86dab2b8 R23(s7) = bd000000 R31(ra) = bfc060ac
- [bd007f58] 00000000 bfc090b0 001fffff bfc0917c
- [bd007f68] ffffffff 00000040 ffffffff ffffffff
- [bd007f78] 000007f0 00040000 bd000000 bd000000
- [bd007f88] 00030000 b8060004 b8060000 bd000000
- [bd007f98] 87e1c000 87e1d608 87e20c04 bfc018dc
- [bd007fa8] 122fc8b5 228100a6 933102a2 60eca292
- [bd007fb8] b2a8a96f 2809a828 62a22bae fba342af
- [bd007fc8] ab488a5b 8fa40e2f cbe4546a 00000000
- [bd007fd8] 87e26d74 00000000 00000001 b8060004
- [bd007fe8] 00000184 bfc004fc
- __________________sri____________________
- 944x BootROM Ver. (asic) 1.0 [Nov 8 2011 13:42:57]
- _________________________________________
- find_hif: bootstrap = 0x31e50
- Nand Flash init
- otp_get_nand_table: 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0
- ONFI: Control Setting = 0xb44
- hdr: [0xffffffff : 0xffffffff : 0xffffffff : 0xffffffff]
- nand_load_fw: read 2097151 pages
- ExcCode 03 -> TLB(store)
- EPC bfc01a28, BadVAddr ffffffff, Cause 0000000c, Status 10400006
- R0 (r0) = 00000000 R8 (t0) = ffffffff R16(s0) = bd000000 R24(t8) = ff5a9f3f
- R1 (at) = 00000001 R9 (t1) = bd0009b4 R17(s1) = 00000800 R25(t9) = bfc01284
- R2 (v0) = 000000ff R10(t2) = 00000000 R18(s2) = 00030000 R26(k0) = ffffffff
- R3 (v1) = 00000001 R11(t3) = bd000520 R19(s3) = 00010000 R27(k1) = bd007bf0
- R4 (a0) = ffffffff R12(t4) = 00000000 R20(s4) = 00000800 R28(gp) = ffb7f19f
- R5 (a1) = bd004010 R13(t5) = 00000500 R21(s5) = ffffffff R29(sp) = bd007f58
- R6 (a2) = 000007ef R14(t6) = fbfeffbd R22(s6) = ffffffff R30(fp) = 00000000
- R7 (a3) = ffffffff R15(t7) = 95cef9ff R23(s7) = bd000000 R31(ra) = bfc060ac
- [bd007f58] 00000000 bfc090b0 001fffff bfc0917c
- [bd007f68] ffffffff 00000040 ffffffff ffffffff
- [bd007f78] 000007f0 00040000 bd000000 bd000000
- [bd007f88] 00030000 b8060004 b8060000 bd000000
- [bd007f98] f7cc490f bb6cffb7 ab2f4d4f bfc018dc
- [bd007fa8] 122f88b5 738120bc 933102b2 60ada211
- [bd007fb8] b2896949 0909b8a8 723a6bb6 fb6142bd
- [bd007fc8] ab48aa57 8fac8f6f cf345c68 7fdefcf3
- [bd007fd8] 33ebbfbc 797e7ceb dbfd1fab b8060004
- [bd007fe8] 00000184 bfc004fc
- __________________sri____________________
- 944x BootROM Ver. (asic) 1.0 [Nov 8 2011 13:42:57]
- _________________________________________
- find_hif: bootstrap = 0x31e50
- Nand Flash init
- otp_get_nand_table: 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0
- ONFI: Control Setting = 0xb44
- hdr: [0xffffffff : 0xffffffff : 0xffffffff : 0xffffffff]
- nand_load_fw: read 2097151 pages
- ExcCode 03 -> TLB(store)
- EPC bfc01a28, BadVAddr ffffffff, Cause 0000000c, Status 10400006
- R0 (r0) = 00000000 R8 (t0) = ffffffff R16(s0) = bd000000 R24(t8) = ff52bf3f
- R1 (at) = 00000001 R9 (t1) = bd0009b4 R17(s1) = 00000800 R25(t9) = bfc01284
- R2 (v0) = 000000ff R10(t2) = 00000000 R18(s2) = 00030000 R26(k0) = ffffffff
- R3 (v1) = 00000001 R11(t3) = bd000520 R19(s3) = 00010000 R27(k1) = bd007bf0
- R4 (a0) = ffffffff R12(t4) = 00000000 R20(s4) = 00000800 R28(gp) = efb7f19f
- R5 (a1) = bd004010 R13(t5) = 00000500 R21(s5) = ffffffff R29(sp) = bd007f58
- R6 (a2) = 000007ef R14(t6) = fbfef7bd R22(s6) = ffffffff R30(fp) = 00000000
- R7 (a3) = ffffffff R15(t7) = 9dcef9ff R23(s7) = bd000000 R31(ra) = bfc060ac
- previous boot:
- __________________sri____________________
- 944x BootROM Ver. (asic) 1.0 [Nov 8 2011 13:42:57]
- _________________________________________
- find_hif: bootstrap = 0x31e50
- Nand Flash init
- otp_get_nand_table: 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0
- ONFI: Control Setting = 0xb44
- hdr: [0xbd004000 : 0xbd004000 : 0x3000 : 0x87d46a94]
- nand_load_fw: read 6 pages
- nand_load_fw: 0x10000 0x800 0xbd0047f0
- nand_load_fw: 0x20000 0x800 0xbd004ff0
- nand_load_fw: 0x30000 0x800 0xbd0057f0
- nand_load_fw: 0x40000 0x800 0xbd005ff0
- nand_load_fw: 0x50000 0x800 0xbd0067f0
- f/w 0 read complete, jumping to 0xbd004000
- RT-AC55U bl stage1 ver: 1.0.0.8
- init PLL & DDR
- sri
- Scorpion 1.0
- ath_ddr_initial_config(321): (16bit) ddr2 init
- ... done
- *** Warning *** : PCIe WLAN Module not found !!!
- ... done
- fw1: Nand Init
- uboot hdr: [0xa0100000 : 0xa0100000 : 0x3b800 : 0x153e39a8]
- ......................................................................................................................
- U-Boot 1.1.4-g5589c4e5 (Jul 24 2014 - 08:59:49)
- RT-AC55U bootloader version: 1.0.0.8
- ap135 - Scorpion 1.0DRAM: 128 MB
- ASUS RT-AC55U gpio init : wps / reset pin
- Atheros on-chip NAND FLash Controller Driver, Version 0.1 (c) 2010 Atheros Communications, Ltd.
- Ath Nand ID[87ff0024]: ef:f1:80:95:00
- ONFI WINBOND W29N01GV
- NAND 128MiB 3,3V 8-bit [128MB]
- ====== NAND Parameters ======
- sc = 0x87ff0000 bbt = 0x86dcc008 bbt_size = 0x100 nf_ctrl = 0x344
- page = 0x800 block = 0x20000 oob = 0x40
- size = 128MB
- Creating 1 MTD partitions on "nand0":
- 0x00100000-0x07f00000 : "mtd=2"
- UBI: attaching mtd1 to ubi0
- UBI: physical eraseblock size: 131072 bytes (128 KiB)
- UBI: logical eraseblock size: 126976 bytes
- UBI: smallest flash I/O unit: 2048
- UBI: VID header offset: 2048 (aligned 2048)
- UBI: data offset: 4096
- UBI: max. sequence number: 13404
- UBI: attached mtd1 to ubi0
- UBI: MTD device name: "mtd=2"
- UBI: MTD device size: 126 MiB
- UBI: number of good PEBs: 1008
- UBI: number of bad PEBs: 0
- UBI: number of corrupted PEBs: 0
- UBI: max. allowed volumes: 128
- UBI: wear-leveling threshold: 4096
- UBI: number of internal volumes: 1
- UBI: number of user volumes: 7
- UBI: available PEBs: 30
- UBI: total number of reserved PEBs: 978
- UBI: number of PEBs reserved for bad PEB handling: 10
- UBI: max/mean erase counter: 103/13
- UBI: image sequence number: 0
- UBI: vol_id reserved_pebs alignment data_pad vol_type usable_leb_size used_ebs used_bytes last_eb_bytes corrupted upd_marker name_len name
- UBI: 0 1 1 0 dynamic 1f000 1 1f000 1f000 0 0 5 nvram
- UBI: 1 2 1 0 dynamic 1f000 2 3e000 1f000 0 0 7 Factory
- UBI: 2 2 1 0 dynamic 1f000 2 3e000 1f000 0 0 8 Factory2
- UBI: 3 18d 1 0 dynamic 1f000 18d 3013000 1f000 0 0 5 linux
- UBI: 4 18d 1 0 dynamic 1f000 18d 3013000 1f000 0 0 6 linux2
- UBI: 5 2a 1 0 dynamic 1f000 2a 516000 1f000 0 0 4 lsdk
- UBI: 6 7b 1 0 dynamic 1f000 7b ee5000 1f000 0 0 5 jffs2
- UBI: 7fffefff 2 1 0 dynamic 1f000 2 3e000 2 0 0 d layout volume
- UBI volume [jffs2] size ee5000 smaller than 1f000!
- Read 0x1f000 bytes from volume [Factory] offset 0x0 to 86d8ccc8
- EEPROM set 0: OK (version 13)
- Read 0x1f000 bytes from volume [Factory] offset 0x1f000 to 86d8ccc8
- EEPROM set 1: OK (version 13)
- Read 0x1f000 bytes from volume [Factory2] offset 0x0 to 86d8ccc8
- EEPROM set 2: OK (version 13)
- Read 0x1f000 bytes from volume [Factory2] offset 0x1f000 to 86d8ccc8
- EEPROM set 3: OK (version 13)
- Read 0x1f000 bytes from volume [Factory] offset 0x0 to 86dcc110
- Select EEPROM set 0 at offset 0x0.
- Maximum malloc length: 16384 KBytes
- mem_malloc_start/brk/end: 0x86dcc000/86e46000/87dec000
- *** Warning *** : PCIe WLAN Module not found !!!
- In: serial
- Out: serial
- Err: serial
- 0: hdr1 [ 0xbd004000,bd004000,00003000,87d46a94 ], hdr2 [ 0xa0100000,a0100000,0003b800,153e39a8 ]
- 40000: hdr1 [ 0xbd004000,bd004000,00003000,87d46a94 ], hdr2 [ 0xa0100000,a0100000,0003b800,153e39a8 ]
- 80000: hdr1 [ 0xbd004000,bd004000,00003000,87d46a94 ], hdr2 [ 0xa0100000,a0100000,0003b800,153e39a8 ]
- c0000: hdr1 [ 0xbd004000,bd004000,00003000,87d46a94 ], hdr2 [ 0xa0100000,a0100000,0003b800,153e39a8 ]
- bootloader-0: 0x0-40000, len 3e800/40000, buf 87f0789c: OK
- bootloader-1: 0x40000-80000, len 3e800/40000, buf 87f4789c: OK
- bootloader-2: 0x80000-c0000, len 3e800/40000, buf 87f8789c: OK
- bootloader-3: 0xc0000-e0000, len 70000/80000, buf 87fc789c: fragment
- choose bootloader-0 at 87f0789c, length 3e800 bytes
- Net: ath_gmac_enet_initialize...
- athrs_sgmii_res_cal: cal value = 0x1
- Fetching MAC Address from factory
- Fetching MAC Address from factory
- ath_gmac_enet_initialize: reset mask:c02200
- Scorpion ----> S17 PHY *
- Vlan config...
- TEST: FINAL REG VAL after TX Calibration - 0x86000000
- TEST: FINAL XMII VAL after RX Calibration - 0x96000000
- TEST: FINAL ETH_CFG VAL after RX Calibration - 0x00000001
- athrs17_reg_init: complete
- : cfg1 0x80000000 cfg2 0x7335
- eth0: 34:97:f6:62:be:50
- eth0 up
- athrs17_reg_init_wan done
- SGMII in forced mode
- athr_gmac_sgmii_setup SGMII done
- : cfg1 0x800c0000 cfg2 0x7214
- eth1: 34:97:f6:62:be:50
- eth1 up
- eth0, eth1
- Setting XTAL_ADDRESS 0x18116290 to 0x458ba14f
- Please choose the operation:
- 1: Load System code to SDRAM via TFTP.
- 2: Load System code then write to Flash via TFTP.
- 3: Boot System code via Flash (default).
- 4: Entr boot command line interface.
- 7: Load Boot Loader code then write to Flash via Serial.
- 9: Load Boot Loader code then write to Flash via TFTP.
- L: Load LSDK NART firmware, write to Flash via TFTP and reboot.
- 0
- 3: Boot System code via Flash (default).
- RT-AC55U bootloader version: 1.0.0.8
- MAC Address: 34:97:F6:62:BE:50
- ## Checking 2nd firmware at a21ae000 ...
- Read 0x40 bytes from volume [linux2] offset 0x0 to 87fe8450
- Image Name:
- Created: 2016-12-01 12:09:14 UTC
- Image Type: MIPS Linux Kernel Image (lzma compressed)
- Data Size: 32100611 Bytes = 30.6 MB
- Load Address: 80060000
- Entry Point: 80060000
- Read 0x1e9d103 bytes from volume [linux2] offset 0x40 to 81000000
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement