Author Topic: Tutorial: Pdaxrom On Sl-6000  (Read 26398 times)

jcabrer

  • Full Member
  • ***
  • Posts: 161
    • View Profile
Tutorial: Pdaxrom On Sl-6000
« on: August 17, 2005, 03:02:41 pm »
Updated for 1.1.0 Beta 1

First a disclaimer:  I am not responsible for any damage caused by the advice I give.  I do my best to give information that is helpful AND accurate, but hey, everybody makes mistakes now and then.  This tutorial will address all of those questions that need answers as well as questions that need asking.  A lot of this information can be found in other places, I may not always give credit to others, but it is by no means intentional.

Tutorial for SL-6000 owners wanting to run pdaXrom ( Starting with Katherin RC10 )

This tutorial assumes that you have already decided on or been coerced into installing pdaXrom on your "virgin" SL-6000.

Note: An SL-6000 (or any other Zaurus model for that matter) is considered a "Virgin" when it has never been touched by a ROM Distro other than the one given to it by Sharp.  Of course some of you have taken the plunge already and maybe you went back to the original rom, but as we all know, without surgery, you can only be a virgin once.

Chapter 1 - Flashing your SL-6000 with pdaXrom Katherin RC10

There are various methods for accomplishing this.  I will describe the only one that I have tried.  Please remember, "Bricked" ain't just a river in Egypt!  If you don't/can't pay attention to detailed instructions, stop reading this or get professional help.

Synopsis of the flashing procedure
1.  Obtain the Guylhem ROM Distro for SL-6000 (This step is optional)
2.  Obtain the pdaXrom Katherin RC10 distro for SL-6000
3.  Perform the post-flash procedures
4.  Test things out.

The Devil Is In The Details

One thing you should have before you begin is a 128Mb Compact Flash Card formated with windows FAT to hold the install files.  You can probably do it with 64Mb, but I can't say that all the files will fit for both Guylhem and pdaXrom.

1.  Obtain the Guylhem ROM Distro for SL-6000 (optional)

There is only one reason for installing the Guylhem ROM distro before pdaXrom.  To make a long story short, there are misgivings about various ways or re-sizing the SL-6000 partitions, but some have found that installing Guylhem ROM does the resize as part of the install procedure.  You can skip this step, and everything should still work fine, but it will cost you a bit of storage space.  I'm not sure how much.  My SL-6000 show a root partition size of 58368 1k-blocks.  Any larger, and you risk overwriting the protions of NAND memory that store the routines that allow the Zaurus to be flashed and re-flashed, the result of which is "Bricked"!

Follow this link for Guylhem ROM installation instructions

You only need to go to step "E."  Then you can come back here and continue.

2.  Obtain the pdaXrom Katherin RC10 distro for SL-6000

This is the main event.  After this you'll wonder why anyone runs anything but pdaXrom.  Maybe.  Maybe not.

Get the pdaXrom RC10 distro here

There is a nice howto here on installing pdaXrom on SL-6000, but it has steps which we will need to skip, so read it, but don't follow it (at least not all of it).  Instead, do this:
(0)- Plug your SL-6000 into the external power cable.  DO NOT FLASH YOUR ZAURUS USING BATTERY POWER!!!

(1)-Put these files on your card: You can download these 3 files from: http://212.10.30.205/rc10/Zaurus-SL6000/ka...n-rc10-tosa.zip

tools.tar
initrd.bin
updater.sh

(2)-Put your card on your Zaurus and push the reset button (found on the back of the unit) with the tip of your stylus. Now, hold the 'OK' button and push the 'ON' button.

(3)-You will see the "maintenance menu". Go to number 4 (update).

(4)-When your Zaurus reboots, you will see the pdaXrom installer!

You will be tempted to "Explore" these menus.  Resist!

(5)-You will see the "maintenance menu". Go to number 4 (update).

(6)-When your Zaurus reboots and shows the pdaXrom installer, go to the first choice (Install new ROM), press OK, and wait...

Now pdaXrom is auto-installing

(7)-(This Step Removed)

(8)-When the installer returns to the main menu, select reboot and press OK.

(9)-Now pdaXrom is installed, let me explain to you how you can configure it.

3.  Perform the post-flash procedures

The system should begin booting.  You will notice a Bluish pdaXrom banner at the top of your screen, and scrolling text below.

The first boot will require a lot of time.  This is because ssh needs to generate several keys.  Very intense calculations...  Don't get antsy.  Just wait it out.

When the system is completely booted, you will be presented with the Login: prompt.

enter "root" and you will be at the command line.

Before doing anything else, do the following:
[TYPE]

tar --no-same-owner -xf /root/.home_default.tar

[PRESS ENTER]

This configures your X11 environment to look pretty.  If you skip this, your X11 session will be impossible to use.

Now you are ready to

[TYPE]

startx

[PRESS ENTER]

Follow the screen calibration procedure

You are done!

If you screw up calibration, and can't get a workable X mouse after, reboot the Z
and run ts_calibrate after logging in as root.


4.  Test things out.


Have a look around.  Pretty isn't it?  There are monsters lurking in dark corners, but we will bring them into the light for you to play with.

Chapter 2 - Networking

Before we start installing all kinds of good things, we need to address some issues that will make life easier.

0.  Fix some annoying power control problems.
1.  Get WIFI working.
2.  Get USB Cradle Networking working.
3.  Get a local feed going for installs using Apache Web Server

First off, let me just say that Suspend works ok on the SL-6000.  It's when you wake up that you may have a headache.  I'll give a detailed fix for this later, but for now we will implement a quick temporary fix.

Open the Light and Power management and set the Suspend and Screen Off values to Zero (0) for both Battery and AC Power.  That's it.

 Ok.  On to the wireless.  In its current state, RC10 Wireless networking cannot be enabled using the GUI utilities.  For those of you who don't know how to use the console or vi, I appologize, but this is not a tutorial for that.

For this example I need a few things in advance.

Wireless Router:
SSID or ESSID = ECHO
Router IP Address = 192.168.200.1 (or 192.168.0.1, or 192.168.1.1, or what ever your router happens to be)

edit the file /etc/wlan/wlan.conf

and locate the following line:

SSID_wlan0=""""

change to:

SSID_wlan0="ECHO" (or whatever you Router SSID is)

That's it.  Save the file and move on.

# cp /etc/wlan/wlancfg-DEFAULT /etc/wlan/wlancfg-ECHO

create a new file called wifiup in your home directory

#cd                              (gets you to /home/root)
#vi wifiup

Add the following and save the file:

killall dhcpcd
/etc/rc.d/init.d/wlan start
dhcpcd wlan0
ifconfig

Once the file is saved, make it executable, and create a symlink in /usr/bin

# chmod 755 ./wifiup
# ln -s /home/root/wifiup /usr/bin/wifiup

Now you can activate wireless by typing wifiup

Similarly, you could create a file called wifidown with the following content to disable wireless

killall dhcpcd
/etc/rc.d/init.d/wlan stop
ifconfig

again

# chmod 755 ./wifidown
# ln -s /home/root/wifiup /usr/bin/wifidown

Later we might create icons to do this, but probably this will be fixed in the next release.

Now that wireless is working (It should be working), we can set up the Package manager to install from a remote feed.  We want to do this because we need Apache for our local feed, and X11vnc because typing all this stuff on that little keyboard is getting harder and harder.

If you open the Package Manager and look at the settings tab, you will see that there is a feed already there.  Remove it.

In the New Feed:  type

http://212.10.30.205/rc10/Zaurus-SL6000/feed

and click the Add button.  Then add

http://www.pdaxrom.org/unstable

if you want the unstable feed.

A word about installing on SD and CF cards.  By default, the Package Manager wants to install everything on the root partition.  This partition only has about 25Mb free, so you want to avoid installing there unless you really have to.  If you install there by accident, you can always uninstall and try again.

There are 3 packages that I know of that MUST be installed to /.  They are Apache, MySQL Server, Apache PHP Module, Jikes Java Compiler, and the Java Classes.  With those exceptions, everything else I have installed can go on the SD or CF cards...

Well, not exactly.  You see, I have a 1Gb SD with and ext2 partition, and a 1Gb CF with vFAT partition.  The CF card is fine for holding things like files of all kinds (tar.gz, mp3/ogg, wav, txt, pdaXrom installation stuff, feed files), but it bombs when you try and extract most tar.gz files to it.  That's where the SD card comes in handy.  The ext2 partition never complains.  You can install IPKs there all day long, and for the most part they will create their own symlinks on the root.

Coming in Chapter 2, 3, 4, 5...

-Setting up Apache on your SL-6000 so you don't have to get you software from remote feeds.

-Configuring your local feed

-Getting WIFI working

-Getting USB Cradle Network Link Working

-Fixing Direction pad so that it correctly adapts to a rotated screen.

-Adding a second rotation button for opposite direction

-Mounting network drives from Windows PCs

-Installing a working development environment
« Last Edit: January 03, 2006, 05:37:54 pm by jcabrer »
Sharp SL-C3100 - pdaXrom Beta 3
Sharp SL-6000L - pdaXrom Beta 1

Laze

  • Hero Member
  • *****
  • Posts: 704
    • View Profile
    • http://www.pdaXrom.org
Tutorial: Pdaxrom On Sl-6000
« Reply #1 on: August 17, 2005, 03:16:09 pm »
I think we found a maintainer for the SL6000 section of the new and upcomming pdaXrom site :-)
C760 running pdaXrom lastest ;-)
SL5500 Running Cacko Qtopia
512 MB SD Card, 128 MB CF Card, Prism2 CF Wlan.

Always visit http://www.pdaXrom.org for latest news.

adf

  • Hero Member
  • *****
  • Posts: 2807
    • View Profile
    • http://
Tutorial: Pdaxrom On Sl-6000
« Reply #2 on: August 17, 2005, 04:00:47 pm »
very nice.

this bit "tar --no-same-owner -xf /root/.home_default.tar" was something i didn't know about. My experience had been that installing from sharprom to pdax left insufficient space for some of the stuff that is supposed to go into home, or home/root (or so it seemed to me) I went to the guylhem rom for partitioning because of this.  Using Guylhem's partitioning the tar stuff wasn't needed (unless i've got some kind of reproduceable mutation? unnoticed horrible error?) afaik. -- in case that is useful info.

as far as pdax 6k how to stuff.....  

maybe an external keyboard/mouse section?  The mouse issue is solved on another thread (and should be incorporated), but I, at least, am having a hell of a time getting external keyboards going. usb is partially there..and ir seems beyond me.

Also, maybe a section on useable bluetooth usb dongles (since the 6000l is the prevalent type, and few of them are likley to be modded for internal BT)?
**3100 Zubuntu Jaunty,(working on Cacko dualboot), 16G A-Data internal CF, 4G SD, Ambicom WL-1100C Cf, linksys usb ethernet,  BelkinF8T020 BT card, Belkin F8U1500-E Ir kbd, mini targus usb mouse, rechargeble AC/DC powered USB hub, psp cables and battery extenders.

**6000l  Tetsuized Sharprom, installed on internal flash only 1G sd, 2G cf

jcabrer

  • Full Member
  • ***
  • Posts: 161
    • View Profile
Tutorial: Pdaxrom On Sl-6000
« Reply #3 on: August 17, 2005, 04:17:43 pm »
I'll take requests if you would like to have things answered here.
Sharp SL-C3100 - pdaXrom Beta 3
Sharp SL-6000L - pdaXrom Beta 1

adf

  • Hero Member
  • *****
  • Posts: 2807
    • View Profile
    • http://
Tutorial: Pdaxrom On Sl-6000
« Reply #4 on: August 17, 2005, 04:25:52 pm »
er.... any luck with ir keyboards, usb keymaps and usb BT dongles?


 
**3100 Zubuntu Jaunty,(working on Cacko dualboot), 16G A-Data internal CF, 4G SD, Ambicom WL-1100C Cf, linksys usb ethernet,  BelkinF8T020 BT card, Belkin F8U1500-E Ir kbd, mini targus usb mouse, rechargeble AC/DC powered USB hub, psp cables and battery extenders.

**6000l  Tetsuized Sharprom, installed on internal flash only 1G sd, 2G cf

antoniovf

  • Newbie
  • *
  • Posts: 38
    • View Profile
Tutorial: Pdaxrom On Sl-6000
« Reply #5 on: August 19, 2005, 08:17:11 am »
Please can you explain where We have to write the IP? You say that It's needed the IP but you d'ont write the IP in any place...

rip

  • Jr. Member
  • **
  • Posts: 80
    • View Profile
Tutorial: Pdaxrom On Sl-6000
« Reply #6 on: August 19, 2005, 12:18:47 pm »
whaouuuu, great stuf coming for our lovely 6000L
thnks guys for that.

first quick read seems to be very difficult but i'll make it a try later on.
zaurus 6000L

eji

  • Full Member
  • ***
  • Posts: 233
    • View Profile
    • http://charlatan.blogspot.com/
Tutorial: Pdaxrom On Sl-6000
« Reply #7 on: August 19, 2005, 12:30:01 pm »
Is it really possible to skip the repartition? I don't care about the loss of internal storage, as I already run most of my applications from the SD card. Or isn't this possible in pdaXrom?
Zaurus SL-6000L w/ Sharp ROM v1.12 - 1GB SanDisk CF - 1GB Lexar SD - Socket Rev. E BT CF | Mac OS X 10.5.x - iMac 24" 2.8Ghz | SIP: 864753@voip.brujula.net - 1 747 603 3461 (Gizmo/SIPhone)

miskinis

  • Sr. Member
  • ****
  • Posts: 348
    • View Profile
    • http://
Tutorial: Pdaxrom On Sl-6000
« Reply #8 on: August 19, 2005, 07:15:50 pm »
Procedure worked for me, and my new (used) SL-6000.

I got confused for a minute though, as it seems that step 3 and 5 are the same...

Anyway, everything is working fine, thanks for posting these simple steps.

John

[UPDATE]  - OK, if / has 0 bytes free, how can /var/log/messages be appended to? ???
« Last Edit: August 19, 2005, 07:20:51 pm by miskinis »
_John Miskinis_

adf

  • Hero Member
  • *****
  • Posts: 2807
    • View Profile
    • http://
Tutorial: Pdaxrom On Sl-6000
« Reply #9 on: August 19, 2005, 08:22:39 pm »
/ should't be that low. move stuff to sd. OR reflash, reinstall the sdcard fix do ipkg-link mount /mnt/card  then look in your pacage manager and reinstall anything missing, but this time to sd
**3100 Zubuntu Jaunty,(working on Cacko dualboot), 16G A-Data internal CF, 4G SD, Ambicom WL-1100C Cf, linksys usb ethernet,  BelkinF8T020 BT card, Belkin F8U1500-E Ir kbd, mini targus usb mouse, rechargeble AC/DC powered USB hub, psp cables and battery extenders.

**6000l  Tetsuized Sharprom, installed on internal flash only 1G sd, 2G cf

miskinis

  • Sr. Member
  • ****
  • Posts: 348
    • View Profile
    • http://
Tutorial: Pdaxrom On Sl-6000
« Reply #10 on: August 19, 2005, 10:01:21 pm »
I forgot to mention, (Sorry), that I did not install the guyhelm ROM
first to "repartition".  I simply took what I believe is a virgin 6000
[ term was not even installed  , and followed the other parts of
the procedure.  

I'm not sure if this matters in regard to this issue, but I figured I'd
mention it.  Offhand, since I did not install any packages after the
install, what will a reflash buy me?  I did not keep a record of what
"df" showed immediately after the ROM install.

Oh darn, I just got back from an errand, and I resumed, and can't
change X focus, although the X cursor moves.  Hmm, I remember
seeing a "more detailed" resume fix mentioned in the intro to that tutorial,
but never saw the instructions, I'll have to look right now!

Oh yeh, what SD card fix?  I just scanned this thread but don't see it.

John
« Last Edit: August 19, 2005, 10:04:39 pm by miskinis »
_John Miskinis_

adf

  • Hero Member
  • *****
  • Posts: 2807
    • View Profile
    • http://
Tutorial: Pdaxrom On Sl-6000
« Reply #11 on: August 19, 2005, 10:13:01 pm »
the sd card fix is in the feed... just lok for sd after you update.
I use the G-Rom method and have 27 megs free after a fresh install.  I guess a reflash might not help you much.
**3100 Zubuntu Jaunty,(working on Cacko dualboot), 16G A-Data internal CF, 4G SD, Ambicom WL-1100C Cf, linksys usb ethernet,  BelkinF8T020 BT card, Belkin F8U1500-E Ir kbd, mini targus usb mouse, rechargeble AC/DC powered USB hub, psp cables and battery extenders.

**6000l  Tetsuized Sharprom, installed on internal flash only 1G sd, 2G cf

eji

  • Full Member
  • ***
  • Posts: 233
    • View Profile
    • http://charlatan.blogspot.com/
Tutorial: Pdaxrom On Sl-6000
« Reply #12 on: August 20, 2005, 05:52:36 am »
@ miskinis: So you skipped the repartition and it didn't work properly?

@ everyone: If I flashed to guylhem a few weeks ago and then flashed back to the v1.12 Sharp ROM, does that count as having repartitioned the internal flash?

I'm really, really keen to install pdaXrom but I'd like it to work more or less right off the bat without all the preliminary fixes. Knowing that the SD card drivers have to be corrected makes me particularly apprehensive, because I want to put as little as possible on the internal flash. Can't Laze stick these few lines of code into the 6000 RC10 (or maybe RC11, when it's out) flash files?

I'd also like to know about Mac compatibility if one of you intrepid souls has any info to share. Right now I can access the Z in the cradle through a Samba mount or via FTP. Are there similar -- better, even -- options with pdaXrom?
Zaurus SL-6000L w/ Sharp ROM v1.12 - 1GB SanDisk CF - 1GB Lexar SD - Socket Rev. E BT CF | Mac OS X 10.5.x - iMac 24" 2.8Ghz | SIP: 864753@voip.brujula.net - 1 747 603 3461 (Gizmo/SIPhone)

miskinis

  • Sr. Member
  • ****
  • Posts: 348
    • View Profile
    • http://
Tutorial: Pdaxrom On Sl-6000
« Reply #13 on: August 20, 2005, 11:18:00 am »
Quote
@ miskinis: So you skipped the repartition and it didn't work properly?

Hi,  Yes, I skipped the repartitioning.  I was up and running pdaXrom, and
almost everything seemed to work, but of course / had 0 bytes free, so I
doubt the system would be OK for very long.

Last night, I spent quite a bit of time finding the instructions to revert back
to the stock ROM.  I was a little nervous in the diagnostic menu, but had
to use it's update function to get back to a known good point.

JOhn
_John Miskinis_

adf

  • Hero Member
  • *****
  • Posts: 2807
    • View Profile
    • http://
Tutorial: Pdaxrom On Sl-6000
« Reply #14 on: August 20, 2005, 12:37:59 pm »
eji;
if you used guylhem rom you repartitioned.
The sd card stuff is no biggie. just install the sdcard package before you start putting stuff on sd
 If you do restore original sharprom, then flash to guylhem rom then flash to pdax, then install the sdcard fix, it should all work just fine.
**3100 Zubuntu Jaunty,(working on Cacko dualboot), 16G A-Data internal CF, 4G SD, Ambicom WL-1100C Cf, linksys usb ethernet,  BelkinF8T020 BT card, Belkin F8U1500-E Ir kbd, mini targus usb mouse, rechargeble AC/DC powered USB hub, psp cables and battery extenders.

**6000l  Tetsuized Sharprom, installed on internal flash only 1G sd, 2G cf