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

a guest Aug 28th, 2017 950 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. 1 first successful mips32 compile
  2. 2 copied over missing libc files/tidied up (missed copying c++ over in this one)
  3. 3 libqmi (glib 2.52 and util-linux 2.29 upgraded as well)
  4. 4 minidlna update
  5. 5 gudev added
  6. 6 php7 updates etc
  7. 7 updated ar71xx for 4.9 (also did it for ar934x platform ["wasp"--mips74k])
  8. 8 status update on the firmware (not really exclusive to the AC55U, just packing it using mkimage vs lzma-loader etc).
  9. 9 failure of AC55U due to sensitive MTD flash partitioning (likely due to shoe-horning of AR7134 devicetree file for QCA9558)
  10. 10 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 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 discussing the sercomm boot tools and such.
  13. 13 just showing the boot log (without initramfs enabled).
  14. 14 was just sharing the observation about initrd that wasn't really useful to the problem
  15. 15 briefly discussing the boot and problem with the dtb (device tree binary) not being "seen" by the kernel
  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:
  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.
  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.
  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 ( lines 159,160) to see what happens when the device tree nodes aren't called at boot.
  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!
  27. #mipslinux#mipslinux#mipslinux#mipslinux#mipslinux#mipslinux#mipslinux#mipslinux#mipslinux#mipslinux#mipslinux#mipslinux#mipslinux#mipslinux
  30. NMRP_FLASH_SIZE_buffer --> 03000000.
  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
  47. Starting kernel ...
  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...
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand