[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

boot problems




hello, 

I just downloaded the elinux_20000801.tgz (and other recent files) and
followed the instructions to install everything on our Axis board.

Doing this, I encountered 2 problems:

1. "boot_elinux -d"  gives the error message "--dev option unknown"
 (or something similar). This turned out to be a lil' bug in the
boot_elinux-script, and is solved easily by replacing 

  $cmd .=" --dev $opt_d" if ($opt_d);

with

  $cmd .=" --device $opt_d" if ($opt_d);

in the script.


2. when running "boot_elinux -i kimage -d eth1", (after pressing the TWO
buttons to boot from ethernet) I can see the board booting, and the
output goes like this:

_________BEGIN________________
Sniffing /dev/ttyS0 at 115200 Baud

PACKET_INFO
0xC0000500
0x001ACF70
Checksum of file is 0x077084D5
JUMP
0xC0000500
Probing flash...
Flash: 16Mb TB
Flash: Unknown device
ROM fs in RAM, size 1302944 bytes
Linux/CRIS-NOMMU port (c) 1999 Axis Communications AB
Flat model support (C) 1998 Kenneth Albanowski, D. Jeff Dionne, TSHG
Ltd.
Entering paging_init(), mem start 0x401d5fd0, end 0x40800000
Entering trap_init(), mem start 0x401f3000
Initializing interrupts
sched_init
DS1302 RTC found.
SDA, SCL, RST on PB0, PB1, PB2
rtc_time	: 00:00:80
rtc_date	: 2000-01-01
rtc: sec 0x80 min 0x0 hour 0x0 day 0x1 mon 0x1 year 0x0
Enabling watchdog...
console_init 0x401f3000
kmalloc_init 0x401f3000
Calibrating delay loop... 99.58 BogoMIPS
Entering mem_init(401f3000,40800000)
Mem_init: start=401f3000, end=40800000
Memory: 6196k/7797k available (396k kernel code, 1600k data)
Swansea University Computer Society NET3.035 for Linux 2.0
NET3: Unix domain sockets 0.13 for Linux NET3.035.
Swansea University Computer Society TCP/IP for NET3.034
IP Protocols: IGMP, ICMP, UDP, TCP
Linux version 2.0.38 (l2f@xxxxxxx.2) #1 Wed Sep
6 11:17:50 CEST 2000
Starting init thread...
Starting kswapd v 1.7 
I2C driver v2.0, (c) 1999 Axis Communications AB
Etrax/100 serial driver v2.0, (c) 2000 Axis Communications AB
ttyS0 at 0xb0000060 is a builtin UART with DMA
ttyS1 at 0xb0000068 is a builtin UART with DMA
ttyS2 at 0xb0000070 is a builtin UART with DMA
ttyS3 at 0xb0000078 is a builtin UART with DMA
Etrax/100 DMA parallel port driver v0.3, (c) 2000 Axis Communications AB
Initializing parallel port registers... par0 par1  done 
par0 rxint, status: 0x3F0100FF 0xFF ctrl: 0x00000000 config: 0x01E00069
par1 rxint, status: 0x3F010000 0x00 ctrl: 0x00000000 config: 0x01E00069
Etrax general-port I/O driver v2.0, (c) 1999 Axis Communications AB
EEPROM char device v0.3, (c) 2000 Axis Communications AB
e100eeprom: Assuming i2c compatible 2Kb eeprom.
Ramdisk driver initialized : 16 ramdisks of 4096K size
KROM block (c) 1998 D Jeff Dionne, SHG Ltd [1273k] at 40097e30
Flash/ROM block device v2.1, (c) 1999 Axis Communications AB
Flash/ROM char device v2.1, (c) 1999 Axis Communications AB
Checking flash partitions:
  /dev/flash0 at 0x80000000, size 0x10000
 Found valid partition table at 0x8001000A-0x80010056.
  /dev/flash1 at 0x80010000, size 0x1a0000
  /dev/flash2 at 0x801b0000, size 0x50000
Etrax/100 10/100MBit ethernet driver v1.3, (c) 2000 Axis Communications
AB
eth0 initialized
eth0: changed MAC to 00:40:8C:CD:00:00
JFFS, version 1.0, (C) 1999, 2000  Axis Communications AB
VFS: Mounted root (romfs filesystem) readonly.
mounting proc
Starting ping_ipset thread
Starting init...
Init starts up...
Mounting /etc
JFFS: Trying to mount device 3c:12.
JFFS: Successfully mounted device 3c:12.
Mounted /dev/flash2 on /mnt/flash ok.
/usr/etc/defaultfiles/jimageid: Unknown error 2
mactool: Found MAC address in /etc/network/mac.conf. Nothing needs to be
done.

Setting up eth0 with ip 192.12.34.56 and mac 00:40:8C:18:10:72
change IP to 0x38220cc0
eth0: changed MAC to 00:40:8C:18:10:72
Setting up lo with ip 127.0.0.1
change IP to 0x100007f
Default gateway is 192.1.1.1
Hostname is AxisProduct
Unpacking 512 kbyte ramdisk
Mounting ramdisk on /tmp
Mounted /dev/ram0 on /tmp ok.
kfree of non-kmalloced memory: 407c6e18, next= 40774000, order=1 (pid 9)
Stack dump [0x4076bd2a]:
sp + 0: 0x400679e4
sp + 4: 0x407c6e10
sp + 8: 0x4000d5b4
sp + 12: 0x00000009
sp + 16: 0x00000000
sp + 20: 0x00000020
sp + 24: 0x407d2e98
sp + 28: 0x407a59b8
sp + 32: 0x407a5a38
sp + 36: 0x4077f000
sp + 40: 0x4000bfb8
sp + 44: 0x00000002
sp + 48: 0x407e7e38
sp + 52: 0x407d2e98
sp + 56: 0x407e7c0c
sp + 60: 0x40009b60
Telnetd starting, using port 23.
  using /bin/sash as shell.
Configuration Error!
Configuration Error!
Configuration Error!
Configuration Error!
Configuration Error!
Configuration Error!
Configuration Error!
Configuration Error!
Configuration Error!
boa: servername set to 192.12.34.56.
boa[21]: starting server

Weird, init caught unknown child die. Oh well.
sftpd[22]: sftpd $Revision: 1.57 $ starting up

sftpd[22]: sftpd.conf not found

___________END________________



As you can see, everything seems to go wrong when the kernel tries to
free memory. We have the same problem when compiling and downloading
previous kernels from your website.

Any idea what causes this problem? and a solution?


Thank you in advance!


PS: As a reference, this is the output when booting from flash-memory
(i.e. the image that was written onto it by Axis!):

_____________BEGIN_______________
Sniffing /dev/ttyS0 at 115200 Baud
Probing flash...
Flash: 16Mb TB.
Flash: No flash or unsupported manufacturer.
ROM fs in RAM, size 1904832 bytes
Linux/CRIS-NOMMU port (c) 1999 Axis Communications AB
Flat model support (C) 1998 Kenneth Albanowski, D. Jeff Dionne, TSHG
Ltd.
Entering paging_init(), mem start 0x40267ee0, end 0x40800000
Entering trap_init(), mem start 0x40285000
Initializing interrupts
sched_init
DS1302 RTC found.
SDA, SCL, RST on PB0, PB1, PB2
rtc_time	: 00:00:80
rtc_date	: 2000-01-01
rtc: sec 0x80 min 0x0 hour 0x0 day 0x1 mon 0x1 year 0x0
Enabling watchdog...
console_init 0x40285000
kmalloc_init 0x40285000
Calibrating delay loop... 99.58 BogoMIPS
Entering mem_init(40285000,40800000)
Mem_init: start=40285000, end=40800000
Memory: 5612k/7799k available (396k kernel code, 2184k data)
Swansea University Computer Society NET3.035 for Linux 2.0
NET3: Unix domain sockets 0.13 for Linux NET3.035.
Swansea University Computer Society TCP/IP for NET3.034
IP Protocols: IGMP, ICMP, UDP, TCP
Linux version 2.0.36 (johana@xxxxxxx.2) #561 Thu
Mar 30 17:33:37 CEST 2000
Starting init thread...
Starting kswapd v 1.7 
I2C driver v2.0, (c) 1999 Axis Communications AB
Etrax/100 serial driver v2.0, (c) 2000 Axis Communications AB
ttyS0 at 0xb0000060 is a builtin UART with DMA
ttyS1 at 0xb0000068 is a builtin UART with DMA
ttyS2 at 0xb0000070 is a builtin UART with DMA
ttyS3 at 0xb0000078 is a builtin UART with DMA
Etrax/100 DMA parallel port driver v0.3, (c) 2000 Axis Communications AB
Initializing parallel port registers... par0 par1  done 
par0 rxint, status: 0x3F0100FF 0xFF ctrl: 0x00000000 config: 0x01E00069
par1 rxint, status: 0x3F010000 0x00 ctrl: 0x00000000 config: 0x01E00069
Etrax general-port I/O driver v2.0, (c) 1999 Axis Communications AB
EEPROM char device v0.3, (c) 2000 Axis Communications AB
read and write differs! Not 16kB
e100eeprom: Found i2c compatible 2Kb eeprom.
Ramdisk driver initialized : 16 ramdisks of 4096K size
KROM block (c) 1998 D Jeff Dionne, SHG Ltd [1861k] at 40096e20
Flash/ROM block device v2.1, (c) 1999 Axis Communications AB
Flash/ROM char device v2.1, (c) 1999 Axis Communications AB
Checking flash partitions:
  /dev/flash0 at 0x80000000, size 0x10000
  No partitiontable recognized. Using default flash1 and flash2.
  /dev/flash1 at 0x80010000, size 0x1a0000
  /dev/flash2 at 0x801b0000, size 0x50000
Etrax/100 10/100MBit ethernet driver v1.3, (c) 2000 Axis Communications
AB
eth0 initialized
eth0: changed MAC to 00:40:8C:CD:00:00
JFFS (Flash Shortcut) version 1.0, (C) 1999, 2000  Axis Communications
AB
VFS: Mounted root (romfs filesystem) readonly.
mounting proc
Starting ping_ipset thread
Starting init...
Init starts up...
Mounting /etc
JFFS: Trying to mount device 3c:12.
JFFS: Successfully mounted device 3c:12.
Mounted /dev/flash2 on /mnt/flash ok.
Setting up eth0 with ip 192.12.34.56 and mac 00:40:8C:18:10:72
change IP to 0x38220cc0
eth0: changed MAC to 00:40:8C:18:10:72
Setting up lo with ip 127.0.0.1
change IP to 0x100007f
Default gateway is 192.1.1.1
Hostname is AxisProduct
Unpacking 512 kbyte ramdisk
Mounting ramdisk on /tmp
Mounted /dev/ram0 on /tmp ok.
Telnetd starting, using port 23.
  using /bin/sash as shell.
boa: servername set to 192.12.34.56.
[01/Jan/2000:00:01:25] boa: starting server
sersrvd by Johan.Adolfsson@xxxxxxx.com
$Revision: 1.8 $
Reading configfile: ../etc/sersrvd.conf fd=5
Found group: COM1
Added config: COM1
Config Device to /dev/ttyS0
Config Mode to AUTO_CONNECT (OFF, COMMAND_MODE, AUTO_CONNECT)
Config Baudrate to 115200 
Config Datasize to 8 (7, 8)
Config Stopbits to 1 (1, 2)
Config Parity to NONE (NONE, ODD, EVEN, (MARK, SPACE)?)
Config Handshake RTS/CTS to NO (NO, YES)
Config Handshake XON/XOFF to NO (NO, YES, ROBUST)
Config Connect to to 
Config Listener port to 4000
Config Timeout to 0
Config Telnet options to YES (NO, YES)
Config Echo COMMAND_MODE port side to YES 
Config Echo COMMAND_MODE network side to YES
Found group: COM2
Added config: COM2
Start from beginning!
Config Device to /dev/ttyS2
Config Mode to AUTO_CONNECT (OFF, COMMAND_MODE, AUTO_CONNECT)
Config Baudrate to 115200
Config Datasize to 8 (7, 8)
Config Stopbits to 1 (1, 2)
Config Parity to NONE (NONE, ODD, EVEN, (MARK, SPACE)?)
Config Handshake RTS/CTS to NO (NO, YES)
Config Handshake XON/XOFF to NO (NO, YES, ROBUST)
Config Connect to to localhost:4000
Config Listener port to 4001
Config Timeout to 0
Config Telnet options to YES (NO, YES)
Found group: COM422
Added config: COM422
Start from beginning!
Config Device to /dev/ttyS3
Config Mode to AUTO_CONNECT (OFF, COMMAND_MODE, AUTO_CONNECT)
Config Baudrate to 115200 
Config Datasize to 8 (7, 8)
Config Stopbits to 1 (1, 2)
Config Parity to NONE (NONE, ODD, EVEN, (MARK, SPACE)?)
Config Handshake RTS/CTS to NO (NO, YES)
Config Handshake XON/XOFF to NO (NO, YES, ROBUST)
Config Connect to to 
Config Listener port to 4002
Config Timeout to 0
Config Telnet options to YES (NO, YES)
Found group: COMDBG
Added config: COMDBG
Start from beginning!
Config Device to /dev/ttyS1
Config Mode to AUTO_CONNECT (OFF, COMMAND_MODE, AUTO_CONNECT)
Config Baudrate to 115200 
Config Datasize to 8 (7, 8)
Config Stopbits to 1 (1, 2)
Config Parity to NONE (NONE, ODD, EVEN, (MARK, SPACE)?)
Config Handshake RTS/CTS to NO (NO, YES)
Config Handshake XON/XOFF to NO (NO, YES, ROBUST)
Config Connect to to 
Config Listener port to 4003
Config Timeout to 0
Config Telnet options to YES (NO, YES)
set_port_Speed: 115200 4098
set_port_Speed: 115200 4098
set_port_Speed: 115200 4098
set_port_Speed: 115200 4098
sftpd[20]: sftpd $Revision: 1.45 $ starting up
sftpd[20]: sftpd.conf not found
______________END__________________________





-- 
Stijn Decneut
Research Engineer
IMEC - Belgium

--
In Paris they simply stared when I spoke to them in French;
I never did succeed in making those idiots understand their own
language.
Mark Twain, The Innocents Abroad, 1869