Advertisement
Guest User

broly mipslinux 4.9.44 mt7621 r6700v2 (glibc,bash) progress

a guest
Aug 29th, 2017
1,468
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 12.78 KB | None | 0 0
  1. 1 https://pastebin.com/gyzLGKEs first successful mips32 compile
  2. 2 https://pastebin.com/nHzYRDps copied over missing libc files/tidied up (missed copying c++ over in this one)
  3. 3 https://pastebin.com/AzFHxnPD libqmi (glib 2.52 and util-linux 2.29 upgraded as well)
  4. 4 https://pastebin.com/Cyh8eivj minidlna update
  5. 5 https://pastebin.com/L9w8arvC gudev added
  6. 6 https://pastebin.com/h2xFLf2V php7 updates etc
  7. 7 https://pastebin.com/bHPpZrRx updated ar71xx for 4.9 (also did it for ar934x platform ["wasp"--mips74k])
  8. 8 https://pastebin.com/zsdTjjKQ status update on the firmware (not really exclusive to the AC55U, just packing it using mkimage vs lzma-loader etc).
  9. 9 https://pastebin.com/qNMiWkD9 failure of AC55U due to sensitive MTD flash partitioning (likely due to shoe-horning of AR7134 devicetree file for QCA9558)
  10. 10 https://pastebin.com/1BPUmMzx just an update to glibc 2.29 and using the latest 4.9 committed by brainslayer to ensure we're all on teh same page.
  11. 11 https://pastebin.com/9jrT1gkP raw bootlog from the r6700v2/r6800/r6900v2. included so people can observe how the u-boot and "stage  code seem to be "together"; that is, the u-boot seems to be customised to deal with the sercomm utilities (no mtdparts, but there is an sc_nand).
  12. 12 https://pastebin.com/TJHeu9VC discussing the sercomm boot tools and such.
  13. 13 https://pastebin.com/uadhgmvS just showing the boot log (without initramfs enabled).
  14. 14 https://pastebin.com/jNmY4y9D was just sharing the observation about initrd that wasn't really useful to the problem
  15. 15 https://pastebin.com/EUeDuLHZ briefly discussing the boot and problem with the dtb (device tree binary) not being "seen" by the kernel
  16. 16 https://pastebin.com/K7yuBYfv just a nothingness update (talking about clocksource driver being picked up when disabling the devicetree node calls in mt7621.c)
  17.  
  18. greetings,
  19.  
  20. below i present a mostly-functional boot log that was only achievable thanks (again), to, The Crispy One (John Crispin, aka blogic), and Giueseppe Lippolis who asked some very relevant questions as to how the DTB is called by mips router distros (https://bugs.lede-project.org/index.php?do=details&task_id=192).
  21.  
  22. i obviously have to fix some things (see nand driver issue below?), but i am extremely excited about this!!!
  23.  
  24. #mipslinux#mipslinux#mipslinux#mipslinux#mipslinux#mipslinux#mipslinux#mipslinux#mipslinux#mipslinux#mipslinux
  25.  
  26.  ETH_STATE_ACTIVE!!
  27. NMRP_FLASH_SIZE_buffer --> 03000000.
  28. NMRP:LISTENING
  29. ### No NMRP Server found ###
  30. check upgrade flag
  31. read flag 05400000
  32. ## Booting image at bc200000 ...
  33.    Image Name:   Linux Kernel Image
  34.    Image Type:   MIPS Linux Kernel Image (lzma compressed)
  35.    Data Size:    1904922 Bytes =  1.8 MB
  36.    Load Address: 81001000
  37.    Entry Point:  8100ef80
  38. ..............................   Verifying Checksum ... OK
  39.    Uncompressing Kernel Image ... OK
  40. No initrd
  41. ## Transferring control to Linux (at address 8100ef80) ...
  42. ## Giving linux memsize in MB, 256
  43.  
  44. Starting kernel ...
  45.  
  46. Linux version 4.9.44 (Gagan@GagansMacPro) (gcc version 7.2.0 (GCC) ) #213 SMP Tue Aug 29 12:59:59 MDT 2017
  47. SoC Type: MediaTek MT7621 ver:1 eco:3
  48. bootconsole [early0] enabled
  49. CPU0 revision is: 0001992f (MIPS 1004Kc)
  50. MIPS: machine is Mediatek MT7621
  51. Determined physical RAM map:
  52.  memory: 10000000 @ 00000000 (usable)
  53. Initrd not found or empty - disabling initrd
  54. VPE topology {2,2} total 4
  55. Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
  56. Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
  57. MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
  58. Zone ranges:
  59.   Normal   [mem 0x0000000000000000-0x000000000fffffff]
  60.   HighMem  empty
  61. Movable zone start for each node
  62. Early memory node ranges
  63.   node   0: [mem 0x0000000000000000-0x000000000fffffff]
  64. Initmem setup node 0 [mem 0x0000000000000000-0x000000000fffffff]
  65. percpu: Embedded 13 pages/cpu @817c5000 s23376 r8192 d21680 u53248
  66. Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 65024
  67. Kernel command line: console=ttyS0,57600 console=ttyS0,57600n8 rootfstype=squashfs
  68. log_buf_len individual max cpu contribution: 4096 bytes
  69. log_buf_len total cpu_extra contributions: 12288 bytes
  70. log_buf_len min size: 16384 bytes
  71. log_buf_len: 32768 bytes
  72. early log buf free: 14296(87%)
  73. PID hash table entries: 1024 (order: 0, 4096 bytes)
  74. Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
  75. Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
  76. Writing ErrCtl register=000000f0
  77. Readback ErrCtl register=000000f0
  78. Memory: 237348K/262144K available (4543K kernel code, 261K rwdata, 632K rodata, 248K init, 139K bss, 24796K reserved, 0K cma-reserved, 0K highmem)
  79. Hierarchical RCU implementation.
  80.         Build-time adjustment of leaf fanout to 32.
  81. NR_IRQS:256
  82. clocksource: GIC: mask: 0xffffffffffffffff max_cycles: 0xcaf478abb4, max_idle_ns: 440795247997 ns
  83. clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 4343773742 ns
  84. sched_clock: 32 bits at 440MHz, resolution 2ns, wraps every 4880645118ns
  85. Calibrating delay loop... 586.13 BogoMIPS (lpj=2930688)
  86. pid_max: default: 4096 minimum: 301
  87. Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
  88. Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
  89. Performance counters: mips/1004K PMU enabled, 2 32-bit counters available to each CPU, irq 17
  90. Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
  91. Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
  92. MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
  93. CPU1 revision is: 0001992f (MIPS 1004Kc)
  94. Synchronize counters for CPU 1:
  95. done.
  96. Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
  97. Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
  98. MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
  99. CPU2 revision is: 0001992f (MIPS 1004Kc)
  100. Synchronize counters for CPU 2:
  101. done.
  102. Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
  103. Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
  104. MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
  105. CPU3 revision is: 0001992f (MIPS 1004Kc)
  106. Synchronize counters for CPU 3:
  107. done.
  108. Brought up 4 CPUs
  109. devtmpfs: initialized
  110. clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
  111. pinctrl core: initialized pinctrl subsystem
  112. NET: Registered protocol family 16
  113. Can't analyze schedule() prologue at 81011348
  114. mt7621_gpio 1e000600.gpio: registering 32 gpios
  115. mt7621_gpio 1e000600.gpio: registering 32 gpios
  116. mt7621_gpio 1e000600.gpio: registering 32 gpios
  117. vgaarb: loaded
  118. SCSI subsystem initialized
  119. clocksource: Switched to clocksource GIC
  120. NET: Registered protocol family 2
  121. TCP established hash table entries: 2048 (order: 1, 8192 bytes)
  122. TCP bind hash table entries: 2048 (order: 2, 16384 bytes)
  123. TCP: Hash tables configured (established 2048 bind 2048)
  124. UDP hash table entries: 128 (order: 0, 4096 bytes)
  125. UDP-Lite hash table entries: 128 (order: 0, 4096 bytes)
  126. NET: Registered protocol family 1
  127. 4 CPUs re-calibrate udelay(lpj = 2924544)
  128. workingset: timestamp_bits=30 max_order=16 bucket_order=0
  129. squashfs: version 4.0 (2009/01/31) Phillip Lougher
  130. fuse init (API version 7.26)
  131. io scheduler noop registered
  132. io scheduler deadline registered (default)
  133. random: fast init done
  134. serial8250_init
  135. Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
  136. console [ttyS0] disabled
  137. 1e000c00.uartlite: ttyS0 at MMIO 0x1e000c00 (irq = 19, base_baud = 3125000) is a 16550A
  138. console [ttyS0] enabled
  139. console [ttyS0] enabled
  140. bootconsole [early0] disabled
  141. bootconsole [early0] disabled
  142. Ralink gpio driver initialized
  143. MediaTek Nand driver init, version v2.1 Fix AHB virt2phys error
  144. Allocate 16 byte aligned buffer: 815a9600
  145. Enable NFI Clock
  146. # MTK NAND # : Use HW ECC
  147. Device found in MTK table, ID: c2f1, EXT_ID: 809502
  148. Support this Device in MTK table! c2f1
  149. [NAND]select ecc bit:4, sparesize :64 spare_per_sector=16
  150. nand: device found, Manufacturer ID: 0xc2, Chip ID: 0xf1
  151. nand: Macronix NAND 128MiB 3,3V 8-bit
  152. nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
  153. Scanning device for bad blocks
  154. Bad eraseblock 640 at 0x000005000000
  155. Bad eraseblock 641 at 0x000005020000
  156. Bad eraseblock 642 at 0x000005040000
  157. Bad eraseblock 643 at 0x000005060000
  158. Bad eraseblock 644 at 0x000005080000
  159. Bad eraseblock 645 at 0x0000050a0000
  160. Bad eraseblock 646 at 0x0000050c0000
  161. Bad eraseblock 647 at 0x0000050e0000
  162. Bad eraseblock 648 at 0x000005100000
  163. Bad eraseblock 649 at 0x000005120000
  164. Bad eraseblock 650 at 0x000005140000
  165. Bad eraseblock 651 at 0x000005160000
  166. Bad eraseblock 652 at 0x000005180000
  167. Bad eraseblock 653 at 0x0000051a0000
  168. Bad eraseblock 654 at 0x0000051c0000
  169. Bad eraseblock 655 at 0x0000051e0000
  170. Bad eraseblock 656 at 0x000005200000
  171. Bad eraseblock 657 at 0x000005220000
  172. Bad eraseblock 658 at 0x000005240000
  173. Bad eraseblock 659 at 0x000005260000
  174. Bad eraseblock 660 at 0x000005280000
  175. Bad eraseblock 661 at 0x0000052a0000
  176. Bad eraseblock 662 at 0x0000052c0000
  177. Bad eraseblock 663 at 0x0000052e0000
  178. 29 ofpart partitions found on MTD device MT7621-NAND
  179. Creating 29 MTD partitions on "MT7621-NAND":
  180. 0x000000000000-0x000000100000 : "boot"
  181. 0x000000100000-0x000000200000 : "part_map"
  182. 0x000000200000-0x000000600000 : "kernel"
  183. 0x000000600000-0x000002e00000 : "rootfs"
  184. mtd: partition "rootfs" set to be root filesystem
  185. magic 73717368 vs 73717368
  186. mtd: partition "ddwrt" created automatically, ofs=21C0000, len=C40000
  187. 0x0000021c0000-0x000002e00000 : "ddwrt"
  188. 0x000002e00000-0x000003000000 : "english_ui"
  189. 0x000003000000-0x000003200000 : "ml1"
  190. 0x000003200000-0x000003400000 : "ml2"
  191. 0x000003400000-0x000003600000 : "ml3"
  192. 0x000003600000-0x000003800000 : "ml4"
  193. 0x000003800000-0x000003a00000 : "ml5"
  194. 0x000003a00000-0x000003c00000 : "ml6"
  195. 0x000003c00000-0x000003e00000 : "ml7"
  196. 0x000003e00000-0x000004000000 : "ml8"
  197. 0x000004000000-0x000004200000 : "ml9"
  198. 0x000004200000-0x000004400000 : "ml10"
  199. 0x000004400000-0x000004600000 : "ml11"
  200. 0x000004600000-0x000004800000 : "factory"
  201. 0x000004800000-0x000004a00000 : "sc_private"
  202. 0x000004a00000-0x000004c00000 : "pop"
  203. 0x000004c00000-0x000004e00000 : "traffic meter"
  204. 0x000004e00000-0x000005000000 : "sc_pid"
  205. 0x000005000000-0x000005200000 : "sc_nvram"
  206. 0x000005200000-0x000005400000 : "ralink_nvram"
  207. 0x000005400000-0x000005600000 : "reserved1"
  208. 0x000005600000-0x000005800000 : "reserved2"
  209. 0x000005800000-0x000005a00000 : "reserved3"
  210. 0x000005a00000-0x000005c00000 : "reserved4"
  211. 0x000005c00000-0x000005e00000 : "reserved5"
  212. 0x000005e00000-0x000007f80000 : "reserved6"
  213. [mtk_nand] probe successfully!
  214. Signature matched and data read!
  215. load_fact_bbt success 1023
  216. libphy: Fixed MDIO Bus: probed
  217. tun: Universal TUN/TAP device driver, 1.6
  218. tun: (C) 1999-2004 Max Krasnyansky <[email protected]>
  219. netif_napi_add() called with weight 128 on device eth%d
  220. mtk_soc_eth 1e100000.ethernet: generated random MAC address 12:15:52:91:d8:a4
  221. libphy: mdio: probed
  222. mtk_soc_eth 1e100000.ethernet: loaded mt7530 driver
  223. mtk_soc_eth 1e100000.ethernet eth0: mediatek frame engine at 0xbe100000, irq 22
  224. u32 classifier
  225.    Performance counters on
  226.    Actions configured
  227. Netfilter messages via NETLINK v0.30.
  228. nf_conntrack version 0.5.0 (4096 buckets, 16384 max)
  229. ctnetlink v0.93: registering with nfnetlink.
  230. ipip: IPv4 and MPLS over IPv4 tunneling driver
  231. ip_tables: (C) 2000-2006 Netfilter Core Team
  232. ipt_CLUSTERIP: ClusterIP Version 0.8 loaded successfully
  233. NET: Registered protocol family 17
  234. Bridge firewalling registered
  235. 8021q: 802.1Q VLAN Support v1.8
  236. List of all partitions:
  237. 1f00            1024 mtdblock0  (driver?)
  238. 1f01            1024 mtdblock1  (driver?)
  239. 1f02            4096 mtdblock2  (driver?)
  240. 1f03           40960 mtdblock3  (driver?)
  241. 1f04           12544 mtdblock4  (driver?)
  242. 1f05            2048 mtdblock5  (driver?)
  243. 1f06            2048 mtdblock6  (driver?)
  244. 1f07            2048 mtdblock7  (driver?)
  245. 1f08            2048 mtdblock8  (driver?)
  246. 1f09            2048 mtdblock9  (driver?)
  247. 1f0a            2048 mtdblock10  (driver?)
  248. 1f0b            2048 mtdblock11  (driver?)
  249. 1f0c            2048 mtdblock12  (driver?)
  250. 1f0d            2048 mtdblock13  (driver?)
  251. 1f0e            2048 mtdblock14  (driver?)
  252. 1f0f            2048 mtdblock15  (driver?)
  253. 1f10            2048 mtdblock16  (driver?)
  254. 1f11            2048 mtdblock17  (driver?)
  255. 1f12            2048 mtdblock18  (driver?)
  256. 1f13            2048 mtdblock19  (driver?)
  257. 1f14            2048 mtdblock20  (driver?)
  258. 1f15            2048 mtdblock21  (driver?)
  259. 1f16            2048 mtdblock22  (driver?)
  260. 1f17            2048 mtdblock23  (driver?)
  261. 1f18            2048 mtdblock24  (driver?)
  262. 1f19            2048 mtdblock25  (driver?)
  263. 1f1a            2048 mtdblock26  (driver?)
  264. 1f1b            2048 mtdblock27  (driver?)
  265. 1f1c            2048 mtdblock28  (driver?)
  266. 1f1d           34304 mtdblock29  (driver?)
  267. No filesystem could mount root, tried:  squashfs
  268.  
  269. Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(31,3)
  270. Rebooting in 1 seconds..
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement