Hi Sourav,

thanks for trying out HelenOS and welcome to our ML. Please see my
answers inlined below.

On 01/21/2017 12:08 PM, sourav punoriyar wrote:
> I am trying to run HelenOS beaglebone black.
> I have built uImage.bin for beaglebone.
> 
> I am using the same uImage.bin for beaglebone black.
> 
> It gets stuck at
> *init: Spawning /app/getterm term/vc5 /loc --wait -- /app/bdsh
> *
> *but i can get into
> kconsole>

Well, this is basically as far as you can get with the current mainline
on the normal BeagleBone. I am actually pleasantly surprised that the
bbone image boots on bbone-black at all.

The mainline now contains generic support for user shell over serial
console. What a platform needs to do in order to utilize this feature is:

1) provide a device driver for its serial port and expose this device in
the 'serial' category

2) pass a boot argument in the form 'console=
devices/\hw\path\to\the\serial\device\function'

As for step 1), there is a WiP development branch that attempts to
provide userspace platform support for the BeagleBone and its serial
port (originally written by Maurizio Lombardi):

lp:~jakub/helenos/omap

Note, however, that the omap_uart driver attempts to work with UART1
(which is a different serial device than the one used by the kernel logs
and kconsole) and needs to be enabled first. I am awaiting further
information from Maurizio in order to figure out what steps need to be
made to make the omap_uart driver fully operational.

As for step 2), support for passing boot arguments so far exists only on
amd64/ia32 and sparc64. It has not yet been implemented for arm32. See
how the kernel variable bargs[] is initialized on these platforms, how
it propagates via sysinfo to userspace and how the userspace
input/output subsystems queries it via config_get_value("boot_args"). So
what is missing is the proper initialization of the bargs variable with
the actual boot arguments on arm32.

> *After some time it automatically reboots.

Okay, it shouldn't do that, so this is definitely a bug or an
insufficiency of the BeagleBone Black support.

> with the following error:-
> *[spl_load_image_fat_os: error reading image args, err - -1]*

This does not look like a HelenOS error message.

> Also:
> I have connected BBB serially.
> I don't have a GUI. Is it required to get bdsh terminal.
> how do i get it using my serial connection ?
> *example:
> *
> */#
> *

The original BeagleBone does not have a HDMI port. But the
BeagleBoard~XM does, so maybe the devices will be similar enough to
warrant the reuse of our amdm37x fb driver? Besides of that, you'd need
to make sure that our USB stack is running properly so that you can use
your HID devices. This may prove quite non-straightforward too. In any
case, you would have to make sure all the required drivers are included
in the boot image.

As for the serial console option, see above. It seems much easier to attain.

> I eagerly await for your response.

Hopefully my response will be helpful to you. Keep us updated about your
progress.

Best,
Jakub

_______________________________________________
HelenOS-devel mailing list
[email protected]
http://lists.modry.cz/listinfo/helenos-devel

Reply via email to