Author Topic: How To Not Use Internal Flash?  (Read 4679 times)

Arx

  • Newbie
  • *
  • Posts: 2
    • View Profile
How To Not Use Internal Flash?
« on: July 08, 2006, 08:02:47 pm »
Does anyone know if there is a way to set pdaXrom up to run completely from the sd card, ignoring the internal flash entirely? (except the bootloader I guess)

It doesn't sound like it should be all that difficult, though I'm not a linux guru, so I could be wrong.

I don't need to ever swap cards, so it seems to me that it would make sense to be set up on one big partition on a card which is replaceable if it ever wears out, rather than running the main filesystem off of a tiny little 128mb flash which can't easily be replaced.

I've got an SL-C1000 btw.

-Nick

Bundabrg

  • Full Member
  • ***
  • Posts: 183
    • View Profile
How To Not Use Internal Flash?
« Reply #1 on: July 08, 2006, 11:48:12 pm »
Theres no reason why you can't, but it would be painfully slow. The internal flash is supposed to be pretty good at balancing writes etc...

 - Bundabrg
[img]http://www.worldguard.com.au/brendan-ambi.png\" border=\"0\" class=\"linked-sig-image\" /]

Meanie

  • Hero Member
  • *****
  • Posts: 2803
    • View Profile
    • http://www.users.on.net/~hluc/myZaurus/
How To Not Use Internal Flash?
« Reply #2 on: July 08, 2006, 11:53:33 pm »
Quote
Does anyone know if there is a way to set pdaXrom up to run completely from the sd card, ignoring the internal flash entirely? (except the bootloader I guess)

It doesn't sound like it should be all that difficult, though I'm not a linux guru, so I could be wrong.

I don't need to ever swap cards, so it seems to me that it would make sense to be set up on one big partition on a card which is replaceable if it ever wears out, rather than running the main filesystem off of a tiny little 128mb flash which can't easily be replaced.

I've got an SL-C1000 btw.

-Nick
[div align=\"right\"][a href=\"index.php?act=findpost&pid=134376\"][{POST_SNAPBACK}][/a][/div]

it could, but you would need to be more technically capable to do it which from the sounds of it you aren't. so unless you brush up on your knowledge it would be very difficult
besides, of all the media for the Zaurus, SD is the slowest and hence the worst option to running apps off.
and yes, 128mb is tiny. that's why there are c3x00 models
« Last Edit: July 08, 2006, 11:56:54 pm by Meanie »
SL-C3000 - pdaXii13 build5.4.9 (based on pdaXrom beta3) / SL-C3100 - Sharp ROM 1.02 JP (heavily customised)
Netgear MA701 CF, SanDisk ConnectPlus CF, Socket Bluetooth CF, 4GB Kingston CF,  4GB pqi SD, 4GB ChoiceOnly SD, 2GB SanDisk SD USB Plus, 1GB SanDisk USB Plus, 1GB Transcend SD, 2GB SanDisk MicroSD with SD adaptor, Piel Frama Leather Case, GoldX 5-in-1 USB cable, USB hub, USB mouse, USB keyboard, USB ethernet, USB HDD, many other USB accessories...
(Zaurus SL-C3000 owner since March 14. 2005, Zaurus SL-C3100 owner since September 21. 2005)
http://members.iinet.net.au/~wyso/myZaurus - zBook3K

Arx

  • Newbie
  • *
  • Posts: 2
    • View Profile
How To Not Use Internal Flash?
« Reply #3 on: July 09, 2006, 01:09:39 am »
Quote
it could, but you would need to be more technically capable to do it which from the sounds of it you aren't. so unless you brush up on your knowledge it would be very difficult
besides, of all the media for the Zaurus, SD is the slowest and hence the worst option to running apps off.
and yes, 128mb is tiny. that's why there are c3x00 models
[div align=\"right\"][a href=\"index.php?act=findpost&pid=134396\"][{POST_SNAPBACK}][/a][/div]

Looks like slightly less than 2/3 the speed based on a 40mb dd from the device to /dev/null   I think I'm alright with that.  Currently I install almost everything to it anyways, so it's just as slow, and I end up with a buttload of symlinks all over the place.

As far as technical capability goes, I think I could probably handle it just fine with a couple hints.  I guess really I'd just need to know how to set the location of the root filesystem during boot.  Previously I hacked around with some bind mounts in the fstab, but it was pretty cludgy.

I tried messing with the init scripts, trying to mount the sd card, followed by a chroot, but it didn't work.  I'm guessing the SD driver isn't built directly into the kernel, and may not be loaded yet at that point.

Am I barking up the wrong tree?

Meanie

  • Hero Member
  • *****
  • Posts: 2803
    • View Profile
    • http://www.users.on.net/~hluc/myZaurus/
How To Not Use Internal Flash?
« Reply #4 on: July 09, 2006, 03:19:01 am »
Quote
Quote
it could, but you would need to be more technically capable to do it which from the sounds of it you aren't. so unless you brush up on your knowledge it would be very difficult
besides, of all the media for the Zaurus, SD is the slowest and hence the worst option to running apps off.
and yes, 128mb is tiny. that's why there are c3x00 models
[div align=\"right\"][a href=\"index.php?act=findpost&pid=134396\"][{POST_SNAPBACK}][/a][/div]

Looks like slightly less than 2/3 the speed based on a 40mb dd from the device to /dev/null   I think I'm alright with that.  Currently I install almost everything to it anyways, so it's just as slow, and I end up with a buttload of symlinks all over the place.

As far as technical capability goes, I think I could probably handle it just fine with a couple hints.  I guess really I'd just need to know how to set the location of the root filesystem during boot.  Previously I hacked around with some bind mounts in the fstab, but it was pretty cludgy.

I tried messing with the init scripts, trying to mount the sd card, followed by a chroot, but it didn't work.  I'm guessing the SD driver isn't built directly into the kernel, and may not be loaded yet at that point.

Am I barking up the wrong tree?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=134398\"][{POST_SNAPBACK}][/a][/div]

have a look at the pivot boot thing. however, even though it might work, it might also lock up your system when you suspend.
SL-C3000 - pdaXii13 build5.4.9 (based on pdaXrom beta3) / SL-C3100 - Sharp ROM 1.02 JP (heavily customised)
Netgear MA701 CF, SanDisk ConnectPlus CF, Socket Bluetooth CF, 4GB Kingston CF,  4GB pqi SD, 4GB ChoiceOnly SD, 2GB SanDisk SD USB Plus, 1GB SanDisk USB Plus, 1GB Transcend SD, 2GB SanDisk MicroSD with SD adaptor, Piel Frama Leather Case, GoldX 5-in-1 USB cable, USB hub, USB mouse, USB keyboard, USB ethernet, USB HDD, many other USB accessories...
(Zaurus SL-C3000 owner since March 14. 2005, Zaurus SL-C3100 owner since September 21. 2005)
http://members.iinet.net.au/~wyso/myZaurus - zBook3K

louigi600

  • Sr. Member
  • ****
  • Posts: 471
    • View Profile
How To Not Use Internal Flash?
« Reply #5 on: July 09, 2006, 06:21:01 am »
The pdaxrom for 5500 does this and it is desparately slow but suspend works.
You could get some ideas from there.
The slowness, as far as I understand, is dew to the way the SD is used. Dew to driver problems it's used in sync mode. But if you use kernel 2.6 you might be able to do better. Try fiddling with beta4 (u-boot should be able to boot directly from SD but you might need to rebuild it).
Good Luck.
David
Regards
David

SL-c760*  pdaXrom latest
SL-c860    pdaXrom latest ;-)
SL-c1000  pdaXrom Latest
Acer Aspire One running slackware and Clash
Toshiba AC100 running ARMedslack and Clash

*with some hardware problems but good for testing

lpotter

  • Sr. Member
  • ****
  • Posts: 450
    • View Profile
    • http://qtopia.net
How To Not Use Internal Flash?
« Reply #6 on: July 09, 2006, 08:20:59 pm »
heh... Actually, 128 MB is huge for an 'embedded' device/handheld. The Zaurus 5000d only has 16 mb.
Software Engineer, Systems Group, MES, Trolltech
irc.freenode.net #qtopia
http://qtopia.net

louigi600

  • Sr. Member
  • ****
  • Posts: 471
    • View Profile
How To Not Use Internal Flash?
« Reply #7 on: August 11, 2006, 05:49:22 am »
Using the newest u-boot you can just have bootloader and kernel on internal flash .... the rest can be on SD.

You could also reconfig u-boot to load root from SD as default instead of having to press "1" while booting.

Currently I'm booting my modified beta4 version root from  SD.

Regards
David
Regards
David

SL-c760*  pdaXrom latest
SL-c860    pdaXrom latest ;-)
SL-c1000  pdaXrom Latest
Acer Aspire One running slackware and Clash
Toshiba AC100 running ARMedslack and Clash

*with some hardware problems but good for testing

zedkatuf2

  • Full Member
  • ***
  • Posts: 153
    • View Profile
    • http://www.projectgalileo.org.uk
How To Not Use Internal Flash?
« Reply #8 on: August 12, 2006, 03:12:29 am »
Quote
Using the newest u-boot you can just have bootloader and kernel on internal flash .... the rest can be on SD.

You could also reconfig u-boot to load root from SD as default instead of having to press "1" while booting.

Currently I'm booting my modified beta4 version root from  SD.

Regards
David
[div align=\"right\"][a href=\"index.php?act=findpost&pid=138233\"][{POST_SNAPBACK}][/a][/div]

Aaah - does that mean the rest could boot from the microdrive (3200 model) also?

The two things that are delaying me trying out pdaxrom atm are >1gbyte sd support & using the MD...& usability/stability(??not sure if I'm right in questioning those) of the beta4 cut of 1.1 I guess.

zedkatuf
Zaurus SLC3200 (Terrier) [SOLD]
Hardware extras: 2Gb Viking SD card 4Gb Transcode MMC card 2Gb Kingston 50x CF card Symbol Socket Spectrum & Ambicom 1100C  WLAN cards Shirtpocket Bluetooth CF  & Sitecom USB cards Running Pdaxii13 using Meanie's Atika ROM & full-hd apps.

louigi600

  • Sr. Member
  • ****
  • Posts: 471
    • View Profile
How To Not Use Internal Flash?
« Reply #9 on: August 12, 2006, 09:18:02 am »
Yes ... but you might need a special kernel.
Look here for details.
Regards
David

SL-c760*  pdaXrom latest
SL-c860    pdaXrom latest ;-)
SL-c1000  pdaXrom Latest
Acer Aspire One running slackware and Clash
Toshiba AC100 running ARMedslack and Clash

*with some hardware problems but good for testing

zedkatuf2

  • Full Member
  • ***
  • Posts: 153
    • View Profile
    • http://www.projectgalileo.org.uk
How To Not Use Internal Flash?
« Reply #10 on: August 12, 2006, 09:25:32 am »
Quote
Yes ... but you might need a special kernel.
Look here for details.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=138373\"][{POST_SNAPBACK}][/a][/div]


...but that looks like it's for C7XX hardware, not SL3XXX
(I've got the 3200)
Zaurus SLC3200 (Terrier) [SOLD]
Hardware extras: 2Gb Viking SD card 4Gb Transcode MMC card 2Gb Kingston 50x CF card Symbol Socket Spectrum & Ambicom 1100C  WLAN cards Shirtpocket Bluetooth CF  & Sitecom USB cards Running Pdaxii13 using Meanie's Atika ROM & full-hd apps.

louigi600

  • Sr. Member
  • ****
  • Posts: 471
    • View Profile
How To Not Use Internal Flash?
« Reply #11 on: August 12, 2006, 10:11:29 am »
True but u-boot has been ported to the 3200 too .. so chances are that if you compile it fror your hatdware it will work. Actually I'm pretty sure because I looked at the patches and there is the same key setup for akita aswell as corgi.

If I were you I'd download u-boot sources and patches
http://mail.pdaxrom.org/download/1.1.0beta...t-1.1.4.tar.bz2
http://mail.pdaxrom.org/download/u-boot/u-...8-1106.diff.bz2
ad build it for akita using cross sdk.

Goot Luck
Regards
David

SL-c760*  pdaXrom latest
SL-c860    pdaXrom latest ;-)
SL-c1000  pdaXrom Latest
Acer Aspire One running slackware and Clash
Toshiba AC100 running ARMedslack and Clash

*with some hardware problems but good for testing

silencer51

  • Full Member
  • ***
  • Posts: 172
    • View Profile
    • http://tchalikias.blogspot.com
How To Not Use Internal Flash?
« Reply #12 on: August 12, 2006, 11:41:52 am »
I think 128 (121 in reality) MB is fine for pdaXrom.

What I do on my C3100, is install all essential ipks (wm, browsers etc.) into flash until there's about 10mb free.

After that I make a NAND backup.

Then I install secondary stuff to /dev/hda2 which I've formatted to ext3. ;-)

Everything works nicely...
Zaurus SL-5500 with:
128MB CF Card                                    
128MB SD Card
Symbol WiFi CF Card (working, sorta... overheats and shuts down!)
OZ 3.5.4 & GPE

Zaurus SL-C3100 with:
pdaXrom 1.1.0beta3 & XFCE4, /dev/hda1 256MB swap, /dev/hda2 512MB ext3, /dev/hda3 3328MB FAT32 for stuff
D-Link DCF-660 WiFi CF Card
1GB SD Card
128MB SD Card
128MB CF Card (for flashing)
USB Host Cable

& a Sony VAIO PCG-C1XD Picturebook with accessories...

[img]http://img58.imageshack.us/img58/7319/usbar21mw.gif\" border=\"0\" class=\"linked-sig-image\" /]

zedkatuf2

  • Full Member
  • ***
  • Posts: 153
    • View Profile
    • http://www.projectgalileo.org.uk
How To Not Use Internal Flash?
« Reply #13 on: August 12, 2006, 03:05:02 pm »
Quote
I think 128 (121 in reality) MB is fine for pdaXrom.

What I do on my C3100, is install all essential ipks (wm, browsers etc.) into flash until there's about 10mb free.

After that I make a NAND backup.

Then I install secondary stuff to /dev/hda2 which I've formatted to ext3. ;-)

Everything works nicely...
[div align=\"right\"][a href=\"index.php?act=findpost&pid=138385\"][{POST_SNAPBACK}][/a][/div]

How is the stability/useability of beta4?

I need a system with stable (deep breath!): abiword, gnumeric, arecord, kdepim, wifi, working bluetooth, usb host, usb mass storage, apache, mysql,  php & python & 2gbyte SD support



zedkatuf
Zaurus SLC3200 (Terrier) [SOLD]
Hardware extras: 2Gb Viking SD card 4Gb Transcode MMC card 2Gb Kingston 50x CF card Symbol Socket Spectrum & Ambicom 1100C  WLAN cards Shirtpocket Bluetooth CF  & Sitecom USB cards Running Pdaxii13 using Meanie's Atika ROM & full-hd apps.

silencer51

  • Full Member
  • ***
  • Posts: 172
    • View Profile
    • http://tchalikias.blogspot.com
How To Not Use Internal Flash?
« Reply #14 on: August 12, 2006, 04:16:08 pm »
Beta4 is highly unstable and many things are broken. Use beta3, it's great!
Zaurus SL-5500 with:
128MB CF Card                                    
128MB SD Card
Symbol WiFi CF Card (working, sorta... overheats and shuts down!)
OZ 3.5.4 & GPE

Zaurus SL-C3100 with:
pdaXrom 1.1.0beta3 & XFCE4, /dev/hda1 256MB swap, /dev/hda2 512MB ext3, /dev/hda3 3328MB FAT32 for stuff
D-Link DCF-660 WiFi CF Card
1GB SD Card
128MB SD Card
128MB CF Card (for flashing)
USB Host Cable

& a Sony VAIO PCG-C1XD Picturebook with accessories...

[img]http://img58.imageshack.us/img58/7319/usbar21mw.gif\" border=\"0\" class=\"linked-sig-image\" /]