Project

General

Profile

Linux on Auerswald Commander Basic 2 » History » Version 5

laforge, 01/08/2020 12:11 PM

1 1 laforge
{{>toc}}
2
3
h1. Linux on Auerswald COMmander Basic2
4
5 2 laforge
This page is an attempt to document bits and pieces about the embedded Linux OS that runs on the [[Auerswald COMmander Basic2]] PBX. 
6
7
More speificially, it's an ARM/Linux based system running on a "Digi International NS9360":http://ftp1.digi.com/support/documentation/91001326_D.pdf ARM926 SoC built from PTXdist-0.7.5 
8 1 laforge
9 3 laforge
h2. Source Code
10
11
* the PTXdist 0.7.5 source code can be found at https://public.pengutronix.de/software/ptxdist/v0.7/
12
* Auerswald has released _GPL tarballs_ at http://data-1.auerswald.de/license/gpl/COMfortel_VoIP_250_DECT1040_COMfortel2500/2015/GPL_COMfortel_VoIP_250_DECT1040_VoIP_2500_150415.iso
13
14 1 laforge
h2. Serial Console
15
16 4 laforge
The ARM SoC has a serial console (ttyS2) at 3.3V.  It is running at 19200 bps and is exposed on test pads near the NS9630 on the PBX mainboard.
17 3 laforge
18 1 laforge
h3. Pinout
19 3 laforge
20
FIXME
21 1 laforge
22
h3. u-boot bootlog
23
24
<pre>
25
YABOL 1.3 (11:21:24Jan 17 2007)
26
hardware version: 01
27
checking for image mode...on... no
28
loading binary from NAND
29
binary loaded, starting...
30
31
32
U-Boot 1.1.2 (Aug  7 2006 - 08:23:30) FS.1-gds3.1
33
34
U-Boot code: 00F80000 -> 00F9D148  BSS: -> 00FA83DC
35
IRQ Stack: 00f5fb7c
36
FIQ Stack: 00f5eb7c
37
SDRAM-Size: 2000000 hex
38
RAM Configuration:
39
Bank #0: 00000000 32 MB
40
NAND:  64 MB
41
Init NAND-FLASH ....
42
Using default environment
43
44
In:    serial
45
Out:   serial
46
Err:   serial
47
48
Board revision 1 found
49
serial: 2448900276AU0123103800820H      
50
ethaddr: 00:09:52:00:d1:7f
51
ccode: 0
52
reserve:                                 
53
Checking for factory reset... no
54
Looking for boot partition...
55
reading marker block: ********
56
Checking Partition 1... OK
57
Hit any key to stop autoboot:  0 
58
Partition changed to 1
59
### JFFS2 loading 'boot/bas2boot.1.img' to 0x10000
60
Scanning JFFS2 FS: ......... done.
61
### JFFS2 load complete: 456 bytes loaded to 0x10000
62
## Executing script at 00010000
63
### JFFS2 loading 'boot/fpga_r1.bin' to 0x10000
64
### JFFS2 load complete: 75895 bytes loaded to 0x10000
65
66
FPGA Version @0x40088000: 11    .
67
### JFFS2 loading 'boot/uImage' to 0x10000
68
### JFFS2 load complete: 952212 bytes loaded to 0x10000
69
## Booting image at 00010000 ...
70
   Image Name:   Linux-2.6.11-fs.1-gds9.4
71
   Image Type:   ARM Linux Kernel Image (uncompressed)
72
   Data Size:    952148 Bytes = 929.8 kB
73
   Load Address: 00008000
74
   Entry Point:  00008000
75
   Verifying Checksum ... OK
76
OK
77
</pre>
78
79 5 laforge
h3. u-boot environment
80
81
<pre>
82
bootargs=console=ttyS1 ip=192.168.0.240::192.168.0.10:255.255.255.0 root=mtdblock/$(bootpart) ro rootfstype=jffs2
83
bootcmd=chpart $(bootpart);fsload boot/bas2boot.$(board_revision).img;autoscr;chpart $(backuppart);fsload boot/bas2boot.$(board_revision).img;autoscr;booterr 3 4 4
84
bootdelay=3
85
baudrate=19200
86
ipaddr=192.168.0.240
87
serverip=192.168.0.10
88
gatewayip=192.168.0.1
89
netmask=255.255.255.0
90
bootcmd_error=booterr 1 4 4
91
bootcmd_install=autoscr;mw.b 1000000 0 100;echo update failed;booterr 1 4 4
92
stdin=serial
93
stdout=serial
94
stderr=serial
95
board_revision=1
96
serial=2448900276AU0123103800820H
97
ethaddr=00:09:52:00:d1:7f
98
ccode=0
99
reserve=
100
bootpart=1
101
backuppart=2
102
</pre>
103
104 1 laforge
h3. kernel bootlog
105
106
<pre>
107
Starting kernel ...
108
109
Uncompressing Linux............................................................... done, booting the kernel.
110
Linux version 2.6.11-fs.1-gds9.4 (build@build) (gcc version 3.4.2) #375 Fri Mar 5 09:55:24 CET 2010
111
CPU: ARM926EJ-Sid(wb) [41069264] revision 4 (ARMv5TEJ)
112
CPU0: D VIVT write-back cache
113
CPU0: I cache: 8192 bytes, associativity 4, 32 byte lines, 64 sets
114
CPU0: D cache: 4096 bytes, associativity 4, 32 byte lines, 32 sets
115
Machine: A9M9360
116
Memory policy: ECC disabled, Data cache writeback
117
NS9360 Rev. 0, running at 154 MHz
118
Built 1 zonelists
119
Kernel command line: console=ttyS2,19200 user_debug=255 root=mtdblock/1 ro rootfstype=jffs2 ethaddr=00:09:52:00:d1:7f ccode=0 serial=2448900276AU0123103800820H
120
PID hash table entries: 256 (order: 8, 4096 bytes)
121
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
122
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
123
Memory: 32MB = 32MB total
124
Memory: 30352KB available (1602K code, 332K data, 80K init)
125
Mount-cache hash table entries: 512 (order: 0, 4096 bytes)
126
CPU: Testing write buffer coherency: ok
127
NET: Registered protocol family 16
128
i2c_ns: I2C ns9750 driver $Revision: 1.5 $ initializing
129
NetWinder Floating Point Emulator V0.97 (double precision)
130
devfs: 2004-01-31 Richard Gooch (rgooch@atnf.csiro.au)
131
devfs: boot_options: 0x1
132
Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
133
JFFS2 version 2.2. (NAND) (SAFENAND) (SUMMARY) (C) 2001-2006 Red Hat, Inc.
134
NS9750 Watchdog initialized
135
Serial: NS9750 driver $Revision: 1.6 $
136
ttyS0 at MMIO 0xf9200000 (irq = 34) is a NS9xx0
137
ttyS1 at MMIO 0xf9200040 (irq = 36) is a NS9xx0
138
ttyS2 at MMIO 0xf9300000 (irq = 38) is a NS9xx0
139
ttyS3 at MMIO 0xf9300040 (irq = 40) is a NS9xx0
140
Serial: JTAG driver $Revision: 1.1 $
141
ttyJ0 at MMIO 0x0 (irq = 0) is a JTAGCOMM
142
io scheduler noop registered
143
io scheduler anticipatory registered
144
io scheduler deadline registered
145
io scheduler cfq registered
146
loop: loaded (max 8 devices)
147
Ethernet: NS9xx0 driver $Revision: 1.13.cbr $
148
NAND Flash memory mapped to virtual c2880000
149
NAND device: Manufacturer ID: 0x98, Chip ID: 0x76 (Toshiba NAND 64MiB 3,3V 8-bit)
150
Scanning device for bad blocks
151
Using static partition definition
152
Creating 5 MTD partitions on "basic.2":
153
0x00000000-0x00038000 : "U-BOOT"
154
0x00040000-0x01020000 : "System_1"
155
0x01020000-0x02000000 : "System_2"
156
0x02000000-0x04000000 : "Daten"
157
0x00038000-0x00040000 : "Service"
158
NS9360 udc driver
159
ns9360-udc ns9360-udc0: gadget driver initializing
160
i2c /dev entries driver
161
24c64: EEPROM driver $Revision: 1.1 $ initializing
162
NET: Registered protocol family 2
163
IP: routing cache hash table of 512 buckets, 4Kbytes
164
TCP established hash table entries: 2048 (order: 2, 16384 bytes)
165
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
166
TCP: Hash tables configured (established 2048 bind 2048)
167
NET: Registered protocol family 1
168
Root-NFS: No NFS server available, giving up.
169
VFS: Unable to mount root fs via NFS, trying floppy.
170
VFS: Mounted root (jffs2 filesystem) readonly.
171
Mounted devfs on /dev
172
Freeing init memory: 80K
173
174
PTXdist-0.7.5 (2005-11-23T10:35:05+0100)
175
176
mounting /proc and /sys... done.
177
mounting filesystems... mount: WARNING: loop device is read-only
178
done.
179
preparing /data ...done.
180
basic system configuration... done.
181
starting the system logger... done.
182
starting network... [HWaddr: 00:09:52:00:d1:7f]
183
Using /lib/modules/2.6.11-fs.1-gds9.4/kernel/net/packet/af_packet.ko
184
Using /lib/modules/2.6.11-fs.1-gds9.4/kernel/net/ipv4/netfilter/ip_conntrack.ko
185
Using /lib/modules/2.6.11-fs.1-gds9.4/kernel/net/ipv4/netfilter/ip_tables.ko
186
Using /lib/modules/2.6.11-fs.1-gds9.4/kernel/net/ipv4/netfilter/iptable_filter.ko
187
Using /lib/modules/2.6.11-fs.1-gds9.4/kernel/net/ipv4/netfilter/iptable_nat.ko
188
Using /lib/modules/2.6.11-fs.1-gds9.4/kernel/net/ipv4/netfilter/ipt_MASQUERADE.ko
189
Using /lib/modules/2.6.11-fs.1-gds9.4/kernel/net/ipv4/netfilter/ipt_REDIRECT.ko
190
killall: vd: no process killed
191
killall: vmd: no process killed
192
done.
193
starting USB network port ... 
194
Using /lib/modules/2.6.11-fs.1-gds9.4/kernel/drivers/usb/gadget/g_ether.ko
195
killall: udhcpd: no process killed
196
udhcpd (v0.9.9-pre) started
197
done.
198
starting ppp... Using /lib/modules/2.6.11-fs.1-gds9.4/kernel/drivers/net/slhc.ko
199
Using /lib/modules/2.6.11-fs.1-gds9.4/kernel/drivers/net/ppp_generic.ko
200
Using /lib/modules/2.6.11-fs.1-gds9.4/kernel/drivers/net/ppp_synctty.ko
201
Using /lib/modules/2.6.11-fs.1-gds9.4/kernel/drivers/char/n_hdlc.ko
202
done.
203
mounting nfs filesystems... done.
204
reading the hardware clock... 
205
Using /opt/auerswald/modules/auerrtc.ko
206
hwclock: Could not read time from RTC: Input/output error
207
date is invalid, setting default date
208
Tue May  1 00:00:00 CEST 2001
209
hwclock: Could not set the RTC time: Input/output error
210
starting network services... done.
211
Using /opt/auerswald/modules/auerlog.ko
212
Using /opt/auerswald/modules/hwtimer.ko
213
Using /opt/auerswald/modules/auertim.ko
214
Using /opt/auerswald/modules/auergb.ko
215
Using /opt/auerswald/modules/auermod.ko
216
Using /opt/auerswald/modules/isdnhdlc.ko
217
Using /opt/auerswald/modules/auerdsp.ko
218
Using /opt/auerswald/modules/auersicofi4.ko
219
Using /opt/auerswald/modules/auertdm.ko
220
Using /opt/auerswald/modules/auerab_all.ko
221
Using /opt/auerswald/modules/auers0basic.ko
222
Using /opt/auerswald/modules/auer4s0.ko
223
Using /opt/auerswald/modules/auer8up0.ko
224
Using /opt/auerswald/modules/auers2m.ko
225
Using /opt/auerswald/modules/auertsm_all.ko
226
Using /opt/auerswald/modules/auertoene.ko
227
Using /opt/auerswald/modules/auer_sscp.ko
228
Using /opt/auerswald/modules/auers0_hfc8s4s.ko
229
Using /opt/auerswald/modules/auer_voip.ko
230
</pre>
Add picture from clipboard (Maximum size: 48.8 MB)