Xiaomi Router R1D Kernel Developing Notes

来自Jack's Lab
(版本间的差异)
跳转到: 导航, 搜索
 
(未显示1个用户的13个中间版本)
第1行: 第1行:
 +
== 手记 ==
 +
 +
 +
<br><br>
 +
 
== SPI Flash ==
 
== SPI Flash ==
 +
 +
remove:
 +
 +
  CONFIG_MTD_BCM947XX=y (sflash)
 +
  CONFIG_MTD_NAND=y
 +
  CONFIG_MTD_NFLASH
 +
  
 
<source lang=bash>
 
<source lang=bash>
 +
arch/arm/mach-brcm-hnd/board_ns.c
 +
init_mtd_partitions()
 +
 
bcmsflash: squash filesystem found at block 127
 
bcmsflash: squash filesystem found at block 127
 
Creating 10 MTD partitions on "bcmsflash":
 
Creating 10 MTD partitions on "bcmsflash":
第13行: 第28行:
 
0x000000ff0000-0x000001000000 : "nvram"
 
0x000000ff0000-0x000001000000 : "nvram"
 
0x000000000000-0x000000fe0000 : "firmware"
 
0x000000000000-0x000000fe0000 : "firmware"
0x0000007fe4b4-0x000000d8b000 : "os2"
+
 
 +
# cat /proc/mtd
 +
dev:   size  erasesize  name
 +
mtd0: 00040000 00010000 "boot"
 +
mtd1: 00300000 00010000 "os"
 +
mtd2: 00300000 00010000 "os1"
 +
mtd3: 00890000 00010000 "squashfs"
 +
mtd4: 00010000 00010000 "crash"
 +
mtd5: 00100000 00010000 "overlay"
 +
mtd6: 00010000 00010000 "board_data"
 +
mtd7: 00010000 00010000 "nvram"
 +
mtd8: 00fe0000 00010000 "firmware"
 
</source>
 
</source>
  
第19行: 第45行:
  
 
== Ethernet ==
 
== Ethernet ==
 +
 +
内核相关:
 +
 +
<source lang=bash>
 +
CONFIG_ET=m
 +
CONFIG_ET_47XX=y
 +
# CONFIG_ET_ALL_PASSIVE_ON is not set
 +
CONFIG_ET_ALL_PASSIVE_RUNTIME=y
 +
 +
drivers/net/et/
 +
drivers/net/hnd
 +
</source>
  
 
<source lang=bash>
 
<source lang=bash>
第32行: 第70行:
  
 
<source lang=bash>
 
<source lang=bash>
 +
Kernel booting log:
 +
 
wl_module_init: passivemode set to 0x0
 
wl_module_init: passivemode set to 0x0
 
wl_module_init: txworkq set to 0x0
 
wl_module_init: txworkq set to 0x0
第39行: 第79行:
 
srom rev:0
 
srom rev:0
 
wl1: Broadcom BCMa8db 802.11 Wireless Controller 6.37.14.34 (r415984 WLTEST)
 
wl1: Broadcom BCMa8db 802.11 Wireless Controller 6.37.14.34 (r415984 WLTEST)
 +
 +
 +
$ lspci
 +
0001:01:00.0 Network controller: Broadcom Corporation Device 4360 (rev 03)  ---> wl0 (irq=163)
 +
0002:00:00.0 PCI bridge: Broadcom Corporation Device 8012 (rev 01)
 +
0002:02:00.0 Network controller: Broadcom Corporation Device a8db          ---> wl1 (irq=169)
 
</source>
 
</source>
  
 
<br><br>
 
<br><br>
  
== USB2Serial
+
== SATA ==
 +
 
 +
<source lang=bash>
 +
$ lspci
 +
0003:03:00.0 SATA controller: ASMedia Technology Inc. ASM1062 Serial ATA Controller (rev 01)
 +
</source>
 +
 
 +
<br><br>
 +
 
 +
== USB2Serial ==
  
 
<source lang=bash>
 
<source lang=bash>
第68行: 第123行:
  
 
<br><br>
 
<br><br>
 +
 +
== GPIO LED ==
 +
 +
 +
 +
<source lang=bash>
 +
 +
</source>
 
<br><br>
 
<br><br>
 
<br><br>
 
<br><br>

2014年6月25日 (三) 13:26的最后版本

目录

[编辑] 1 手记



[编辑] 2 SPI Flash

remove:

 CONFIG_MTD_BCM947XX=y (sflash)
 CONFIG_MTD_NAND=y
 CONFIG_MTD_NFLASH


arch/arm/mach-brcm-hnd/board_ns.c
init_mtd_partitions()

bcmsflash: squash filesystem found at block 127
Creating 10 MTD partitions on "bcmsflash":
0x000000000000-0x000000040000 : "boot"
0x000000040000-0x000000340000 : "os"
0x000000340000-0x000000640000 : "os1"
0x000000640000-0x000000ed0000 : "squashfs"
0x000000ed0000-0x000000ee0000 : "crash"
0x000000ee0000-0x000000fe0000 : "overlay"
0x000000fe0000-0x000000ff0000 : "board_data"
0x000000ff0000-0x000001000000 : "nvram"
0x000000000000-0x000000fe0000 : "firmware"

# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00040000 00010000 "boot"
mtd1: 00300000 00010000 "os"
mtd2: 00300000 00010000 "os1"
mtd3: 00890000 00010000 "squashfs"
mtd4: 00010000 00010000 "crash"
mtd5: 00100000 00010000 "overlay"
mtd6: 00010000 00010000 "board_data"
mtd7: 00010000 00010000 "nvram"
mtd8: 00fe0000 00010000 "firmware"



[编辑] 3 Ethernet

内核相关:

CONFIG_ET=m
CONFIG_ET_47XX=y
# CONFIG_ET_ALL_PASSIVE_ON is not set
CONFIG_ET_ALL_PASSIVE_RUNTIME=y

drivers/net/et/
drivers/net/hnd
et_module_init: passivemode set to 0x0
et_module_init: txworkq set to 0x0
et_module_init: et_txq_thresh set to 0x400
eth0: Broadcom BCM47XX 10/100/1000 Mbps Ethernet Controller 6.37.14.34 (r415984)



[编辑] 4 WLAN

Kernel booting log:

wl_module_init: passivemode set to 0x0
wl_module_init: txworkq set to 0x0
srom rev:0
wl0: Broadcom BCM4360 802.11 Wireless Controller 6.37.14.34 (r415984 WLTEST)
PCI: Enabling device 0002:02:00.0 (0140 -> 0142)
srom rev:0
wl1: Broadcom BCMa8db 802.11 Wireless Controller 6.37.14.34 (r415984 WLTEST)


$ lspci
0001:01:00.0 Network controller: Broadcom Corporation Device 4360 (rev 03)  ---> wl0 (irq=163)
0002:00:00.0 PCI bridge: Broadcom Corporation Device 8012 (rev 01)
0002:02:00.0 Network controller: Broadcom Corporation Device a8db           ---> wl1 (irq=169)



[编辑] 5 SATA

$ lspci
0003:03:00.0 SATA controller: ASMedia Technology Inc. ASM1062 Serial ATA Controller (rev 01)



[编辑] 6 USB2Serial

pl2303: Prolific PL2303 USB to serial adaptor driver
Bluetooth: Virtual HCI driver ver 1.3
Bluetooth: HCI UART driver ver 2.2
Bluetooth: HCI H4 protocol initialized
Bluetooth: HCI BCSP protocol initialized
Bluetooth: HCILL protocol initialized
Bluetooth: HCIATH3K protocol initialized
Bluetooth: Broadcom Blutonium firmware driver ver 1.2
usbcore: registered new interface driver bcm203x
Bluetooth: Digianswer Bluetooth USB driver ver 0.10
usbcore: registered new interface driver bpa10x
Bluetooth: BlueFRITZ! USB driver ver 1.2
usbcore: registered new interface driver bfusb
Bluetooth: Generic Bluetooth USB driver ver 0.6
usbcore: registered new interface driver btusb
Bluetooth: Atheros AR30xx firmware driver ver 1.0
usbcore: registered new interface driver ath3k
Netfilter messages via NETLINK v0.30.
nf_conntrack version 0.5.0 (3973 buckets, 15892 max)



[编辑] 7 GPIO LED
















个人工具
名字空间

变换
操作
导航
工具箱