Your PCB Is in the Mail & A Question
"Bruce D. Lightner" <lightner-2huV/[email protected]>
| Newsgroups | gmane.linux.uclinux.actiontec |
|---|---|
| Message-ID | <[email protected]> |
Patrick, My wonderful wife Sherri sent your "home grown" development daughterboard via US Priority Mail today. Question... I need help form an MTD driver expert... You put this on the Wiki... Flash ROM map 0x00400000: Begin flash ROM 0x00400000: boot loader 0x0040C000: Begin OS writable flash segment (16k) 0x0040FFFF: End OS writable flash segment 0x00410000: compressed kernel image 0x004B0000: start of ROM disk image (Taken from stock boot logs) 0x005FFFFF: end of flash ROM How did you determine the location of the "OS writable flash segment"? I believe this is the device /dev/mtdc0 and /dev/mtdc1. My build of the kernal always fails to open this device. (See the end of this email for my /dev/console log on boot.) I've got my kernel build booting with a few less problems, including what looks like some function in the modem chip. I can get it to go off-hook, and hang up, but not dial. I managed to get the kernel to load an important Actiontec "propriatary module" by adding some EXPORTs to the kernel for two of the entry points the module was missing. The module is "/lib/modules/cnxtserial_buildin.o". This clearly sets up the modem somehow because now I have the modem UART device /dev/ttyS2 active. However, the only thing I can't seem to get to work is the MTD device that they are using to "configure" the PPP connection. This is keeping the device /dev/ppp from running. There are a large number of configuration options for MTD drivers. Have you (or anyone else) got any clue as to how Actiontec built theirs? I'm clueless in this area. The error message... Can't allocate major number 31 for Memory Technology Devices. ...is telling. I don't know what I'm doing! :-) Based on your "memory map", it looks like the "character mode" MTD device that they are using uses a chunk of flash in the middle of flash memory. How does one specify something like this? Bottom line...does anyone have any ideas on how to "config" this device? BTW: I still have to restore "boot-ldr.bin" each time I boot my kernel in order to get my Actiontec box to reboot. I can login and do whatever I want after the *first* reboot, but when it's time to re-boot, the "bootstrap" is gone! What's up with that!? Best regards, Bruce -- Bruce D. Lightner Lightner Engineering La Jolla, California Voice: +1-858-551-4011 FAX: +1-858-551-0777 Email: lightner-2huV/[email protected] URL: http://www.lightner.net/lightner/bruce/ -------------------------------------------------------------------------------------- Linux version 2.4.6 (lightner-bi+AKbBUZKY6gyzm1THtWbp2dZbC/[email protected]) (gcc version 2.95.3 20010315 (release)) #13 Tue Mar 16 19:05:36 PST 2004 Processor: ARM/CNXT Arm940sid(wb) revision 2 Architecture: CNXT CX821XX On node 0 totalpages: 1920 zone(0): 0 pages. zone(1): 1920 pages. zone(2): 0 pages. Kernel command line: root=/dev/rom0 Calibrating delay loop... 83.76 BogoMIPS Memory: 7680K = 0K total Memory: 5580KB available (927K code, 985K data, 44K init) kmem_create: Forcing size word alignment - names_cache Dentry-cache hash table entries: 1024 (order: 1, 8192 bytes) Inode-cache hash table entries: 512 (order: 0, 4096 bytes) Mount-cache hash table entries: 512 (order: 0, 4096 bytes) Buffer-cache hash table entries: 1024 (order: 0, 4096 bytes) Page-cache hash table entries: 2048 (order: 1, 8192 bytes) POSIX conformance testing by UNIFIX Linux NET4.0 for Linux 2.4 Based upon Swansea University Computer Society NET3.039 Initializing RT netlink socket Conexant General Purpose timers initialized Conexant hardware timer 2 enabled Conexant Flash Driver version: 001 Initializing Flash Segment 1 Initializing Flash Segment 2 Initializing Flash Segment 3 Initializing Flash Segment 4 Initializing Flash Segment 5 Initializing Flash Segment 6 Initializing Flash Segment 7 Initializing Flash Segment 8 Initializing Flash Segment 9 Initializing Flash Segment 10 Starting kswapd v1.8 ttyS0 at 0x002c0000 (irq = 24) is a 16c550 UART info = 009d8734 block: queued sectors max/low 3613kB/1204kB, 64 slots per queue RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize PHY #2 = 15f441 emac_probe: eth0 found. Tx DMA Ring f824a0 Rx DMA Ring fa0b10 EMAC Network Driver Cnxt 2003/07/16 irq=19 00:30:cd:00:02:3e: PHY #2 = 15f441 emac_probe: eth1 found. Tx DMA Ring fc00a0 Rx DMA Ring fde710 EMAC Network Driver Cnxt 2003/07/16 irq=20 00:30:cd:00:02:85: SLIP: version 0.8.4-NET3.019-NEWTTY (dynamic channels, max=256). Blkmem copyright 1998,1999 D. Jeff Dionne Blkmem copyright 1998 Kenneth Albanowski Blkmem 1 disk images: 0: 4B0000-5C3BFF [VIRTUAL 4B0000-5C3BFF] (RO) Can't allocate major number 31 for Memory Technology Devices. NET4: Linux TCP/IP 1.0 for NET4.0 IP Protocols: ICMP, UDP, TCP IP: routing cache hash table of 512 buckets, 4Kbytes TCP: Hash tables configured (established 512 bind 512) ip_conntrack (60 buckets, 480 max) ip_tables: (c)2000 Netfilter core team NET4: Unix domain sockets 1.0/SMP for Linux NET4.0. NET4: Ethernet Bridge 008 for NET4.0 VFS: Mounted root (romfs filesystem) readonly. ACTION_TEC_DEBUG : rs_ACTION_TEC_init ttyS2 at 0x002c8000 (irq = 5) is a 16c550 UART info = 00e925b8 Expanding the ramdisk ... Mounting ext2 file system ... Mounting proc file system ... Building the read write directories /bin/mkdir /var/ppp /bin/mkdir /var/config mkdir: cannot create directory /var/config /bin/cp /etc/ppp.org/* /var/ppp -: No such file or directory /etc/ppp.org/ip-up: No such file or directory /bin/cp /etc/config.org/* /var/config /etc/config.org/*: No such file or directory /bin/cp /etc/dhcpd.conf.org /var/dhcpd.conf /bin/cp /etc/dhcpd.iplist.org /var/dhcpd.iplist /bin/cp /etc/boa.conf /var/boa.conf /bin/cp /etc/resolv.conf /var/resolv.conf MTD_open Open 15441368 failed ---- configuration list ---- Key-value: MaCaDdR1 - 00:00:00:00:00:00 Key-value: MaCaDdR2 - 00:00:00:00:00:00 Key-value: MaCaDdR3 - 00:00:00:00:00:00 Key-value: BoardID - 00000481 Key-value: Version - 2.0.0.0.19n-R7000M Key-value: Mode - PPP Key-value: SYS_Name - admin Key-value: SYS_Password - Key-value: PPP_Name - Key-value: PPP_Password - Key-value: DiScReAsOn - None Key-value: ppp_static - Key-value: WAN_IP - Key-value: WAN_MASK - 255.255.255.0 Key-value: WAN_Gateway_IP - Key-value: LAN_IP - 192.168.0.1 Key-value: DHCP_Server - on Key-value: DHCPD_Subnet - 192.168.0.0 Key-value: DHCPD_StartIP - 192.168.0.4 Key-value: DHCPD_EndIP - 192.168.0.254 Key-value: DHCPD_Mask - 255.255.255.0 Key-value: dns_type - dynamic Key-value: DHCPD_DNS1 - 192.168.0.1 Key-value: DHCPD_DNS2 - 198.6.1.3 Key-value: DHCP_ID - Key-value: DHCP_DN - Key-value: SSID - ACTIONTEC Key-value: Channel - 1 Key-value: WepEncryption - off Key-value: Mode128Key0 - Key-value: Mode64Key0 - Key-value: Mode64Key1 - Key-value: Mode64Key2 - Key-value: Mode64Key3 - Key-value: KeyID - Key-value: Firewall_Monitor - off Key-value: BlockIpPort - Key-value: BlockUrl - Key-value: PortMap - Key-value: DmzIp - Key-value: RemoteManage - off Key-value: Pptp - on Key-value: IPsec - 0 Key-value: L2tp - on Key-value: NAT_Server - Key-value: Qos - ubr Key-value: Encap - llcrouted Key-value: Vpi - 0 Key-value: Vci - 35 Key-value: FBM_DBM - DBM Key-value: ADSLStandard - MULTIMODE Key-value: EC_FDM - EC_MODE Key-value: eth_connected - 0 Key-value: unnumbered - yes Key-value: unnumbered_ip - 10.0.10.6 Key-value: unnumbered_mask - 255.255.255.252 Key-value: securitylevel - basic Key-value: static_routes - Key-value: rip - none Key-value: static_nat - Key-value: AolIsp - 0 Key-value: Netmeeting - Key-value: auto_retry - on Key-value: IsPPhOnENuMbEr1 - Key-value: IsPPhOnENuMbEr2 - Key-value: initstring - atdt, Key-value: attempt - 2 Key-value: redial - 4 Key-value: DialOnDemand - 0 Key-value: DiAlOuTsIdE - 0 Key-value: DiAlCwAiTiNg - 0 Key-value: disctimeout - 300 Key-value: VolumeLevel - atl0m1 Key-value: PPPUpTiMe - Key-value: CoNnEcTtSpEeD - Key-value: MoDeMStAtUs - disconncted ---- configuration list ---- Key-value: - default configuration has 75 entries current configuration has 0 entries conf valid check MTD_open eth0: (CX821xx EMAC) started! eth1: (CX821xx EMAC) started! SIOCSIFADDR: No such device eth2: unknown interface: No such device eth2: unknown interface: No such device device eth0 entered promiscuous mode device eth1 entered promiscuous mode interface eth2 does not exist! qbr0: port 2(eth1) entering listening state qbr0: port 1(eth0) entering listening state qbr0: port 2(eth1) entering learning state qbr0: port 2(eth1) entering forwarding state qbr0: topology change detected, propagating qbr0: port 1(eth0) entering learning state qbr0: port 1(eth0) entering forwarding state qbr0: topology change detected, propagating PING 192.168.0.0 (192.168.0.0): 56 data bytes 64 bytes from 192.168.0.1: icmp_seq=0 ttl=255 time=10.0 ms run dnsmasq run dnsmasq 20 .reading /etc/ppp/resolv.confignoring nameserver 192.168.0.1 - local interfaceusing nameserver 198.6.1.3run dnsmasq 21 64 bytes from 192.168.0.1: icmp_seq=1 ttl=255 time=0.0 ms 64 bytes from 192.168.0.1: icmp_seq=2 ttl=255 time=0.0 ms 64 bytes from 192.168.0.1: icmp_seq=3 ttl=255 time=0.0 ms 64 bytes from 192.168.0.1: icmp_seq=4 ttl=255 time=0.0 ms --- 192.168.0.0 ping statistics --- 5 packets transmitted, 5 packets received, 0% packet loss round-trip min/avg/max = 0.0/2.0/10.0 ms can't find service boa: starting server (null): ACTION_TEC DEBUG : EMBEDDED PPPD 0.1 (null): ACTION_TEC DEBUG : EMBEDDED PPPD 0.2 /sbin/pppd: ACTION_TEC DEBUG : EMBEDDED PPPD 0.3 /sbin/pppd: logit fatal <<<< Couldn't open /dev/ppp: No such device >>> iptables: Invalid argument iptables: Invalid argument iptables: Invalid argument iptables: Invalid argument /etc/issue www.conexant.com 15 Feb 2002 Welcome to uClinux! uClinux /ju:si:`linuks/ 1.n. Microcontroller Linux; Embedded microcontroller operating system. 2.n. An embedded soft real time kernel (see also POSIX.4) 3.n. Embedded Linux internet/intranet development platform. 4. synonym for the successful rapid development of embedded system applications. For more information on the uClinux operating system please visit the http://www.uclinux.com and http://www.uclinux.org web sites. uClinux login: __ ActionHack Mailing List - ActionHack-W7/[email protected] http://www.express.org/mailman/listinfo/actionhack http://www.embeddedlinuxinterfacing.com/wiki.php/ActiontecDualModem