Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| toh:poray:prp-x5 [2013/09/19 22:55] – updated notes with Power states/USB/ADC info heffer | toh:poray:prp-x5 [2024/02/12 08:58] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Poray PRP-X5 ====== | ||
| + | {{section> | ||
| + | |||
| + | A portable router with an onboard 5200mAh [[# | ||
| + | |||
| + | Also known as: [[http:// | ||
| + | |||
| + | ===== Supported Versions ===== | ||
| + | <!-- ToH: { | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | } --> | ||
| + | |||
| + | ===== Hardware Highlights ===== | ||
| + | |||
| + | ===== Installation ===== | ||
| + | <!-- ToH: { | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | } --> | ||
| + | |||
| + | -> [[docs: | ||
| + | | ||
| + | Currently only installing via Serial + TFTP has been tested by pressing **'' | ||
| + | |||
| + | {{section> | ||
| + | |||
| + | ==== OEM installation using the TFTP method ==== | ||
| + | -> | ||
| + | |||
| + | |||
| + | ===== Basic configuration ===== | ||
| + | -> [[docs: | ||
| + | Set up your Internet connection, configure wireless, configure USB port, etc. | ||
| + | |||
| + | |||
| + | ===== Specific Configuration ===== | ||
| + | ==== Interfaces ==== | ||
| + | |||
| + | The default network configuration is: | ||
| + | ^ Interface Name ^ Description ^ Default configuration ^ | ||
| + | | br-lan | LAN (& eventually WiFi) | 192.168.1.1/ | ||
| + | | eth0 | LAN port | None | | ||
| + | |||
| + | |||
| + | ==== Failsafe mode ==== | ||
| + | -> [[docs: | ||
| + | |||
| + | ==== Buttons ==== | ||
| + | -> [[docs: | ||
| + | |||
| + | The Linksys WRT54GL has two buttons. They are Reset and Secure Easy Setup. Here, we merely name the buttons, so we can use them in the above Howto: | ||
| + | ^ BUTTON | ||
| + | | Power | KEY_POWER | ||
| + | | Reset | KEY_RESTART | ||
| + | | DHCP/3G Switch | ||
| + | |||
| + | |||
| + | ===== Hardware ===== | ||
| + | ==== Info ==== | ||
| + | ^ [[wp> | ||
| + | ^ Vendor | ||
| + | ^ [[docs: | ||
| + | ^ [[docs: | ||
| + | ^ [[docs: | ||
| + | ^ Flash-Chip | ||
| + | ^ Flash size | 8192 KiB | | ||
| + | ^ RAM-Chip | ||
| + | ^ RAM | 32 MiB | | ||
| + | ^ Wireless | ||
| + | ^ Ethernet | ||
| + | ^ USB | Yes, 2 (1 is power only) | | ||
| + | ^ [[docs: | ||
| + | ^ [[docs: | ||
| + | |||
| + | ==== Photos ==== | ||
| + | Model Number | ||
| + | |||
| + | // | ||
| + | **Insert picture of case front** | ||
| + | |||
| + | //Back://\\ | ||
| + | **Insert picture of case rear** | ||
| + | |||
| + | **Note:** This will void your warranty! | ||
| + | |||
| + | * Cover is held by 4 screws and some plastic notches | ||
| + | | ||
| + | //Main PCB//\\ | ||
| + | {{: | ||
| + | |||
| + | ==== Serial ==== | ||
| + | -> [[docs: | ||
| + | |||
| + | How to connect to the Serial Port of this specific device:\\ | ||
| + | {{: | ||
| + | |||
| + | ==== JTAG ==== | ||
| + | -> [[docs: | ||
| + | |||
| + | ===== Debricking ===== | ||
| + | -> [[docs: | ||
| + | |||
| + | ===== Notes ===== | ||
| + | ==== Button and Port labels ==== | ||
| + | All button and port labels mentioned in this article refer to the original device manufactured by Poray. The labelling may very on clones/ | ||
| + | |||
| + | ==== Power states ==== | ||
| + | The X5 has three power states: | ||
| + | - Off (labelled **OFF** on the power switch) | ||
| + | - Charge only (labelled **C**) | ||
| + | - On (labelled **ON**) | ||
| + | |||
| + | In off mode the system is turned completely off and does not consume any power. | ||
| + | |||
| + | Charge mode is meant to be used when charging devices from the designated external USB Port. The operating system is not bootet. Note that this mode will eventually drain the battery, even if nothing is connected to the external USB port. | ||
| + | |||
| + | On mode turns on the SoC and thus enables USB and WiFi operation. | ||
| + | |||
| + | ==== USB Ports ==== | ||
| + | The RT5350 SoC only has one USB port. However, the X5/X6 has two external USB Ports and the card reader that is attached internally via USB. | ||
| + | |||
| + | One of the USB Ports (labelled **USB-OUT**) can only be used for power output, it is not connected to the USB controller in any way. This leaves us with the second USB port as well as the internal card reader. | ||
| + | |||
| + | As the X5/X6 does not have an onboard USB hub you can only either run the external USB port (labelled **3G-USB**) or the card reader. Switching between the card reader and the external USB port is done by setting the GPIO 18 (exported as **usb-mode** in sysfs) to **0** for the card reader and **1** for the external USB port. The OEM firmware uses an external switch (labelled **3G** and **DHCP**) to trigger the switching of USB ports. | ||
| + | |||
| + | **Note:** Some USB devices do not work after switching the USB port while the system is running. The original firmware works around this issue by rebooting every time you switch the USB port. | ||
| + | |||
| + | ==== Battery Level ==== | ||
| + | There currently is no driver for reading the ADC that monitors the device' | ||
| + | |||
| + | ===== Bootlogs ===== | ||
| + | ==== OEM bootlog ==== | ||
| + | <WRAP bootlog> | ||
| + | < | ||
| + | |||
| + | |||
| + | Board: Ralink APSoC DRAM: 32 MB | ||
| + | |||
| + | relocate_code Pointer at: 81fb4000 | ||
| + | |||
| + | spi_wait_nsec: | ||
| + | |||
| + | spi device id: c8 40 17 c8 40 (4017c840) | ||
| + | |||
| + | Warning: un-recognized chip ID, please update bootloader! | ||
| + | |||
| + | raspi_read: from:30000 len: | ||
| + | |||
| + | .raspi_read: | ||
| + | |||
| + | .GPIODIR=003fbfff | ||
| + | |||
| + | GPIOSET=00000000 | ||
| + | |||
| + | GPIODAT=00000000 | ||
| + | |||
| + | ============================================ | ||
| + | |||
| + | Ralink UBoot Version: 3.5.2.0 | ||
| + | |||
| + | -------------------------------------------- | ||
| + | |||
| + | ASIC 5350_MP (Port5< | ||
| + | |||
| + | DRAM_CONF_FROM: | ||
| + | |||
| + | DRAM_TYPE: SDRAM | ||
| + | |||
| + | DRAM_SIZE: 256 Mbits | ||
| + | |||
| + | DRAM_WIDTH: 16 bits | ||
| + | |||
| + | DRAM_TOTAL_WIDTH: | ||
| + | |||
| + | TOTAL_MEMORY_SIZE: | ||
| + | |||
| + | Flash component: SPI Flash | ||
| + | |||
| + | Date: | ||
| + | |||
| + | ============================================ | ||
| + | |||
| + | icache: sets:256, ways:4, linesz:32 , | ||
| + | |||
| + | dcache: sets:128, ways:4, linesz:32 , | ||
| + | |||
| + | |||
| + | ##### The CPU freq = 360 MHZ #### | ||
| + | |||
| + | | ||
| + | |||
| + | GPIODIR=003fbfff | ||
| + | |||
| + | GPIOMOD=000002dc | ||
| + | |||
| + | GPIODAT=00000000 | ||
| + | |||
| + | |||
| + | Please choose the operation: | ||
| + | |||
| + | 1: Load system code to SDRAM via TFTP. | ||
| + | |||
| + | 2: Load system code then write to Flash via TFTP. | ||
| + | |||
| + | 3: Boot system code via Flash (default). | ||
| + | |||
| + | 4: Entr boot command line interface. | ||
| + | |||
| + | 7: Load Boot Loader code then write to Flash via Serial. | ||
| + | |||
| + | 9: Load Boot Loader code then write to Flash via TFTP. | ||
| + | |||
| + | 4 3 2 1 0 | ||
| + | |||
| + | |||
| + | |||
| + | 3: System Boot system code via Flash. | ||
| + | |||
| + | ## Booting image at bc050000 ... | ||
| + | |||
| + | raspi_read: from:50000 len: | ||
| + | |||
| + | . Image Name: Linux Kernel Image | ||
| + | |||
| + | | ||
| + | |||
| + | Image Type: MIPS Linux Kernel Image (lzma compressed) | ||
| + | |||
| + | Data Size: 4234475 Bytes = 4 MB | ||
| + | |||
| + | Load Address: 80000000 | ||
| + | |||
| + | Entry Point: | ||
| + | |||
| + | raspi_read: from:50040 len: | ||
| + | |||
| + | ................................................................. | ||
| + | |||
| + | | ||
| + | |||
| + | No initrd | ||
| + | |||
| + | ## Transferring control to Linux (at address 80400000) ... | ||
| + | |||
| + | ## Giving linux memsize in MB, 32 | ||
| + | |||
| + | |||
| + | Starting kernel ... | ||
| + | |||
| + | |||
| + | |||
| + | LINUX started... | ||
| + | |||
| + | THIS IS ASIC | ||
| + | Linux version 2.6.21 (root@MaxWong) (gcc version 3.4.2) #383 Thu Jun 28 21:07:54 CST 2012 | ||
| + | |||
| + | The CPU feqenuce set to 360 MHz | ||
| + | CPU revision is: 0001964c | ||
| + | Determined physical RAM map: | ||
| + | | ||
| + | Initrd not found or empty - disabling initrd | ||
| + | Built 1 zonelists. | ||
| + | Kernel command line: console=ttyS1, | ||
| + | Primary instruction cache 32kB, physically tagged, 4-way, linesize 32 bytes. | ||
| + | Primary data cache 16kB, 4-way, linesize 32 bytes. | ||
| + | Synthesized TLB refill handler (20 instructions). | ||
| + | Synthesized TLB load handler fastpath (32 instructions). | ||
| + | Synthesized TLB store handler fastpath (32 instructions). | ||
| + | Synthesized TLB modify handler fastpath (31 instructions). | ||
| + | Cache parity protection disabled | ||
| + | cause = c0808060, status = 11000000 | ||
| + | PID hash table entries: 128 (order: 7, 512 bytes) | ||
| + | calculating r4koff... 0015f900(1440000) | ||
| + | CPU frequency 360.00 MHz | ||
| + | Using 0.050 MHz high precision timer. | ||
| + | Console: colour dummy device 80x25 | ||
| + | Dentry cache hash table entries: 4096 (order: 2, 16384 bytes) | ||
| + | Inode-cache hash table entries: 2048 (order: 1, 8192 bytes) | ||
| + | Memory: 25252k/ | ||
| + | Mount-cache hash table entries: 512 | ||
| + | NET: Registered protocol family 16 | ||
| + | usbcore: registered new interface driver usbfs | ||
| + | usbcore: registered new interface driver hub | ||
| + | usbcore: registered new device driver usb | ||
| + | NET: Registered protocol family 2 | ||
| + | Time: MIPS clocksource has been installed. | ||
| + | IP route cache hash table entries: 1024 (order: 0, 4096 bytes) | ||
| + | TCP established hash table entries: 1024 (order: 1, 8192 bytes) | ||
| + | TCP bind hash table entries: 1024 (order: 0, 4096 bytes) | ||
| + | TCP: Hash tables configured (established 1024 bind 1024) | ||
| + | TCP reno registered | ||
| + | detected lzma initramfs | ||
| + | detected lzma initramfs | ||
| + | initramfs: LZMA lc=3, | ||
| + | LZMA initramfs by Ming-Ching Tiew < | ||
| + | deice id : c8 40 17 c8 40 (4017c840) | ||
| + | unknown(c8 4017c840) (8192 Kbytes) | ||
| + | mtd .name = raspi, .size = 0x00800000 (8M) .erasesize = 0x00010000 (64K) .numeraseregions = 0 | ||
| + | Creating 4 MTD partitions on " | ||
| + | 0x00000000-0x00030000 : " | ||
| + | 0x00030000-0x00040000 : " | ||
| + | 0x00040000-0x00050000 : " | ||
| + | 0x00050000-0x00800000 : " | ||
| + | Load Ralink DFS Timer Module | ||
| + | RT3xxx EHCI/OHCI init. | ||
| + | squashfs: version 3.2-r2 (2007/ | ||
| + | squashfs: LZMA suppport for slax.org by jro | ||
| + | NTFS driver 2.1.28 [Flags: R/W]. | ||
| + | fuse init (API version 7.8) | ||
| + | io scheduler noop registered (default) | ||
| + | IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIi | ||
| + | HDLC line discipline: version $Revision: 1.1.1.1 $, maxframe=4096 | ||
| + | N_HDLC line discipline registered. | ||
| + | Serial: 8250/16550 driver $Revision: 1.7 $ 2 ports, IRQ sharing disabled | ||
| + | serial8250: ttyS0 at I/O 0xb0000500 (irq = 37) is a 16550A | ||
| + | serial8250: ttyS1 at I/O 0xb0000c00 (irq = 12) is a 16550A | ||
| + | RAMDISK driver initialized: | ||
| + | loop: loaded (max 8 devices) | ||
| + | rdm_major = 254 | ||
| + | MAC_ADRH -- : 0x00000000 | ||
| + | MAC_ADRL -- : 0x00000000 | ||
| + | Ralink APSoC Ethernet Driver Initilization. v2.0 256 rx/tx descriptors allocated, mtu = 1500! | ||
| + | MAC_ADRH -- : 0x0000000c | ||
| + | MAC_ADRL -- : 0x43305077 | ||
| + | PROC INIT OK! | ||
| + | PPP generic driver version 2.4.2 | ||
| + | PPP Deflate Compression module registered | ||
| + | PPP BSD Compression module registered | ||
| + | PPP MPPE Compression module registered | ||
| + | NET: Registered protocol family 24 | ||
| + | PPPoL2TP kernel driver, V0.17 | ||
| + | PPTP driver version 0.8.1 | ||
| + | |||
| + | |||
| + | === pAd = c0019000, size = 629832 === | ||
| + | |||
| + | <-- RTMPAllocAdapterBlock, | ||
| + | block2mtd: version $Revision: 1.1.1.1 $ | ||
| + | rt3xxx-ehci rt3xxx-ehci: | ||
| + | rt3xxx-ehci rt3xxx-ehci: | ||
| + | rt3xxx-ehci rt3xxx-ehci: | ||
| + | rt3xxx-ehci rt3xxx-ehci: | ||
| + | usb usb1: Product: Ralink EHCI Host Controller | ||
| + | usb usb1: Manufacturer: | ||
| + | usb usb1: SerialNumber: | ||
| + | usb usb1: configuration #1 chosen from 1 choice | ||
| + | hub 1-0:1.0: USB hub found | ||
| + | hub 1-0:1.0: 1 port detected | ||
| + | rt3xxx-ohci rt3xxx-ohci: | ||
| + | rt3xxx-ohci rt3xxx-ohci: | ||
| + | rt3xxx-ohci rt3xxx-ohci: | ||
| + | usb usb2: Product: RT3xxx OHCI Controller | ||
| + | usb usb2: Manufacturer: | ||
| + | usb usb2: SerialNumber: | ||
| + | usb usb2: configuration #1 chosen from 1 choice | ||
| + | hub 2-0:1.0: USB hub found | ||
| + | hub 2-0:1.0: 1 port detected | ||
| + | usb 1-1: new high speed USB device using rt3xxx-ehci and address 2 | ||
| + | usb 1-1: Product: USB Storage | ||
| + | usb 1-1: Manufacturer: | ||
| + | usb 1-1: SerialNumber: | ||
| + | usb 1-1: configuration #1 chosen from 1 choice | ||
| + | usbcore: registered new interface driver cdc_acm | ||
| + | drivers/ | ||
| + | Netfilter messages via NETLINK v0.30. | ||
| + | nf_conntrack version 0.5.0 (256 buckets, 2048 max) | ||
| + | ip_tables: (C) 2000-2006 Netfilter Core Team, Type=Linux | ||
| + | ipt_time loading | ||
| + | TCP cubic registered | ||
| + | NET: Registered protocol family 1 | ||
| + | NET: Registered protocol family 17 | ||
| + | Ebtables v2.0 registered | ||
| + | 802.1Q VLAN Support v1.8 Ben Greear < | ||
| + | All bugs added by David S. Miller < | ||
| + | _nvram_read checksum = f2b4 save checksum = f2b4 | ||
| + | Freeing unused kernel memory: 2904k freed | ||
| + | usb 1-1: USB disconnect, address 2 | ||
| + | Hit enter to continue...************************************************* | ||
| + | |||
| + | phy_tx_ring = 0x0065c000, tx_ring = 0xa065c000 | ||
| + | |||
| + | phy_rx_ring0 = 0x0065d000, rx_ring0 = 0xa065d000 | ||
| + | RT305x_ESW: Link Status Changed | ||
| + | RX DESC a067b000 | ||
| + | <-- RTMPAllocTxRxRingMemory, | ||
| + | RTMP_TimerListAdd: | ||
| + | RTMP_TimerListAdd: | ||
| + | RTMP_TimerListAdd: | ||
| + | RTMP_TimerListAdd: | ||
| + | RTMP_TimerListAdd: | ||
| + | RTMP_TimerListAdd: | ||
| + | RTMP_TimerListAdd: | ||
| + | RTMP_TimerListAdd: | ||
| + | RTMP_TimerListAdd: | ||
| + | RTMP_TimerListAdd: | ||
| + | RTMP_TimerListAdd: | ||
| + | RTMP_TimerListAdd: | ||
| + | RTMP_TimerListAdd: | ||
| + | RTMP_TimerListAdd: | ||
| + | RTMP_TimerListAdd: | ||
| + | RTMP_TimerListAdd: | ||
| + | RTMP_TimerListAdd: | ||
| + | RTMP_TimerListAdd: | ||
| + | RTMP_TimerListAdd: | ||
| + | RTMP_TimerListAdd: | ||
| + | RTMP_TimerListAdd: | ||
| + | RTMP_TimerListAdd: | ||
| + | RTMP_TimerListAdd: | ||
| + | RTMP_TimerListAdd: | ||
| + | RTMP_TimerListAdd: | ||
| + | RTMP_TimerListAdd: | ||
| + | RTMP_TimerListAdd: | ||
| + | RTMP_TimerListAdd: | ||
| + | RTMP_TimerListAdd: | ||
| + | RTMP_TimerListAdd: | ||
| + | RTMP_TimerListAdd: | ||
| + | RTMP_TimerListAdd: | ||
| + | RTMP_TimerListAdd: | ||
| + | RTMP_TimerListAdd: | ||
| + | RTMP_TimerListAdd: | ||
| + | RTMP_TimerListAdd: | ||
| + | RTMP_TimerListAdd: | ||
| + | RTMP_TimerListAdd: | ||
| + | RTMP_TimerListAdd: | ||
| + | RTMP_TimerListAdd: | ||
| + | RTMP_TimerListAdd: | ||
| + | RTMP_TimerListAdd: | ||
| + | RTMP_TimerListAdd: | ||
| + | RTMP_TimerListAdd: | ||
| + | RTMP_TimerListAdd: | ||
| + | RTMP_TimerListAdd: | ||
| + | RTMP_TimerListAdd: | ||
| + | RTMP_TimerListAdd: | ||
| + | RTMP_TimerListAdd: | ||
| + | RTMP_TimerListAdd: | ||
| + | RTMP_TimerListAdd: | ||
| + | RTMP_TimerListAdd: | ||
| + | RTMP_TimerListAdd: | ||
| + | RTMP_TimerListAdd: | ||
| + | RTMP_TimerListAdd: | ||
| + | RTMP_TimerListAdd: | ||
| + | RTMP_TimerListAdd: | ||
| + | RTMP_TimerListAdd: | ||
| + | RTMP_TimerListAdd: | ||
| + | RTMP_TimerListAdd: | ||
| + | RTMP_TimerListAdd: | ||
| + | RTMP_TimerListAdd: | ||
| + | RTMP_TimerListAdd: | ||
| + | RTMP_TimerListAdd: | ||
| + | RTMP_TimerListAdd: | ||
| + | RTMP_TimerListAdd: | ||
| + | RTMP_TimerListAdd: | ||
| + | RTMP_TimerListAdd: | ||
| + | RTMP_TimerListAdd: | ||
| + | RTMP_TimerListAdd: | ||
| + | RTMP_TimerListAdd: | ||
| + | RTMP_TimerListAdd: | ||
| + | RTMP_TimerListAdd: | ||
| + | RTMP_TimerListAdd: | ||
| + | RTMP_TimerListAdd: | ||
| + | RTMP_TimerListAdd: | ||
| + | RTMP_TimerListAdd: | ||
| + | RTMP_TimerListAdd: | ||
| + | RTMP_TimerListAdd: | ||
| + | RTMP_TimerListAdd: | ||
| + | RTMP_TimerListAdd: | ||
| + | RTMP_TimerListAdd: | ||
| + | Key1Str is Invalid key length(0) or Type(0) | ||
| + | Key2Str is Invalid key length(0) or Type(0) | ||
| + | Key3Str is Invalid key length(0) or Type(0) | ||
| + | Key4Str is Invalid key length(0) or Type(0) | ||
| + | 1. Phy Mode = 9 | ||
| + | 2. Phy Mode = 9 | ||
| + | TXALC> bInternalTxALC = 1 | ||
| + | 3. Phy Mode = 9 | ||
| + | RTMP_TimerListAdd: | ||
| + | NICInitAsicFromEEPROM: | ||
| + | RT305x_ESW: Link Status Changed | ||
| + | Channel 1 TSSI delta=-1 | ||
| + | Channel 2 TSSI delta=-1 | ||
| + | Channel 3 TSSI delta=-1 | ||
| + | Channel 4 TSSI delta=-1 | ||
| + | Channel 5 TSSI delta=-1 | ||
| + | Channel 6 TSSI delta=-1 | ||
| + | Channel 7 TSSI delta=-1 | ||
| + | Channel 8 TSSI delta=-1 | ||
| + | Channel 9 TSSI delta=-1 | ||
| + | Channel 10 TSSI delta=-1 | ||
| + | Channel 11 TSSI delta=-1 | ||
| + | Channel 12 TSSI delta=-1 | ||
| + | Channel 13 TSSI delta=-1 | ||
| + | Channel 14 TSSI delta=-1 | ||
| + | TSSIBase(0x6E) = 3F, TxPowerOFDM54 = 6 | ||
| + | EEPROM_CCK_MCS0_MCS1(0xDE) = 0x6 | ||
| + | EEPROM_CCK_MCS2_MCS3(0xDF) = 0x6 | ||
| + | RT5350_desiredTSSIOverCCK[0] = 931833 | ||
| + | RT5350_desiredTSSIOverCCK[1] = 931833 | ||
| + | RT5350_desiredTSSIOverCCK[2] = 931833 | ||
| + | RT5350_desiredTSSIOverCCK[3] = 931833 | ||
| + | EEPROM_OFDM_MCS0_MCS1(0xE0) = 0xC | ||
| + | EEPROM_OFDM_MCS2_MCS3(0xE1) = 0xA | ||
| + | EEPROM_OFDM_MCS4_MCS5(0xE2) = 0x8 | ||
| + | EEPROM_OFDM_MCS6_MCS7(0xE3) = 0x6 | ||
| + | RT5350_desiredTSSIOverOFDM[0] = 1240000 | ||
| + | RT5350_desiredTSSIOverOFDM[1] = 1240000 | ||
| + | RT5350_desiredTSSIOverOFDM[2] = 1133307 | ||
| + | RT5350_desiredTSSIOverOFDM[3] = 1133307 | ||
| + | RT5350_desiredTSSIOverOFDM[4] = 766206 | ||
| + | RT5350_desiredTSSIOverOFDM[5] = 766206 | ||
| + | RT5350_desiredTSSIOverOFDM[6] = 630000 | ||
| + | RT5350_desiredTSSIOverOFDM[7] = 630000 | ||
| + | EEPROM_HT_MCS0_MCS1(0xE4) = 0xC | ||
| + | EEPROM_HT_MCS2_MCS3(0xE5) = 0xA | ||
| + | EEPROM_HT_MCS4_MCS5(0xE6) = 0x8 | ||
| + | EEPROM_HT_MCS6_MCS7(0xE7) = 0x6 | ||
| + | MCS Set = ff 00 00 00 01 | ||
| + | SYNC - BBP R4 to 20MHz.l | ||
| + | SYNC - BBP R4 to 20MHz.l | ||
| + | SYNC - BBP R4 to 20MHz.l | ||
| + | SYNC - BBP R4 to 20MHz.l | ||
| + | SYNC - BBP R4 to 20MHz.l | ||
| + | RT305x_ESW: Link Status Changed | ||
| + | SYNC - BBP R4 to 20MHz.l | ||
| + | SYNC - BBP R4 to 20MHz.l | ||
| + | SYNC - BBP R4 to 20MHz.l | ||
| + | SYNC - BBP R4 to 20MHz.l | ||
| + | SYNC - BBP R4 to 20MHz.l | ||
| + | SYNC - BBP R4 to 20MHz.l | ||
| + | RTMP_TimerListAdd: | ||
| + | Main bssid = 8c: | ||
| + | <==== rt28xx_init, | ||
| + | 0x1300 = 00064380 | ||
| + | Algorithmics/ | ||
| + | eth2.1: Setting MAC address to 8c 00 1c 0e 1a 2a. | ||
| + | device eth2 entered promiscuous mode | ||
| + | VLAN (eth2.1): | ||
| + | device ra0 entered promiscuous mode | ||
| + | eth2.1: dev_set_promiscuity(master, | ||
| + | device eth2.1 entered promiscuous mode | ||
| + | br0: port 2(eth2.1) entering learning state | ||
| + | br0: port 1(ra0) entering learning state | ||
| + | br0: topology change detected, propagating | ||
| + | br0: port 2(eth2.1) entering forwarding state | ||
| + | br0: topology change detected, propagating | ||
| + | br0: port 1(ra0) entering forwarding state | ||
| + | br0: port 1(ra0) entering disabled state | ||
| + | RX DESC a1772000 | ||
| + | <-- RTMPAllocTxRxRingMemory, | ||
| + | RTMP_TimerListAdd: | ||
| + | RTMP_TimerListAdd: | ||
| + | RTMP_TimerListAdd: | ||
| + | RTMP_TimerListAdd: | ||
| + | RTMP_TimerListAdd: | ||
| + | RTMP_TimerListAdd: | ||
| + | RTMP_TimerListAdd: | ||
| + | RTMP_TimerListAdd: | ||
| + | RTMP_TimerListAdd: | ||
| + | RTMP_TimerListAdd: | ||
| + | RTMP_TimerListAdd: | ||
| + | RTMP_TimerListAdd: | ||
| + | RTMP_TimerListAdd: | ||
| + | RTMP_TimerListAdd: | ||
| + | RTMP_TimerListAdd: | ||
| + | RTMP_TimerListAdd: | ||
| + | RTMP_TimerListAdd: | ||
| + | RTMP_TimerListAdd: | ||
| + | RTMP_TimerListAdd: | ||
| + | RTMP_TimerListAdd: | ||
| + | RTMP_TimerListAdd: | ||
| + | RTMP_TimerListAdd: | ||
| + | RTMP_TimerListAdd: | ||
| + | RTMP_TimerListAdd: | ||
| + | RTMP_TimerListAdd: | ||
| + | RTMP_TimerListAdd: | ||
| + | RTMP_TimerListAdd: | ||
| + | RTMP_TimerListAdd: | ||
| + | RTMP_TimerListAdd: | ||
| + | RTMP_TimerListAdd: | ||
| + | RTMP_TimerListAdd: | ||
| + | RTMP_TimerListAdd: | ||
| + | RTMP_TimerListAdd: | ||
| + | RTMP_TimerListAdd: | ||
| + | RTMP_TimerListAdd: | ||
| + | RTMP_TimerListAdd: | ||
| + | RTMP_TimerListAdd: | ||
| + | RTMP_TimerListAdd: | ||
| + | RTMP_TimerListAdd: | ||
| + | RTMP_TimerListAdd: | ||
| + | RTMP_TimerListAdd: | ||
| + | RTMP_TimerListAdd: | ||
| + | RTMP_TimerListAdd: | ||
| + | RTMP_TimerListAdd: | ||
| + | RTMP_TimerListAdd: | ||
| + | RTMP_TimerListAdd: | ||
| + | RTMP_TimerListAdd: | ||
| + | RTMP_TimerListAdd: | ||
| + | RTMP_TimerListAdd: | ||
| + | RTMP_TimerListAdd: | ||
| + | RTMP_TimerListAdd: | ||
| + | RTMP_TimerListAdd: | ||
| + | RTMP_TimerListAdd: | ||
| + | RTMP_TimerListAdd: | ||
| + | RTMP_TimerListAdd: | ||
| + | RTMP_TimerListAdd: | ||
| + | RTMP_TimerListAdd: | ||
| + | RTMP_TimerListAdd: | ||
| + | RTMP_TimerListAdd: | ||
| + | RTMP_TimerListAdd: | ||
| + | RTMP_TimerListAdd: | ||
| + | RTMP_TimerListAdd: | ||
| + | RTMP_TimerListAdd: | ||
| + | RTMP_TimerListAdd: | ||
| + | RTMP_TimerListAdd: | ||
| + | RTMP_TimerListAdd: | ||
| + | RTMP_TimerListAdd: | ||
| + | RTMP_TimerListAdd: | ||
| + | RTMP_TimerListAdd: | ||
| + | RTMP_TimerListAdd: | ||
| + | RTMP_TimerListAdd: | ||
| + | RTMP_TimerListAdd: | ||
| + | RTMP_TimerListAdd: | ||
| + | RTMP_TimerListAdd: | ||
| + | RTMP_TimerListAdd: | ||
| + | RTMP_TimerListAdd: | ||
| + | RTMP_TimerListAdd: | ||
| + | RTMP_TimerListAdd: | ||
| + | RTMP_TimerListAdd: | ||
| + | RTMP_TimerListAdd: | ||
| + | RTMP_TimerListAdd: | ||
| + | RTMP_TimerListAdd: | ||
| + | Key1Str is Invalid key length(0) or Type(0) | ||
| + | Key2Str is Invalid key length(0) or Type(0) | ||
| + | Key3Str is Invalid key length(0) or Type(0) | ||
| + | Key4Str is Invalid key length(0) or Type(0) | ||
| + | 1. Phy Mode = 9 | ||
| + | 2. Phy Mode = 9 | ||
| + | TXALC> bInternalTxALC = 1 | ||
| + | 3. Phy Mode = 9 | ||
| + | RTMP_TimerListAdd: | ||
| + | NICInitAsicFromEEPROM: | ||
| + | Channel 1 TSSI delta=-1 | ||
| + | Channel 2 TSSI delta=-1 | ||
| + | Channel 3 TSSI delta=-1 | ||
| + | Channel 4 TSSI delta=-1 | ||
| + | Channel 5 TSSI delta=-1 | ||
| + | Channel 6 TSSI delta=-1 | ||
| + | Channel 7 TSSI delta=-1 | ||
| + | Channel 8 TSSI delta=-1 | ||
| + | Channel 9 TSSI delta=-1 | ||
| + | Channel 10 TSSI delta=-1 | ||
| + | Channel 11 TSSI delta=-1 | ||
| + | Channel 12 TSSI delta=-1 | ||
| + | Channel 13 TSSI delta=-1 | ||
| + | Channel 14 TSSI delta=-1 | ||
| + | TSSIBase(0x6E) = 3F, TxPowerOFDM54 = 6 | ||
| + | EEPROM_CCK_MCS0_MCS1(0xDE) = 0x6 | ||
| + | EEPROM_CCK_MCS2_MCS3(0xDF) = 0x6 | ||
| + | RT5350_desiredTSSIOverCCK[0] = 931833 | ||
| + | RT5350_desiredTSSIOverCCK[1] = 931833 | ||
| + | RT5350_desiredTSSIOverCCK[2] = 931833 | ||
| + | RT5350_desiredTSSIOverCCK[3] = 931833 | ||
| + | EEPROM_OFDM_MCS0_MCS1(0xE0) = 0xC | ||
| + | EEPROM_OFDM_MCS2_MCS3(0xE1) = 0xA | ||
| + | EEPROM_OFDM_MCS4_MCS5(0xE2) = 0x8 | ||
| + | EEPROM_OFDM_MCS6_MCS7(0xE3) = 0x6 | ||
| + | RT5350_desiredTSSIOverOFDM[0] = 1240000 | ||
| + | RT5350_desiredTSSIOverOFDM[1] = 1240000 | ||
| + | RT5350_desiredTSSIOverOFDM[2] = 1133307 | ||
| + | RT5350_desiredTSSIOverOFDM[3] = 1133307 | ||
| + | RT5350_desiredTSSIOverOFDM[4] = 766206 | ||
| + | RT5350_desiredTSSIOverOFDM[5] = 766206 | ||
| + | RT5350_desiredTSSIOverOFDM[6] = 630000 | ||
| + | RT5350_desiredTSSIOverOFDM[7] = 630000 | ||
| + | EEPROM_HT_MCS0_MCS1(0xE4) = 0xC | ||
| + | EEPROM_HT_MCS2_MCS3(0xE5) = 0xA | ||
| + | EEPROM_HT_MCS4_MCS5(0xE6) = 0x8 | ||
| + | EEPROM_HT_MCS6_MCS7(0xE7) = 0x6 | ||
| + | MCS Set = ff 00 00 00 01 | ||
| + | SYNC - BBP R4 to 20MHz.l | ||
| + | SYNC - BBP R4 to 20MHz.l | ||
| + | SYNC - BBP R4 to 20MHz.l | ||
| + | SYNC - BBP R4 to 20MHz.l | ||
| + | SYNC - BBP R4 to 20MHz.l | ||
| + | SYNC - BBP R4 to 20MHz.l | ||
| + | SYNC - BBP R4 to 20MHz.l | ||
| + | SYNC - BBP R4 to 20MHz.l | ||
| + | SYNC - BBP R4 to 20MHz.l | ||
| + | SYNC - BBP R4 to 20MHz.l | ||
| + | RTMP_TimerListAdd: | ||
| + | Main bssid = 8c: | ||
| + | <==== rt28xx_init, | ||
| + | 0x1300 = 00064380 | ||
| + | br0: port 1(ra0) entering learning state | ||
| + | br0: topology change detected, propagating | ||
| + | br0: port 1(ra0) entering forwarding state | ||
| + | killall: rt2860apd: no process killed | ||
| + | rt2860apd: No such file or directory | ||
| + | info, udhcp server (v0.9.8) started | ||
| + | Warning The same mac for two or more ipaddr | ||
| + | time.windows.com: | ||
| + | br0: port 2(eth2.1) entering disabled state | ||
| + | eth2.1: Setting MAC address to 8c 00 1c 0e 1a 2b. | ||
| + | br0: port 2(eth2.1) entering learning state | ||
| + | br0: topology change detected, propagating | ||
| + | br0: port 2(eth2.1) entering forwarding state | ||
| + | / | ||
| + | usb 1-1: new high speed USB device using rt3xxx-ehci and address 3 | ||
| + | usb 1-1: Product: USB Storage | ||
| + | usb 1-1: Manufacturer: | ||
| + | usb 1-1: SerialNumber: | ||
| + | usb 1-1: configuration #1 chosen from 1 choice | ||
| + | samba.sh PorayNet WORKGROUP | ||
| + | smbpasswd -a admin admin | ||
| + | startsmbfilepwent_internal: | ||
| + | Added user admin. | ||
| + | SCSI subsystem initialized | ||
| + | Initializing USB Mass Storage driver... | ||
| + | scsi0 : SCSI emulation for USB Mass Storage devices | ||
| + | usbcore: registered new interface driver usb-storage | ||
| + | USB Mass Storage support registered. | ||
| + | usb 1-1: USB disconnect, address 3 | ||
| + | insmod: cannot insert `/ | ||
| + | insmod: cannot insert `/ | ||
| + | /eject: unable to open `/ | ||
| + | /eject: unable to open `/ | ||
| + | usbcore: deregistering interface driver usb-storage | ||
| + | WAN_PROTO = 0 | ||
| + | Uniform CD-ROM driver unloaded | ||
| + | insmod: cannot insert `/ | ||
| + | insmod: cannot insert `/ | ||
| + | Initializing USB Mass Storage driver... | ||
| + | usbcore: registered new interface driver usb-storage | ||
| + | USB Mass Storage support registered. | ||
| + | usbcore: registered new interface driver usbserial | ||
| + | drivers/ | ||
| + | usbcore: registered new interface driver usbserial_generic | ||
| + | drivers/ | ||
| + | open / | ||
| + | open / | ||
| + | open / | ||
| + | open / | ||
| + | open / | ||
| + | open / | ||
| + | open / | ||
| + | open / | ||
| + | open / | ||
| + | open / | ||
| + | open / | ||
| + | open / | ||
| + | open / | ||
| + | open / | ||
| + | IDLE | ||
| + | Hit enter to continue... | ||
| + | |||
| + | |||
| + | Enter ' | ||
| + | |||
| + | # | ||
| + | # </ | ||
| + | </ | ||
| + | |||
| + | ==== OpenWrt bootlog ==== | ||
| + | <WRAP bootlog> | ||
| + | < | ||
| + | |||
| + | Board: Ralink APSoC DRAM: 32 MB | ||
| + | relocate_code Pointer at: 81fb4000 | ||
| + | ****************************** | ||
| + | Software System Reset Occurred | ||
| + | ****************************** | ||
| + | spi_wait_nsec: | ||
| + | spi device id: c8 40 17 c8 40 (4017c840) | ||
| + | Warning: un-recognized chip ID, please update bootloader! | ||
| + | raspi_read: from:30000 len: | ||
| + | .*** Warning - bad CRC, using default environment | ||
| + | |||
| + | GPIODIR=003fbfff | ||
| + | GPIOSET=00000000 | ||
| + | GPIODAT=00000000 | ||
| + | ============================================ | ||
| + | Ralink UBoot Version: 3.5.2.0 | ||
| + | -------------------------------------------- | ||
| + | ASIC 5350_MP (Port5< | ||
| + | DRAM_CONF_FROM: | ||
| + | DRAM_TYPE: SDRAM | ||
| + | DRAM_SIZE: 256 Mbits | ||
| + | DRAM_WIDTH: 16 bits | ||
| + | DRAM_TOTAL_WIDTH: | ||
| + | TOTAL_MEMORY_SIZE: | ||
| + | Flash component: SPI Flash | ||
| + | Date: | ||
| + | ============================================ | ||
| + | icache: sets:256, ways:4, linesz:32 , | ||
| + | dcache: sets:128, ways:4, linesz:32 , | ||
| + | |||
| + | ##### The CPU freq = 360 MHZ #### | ||
| + | | ||
| + | GPIODIR=003fbfff | ||
| + | GPIOMOD=000002dc | ||
| + | GPIODAT=00000000 | ||
| + | |||
| + | Please choose the operation: | ||
| + | 1: Load system code to SDRAM via TFTP. | ||
| + | 2: Load system code then write to Flash via TFTP. | ||
| + | 3: Boot system code via Flash (default). | ||
| + | 4: Entr boot command line interface. | ||
| + | 7: Load Boot Loader code then write to Flash via Serial. | ||
| + | 9: Load Boot Loader code then write to Flash via TFTP. | ||
| + | | ||
| + | |||
| + | 3: System Boot system code via Flash. | ||
| + | ## Booting image at bc050000 ... | ||
| + | raspi_read: from:50000 len: | ||
| + | . Image Name: MIPS OpenWrt Linux-3.8.13 | ||
| + | | ||
| + | Image Type: MIPS Linux Kernel Image (lzma compressed) | ||
| + | Data Size: 873741 Bytes = 853.3 kB | ||
| + | Load Address: 80000000 | ||
| + | Entry Point: | ||
| + | raspi_read: from:50040 len: | ||
| + | .............. | ||
| + | | ||
| + | No initrd | ||
| + | ## Transferring control to Linux (at address 80000000) ... | ||
| + | ## Giving linux memsize in MB, 32 | ||
| + | |||
| + | Starting kernel ... | ||
| + | |||
| + | [ 0.000000] Linux version 3.8.13 (lsoltero@ubuntu810vm) (gcc version 4.6.4 (OpenWrt/ | ||
| + | [ 0.000000] SoC Type: Ralink RT5350 id:1 rev:3 | ||
| + | [ 0.000000] bootconsole [early0] enabled | ||
| + | [ 0.000000] CPU revision is: 0001964c (MIPS 24KEc) | ||
| + | [ 0.000000] MIPS: machine is Poray X5 | ||
| + | [ 0.000000] Determined physical RAM map: | ||
| + | [ 0.000000] | ||
| + | [ 0.000000] Initrd not found or empty - disabling initrd | ||
| + | [ 0.000000] Zone ranges: | ||
| + | [ 0.000000] | ||
| + | [ 0.000000] Movable zone start for each node | ||
| + | [ 0.000000] Early memory node ranges | ||
| + | [ 0.000000] | ||
| + | [ 0.000000] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes. | ||
| + | [ 0.000000] Primary data cache 16kB, 4-way, VIPT, no aliases, linesize 32 bytes | ||
| + | [ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 8128 | ||
| + | [ 0.000000] Kernel command line: console=ttyS0, | ||
| + | [ 0.000000] PID hash table entries: 128 (order: -3, 512 bytes) | ||
| + | [ 0.000000] Dentry cache hash table entries: 4096 (order: 2, 16384 bytes) | ||
| + | [ 0.000000] Inode-cache hash table entries: 2048 (order: 1, 8192 bytes) | ||
| + | [ 0.000000] __ex_table already sorted, skipping sort | ||
| + | [ 0.000000] Writing ErrCtl register=0005b930 | ||
| + | [ 0.000000] Readback ErrCtl register=0005b930 | ||
| + | [ 0.000000] Memory: 29616k/ | ||
| + | [ 0.000000] SLUB: Genslabs=9, HWalign=32, Order=0-3, MinObjects=0, | ||
| + | [ 0.000000] NR_IRQS:128 | ||
| + | [ 0.000000] CPU Clock: 360MHz | ||
| + | [ 0.000000] Calibrating delay loop... 239.61 BogoMIPS (lpj=1198080) | ||
| + | [ 0.070000] pid_max: default: 32768 minimum: 301 | ||
| + | [ 0.070000] Mount-cache hash table entries: 512 | ||
| + | [ 0.080000] NET: Registered protocol family 16 | ||
| + | [ 0.120000] bio: create slab < | ||
| + | [ 0.130000] rt2880_gpio 10000600.gpio: | ||
| + | [ 0.140000] Switching to clocksource MIPS | ||
| + | [ 0.150000] NET: Registered protocol family 2 | ||
| + | [ 0.160000] TCP established hash table entries: 512 (order: 0, 4096 bytes) | ||
| + | [ 0.180000] TCP bind hash table entries: 512 (order: -1, 2048 bytes) | ||
| + | [ 0.190000] TCP: Hash tables configured (established 512 bind 512) | ||
| + | [ 0.200000] TCP: reno registered | ||
| + | [ 0.210000] UDP hash table entries: 256 (order: 0, 4096 bytes) | ||
| + | [ 0.220000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes) | ||
| + | [ 0.230000] NET: Registered protocol family 1 | ||
| + | [ 0.240000] rt-timer 10000100.timer: | ||
| + | [ 0.290000] squashfs: version 4.0 (2009/ | ||
| + | [ 0.300000] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc. | ||
| + | [ 0.320000] msgmni has been set to 57 | ||
| + | [ 0.330000] io scheduler noop registered | ||
| + | [ 0.340000] io scheduler deadline registered (default) | ||
| + | [ 0.350000] gpio-export gpio_export.3: | ||
| + | [ 0.360000] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled | ||
| + | [ 0.380000] 10000c00.uartlite: | ||
| + | [ 0.400000] console [ttyS0] enabled, bootconsole disabled | ||
| + | [ 0.400000] console [ttyS0] enabled, bootconsole disabled | ||
| + | [ 0.430000] m25p80 spi0.0: gd25q64 (8192 Kbytes) | ||
| + | [ 0.440000] 4 ofpart partitions found on MTD device spi0.0 | ||
| + | [ 0.450000] Creating 4 MTD partitions on " | ||
| + | [ 0.460000] 0x000000000000-0x000000030000 : " | ||
| + | [ 0.470000] 0x000000030000-0x000000040000 : " | ||
| + | [ 0.480000] 0x000000040000-0x000000050000 : " | ||
| + | [ 0.500000] 0x000000050000-0x000000800000 : " | ||
| + | [ 0.510000] found squashfs behind kernel | ||
| + | [ 0.520000] Creating 2 MTD partitions on " | ||
| + | [ 0.530000] 0x000000050000-0x00000012554d : " | ||
| + | [ 0.540000] mtd: partition " | ||
| + | [ 0.570000] 0x00000012554d-0x000000800000 : " | ||
| + | [ 0.580000] mtd: partition " | ||
| + | [ 0.610000] mtd: partition " | ||
| + | [ 0.620000] mtd: partition " | ||
| + | [ 0.630000] 0x0000005e0000-0x000000800000 : " | ||
| + | [ 0.650000] rt305x-esw 10110000.esw: | ||
| + | [ 0.670000] eth0: done loading | ||
| + | [ 0.680000] TCP: cubic registered | ||
| + | [ 0.680000] NET: Registered protocol family 17 | ||
| + | [ 0.690000] 8021q: 802.1Q VLAN Support v1.8 | ||
| + | [ 0.730000] VFS: Mounted root (squashfs filesystem) readonly on device 31:5. | ||
| + | [ 0.740000] Freeing unused kernel memory: 204k freed | ||
| + | [ 5.160000] input: gpio-keys-polled.2 as / | ||
| + | [ 5.380000] Button Hotplug driver version 0.4.1 | ||
| + | - preinit - | ||
| + | Wait for reset button on x5 to settle | ||
| + | Press the [f] key and hit [enter] to enter failsafe mode | ||
| + | - regular preinit - | ||
| + | [ | ||
| + | [ | ||
| + | [ | ||
| + | [ | ||
| + | [ | ||
| + | [ | ||
| + | [ | ||
| + | [ | ||
| + | [ | ||
| + | [ | ||
| + | [ | ||
| + | [ | ||
| + | [ | ||
| + | [ | ||
| + | [ | ||
| + | [ | ||
| + | [ | ||
| + | [ | ||
| + | [ | ||
| + | [ | ||
| + | [ | ||
| + | [ | ||
| + | [ | ||
| + | [ | ||
| + | [ | ||
| + | [ | ||
| + | [ | ||
| + | [ | ||
| + | [ | ||
| + | [ | ||
| + | [ | ||
| + | [ | ||
| + | [ | ||
| + | [ | ||
| + | [ | ||
| + | switching to jffs2 | ||
| + | - init - | ||
| + | |||
| + | Please press Enter to activate this console. [ | ||
| + | [ | ||
| + | [ | ||
| + | [ | ||
| + | [ | ||
| + | [ | ||
| + | [ | ||
| + | [ | ||
| + | [ | ||
| + | [ | ||
| + | [ | ||
| + | [ | ||
| + | [ | ||
| + | [ | ||
| + | [ | ||
| + | [ | ||
| + | [ | ||
| + | [ | ||
| + | [ | ||
| + | [ | ||
| + | [ | ||
| + | [ | ||
| + | [ | ||
| + | [ | ||
| + | [ | ||
| + | [ | ||
| + | [ | ||
| + | [ | ||
| + | [ | ||
| + | [ | ||
| + | [ | ||
| + | [ | ||
| + | [ | ||
| + | [ | ||
| + | [ | ||
| + | [ | ||
| + | [ | ||
| + | [ | ||
| + | [ | ||
| + | [ | ||
| + | [ | ||
| + | [ | ||
| + | [ | ||
| + | |||
| + | Optimizer login: </ | ||
| + | </ | ||
| + | |||
| + | ===== Linux kernel 3.8 DTS configuration notes ===== | ||
| + | |||
| + | <WRAP bootlog> | ||
| + | < | ||
| + | // Device tree definition for Poray X5 and X6 routers. | ||
| + | // | ||
| + | // This is free software, licensed under the GNU General Public License v2. | ||
| + | // See /LICENSE for more information. | ||
| + | // | ||
| + | // -- Luis Soltero < | ||
| + | // -- Michel Stempin < | ||
| + | // -- Felix Kaechele < | ||
| + | // | ||
| + | // | ||
| + | // this files add support for the programmable switch on the side of the router labled 3G-DHCP | ||
| + | // | ||
| + | // | ||
| + | // Notes on interfacing with the X5/X6 3G-DHCP switch | ||
| + | // | ||
| + | // there are two methods for interfacing with the 3G-DHCP/ | ||
| + | // A. Button | ||
| + | // B. Polled | ||
| + | // | ||
| + | // To enable/ | ||
| + | // appropriate definitions. | ||
| + | // can be defined as either a button or a exported GPIO but not both. | ||
| + | // | ||
| + | // A. Button Method | ||
| + | // | ||
| + | // the switch is defined as a button so events can be bound to it using hotplug. | ||
| + | // | ||
| + | // GPIO / | ||
| + | // writen to the gpio the router maps the internal TF/SD drive to the USB interface on the SoC. When ascii value ' | ||
| + | // writen to the gpio the router maps the external USB port labled 3G-USB to the USB interfave on the SoC. | ||
| + | // | ||
| + | // To use the switch | ||
| + | // do that. | ||
| + | // | ||
| + | // config button | ||
| + | // option button ' | ||
| + | // option action ' | ||
| + | // option handler 'echo 0 > / | ||
| + | // | ||
| + | // config button | ||
| + | // option button ' | ||
| + | // option action ' | ||
| + | // option handler 'echo 1 > / | ||
| + | // | ||
| + | // this entry depends on hotplug and the 00-button script as defined here | ||
| + | // http:// | ||
| + | // | ||
| + | // FixMe: | ||
| + | // On boot up the system needs to probe the state of the switch to initialize the USB mode correctly. This can be done by | ||
| + | // parsing / | ||
| + | // GPIOs 0-23, 10000600.gpio: | ||
| + | // gpio-7 | ||
| + | // gpio-9 | ||
| + | // gpio-10 | ||
| + | // gpio-11 | ||
| + | // gpio-12 | ||
| + | // gpio-13 | ||
| + | // gpio-14 | ||
| + | // gpio-18 | ||
| + | // | ||
| + | // gpio-14 has a value of lo (0) when the switch is set to DHCP and hi(1) when set to USB. | ||
| + | // | ||
| + | // B. Polled Method | ||
| + | // | ||
| + | // the switch state is exported as GPIO 14 with name " | ||
| + | // / | ||
| + | // that DHCP is selected. | ||
| + | // writes to GPIO 18 when the state changes. | ||
| + | // | ||
| + | // #!/bin/sh | ||
| + | // newstate=`cat / | ||
| + | // curstate="" | ||
| + | // while [ 1 ] ; do | ||
| + | // if [ " | ||
| + | // $curstate=$newstate; | ||
| + | // echo " | ||
| + | // fi; | ||
| + | // sleep 2 | ||
| + | // newstate=`cat / | ||
| + | // done | ||
| + | // | ||
| + | // the script can be executed from / | ||
| + | |||
| + | /dts-v1/; | ||
| + | |||
| + | /include/ " | ||
| + | |||
| + | / { | ||
| + | compatible = " | ||
| + | model = "Poray X5"; | ||
| + | |||
| + | palmbus@10000000 { | ||
| + | sysc@0 { | ||
| + | ralink, | ||
| + | ralink, | ||
| + | ralink, | ||
| + | ralink, | ||
| + | }; | ||
| + | |||
| + | gpio0: gpio@600 { | ||
| + | status = " | ||
| + | }; | ||
| + | |||
| + | spi@b00 { | ||
| + | status = " | ||
| + | m25p80@0 { | ||
| + | # | ||
| + | # | ||
| + | compatible = " | ||
| + | reg = <0 0>; | ||
| + | linux, | ||
| + | spi-max-frequency = < | ||
| + | |||
| + | partition@0 { | ||
| + | label = " | ||
| + | reg = <0x0 0x30000>; | ||
| + | read-only; | ||
| + | }; | ||
| + | |||
| + | partition@30000 { | ||
| + | label = " | ||
| + | reg = <0x30000 0x10000>; | ||
| + | read-only; | ||
| + | }; | ||
| + | |||
| + | factory: partition@40000 { | ||
| + | label = " | ||
| + | reg = <0x40000 0x10000>; | ||
| + | read-only; | ||
| + | }; | ||
| + | |||
| + | partition@50000 { | ||
| + | label = " | ||
| + | reg = <0x50000 0x7b0000>; | ||
| + | }; | ||
| + | }; | ||
| + | }; | ||
| + | }; | ||
| + | |||
| + | ethernet@10100000 { | ||
| + | status = " | ||
| + | }; | ||
| + | |||
| + | esw@10110000 { | ||
| + | status = " | ||
| + | ralink, | ||
| + | ralink, | ||
| + | }; | ||
| + | |||
| + | gpio-leds { | ||
| + | compatible = " | ||
| + | power { | ||
| + | label = " | ||
| + | gpios = <& | ||
| + | }; | ||
| + | |||
| + | 20 { | ||
| + | label = " | ||
| + | gpios = <& | ||
| + | }; | ||
| + | |||
| + | 50 { | ||
| + | label = " | ||
| + | gpios = <& | ||
| + | }; | ||
| + | |||
| + | 80 { | ||
| + | label = " | ||
| + | gpios = <& | ||
| + | }; | ||
| + | }; | ||
| + | |||
| + | gpio-keys-polled { | ||
| + | compatible = " | ||
| + | # | ||
| + | # | ||
| + | poll-interval = <20>; | ||
| + | |||
| + | bat { | ||
| + | label = " | ||
| + | gpios = <& | ||
| + | linux, | ||
| + | }; | ||
| + | |||
| + | reset { | ||
| + | label = " | ||
| + | gpios = <& | ||
| + | linux, | ||
| + | }; | ||
| + | |||
| + | // | ||
| + | // 3G-DHCP Switch BUTTON method | ||
| + | // | ||
| + | // Comment this out (thrugh END COMMENT) when using BUTTON Method | ||
| + | // mode { | ||
| + | // label = " | ||
| + | // gpios = <& | ||
| + | // | ||
| + | // }; | ||
| + | // END COMMENT | ||
| + | // | ||
| + | }; | ||
| + | |||
| + | gpio_export { | ||
| + | compatible = " | ||
| + | #size-cells = <0>; | ||
| + | |||
| + | // | ||
| + | // 3G-DHCP Switch POLL Method | ||
| + | // | ||
| + | // Uncomment this out (through END COMMENT) when using the POLLED Method | ||
| + | usb-switch { | ||
| + | gpio-export, | ||
| + | gpio-export, | ||
| + | gpios = <& | ||
| + | }; | ||
| + | // END COMMENT | ||
| + | // | ||
| + | |||
| + | usb-mode { | ||
| + | gpio-export, | ||
| + | gpio-export, | ||
| + | gpios = <& | ||
| + | }; | ||
| + | }; | ||
| + | |||
| + | wmac@10180000 { | ||
| + | status = " | ||
| + | ralink, | ||
| + | ralink, | ||
| + | }; | ||
| + | |||
| + | ehci@101c0000 { | ||
| + | status = " | ||
| + | }; | ||
| + | |||
| + | ohci@101c1000 { | ||
| + | status = " | ||
| + | }; | ||
| + | }; | ||
| + | lsoltero@ubuntu810vm: | ||
| + | </ | ||
| + | |||
| + | ===== Tags ===== | ||
| + | [[meta: | ||
| + | {{tag> | ||