Tuesday, June 18, 2013

 

Launching sfk-linux aborts with "Resetting soft kernel" error

Q: Launching an sfk-linux for the first time on Ubuntu, and getting this error:

Welcome to RTOSE; an OSE reference system.
Type 'help' for a list of available commands.
rtose@softlin> Resetting soft kernel!
                                     Aborted

A: There are several causes, but the first thing to check is ramlog.mem. You may find, especially in the case of using VMs, that the surfer aborts ungracefully:

SEH: Information about current process "ose_surfer"
SEH: Pid 0x0001003c bid 0x00010008 progpid 0x00000000
SEH: File & line: surfer.c 7072
SEH: Extra text: "ose_surfer error: bind failed (errno: 13 file: ../../modules/surfer/src/surfer.c line:7723)"

Just comment out the "surfer" references in rtose5.conf to get around this for now; you can also remove the module manually from rtose.mk with an "override -= surfer" entry. Then "make clean cleanall cleanobj" and rebuild. 

The next problem is that you're probably not user "root." There is a long-standing anomoly that the Linux soft kernel requires the user to be running as "root". If you're not logged in as root, e.g. you're using Ubuntu or other quick-use Linux distros that don't set up a root account, run the soft kernel with sudo:

jmir@ubuntu:~/OSE/BSP_SFK_OSE5.5.1/refsys/rtose/sfk-linux$ sudo ./obj/rtose_debug/rtose -c rtose5.conf

This should be enough to get your soft kernel going.

RTOSE(debug) for sfk-1 built 130618 12:06 by jmir
Copyright 2003-2010 Enea Embedded Technology AB. All rights reserved.

Changing directory to /host//home/jmir/OSE/BSP_SFK_OSE5.5.1/refsys/rtose/sfk-linux
Welcome to RTOSE; an OSE reference system.
Type 'help' for a list of available commands.

 rtose@softlin

Labels: , , ,


Comments: Post a Comment



<< Home

This page is powered by Blogger. Isn't yours?

free web hit counter
free invisible web counter