Author Topic: How to boot in console mode?  (Read 5141 times)

net_bh

  • Newbie
  • *
  • Posts: 8
    • View Profile
    • http://
How to boot in console mode?
« on: April 24, 2004, 10:30:12 pm »
Hi all,

It  might seem strange...but I would like to boot my zaurus in a console mode like a regular linux machine for a project i am doing.

What i want to achieve is the following:

1. Boot into console mode with automatic user login (any user)
2. Networking should be up as normal
3. Start a \'vlc\' instance that will fetch data off the network and display it onto the screen.

I started by disabling qpe.sh, but i get \"ld respawing\" messages. Also i cant seem to find where qpe.sh is called...definitely not in /etc/rc.d

I am using a 5600 with zynergy ROM.

Thanks for your time.

Regards,
A

jason123

  • Full Member
  • ***
  • Posts: 170
    • View Profile
How to boot in console mode?
« Reply #1 on: April 24, 2004, 11:10:29 pm »
ewww .. you\'re weird
SL-5500
Hentges 3.5.4.1
Kingmax 1gb SD
Lexar 1gb CF
Belkin IR Keyboard
Socket 56k Modem CF
Linksys 802.11b CF

tapjpa

  • Guest
How to boot in console mode?
« Reply #2 on: April 24, 2004, 11:29:36 pm »

net_bh

  • Newbie
  • *
  • Posts: 8
    • View Profile
    • http://
How to boot in console mode?
« Reply #3 on: April 24, 2004, 11:30:23 pm »
You wont say that once you see the demo of multiple zaurii booting up and displaying streaming video

net_bh

  • Newbie
  • *
  • Posts: 8
    • View Profile
    • http://
How to boot in console mode?
« Reply #4 on: April 24, 2004, 11:39:47 pm »
Thanks tapjpa

This does help.....but it still requires manual intervention. I am looking to create a runlevel that simply completes all the initialization (sdcard, network, yada yada..), but instead of launching qpe, it launches the \"vlc\" application.

Stubear

  • Hero Member
  • *****
  • Posts: 1164
    • View Profile
    • http://
How to boot in console mode?
« Reply #5 on: April 25, 2004, 07:50:42 am »
Not sure if it is the same on the 5600, but on the Cxx0 the script /etc/rc.d/rc.rofilesys or /root/etc/rc.d/rc.rofilesys (there are 2 for some reason and they are sometimes different on differnt roms) has a line at the bottom the reads
Code: [Select]
echo $LAUNCH > /home/sharp/etc/launch.default
where by default $LAUNCH is \"q\" also /etc/inittab has the following
Code: [Select]
ln:345:respawn:survive -l 6 /sbin/launch
meaning that for run levels 3,4 and 5 (the default) it runs /sbin/launch, whick looks in /home/sharp/etc/launch.default for a single letter to choose what to run. By default it runs /home/QtPalmtop/qpe.sh.

When you disable qpe.sh, it respawns and launch tries to run qpe.sh again, fails, respawns etc etc etc.

So you need to
a) edit rc.rofilesys to pass \"a\" instad of \"q\" or
 edit /etc/inittab to run something else for runlevel 5 or
c) edit /etc/inittab to run something else for a new default runlevel

Hope that helps

Stu
SL-C1000, Hand converted to English with Japanese Input
Running X apps via X/Qt
iRiver USB host cable; Diatec P-Cord usb power cable (extendable); Acro's Reel Cable USB (A to A, B, Mini-B,  & Mini-B 8pin); GreenHouse 1Gb PicoDrive+; 2x256Mb Hagiwara SD cards; 128Mb Transcend CF card; 512Mb PQI CF card; AmbiCom WL1100C-CF 11B WLAN card

Joshp

  • Sr. Member
  • ****
  • Posts: 265
    • View Profile
    • http://
How to boot in console mode?
« Reply #6 on: April 25, 2004, 09:12:44 am »
Quote
Not sure if it is the same on the 5600, but on the Cxx0 the script /etc/rc.d/rc.rofilesys or /root/etc/rc.d/rc.rofilesys (there are 2 for some reason and they are sometimes different on differnt roms) has a line at the bottom the reads
Code: [Select]
echo $LAUNCH > /home/sharp/etc/launch.default
where by default $LAUNCH is \"q\" also /etc/inittab has the following
Code: [Select]
ln:345:respawn:survive -l 6 /sbin/launch
meaning that for run levels 3,4 and 5 (the default) it runs /sbin/launch, whick looks in /home/sharp/etc/launch.default for a single letter to choose what to run. By default it runs /home/QtPalmtop/qpe.sh.

When you disable qpe.sh, it respawns and launch tries to run qpe.sh again, fails, respawns etc etc etc.

So you need to  
a) edit rc.rofilesys to pass \"a\" instad of \"q\" or
 edit /etc/inittab to run something else for runlevel 5 or
c) edit /etc/inittab to run something else for a new default runlevel

Hope that helps

Stu

Why cant you just edit launch.conf?

Joshp

  • Sr. Member
  • ****
  • Posts: 265
    • View Profile
    • http://
How to boot in console mode?
« Reply #7 on: April 25, 2004, 09:29:17 am »
OK this worked on my sl-5500 running tkc rom 1.0.

Edit the launch.conf, and make the line marked as \"q\" look like this:
q \"Qtopia                 \" e /sbin/getty getty 9600 tty1  #x /sbin/qt qt

Hope this helps
JP

net_bh

  • Newbie
  • *
  • Posts: 8
    • View Profile
    • http://
How to boot in console mode?
« Reply #8 on: April 25, 2004, 10:56:34 pm »
Thanks Stubear and Joshp. That gives some insight.

I get \"getty\" working, but an application like \"vlc\" doesnt seem to work there.  It complains about:
QSocket::writeBlock: Socket is not open

So i tried letting the system come up as normal in runlevel 5 and checked all the running processes where I found a \"qeserver\" and a \"qpe\". I let \"qpeserver\" run and killed \"qpe\". That kills the desktop that we see and which is what i want. Also, vlc now runs in that environment.

How can i now make it respawn if it crashes? Since we are not using inittab, there has to be another program that allows that. Any tips would be helpful.

Regards,
A

net_bh

  • Newbie
  • *
  • Posts: 8
    • View Profile
    • http://
How to boot in console mode?
« Reply #9 on: April 26, 2004, 03:29:06 am »
Hi,

Since \"runqpe\" in /home/QtPalmtop/qpe.sh never returns, where can I call my vlc program to be executed on bootup? It seems that it needs to be *after* qpe, otherwise it doesnt start up. I have successfully tried this from the commandline. If I put it in rc.local which executes before qpe, \"vlc\" doesnt start up.

Are there any scripts accessed by the runqpe command? Or is there any way to register a callback that checks every few minutes/seconds to see if vlc is running and if not, runs it? Since we dont have \"cron\" and \"at\" doesnt seem to understand the \"now\" syntax i am at a deadend.

Thanks for your time.

Regards,
A

halx

  • Jr. Member
  • **
  • Posts: 76
    • View Profile
    • http://www.hloeffler.info/
How to boot in console mode?
« Reply #10 on: April 26, 2004, 04:38:52 am »
Quote
a) edit rc.rofilesys to pass \"a\" instad of \"q\" or
 edit /etc/inittab to run something else for runlevel 5 or
c) edit /etc/inittab to run something else for a new default runlevel

Any changes to /etc/inittab seem to be ignored on my c860.  Option a) works, however.

halx

  • Jr. Member
  • **
  • Posts: 76
    • View Profile
    • http://www.hloeffler.info/
How to boot in console mode?
« Reply #11 on: April 26, 2004, 04:44:31 am »
Quote
Why cant you just edit launch.conf?

Well, on my c860 such changes would be ignored.

Stubear

  • Hero Member
  • *****
  • Posts: 1164
    • View Profile
    • http://
How to boot in console mode?
« Reply #12 on: April 26, 2004, 08:34:04 am »
You could try replacing runqpe with your own script. On the C760 /home/Qtpalmtop/bin/runqpe is a symlink to /usr/QtPalmtop.rom/bin/runqpe - delete the link and create a script that runs qpeserver and vlc - that way it should happily respawn

Stu
SL-C1000, Hand converted to English with Japanese Input
Running X apps via X/Qt
iRiver USB host cable; Diatec P-Cord usb power cable (extendable); Acro's Reel Cable USB (A to A, B, Mini-B,  & Mini-B 8pin); GreenHouse 1Gb PicoDrive+; 2x256Mb Hagiwara SD cards; 128Mb Transcend CF card; 512Mb PQI CF card; AmbiCom WL1100C-CF 11B WLAN card

Nightruler

  • Newbie
  • *
  • Posts: 27
    • View Profile
How to boot in console mode?
« Reply #13 on: May 09, 2004, 06:58:05 pm »
I\'ve been trying to do this with the TkcRom and VirutalBoy gameboy emulator on the 5600 to see if I can get it to run better with out Qt running.   I replace the runqpe script with something like:

qeserver
VirtualBoyAdvanced /mnt/card/game.gba

but it allways just sits at that start up screen.  Am I missing something here?  Also insted of calling a direct program, is it possible to just load the terminal window and get a shell with out all the overhead of Qt and it\'s apps running?
Zaurus 5600
Zynergy5600 ROM
512mb PNY SD
TRENDnet Ethernet CF
SMC 2642W 802.11b CF
32mb Kingston CF
Targus IR Keyboard