I have compiled Linux for NiosII. I have a filesystem in RAM. I am using busybox, buildroot to make the file system. Then the kernel is compiled with the file system previously created.
Once Linux starts if I run a command like ls (since I wanted to list the directories in the current folder) it causes SEGV (segmentation fault)
dtlinux login: root
Password:
login[547]: root login on 'ttyJ0'
BusyBox v1.23.1 (2015-03-17 16:38:07 CDT) hush - the humble shell
Enter 'help' for a list of built-in commands.
~ # ls
SEGV
~ #
I have no other programs developed by me in the system. I am just trying busybox 1.23.1 with hush
If I run help this happens:
~ # help
Built-in commands:
------------------
. Run commands in a file
bg Resume a job in the background
break Exit from a loop
...
... (I shortened this it was to long to post)
...
wait Wait for process
~ #
This makes me think that busybox was compiled right.
Has anyone faced a similar problem?