Author Topic: Debian And Uboot  (Read 57932 times)

Chero

  • Hero Member
  • *****
  • Posts: 1140
    • View Profile
    • http://users.telenet.be/zaurususer/Chero
Debian And Uboot
« Reply #15 on: April 20, 2007, 03:59:48 pm »
I gave it a try (I know, I should be helping out Zdevil instead of playing somewhere else)

In short :

You need to have uboot installed .

You can find a kernel for C3X00 in this post (gentoo thread).. You also need the "modules" mentioned in the same thread.

Then you'll need the system : get it through the link in post 2 of this thread.

1. Format an SD-card in ext3.
2. extract the system to this card : warning : the archive has "armel-root-fs" as base-dir. You don't need this, the subdirs of "armel-root-fs" have to be in the root of the SD-card, or you'll get a kernel panic.
3. extract the "modules.tar.gz" as described in the gentoo-post mentioned above (where you got the file).
4. take a second (fat formatted) SD card.
5. put the "kernel.img" on it, together with an "autoboot.sh" (don't put anything else in the root of the card).
6. reboot your zaurus, hold the "OK" button, emergency-system will start.
7. when it asks to install the system, say Yes,
8. when it reboots, it will stop cause it has no init-files => put the card with system in it
9. put out the battery (and power), wait 5 secs, insert battery
10. debian boots.

(if you want to go back to pdaX, put the kernel.img from the release you were running on the fat-formatted card and replace the kernel following the same procedure => pdaX will boot again)

Question :
I've got it running, but how do I configure my wlan card without iwconfig ?
(i need wifi to connect to the web)

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.

Chero

  • Hero Member
  • *****
  • Posts: 1140
    • View Profile
    • http://users.telenet.be/zaurususer/Chero
Debian And Uboot
« Reply #16 on: April 20, 2007, 04:43:00 pm »
Update :
I downloaded wireless-tools and dhcpcd, tranferred them to my card and installed them from there. Now wifi is working and "apt-get update" just finished.

I'll play a little more.
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.

Chero

  • Hero Member
  • *****
  • Posts: 1140
    • View Profile
    • http://users.telenet.be/zaurususer/Chero
Debian And Uboot
« Reply #17 on: April 20, 2007, 05:42:35 pm »
Two other major problems that have to be solved :

How do I set the "hostname"?
My command prompt looks like :
Code: [Select]
(none):/home/chero$
When I try to start X, it says :
Code: [Select]
hostname : Host name lookup failureand fails.

Keyboard :
Major problem : How can I enter "/" ??
How to solve the rest of the issues with the keyboard ?

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.

anonuk

  • Full Member
  • ***
  • Posts: 176
    • View Profile
    • http://
Debian And Uboot
« Reply #18 on: April 20, 2007, 10:44:30 pm »
Quote
How do I set the "hostname"?

Set Hostname in /etc/hostname usually in debian..... Just put the hostname in this file.
* C3100 with Cacko 1.23 and debian (pocketworkstation) - 1Gb SD / 1Gb CF / Prism Wifi
* C-860 with Cacko 1.21b/pdaXrom dualboot with 256Mb CF / 512 Mb SD / Prism Wifi
* SL-5500 with Cacko rom with 128Mb SD home on SD / 96 Mb CF

Chero

  • Hero Member
  • *****
  • Posts: 1140
    • View Profile
    • http://users.telenet.be/zaurususer/Chero
Debian And Uboot
« Reply #19 on: April 21, 2007, 02:54:18 am »
@anonuk : Thanks, but I already figured that one out. I also needed to set it in /proc/sys/something.

Quote
Chero, what is your general impression of performance and stability?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=159429\"][{POST_SNAPBACK}][/a][/div]

Didn't play with it that much. I first need to get the keyboard right, working without a "/" on command line is impossible.
I'll try to get the pdaXrom keymappings in the debian system this evening.

Something I did try : I installed icewm, but when I try to "startx" it couldn't find "/etc/X11/X". Since I have no "/" I couldn't link "/usr/X11R6/bin/X" there.

Stability : command line is stable - wifi works now and I can apt-get (some packages are broken or missing). It sure needs some work to be usable (more than r198 and friends I believe).
Suspend and resume works, even outside X (I haven't got X running, remember).
Conclusion : it's too soon to comment on it anyway.

Comments from X-specialists (and others) are welcome.    

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.

louigi600

  • Sr. Member
  • ****
  • Posts: 471
    • View Profile
Debian And Uboot
« Reply #20 on: April 21, 2007, 07:40:39 am »
I have dealt with some of the general issues raised in this thread (using u-boot to boot a root filesystem on SD/MMC and using u-boot with other distros) amongst the issues and documentation that I put up on my home page (see signature).

You can allso download EABI cross toolchain from here:
http://www.codesourcery.com/gnu_toolchains/arm/download.html
Have fun ;-)
« Last Edit: April 21, 2007, 09:53:34 am by louigi600 »
Regards
David

SL-c760*  pdaXrom latest
SL-c860    pdaXrom latest ;-)
SL-c1000  pdaXrom Latest
Acer Aspire One running slackware and Clash
Toshiba AC100 running ARMedslack and Clash

*with some hardware problems but good for testing

ZDevil

  • Hero Member
  • *****
  • Posts: 1998
    • View Profile
    • http://
Debian And Uboot
« Reply #21 on: April 21, 2007, 10:06:51 am »
I see that the kernel and the rootfs are for SD.
How about CF or microdrive?

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://
Debian And Uboot
« Reply #22 on: April 21, 2007, 02:09:18 pm »
Quote
Didn't play with it that much. I first need to get the keyboard right, working without a "/" on command line is impossible.
I'll try to get the pdaXrom keymappings in the debian system this evening.

Something I did try : I installed icewm, but when I try to "startx" it couldn't find "/etc/X11/X". Since I have no "/" I couldn't link "/usr/X11R6/bin/X" there.

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

Don't have a machine around to play with.
Just googled a bit. How about ...

apt-get install console-data console-tools debconf
dpkg-reconfigure console-data

... to fix the keymap in console?
« Last Edit: April 21, 2007, 02:18:33 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]

ZDevil

  • Hero Member
  • *****
  • Posts: 1998
    • View Profile
    • http://
Debian And Uboot
« Reply #23 on: April 21, 2007, 04:06:36 pm »
Quote
Quote
It is however lacking many packages that are on pdaxrom already, xfce was broken and couldnt find firefox/iceweasel, abiword or many others. Then again, icewm + lots of console programs work wonderfully - just not as many packages as pocketworkstation.
There are 9000 packages in the armel feed, which seems to have been an initial test, e.g., the log says that firefox 1.5 failed simply because the source was not found.
Quote
Definitely interested in how to boot this on the Z though and how to get access to more packages if anyone has any other armel mirrors for debian.
[div align=\"right\"][{POST_SNAPBACK}][/a][/div]
The developer postings refer to some existing toolchains and feeds, including a toolchain and some packages built and online at OE/Angstrom.

EABI has been around a while, but there seems to have been a burst of activity lately. Someone with a better understanding of the technical details can perhaps give us an idea how useful this could be for the Z community.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=159415\"][{POST_SNAPBACK}][/a][/div]

Is it this one?    
[a href=\"http://www.angstrom-distribution.org/unstable/feed/armv5te/]http://www.angstrom-distribution.org/unstable/feed/armv5te/[/url]

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]

koen

  • Hero Member
  • *****
  • Posts: 1008
    • View Profile
    • http://dominion.thruhere.net/koen/cms/
Debian And Uboot
« Reply #24 on: April 21, 2007, 04:35:35 pm »
And don't forget that debian used Angstrom to build the armel repo: http://dominion.kabel.utwente.nl/koen/cms/arm-eabi-fame
Forums are not bugtrackers!!! Smart questions
Ångström release team
iPAQ h2210, iPAQ h5550, iPAQ hx4700, Zaurus SL-C700, Nokia 770, all running some form of GPE
My blog

louigi600

  • Sr. Member
  • ****
  • Posts: 471
    • View Profile
Debian And Uboot
« Reply #25 on: April 22, 2007, 03:24:42 am »
Quote
And don't forget that debian used Angstrom to build the armel repo: http://dominion.kabel.utwente.nl/koen/cms/arm-eabi-fame
[div align=\"right\"][a href=\"index.php?act=findpost&pid=159480\"][{POST_SNAPBACK}][/a][/div]
I saw the native arm eabi toolchain for Angstrom, I was wondering if there was also an equally good cross toolchain ?
In did snoop around on the Angstrom site a little but could not find it.
All I cluld find is how to setup a build environment to build Angstrom  on a debian based machine (but I use slackware 11). Anyone reported succesfull installation of the build environment on other distributions ?
Regards
David

SL-c760*  pdaXrom latest
SL-c860    pdaXrom latest ;-)
SL-c1000  pdaXrom Latest
Acer Aspire One running slackware and Clash
Toshiba AC100 running ARMedslack and Clash

*with some hardware problems but good for testing

Meanie

  • Hero Member
  • *****
  • Posts: 2803
    • View Profile
    • http://www.users.on.net/~hluc/myZaurus/
Debian And Uboot
« Reply #26 on: April 22, 2007, 04:00:16 am »
Quote
Quote
And don't forget that debian used Angstrom to build the armel repo: http://dominion.kabel.utwente.nl/koen/cms/arm-eabi-fame
[div align=\"right\"][a href=\"index.php?act=findpost&pid=159480\"][{POST_SNAPBACK}][/a][/div]
I saw the native arm eabi toolchain for Angstrom, I was wondering if there was also an equally good cross toolchain ?
In did snoop around on the Angstrom site a little but could not find it.
All I cluld find is how to setup a build environment to build Angstrom  on a debian based machine (but I use slackware 11). Anyone reported succesfull installation of the build environment on other distributions ?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=159491\"][{POST_SNAPBACK}][/a][/div]

use bitbake. it should build on any linux distro...
SL-C3000 - pdaXii13 build5.4.9 (based on pdaXrom beta3) / SL-C3100 - Sharp ROM 1.02 JP (heavily customised)
Netgear MA701 CF, SanDisk ConnectPlus CF, Socket Bluetooth CF, 4GB Kingston CF,  4GB pqi SD, 4GB ChoiceOnly SD, 2GB SanDisk SD USB Plus, 1GB SanDisk USB Plus, 1GB Transcend SD, 2GB SanDisk MicroSD with SD adaptor, Piel Frama Leather Case, GoldX 5-in-1 USB cable, USB hub, USB mouse, USB keyboard, USB ethernet, USB HDD, many other USB accessories...
(Zaurus SL-C3000 owner since March 14. 2005, Zaurus SL-C3100 owner since September 21. 2005)
http://members.iinet.net.au/~wyso/myZaurus - zBook3K

Chero

  • Hero Member
  • *****
  • Posts: 1140
    • View Profile
    • http://users.telenet.be/zaurususer/Chero
Debian And Uboot
« Reply #27 on: April 22, 2007, 05:03:31 am »
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.
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 #28 on: April 22, 2007, 05:41:50 am »
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?

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]

koen

  • Hero Member
  • *****
  • Posts: 1008
    • View Profile
    • http://dominion.thruhere.net/koen/cms/
Debian And Uboot
« Reply #29 on: April 22, 2007, 06:50:40 am »
Quote
Quote
Quote
And don't forget that debian used Angstrom to build the armel repo: http://dominion.kabel.utwente.nl/koen/cms/arm-eabi-fame
[div align=\"right\"][a href=\"index.php?act=findpost&pid=159480\"][{POST_SNAPBACK}][/a][/div]
I saw the native arm eabi toolchain for Angstrom, I was wondering if there was also an equally good cross toolchain ?
In did snoop around on the Angstrom site a little but could not find it.
All I cluld find is how to setup a build environment to build Angstrom  on a debian based machine (but I use slackware 11). Anyone reported succesfull installation of the build environment on other distributions ?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=159491\"][{POST_SNAPBACK}][/a][/div]

use bitbake. it should build on any linux distro...
[div align=\"right\"][a href=\"index.php?act=findpost&pid=159494\"][{POST_SNAPBACK}][/a][/div]

You mean OpenEmbedded?
Forums are not bugtrackers!!! Smart questions
Ångström release team
iPAQ h2210, iPAQ h5550, iPAQ hx4700, Zaurus SL-C700, Nokia 770, all running some form of GPE
My blog