Author Topic: SL 5500 TCK ROM 2.0 Aplha 3 with Home on SD script  (Read 26393 times)

revdjenk

  • Newbie
  • *
  • Posts: 48
    • View Profile
    • http://
SL 5500 TCK ROM 2.0 Aplha 3 with Home on SD script
« Reply #30 on: March 22, 2004, 07:35:50 pm »
Bad news on my end.  My Simpletech SD does not like to be ext2 and treated as home. I get similar findings as n8a gets with his SanDisk. Oh well... just so you know, Derek, it all looks good and runs fine until you suspend!
I\'ll have to break down and get a Lexar! I want to run KO-PI!
God Bless
Doug

These are the words of him who has the Sharp...
Revelation 2:12

derekp

  • Full Member
  • ***
  • Posts: 154
    • View Profile
SL 5500 TCK ROM 2.0 Aplha 3 with Home on SD script
« Reply #31 on: March 22, 2004, 07:42:40 pm »
Revdjenk, there\'s another thread around here on SD card speed, where they were talking about an alternate SD driver.  It\'s available under the downloads section, it seems to solve a bunch of problems.  Try it and let me know if it solves your problems.

towster

  • Newbie
  • *
  • Posts: 1
    • View Profile
    • http://
SL 5500 TCK ROM 2.0 Aplha 3 with Home on SD script
« Reply #32 on: March 23, 2004, 09:58:08 pm »
eww.. thanks for the heads up.. was just getting ready to try this kernel myself..

Quote
Well, as much fun as it\'s been to use the asyncio kernel, I just encountered a dealbreaker... at least for the present.  It seems that the asyncio kernel has affected the serial_cs.o, to the effect that I get the following messages when installing bluetooth (as usual on tkcROM):

<code snip>

Any ideas here, Derek?  I\'d like to get this working, but replacing the existing driver with another copy of serial_cs.o that I have (then doing a depmod -a and modprobe) did not seem to work, so I\'m off to the original tkcROM zImage for now...

g1gsw

  • Newbie
  • *
  • Posts: 12
    • View Profile
    • http://www.g1gsw.org/
SL 5500 TCK ROM 2.0 Aplha 3 with Home on SD script
« Reply #33 on: March 24, 2004, 04:05:07 pm »
I am using a sandisk sd card and the tkrom a3 with the prep-home script and it has been work great for about a week now no problems at all and witht he sd mounted via loopback I cannot really tell any difference from using main memory for /home.  Thanks for a great script.

Colin
Cheshire UK
OZ 3.5.3
Integral 256MB CF Card
Sandisk 128MB SD Card
Pretec 802.11b CF Wireless LAN Card
Gentoo, Debian and Redhat Linux

n8a

  • Full Member
  • ***
  • Posts: 235
    • View Profile
    • http://
SL 5500 TCK ROM 2.0 Aplha 3 with Home on SD script
« Reply #34 on: March 31, 2004, 03:21:17 pm »
Quote
It looks like the serial driver is compiled into the tkc kernel. When I compiled the async io kernel, I left most of the config options set to default, which ends up putting the serial driver as a module. 
I\'ve attached the serail.o module, try insmoding this one before loading up your serial_cs.o modules and let me know if it works. 

derek,

I have the file and finally have my 5500 back in the configuration to try this out, but I\'m not sure of how to insmod the serial.o file.  I have copied the file to the following directory:
Code: [Select]
# pwd

/home/root/modules/2.4.18-rmk7-pxa3-embedix/pcmcia

# ls

memory_cs.o    prism2_cs.o    serial_cs.o    spectrum_cs.o

orinoco_cs.o   serial.o       sharpzdc_cs.o

#


I then did # insmod serial.o, which just returned me to the prompt.  What can I do to get this to work as you explained above?  Thanks in advance for the baby steps

agosine

  • Full Member
  • ***
  • Posts: 123
    • View Profile
SL 5500 TCK ROM 2.0 Aplha 3 with Home on SD script
« Reply #35 on: March 31, 2004, 03:35:39 pm »
n8a - It took me a while, but I figured it out.  This is what I did:

insmod serial.o
insmod serial_cs.o

Installing serial.o first loads the symbols required to load serial_cs.o.  You can do a lsmod to see what modules are installed.  If everything works after this let me know.  I figured out how to edit the modules file so that this loads automatically.
SL5500 running nothing.  Will not hold a charge.  =(
C1000 running Sharp ROM

jscriv

  • Newbie
  • *
  • Posts: 23
    • View Profile
    • http://
SL 5500 TCK ROM 2.0 Aplha 3 with Home on SD script
« Reply #36 on: March 31, 2004, 07:36:23 pm »
Not sure if others have the same experience, but the my Netgear MA701 wasn\'t recognised by the async kernel. (cardinfo would return a result, but there was no kernel output to dmesg on card insert).

Swapped in the \'standard\' kernel that ships with TKC ROM and the card works fine.

n8a

  • Full Member
  • ***
  • Posts: 235
    • View Profile
    • http://
SL 5500 TCK ROM 2.0 Aplha 3 with Home on SD script
« Reply #37 on: March 31, 2004, 09:24:41 pm »
Thanks a ton, agosine.  However, this is what I\'m getting:

Code: [Select]
# ls

memory_cs.o    prism2_cs.o    serial_cs.o    spectrum_cs.o

orinoco_cs.o   serial.o       sharpzdc_cs.o

# insmod serial.o

# insmod serial_cs.o

# /etc/rc.d/init.d/bluetooth restart

Shutting down Bluetooth... Can\'t open RFCOMM control socket: Address family not supported by protocol

Done.

Starting Bluetooth... modprobe: line 1: Invalid dependency

        1à Bà0 â Áåõÿë

modprobe: line 1: Invalid dependency

        1à Bà0 â Áåõÿë

Can\'t set line discipline: Invalid argument

Can\'t initialize device: Invalid argument

Can\'t open RFCOMM control socket: Address family not supported by protocol

Done.

# /etc/rc.d/init.d/pcmcia restart

# /etc/rc.d/init.d/bluetooth restart

Shutting down Bluetooth... Can\'t open RFCOMM control socket: Address family not supported by protocol

Done.

Starting Bluetooth... modprobe: line 1: Invalid dependency

        1à Bà0 â Áåõÿë

modprobe: line 1: Invalid dependency

        1à Bà0 â Áåõÿë

Can\'t get port settings: Input/output error

Can\'t initialize device: Input/output error

Can\'t open RFCOMM control socket: Address family not supported by protocol

Done.

# lsmod

Module                  Size  Used by

serial_cs               4640   0  (unused)

serial                 25504   0  [serial_cs]

sa1100_bi              23088   0  (unused)

net_fd                 16688   1

usbdcore               22592   0  [sa1100_bi net_fd]

usbdmonitor             5488   0

devinfo                 2912   0  (unused)

sharp_mmcsd_m          27408   2

# modprobe serial

modprobe: line 1: Invalid dependency

        1à Bà0 â Áåõÿë

# modprobe serial_cs

modprobe: line 1: Invalid dependency

        1à Bà0 â Áåõÿë

#


Obviously, I don\'t really know what I\'m doing with these modules... Time for me to try to research this more.  As always, I welcome any tips!

n8a

  • Full Member
  • ***
  • Posts: 235
    • View Profile
    • http://
SL 5500 TCK ROM 2.0 Aplha 3 with Home on SD script
« Reply #38 on: March 31, 2004, 10:10:37 pm »
OK, so I just remembered to do a \"depmod -a\", and thus I no longer have the crazy modprobe results:

Code: [Select]
# depmod -a

# modprobe serial_cs

# modprobe serial

# /etc/rc.d/init.d/bluetooth restart

Shutting down Bluetooth... Can\'t open RFCOMM control socket: Address family not supported by protocol

Done.

Starting Bluetooth... Can\'t get port settings: Input/output error

Can\'t initialize device: Input/output error

Done.

# hciconfig

#


Still ain\'t working...

agosine

  • Full Member
  • ***
  • Posts: 123
    • View Profile
SL 5500 TCK ROM 2.0 Aplha 3 with Home on SD script
« Reply #39 on: April 01, 2004, 10:50:11 am »
n8a - Glad I could help a little.  If I come across anything more I\'ll let you know.
SL5500 running nothing.  Will not hold a charge.  =(
C1000 running Sharp ROM

derekp

  • Full Member
  • ***
  • Posts: 154
    • View Profile
SL 5500 TCK ROM 2.0 Aplha 3 with Home on SD script
« Reply #40 on: April 01, 2004, 12:34:14 pm »
n8a,
Here\'s a new copy of the async kernel.
What I did this time dump /proc/ksyms from both the standard tkcrom kernel, and the async kernel, then started tweeking the async kernel until the kernel symbols match between the two.  What this has is CONFIG_SERIAL and CONFIG_SERIAL_COLLIE turned on, and CONFIG_SERIAL_8250 turned off.  Also, the Aironet driver is turned on.  At this point, the only apparent difference is the tkcrom kernel has two ksyms related to the Raylink driver, which I couldn\'t find the kernel option to turn on.  I don\'t think that one is important.

Let me know if you have better luck with this kernel.

n8a

  • Full Member
  • ***
  • Posts: 235
    • View Profile
    • http://
SL 5500 TCK ROM 2.0 Aplha 3 with Home on SD script
« Reply #41 on: April 02, 2004, 01:37:58 pm »
That did it, Derek!  Very, very nice.  

Well, I must say that I\'m finally very happy with the state of my 5500.  Thanks MUCHO.  I certainly want to do some dual-booting, but man, that zImage asyncio kernel makes a HUGE speed difference compared to running home-on-sd with the -f option and the normal tkcROM zImage.

The one MAJOR remaining issue is that I have rebooted the 5500 three times, with the following results:

First time, after installing a ton of apps, the system booted to this:
I had a shell and it complained that the file system was corrupt. It then gave me these options: Enter password to repair or press Control-D. Then:
1) reboot... after which it dies and can\'t be started unless I flash it again
2) I get a prompt that comes up like the following
(Repair FS) #

I ended up having to pop the battery out to get it to respond… I then see the “Generating SSH Keys…” Nice!

Second time, error messages for about 8 minutes before the startup message began…

Third time, same as the first time (again, I had installed a bunch of apps).

The good thing is that since *everything* seems to be on the SD card, once it loads up, everything is intact, including data that I’ve stored.  If there is a way to remedy this unfortunate process, then this will become my hands-down favorite configuration for the 5500…

derekp

  • Full Member
  • ***
  • Posts: 154
    • View Profile
SL 5500 TCK ROM 2.0 Aplha 3 with Home on SD script
« Reply #42 on: April 02, 2004, 02:20:44 pm »
Well, I\'m glad that the new kernel is working for you.  The filesystem errors you get on reboots worries me though.  The only time I\'ve come accross that is with the modified prep-home-sd.sh that is included on the tkc-2.0alpha3 rom.  That version creates the /mnt/card/rc.card script with a mkswap command at the end that turns the ramdisk into a swapfile.  This of course causes the ramdisk to become corrupted after heavy application usage (including installing a bunch of packages), which will cause fsck to dump out a bunch of errors.
I know that you\'ve grabbed the newer prep-home-sd.sh script (test5) which doesn\'t have this issue, but just in case, double-check your rc.card file (on the root of the sd card), and if it contains a line \"mkswap /dev/iramdisk\" at the end of it, coment it out (along with the following swapon command).
If it isn\'t the mkswap issue, then I\'m out of ideas, as I haven\'t run accross this issue otherwise.  I\'ll be at the user-group meeting on Sunday, so I can take a look then.
--derek

n8a

  • Full Member
  • ***
  • Posts: 235
    • View Profile
    • http://
SL 5500 TCK ROM 2.0 Aplha 3 with Home on SD script
« Reply #43 on: April 02, 2004, 04:10:27 pm »
hmmm... this is what I found in /home/rc.card:

Code: [Select]
cd /

umount /home

fsck -y /dev/mmcda1



# Rename the devices.  This is so the SD shows up

# as "Internal Storage" in Qtopia

mv /dev/mtdblock1 /dev/iramdisk

mv /dev/mmcda1 /dev/mmcsd1

ln -s /dev/mmcsd1 /dev/mtdblock1

mount -oasync,noatime /dev/mtdblock1 /home

mkswap /dev/iramdisk

swapon /dev/iramdisk


I just checked the version of your script that I downloaded, and it definitely ends in test5.zip.  In addition, I tried to replace the script on my CF card with the script from that zip file and both files were identical down to the modified date.  

So, I just comment out the last two lines and it should work fine, right?  I\'ll give it a go.  Out of curiosity, why did you turn the whole ramdisk into a swapfile, then specify a 20 MB swapfile when running the script?  Or is the swapfile specification at install a new feature of the test5 version?  At any rate, thanks again and I\'ll let you know if this solves it --
Nate

derekp

  • Full Member
  • ***
  • Posts: 154
    • View Profile
SL 5500 TCK ROM 2.0 Aplha 3 with Home on SD script
« Reply #44 on: April 02, 2004, 04:37:18 pm »
Let me back up a couple notches here :-)
I had originally put together the prep-home-sd script (and modified rc.sysinit script) without any swap file, then sent it into Proto to include in the tkcrom.   Then we started going over ideas to improve it a bit.  Proto thought it would be a good idea to then turn the ramdisk into a swap partition, since it was no longer being used for /home, so he added the mkswap & swapon to the end of the script and included that version in the tkcrom 2.0 alpha-3 release.  However, since a fsck is run by rc.sysinit before the rc.card script is called, this would cause the fsck errors that you see.
Meanwhile, I had fallen off the face of the plannet (read: got bogged down with work).  Later, I sat down a my orignial script (without the mkswap) and overhauled it (added a swap file (not a swap partition), moved some stuff around, etc).  I\'ve been waiting to here back from Proto, but I take it that it\'s his turn to get over-loaded with non-Zaurus activities :-).
The version of the rc.card script you posted above, is not generated by the new script but is the one generated by the (old) prep-home-sd.sh script included in the tkcrom.   So, one of two possibilities: 1) you probably ran the old version of the script (the one on the tkcrom) by mistake, or 2) you ran the old version originally, and for some reason the new version didn\'t overwrite the rc.card that was put on the sd previously.  To make sure that you are running the right version, specify the whole path of where you put it.  Also, the new version has better help (the help text should pop up if you don\'t specify any parameters).  Or, a third posibility is that I upload the wrong script.  Nah, that couldn\'t happen :-)
Good luck,
--derek