Unoffical empeg BBS

Quick Links: Empeg FAQ | RioCar.Org | Hijack | BigDisk Builder | jEmplode | emphatic
Repairs: Repairs

Topic Options
#4479 - 24/08/1999 04:25 getting a shell
bobo
member

Registered: 13/08/1999
Posts: 116
Hi,

it stil seems to be impossible to stop the player and get a shell prompt.
Why dont u make a image which starts immediately a shell ?

bobo


Top
#4480 - 24/08/1999 09:39 Re: getting a shell [Re: bobo]
altman
carpal tunnel

Registered: 19/05/1999
Posts: 3457
Loc: Palo Alto, CA
An image which just starts a shell isn't a lot of use when the player is used in the car ;)

To get a shell, this *should* work (try this as root (or something with access to ttyS0) on linux, with the empeg connected to ttyS0)

# stty speed 115200
# /bin/echo "\002\000\000\001\000\052\000\000\000\231\237" >/dev/ttyS0

Note that you have to use /bin/echo - some shell's builtin echo's don't do octal.

You should then get a shell prompt.

Hugo



Top
#4481 - 24/08/1999 21:13 Re: getting a shell [Re: altman]
chaya
new poster

Registered: 16/06/1999
Posts: 6
Hmmm.. I tried this and then spawned minicom to connect to the serial port. I get the following on
console:

server.cpp 91 ( 21): Got a timeout.
server.cpp 91 ( 21): Got a tim.

No luck with a shell yet. :(

-c



Top
#4482 - 25/08/1999 04:43 Re: getting a shell [Re: chaya]
philb
stranger

Registered: 16/08/1999
Posts: 44
It took me a while to do it, but I finally got the shell:
Flash&pump the developer code onto the empeg in Windows
Boot Linux, get two windows up, run minicom in one (115200,8,N,1,No handshake) and a shell
Plug the empeg power in - should get Linux boot messages and player should start
Do echo pipe to serial port as per Hugo's post in the shell
You should see a few control chars, in minicom and the player should exit dropping you to a bash shell
There isn't a great deal to see, /proc has some interesting stuff, but randomly cat'ing this and devices in /dev you can easily get your terminal into a state which requires a reboot.
Didn't manage to get vi to work - needs a TERM environment variable setting, tried linux and vt100, but no luck. df seemed to complain that it couldnt find some file, but fstab is in /etc/ like you'd expect.

The empeg code seems to be all in one big file. I was hoping that the modules would be seperate so the MP3 decoder etc could be called individually by scripts etc. I s'pose the empeg guys will publish an API for the player, when they get a chance.

Looks like the only way to get files to/from the empeg at the mo is rz/sz which are in /bin. I guess later on we'll get pppd, telnetd etc ported.
Where's a good place to get gcc etc from? Is it a standard ARM one available from the debian/netwinder site?

Phil


Top
#4483 - 25/08/1999 08:08 Re: getting a shell [Re: philb]
Kram
stranger

Registered: 23/06/1999
Posts: 42
Loc: Cambridge, England
I was speaking to Mike (Mac) about gcc last week and he suggested that cross-compiling from Linux (or even Windros) on Intel would be a better bet than running gcc on the Empeg itself, mainly due to disk and memory requirements.

I've not tried this yet, but plan to sometime soon.

Cheers,

Mark.


Top
#4484 - 26/08/1999 02:16 Re: getting a shell [Re: altman]
bobo
member

Registered: 13/08/1999
Posts: 116
cool - works fine :-)

bobo


Top
#4485 - 26/08/1999 10:15 Re: getting a shell [Re: philb]
chaya
new poster

Registered: 16/06/1999
Posts: 6
right on. I got the shell.

thanks.

-c


Top
#4486 - 06/09/1999 20:31 Re: getting a shell [Re: philb]
gandolf
new poster

Registered: 04/09/1999
Posts: 3
Beta6 is much easier to get the shell. After the boot messages and the player starts you can press Ctl-C twice and break into the shell. Or better yet just type 'q' (without the quotes) then . Wala.

Curt.


Top
#4487 - 07/09/1999 03:02 Re: getting a shell [Re: philb]
raphael
stranger

Registered: 09/06/1999
Posts: 33
Loc: Austria
You can get a working vi (well it's rather vim) from http://members.psi.co.at/weltreise/empeg/.


--
Raphael Wegmann
[email protected]
_________________________
--
Raphael Wegmann
[email protected]

Top