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

zecrazytux

  • Newbie
  • *
  • Posts: 35
    • View Profile
    • http://zecrazytux.net
How To Install Debian On Your Zaurus (obsolete)
« Reply #150 on: October 31, 2007, 07:16:04 pm »
Quote from: Chero
Quote from: ZDevil
Chero, test this if you can't wait (actually because I can't wait to see your result ...  ).

There are three little extra steps involved:
1. Add these extra files:
-- Download these essential utilities to the SD:
  http://armel-debs.applieddata.net/debian/p...bs-65_armel.deb
  http://armel-debs.applieddata.net/debian/p...bs-65_armel.deb
  http://kfreebsd-gnu.debian.net/debian/pool...2-8.1_armel.deb
  http://kfreebsd-gnu.debian.net/debian/pool...9p6-1_armel.deb
-- Put these attachments to the SD too:
 [ Invalid Attachment ]   [ Invalid Attachment ]

2. Follow the steps as described, and after extracting the rootfs and the kernel modules, extract the zaurus-hardware-eabi thingie also.

3. After the first login:
-- First install those few armel packages.
-- Then run the afterinstall.sh (remove the .txt extension).

the first two links are down, but they are on kfreebsd as well - first have to eat now - will continue this afternoon


i had problems with this repo two days ago when i installed my debian for my c1000. There is an other repo (duplicate or an other domain name):
http://ftp.gnuab.org/debian
Debian GNU/Linux Sid on C1000 akita (rootfs on sd) - 2.6.21 from poky - e16 - www.zecrazytux.net

tux

  • Sr. Member
  • ****
  • Posts: 438
    • View Profile
    • http://
How To Install Debian On Your Zaurus (obsolete)
« Reply #151 on: October 31, 2007, 07:26:20 pm »
Quote from: tux
Quote from: ZDevil
@tux: Are you sure your network connection is working?
I just did an apt-get update with this feed and it just works...
 No it isn't! I can ping my router quite happily! But when I ping www.oesf.org it says 'unknown host'. It was working  shortly after the install because I could ping www.google.com. I'd better check what has happened with the host file etc. Thanks for the wake-up!

I shan't post again tonight. I need sleep!
 I lied!  I looked in the rootfs tar and spied on the host and hosts file. i restored some bits I chucked out when i put my nameserver info in. I can now ping www.google.com etc. I still don't get apt-get update to work...

By the way ZDevil, the keymap fix you have in the directory won't work. it puts the 'fix' after the exit 0 line.   There is a problem with this start-stop daemon. I'm going to fiddle with reversing the fix and see what happens.
3200 aka BigZ, swapped in 16GB Sandisk Extreme III CF, Cacko 1.23 full,  new SDHC >2GB module,
SL860 Cacko 1.23 full, new SDHC >2GB module,
6000L SharpRom 1.12 + Tetsu kernel,
5500 TKC home on SD x 2 (with SD>1GB),
Archos PMA30 with OPEN PMA (Giraffe),
Nokia 770 (Hackers Edition)
Nokia 800 (ITOS 2008), 4GB SDHC x 2
Asus eeepc 4G (black), with 1GB ram, dual boot Xandros on SSD with Ubuntu Lucid Lynx on 16 GB SDHC,
Tmobile G1 Android (black), with Cyanogen's  Firerat's MTD script and Amon Ra Recovery 1.7.0
Tmobile HTC Wildfire.. rooted and on Cyanogen's 7.3 nightly Rom
Kopi/Kapi on everything bar the phone and the Nokias, there is a beta for the nokias...

All the above are retired

Samsung Note 8 N5110
Samsung Note N7105
FBreader on the lot!

jpmatrix

  • Hero Member
  • *****
  • Posts: 1014
    • View Profile
    • http://matrixmen.free.fr
How To Install Debian On Your Zaurus (obsolete)
« Reply #152 on: October 31, 2007, 07:36:11 pm »
Quote from: ZDevil
..snip..Yet I suppose the stuff in the 2nd-cfg.sh is still relevant, if there are no working kdrive xfbdev and touchscreen tools in the new rootfs...

oh it seems there's an x server installed in 0827 rootfs with lwm as window manager !!!
however it doesn't want to start with my root user and my usual user get permission problems...

ohhh sleeeeeep time    see you tomorrow
**Fujitsu U1010 !!!  
**ex-Zaurus SL-C3000 owner with Debian kernel 2.6.24-yonggun

tux

  • Sr. Member
  • ****
  • Posts: 438
    • View Profile
    • http://
How To Install Debian On Your Zaurus (obsolete)
« Reply #153 on: October 31, 2007, 08:04:19 pm »
Quote from: zecrazytux
i had problems with this repo two days ago when i installed my debian for my c1000. There is an other repo (duplicate or an other domain name):
http://ftp.gnuab.org/debian

  Thanks for this: it is working as I type!!  

I am not going to risk running the 2nd script. I'll try doing a dpkg install in the afterinstall directory... The packages from the second script look like they are being fixed by apt-get -f install!!

I think my problems were partly because I used the tips from 2or0 manually before noticing the script tarball and trying to use those. There are a couple of tiny glitches in the scripts, but ZDevil is doing a hefty piece of work there! Thanks again ZDevil.  

I'll drink a large rum to zecrazytux, I thought I might need to redo the install....  Saved!
3200 aka BigZ, swapped in 16GB Sandisk Extreme III CF, Cacko 1.23 full,  new SDHC >2GB module,
SL860 Cacko 1.23 full, new SDHC >2GB module,
6000L SharpRom 1.12 + Tetsu kernel,
5500 TKC home on SD x 2 (with SD>1GB),
Archos PMA30 with OPEN PMA (Giraffe),
Nokia 770 (Hackers Edition)
Nokia 800 (ITOS 2008), 4GB SDHC x 2
Asus eeepc 4G (black), with 1GB ram, dual boot Xandros on SSD with Ubuntu Lucid Lynx on 16 GB SDHC,
Tmobile G1 Android (black), with Cyanogen's  Firerat's MTD script and Amon Ra Recovery 1.7.0
Tmobile HTC Wildfire.. rooted and on Cyanogen's 7.3 nightly Rom
Kopi/Kapi on everything bar the phone and the Nokias, there is a beta for the nokias...

All the above are retired

Samsung Note 8 N5110
Samsung Note N7105
FBreader on the lot!

ZDevil

  • Hero Member
  • *****
  • Posts: 1998
    • View Profile
    • http://
How To Install Debian On Your Zaurus (obsolete)
« Reply #154 on: October 31, 2007, 08:26:54 pm »
Quote from: tux
By the way ZDevil, the keymap fix you have in the directory won't work. it puts the 'fix' after the exit 0 line.   There is a problem with this start-stop daemon. I'm going to fiddle with reversing the fix and see what happens.
Could you be more specific about the keymap case? I still don't quite get what you mean by the "fix" and the "exit 0" (neither in the script nor in the keymap ... )  
The keymap was copied directly from my Z, which should work, otherwise my Z won't be doing anything these days. (The scripts and the files were done on my Z)
The start-stop daemon part is from 2or0. Maybe he can answer this.

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]

ZDevil

  • Hero Member
  • *****
  • Posts: 1998
    • View Profile
    • http://
How To Install Debian On Your Zaurus (obsolete)
« Reply #155 on: October 31, 2007, 08:28:26 pm »
Quote from: jpmatrix
Quote from: ZDevil
..snip..Yet I suppose the stuff in the 2nd-cfg.sh is still relevant, if there are no working kdrive xfbdev and touchscreen tools in the new rootfs...

oh it seems there's an x server installed in 0827 rootfs with lwm as window manager !!!
however it doesn't want to start with my root user and my usual user get permission problems...

Is the X server xorg or kdrive?

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]

tux

  • Sr. Member
  • ****
  • Posts: 438
    • View Profile
    • http://
How To Install Debian On Your Zaurus (obsolete)
« Reply #156 on: October 31, 2007, 09:51:46 pm »
Quote from: ZDevil
Quote from: tux
By the way ZDevil, the keymap fix you have in the directory won't work. it puts the 'fix' after the exit 0 line.   There is a problem with this start-stop daemon. I'm going to fiddle with reversing the fix and see what happens.
Could you be more specific about the keymap case? I still don't quite get what you mean by the "fix" and the "exit 0" (neither in the script nor in the keymap ... )  
The keymap was copied directly from my Z, which should work, otherwise my Z won't be doing anything these days. (The scripts and the files were done on my Z)
The start-stop daemon part is from 2or0. Maybe he can answer this.
 Hi ZDevil, I'll do my best to explain. In the first script the keymap fix is this:

# keymap
echo "Now let's load the right keymap for your Zaurus..."
cp keymap.map /etc/keymap.map  &&
loadkeys /etc/keymap.map &&
echo "loadkeys /etc/keymap.map" >> /etc/rc.local &&
echo "Done."
echo ""

The bit in bold appends the loadkeys command to the end of the rc.local file.

#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
<====== here is where the loadkeys bit should go, I think.
exit 0
<============ it actually gets put here.

I know because I've edited the file after running the script, it worked when I moved the line.

When this happens the script doesn't work. It does work if you edit the copied line to come before the exit 0 part. I could of course be talking rubbish from the effects of lack of sleep.   It's easy to check this out.

Now the bit about start-stop-daemon is easy to explain. There is nothing wrong with your script. My problem was that I did 2or0's fix for this daemon manually. I then ran your script. This resulted in a non-working daemon. I extracted the two necessary files from the tar and copied them into sbin. I then ran the commands from your script and it did what it was supposed to. So that problem was of my own making.  

I have a non-responsive gui screen in front of me. Your second script worked fine with me using zecrazytux's repository suggestion.      

I now need to sort out the touch screen aetc. But that will no doubt be explained somewhere in the posts in this thread. I must go to bed!

Cheers
3200 aka BigZ, swapped in 16GB Sandisk Extreme III CF, Cacko 1.23 full,  new SDHC >2GB module,
SL860 Cacko 1.23 full, new SDHC >2GB module,
6000L SharpRom 1.12 + Tetsu kernel,
5500 TKC home on SD x 2 (with SD>1GB),
Archos PMA30 with OPEN PMA (Giraffe),
Nokia 770 (Hackers Edition)
Nokia 800 (ITOS 2008), 4GB SDHC x 2
Asus eeepc 4G (black), with 1GB ram, dual boot Xandros on SSD with Ubuntu Lucid Lynx on 16 GB SDHC,
Tmobile G1 Android (black), with Cyanogen's  Firerat's MTD script and Amon Ra Recovery 1.7.0
Tmobile HTC Wildfire.. rooted and on Cyanogen's 7.3 nightly Rom
Kopi/Kapi on everything bar the phone and the Nokias, there is a beta for the nokias...

All the above are retired

Samsung Note 8 N5110
Samsung Note N7105
FBreader on the lot!

ZDevil

  • Hero Member
  • *****
  • Posts: 1998
    • View Profile
    • http://
How To Install Debian On Your Zaurus (obsolete)
« Reply #157 on: November 01, 2007, 02:50:01 am »
Hey, tux,
And this is what I need! I really need to find out exactly whether the issue comes from the scirpt itself or from other external factors.

keymap & /etc/rc.local:
Now I see the problem. Merci beaucoup!    
It is funny because I the same line was in the older zaurus-hardware-eabi tarball, but no one seemed to run into/spot this error.
But that is easy to fix, anyway.
[EDIT]
Here is my fix. In 1st-cfg.sh Line 49, replace
Quote
echo "loadkeys /etc/keymap.map"  >> /etc/rc.local &&
with
Quote
sed -i '/exit 0/ i\loadkeys /etc/keymap.map' /etc/rc.local &&
which works in my foo file.

start-stop-daemon:
Both scripts are intended to be used only once with a clean, fresh install without any tweaking. So again mixing and applying different tweaks together may have unexpected results, such as the start-stop-daemon thing.  I should state this clearly in the instructions.
But of course before this happens, we expect to see some glitches in the scripts...

Package feeds in sources.list:
I'll put both feed locations of zecrazytux's and mine in the sources.list. apt-get will be smart enough to grab packages from either.

Glad to know that the rest of the scripts run well. Thanks!
This is exactly why rushing to post to the wiki is not the best thing ... :lol

Please don't hesitate to report here if there is any other issue about the scripts.  I'll do my best to make things work.
« Last Edit: November 01, 2007, 03:30:12 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 #158 on: November 01, 2007, 03:47:46 am »
Quote from: ZDevil
Quote from: jpmatrix
Quote from: ZDevil
..snip..Yet I suppose the stuff in the 2nd-cfg.sh is still relevant, if there are no working kdrive xfbdev and touchscreen tools in the new rootfs...

oh it seems there's an x server installed in 0827 rootfs with lwm as window manager !!!
however it doesn't want to start with my root user and my usual user get permission problems...

Is the X server xorg or kdrive?

i'd say xorg but i'm not sure since i've first tried to instal kdrive before i see that there was yet an x server! and kdrive got conflicts....
« Last Edit: November 01, 2007, 03:48:21 am by jpmatrix »
**Fujitsu U1010 !!!  
**ex-Zaurus SL-C3000 owner with Debian kernel 2.6.24-yonggun

tux

  • Sr. Member
  • ****
  • Posts: 438
    • View Profile
    • http://
How To Install Debian On Your Zaurus (obsolete)
« Reply #159 on: November 01, 2007, 05:23:11 am »
Quote from: ZDevil
Hey, tux,
And this is what I need! I really need to find out exactly whether the issue comes from the scirpt itself or from other external factors.

keymap & /etc/rc.local:
Now I see the problem. Merci beaucoup!    
It is funny because I the same line was in the older zaurus-hardware-eabi tarball, but no one seemed to run into/spot this error.
But that is easy to fix, anyway.
[EDIT]
Here is my fix. In 1st-cfg.sh Line 49, replace
Quote
echo "loadkeys /etc/keymap.map"  >> /etc/rc.local &&
with
Quote
sed -i '/exit 0/ i\loadkeys /etc/keymap.map' /etc/rc.local &&
which works in my foo file.

start-stop-daemon:
Both scripts are intended to be used only once with a clean, fresh install without any tweaking. So again mixing and applying different tweaks together may have unexpected results, such as the start-stop-daemon thing.  I should state this clearly in the instructions.
But of course before this happens, we expect to see some glitches in the scripts...

Package feeds in sources.list:
I'll put both feed locations of zecrazytux's and mine in the sources.list. apt-get will be smart enough to grab packages from either.

Glad to know that the rest of the scripts run well. Thanks!
This is exactly why rushing to post to the wiki is not the best thing ... :lol

Please don't hesitate to report here if there is any other issue about the scripts.  I'll do my best to make things work.
 Glad to be of help.  Just trying cortez files and method.  I thought I'd need to start again with the Q17 method anyway. So I can test this and, unless I decide to persevere with the cortaz/popky one, I can try this method later on.
« Last Edit: November 01, 2007, 05:47:14 am by tux »
3200 aka BigZ, swapped in 16GB Sandisk Extreme III CF, Cacko 1.23 full,  new SDHC >2GB module,
SL860 Cacko 1.23 full, new SDHC >2GB module,
6000L SharpRom 1.12 + Tetsu kernel,
5500 TKC home on SD x 2 (with SD>1GB),
Archos PMA30 with OPEN PMA (Giraffe),
Nokia 770 (Hackers Edition)
Nokia 800 (ITOS 2008), 4GB SDHC x 2
Asus eeepc 4G (black), with 1GB ram, dual boot Xandros on SSD with Ubuntu Lucid Lynx on 16 GB SDHC,
Tmobile G1 Android (black), with Cyanogen's  Firerat's MTD script and Amon Ra Recovery 1.7.0
Tmobile HTC Wildfire.. rooted and on Cyanogen's 7.3 nightly Rom
Kopi/Kapi on everything bar the phone and the Nokias, there is a beta for the nokias...

All the above are retired

Samsung Note 8 N5110
Samsung Note N7105
FBreader on the lot!

jpmatrix

  • Hero Member
  • *****
  • Posts: 1014
    • View Profile
    • http://matrixmen.free.fr
How To Install Debian On Your Zaurus (obsolete)
« Reply #160 on: November 01, 2007, 05:29:00 am »
i've just run the 2nd-cfg.sh:

it ends with :

libsdl1.2debian-alsa is not installed (required for mplayer)

then

Now installing a few more hardare xxxx
2nd-cfg.sh : line 74 : dkpg : command not found    (little typo here
**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 #161 on: November 01, 2007, 05:30:40 am »
Thanks again. Could you edit this manually and see if the 2nd-cfg.sh runs to the end?

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 #162 on: November 01, 2007, 05:34:30 am »
Quote from: ZDevil
Thanks again. Could you edit this manually and see if the 2nd-cfg.sh runs to the end?

oh too late :

i run the correct dpkg -i with all packages of line 74

but i'm encoutering some dependencies troubles

now i'm running apt-get -f install and it seems to do the job

EDIT: i had to apt-get install apmd too ; it was not installed
« Last Edit: November 01, 2007, 05:39:52 am by jpmatrix »
**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 #163 on: November 01, 2007, 05:55:50 am »
Could you let me know which packages and dependencies are missing? I will add them to the tarball too.
« Last Edit: November 01, 2007, 05:59:10 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]

ZDevil

  • Hero Member
  • *****
  • Posts: 1998
    • View Profile
    • http://
How To Install Debian On Your Zaurus (obsolete)
« Reply #164 on: November 01, 2007, 06:09:07 am »
One more thing see if it helps:
The 2nd-cfg.sh can actually be run again without doing harm to the system (i believe), because it is basically an installation script for a number of packages from the feeds and those prepared by yonggun (2or0).

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]