OESF Portables Forum

Everything Else => Sharp Zaurus => Model Specific Forums => Distros, Development, and Model Specific Forums => Archived Forums => C1000/3x00 General discussions => Topic started by: Jonathan on February 02, 2005, 11:54:15 pm

Title: Boot C3000 Into Text Console
Post by: Jonathan on February 02, 2005, 11:54:15 pm
Hi all,

I've set up my C3000 to boot into a text console or Qtopia as per these threads:

Any Way To Get Out Of The 860 Gui On Startup  (https://www.oesf.org/forums/index.php?showtopic=10348&hl=launch\.default)
rebooting Zaurus in text mode  (https://www.oesf.org/forums/index.php?showtopic=4859&hl=launch\.default)
How to boot in console mode?  (https://www.oesf.org/forums/index.php?showtopic=3608&hl=launch\.default)

which gives me a text login, but I only get a single line below the initial Sharp splash screen.  Not much good for debugging or checking log scripts after a crash.

Can someone tell me if I can get a full screen text console on the C3000 at boot time in single user mode.  I don't know if it's different on the other Cxx0 models.  


Also, I'd *really* like to do away with both the startup splash screens (the second one can be removed/changed by exiting qpe.sh) and see the boot messages as they occur.  You know, like on other linux versions, showing fsck and other things going on at boot time.

I've searched the forums and web for ideas and came up blank.

I'd appreciate your help on this.

Thanks in advance,

Jonathan
Title: Boot C3000 Into Text Console
Post by: m-morino on February 03, 2005, 03:03:21 am
Hi,

To fix the problem, you need to apply a patch to kernel source and recomplie it.

If you have no time, use precompiled kernels with splash screens disabled in this page (http://tetsu.homelinux.org/zaurus/kernel/index.html).
These kernels also have nice ability to overclock the CPU up to ~624MHz!  
But I make no mention of it

How to update:

First, you have to download a updater script and kernel below.

http://developer.ezaurus.com/sl_j/source/c...pdater.sh.c3000 (http://developer.ezaurus.com/sl_j/source/c3000/20041116/updater.sh.c3000)
http://tetsu.homelinux.org/zaurus/kernel/v...-v17f-C3000.bin (http://tetsu.homelinux.org/zaurus/kernel/v17f/zImage-v17f-C3000.bin)
http://tetsu.homelinux.org/zaurus/kernel/v17f/size.html (http://tetsu.homelinux.org/zaurus/kernel/v17f/size.html) (md5sum for kernels)

Then, rename these files like below and put them on a CF or SD/MMC.
Note that the updater is case-sensitive, so make sure the files are same name below.

updater.sh.c3000  -> updater.sh
zImage-v17f-C3000.bin -> zImage

After that, enter the maintenance menu and update your C3000 (see the install document of pdaXrom).

HTH,

--
 m-morino
Title: Boot C3000 Into Text Console
Post by: Jonathan on February 03, 2005, 05:03:08 am
Hi m-morino,

Thank you so much for the quick response.  I suspected I might need a new kernel to remove the first startup screen.  The screen seems to come up just after the kernel loads and before the rest of the boot process.

I've been intending to try the overclocking/enhanced kernel since before I got the C3000, but have been waiting for others to try first   Now I have no excuse not to try...  maybe I'll give it a go tonight.

Thanks for the simple and clear instructions!

Jonathan.
Title: Boot C3000 Into Text Console
Post by: Jonathan on February 03, 2005, 10:17:35 am
I installed the new kernel as instructed - very easy - and *hurrah!* I now have a pretty penguin and the usual boot messages.  Makes it a "real" Linux box.

The overclocking doesn't seem to make much different at the moment, but time will tell.  Changing the LCD frequency from the default 104Mhz makes the screen flicker a bit (as you might expect really).  A CCCR value of 02000310 (624MHz) seems to work fine.

I like Piro-san's battery change applet and setup the Settings/freqchange.conf file for the cpu frequencies of 416MHz, 520MHz and 624MHz but made sure the LCD frequency matched the default.

Anyway here are a couple of pics for other people who may be interested (couldn't figure out how to do screen dumps quickly, and they it wouldn't work on the text console anyway.)  Appologies for terrible quality.

Many thanks to you m-morino (and to Tetsu and others for the new kernel)!  

Now all I need to do is compile my own kernel with video4linux enabled.

Jonathan

1.  Penguin and scrolling boot messages

[img]http://www.enm.bris.ac.uk/teaching/enjmr/Zaurus_SL-C3000/pics/NewKernel_sa.jpg\" border=\"0\" class=\"linked-image\" /]

2. single user mode console

[img]http://www.enm.bris.ac.uk/teaching/enjmr/Zaurus_SL-C3000/pics/NewKernel_sb.jpg\" border=\"0\" class=\"linked-image\" /]

3. qclockchange

[img]http://www.enm.bris.ac.uk/teaching/enjmr/Zaurus_SL-C3000/pics/NewKernel_sc.jpg\" border=\"0\" class=\"linked-image\" /]
Title: Boot C3000 Into Text Console
Post by: slackwaresupport on February 04, 2005, 12:35:05 pm
i noticed that your using a VORE of 1.45 the website says to use 1.55 for the 624mhz.


0e: 1.550V (624MHz時の定格)
0f: 1.600V
解説: クロックアップ時はコア電圧を上げないと安定しないようです。
使用例:
# echo 0e > /proc/zaurus/VCORE
Title: Boot C3000 Into Text Console
Post by: Jonathan on February 05, 2005, 07:14:38 am
Quote
i noticed that your using a VORE of 1.45 the website says to use 1.55 for the 624mhz.


0e: 1.550V (624MHz時の定格)
0f: 1.600V
解説: クロックアップ時はコア電圧を上げないと安定しないようです。
使用例:
# echo 0e > /proc/zaurus/VCORE
[div align=\"right\"][a href=\"index.php?act=findpost&pid=65582\"][{POST_SNAPBACK}][/a][/div]


haha!  Very observant!  

Nope, I haven`t been running at the lower voltage - it`s just that the qclockchange application lets you cange values on screen without applying them.  I was just playing around before taking the photo.

I certainly _do_ use the values recommended on the web page.

Many thanks though for your response - I hope I would be as observant and kind as you are in pointing out such a thing.

Cheers,

Jonathan
Title: Boot C3000 Into Text Console
Post by: ArchiMark on February 06, 2005, 12:05:56 am
Hope someone can please Help!

Just tried to install m-marino's pre-compiled kernel as per instructions...

Reset and Z booted up...see 'SHARP' in red letters as usual...

At bottom of screen I see message "HDD1 Error!!"

Not good!....  


Should I try reflash again...or???

Any suggestions???

Thanks!!

Mark
Title: Boot C3000 Into Text Console
Post by: m-morino on February 06, 2005, 12:47:46 am
Hi Mark,
Quote
At bottom of screen I see message "HDD1 Error!!"

Not good!....  
[div align=\"right\"][{POST_SNAPBACK}][/a][/div] (http://index.php?act=findpost&pid=65776\")


To troubleshoot it, I made a rescue [a href=\"http://morimasa.net/zaurus/binaries/updater.sh.rescue]updater.sh[/url].
Rename it updater.sh and put it on a CF or SD, then do the usual kernel update process.
You will see a pretty 'ash' command prompt.

/dev/mtdblock2 is root filesystem, and /dev/mtdblock3 is usually mounted on /home. To investigate the root fs, try

# mkdir /mnt/mtdblock2
# mount -o noatime,rw /dev/mtdblock2 /mnt/mtdblock2

and enter the filesystem.

 Maybe /etc/mtab is broken. Mount /dev/mtdblock3 on /mnt/mtdblock3 and make a trial of

# ln -fs /proc/mounts /mnt/mtdblock3/etc/mtab

and reboot.

HTH,

--
m-morino
Title: Boot C3000 Into Text Console
Post by: ArchiMark on February 06, 2005, 10:30:45 am
Thanks for your help, m-morino. Really can use it!

Understand your directions I hope, but want to be clear...

Do you mean that I should repeat the same commands for 'mtdblock3' as I did for 'mtdblock2' ?

Do you mean to type in 'reboot' after mounting commands or to do the 'reset' procedure with taking out battery, etc?

Meanwhile, did this and after entering in the 'ln -fs /proc/mounts mnt/mtdblock3/etc/mtab'
line I get the following error message:

'ln: mnt/mtdblock3/etc/mtab: No space left on device'

Now what??

Thanks,

Mark
Anxious C3000 Owner....
Title: Boot C3000 Into Text Console
Post by: m-morino on February 06, 2005, 11:32:40 am
Hi Mark,
Quote
Meanwhile, did this and after entering in the 'ln -fs /proc/mounts mnt/mtdblock3/etc/mtab'
line I get the following error message:

'ln: mnt/mtdblock3/etc/mtab: No space left on device'
[div align=\"right\"][a href=\"index.php?act=findpost&pid=65836\"][{POST_SNAPBACK}][/a][/div]
You put some large files into /home/*, didn't you?
/dev/mtdblock3 (/home) has a capacity of only 4MB.
Remove unnecessary files from /home, because the boot process needs to be able to write some files on /home/system/var.
Then reboot. You may possibly see a QTopia screen.

HTH,

--
m-morino
Title: Boot C3000 Into Text Console
Post by: ArchiMark on February 06, 2005, 11:49:35 am
Thanks for your help, m-morino.

Don't remember putting any large files on /home.

Just checked and only thing listed in /home is:

drwxr-xr-x  2 root  root  1024 Oct 24 2004 root

So don't see anything to remove?

Thanks,

Mark
Title: Boot C3000 Into Text Console
Post by: m-morino on February 06, 2005, 12:15:23 pm
Quote
Just checked and only thing listed in /home is:

drwxr-xr-x  2 root  root  1024 Oct 24 2004 root

So don't see anything to remove?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=65846\"][{POST_SNAPBACK}][/a][/div]
Ok, just try:

Code: [Select]
# mkdir /mnt/mtdblock3
# mount -o rw,noatime /dev/mtdblock3 /mnt/mtdblock3
# df
If /mnt/mtdblock3 isn't fully filled, do below:

Code: [Select]
# ls -l /mnt/mtdblock3/etc/mtabIf it isn't a symbolic link to /proc/mounts, try

Code: [Select]
# ln -fs /proc/mounts /mnt/mtdblock3/etc/mtab
# exit

It reboots after the "exit" command.
Then check the boot process works fine.

HTH,

--
m-morino
Title: Boot C3000 Into Text Console
Post by: ArchiMark on February 06, 2005, 12:49:28 pm
Thanks so much for your continued help, m-morino!

OK, tried what you suggest...got the following:

Code: [Select]
# mkdir /mnt/mtdblock3
mkdir: Cannot create directory `/mnt/mtdblock3': File exists
# mount -o rw,noatime /dev/mtdblock3 /mnt/mtdblock3
mount: Mounting /dev/mtdblock3 on /mnt/mtdblock3 failed: Device or resource busy
# df
Filesystem        1k-blocks     Used   Available    Use%   Mounted on
rootfs                     7931     7800            0        100%       /
/dev/root                7931     7800            0        100%      /
/dev/shm              16384          4     16380            0%      /tmp
/dev/hda1               7768     6368      1400           82%     /mnt/cf
/dev/mtdblock2       5120     5120            0        100%      /mnt/mtdblock2
/dev/mtblock3         4096     4096            0        100%     /mnt/mtdblock3

So this seems strange that here it shows that mtblock3 is full. But when I checked /home it seems that it is only about 25% full right??

UPDATE: Decided to bite the bullet and do a 'Reset' back to factory condition....figured that might be good idea to get things fixed....

Thanks,

Mark
Title: Boot C3000 Into Text Console
Post by: m-morino on February 06, 2005, 01:29:14 pm
Mark,
Quote
Code: [Select]
# df
Filesystem        1k-blocks     Used   Available    Use%   Mounted on
rootfs                     7931     7800            0        100%       /
/dev/root                7931     7800            0        100%      /
/dev/shm              16384          4     16380            0%      /tmp
/dev/hda1               7768     6368      1400           82%     /mnt/cf
/dev/mtdblock2       5120     5120            0        100%      /mnt/mtdblock2
/dev/mtblock3         4096     4096            0        100%     /mnt/mtdblock3
[div align=\"right\"][a href=\"index.php?act=findpost&pid=65862\"][{POST_SNAPBACK}][/a][/div]
Ok, then type

Code: [Select]
# cd /mnt/mtdblock3
# du | sort -n
You will have the sorted file space usage report.

By the way, your /home is strange... my C3000 in the rescue environment shows

Code: [Select]
# ls /mnt/mtdblock3
QtPalmtop etc samba system userdata
dev root sharp tmp
It works fine  

You'd better backup necessary files into a CF, and reflash...  
I can't figure out the cause of the problem...

--
 m-morino
Title: Boot C3000 Into Text Console
Post by: ArchiMark on February 06, 2005, 01:50:11 pm
OK, m-morino.

THANKS for all your help!

It is a BIG help!

 

Mark
Title: Boot C3000 Into Text Console
Post by: ArchiMark on February 06, 2005, 11:22:40 pm
OK, back in business after resetting Z back to factory condition..

Now wanted to install m-morino's kernel.....

Just tried but no change to Z after 2nd reset and boot up...

So, here's what I did. Please let me know if I have done something incorrect.

Put 2 files - zImage and updater.sh to the root level of CF  card.
Unplugged AC power cord from C3000.
Removed battery for about 30 seconds.
Replaced battery (replace battery cover, lock cover), and plugged in AC power.
Press and held the "OK" button on the keyboard.
Turned power on.
From Japanese service menu, I selected option 4 (flash/update).
Then from next four options (1. USB, 2. CF, 3. SD, 4. Back)
Choose option 2
After a while, I saw message "Please reset".
Unplugged AC power cord from C3000.
Removed battery for about 30 seconds.
Replaced battery (replace battery cover, lock cover), and plugged in AC power.
Turned on C3000.
It booted up as before, no change to boot up!

Any suggestions?

Thanks,

Mark
Title: Boot C3000 Into Text Console
Post by: m-morino on February 07, 2005, 12:49:08 am
Hi Mark,

Quote
Now wanted to install m-morino's kernel.....
[div align=\"right\"][a href=\"index.php?act=findpost&pid=65908\"][{POST_SNAPBACK}][/a][/div]
It's NOT my kernel
tetsu-san and other developers made the kernels from the SHARP's kernel source  

Anyway,
Quote
Put 2 files - zImage and updater.sh to the root level of CF  card.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=65908\"][{POST_SNAPBACK}][/a][/div]
What's the filesystem type of the CF? I normally use vfat and it works for my C3000.

Quote
Unplugged AC power cord from C3000.
Removed battery for about 30 seconds.
Replaced battery (replace battery cover, lock cover), and plugged in AC power.
Press and held the "OK" button on the keyboard.
Turned power on.
From Japanese service menu, I selected option 4 (flash/update).
Then from next four options (1. USB, 2. CF, 3. SD, 4. Back)
Choose option 2
So far, so good.

Quote
After a while, I saw message "Please reset".
If a file named "zImage" exists on the CF,
it oughts to show like below before the "reset" message.

Code: [Select]
kernel update
zImage:1244096bytes

It's obvious that the updater.sh couldn't find the file "zImage".
So you'll do better to check the filename of "zImage" again.
You may miss the filename extention of the file or something...

HTH,

--
m-morino
Title: Boot C3000 Into Text Console
Post by: ArchiMark on February 07, 2005, 12:56:25 am
Thanks as always for your help, m-morino!

OK, CF card is VFAT. So should be OK..

Renamed the 2 files as you noted in your first post....you said to rename file 'zImage', I tried that first but then changed it to 'zImage.bin'.

Doesn't seem to make any difference...as I have not ever seen the text:
Code: [Select]
kernel update
zImage:1244096bytes

I only see 'Please reset"....

Very strange.......  

Mark
Title: Boot C3000 Into Text Console
Post by: m-morino on February 07, 2005, 01:12:56 am
Mark,

Quote
Renamed the 2 files as you noted in your first post....you said to rename file 'zImage', I tried that first but then changed it to 'zImage.bin'.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=65918\"][{POST_SNAPBACK}][/a][/div]
Hmm...  

Check the filename of "zImage" on the embeddedkonsole like this code:

Code: [Select]
# cd /mnt/cf
# ls zImage*
Then rename it zImage without fail.

Code: [Select]
# mv (the filename acquired above) zImageAfter that, have a try at re-update.

HTH,

--
m-morino
Title: Boot C3000 Into Text Console
Post by: ArchiMark on February 07, 2005, 10:03:42 am
WoooHoooo!!!

 


I finally saw

Code: [Select]
kernel update
zImage:1244096bytes

before it said 'Please reset'

Did that and then I saw Tux Penguin and text and then
HOWEVER, I saw the usual 'CG Silicon' screen before it finished booting...

Is that right?

Also, from earlier posts, it sounds like I should see some other applications installed?

So maybe have made some progress....??


Thanks,

Mark
Title: Boot C3000 Into Text Console
Post by: m-morino on February 07, 2005, 11:32:37 am
Good morning, Mark! (right? Japan is in the dead of night. I'm very drowsy...)

Congratulations! you made it!
Quote
Did that and then I saw Tux Penguin and text and then
HOWEVER, I saw the usual 'CG Silicon' screen before it finished booting...

Is that right?
[div align=\"right\"][{POST_SNAPBACK}][/a][/div] (http://index.php?act=findpost&pid=65977\")
Right. The screen doesn't have to do with the kernel. QTopia shows the screen.

Quote
Also, from earlier posts, it sounds like I should see some other applications installed?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=65977\"][{POST_SNAPBACK}][/a][/div]

piro-san made [a href=\"http://www.piro.hopto.org/~piro/zaurus/etc/qclockchange-for-c3000_0.1_arm.ipk]a GUI clock changer[/url] for C3000. Try it.

Note that the application needs root privilege to change the clock.
I think you know how to do that.

HTH, HAND  

--
m-morino
Title: Boot C3000 Into Text Console
Post by: ArchiMark on February 07, 2005, 12:02:23 pm
Thanks m-morino!

Now, get some sleep!!




Mark