daily pastebin goal
34%
SHARE
TWEET

NetBSD/evbmips on WRH-300CR

a guest Apr 17th, 2016 159 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. diff --git a/sys/arch/evbmips/rasoc/machdep.c b/sys/arch/evbmips/rasoc/machdep.c
  2. index 6cb688d..e85b81f 100644
  3. --- a/sys/arch/evbmips/rasoc/machdep.c
  4. +++ b/sys/arch/evbmips/rasoc/machdep.c
  5. @@ -163,7 +163,7 @@ mach_init(void)
  6.      * Determine the memory size.
  7.      */
  8.  #if defined(MT7620)
  9. -   memsize = 128 << 20;
  10. +   memsize = 64 << 20;
  11.  #else
  12.     memsize = *(volatile uint32_t *)
  13.         MIPS_PHYS_TO_KSEG1(RA_SYSCTL_BASE + RA_SYSCTL_CFG0);
  14. diff --git a/sys/arch/mips/ralink/ralink_eth.c b/sys/arch/mips/ralink/ralink_eth.c
  15. index 855a712..afe8375 100644
  16. --- a/sys/arch/mips/ralink/ralink_eth.c
  17. +++ b/sys/arch/mips/ralink/ralink_eth.c
  18. @@ -1635,7 +1635,7 @@ ralink_eth_mii_read(device_t self, int phy_addr, int phy_reg)
  19.         if ((sw_read(sc, RA_ETH_SW_PCTL1) & PCTL1_RD_DONE) == 0)
  20.             break;
  21.  #else
  22. -       if ((fe_read(sc, RA_FE_MDIO_ACCESS) & MDIO_ACCESS_TRG) == 0)
  23. +       if ((fe_read(sc, 0x7004) & MDIO_ACCESS_TRG) == 0)
  24.             break;
  25.  #endif
  26.     }
  27. @@ -1664,7 +1664,7 @@ ralink_eth_mii_read(device_t self, int phy_addr, int phy_reg)
  28.             return data;
  29.         }
  30.  #else
  31. -       if ((fe_read(sc, RA_FE_MDIO_ACCESS) & MDIO_ACCESS_TRG) == 0) {
  32. +       if ((fe_read(sc, 0x7004) & MDIO_ACCESS_TRG) == 0) {
  33.             int data = MDIO_ACCESS_DATA(
  34.                 fe_read(sc, RA_FE_MDIO_ACCESS));
  35.             ralink_eth_mdio_enable(sc, false);
  36. @@ -1697,7 +1697,7 @@ ralink_eth_mii_write(device_t self, int phy_addr, int phy_reg, int val)
  37.         if ((sw_read(sc, RA_ETH_SW_PCTL1) & PCTL1_RD_DONE) == 0)
  38.             break;
  39.  #else
  40. -       if ((fe_read(sc, RA_FE_MDIO_ACCESS) & MDIO_ACCESS_TRG) == 0)
  41. +       if ((fe_read(sc, 0x7004) & MDIO_ACCESS_TRG) == 0)
  42.             break;
  43.  #endif
  44.     }
  45. @@ -1725,7 +1725,7 @@ ralink_eth_mii_write(device_t self, int phy_addr, int phy_reg, int val)
  46.             return;
  47.         }
  48.  #else
  49. -       if ((fe_read(sc, RA_FE_MDIO_ACCESS) & MDIO_ACCESS_TRG) == 0){
  50. +       if ((fe_read(sc, 0x7004) & MDIO_ACCESS_TRG) == 0){
  51.             ralink_eth_mdio_enable(sc, false);
  52.             return;
  53.         }
  54.  
  55. ----
  56.  
  57. ## Booting image at 80a00000 ...
  58.    Image Name:   evbmips 7.99.27 (ZYXELKX)
  59.    Image Type:   MIPS NetBSD Kernel Image (uncompressed)
  60.    Data Size:    3538832 Bytes =  3.4 MB
  61.    Load Address: 80010000
  62.    Entry Point:  80010000
  63.    Verifying Checksum ... OK
  64. OK
  65. No initrd
  66. ## Transferring control to Linux (at address 80010000) ...
  67. ## Giving linux memsize in MB, 64
  68.  
  69. Starting kernel ...
  70.  
  71. MIPS32/64 params: cpu arch: 128
  72. MIPS32/64 params: TLB entries: 32
  73. MIPS32/64 params: Icache: line = 32, total = 65536, ways = 4
  74.          sets = 512
  75. MIPS32/64 params: Dcache: line = 32, total = 32768, ways = 4
  76.          sets = 256
  77.   picache_stride    = 4096
  78.   picache_loopcount = 16
  79. mips_fixup_stubs: 5561 fixups done in 6657172 cycles
  80. phys segment: 0x4000000 @ 0
  81. adding 0xf000 @ 0x1000 to freelist 0
  82. adding 0x3c72000 @ 0x38e000 to freelist 0
  83. pmap_steal_memory: seg 0: 0x1 0x1 0x10 0x10
  84. pmap_steal_memory: seg 0: too small for 34 pages
  85. pmap_steal_memory: seg 1: 0x38e 0x38e 0x3fff 0x3fff
  86. pmap_steal_memory: seg 0: 0x1 0x1 0x10 0x10
  87. Enabled early console
  88. pmap_steal_memory: seg 0: 0x3 0x3 0x10 0x10
  89. pmap_steal_memory: seg 0: too small for 297 pages
  90. pmap_steal_memory: seg 1: 0x3b0 0x3b0 0x3fff 0x3fff
  91. Loaded initial symtab at 0x80317454, strtab at 0x80342c34, # entries 10572
  92. Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
  93.     2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016
  94.     The NetBSD Foundation, Inc.  All rights reserved.
  95. Copyright (c) 1982, 1986, 1989, 1991, 1993
  96.     The Regents of the University of California.  All rights reserved.
  97.  
  98. NetBSD 7.99.27 (ZYXELKX) #0: Sun Apr 17 07:48:24 UTC 2016
  99.     fun@ubuntu:/home/fun/netbsd-src/sys/arch/evbmips/compile/obj/ZYXELKX
  100. MT7620
  101. total memory = 65536 KB
  102. avail memory = 60572 KB
  103. mainbus0 (root): Mediatek MT7620 System Bus
  104. cpu0 at mainbus0: 580.00MHz (hz cycles = 2900000, delay divisor = 290)
  105. cpu0: MIPS 24KE (0x19650) Rev. 80 with software emulated floating point
  106. cpu0: 32 TLB entries, 256MB max page size
  107. cpu0: 64KB/32B 4-way set-associative L1 instruction cache
  108. cpu0: 32KB/32B 4-way set-associative write-back L1 data cache
  109. rwdog0 at mainbus0: Ralink watchdog controller
  110. rwdog0: max period 22 sec.
  111. rwdog0: KTICKLE mode, period 10 sec.
  112. rgpio0 at mainbus0: Ralink GPIO controller
  113. gpio0 at rgpio0: 98 pins
  114. ri2c0 at mainbus0: Ralink I2C controller
  115. iic0 at ri2c0: I2C bus
  116. com0 at mainbus0: Au1X00 UART, working fifo
  117. com0: console
  118. ohci0 at mainbus0: OHCI USB controller
  119. ohci0: OHCI version 1.0, legacy support
  120. usb0 at ohci0: USB revision 1.0
  121. ehci0 at mainbus0: EHCI USB controller
  122. ehci0: companion ohci0
  123. ehci0: companion controller, 1 port each: ohci0
  124. usb1 at ehci0: USB revision 2.0
  125. reth0 at mainbus0: Ralink Ethernet
  126. rpci0 at mainbus0: Ralink PCIe Controller
  127. uhub0 at usb0: Ralink OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
  128. uhub1 at usb1: Ralink EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
  129. uhub2 at uhub1 port 1: vendor 058f product 6254, class 9/0, rev 2.00/1.00, addr 2
  130. uhub2: single transaction translator
  131. umass0 at uhub2 port 1 configuration 1 interface 0
  132. umass0: Generic Flash Card Reader/Writer, rev 2.00/1.00, addr 3
  133. scsibus0 at umass0: 2 targets, 2 luns per target
  134. sd0 at scsibus0 target 0 lun 0: <Generic-, Multiple Reader, 1.07> disk removable
  135. sd0: drive offline
  136. sd1 at scsibus0 target 0 lun 1: <Generic-, MicroSD/M2, 1.08> disk removable
  137. sd1: drive offline
  138. uhub0: device problem, disabling port 1
  139. root device:
RAW Paste Data
Top