Author Topic: Cardfs Or Altboot? What?  (Read 6030 times)

brickhead20

  • Newbie
  • *
  • Posts: 2
    • View Profile
Cardfs Or Altboot? What?
« on: June 30, 2006, 06:00:18 pm »
OK this all did made sense. Now it isn't so clear

Ok, am I supposed to use CardFS or altboot to move my files from RAM to SD? My aim is to use my SL-5500 as a webserver running apache-PHP. All seemed OK and simple, but I seem to be getting a lot of problems. Also I find after a hard reset in both running hentges ROMs, and normal OZ ROMs moved to the SD card full, the wireless fails after a reset, though it works on fresh clean installs.

Basically, what am I supposed to use, and why?

Whats the difference between CardFS and altboot?

Thanks for any help  

Rich
« Last Edit: June 30, 2006, 06:47:15 pm by brickhead20 »

Ferret-Simpson

  • Hero Member
  • *****
  • Posts: 572
    • View Profile
Cardfs Or Altboot? What?
« Reply #1 on: July 04, 2006, 05:17:28 pm »
Please help this guy, it took me bloomin' AGES to get him to buy a Z!

And I STILL say use the iPaq as a server.
Cortana: PXA250/Poodle: OZ/GPE 3.4.2RC1
Tycho PXA270/HTC_Universal WM5  .30.107/1.09.00/42.42.P8/1.30.162
HollyWatch: Fossil AU5005 - POS 4.1.2
ATLANTIS: Fujitsu Lifebook T4210 TBPC2005

Tosh256CF, Adlink CF 802.11B, 512KingSD, 128VikSD, CFChiMeiG1GPRS

CoreDump

  • Hero Member
  • *****
  • Posts: 713
    • View Profile
    • http://www.hentges.net
Cardfs Or Altboot? What?
« Reply #2 on: July 05, 2006, 12:41:34 am »
Quote
OK this all did made sense. Now it isn't so clear

Ok, am I supposed to use CardFS or altboot to move my files from RAM to SD?

s/RAM/flash

CardFS is not a full / on SD/CF but only a pre-compiled package selection which is installed / extracted onto SD / CF. It's basically the same as if you were to install packages to SD yourself using the package manager.

Altboot on the other hand may create a bootable installation on SD / CF / whatever from a tar.gz rootfs tarball. Its primary purpose is to "boot" your Z from something other than flash.

Quote
My aim is to use my SL-5500 as a webserver running apache-PHP. All seemed OK and simple, but I seem to be getting a lot of problems. Also I find after a hard reset in both running hentges ROMs, and normal OZ ROMs moved to the SD card full, the wireless fails after a reset, though it works on fresh clean installs.

"wireless fails" is not a useful problem description, now is it?  

Quote
Basically, what am I supposed to use, and why?

Whats the difference between CardFS and altboot?

See above.
Webmaster of hentges.net & Embedded Linux Developer.

brickhead20

  • Newbie
  • *
  • Posts: 2
    • View Profile
Cardfs Or Altboot? What?
« Reply #3 on: July 05, 2006, 05:01:45 pm »
Thankyou! Yeah that makes some sense now, sorry, I tried comparing the two and couldn't see the exact difference.

The wireless seems to be sorted by reconfiguring it from fresh every time I use hard reset, though I'm not sure why it does it, at least I know how to fix it.

Well, Ferret, frig you. You got me confused with this in the first place!
« Last Edit: July 05, 2006, 05:08:43 pm by brickhead20 »

spanky

  • Newbie
  • *
  • Posts: 10
    • View Profile
Cardfs Or Altboot? What?
« Reply #4 on: July 06, 2006, 05:40:04 am »
I was asking the same questions a couple of days ago, and because of problems with my SD card (1GB sandisk), the decision was made for me. If I ever tried to use AltBoot and boot off the SD, it would give errors with the SD card (don't have the exact text here now, but i think it was saying problems trying to mount it), and then just drop to the console. However there don't appear to be problems with the SD card, as I'm currently running using CardFS. I'm not sure whether the problems that were reported were with the card itself, or with the loop file, but I wasn't sure how to find out, and now that I'm running everything fine with cardFS, I'm not sure I want to try (at least not for a bit). I had a couple of altboot images on the card, and if I tried to use the SD card, it wouldn't even present me with the list of loop files to choose from, it would just give card errors. When I copied the files to a CF card it would present the list to choose from, but when I chose one I got the same errors.

While I now have a better understanding of the difference between altboot and cardFS, I still have a couple of questions.

Are you saying that when altboot is used, the entire OS and packages etc are all run directly from the SD card, but when cardFS is used the OS is running from flash, but the packages are installed and run from the card?

If this is the case, what is the overall difference? From the point of view of performance, stability and ease of upgrade, which is more appropriate to use? I realise different people may have different opinions on this, but that's what I'm curious about - opinions. On the various websites, I could find quite a lot of info about how altboot works, and how cardFS works, but no reasons as to why you'd use one over the other.

Another (slightly) related question. I'm, thinking of repartitioning my SD card to give me some FAT space. Is this as simple as backing up everything on the card, repartitioning and formatting, and then copying everything back, or is there more to it?

Sorry if these are some noob questions, but I just got the Zaurus off e-bay 3 days ago. am loving it now - especially since I got Kopi/Kapi running with pi-sync to my desktop, and my wireless seems to work flawlessly (after installing the prism packages)... now just to get IrDA and bluetooth working with my phone.

CoreDump

  • Hero Member
  • *****
  • Posts: 713
    • View Profile
    • http://www.hentges.net
Cardfs Or Altboot? What?
« Reply #5 on: July 06, 2006, 06:26:42 am »
Quote
I was asking the same questions a couple of days ago, and because of problems with my SD card (1GB sandisk), the decision was made for me. If I ever tried to use AltBoot and boot off the SD, it would give errors with the SD card (don't have the exact text here now, but i think it was saying problems trying to mount it), and then just drop to the console. However there don't appear to be problems with the SD card, as I'm currently running using CardFS. I'm not sure whether the problems that were reported were with the card itself, or with the loop file, but I wasn't sure how to find out, and now that I'm running everything fine with cardFS, I'm not sure I want to try (at least not for a bit). I had a couple of altboot images on the card, and if I tried to use the SD card, it wouldn't even present me with the list of loop files to choose from, it would just give card errors. When I copied the files to a CF card it would present the list to choose from, but when I chose one I got the same errors.

Impossible to debug w/o exact error messages.

Quote
While I now have a better understanding of the difference between altboot and cardFS, I still have a couple of questions.

Are you saying that when altboot is used, the entire OS and packages etc are all run directly from the SD card, but when cardFS is used the OS is running from flash, but the packages are installed and run from the card?

Correct.

Quote
If this is the case, what is the overall difference? From the point of view of performance, stability and ease of upgrade, which is more appropriate to use? I realise different people may have different opinions on this, but that's what I'm curious about - opinions. On the various websites, I could find quite a lot of info about how altboot works, and how cardFS works, but no reasons as to why you'd use one over the other.

With cardfs your rootfs is still in flash. All programs installed on SD (by cardfs or manually via package manager) must be linked back to the rootfs with ipkg-link.

In short, ipkg-link is a bloody support nightmare, it's causing lots of wierd problems and is faaaaaar from beeing userfriendly.

On the other hand when you boot off SD or CF (and thereby having SD or CF as your rootfs) ipkg-link is no longer required. All new packages are installed into / directly, no messy linking needed.

The only problem with this method is that many SD cards produce error messages when formatted w/ ext2. Many won't work at all. That is a hardware problem with these cards and can not be worked around.



Quote
Another (slightly) related question. I'm, thinking of repartitioning my SD card to give me some FAT space. Is this as simple as backing up everything on the card, repartitioning and formatting, and then copying everything back, or is there more to it?

Nope, symlinks do not work with FAT so cardfs doesn't work either.

Quote
Sorry if these are some noob questions, but I just got the Zaurus off e-bay 3 days ago. am loving it now - especially since I got Kopi/Kapi running with pi-sync to my desktop, and my wireless seems to work flawlessly (after installing the prism packages)... now just to get IrDA and bluetooth working with my phone.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=134101\"][{POST_SNAPBACK}][/a][/div]
Webmaster of hentges.net & Embedded Linux Developer.

spanky

  • Newbie
  • *
  • Posts: 10
    • View Profile
Cardfs Or Altboot? What?
« Reply #6 on: July 06, 2006, 07:14:47 am »
Quote
Quote
Another (slightly) related question. I'm, thinking of repartitioning my SD card to give me some FAT space. Is this as simple as backing up everything on the card, repartitioning and formatting, and then copying everything back, or is there more to it?

Nope, symlinks do not work with FAT so cardfs doesn't work either.


Sorry, I didn't make myself clear - i'd hope to partition the card into one (or more) ext2 partition, and a bit of FAT space, and tehn copy the cardfs stuff back to an ext2 partition. Would that work? Thanks for your reply. I'll have a closer look at the altboot errors and post back.

Ferret-Simpson

  • Hero Member
  • *****
  • Posts: 572
    • View Profile
Cardfs Or Altboot? What?
« Reply #7 on: July 06, 2006, 08:10:16 am »
You know, I STILL don't remember this conversation you keep claiming happened DB. . .

At least I bumped your thread for you! XP
Cortana: PXA250/Poodle: OZ/GPE 3.4.2RC1
Tycho PXA270/HTC_Universal WM5  .30.107/1.09.00/42.42.P8/1.30.162
HollyWatch: Fossil AU5005 - POS 4.1.2
ATLANTIS: Fujitsu Lifebook T4210 TBPC2005

Tosh256CF, Adlink CF 802.11B, 512KingSD, 128VikSD, CFChiMeiG1GPRS