Home Forum Developers IP0x Upgrading to uClinux2010

JRPassphrase Registration Control

In order to register on this site, you must first submit the passphrase below.

TODO list for each hardware target can be found as sticky topic in the corresponding forum


admin
useravatar
User Info

Re: Upgrading to uClinux2010

Hi Guys,

Dahid core was updated to 2.4.1.2 and Dahdi tools to 2.4.1 in the SVN trunk.
The Asterisk instability on all targets (IP0x/BR4/PR1) seems to be related with the Attrafax patch which was enabled by default. We have to fix it. So our short term TODO list now become

1. Attrafax patch makes Asterisk unstable (low priority)
2. SD/MMC card needs to be fixed (high priority)
3. USB driver needs to be tested (low priority)
4. Perl doesn't compile (seems to be trivial will fix very soon)

Cheers
Dimitar


Administrator has disabled public posting
fant
useravatar
User Info

Re: Upgrading to uClinux2010

Hi Guys,

I tested revision 556 on my ip04
Port FXS detected at start, but not work - off hook / on hook.
I not hear tone and I not see the messages in asterisk.

Andrej


Administrator has disabled public posting
admin
useravatar
User Info

Re: Upgrading to uClinux2010

Hi Andrej,

Thank you for the report.

I am working on the SD card detection or PR1 and IP0x.
I think in 1,2 days I will be able to check the FXS driver on the IP04.

Cheers
Dimitar


Administrator has disabled public posting
Gilles
useravatar
User Info

Re: Upgrading to uClinux2010

Hello Dimitar,

For my education, is it possible to download just the patches that you write for Switchfin, so that I can have an idea of the work involved in porting applications to a new kernel?

I know that uClinux doesn't support fork() so they must all be changed to vfork() and possibly require deeper changes, but other than that, I'm curious to know what changes are needed.

Thanks.


Administrator has disabled public posting
admin
useravatar
User Info

Re: Upgrading to uClinux2010

Hi Gilles,

Sure to get the patch location please issue in Switchfin directory

grep .patch package/* -rs | grep -v .svn

Cheers
Dimitar


Administrator has disabled public posting
Gilles
useravatar
User Info

Re: Upgrading to uClinux2010

Thanks for the tip. I'll study the patches.


Administrator has disabled public posting
admin
useravatar
User Info

Re: Upgrading to uClinux2010

Hi Guys,

MMC/SD card is working in SVN.
So the list of the recent issues become

1. wcfxs doesn't detect onhook/offhook events (high priority)
2. Attrafax patch makes Asterisk unstable (low priority)
3. USB driver needs to be tested (low priority)
4. Perl doesn't compile (seems to be trivial will fix very soon)

Best Regards
Dimitar


Administrator has disabled public posting
admin
useravatar
User Info

Re: Upgrading to uClinux2010

Hi Guys,

Somebody reported that onhook/offhook is not working
but I seems to not able to reproduce it.

Closing the issue unless someone confirms we have problem there.

1. Attrafax patch makes Asterisk unstable (low priority)
2. USB driver needs to be tested (low priority)
3. Perl doesn't compile (seems to be trivial will fix very soon)

Cheers
Dimitar


Administrator has disabled public posting
admin
useravatar
User Info

Re: Upgrading to uClinux2010

Hi Again,

Perl compiles normally now.
If someone can confirm if it is OK?


Somebody reported that onhook/offhook is not working
but I seems to not able to reproduce it.

Closing the issue unless someone confirms we have problem there.

1. Attrafax patch makes Asterisk unstable (low priority)
2. USB driver needs to be tested (low priority)

Best Regards
Dimitar


Administrator has disabled public posting
admin
useravatar
User Info

Re: Upgrading to uClinux2010

Hi Guys,

I've done some tests on the USB support in IP08.
USB mass storage was enabled in SVN and seems to work fine.

To load the driver (having your memory stick plugged in)

Code:

modprobe isp1362-hcd

And you can now mount a point 

Code:

mkdir /mnt/usbms      

mount /dev/sda1 /mnt/usbms

So the only think I know needs further consideration related with IP0x kernel update is:

1. Attrafax patch makes Asterisk unstable (low priority)

Any feedback at this point is very welcome.

Cheers
Dimitar


Administrator has disabled public posting
fant
useravatar
User Info

Re: Upgrading to uClinux2010

Hi Guys,
"Web Update" option not work.
It crashed u-boot with messages:

Code:


dma_alloc_init: dma_page @ 0x01036000 - 256 pages at 0x03f00000
VFS: Mounted root (ext2 filesystem) on device 31:0.
Freeing unused kernel memory: 92k freed
UBI: attaching mtd5 to ubi0
UBI: physical eraseblock size:   131072 bytes (128 KiB)
UBI: logical eraseblock size:    129024 bytes
UBI: smallest flash I/O unit:    2048
UBI: sub-page size:              512
UBI: VID header offset:          512 (aligned 512)
UBI: data offset:                2048
eth0: link up, 100Mbps, full-duplex, lpa 0x45E1
UBI: attached mtd5 to ubi0
UBI: MTD device name:            "persistent file system(nand)"
UBI: MTD device size:            236 MiB
UBI: number of good PEBs:        1887
UBI: number of bad PEBs:         1
UBI: max. allowed volumes:       128
UBI: wear-leveling threshold:    4096
UBI: number of internal volumes: 1
UBI: number of user volumes:     1
UBI: available PEBs:             0
UBI: total number of reserved PEBs: 1887
UBI: number of PEBs reserved for bad PEB handling: 18
UBI: max/mean erase counter: 3/0
UBI: image sequence number: 0
UBI: background thread "ubi_bgt0d" started, PID 212
UBI device number 0, total 1887 LEBs (243468288 bytes, 232.2 MiB), available 0 LEBs (0 bytes), LEB size 129024 bytes (126.0 KiB)
UBIFS: recovery needed
UBIFS: recovery completed
UBIFS: mounted UBI device 0, volume 0, name "persistent"
UBIFS: file system size:   239210496 bytes (233604 KiB, 228 MiB, 1854 LEBs)
UBIFS: journal size:       11999232 bytes (11718 KiB, 11 MiB, 93 LEBs)
UBIFS: media format:       w4/r0 (latest is w4/r0)
UBIFS: default compressor: lzo
UBIFS: reserved for root:  4952683 bytes (4836 KiB)
Checking for upload image to program
Verifying the MD5 checksum...
1+0 records in
1+0 records out
262144+0 records in
262144+0 records out
1+0 records in
1+0 records out
Downloaded firmware /persistent/imageupdate/uImage program size is 8388608
Writing firmware to FLASH -- DO NOT REBOOT!!!!...
Warning: Bad CRC, using default environment
## Error: "offset" not defined
Erasing 64 Kibyte @ 20000 -- 100 % complete.
Unknown flash (not normal NAND)
Verifying FLASH...
FAILED
/persistent/tmp/image-221.img /dev/mtd1 differ: char 1, line 1
Finished writing firmware to FLASH...
**************************************
**************************************
SUCCESS - updating binary image success
Your configurations will be kept!!!
**************************************
**************************************
Restarting system.

U-boot destroyed and recovery by jtag only.

Andrey


Administrator has disabled public posting
admin
useravatar
User Info

Re: Upgrading to uClinux2010

Hello,

Thank you for the report!

The GUI http update should work for all hardware targets now.

Bet regards
Dimitar


Administrator has disabled public posting
sam
useravatar
User Info

Re: Upgrading to uClinux2010

Hello,

well thank you for all the good work to make this release stable enough for production.
I have another compilation problem with lighttpd this time.
It sounds like a fork related problem as in perl.
Here is the log:

Code:


/bin/bash ../libtool --tag=CC   --mode=link bfin-linux-uclibc-gcc  -g -O2 -Wall -W -Wshadow -pedantic -std=gnu99 -module -export-dynamic -avoid-version -no-undefined  -o mod_accesslog.la -rpath /usr/local/lib mod_accesslog.lo 
bfin-linux-uclibc-gcc -shared  .libs/mod_accesslog.o   -Wl,-soname -Wl,mod_accesslog.so -o .libs/mod_accesslog.so
creating mod_accesslog.la
(cd .libs && rm -f mod_accesslog.la && ln -s ../mod_accesslog.la mod_accesslog.la)
bfin-linux-uclibc-gcc -DHAVE_CONFIG_H -DLIBRARY_DIR="\"/usr/local/lib\"" -DSBIN_DIR="\"/usr/local/sbin\"" -I. -I..   -D_REENTRANT -D__EXTENSIONS__ -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES  -g -O2 -Wall -W -Wshadow -pedantic -std=gnu99 -MT spawn-fcgi.o -MD -MP -MF .deps/spawn-fcgi.Tpo -c -o spawn-fcgi.o spawn-fcgi.c
spawn-fcgi.c: In function ‘fcgi_spawn_connection’:
spawn-fcgi.c:139: warning: implicit declaration of function ‘fork’
mv -f .deps/spawn-fcgi.Tpo .deps/spawn-fcgi.Po
/bin/bash ../libtool --tag=CC   --mode=link bfin-linux-uclibc-gcc  -g -O2 -Wall -W -Wshadow -pedantic -std=gnu99   -o spawn-fcgi spawn-fcgi.o 
bfin-linux-uclibc-gcc -g -O2 -Wall -W -Wshadow -pedantic -std=gnu99 -o spawn-fcgi spawn-fcgi.o
spawn-fcgi.o: In function `fcgi_spawn_connection':
/usr/src/newkernel/switchfin/build_ip04/lighttpd-1.4.19/src/spawn-fcgi.c:139: undefined reference to `_fork'
collect2: ld returned 1 exit status
make[3]: *** [spawn-fcgi] Error 1
make[3]: Leaving directory `/usr/src/newkernel/switchfin/build_ip04/lighttpd-1.4.19/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/src/newkernel/switchfin/build_ip04/lighttpd-1.4.19'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/usr/src/newkernel/switchfin/build_ip04/lighttpd-1.4.19'
make: *** [lighttpd] Error 2

BR,
Sam


Administrator has disabled public posting
admin
useravatar
User Info

Re: Upgrading to uClinux2010

Hi Sam,

I've did some fork() -> vfork() replacements.
Some of those substations looks safe for me.
Some of them I am not very sure.   
I have not tested lighttpd all!

If you get some results please share it with us.
For now I will put a remark about it in the general todo list.

Thanks
Dimitar


Administrator has disabled public posting
Gilles
useravatar
User Info

Re: Upgrading to uClinux2010

Out of curiosity, why would a user-land application like Lighttpd no longer compile when using a newer kernel source? Or is that the original Lighttpd, note the one that's already in uClinux?


Administrator has disabled public posting
fant
useravatar
User Info

Re: Upgrading to uClinux2010

Hi Guys,

I tested revision 592 on my ip04.
I get dump while work with GUI.

  :8P    '      :888
   8a.   :     _a88P                 For further information, check out:
._/"Yaa_:   .| 88P|                   - http://www.switchfin.org
\    YP"    `| 8P  `.                 - http://blog.astfin.org
/     \.___.d|    .'                  - http://blackfin.uclinux.org
`--..__)8888P`._.'                    - http://www.asterisk.org


IP02/IP04/IP08 powered by Switchfin
IP04 login: dahdi_dummy: Detected time shift.
system_cmd.cgi: page allocation failure. order:5, mode:0xd0
Stack info:
SP: [0x00ea7dac] Dd
Memory from 0x00ea7da0 to 00ea8000
00ea7da0: 000000d0  00ea7dac  00000000 [00000000] 0003548e  00d265c0  00000000  000000d0
00ea7dc0: 00d267a0  00000005  000000d0  00000001  00000040  0020557c  00000000  00ea6008
00ea7de0: 00000010  00000050  00000040  00ea6000  00ea6000  01000568  000200d0  00205fac
00ea7e00: 00000020  00000046  00d265c0  00000046  00000040  00000010  00000000  0020557c
00ea7e20: 00000000  00000000  00000000  0020557c  00c0ed94  0003d3d8  00016000  0208b33c
00ea7e40: 0208b33c  00000005  00000073  00000000  04000021  0003cb64  001ee534  001ee524
00ea7e60: 00000000  02a94000  04000021  00c0ed94  0003d732  00000000  0208b33c  00000000
00ea7e80: 00000003  00000073  00000000  04000021  00dc5180  00015000  00016000  00000004
00ea7ea0: 04000021  00000000  00ea7eb0  00009922  00000004  00e7f5d8  0003dac4  00000000
00ea7ec0: 00016000  00da1250  00ea6000  00000000  04000021  00000003  00da1250  00000000
00ea7ee0: 00016000  00000003  04000021  00000000  ffa0885a  0003da80  000000c0  00000000
00ea7f00: ffffe000  00000000  00000000  00da0b9c  00014f84  0000fffe  04000021  00000000
00ea7f20: 00000000  0110d2c8  00008000  00002000  00000000  00ea8000  0110d2c8  0110d2c8
00ea7f40: 0112c02e  ffa08de0  02001065  0111bb07  0111d8a3  0111bb06  0111d8a2  00000000
00ea7f60: 00000000  000000a0  00000000  000000a0  00000000  00000000  7ffff000  00cac004
00ea7f80: 00000137  00000000  00000000  00000000  00000000  0000005b  00001802  00000001
00ea7fa0: 00000001  00000001  00000001  00da1250  02a94f88  00e7f5cc  00e7f5d8  00da1250
00ea7fc0: 02ac0004  00da1250  00000000  0112fb5c  000000c0  00000000  00da0b9c  00000000
00ea7fe0: 00000000  04000021  00000003  00016000  00000000  00000000  000000c0  00000006
Return addresses in stack:
Mem-Info:
DMA per-cpu:
CPU    0: hi:    0, btch:   1 usd:   0
active_anon:0 inactive_anon:0 isolated_anon:0
active_file:8 inactive_file:7 isolated_file:0
unevictable:0 dirty:4 writeback:0 unstable:0
free:5134 slab_reclaimable:385 slab_unreclaimable:288
mapped:0 shmem:0 pagetables:0 bounce:0
DMA free:20536kB min:836kB low:1044kB high:1252kB active_anon:0kB inactive_anon:0kB active_file:32kB inactive_file:28kB unevictable:0kB isolated(anon):0kB isolated(file):0kB present:43688kB mlocked:0kB dirty:16kB writeback:0kB mapped:0ko
lowmem_reserve[]: 0 0 0
DMA: 264*4kB 241*8kB 193*16kB 156*32kB 82*64kB 19*128kB 7*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB 0*8192kB 0*16384kB 0*32768kB = 20536kB
15 total pagecache pages
11008 pages RAM
662 pages reserved
9 pages shared
5148 pages non-shared
Allocation of length 90112 from process 1045 (system_cmd.cgi) failed
DMA per-cpu:
CPU    0: hi:    0, btch:   1 usd:   0
active_anon:0 inactive_anon:0 isolated_anon:0
active_file:8 inactive_file:7 isolated_file:0
unevictable:0 dirty:4 writeback:0 unstable:0
free:5134 slab_reclaimable:385 slab_unreclaimable:288
mapped:0 shmem:0 pagetables:0 bounce:0
DMA free:20536kB min:836kB low:1044kB high:1252kB active_anon:0kB inactive_anon:0kB active_file:32kB inactive_file:28kB unevictable:0kB isolated(anon):0kB isolated(file):0kB present:43688kB mlocked:0kB dirty:16kB writeback:0kB mapped:0ko
lowmem_reserve[]: 0 0 0
DMA: 264*4kB 241*8kB 193*16kB 156*32kB 82*64kB 19*128kB 7*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB 0*8192kB 0*16384kB 0*32768kB = 20536kB
15 total pagecache pages
system_cmd.cgi: page allocation failure. order:5, mode:0xd0
Stack info:
SP: [0x00ea7dac] Dd
Memory from 0x00ea7da0 to 00ea8000
00ea7da0: 000000d0  00ea7dac  00000000 [00000000] 0003548e  00d265c0  00000000  000000d0
00ea7dc0: 00d267a0  00000005  000000d0  00000001  00000040  0020557c  00000000  00ea6008
00ea7de0: 00000010  00000050  00000040  00ea6000  00ea6000  01000006  000200d0  00205fac
00ea7e00: 00000020  00000058  00d265c0  00000058  00000040  00000010  00000000  0020557c
00ea7e20: 00000000  00000000  00000000  0020557c  01267c34  0003d3d8  0001b000  0287a000
00ea7e40: 0287a000  00000005  00000073  00000000  04000021  0003cb64  001ee534  001ee524
00ea7e60: 00000000  026ba000  04000021  01267c34  0003d732  00000000  0287a000  00000000
00ea7e80: 00000003  00000073  00000000  04000021  00d28300  0001b000  0001b000  00000004
00ea7ea0: 04000021  00000000  00ea7eb0  00ea6000  00000004  00e3f5d8  0003dac4  00000000
00ea7ec0: 0001b000  006f1250  00ea6000  00000000  04000021  00000003  006f1250  00000000
00ea7ee0: 0001b000  00000003  04000021  00000000  ffa0885a  0003da80  000000c0  00000000
00ea7f00: ffffe000  00000000  00000000  006f1250  026c0004  006f0b9c  04000021  00000000
00ea7f20: 00000000  0110d2c8  00008000  00002000  00000000  00ea8000  0110d2c8  0110d2c8
00ea7f40: 0112c02e  ffa08de0  02001065  0111bb07  0111d8a3  0111bb06  0111d8a2  00000000
00ea7f60: 00000000  000000a0  00000000  000000a0  00000000  00000000  7ffff000  0138b004
00ea7f80: 00000137  00000000  00000000  00000000  00000000  0000005b  00001802  00000001
00ea7fa0: 00000001  00000001  00000001  006f1250  026ba808  00e3f5cc  00e3f5d8  006f1250
00ea7fc0: 026c0004  006f1250  00000000  0112fb5c  000000c0  00000000  006f0b9c  00000000
00ea7fe0: 00000000  04000021  00000003  0001b000  00000000  00000000  000000c0  00000006
Return addresses in stack:
Mem-Info:
DMA per-cpu:
CPU    0: hi:    0, btch:   1 usd:   0
active_anon:0 inactive_anon:0 isolated_anon:0
active_file:7 inactive_file:2 isolated_file:0
unevictable:7 dirty:5 writeback:0 unstable:0
free:5236 slab_reclaimable:248 slab_unreclaimable:603
mapped:0 shmem:0 pagetables:0 bounce:0
DMA free:20944kB min:836kB low:1044kB high:1252kB active_anon:0kB inactive_anon:0kB active_file:28kB inactive_file:8kB unevictable:28kB isolated(anon):0kB isolated(file):0kB present:43688kB mlocked:0kB dirty:20kB writeback:0kB mapped:0ko
lowmem_reserve[]: 0 0 0
DMA: 176*4kB 220*8kB 263*16kB 214*32kB 114*64kB 1*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB 0*8192kB 0*16384kB 0*32768kB = 20944kB
16 total pagecache pages
11008 pages RAM
662 pages reserved
9 pages shared
5047 pages non-shared
Allocation of length 110592 from process 1309 (system_cmd.cgi) failed
DMA per-cpu:
CPU    0: hi:    0, btch:   1 usd:   0
active_anon:0 inactive_anon:0 isolated_anon:0
active_file:7 inactive_file:2 isolated_file:0
unevictable:7 dirty:5 writeback:0 unstable:0
free:5236 slab_reclaimable:248 slab_unreclaimable:603
mapped:0 shmem:0 pagetables:0 bounce:0
DMA free:20944kB min:836kB low:1044kB high:1252kB active_anon:0kB inactive_anon:0kB active_file:28kB inactive_file:8kB unevictable:28kB isolated(anon):0kB isolated(file):0kB present:43688kB mlocked:0kB dirty:20kB writeback:0kB mapped:0ko
lowmem_reserve[]: 0 0 0
DMA: 176*4kB 220*8kB 263*16kB 214*32kB 114*64kB 1*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB 0*8192kB 0*16384kB 0*32768kB = 20944kB
16 total pagecache pages


Administrator has disabled public posting
admin
useravatar
User Info

Re: Upgrading to uClinux2010

Hello,

Is the issue you get repeatable?
If so please describe how to reproduce it.

Thank you
Dimitar


Administrator has disabled public posting
fant
useravatar
User Info

Re: Upgrading to uClinux2010

Hello Dimitar,

Issue is not repeatable.
I get it sometime after start ip04 and login in GUI.

Andrej


Administrator has disabled public posting
fant
useravatar
User Info

Re: Upgrading to uClinux2010

Hello Dimitar,

I can not launch procwatch:

Code:

root@ip0x:~> procwatch 

procwatch: applet not found
root@ip0x:~> procwatch -?
procwatch: applet not found

Old procwatch from uClinux-2009 work in uClinux-2010 very well.

Why host-cc compiled procwatch.c ?

Code:


cc /opt/svn/switchfin/switchfin/trunk/build_ip04/procwatch/procwatch.c -I/opt/svn/switchfin/switchfin/trunk/build_ip04/blackfin-linux-dist/linux-2.6.x/arch/blackfin/include/ -I/opt/svn/switchfin/switchfin/trunk/build_ip04/blackfin-linux-dist/linux-2.6.x/include/ -I.  -o /opt/svn/switchfin/switchfin/trunk/build_ip04/procwatch/procwatch
In file included from /usr/include/sys/sysinfo.h:25,
                 from /opt/svn/switchfin/switchfin/trunk/build_ip04/procwatch/procwatch.c:29:
/opt/svn/switchfin/switchfin/trunk/build_ip04/blackfin-linux-dist/linux-2.6.x/include/linux/kernel.h:720:2: warning: #warning Attempt to use kernel headers from user space, see http:
cp -f /opt/svn/switchfin/switchfin/trunk/build_ip04/procwatch/procwatch /opt/svn/switchfin/switchfin/trunk/build_ip04/root/bin
touch /opt/svn/switchfin/switchfin/trunk/build_ip04/procwatch/.built

Andrej


Administrator has disabled public posting
Chewi
useravatar
User Info

Re: Upgrading to uClinux2010

That was partially my fault, sorry. CC was being defined in the libxml makefile and this was leaking through to the other makefiles. I removed it but forgot to check whether it was being used elsewhere. I've checked now and have fixed uw-imap as well. We shouldn't define CC globally because we have more than one toolchain.


Administrator has disabled public posting
Gilles
useravatar
User Info

Re: Upgrading to uClinux2010

As a way to prevent that error, it could be a good thing to always run "file" or "readelf" on all binaries to make sure they were cross-compiled instead of compiled with the host's CC compiled.


Administrator has disabled public posting
JOHN
useravatar
User Info

Re: Upgrading to uClinux2010

Hi,

am having a problem with my ip01 and ip02. I upgraded the firmware through http and now I get an error message "can't get kernel image. what should I do, where should I start? I am new on linux and currently am using the hyperterminal.


Administrator has disabled public posting
Gilles
useravatar
User Info

Re: Upgrading to uClinux2010

What's the exact error message?


Administrator has disabled public posting
JOHN
useravatar
User Info

Re: Upgrading to uClinux2010

Hi,

I am getting an error "cant get kernel image"



U-Boot 2010.06 (ADI-2010R1-pre) (Jan 08 2011 - 14:09:20)

CPU:   ADSP bf532-0.5 (Detected Rev: 0.6) (spi flash boot)
Board: IPPBX IP0x
Clock: VCO: 400 MHz, Core: 400 MHz, System: 133.333 MHz
RAM:   64 MiB
NAND:  256 MiB
SF: Detected W25X40 with page size 256, total 512 KiB
In:    serial
Out:   serial
Err:   serial
Net:   dm9000
starting from spi flash
Hit any key to stop autoboot:  0

NAND read: nand net part size: 0x00800000device 0 offset 0x0, size 0x800000
8388608 bytes read: OK
Wrong Image Format for bootm command
ERROR: can't get kernel image!


Administrator has disabled public posting
Gilles
useravatar
User Info

Re: Upgrading to uClinux2010

I'm no expert, but I would check two things:

1. Make sure you downloaded an image that is meant for the IP01 or IP02. Did you get it from Atcom?
http://www.atcom.cn/IP01.html

2. Check and post what the "bootm" command does: At the command prompt, type "print".


Administrator has disabled public posting
admin
useravatar
User Info

Re: Upgrading to uClinux2010

Hi John,

Yes can you provide us with the result of 'print' in the uboot prompt?

Cheers
Dimitar


Administrator has disabled public posting
JOHN
useravatar
User Info

Re: Upgrading to uClinux2010

Hello,

Yes, I got from atcom. below is the 'bootm' and 'print' results. I successfully loaded the image for ip01. I am having problems with IP02. Please help. Thanks in advance.

Regards,





ip0x> bootm
Wrong Image Format for bootm command
ERROR: can't get kernel image!
ip0x> print
bootdelay=3
baudrate=115200
loads_echo=1
autoload=no
preboot=echo starting from spi flash
rootpath=/romfs
hostname=IP0x
loadaddr=0x1000000
flashboot=bootm 0x20100000
ethact=dm9000
ethaddr=00:09:45:5A:1C:CE
eth1addr=00:09:45:5A:1C:CF
mtdparts=mtdparts=ip0x-nand:0x00800000(kernel),0x0f800000(fs)
mtdids=nand0=ip0x-nand
setbootargs=setenv bootargs ethaddr=$(ethaddr) ethaddr1=$(eth1addr) console=ttyBF0,115200 earlyprink=serial,uart0,115200 root=/dev/mtdblock0 rw ${mtdparts}
nandboot=run setbootargs; nand read.e 0x2000000 kernel; bootm 0x2000000
bootcmd=run nandboot
serveraddr=00:17:a4:1d:a6:aa
filesize=6C0000
fileaddr=1000000
gatewayip=192.168.1.1
netmask=255.255.255.0
bootargs=ethaddr=00:09:45:5A:1C:CE ethaddr1=00:09:45:5A:1C:CF console=ttyBF0,115200 earlyprink=serial,uart0,115200 root=/dev/mtdblock0 rw mtdparts=ip0x-nand:0x00800000(kernel),0x0f800000(fs)
partition=nand0,0
mtddevnum=0
mtddevname=kernel
ipaddr=192.168.1.120
serverip=192.168.1.14
stdin=serial
stdout=serial
stderr=serial

Environment size: 996/65532 bytes
ip0x>


Administrator has disabled public posting
Gilles
useravatar
User Info

Re: Upgrading to uClinux2010

Aren't addresses wrong between those lines (0x00800000 and 0x2000000)?

Code:

mtdparts=mtdparts=ip0x-nand:0x00800000(kernel),0x0f800000(fs) 


setbootargs=setenv bootargs ethaddr=$(ethaddr) ethaddr1=$(eth1addr) console=ttyBF0,115200 earlyprink=serial,uart0,115200 root=/dev/mtdblock0 rw ${mtdparts}

nandboot=run setbootargs; nand read.e 0x2000000 kernel; bootm 0x2000000

bootcmd=run nandboot


Administrator has disabled public posting
JOHN
useravatar
User Info

Re: Upgrading to uClinux2010

Hi,
I was able to load the image. Now am having a problen with calling through PSTN connected through the FXO ports. When I type 'help' on my CLI console, I don get the Zap option. does this mean that I have to reinstall zaptel.


ip04*CLI> help
                        !  Execute a shell command
               abort halt  Cancel a running halt
             agent logoff  Sets an agent offline
               agent show  Show status of agents
        agent show online  Show all online agents
                agi debug  Enable AGI debugging
            agi debug off  Disable AGI debugging
             agi dumphtml  Dumps a list of agi commands in html format
                 agi show  List AGI commands or specific help
               cdr status  Display the CDR status
   core set debug channel  Enable/disable debugging on a channel
           core set debug  Set level of debug chattiness
       core set debug off  Turns off debug chattiness
          core set global  Set global dialplan variable
         core set verbose  Set level of verboseness
   core show applications  Shows registered dialplan applications
    core show application  Describe a specific dialplan application
   core show audio codecs  Displays a list of audio codecs
       core show channels  Display information on channels
        core show channel  Display information on a specific channel
   core show channeltypes  List available channel types
    core show channeltype  Give more details on that channel type
         core show codecs  Displays a list of codecs
          core show codec  Shows a specific codec
core show config mappings  Display config mappings (file names to config engines)
   core show file formats  Displays file formats
      core show functions  Shows registered dialplan functions
       core show function  Describe a specific dialplan function
        core show globals  Show global dialplan variables
          core show hints  Show dialplan hints
   core show image codecs  Displays a list of image codecs
  core show image formats  Displays image formats
        core show license  Show the license(s) for this copy of Asterisk
       core show switches  Show alternative switches
    core show translation  Display translation matrix
         core show uptime  Show uptime information
        core show version  Display version info
   core show video codecs  Displays a list of video codecs
       core show warranty  Show the warranty (if any) for this copy of Asterisk
             database del  Removes database key/value
         database deltree  Removes database keytree/values
             database get  Gets database value
             database put  Adds/updates database value
            database show  Shows database contents
         database showkey  Shows database contents
   dialplan add extension  Add new extension into context
   dialplan add ignorepat  Add new ignore pattern
     dialplan add include  Include context in other context
          dialplan reload  Reload extensions and *only* extensions
dialplan remove extension  Remove a specified extension
dialplan remove ignorepat  Remove ignore pattern from context
  dialplan remove include  Remove a specified include from context
            dialplan save  Save dialplan
            dialplan show  Show dialplan
            dnsmgr reload  Reloads the DNS manager configuration
            dnsmgr status  Display the DNS manager status
             feature show  Lists configured features
    feature show channels  List status of feature channels
             file convert  Convert audio file
      group show channels  Display active channels with group(s)
                     help  Display help list, or specific help on a command
         http show status  Display HTTP server status
           iax2 provision  Provision an IAX device
      iax2 prune realtime  Prune a cached realtime lookup
              iax2 reload  Reload IAX configuration
           iax2 set debug  Enable IAX debugging
        iax2 set debug jb  Enable IAX jitterbuffer debugging
    iax2 set debug jb off  Disable IAX jitterbuffer debugging
       iax2 set debug off  Disable IAX debugging
     iax2 set debug trunk  Enable IAX trunk debugging
iax2 set debug trunk off  Disable IAX trunk debugging
          iax2 show cache  Display IAX cached dialplan
       iax2 show channels  List active IAX channels
       iax2 show firmware  List available IAX firmwares
       iax2 show netstats  List active IAX channel netstats
          iax2 show peers  List defined IAX peers
           iax2 show peer  Show details on specific IAX peer
   iax2 show provisioning  Display iax provisioning
       iax2 show registry  Display IAX registration status
          iax2 show stats  Display IAX statistics
        iax2 show threads  Display IAX helper thread info
          iax2 show users  List defined IAX users
        iax2 test losspct  Set IAX2 incoming frame loss percentage
           indication add  Add the given indication to the country
        indication remove  Remove the given indication from the country
          indication show  Display a list of all countries/indications
                keys init  Initialize RSA key passcodes
                keys show  Displays RSA key information
      local show channels  List status of local channels
              logger mute  Toggle logging output to a console
            logger reload  Reopens the log files
            logger rotate  Rotates and reopens the log files
     logger show channels  List configured log channels
     manager show command  Show a manager interface command
    manager show commands  List manager interface commands
   manager show connected  List connected manager interface users
      manager show eventq  List manager interface queued events
       manager show users  List configured manager users
        manager show user  Display information on a specific manager user
                   meetme  Execute a command on a conference or conferee
               mixmonitor  Execute a MixMonitor command.
              module load  Load a module by name
            module reload  Reload configuration
              module show  List modules and info
         module show like  List modules and info
            module unload  Unload a module by name
               moh reload  Music On Hold
         moh show classes  List MOH classes
           moh show files  List MOH file-based classes
         no debug channel
                originate  Originate a call
         queue add member  Add a channel to a specified queue
      queue remove member  Removes a channel from a specified queue
               queue show  Show status of a specified queue
            realtime load  Used to print out RealTime variables.
  realtime sqlite3 status  Shows connection information for the SQLite3 RealTime driver
          realtime update  Used to update RealTime variables.
       restart gracefully  Restart Asterisk gracefully
              restart now  Restart Asterisk immediately
  restart when convenient  Restart Asterisk at empty call volume
            rtcp debug ip  Enable RTCP debugging on IP
               rtcp debug  Enable RTCP debugging
           rtcp debug off  Disable RTCP debugging
               rtcp stats  Enable RTCP stats
           rtcp stats off  Disable RTCP stats
             rtp debug ip  Enable RTP debugging on IP
                rtp debug  Enable RTP debugging
            rtp debug off  Disable RTP debugging
                 say load  set/show the say mode
         show parkedcalls  Lists parked calls
              show queues
              sip history  Enable SIP history
          sip history off  Disable SIP history
               sip notify  Send a notify packet to a SIP peer
       sip prune realtime  Prune cached Realtime object(s)
  sip prune realtime peer  Prune cached Realtime peer(s)
  sip prune realtime user  Prune cached Realtime user(s)
               sip reload  Reload SIP configuration
            sip set debug  Enable SIP debugging
         sip set debug ip  Enable SIP debugging on IP
        sip set debug off  Disable SIP debugging
       sip set debug peer  Enable SIP debugging on Peername
        sip show channels  List active SIP channels
         sip show channel  Show detailed SIP channel info
         sip show domains  List our local SIP domains.
         sip show history  Show SIP dialog history
           sip show inuse  List all inuse/limits
         sip show objects  List all SIP object allocations
           sip show peers  List defined SIP peers
            sip show peer  Show details on specific SIP peer
        sip show registry  List SIP registration status
        sip show settings  Show SIP global settings
   sip show subscriptions  List active SIP subscriptions
           sip show users  List defined SIP users
            sip show user  Show details on specific SIP user
        sla show stations  Show SLA Stations
          sla show trunks  Show SLA Trunks
              soft hangup  Request a hangup on a given channel
          stop gracefully  Gracefully shut down Asterisk
                 stop now  Shut down Asterisk immediately
     stop when convenient  Shut down Asterisk at empty call volume
               stun debug  Enable STUN debugging
           stun debug off  Disable STUN debugging
              udptl debug  Enable UDPTL debugging
           udptl debug ip  Enable UDPTL debugging on IP
          udptl debug off  Disable UDPTL debugging
     voicemail show users  List defined voicemail boxes
     voicemail show zones  List zone message formats
ip04*CLI>


Administrator has disabled public posting
Gilles
useravatar
User Info

Re: Upgrading to uClinux2010


Administrator has disabled public posting

Board Info

Board Stats:   Total Users: 2585  Total Topics: 299  Total Polls: 1  Total Posts: 1727  Dormant
User Info:   Newest User :  dursber   Members Online: 0   Guests Online: 139
Online  There are no members online
Topic
New
Locked
Topic
New
Locked
Sticky
Active
New/Active
Sticky
Active
New/Active
New/Closed
New Sticky
Closed/Active
New/Locked
New Sticky
Locked/Active
Active/Sticky
Sticky/Locked
Sticky Active Locked
Active/Sticky
Sticky/Locked
Sticky/Active/Locked