Advertisement
Guest User

broly 4.9.43/44 mt7621 progress +{glibc,bash}/-{bZbox,musl}

a guest
Aug 28th, 2017
1,025
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 5.77 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.  
  17. after a hundred additional compilations with various settings trying to see if kernel configuration settings could fix the panic, i at least managed to get the clock source timer working (likely due to The Crispy One's patch here: https://github.com/lede-project/source/blob/master/target/linux/ramips/patches-4.9/101-mt7621-timer.patch).
  18.  
  19. i am still working on the device tree binary, and have successfully appended it to the kernel, but it is still not getting picked up by the kernel. i am going to investigate if there is a way to make the processor boot in a generic mode where the device drivers aren't necessary for initialisation.
  20.  
  21. i've been told that kexec is very handy for this purpose (minimal boot, followed by 'full' boot--also called "bootstrapping"), but given the interplay between mt7621.c and the node definitions for the mt7621 soc, i am not certain whether it will be possible for the mt7621 to appear as a 'generic' SoC in absence of the drivers. the sercomm-ified u-boot may be what i need to focus on.
  22.  
  23. the (unfruitful, in the grand scheme of things) boot log below is when i commented out the contents of "of_remap" in mt7621.c (https://git.linux-mips.org/cgit/ralf/linux.git/tree/arch/mips/ralink/mt7621.c lines 159,160) to see what happens when the device tree nodes aren't called at boot.
  24.  
  25. hat tip to abelloni in #buildroot today for taking some time to school me on how to append the dtb files to the kernel!
  26.  
  27. #mipslinux#mipslinux#mipslinux#mipslinux#mipslinux#mipslinux#mipslinux#mipslinux#mipslinux#mipslinux#mipslinux#mipslinux#mipslinux#mipslinux
  28.  
  29.  ETH_STATE_ACTIVE!!
  30. NMRP_FLASH_SIZE_buffer --> 03000000.
  31. NMRP:LISTENING
  32. ### No NMRP Server found ###
  33. check upgrade flag
  34. read flag 05400000
  35. ## Booting image at bc200000 ...
  36.    Image Name:   Linux Kernel Image
  37.    Image Type:   MIPS Linux Kernel Image (lzma compressed)
  38.    Data Size:    1901227 Bytes =  1.8 MB
  39.    Load Address: 81001000
  40.    Entry Point:  8100ef80
  41. .............................   Verifying Checksum ... OK
  42.    Uncompressing Kernel Image ... OK
  43. No initrd
  44. ## Transferring control to Linux (at address 8100ef80) ...
  45. ## Giving linux memsize in MB, 256
  46.  
  47. Starting kernel ...
  48.  
  49. Linux version 4.9.44 (Gagan@GagansMacPro) (gcc version 7.2.0 (GCC) ) #201 SMP Mon Aug 28 19:18:07 MDT 2017
  50. SoC Type: MediaTek MT7621 ver:1 eco:3
  51. bootconsole [early0] enabled
  52. CPU0 revision is: 0001992f (MIPS 1004Kc)
  53. Determined physical RAM map:
  54.  memory: 10000000 @ 00000000 (usable)
  55. Initrd not found or empty - disabling initrd
  56. VPE topology {2,2} total 4
  57. Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
  58. Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
  59. MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
  60. Zone ranges:
  61.   Normal   [mem 0x0000000000000000-0x000000000fffffff]
  62.   HighMem  empty
  63. Movable zone start for each node
  64. Early memory node ranges
  65.   node   0: [mem 0x0000000000000000-0x000000000fffffff]
  66. Initmem setup node 0 [mem 0x0000000000000000-0x000000000fffffff]
  67. OF: fdt:No valid device tree found, continuing without
  68. percpu: Embedded 13 pages/cpu @818bb000 s23088 r8192 d21968 u53248
  69. Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 65024
  70. Kernel command line: console=ttyS0,57600n8 rootfstype=squashfs
  71. log_buf_len individual max cpu contribution: 4096 bytes
  72. log_buf_len total cpu_extra contributions: 12288 bytes
  73. log_buf_len min size: 16384 bytes
  74. log_buf_len: 32768 bytes
  75. early log buf free: 14296(87%)
  76. PID hash table entries: 1024 (order: 0, 4096 bytes)
  77. Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
  78. Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
  79. Writing ErrCtl register=00000071
  80. Readback ErrCtl register=00000071
  81. Memory: 236364K/262144K available (4533K kernel code, 259K rwdata, 628K rodata, 1288K init, 139K bss, 25780K reserved, 0K cma-reserved, 0K highmem)
  82. Hierarchical RCU implementation.
  83.         Build-time adjustment of leaf fanout to 32.
  84. NR_IRQS:256
  85. clocksource_probe: no matching clocksources found
  86. clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 4343773742 ns
  87. sched_clock: 32 bits at 440MHz, resolution 2ns, wraps every 4880645118ns
  88. Calibrating delay loop...
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement