Author Topic: How To Install Debian On Your Zaurus (obsolete)  (Read 116875 times)

citro

  • Newbie
  • *
  • Posts: 8
    • View Profile
How To Install Debian On Your Zaurus (obsolete)
« Reply #210 on: November 05, 2007, 01:50:25 pm »
Quote from: ZDevil
Quote from: Chero
From what I read here the Angstrom kernel and Poky kernel are quite alike, so you should be fine using that one.
Before trying the november edition : check the angstrom bugs / mailing list to see whether the altboot problem has been solved.
As for the 2.6.21 kernel : ZDevil has it somewhere, I only have the one for C1000.

Chero.

Oh, yes. I have the Cxx0 one. But the file is not around me in the workplace. Perhaps if you don't mind waiting till this evening I will upload it here, together with an updated after installation tarball.

@dsteuer,

Here it is.... you need to install the 1004 (2.6.22) then replace the kernel and modules attached.
SL-C700 = Altbooting Angstrom 2.6.21 on nand and Debian EABI Filesystem on SD with 178MB Swap on second SD partition.
SL-C3200 = Running debian EABI from the microdrive / kernel Angstrom 2.6.23 / Sid
D-Link DCF-660W Wireless card
Linksys WCF12 wireless card (working issues)
1GB CF Microdrive
1GB Lexar SD Card
128MB Lexar SD Card

ZDevil

  • Hero Member
  • *****
  • Posts: 1998
    • View Profile
    • http://
How To Install Debian On Your Zaurus (obsolete)
« Reply #211 on: November 05, 2007, 02:04:04 pm »
citro, in the 2nd-cfg.sh try to remove all the "echo" lines, and keep only one "cd packages" in the beginning of the script. The original script has several "cd packages" and then "cd ..", but somehow that fails to work at some point.

Also, add libmad0 and libxosd2 along with other alsa stuff in that apt-get install line.

And don't use the kfreebsd repo. The packages there may cause some compatibility issues.
Make sure your network connection is working before running the 2nd script again.

If you run the script for more than one time, edit /etc/modules and remove the redundant snd-soc-spitz lines (though they don't do harm) and just keep one.

For the hwclock setting, either do a reboot, or try "ln -s /dev/rtc0 /dev/rtc && hwclock -w" to make the hardware clock setting function.

Let me know how things go.
« Last Edit: November 05, 2007, 02:06:12 pm by ZDevil »

Life is too precious for hacking *too much*
Visit my Z screencap gallery[/color]
My EeePC 701 Black = Debian (Lenny) on IceRocks + Transcend SDHC Class6 8GB + 2GB RAM
My Zaurus SL-C3200 = Debian EABI (kernel 2.6.24.3-yonggun) on a swapped internal Sandisk Extreme III CF 16gb
My Debian EABI feed: http://matrixmen.free.fr/zaurus/debian/
My OpenBSD/Zaurus feeds:  Link1, Link2
[/i][/font][/color][/size]

scottlfa

  • Sr. Member
  • ****
  • Posts: 281
    • View Profile
    • http://
How To Install Debian On Your Zaurus (obsolete)
« Reply #212 on: November 05, 2007, 02:43:49 pm »
Angstrom 2.6.21 kernel. C1000 Version
« Last Edit: November 05, 2007, 02:46:07 pm by scottlfa »
"So there I was, spitting on my goldfish trying to keep it alive ..."
---------------------------------------------------------------< O >-------------------------------------------------------
Viliv N5 [Debian]
Acer One Running OSX 10.5.7 [Dell 3190 & Ram Upgraded]
SL-C1000 [ZUbuntu], JasJar [WM 6.5], Nokia N900, and Samsung Galaxy S 4G.
Sony Ux280P [Kbuntu 10.4 Lucid], PsP Go and DSi

dsteuer

  • Newbie
  • *
  • Posts: 31
    • View Profile
How To Install Debian On Your Zaurus (obsolete)
« Reply #213 on: November 05, 2007, 03:03:35 pm »
Quote from: citro
@dsteuer,

Here it is.... you need to install the 1004 (2.6.22) then replace the kernel and modules attached.
Thx, citro!

ZDevil

  • Hero Member
  • *****
  • Posts: 1998
    • View Profile
    • http://
How To Install Debian On Your Zaurus (obsolete)
« Reply #214 on: November 07, 2007, 08:08:13 am »
Ok, here are the two revised scripts in the after installation tarball. I would appreciate it very much if you folks could comment on it and help me spot any low-level mistakes. Will add them to the next version of the after installation tarball if things seem alright. Thanks in advance.

The revisions also allow the user to run the scripts repeatedly without manual fiddling with the system setting files


The file structure of the after installation tarball is this:
1st-cfg.sh
2nd-cfg.sh
settings/        ## Containing all the system setting files being used in the scripts
packages/      ## Containing all the 2or0's packages being installed in the second script.


[size=]1st-cfg.sh[/size]

Code: [Select]
#!/bin/sh
## This is PART I of the after installation configuration script

echo "Do you want to start debian after installation configuration now? [y/n]"

read ans

if [ "$ans" != "y" -a "$ans" != "Y" ]; then
    exit 0
fi

# First set up some basic hardware functionalities on the Zaurus

echo "Now setting up some basic hardware functionalities ..." &&

# Set up console-tools and wireless-tools to get other things working
cd packages &&
echo "Now installing libconsole ..."

dpkg -i libconsole_0.2.3dbs-65_armel.deb &&

echo "Done."

echo "Now installing console-tools ..."

dpkg -i console-tools_0.2.3dbs-65_armel.deb &&

echo "Done."

echo "Now installing libiw28 ..."

dpkg -i libiw28_28-1_armel.deb &&

echo "Done."

echo "Now installing wireless-tools ..."

dpkg -i wireless-tools_28-1_armel.deb &&

cd .. &&

echo "Done."
echo ""

# keymap
echo "Now let's load the right keymap for your Zaurus..."

cp settings/keymap.map /etc/keymap.map  &&

loadkeys /etc/keymap.map &&

if ! grep "loadkeys /etc/keymap.map" /etc/rc.local; then
    sed -i '/exit 0/ i\loadkeys /etc/keymap.map' /etc/rc.local
fi

echo "Done."
echo ""

# start-stop daemon
echo "Now setting up start-stop-deamon ..."

if ! test -f /sbin/start-stop-daemon.REAL; then
    cp settings/start-stop-daemon.REAL /sbin
fi

mv /sbin/start-stop-daemon /sbin/start-stop-daemon.FAKE &&

mv /sbin/start-stop-daemon.REAL /sbin/start-stop-daemon &&

echo "Done."
echo ""

# hostname & localhost
echo "Now adding a hostname for your Zaurus ..."

if ! grep "Zaurus" /etc/hostname; then
    echo "Zaurus" >> /etc/hostname
fi

echo -ne "127.0.0.1\tlocalhost.localdomain localhost Zaurus\n" >> /etc/hosts &&

echo "Done."
echo ""

# package feed locations
echo "Now setting up a working package feed list for your Zaurus ..."

mv /etc/apt/sources.list /etc/apt/sources.list.bak &&

cp settings/sources.list /etc/apt/ &&

echo "Done."
echo ""

# Write the current time to the hardware clock
echo "Now setting up the hardware clock ..."

cp settings/hwclock.rules /etc/udev/rules.d &&

if ! test -f /dev/rtc; then
  ln -s /dev/rtc0 /dev/rtc
fi

hwclock -w &&

echo "Done."
echo ""

# Print this message to remind users to set up network before proceeding to the second part.
echo "This is the end of the first part of the after installation
configurations. Please reboot now to make the hwclock setting to
take effect. Make sure that you have a proper network connection
before proceeding to the second part. See you around!"  
echo ""

[size=]2nd-cfg.sh[/size]

Code: [Select]
#!/bin/sh
## This is PART II of the after installation script

echo ""
echo "Welcome to the second part of the Debian EABI after installation.
This script will help you set up a working environment including:

1) Updating the package lists and the (pre)installed packages;
2) Installing and setting up an X server;
3) Installing and configuring touchscreen pointer utilities;
4) Installing IceWM as the default window manager;
5) Intalling and configurating sound support;
6) Installing mplayer for playing video;
7) Adding a few useful utilities for auto suspend & screen blanking,
     speaker/headphone sound output switching, usb support, and
     over/under-clocking control;

Please make sure that your Zaurus has a proper network connection.

Do you want to proceed with the process now? [y/n]"

read ans

if [ "$ans" != "y" -a "$ans" != "Y" ]; then
    exit 0
fi

# Update the package lists
echo "Now updating the package lists ..."

apt-get update &&

echo "Done."
echo ""

# Upgrade the installed packages
echo "Now upgrading the installed packages ..."

apt-get dist-upgrade &&

echo "Done."
echo ""

# X server
echo "Now setting up X server ..."

apt-get install xfonts-base rxvt xbase-clients libxft2 libfontconfig1 icewm icewm-experimental menu icewm-gnome-support grun apmd sudo &&

cd packages &&

dpkg -i xserver-kdrive_1.3.0.0-r19_armel.deb xserver-kdrive-fbdev_1.3.0.0-r19_armel.deb x-yonggun_0.0_armel.deb &&

cd ../ &&

mkdir ~/.icewm &&

cp settings/icewm_preferences ~/.icewm/preferences &&

echo "Done."
echo ""

# touchscreen
echo "Now setting up touchscreen ..."

cd packages &&

dpkg -i libts-1.0-0_1.0-r17_armel.deb tslib-calibrate_1.0-r17_armel.deb tslib-conf_1.0-r17_armel.deb &&
ldconfig &&

echo "Done."
echo ""

# sound
echo "Now setting up sound and installing some essential packages ..."

modprobe snd-soc-spitz &&

if ! grep "snd-soc-spitz" /etc/modules; then
    echo snd-soc-spitz >> /etc/modules
fi

apt-get install alsa-base alsa-utils alsa-oss libsdl1.2debian-alsa libmad0 libxosd2 xmms xmms-mad &&

echo "Done."
echo ""

# video
echo "Now installing mplayer for the Zaurus to play videos ..."

dpkg -i libmp3lame0_3.96.1-r4_armel.deb mplayer-common_0.0.1-r0_armel.deb mplayer_0.0+1.0rc1+svnr24587-r3_armel.deb &&

echo "Done."
echo ""

# More utilities
echo "Now installing a few more nice utilties ..."

dpkg -i ipaq-sleep_0.9-r1_armel.deb usb-gadget-mode_0.0.2-r0_armel.deb zaurusd_0.0+svn20060628-r10_armel.deb cpuoverclock_0.0.3-1_armel.deb &&

update-rc.d -f zaurusd remove  &&

modprobe ohci-hcd &&

if ! grep "ohci-hcd" /etc/modules; then
    echo "ohci-hcd" >> /etc/modules
fi

cd $HOME &&

echo "Done."
echo ""

# Add a greeting here
echo "Congratulations! Debian EABI is set up on your Zaurus.
Have fun! :-) "
echo ""
echo ""
« Last Edit: November 08, 2007, 01:46:46 am by ZDevil »

Life is too precious for hacking *too much*
Visit my Z screencap gallery[/color]
My EeePC 701 Black = Debian (Lenny) on IceRocks + Transcend SDHC Class6 8GB + 2GB RAM
My Zaurus SL-C3200 = Debian EABI (kernel 2.6.24.3-yonggun) on a swapped internal Sandisk Extreme III CF 16gb
My Debian EABI feed: http://matrixmen.free.fr/zaurus/debian/
My OpenBSD/Zaurus feeds:  Link1, Link2
[/i][/font][/color][/size]

jpmatrix

  • Hero Member
  • *****
  • Posts: 1014
    • View Profile
    • http://matrixmen.free.fr
How To Install Debian On Your Zaurus (obsolete)
« Reply #215 on: November 07, 2007, 08:21:51 am »
i've just had a strange problem after a reboot : stylus was not working anymore......

i find that although the TSLIB_DEVICE was set in /etc/profile and ~/.profile it seems it was never executed....

i had to put the EXPORT TSLIB line in /etc/X11/xdm/Xsession and now it works again!

perhaps my problem come from flux's tip to enable login with $USER but i'm not sure......
**Fujitsu U1010 !!!  
**ex-Zaurus SL-C3000 owner with Debian kernel 2.6.24-yonggun

ZDevil

  • Hero Member
  • *****
  • Posts: 1998
    • View Profile
    • http://
How To Install Debian On Your Zaurus (obsolete)
« Reply #216 on: November 07, 2007, 08:26:57 am »
Perhaps chmod 755 ~/.profile may do?

Life is too precious for hacking *too much*
Visit my Z screencap gallery[/color]
My EeePC 701 Black = Debian (Lenny) on IceRocks + Transcend SDHC Class6 8GB + 2GB RAM
My Zaurus SL-C3200 = Debian EABI (kernel 2.6.24.3-yonggun) on a swapped internal Sandisk Extreme III CF 16gb
My Debian EABI feed: http://matrixmen.free.fr/zaurus/debian/
My OpenBSD/Zaurus feeds:  Link1, Link2
[/i][/font][/color][/size]

dsteuer

  • Newbie
  • *
  • Posts: 31
    • View Profile
How To Install Debian On Your Zaurus (obsolete)
« Reply #217 on: November 09, 2007, 10:44:27 am »
Well, I'm coming closer to a working EABI on my 860.

I installed Angstrom as of Nov. 4th, replaced the kernel with a 2.6.21 version that can cooperate with altboot.
(first I found out that this version of Angstrom refuses to altboot; added info to the wiki)

Installed altboot after some fiddling with Angstrom's Wifi.

Installed armel-rootfs on sd card. (on a loop device, but shoudn't matter)

reboot.

Everything fine!
Because I had forgotten to cp my modules over, I rebooted into Angstrom once more.
Worked like a charm.

Copied modules over.

reboot

altboot doesn't work anymore :-(

Solved: I did not unmount the loop device before rebooting. If doing so I get to debian 4.0!. Now wading through afterinstallation ...

It hangs forever showing [4] CF Card and doesn't react for pressing the "any key".
No [5] advanced does not show up.

Looks like "go back to start" :-(

Anybody with similar experiences?

I only mounted the loop-device on /mnt and cp -a /lib/modules /mnt/lib/moudules, did not play with anything altboot related.

Detlef
« Last Edit: November 10, 2007, 04:02:00 pm by dsteuer »

jpmatrix

  • Hero Member
  • *****
  • Posts: 1014
    • View Profile
    • http://matrixmen.free.fr
How To Install Debian On Your Zaurus (obsolete)
« Reply #218 on: November 09, 2007, 10:51:43 am »
perhaps we should modify the wiki for those who (had to) use uboot/altboot and those who can install eabi without that : for example on my c3000 these are not needed and it works perfectly...
**Fujitsu U1010 !!!  
**ex-Zaurus SL-C3000 owner with Debian kernel 2.6.24-yonggun

scottlfa

  • Sr. Member
  • ****
  • Posts: 281
    • View Profile
    • http://
How To Install Debian On Your Zaurus (obsolete)
« Reply #219 on: November 12, 2007, 12:15:14 am »
icewm-gnome-support grun

these two packages in the script are broken when using the source.list from the wiki

figured I would try a clean install
"So there I was, spitting on my goldfish trying to keep it alive ..."
---------------------------------------------------------------< O >-------------------------------------------------------
Viliv N5 [Debian]
Acer One Running OSX 10.5.7 [Dell 3190 & Ram Upgraded]
SL-C1000 [ZUbuntu], JasJar [WM 6.5], Nokia N900, and Samsung Galaxy S 4G.
Sony Ux280P [Kbuntu 10.4 Lucid], PsP Go and DSi

citro

  • Newbie
  • *
  • Posts: 8
    • View Profile
How To Install Debian On Your Zaurus (obsolete)
« Reply #220 on: November 14, 2007, 12:08:24 am »
Quote from: ZDevil
Ok, here are the two revised scripts in the after installation tarball. I would appreciate it very much if you folks could comment on it and help me spot any low-level mistakes. Will add them to the next version of the after installation tarball if things seem alright. Thanks in advance.

 
Reporting success installing Angstrom Kernel 2.6.21 + EABI File system on a C700. I did the afterinstall steps manually following the directions on Zdevil scripts. Some of the steps were not needed as follows:

1sf-cfg.sh
- I didn't need to install console-tools or libconsole. The system boot without complain about the console
- I didn't have to do the keymap section as keyboard was working perfectly.

2nd-cfg.sh
- on X server section, 2 of the files were not installed: grun and ice-gnome-support due to dependency issues.
- Touchscreen needed some changes as per afterinstall comments on the wiki (comment lines on /etc/ts.conf and replace usr/bin/X with those 2 lines described on the wiki). Without those changes the touchscreen was not working.
- audio section didn't need modprobe snd-soc-spitz as the module was already loaded (by the way the module loaded on C700 is snd-soc-corgi and it works great !!!!)

Now the bad news   .... When trying to apt-get most of the programs (xcfe4, gimp, gnumeric, ice-weasel, nautilus, evolution, etc) i get errors because of the known broken package libgtk2.0 being discussed [a href=\'index.php?showtopic=25015\']here[/a]. Hopefully the repository version mismatch will get fixed soon.

One other thing I noticed is that pccardctl is not found so if I want to swap the wireless card for the microdrive I have to shutdown, turn off and reboot. I tried apt-get install pccardctl but it didn't find any packages with that name. Any idea?

So far has tried dillo, sylpheed-claws and xmms and performance is great. I'm really surprised as barely none of the other distributions works good on the C700 with its limited RAM and FLASH memory. However this debian combination is amazingly fast.
« Last Edit: November 14, 2007, 12:14:07 am by citro »
SL-C700 = Altbooting Angstrom 2.6.21 on nand and Debian EABI Filesystem on SD with 178MB Swap on second SD partition.
SL-C3200 = Running debian EABI from the microdrive / kernel Angstrom 2.6.23 / Sid
D-Link DCF-660W Wireless card
Linksys WCF12 wireless card (working issues)
1GB CF Microdrive
1GB Lexar SD Card
128MB Lexar SD Card

danr

  • Full Member
  • ***
  • Posts: 138
    • View Profile
    • http://
How To Install Debian On Your Zaurus (obsolete)
« Reply #221 on: January 21, 2008, 04:31:56 am »
I've managed to get kernel 2.6.23 and Debian on SD card to work on my C860.  See https://www.oesf.org/forum/index.php?showtopic=25399 for details.

Cheers,

Dan
SL-C860 running Debian EABI on top of Angstrom 2.6 kernel