Author Topic: fast 6000 kernel, along with special libsdl  (Read 105840 times)

amdonati

  • Full Member
  • ***
  • Posts: 153
    • View Profile
    • http://
fast 6000 kernel, along with special libsdl
« Reply #135 on: March 17, 2005, 11:43:05 am »
the site is anyerlildog2.com

user: zug@anyerlildog2.com
pass: zug

It was in a previous post.
Nothing secret!  

adalberto

jbruno

  • Jr. Member
  • **
  • Posts: 97
    • View Profile
    • http://
fast 6000 kernel, along with special libsdl
« Reply #136 on: March 17, 2005, 01:59:38 pm »
Quote
the site is anyerlildog2.com

user: zug@anyerlildog2.com
pass: zug

It was in a previous post.
Nothing secret!  

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

Oops - I was trying user "zug".
Thanks, got it!
-----
SL6000L
ATP 512MB SD

adf

  • Hero Member
  • *****
  • Posts: 2807
    • View Profile
    • http://
fast 6000 kernel, along with special libsdl
« Reply #137 on: March 19, 2005, 12:04:54 am »
I posted some new stuff.

a tarbll o modules(slightly crufty--it contains all the object files from the relevent locations--- afew dozen unnecesary .o's  and in oplaces likde drivers/video some c's and h's too.  I was rushing a bit.  I think it isn't too hard to clean up-- I cleaned it on my z), and 2 zimages (ffpe and no ffpe) the zImages are changed from mine in that they don't have particular built in camera or serial device support, and so can load modules for those and other things.  They still have pretty much everything else built it...ext 2,3 the ohci, etc...
 edit: there are a bunch of bluetooth modules in there. those of you w/ bt might try one of the "new" zImages and the bluetooth modules that go with your device. put them about anywhere (if there is no room in /home/root/modules) and do the rc.modules bit.  insmod path to module module in the rc.modules file in /etc/rc.d (make one if you don't have it already... it is described ealrier in this thread

I have been trying to hack up a "new" "rom"  (read less insane more versatile setup) using the fast kernel/libsdl.   The idea so far is to move much of the filesystem off to sd, so as to have relatively enormous space to install programs-- the programs don't know they are on sd if you move and link the right bits, of course--, move the modules (except the sd driver) off to sd and link 'em back, etc.

It is making progress.. but there are some things I haven't figured out.

The 2 biggest issues are
Autoloading modules.  This just isn't going well. I move the sd module to its own little corner of / and insmod it.  the modules in .modules on the sd card (where I put 'em for space--linked to /lib modules and /lib/modules.rom etc..)can be seen--depmod runs--  but hotpluggable stuff like usb mice have to be insmodded manually--- no good. Any help on this?

The stupid sharp file system.  I would really love, over time, to gradually simplify this tangle into a mostly straightforward linux filesystem. a few extra links might be necessary, but still--

As far as I know, cacko and pdaXrom have made good progress along these lines on other zaurii.  OZ is making progress too--we will have to see what 3.5.3 brings.
Still a sharp based mostly-on-sd rom using the fast kernel and libsdl that connected to most of the things that can be plugged into it  would be great (did I just describe a cacko knockoff?).  I'll plug along. anyone else interested?
« Last Edit: March 19, 2005, 01:32:42 am by adf »
**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

amdonati

  • Full Member
  • ***
  • Posts: 153
    • View Profile
    • http://
fast 6000 kernel, along with special libsdl
« Reply #138 on: March 19, 2005, 11:10:07 am »
Hi Adf,
Sorry I could not try your latest kernels due to some time constraints, but I will Asap.

Your idea is interesting, but apparently you are starting to think to a complete new setup for the 6000.

The idea is interesting, but sincerly I would be more than happy to have the maximum speed available while retaining compatibility with all the peripherials compatible with the stock kernel, and some usb cleanup (like the keyboard issue).

I also do not like the "symmlink issue" in sharp's kernel, but I can leave with it, I ma more concerned of the backup/restore compatibility (But maybe would not be a real issue in your proposal).

But instead of moving stuff to the SD, why not transform part of the standard programs (PIM, java) in ipk and use that space for the extra/new modules (a bit like Proto did with the TKC rom)?

Thanks for the effort anyway bot you and Guylhem!

Adalberto

guylhem

  • Hero Member
  • *****
  • Posts: 577
    • View Profile
fast 6000 kernel, along with special libsdl
« Reply #139 on: March 19, 2005, 12:30:05 pm »
Hello

ads, your remapping idea is great. I've started to do some cleanup too, maybe we could unite our works :-) I'm also offloading stuff to /mnt/card thanks to a 1 Gb SD, but I think it should be possible to do without that if a good cleanup was done

What would you think about using one big r/w partition instead of 2 separated partitions ?
http://www.externe.net/zaurus/flash/nandmap.jpg

I think it'd help keeping everything in the flash.

Guylhem
« Last Edit: March 19, 2005, 12:50:04 pm by guylhem »

adf

  • Hero Member
  • *****
  • Posts: 2807
    • View Profile
    • http://
fast 6000 kernel, along with special libsdl
« Reply #140 on: March 19, 2005, 01:36:20 pm »
Hmmm.

A single Nand partition would be really helpful, I think. I am not sure how to do it. Guylhem, you can, I take it?

what I was thinking was offloading home and usr and opt and modules (so far) and ironing out the symlinks. What I did was off load and link QtPalmtop /usr/bin /usr/lib /lib/modules (kind of a pain ) and /opt

As far as pulling sharp pim and qt mail and opera-that is some of the 1st stuff I did. (installed Ko/pi kapi and ompi instead..and opera 7.55 and opie libs and advancedfm and Konsole w/ tabs suport..and still had about 28 megs free in internal flash when done) It helps, but squeezing in a good set of modules with the multiple partition scheme still wasn't going--they had to be offloaded--and all the links made tracing where stuff was expected into a a bit of a nightmare.

A thought, though. If we went with a single nand partition..loaded modules and /libs and /bin there (there should be enough room for that, I think--even if a complete modules pack is about a meg as an uncompressed tarball). Then partitioned the sd and mounted /home /opt /usr /var on sd partitions we could straighten out a lot of the links and make it look more like a linux box. If partitioning seems too much. we could just link the directories back, like I've been trying to do. This could be setup to leave the Z as a working pda when there is no sd, and as a "real" linux box when there is, maybe?
Could the sd stuff be scripted? asin  determine if an sd card is loaded, if it has the dirs required and linking to those dirs?  So for example /home might be a link that either points to /homenand or /homesd depending on whether the card is in?

As far as backup goes...  
what are you backing up?   if it is a full system, nothing could be easier than doing a nand backup and tarballing the stuff on sd.  If it is just files, I think there are plenty of options available, and that moving stuff around for reasons of space and sanity shouldn't cause a problem. In fact, it should make things easier.

What is intended here, I think is a definite change in the "real" filesystem without much impact on what the Z "thinks" is the filesystem.  That is really the issue... the z "thinks it has a straightforward linux fs and instead it has a tangled web of links that imitates one. Straightening things out shouldn't affect compatibilty-- it should just make the fs more open, and less crazed---and much much more expandable.

In short then, definitely! I want to get this thing headed in the right direction.

ps. it would seem that the squashfs module fro the pdaXrom feed kernel and tools (?) ipk works though I pulled it out of the ipk and popped the stuff in place manually).
I haven't used it for anything, but it loads without complaint..same w/ mksquashfs. could be helpful. Also could mean that mazlovsky's dev_img 1.6 could be installed on a 6k, as well as the wikipedia stuff.
« Last Edit: March 19, 2005, 01:38:28 pm by adf »
**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

adf

  • Hero Member
  • *****
  • Posts: 2807
    • View Profile
    • http://
fast 6000 kernel, along with special libsdl
« Reply #141 on: March 19, 2005, 05:18:40 pm »
what about copying the whole fs over to sd. (at least / /lib /home /usr /bin /opt) making a working environment there that can be chrooted to... then simplifying the links to make it a "normal" linux fs, and bringing it back to the single partition nand? ---  then maybe looking at /home and /usr on sd setups as a variant?  the not-yet-extant sd detecting&linking script could handle linking /usr or /home to those dirs on the sd if it was in and they existed, right?  

There was a lot of stuff along these lines done for the 5500 that we might take a look at...
**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

amdonati

  • Full Member
  • ***
  • Posts: 153
    • View Profile
    • http://
fast 6000 kernel, along with special libsdl
« Reply #142 on: March 19, 2005, 07:10:17 pm »
Adf,

I always did stay away from the "home on SD" and similar ROMs (like CACKO or OZ with 64/0 kernels) for 1 main reason, speed.

My experience was always that R/W was noticeably slower with SD solutions, especially on startup, and the difference was for me quite disturbing (the 6000 is already slower to resume than the 5500, it takes me always 3 4 seconds to be operative, with CF and SD in, and I definetly do not like it).

If you could work out with guylhem a solutions that would allow all the filesystem to stay in one big nand partition (making it eventuallyR/W as it was on OZ for the 5500), this option would have my preference (speed and responsiveness have always precedence for me on a PDA).

Juts my 2 cents,

Regards,
Adalberto

adf

  • Hero Member
  • *****
  • Posts: 2807
    • View Profile
    • http://
fast 6000 kernel, along with special libsdl
« Reply #143 on: March 19, 2005, 08:06:57 pm »
that would have to be the base, anyway.  the sd thing would have to remain an option only.
I did notice thatthings were pretty slow on a rebbot w/ stuff on card. after some use (and some caching) things got better....
maybe the whole sd thing should be a chroot option? keep the stuff on nand lighter and smaller?
any luck w/ the bluetooth modules?

Btw aren't we really talking about 2 partitions in NAND? the 1st w/ the kernel 1 and basic utilities?  just take out /home and the initrd space and consolidate? That might be more manageable-- How would one reflash the nand in case of a screw up otherwise? If it can be done with realtive ease, then 1 partition is the way to go. If not then maybe that 1st 7+ megs should stay as is? or at least stay with somekind of loader, min kernel, and nand utilities.
« Last Edit: March 19, 2005, 08:31:14 pm by adf »
**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

amdonati

  • Full Member
  • ***
  • Posts: 153
    • View Profile
    • http://
fast 6000 kernel, along with special libsdl
« Reply #144 on: March 20, 2005, 04:26:45 am »
Adf,
I went of the fte site to download your latest kernel, but I could only find the 2 zImages form the 7 of march.
Aren't these the 2 original ones you posted?
Are the new ones somewhere else?

Thanks,
Adalberto

guylhem

  • Hero Member
  • *****
  • Posts: 577
    • View Profile
fast 6000 kernel, along with special libsdl
« Reply #145 on: March 20, 2005, 07:57:18 am »
adf,

I'm thinking about keeping /dev/mtd1 (ext2 used for reflash with power+ok - try my rescue updater.sh which just loads a shell and see for yourself) but merging mtd2 (/) and mtd3 (/home). Don't worry about that part - I'll do it. I'm currently experimenting various options.

Regarding the underlying filesystem, you're right - we could fix that in a way that wouldn't make any difference to the graphical system on top.

Yet I suggest we try to keep the closest possible to the default rom. That means no kapi/kopi etc. by default. Let's just fix the links and the filesystem. ATM I found the boot process was a bitch, with /root/etc/inittab which is used for no good reason and dual /etc /home/etc (that's 3 different etc !!). Also the hidden .tar files in /root that are overwritting all your stuff at reboot are troublesome.

Now how to fix the filesystem ? chroot on a test filesys  is an idea, but I like risks, effectiveness etc. - I'd rather test that directly on the partition :-) using the rescue updater.sh to go back to the 7 Mb rescue partition and fix things in case of a big screw up. It'd also mean "real" conditions - you never know until you try out what is different than on a SD (speed, jffs2 != ext2 etc) - that's how I found out the weirdo bootprocess/inittab/etc/ ...

Moreover like you and amdonati I've found that everything on a SD was much too slow. A microdrive may help, but even that would have one big drawback - you just can't remove it ! that sucks. I'd prefer having a minimal working system when the SD is not plugged, and the whole system when it's plugged - even if it's a reboot away.

Now how are we going to do that? I've got a mailing list ready if you want - it'd speed up development. I'd be very very happy to contribute to a "fixed" 6000 rom.

amdonati

  • Full Member
  • ***
  • Posts: 153
    • View Profile
    • http://
fast 6000 kernel, along with special libsdl
« Reply #146 on: March 20, 2005, 08:15:34 am »
guys,

I like the idea really much.
As I said, I support Guylhem, idea of a clean rom, fully resident on the 6000, and leave th CF and SD for storage, programs or else.

I am not very good in kernel and system hacking, but would be happy to support as much as I can.

Cheers,
Adalberto

adf

  • Hero Member
  • *****
  • Posts: 2807
    • View Profile
    • http://
fast 6000 kernel, along with special libsdl
« Reply #147 on: March 20, 2005, 05:08:10 pm »
argh.... did they not upload? will do tonight then. sorry.
**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

adf

  • Hero Member
  • *****
  • Posts: 2807
    • View Profile
    • http://
fast 6000 kernel, along with special libsdl
« Reply #148 on: March 21, 2005, 12:48:20 am »
might not get it til tomorrow--- 40mph winds between me and my  home office in the backyard.
I have done some by way of flattening out the fs.... 8 can chroot and boot, but I seem to stick at the
wait 30 seconds screen. will sor tit out.

I would still rather be doing this in an X based system
**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

adf

  • Hero Member
  • *****
  • Posts: 2807
    • View Profile
    • http://
fast 6000 kernel, along with special libsdl
« Reply #149 on: March 22, 2005, 10:50:30 am »
Quote
might not get it til tomorrow--- 40mph winds between me and my  home office in the backyard.
I have done some by way of flattening out the fs.... 8 can chroot and boot, but I seem to stick at the
wait 30 seconds screen. will sor tit out.

edit: wedding anniversary yesterday, no geekiness allowed. will get those modules and kernels up today.
 
I would still rather be doing this in an X based system
[div align=\"right\"][a href=\"index.php?act=findpost&pid=71576\"][{POST_SNAPBACK}][/a][/div]
**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