Author Topic: Debian And Uboot  (Read 57934 times)

scoutme

  • Hero Member
  • *****
  • Posts: 579
    • View Profile
Debian And Uboot
« Reply #30 on: April 22, 2007, 07:40:25 am »
I'll be happy to try this Debian alternative, while waiting for stable pdaX and Louigi experiments (  )


I have a sl-c860... any success on this platform? With a small and simple how-to I'll be glad to sacrifice my 860 to esperiment

a little guide please

Chero

  • Hero Member
  • *****
  • Posts: 1140
    • View Profile
    • http://users.telenet.be/zaurususer/Chero
Debian And Uboot
« Reply #31 on: April 22, 2007, 02:40:17 pm »
Quote
Quote
Question :

When I try to "startx" I get :
Code: [Select]
Fatal server error:
Addscreen/Screeninit failed for driver 0

X10: fatal I/O error 104 (Connection reset by peer) on X server ":0.0"

I suppose this should be "zaurus:0.0" or "127.0.0.1:0.0", but how and where do I change this ?

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

Does the method in the pocketworkstation threads help here, like appending "DEB_DISPLAY=127.0.0.1:0" in  /etc/debroot.conf, or simply "export DISPLAY=127.0.0.1:0"?

Also have you fixed the "/" key?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=159499\"][{POST_SNAPBACK}][/a][/div]

Tried that export already : no go.

I fixed "/", but now my "-" is gone .  
Will look further if I get X running.

Anyone ?
(Why don't I speak Russian ? I might take some lessons after I get X running ...)

Chero.
HP-95LX -> HP Jornada 680 -> SL-C860 -> SL-C3100 -> Fuji u810 -> SL-C1000 -> HTC uni -> SL-C860 -> SL-C760.
March 12 2009 : Back because the Zaurus is one of a kind.
SL-C760 : pdaXrom
Pandora pre-ordered -> received and tested : great device but not my cup of tea -> sold.

Capn_Fish

  • Hero Member
  • *****
  • Posts: 2342
    • View Profile
    • http://
Debian And Uboot
« Reply #32 on: April 22, 2007, 03:28:30 pm »
Wow...I just wanted to know if I could rip the filesystem off of aDebian CD!    

This looks really neat. Is there a more recent version? Sid is kind of old, though. Are there any instructions for making an updated version?

One more question. Can I use pdaX's kernel with this and dual-boot? I assume it has been tried, but hey, it's worth a shot.
SL-C750- pdaXrom beta 1 (mostly unused)
Current distro: Gentoo

Chero

  • Hero Member
  • *****
  • Posts: 1140
    • View Profile
    • http://users.telenet.be/zaurususer/Chero
Debian And Uboot
« Reply #33 on: April 22, 2007, 04:12:44 pm »
More info should be over here : http://inv2004.livejournal.com/40703.html

It's russian, there is a more recent kernel over there, but it's a no go for me.
They also have a keymap-file. Downloaded it but don't know how to install yet.

Any translators ?

Chero.
HP-95LX -> HP Jornada 680 -> SL-C860 -> SL-C3100 -> Fuji u810 -> SL-C1000 -> HTC uni -> SL-C860 -> SL-C760.
March 12 2009 : Back because the Zaurus is one of a kind.
SL-C760 : pdaXrom
Pandora pre-ordered -> received and tested : great device but not my cup of tea -> sold.

svs57

  • Full Member
  • ***
  • Posts: 108
    • View Profile
    • http://
Debian And Uboot
« Reply #34 on: April 23, 2007, 07:50:20 am »
How I installed Debian armel

1. Install u-boot from pdaxrom
http://www.pdaxrom.org/?q=node/118
http://www.pdaxrom.org/download/1.1.0r121/...rgi-current.zip

2. Crosscompile kernel setting rootfs on SD in .config
CONFIG_CMDLINE="console=ttyS0,115200n8 console=tty1 noinitrd root=/dev/mmcblk0p1 rootfstype=ext3 rw  rootdelay=5"
I got patched kernel sources from gentoo project:
ftp://gentoo.ru/projects/handhelds/zaurus-c1000/

3. Get roofs
http://armel.applieddata.net/developers/li...root-fs.tar.bz2
untar it on SD.

4. Correct keys in console.
Put
loadkeys /etc/console-tools/keymap.map
in some rc file.
I get keymap.map from pdaxrom
I did this on PC.

5. add
g_ether
snd-soc-corgi
to /etc/modules

6. /etc/network/interfaces
auto lo
auto usb0
iface lo inet loopback
allow-hotplug usb0
mapping hotplug
script grep
map usb0
#
iface usb0 inet static
address 192.168.129.201
netmask 255.255.255.0
broadcast 192.168.129.255
gateway 192.168.129.200

7. correct /etc/init.d/ssh
to real start because rootfs script start-stop-daemon doesn't start sshd

8. Put modules on SD.

9. get xserver from
http://www.angstrom-distribution.org/unsta...-r6_armv5te.ipk
put Xfbdev to /usr/bin and make link
/usr/bin/X -> /usr/bin/Xfbdev

U-h-h-h!
I'm not a master of writing instruction
Also not a master in English.

ZDevil

  • Hero Member
  • *****
  • Posts: 1998
    • View Profile
    • http://
Debian And Uboot
« Reply #35 on: April 23, 2007, 08:14:12 am »
Quote
2. Crosscompile kernel setting rootfs on SD in .config
CONFIG_CMDLINE="console=ttyS0,115200n8 console=tty1 noinitrd root=/dev/mmcblk0p1 rootfstype=ext3 rw  rootdelay=5"
I got patched kernel sources from gentoo project:
ftp://gentoo.ru/projects/handhelds/zaurus-c1000/
[div align=\"right\"][a href=\"index.php?act=findpost&pid=159552\"][{POST_SNAPBACK}][/a][/div]

Thanks again svs57 for making things clearer and bringing us good news!    
So it will surely be great if someone can compile a kernel to run rootfs on CF or microdrive in Cxx00!

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]

svs57

  • Full Member
  • ***
  • Posts: 108
    • View Profile
    • http://
Debian And Uboot
« Reply #36 on: April 23, 2007, 09:33:12 am »
Forget to say that after compile kernel you need:

mkimage -A arm -O linux -T kernel -C none -a 0xa0008000 -e 0xa0008000 -n "Linux 2.6" -d zImage kernel.img

I need to know correct device name for rootfs to compile kernel for you. Also you zaurus model (1000 or 3000/3100).
Where can I place compiled kernel and modules?

I can't check compiled kernel. I have Zaurus 750.
No warranty

ZDevil

  • Hero Member
  • *****
  • Posts: 1998
    • View Profile
    • http://
Debian And Uboot
« Reply #37 on: April 23, 2007, 10:08:58 am »
Quote
Forget to say that after compile kernel you need:

mkimage -A arm -O linux -T kernel -C none -a 0xa0008000 -e 0xa0008000 -n "Linux 2.6" -d zImage kernel.img

I need to know correct device name for rootfs to compile kernel for you. Also you zaurus model (1000 or 3000/3100).
Where can I place compiled kernel and modules?

I can't check compiled kernel. I have Zaurus 750.
No warranty
[div align=\"right\"][{POST_SNAPBACK}][/a][/div]

Does this help?   [a href=\"http://tuxmobil.org/pda_survey_sharp.html]http://tuxmobil.org/pda_survey_sharp.html[/url]
So you are saying you run it on 750? So that means 860 will also do. But do we need a different kernel? I have a 860 exclusively for experiements so i am more than happy to try that. If the 750 kernel suits 860 then where can I download it?
I am going to receive my C3200 very soon. So a kernel for 3200 will be very much appreciated.
Thanks in advance!!  

PS yesterday louigi600 also walked me through to make a uimage of Angstrom for the pdaX uboot. It's kinda expected to be not working and it did fail ... but i learned something new and funny again.  
« Last Edit: April 23, 2007, 10:13:16 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]

Chero

  • Hero Member
  • *****
  • Posts: 1140
    • View Profile
    • http://users.telenet.be/zaurususer/Chero
Debian And Uboot
« Reply #38 on: April 23, 2007, 02:20:31 pm »
Quote
How I installed Debian armel

1. Install u-boot from pdaxrom
http://www.pdaxrom.org/?q=node/118
http://www.pdaxrom.org/download/1.1.0r121/...rgi-current.zip

2. Crosscompile kernel setting rootfs on SD in .config
CONFIG_CMDLINE="console=ttyS0,115200n8 console=tty1 noinitrd root=/dev/mmcblk0p1 rootfstype=ext3 rw  rootdelay=5"
I got patched kernel sources from gentoo project:
ftp://gentoo.ru/projects/handhelds/zaurus-c1000/

3. Get roofs
http://armel.applieddata.net/developers/li...root-fs.tar.bz2
untar it on SD.

4. Correct keys in console.
Put
loadkeys /etc/console-tools/keymap.map
in some rc file.
I get keymap.map from pdaxrom
I did this on PC.

5. add
g_ether
snd-soc-corgi
to /etc/modules

6. /etc/network/interfaces
auto lo
auto usb0
iface lo inet loopback
allow-hotplug usb0
mapping hotplug
script grep
map usb0
#
iface usb0 inet static
address 192.168.129.201
netmask 255.255.255.0
broadcast 192.168.129.255
gateway 192.168.129.200

7. correct /etc/init.d/ssh
to real start because rootfs script start-stop-daemon doesn't start sshd

8. Put modules on SD.

9. get xserver from
http://www.angstrom-distribution.org/unsta...-r6_armv5te.ipk
put Xfbdev to /usr/bin and make link
/usr/bin/X -> /usr/bin/Xfbdev

U-h-h-h!
I'm not a master of writing instruction
Also not a master in English.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=159552\"][{POST_SNAPBACK}][/a][/div]

This is what I was missing !!
(Felt kind of ashamed at first cause I must have used "loadkeys" a million times when I was running debian on my old acer laptop ...)

So thanks a million times !!!
(whenever you come to Belgium I'll pay you a beer or two)

Installing icewm right now, let's hope X will work OK.

If you want to compile a kernel for C3100 that boots of "/dev/hda1", I'll be happy to host it - just PM it to me. We could prepare several kernels (Cxx0 and Cxx00 for SD, CF and MD) so users don't have to do this before they can test this...
I'll also host other kernels, but I don't have space for the rootfs.

Having fun,
Chero.
HP-95LX -> HP Jornada 680 -> SL-C860 -> SL-C3100 -> Fuji u810 -> SL-C1000 -> HTC uni -> SL-C860 -> SL-C760.
March 12 2009 : Back because the Zaurus is one of a kind.
SL-C760 : pdaXrom
Pandora pre-ordered -> received and tested : great device but not my cup of tea -> sold.

ZDevil

  • Hero Member
  • *****
  • Posts: 1998
    • View Profile
    • http://
Debian And Uboot
« Reply #39 on: April 23, 2007, 05:37:12 pm »
Quote
Installing icewm right now, let's hope X will work OK.

If you want to compile a kernel for C3100 that boots of "/dev/hda1", I'll be happy to host it - just PM it to me. We could prepare several kernels (Cxx0 and Cxx00 for SD, CF and MD) so users don't have to do this before they can test this...
I'll also host other kernels, but I don't have space for the rootfs.

Having fun,
Chero.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=159585\"][{POST_SNAPBACK}][/a][/div]

That's a brilliant idea!  
Eager to know how icewm fares in this system on Z.

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]

kellyharding

  • Jr. Member
  • **
  • Posts: 94
    • View Profile
    • http://www.geekgothgrrl.co.uk
Debian And Uboot
« Reply #40 on: April 23, 2007, 07:02:30 pm »
I'd be willing to host Cxx0 files on my webspace. As well as any information/help/isntructions for Cxx0 models.

Easy enough for me to add an extra page as my site runs Drupal
SL-C860: cacko 1.23(currently pdaxii3 to test)
1Gb SD, 2Gb CF, various 512Mb SD and CF cards, Socket LP wifi, Socket Rev F Bluetooth. 2Gb SD and 4Gb CF on order.
--------------------------------------------------------------------------
PC: Athlon64 3000+ with XP/SimplyMepis
Mac: G4 Quicksilver 733 with OS X.4.9
Laptop: iBook G4 (2005) 1.42Ghz, OS X 4.9
Server: Dual PIII/500 with Debian 'etch'

adf

  • Hero Member
  • *****
  • Posts: 2807
    • View Profile
    • http://
Debian And Uboot
« Reply #41 on: April 23, 2007, 07:50:22 pm »
if X works-- please post a screenshot!
(and a few words comparing it to OZ or PdaX? if it isn't too much to ask...)
**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

Chero

  • Hero Member
  • *****
  • Posts: 1140
    • View Profile
    • http://users.telenet.be/zaurususer/Chero
Debian And Uboot
« Reply #42 on: April 24, 2007, 02:12:33 am »
Quote
if X works-- please post a screenshot!
(and a few words comparing it to OZ or PdaX? if it isn't too much to ask...)
[div align=\"right\"][a href=\"index.php?act=findpost&pid=159609\"][{POST_SNAPBACK}][/a][/div]

Yesterday I only got to "Waiting for X-server to accept connection" ...
So, no X so far ...

Maybe svs57 can post a shot and comment on it ?

I flashed my pdaXrom-kernel back last night, sorry but I need some things for work.
I don't think I can experiment more during this week ... Maybe later.

Quote
7. correct /etc/init.d/ssh
to real start because rootfs script start-stop-daemon doesn't start sshd

Could you post the fixed script ? I hate to do things someone else has done already ...

Chero.
« Last Edit: April 24, 2007, 02:14:47 am by Chero »
HP-95LX -> HP Jornada 680 -> SL-C860 -> SL-C3100 -> Fuji u810 -> SL-C1000 -> HTC uni -> SL-C860 -> SL-C760.
March 12 2009 : Back because the Zaurus is one of a kind.
SL-C760 : pdaXrom
Pandora pre-ordered -> received and tested : great device but not my cup of tea -> sold.

svs57

  • Full Member
  • ***
  • Posts: 108
    • View Profile
    • http://
Debian And Uboot
« Reply #43 on: April 24, 2007, 03:13:16 am »
Quote
Quote
if X works-- please post a screenshot!
(and a few words comparing it to OZ or PdaX? if it isn't too much to ask...)
[div align=\"right\"][a href=\"index.php?act=findpost&pid=159609\"][{POST_SNAPBACK}][/a][/div]

Yesterday I only got to "Waiting for X-server to accept connection" ...
So, no X so far ...

Maybe svs57 can post a shot and comment on it ?

I flashed my pdaXrom-kernel back last night, sorry but I need some things for work.
I don't think I can experiment more during this week ... Maybe later.

Quote
7. correct /etc/init.d/ssh
to real start because rootfs script start-stop-daemon doesn't start sshd

Could you post the fixed script ? I hate to do things someone else has done already ...

Chero.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=159621\"][{POST_SNAPBACK}][/a][/div]
start-stop-daemon utility in armel rootfs for some reason is faked.
It doesn't realy start sshd.
So I changed /etc/init.d/ssh script on SD:
Was:
case "$1" in
  start)
        check_for_no_start
        check_privsep_dir
        echo -n "Starting OpenBSD Secure Shell server: sshd"
        start-stop-daemon --start --quiet --pidfile /var/run/sshd.pid --exec /usr/sbin/sshd -- $SSHD_OPT
S
        echo "."
        ;;
Changed:
case "$1" in
  start)
        check_for_no_start
        check_privsep_dir
        echo -n "Starting OpenBSD Secure Shell server: sshd"
#        start-stop-daemon --start --quiet --pidfile /var/run/sshd.pid --exec /usr/sbin/sshd -- $SSHD_OPT
        /usr/sbin/sshd
S
        echo "."
        ;;
After I install real start-stop-daemon via apt-get I changed back.
"dpkg" package contains start-stop-daemon utility.
I made this because I need ssh access to Zaurus.

ZDevil

  • Hero Member
  • *****
  • Posts: 1998
    • View Profile
    • http://
Debian And Uboot
« Reply #44 on: April 24, 2007, 03:23:17 am »
Quote
I flashed my pdaXrom-kernel back last night, sorry but I need some things for work.
I don't think I can experiment more during this week ... Maybe later.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=159621\"][{POST_SNAPBACK}][/a][/div]
Hey, but i can! My 860 is free for some bold testing.    

Quote
I hate to do things someone else has done [div align=\"right\"][a href=\"index.php?act=findpost&pid=159621\"][{POST_SNAPBACK}][/a][/div]
Exactly ... spending hours and hours digging in tons of old posts to find dozens of fixes for basic functionality is truly a nightmare for a common user.
« Last Edit: April 24, 2007, 03:28:00 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]