OESF Portables Forum

Model Specific Forums => Sharp Zaurus => Zaurus - pdaXrom => Topic started by: Capn_Fish on April 17, 2007, 07:58:34 am

Title: Debian And Uboot
Post by: Capn_Fish on April 17, 2007, 07:58:34 am
I've got a question: If I rip the filesystem off of an ARM Debian CD and stick it on SD/CF, could I use uBoot to boot it on the Z?

EDIT: I forgot to ask what the magic key combos are to pass rootfs location to uBoot. Or do I have that backwards, that you pass where the kernel is?
Title: Debian And Uboot
Post by: svs57 on April 19, 2007, 02:22:41 am
Quote
I've got a question: If I rip the filesystem off of an ARM Debian CD and stick it on SD/CF, could I use uBoot to boot it on the Z?

EDIT: I forgot to ask what the magic key combos are to pass rootfs location to uBoot. Or do I have that backwards, that you pass where the kernel is?
[div align=\"right\"][{POST_SNAPBACK}][/a][/div] (http://index.php?act=findpost&pid=159062\")
I use Debian with u-boot on Zaurus.
I crosscompile linux kernel (CONFIG_CMDLINE set rootfs on SD)
Then I untar Debian rootfs on SD. [a href=\"http://armel.applieddata.net/developers/linux/eabi/armel-root-fs.tar.bz2]http://armel.applieddata.net/developers/li...root-fs.tar.bz2[/url]
see http://wiki.debian.org/ArmEabiHowto (http://wiki.debian.org/ArmEabiHowto)
Title: Debian And Uboot
Post by: stbrock on April 19, 2007, 10:13:33 am
Quote
I use Debian with u-boot on Zaurus.
Pocketworkstation was an excellent piece of work but ultimately didn't quite make for everyday use on the Zaurus for me. How well does this Arm EABI Debian work? Is it as fast as other 2.6 kernel distributions on the Zaurus or does running off the SD diminish the benefits? Are there customizations for the Zaurus keyboard, display, touchscreen available? Do the packages usually load and run reliably with apt-get like we are used to on the i386? Presumably, default screen size and dialog boxes beyond the edge of the screen are common? Is recompilation with Zaurus customization necessary? Desirable? Feasible?

The ultimate question is whether this Debian distribution plus some "Meanie-style" customizations to the Zaurus might be a shorter route to a laptop-style distribution on the Zaurus with an instant broad range of applications than the other efforts currently underway.

Thanks for the information and links.
Title: Debian And Uboot
Post by: svs57 on April 20, 2007, 04:18:19 am
A lot of questions

>How well does this Arm EABI Debian work?
I have only 2 problems:
1.Number of packages less than in original Debian.
I have to compile some packages on Z.
2. Problem with 4G SD. Suspend/resume destroy FS. It's happen only with SD>2G

>Is it as fast as other 2.6 kernel distributions on the Zaurus or does running off the SD diminish the benefits?
Much faster then pdaXrom 121
For example. I compile firefoox on r121 3 days but now 1 day.

>Are there customizations for the Zaurus keyboard, display, touchscreen available?
Yes. But I correct some mistakes.

>Do the packages usually load and run reliably with apt-get like we are used to on the i386?
Yes

>Presumably, default screen size and dialog boxes beyond the edge of the screen are common?
No. IMHO it depends on WM. I use icewm.

>Is recompilation with Zaurus customization necessary? Desirable? Feasible?
I recompile only missing packages

>The ultimate question is whether this Debian distribution plus some "Meanie-style" customizations >to the Zaurus might be a shorter route to a laptop-style distribution on the Zaurus with an instant >broad range of applications than the other efforts currently underway.
I feel myself on Z now as comfortable as on my PC.
Title: Debian And Uboot
Post by: Capn_Fish on April 20, 2007, 07:45:22 am
I may have to dual boot...
Title: Debian And Uboot
Post by: ZDevil on April 20, 2007, 10:07:02 am
That's very cool!

Also had a brief look at the related links:

ArmEabiPort (from Debian wiki)
http://wiki.debian.org/ArmEabiPort#head-d8...45efe93d48bbc94 (http://wiki.debian.org/ArmEabiPort#head-d8414284fa141a3f8d7fb6d9a45efe93d48bbc94)

Arm eabi port available (from Debian-arm mailing list)http://lists.debian.org/debian-arm/2007/01/msg00034.html

Is there any easy installation and setup guide for Zaurus? The official docs are rather technical for a common user (compared to the docs of OpenBSD    ).
Title: Debian And Uboot
Post by: svs57 on April 20, 2007, 10:15:06 am
Quote
That's very cool!

Also had a brief look at the related links:

ArmEabiPort (from Debian wiki)
http://wiki.debian.org/ArmEabiPort#head-d8...45efe93d48bbc94 (http://wiki.debian.org/ArmEabiPort#head-d8414284fa141a3f8d7fb6d9a45efe93d48bbc94)

Arm eabi port available (from Debian-arm mailing list)http://lists.debian.org/debian-arm/2007/01/msg00034.html

Is there any easy installation and setup guide for Zaurus? The official docs are rather technical for a common user (compared to the docs of OpenBSD    ).
[div align=\"right\"][a href=\"index.php?act=findpost&pid=159388\"][{POST_SNAPBACK}][/a][/div]
We can talk with you about this in russian forum (hpc.ru)
Title: Debian And Uboot
Post by: ZDevil on April 20, 2007, 10:20:58 am
Pointer (0 competence in russian)?  
Title: Debian And Uboot
Post by: stbrock on April 20, 2007, 10:54:56 am
Quote
A lot of questions
[div align=\"right\"][a href=\"index.php?act=findpost&pid=159361\"][{POST_SNAPBACK}][/a][/div]
Thanks for a lot of answers, and very encouraging answers, too. So here's a couple more. . . .    

Which Z are you running it on? Do you know of any limitations relevant to the Cxx00, C7X0/860, 6000 or 5xxx series?

If someone can post basic installation and customization instructions, I expect a good many here would give this a try and then post further customizations, compile missing packages, and so forth. Someone here would likely be willing to host a feed and other files and links related to the project.
Title: Debian And Uboot
Post by: ZDevil on April 20, 2007, 10:57:01 am
Quote
Thanks for a lot of answers, and very encouraging answers, too. So here's a couple more. . . .   

Which Z are you running it on? Do you know of any limitations relevant to the Cxx00, C7X0/860, 6000 or 5xxx series?

If someone can post basic installation and customization instructions, I expect a good many here would give this a try and then post further customizations, compile missing packages, and so forth. Someone here would likely be willing to host a feed and other files and links related to the project.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=159392\"][{POST_SNAPBACK}][/a][/div]
[span style=\'font-size:14pt;line-height:100%\']
Absolutely!!! [/span]
 
Title: Debian And Uboot
Post by: desertrat on April 20, 2007, 11:26:14 am
Quote
Absolutely!!!  
Hey you have to finish your work in getting a new pdaxrom released before you can go and play with something else  
Title: Debian And Uboot
Post by: anonuk on April 20, 2007, 11:41:40 am
Ive been running the arm EABI on my N800 for a little while with a VNC server, works kinda like pocketworkstation. 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. I think this is because it uses armel feed and therefore doesnt seem to work with regular debian mirrors...

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.
Title: Debian And Uboot
Post by: ZDevil on April 20, 2007, 12:18:09 pm
Quote
Ive been running the arm EABI on my N800 for a little while with a VNC server, works kinda like pocketworkstation. 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. I think this is because it uses armel feed and therefore doesnt seem to work with regular debian mirrors...

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\"][a href=\"index.php?act=findpost&pid=159397\"][{POST_SNAPBACK}][/a][/div]

Many new packages will flood in if the base system and the toolchain are stable and standard.    


Quote
Quote
Absolutely!!!  
Hey you have to finish your work in getting a new pdaxrom released before you can go and play with something else  
[div align=\"right\"][a href=\"index.php?act=findpost&pid=159396\"][{POST_SNAPBACK}][/a][/div]

Hey don't get me wrong. I am just writing user notes on pdaX for common users, not primarily the hacking stuff (coz i just can't). I think much of the info is shared across platforms when it comes to actual usage and applications.  
Title: Debian And Uboot
Post by: kellyharding on April 20, 2007, 12:33:37 pm
I'd be very interested in giving this a try.

Some easier to follow instructions would be welcome

I use Debian on my servers (and Debian derived on my desktop), so know Debian reasonably well.

If someone can write a small howto to get this port up and running on a Z =(specifically in my case a C860) and a small guide to getting a environment set up on a debian x86 box to do compilation stuff for extra packages? that'd be great
Title: Debian And Uboot
Post by: stbrock on April 20, 2007, 02:02:37 pm
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\"][a href=\"index.php?act=findpost&pid=159397\"][{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.
Title: Debian And Uboot
Post by: Chero 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). (https://www.oesf.org/forums/index.php?showtopic=23131&view=findpost&p=153135). 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. (https://www.oesf.org/forums/index.php?showtopic=23773&view=findpost&p=159270)

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.
Title: Debian And Uboot
Post by: Chero 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.  
Title: Debian And Uboot
Post by: Chero 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.
Title: Debian And Uboot
Post by: anonuk 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.
Title: Debian And Uboot
Post by: Chero 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.
Title: Debian And Uboot
Post by: louigi600 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 (http://www.codesourcery.com/gnu_toolchains/arm/download.html)
Have fun ;-)
Title: Debian And Uboot
Post by: ZDevil on April 21, 2007, 10:06:51 am
I see that the kernel and the rootfs are for SD.
How about CF or microdrive?
Title: Debian And Uboot
Post by: ZDevil 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?
Title: Debian And Uboot
Post by: ZDevil 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] (http://index.php?act=findpost&pid=159397\")
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]
Title: Debian And Uboot
Post by: koen 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 (http://dominion.kabel.utwente.nl/koen/cms/arm-eabi-fame)
Title: Debian And Uboot
Post by: louigi600 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 (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 ?
Title: Debian And Uboot
Post by: Meanie 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 (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...
Title: Debian And Uboot
Post by: Chero 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.
Title: Debian And Uboot
Post by: ZDevil 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?
Title: Debian And Uboot
Post by: koen 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 (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?
Title: Debian And Uboot
Post by: scoutme 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
Title: Debian And Uboot
Post by: Chero 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.
Title: Debian And Uboot
Post by: Capn_Fish 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.
Title: Debian And Uboot
Post by: Chero on April 22, 2007, 04:12:44 pm
More info should be over here : http://inv2004.livejournal.com/40703.html (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.
Title: Debian And Uboot
Post by: svs57 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/?q=node/118)
http://www.pdaxrom.org/download/1.1.0r121/...rgi-current.zip (http://www.pdaxrom.org/download/1.1.0r121/Zaurus-7x0-860/pdaXrom-1.1.0r121-Kathrin-u-boot-corgi-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/ (http://ftp://gentoo.ru/projects/handhelds/zaurus-c1000/)

3. Get roofs
http://armel.applieddata.net/developers/li...root-fs.tar.bz2 (http://armel.applieddata.net/developers/linux/eabi/armel-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 (http://www.angstrom-distribution.org/unstable/feed/armv5te/base/xserver-kdrive-fbdev_1.2.0-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.
Title: Debian And Uboot
Post by: ZDevil 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/ (http://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!
Title: Debian And Uboot
Post by: svs57 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
Title: Debian And Uboot
Post by: ZDevil 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] (http://index.php?act=findpost&pid=159558\")

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.  
Title: Debian And Uboot
Post by: Chero 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/?q=node/118)
http://www.pdaxrom.org/download/1.1.0r121/...rgi-current.zip (http://www.pdaxrom.org/download/1.1.0r121/Zaurus-7x0-860/pdaXrom-1.1.0r121-Kathrin-u-boot-corgi-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/ (http://ftp://gentoo.ru/projects/handhelds/zaurus-c1000/)

3. Get roofs
http://armel.applieddata.net/developers/li...root-fs.tar.bz2 (http://armel.applieddata.net/developers/linux/eabi/armel-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 (http://www.angstrom-distribution.org/unstable/feed/armv5te/base/xserver-kdrive-fbdev_1.2.0-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.
Title: Debian And Uboot
Post by: ZDevil 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.
Title: Debian And Uboot
Post by: kellyharding 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
Title: Debian And Uboot
Post by: adf 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...)
Title: Debian And Uboot
Post by: Chero 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.
Title: Debian And Uboot
Post by: svs57 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.
Title: Debian And Uboot
Post by: ZDevil 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.
Title: Debian And Uboot
Post by: svs57 on April 24, 2007, 03:44:50 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\"][{POST_SNAPBACK}][/a][/div] (http://index.php?act=findpost&pid=159609\")
ss01.png - icewm and GTKTerm2
ss02.png - fbreader (sorry book in cyrillic  )
ss03.png - zbedic dictionary
ss04.png - gaim IM ( again with cyrillic )
ss05.png - gnome-obex-send (choose device)
ss06.png - gnome-obex-send (sending file)
ss07.png - gnome-obex-server (incoming obex msg)

1. Both OZ and pdaXrom compiled without EABI.
That's why armel applications work faster.
2. It's Debian. It's means "apt" works correct.
No need manually check package depends,
easy compile packages.
3. I hope armel will be Debian official arch.

I also tested  angstrom project:
[a href=\"http://www.angstrom-distribution.org/]http://www.angstrom-distribution.org/[/url]
It also use libc 2.5 and compiled with EABI
But it use ipkg packages. Its cause a lot of problems.
Only one  angstrom project advantage I see
It use NAND as rootfs. And I can eject SD on fly.
But it also cause problem with busybox
UNIX utilitis in busybox are not full-value.
My choice is lost NAND and don't eject SD.
Title: Debian And Uboot
Post by: ZDevil on April 24, 2007, 03:50:15 am
Great! I will try it on my C860 tonight when I go back from work.
Thanks again, svs57
Title: Debian And Uboot
Post by: ShiroiKuma on April 24, 2007, 04:24:40 am
Quote
Only one  angstrom project advantage I see
It use NAND as rootfs. And I can eject SD on fly.
Can you modify the armel debian install so that you don't use SD, but use the internal harddisk in the SL-C3200 case? How?

If you could provide the SL-C3200 kernel, I can host it, and I will do some testing on a 3200.
Title: Debian And Uboot
Post by: svs57 on April 24, 2007, 09:04:53 am
Where can I put compiled kernel and modules?
Title: Debian And Uboot
Post by: ZDevil on April 24, 2007, 09:41:47 am
Quote
Where can I put compiled kernel and modules?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=159647\"][{POST_SNAPBACK}][/a][/div]

The kernels and modules are not that big (the forum upload limit is 50MB for each post now). Why don't you attach them here?  
Title: Debian And Uboot
Post by: ZDevil on April 24, 2007, 05:18:49 pm
grrrrrr....

I've got two 256MB and one 4GB SD cards. The 256MB cards are too small for the rootfs... And it takes too much trouble to back up my 4GB card (to reformat from ext2 to ext3) ...
Would there be a kernel for rootfs on CF?  
(svs57, please!  )
Title: Debian And Uboot
Post by: svs57 on April 25, 2007, 02:36:37 am
Here 2.6.20.2. kernel for zaurus 3000/3100. Rootfs on /dev/hda1.
I can't test it because I haven't this model.
Rename kernel_c3000_hda1.png to kernel.img and follow pdaXrom documentation.
Rename modules-c3000.tar.bz2.png to modules-c3000.tar.bz2 and untar it on CF.
I can't upload files with real file names.I got msg:
"Upload failed. You are not permitted to upload a file with that file extension"
Title: Debian And Uboot
Post by: ShiroiKuma on April 25, 2007, 03:06:25 am
Can you post all the armel feeds that you are using for apt-get, so I can check out what software is available...
Title: Debian And Uboot
Post by: svs57 on April 25, 2007, 03:36:21 am
Quote
Can you post all the armel feeds that you are using for apt-get, so I can check out what software is available...
[div align=\"right\"][{POST_SNAPBACK}][/a][/div] (http://index.php?act=findpost&pid=159729\")
deb [a href=\"http://armel-debs.applieddata.net/debian]http://armel-debs.applieddata.net/debian[/url] sid main
Title: Debian And Uboot
Post by: ZDevil on April 25, 2007, 06:59:28 am
Quote
Here 2.6.20.2. kernel for zaurus 3000/3100. Rootfs on /dev/hda1.
I can't test it because I haven't this model.
Rename kernel_c3000_hda1.png to kernel.img and follow pdaXrom documentation.
Rename modules-c3000.tar.bz2.png to modules-c3000.tar.bz2 and untar it on CF.
I can't upload files with real file names.I got msg:
"Upload failed. You are not permitted to upload a file with that file extension"
[div align=\"right\"][a href=\"index.php?act=findpost&pid=159727\"][{POST_SNAPBACK}][/a][/div]

Bravo!! Thanks a Zillion, svs57!
I think today I will buy a big enough (but not so big) SD exclusively for Debian on my 860 ...
And see if it also fits into my coming 3200 also.

Also, can you say a few words if there is any known issue in your testing, so that the new brave advernturers will have some clues ahead...  
Title: Debian And Uboot
Post by: svs57 on April 25, 2007, 07:27:39 am
Does it works on CF?
Some notes
1. Why I don't use Debian Xserver?
Because mouse buttons doesn't work. That's why I got Xserver from angstrom.
Binaries from angstrom are compatible with debian armel.
Use xmonobut to set second and third bottons.
xmonobut -m 67 -k 68 &
2. I use xbindkeys to switch keyboard language mapping.
Here is  ~/.xbindkeysrc
"/usr/local/bin/kb.sh"
c:37 + Mod2
"/usr/local/bin/br.sh - 5"
c:12 + Mod2
"/usr/local/bin/br.sh + 5"
c:13 + Mod2
---------------------------------
/usr/local/bin/kb.sh script which switch keyboard maping
---------------------------------
#!/bin/sh
rc=/home/root/.xmodmap_cur
if ( [ -w $rc ] & grep  us $rc &>/dev/null) then
 xmodmap /home/root/.xmodmap_ru
 echo ru >$rc
else
 xmodmap /home/root/.xmodmap_us
 echo us > $rc
fi
----------------------------------
Get xmodmap files from pdaXrom
/usr/local/bin/br.sh change brightness (Fn +2, Fn +4)
----------------------------------
#!/bin/sh
act=`cat /sys/class/backlight/corgi-bl/actual_brightness`
max=`cat /sys/class/backlight/corgi-bl/max_brightness`
if [ $1 == "+" ]; then
new=$(($act+$2))
else
new=$(($act-$2))
fi
if [ $new -ge $max ]; then
new=$max
fi
if [ $new -le 1 ]; then
new=1
fi
echo  $new > /sys/class/backlight/corgi-bl/brightness
echo $new >/root/.br
fi
---------------------------------------
/usr/sbin/switchev.sh - switch landscape portaint and etc
I forget where I got  "switchevd" from. I can't find its sources.
But I can send binary  to forum.
---------------------------------------
#!/bin/sh
export DISPLAY=:0
KBD_SW=`dc -e "$2 10 % p"`
    case $KBD_SW in
    0)
        echo 0 > /sys/class/graphics/fb0/blank
        xrandr -o normal
        ;;
    4)
        echo 0 > /sys/class/graphics/fb0/blank
        xrandr -o normal
        ;;
    3)
        echo 1 > /sys/class/graphics/fb0/blank
        ;;
    7)
        echo 1 > /sys/class/graphics/fb0/blank
        ;;
    2)
        xrandr -o left
        ;;
    6)
        xrandr -o left
        ;;
    esac
-------------------------------------------------------
If you find problem feel free to ask me.
May be I've solved it.
Title: Debian And Uboot
Post by: svs57 on April 25, 2007, 07:30:04 am
Forget to say. I have some problem with SD >2Gb.
Only first part of SD work correct.
Title: Debian And Uboot
Post by: ZDevil on April 25, 2007, 08:02:45 am
Thanks. Will try tonight on 860 first after getting a new cheap 512MB SD.
As for CF, I am still waiting the delivery of 3200, which was kept by the customs for a week (maybe they mistook this beast for some massive destructive device :lol ), but now seems to be on way ...
Title: Debian And Uboot
Post by: ShiroiKuma on April 25, 2007, 09:27:31 am
Quote
5. put the "kernel.img" on it, together with an "autoboot.sh" (don't put anything else in the root of the card).
So where is this autoboot.sh?
Title: Debian And Uboot
Post by: ZDevil on April 25, 2007, 09:43:14 am
Quote
Quote
5. put the "kernel.img" on it, together with an "autoboot.sh" (don't put anything else in the root of the card).
So where is this autoboot.sh?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=159758\"][{POST_SNAPBACK}][/a][/div]

I suppose it's the one in the pdaXrom uboot package.  
Title: Debian And Uboot
Post by: ShiroiKuma on April 25, 2007, 10:19:48 am
Yeah. Where is the pdaXrom uboot package?
Title: Debian And Uboot
Post by: Fatty on April 25, 2007, 10:30:22 am
Quote
Yeah. Where is the pdaXrom uboot package?
[div align=\"right\"][{POST_SNAPBACK}][/a][/div] (http://index.php?act=findpost&pid=159762\")

This one:
[a href=\"http://distro.ibiblio.org/pub/linux/distributions/pdaxrom/download/r198/c1000-c3x00/pdaXrom-1.1.0r198-Kathrin-akita-uboot.zip]pdaXrom-1.1.0r198-Kathrin-akita-uboot.zip[/url]
Title: Debian And Uboot
Post by: ShiroiKuma on April 25, 2007, 11:05:13 am
Quote
This one:
pdaXrom-1.1.0r198-Kathrin-akita-uboot.zip (http://distro.ibiblio.org/pub/linux/distributions/pdaxrom/download/r198/c1000-c3x00/pdaXrom-1.1.0r198-Kathrin-akita-uboot.zip)
[div align=\"right\"][a href=\"index.php?act=findpost&pid=159764\"][{POST_SNAPBACK}][/a][/div]
OK, should've looked before I ran this blindly. This is for akita not for spitz.

It seems I have fried my z with this. So I strongly recommend against anyone trying this on the SL-C3200.

I ran the update, uboot told me it's installed then reboot.

And now snap, it's a paperweight.

I can't bring up the D+B or the D+M menu. Can't boot in any other way. It just doesn't come up at all.

Oh no...

From what I've seen before, I've never met a situation where you couldn't bring up the D+M menu. What do I do now?

Anyone have any ideas? Or do I have to send the Z away for service?
Title: Debian And Uboot
Post by: Jon_J on April 25, 2007, 11:10:11 am
I have read somewhere when the D+M menu is overwritten by uboot, you can use Fn+D+M to get the menu that is in ROM (read only memory)
EDIT according to a page I read:

Service Menus D+M Shows service menus with RED title. (Flash memory)
Service Menus Fn+D+M Shows service menus with BLACK title (ROM memory)
Title: Debian And Uboot
Post by: ShiroiKuma on April 25, 2007, 11:34:40 am
OK, thanks for that.

So I flashed the kernel, installed the rootfs, and debian doesn't mount the rootfs upon boot, complains of extra options or whatever.

Oh, and it was rotated sideways on boot )

So back to Angstrom...

However, I was successful in just having the Angstrom kernel flashed and debian rootfs installed, so that might be worth a try...
Title: Debian And Uboot
Post by: Fatty on April 25, 2007, 11:57:01 am
Quote
Quote
This one:
pdaXrom-1.1.0r198-Kathrin-akita-uboot.zip (http://distro.ibiblio.org/pub/linux/distributions/pdaxrom/download/r198/c1000-c3x00/pdaXrom-1.1.0r198-Kathrin-akita-uboot.zip)
[div align=\"right\"][a href=\"index.php?act=findpost&pid=159764\"][{POST_SNAPBACK}][/a][/div]
OK, should've looked before I ran this blindly. This is for akita not for spitz.

It seems I have fried my z with this. So I strongly recommend against anyone trying this on the SL-C3200.

I ran the update, uboot told me it's installed then reboot.

And now snap, it's a paperweight.

I can't bring up the D+B or the D+M menu. Can't boot in any other way. It just doesn't come up at all.

Oh no...

From what I've seen before, I've never met a situation where you couldn't bring up the D+M menu. What do I do now?

Anyone have any ideas? Or do I have to send the Z away for service?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=159770\"][{POST_SNAPBACK}][/a][/div]

Though the name is akita, it should work with C1000-C3x00 as stated officially --- at least it works with my C3100. No intended to post blindly.
Title: Debian And Uboot
Post by: ZDevil on April 25, 2007, 12:47:39 pm
Quote
I have read somewhere when the D+M menu is overwritten by uboot, you can use Fn+D+M to get the menu that is in ROM (read only memory)
EDIT according to a page I read:

Service Menus D+M Shows service menus with RED title. (Flash memory)
Service Menus Fn+D+M Shows service menus with BLACK title (ROM memory)
[div align=\"right\"][a href=\"index.php?act=findpost&pid=159771\"][{POST_SNAPBACK}][/a][/div]

Yes, that's very true. That's exactly how I revived my 860 after uboot.
So uboot doesn't really fry anything at all.
It's just that most existing documentation don't mention the ROM DM Menu, perhaps just because they don't anticipate there would be uboot available.    
Title: Debian And Uboot
Post by: ZDevil on April 25, 2007, 12:49:20 pm
And now it's my turn to be the next guinea pig ... Will keep you folks posted.
Title: Debian And Uboot
Post by: ShiroiKuma on April 25, 2007, 01:55:03 pm
Looking forward to seeing how you fare.

I gave up. Too many things that I couldn't get working, the kernel, pccard stuff, touchscreen etc.

Figured no use runnig this debian system on an Angstrom kernel.

But maybe you'll do better.
Title: Debian And Uboot
Post by: scoutme on April 25, 2007, 05:01:24 pm
have you compiled a kernel for 860? If so, could you post it? I have no possibility to crosscompile at the moment, and I'll be glad to install the system on my 860
Title: Debian And Uboot
Post by: cal on April 25, 2007, 06:46:51 pm
I saw gnome-session and gnome-core in the feed...  Any chance Gnome will actually run?
Title: Debian And Uboot
Post by: ZDevil on April 25, 2007, 07:04:12 pm
Quote
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.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=159419\"][{POST_SNAPBACK}][/a][/div]

It seems something missing here:
In step 6, the system reboots (with OK key pressed and with the FAT SD holding kernel.img and autoboot.sh only), but it doesn't go to step 7: no question shows up but simply returns a prompt.
So i simply did a "reboot", the system stops.
Then I "hotswap" the FAT card with the ext3 card with the system.
Nothing happen.
Then I put out AC and battery and reinsert them. Power on.
Nothing happen.

Any clue?

I found one shortcut to reboot 860 in this case: cut off the power supply. press [Fn]+[D]+[M]. Get plug in AC and the DM menu will show up. go to "extra menu" and "reset". This way at least I can boot with the emergency system (with the FAT SD inserted), but no luck without it.
Title: Debian And Uboot
Post by: Capn_Fish on April 25, 2007, 07:17:02 pm
Did you try executing the script manually (/mnt/card/autoboot.sh)?
Title: Debian And Uboot
Post by: ZDevil on April 25, 2007, 07:37:37 pm
Quote
Did you try executing the script manually (/mnt/card/autoboot.sh)?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=159804\"][{POST_SNAPBACK}][/a][/div]

Thanks. Need to mount SD manually and execute autoboot.sh (this part should be added to the instructions).
The rebooting stops, as Chero says,
but again swap the card, cut off power, reinsert battery.
Nothing happen still.
More hint?
Title: Debian And Uboot
Post by: Capn_Fish on April 25, 2007, 08:10:03 pm
Did the kernel install OK?
Title: Debian And Uboot
Post by: ZDevil on April 26, 2007, 01:37:07 am
Thanks Capn_Fish for the hint.
The answer is plain simple: both the kernel Chero's post links to and svs57 uploads are for Cxx00 only, not for Cx00.
Last night I was just being over excited and overlooked this most important fact.
 

svs57, is there a kernel for 860? would the one you use on 750 will also suits 860?
Title: Debian And Uboot
Post by: kellyharding on April 26, 2007, 02:51:05 am
Quote
Thanks Capn_Fish for the hint.
The answer is plain simple: both the kernel Chero's post links to and svs57 uploads are for Cxx00 only, not for Cx00.
Last night I was just being over excited and overlooked this most important fact.
 

svs57, is there a kernel for 860? would the one you use on 750 will also suits 860?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=159825\"][{POST_SNAPBACK}][/a][/div]

Yes a seperate C7x0 kernel is needed (860 being same as 760, just cosmetic changes iirc).

I'm starting to wish I had the money to buy a Cxxx0, though did have a C1000 to play with whilst setting it up as a mysql/apache club door entry thing, which was a pleasant change to my C860.

Kelly
Title: Debian And Uboot
Post by: svs57 on April 26, 2007, 03:33:17 am
Sorry. Here are kernels and modules for 750/760/860
Title: Debian And Uboot
Post by: Chero on April 26, 2007, 03:48:35 am
Could someone please explain how I get X running ?

I can boot, set my keymap, get wireless going, apt-get, ... But no X.
I set /proc/sys/kernel/hostname to "zaurus"
installed xorg and icewm
installed angstrom-xserver
did "export DISPLAY=:0" (also tried "export DISPLAY=zaurus:0")

but when I "startx" I get "could not connect to display" or something like that.
What can I do ? Do I need a modified "startx" ?

Chero.
Title: Debian And Uboot
Post by: svs57 on April 26, 2007, 04:26:42 am
Quote
Could someone please explain how I get X running ?

I can boot, set my keymap, get wireless going, apt-get, ... But no X.
I set /proc/sys/kernel/hostname to "zaurus"
installed xorg and icewm
installed angstrom-xserver
did "export DISPLAY=:0" (also tried "export DISPLAY=zaurus:0")

but when I "startx" I get "could not connect to display" or something like that.
What can I do ? Do I need a modified "startx" ?

Chero.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=159831\"][{POST_SNAPBACK}][/a][/div]
Try
startx -- -fp /usr/share/fonts/X11/misc/:/usr/share/fonts/X11/100dpi/:/usr/share/fonts/X11/75dpi/:/usr/s
hare/fonts/X11/Type1/:/usr/share/fonts/truetype/freefont/:/usr/share/fonts/truetype/ttf-dejavu/
If doesn't help write here full error messages.
Title: Debian And Uboot
Post by: Chero on April 26, 2007, 04:38:52 am
Quote
Quote
Could someone please explain how I get X running ?

I can boot, set my keymap, get wireless going, apt-get, ... But no X.
I set /proc/sys/kernel/hostname to "zaurus"
installed xorg and icewm
installed angstrom-xserver
did "export DISPLAY=:0" (also tried "export DISPLAY=zaurus:0")

but when I "startx" I get "could not connect to display" or something like that.
What can I do ? Do I need a modified "startx" ?

Chero.
[div align=\"right\"][{POST_SNAPBACK}][/a][/div] (http://index.php?act=findpost&pid=159831\")
Try
startx -- -fp /usr/share/fonts/X11/misc/:/usr/share/fonts/X11/100dpi/:/usr/share/fonts/X11/75dpi/:/usr/s
hare/fonts/X11/Type1/:/usr/share/fonts/truetype/freefont/:/usr/share/fonts/truetype/ttf-dejavu/
If doesn't help write here full error messages.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=159833\"][{POST_SNAPBACK}][/a][/div]

Thanks for the hint, I'll try when I get home this evening - left my "debian-SD" over there.

edit : I also found this page in the angstrom wiki : [a href=\"http://linuxtogo.org/gowiki/ZaurusAkita]http://linuxtogo.org/gowiki/ZaurusAkita[/url] where the talk about starting X in an alternative way:
Code: [Select]
# Xfbdev -br -pn -dpi 200 -rgba rgb -screen 480x640@270 :0 -noreset &
# DISPLAY=:0 x-window-manager



Chero.
Title: Debian And Uboot
Post by: ZDevil on April 26, 2007, 08:35:38 am
Back to Chero's guide again:

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.

I can get to step 8.
(I can only boot into the emergency system WITHOUT the batter)
When rebooting (first mount /dev/mmcblk0p1 /mnt/card; then run /mnt/card/autoboot.sh),
the system does stop and dim a little bit.
Then i take out the FAT card and insert the ext3 card with the system.
And then take out the AC, and wait 5 seconds.
Then I put in the battery.
Press On. Darkness. Nothing ....
Title: Debian And Uboot
Post by: svs57 on April 26, 2007, 08:48:24 am
Quote
Back to Chero's guide again:

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.

I can get to step 8.
(I can only boot into the emergency system WITHOUT the batter)
When rebooting (first mount /dev/mmcblk0p1 /mnt/card; then run /mnt/card/autoboot.sh),
the system does stop and dim a little bit.
Then i take out the FAT card and insert the ext3 card with the system.
And then take out the AC, and wait 5 seconds.
Then I put in the battery.
Press On. Darkness. Nothing ....
[div align=\"right\"][a href=\"index.php?act=findpost&pid=159847\"][{POST_SNAPBACK}][/a][/div]
Strange. u-boot should start autoboot.sh automaticly.
I use sd with ext3 fs.
Many times i did this without any problems.
Today I compiled 2.6.21 kernel and flash it.
Title: Debian And Uboot
Post by: ZDevil on April 26, 2007, 08:48:41 am
Also i found the uncompressed module tarball with the kernel dir as "2.6.20.2-corgi". Do i need to rename it to "2.6.20.2"?
Title: Debian And Uboot
Post by: ShiroiKuma on April 26, 2007, 08:52:06 am
Just leave the card in, remove the AC cord and the battery. Then hold down OK, while holding OK insert just the power cord, and still holding OK press the power button.

The Z will boot into the pdaXrom emergency system, it'll find the kernel etc. and install it, then you reboot and debian will boot...

I still think the hard efforts are not working seeing as how to so much isn't working in comparison with Angstrom.

The only thing cool would be the working apt-get in debian etc.

But I think it's gonna take a lotta sweat to get this debian into a workable state that Angstrom is in already now...

Good luck and post your progress.
Title: Debian And Uboot
Post by: ZDevil on April 26, 2007, 09:14:07 am
After booting into the emergency system,
uname -a gives me this:
Code: [Select]
Linux (none) 2.6.16 #1 PREEMPT Sat Apr 14 12:47:16 UTC 2007 armv5tel unknownIs there something wrong here?


Ok, let me make things most explicit here.
What i have just done:
1. Flashed u-boot (with 4 files: emercenc.img, u-boot.bin, updater.pro, updater.sh) with my FAT SD
2. Reboot into the Emergency system
3. Remove the u-boot files and copy autoboot.sh (from the uboot tarball) and kernel.img (the 1st attachment in post #78) on this SD
4. Mount /dev/mmcblk0p1 /mnt/card
5. Run /mnt/card/autoboot.sh
6. When asked "Proceed with pdaxrom installation or boot to emergency system? [y/n]", press y and hit [Enter]
7. "Reboot ... The system is going down NOW !! ...... Please stand by while rebooting the system." Then the screen dims and the system stops.
8. Eject the FAT SD, and insert the EXT3 SD with the extracted rootfs and modules
9. Remove AC (no battery to remove because it was alalready removed in order to get into the Emergency System in step 2.); power cut, black out.
10. Press [OK] and keep pressing it)
11. Reinsert AC (still pressing [OK])
12. Hit [On], back to the Emergency System again (step 2). That's exactly the starting point.

Thanks again!
Title: Debian And Uboot
Post by: svs57 on April 26, 2007, 09:26:59 am
Quote
Also i found the uncompressed module tarball with the kernel dir as "2.6.20.2-corgi". Do i need to rename it to "2.6.20.2"?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=159851\"][{POST_SNAPBACK}][/a][/div]
No
Title: Debian And Uboot
Post by: Chero on April 26, 2007, 09:35:43 am
Quote
10. Press [OK] and keep pressing it)
11. Reinsert AC (still pressing [OK])
12. Hit [On], back to the Emergency System again (step 2). That's exactly the starting point.

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

switch step 2 and 3, then 4 shouldn't be necessary and 5 will be done automatically.

Don't press OK in step 10/11/12, the kernel automatically looks for the SD to boot from. No need to press anything.
Title: Debian And Uboot
Post by: ShiroiKuma on April 26, 2007, 09:41:10 am
Quote
7. "Reboot ... The system is going down NOW !! ...... Please stand by while rebooting the system." Then the screen dims and the system stops.
8. Eject the FAT SD, and insert the EXT3 SD with the extracted rootfs and modules
It should just boot now, man. That's what it did for me. Normally. Without the OK routine. If only I could remember if I had to do anything else, but I don't think so... Does it not boot normally now, just hitting power?
Title: Debian And Uboot
Post by: Chero on April 26, 2007, 09:43:53 am
Quote
12. Hit [On], back to the Emergency System again (step 2). That's exactly the starting point.

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

That's the fun of it, you can keep going ....            
Title: Debian And Uboot
Post by: danr on April 26, 2007, 09:58:44 am
I managed to boot Debian on an 860 using svs57's guide.  My SD card was originally formatted as ext2, and Debian didn't like that, so I created a journal on it to make it an ext3-type.  Debian booted OK after that.

I couldn't find loadkeys anywhere, so do I need to copy it over from Angstrom or something?  It's not very usable when I can't type '/'!

I installed the Angstrom X server, but it couldn't find a touch screen library or something, so I guess I will need to install Debian xorg or something to get that to work.

BTW I have streamlined flashing of the kernel by using some backup and restore scripts which I found somewhere - can't remember unfortunately, but they are called backup.sh and restore.sh.  The backup script creates files boot.pdx, emerg.pdx, kernel.pdx, root.pdx, which I have on a CF card.  To jump between pdaXrom and Debian kernels, I simply use

Code: [Select]
restore.sh -e -r -u -s /mnt/cf/backup
after renaming the relevant kernel to kernel.pdx, and putting it in /mnt/cf/backup.  I've copied the scripts to the CF card so I can run this script from the uboot emergency screen, or directly from pdaXrom.

If no-one can find the scripts, I'll post them here.  Apologies to the author for not remembering where I found them!

Dan
Title: Debian And Uboot
Post by: ZDevil on April 26, 2007, 10:05:50 am
Quote
Quote
10. Press [OK] and keep pressing it)
11. Reinsert AC (still pressing [OK])
12. Hit [On], back to the Emergency System again (step 2). That's exactly the starting point.

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

switch step 2 and 3, then 4 shouldn't be necessary and 5 will be done automatically.

Don't press OK in step 10/11/12, the kernel automatically looks for the SD to boot from. No need to press anything.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=159862\"][{POST_SNAPBACK}][/a][/div]


No... Step 5 doesn't come automatically; autoboot.sh doesn't run itself.
It's on the SD and SD is not mounted when rebooting into the Emergency System.
Would there be something wrong with the script?  I am using the uboot autoboot.sh from r197 (Corgi).

This time i don't do steps 10-12; i plug out the AC. Count 5 and take a deep breath. Plug in AC. Power on. Bingo! Nothing.


Quote
Quote
12. Hit [On], back to the Emergency System again (step 2). That's exactly the starting point.

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

That's the fun of it, you can keep going ....            
[div align=\"right\"][a href=\"index.php?act=findpost&pid=159864\"][{POST_SNAPBACK}][/a][/div]

"All great deeds and all great thoughts have a ridiculous beginning."
Title: Debian And Uboot
Post by: ShiroiKuma on April 26, 2007, 10:10:51 am
Quote
"All great deeds and all great thoughts have a ridiculous beginning."
) Sometimes.

Just a thought that ocurred to me now, since I'd still maybe like to play with it.

Since I was using Angstrom kernel to boot the debian anyway, I'd like to extract the debian rootfs alongside Angstrom's so that I could use them in parallel, anyone have thoughts on how to do this, aside the plain old chroot.

I mean something along the lines, if I have hda1 partition with Angstrom's rootfs and hda2 partition with debian, can I switch the partition numbers in fdisk or whatnot, so that hda2 becomes hda1 and the Z boots debian on restart?

Or have subfolders on debfs and angfs on hda1 root and then symlink all the dirs in one sub to hda1's root so that that system would boot?

What'd be the best way to do this, any thoughts anyone?
Title: Debian And Uboot
Post by: svs57 on April 26, 2007, 10:11:03 am
If you have pdaXrom installed on NAND you can mount it and get files you need.
mkdir /mnt/nand
mount  -t jffs2 /dev/mtdblock2 /mnt/nand

"/" doesn't work that's why I want to set  loading modules, start sshd and correct keyboard mapping on sd before first boot.
It's really trick.
Title: Debian And Uboot
Post by: ZDevil on April 26, 2007, 10:14:02 am
Right. I also notice one thing:
After the rebooting into Debian fails, i power the device off.
With both the AC and battery in.
But the charging light is not on.

[EDIT]
I think i know why: when booting into the emergency system without the battery, there is an error message about something wrong about charging. So after the boot failure, putting in the battery won't charge it because something is not working from the beginning. But the tricky thing is there is no way for me to boot into emergency sytem WITH the battery in.

"One must believe that Sisyphus is happy"
Title: Debian And Uboot
Post by: ZDevil on April 26, 2007, 11:03:25 am
That's all what i got when booting into the emergency system:
Code: [Select]
    pdaXrom emergency system
    =========================
    pdaXrom [Husky]
    Loading /etc/sysconfig/keyboard/Husky/keymap.map

    Proccesing /etc/profile... Done

        -sh-3.00#
autoboot.sh on SD doesn't load; SD not mounted when boot...

Note: My SD is 256MB, FAT formatted.
Title: Debian And Uboot
Post by: bunkford on April 26, 2007, 11:04:27 am
I got debian running without using u-boot for anyone that is interested.
I used the Angstrom Kernel (2.6.20.6) to boot off the micro drive of my 3200.
I used Angstrom's install script to uncompress the rootfs and install the kernel.
Title: Debian And Uboot
Post by: ZDevil on April 26, 2007, 11:08:01 am
Quote
I got debian running without using u-boot for anyone that is interested.
I used the Angstrom Kernel (2.6.20.6) to boot off the micro drive of my 3200.
I used Angstrom's install script to uncompress the rootfs and install the kernel.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=159873\"][{POST_SNAPBACK}][/a][/div]

Could you give more detail here? A step-by-step guide will be great.
It seems I also need to swtich to Angstrom again to boot Debian.
Title: Debian And Uboot
Post by: ShiroiKuma on April 26, 2007, 11:32:28 am
That's easy... That's what I did yesterday.

Just follow the Angstrom installation guide (for the 3200 that is). Put zImage.bin and update.sh in your CF card and you will have to repack the armel-root-fs file so that you remove the leading armel-root-fs directory from it. Then tar gzip the resultant files to a hdimage1.tgz and put this file on your CF too.

Then just reboot, using the OK-PowerOn combo and Angstrom kernel will flash and the rootfs will expand into hda1 and you'll boot up debian with the Angstrom kernel.
Title: Debian And Uboot
Post by: ZDevil on April 26, 2007, 11:48:54 am
Quote
That's easy... That's what I did yesterday.

Just follow the Angstrom installation guide (for the 3200 that is). Put zImage.bin and update.sh in your CF card and you will have to repack the armel-root-fs file so that you remove the leading armel-root-fs directory from it. Then tar gzip the resultant files to a hdimage1.tgz and put this file on your CF too.

Then just reboot, using the OK-PowerOn combo and Angstrom kernel will flash and the rootfs will expand into hda1 and you'll boot up debian with the Angstrom kernel.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=159876\"][{POST_SNAPBACK}][/a][/div]

Ok. Sounds surprisingly simple. Let me try this with SD.  
Just two quick questions:
-- Should the card be FAT or EXT2/3?
-- Do i need to use another name instead of "hdimage1.tgz" if i want to boot from SD (something like "mmcdimage1.tgz"?)
Title: Debian And Uboot
Post by: ShiroiKuma on April 26, 2007, 11:56:02 am
FAT. It should always be FAT when you're flashing the Zaurus.

I don't know how booting off of an SD works in Angstrom. Obviously I've done this with the 3200 kernel which boots straight off of the HDD.

You might wanna check OZ FAQ etc., since in this respect Angstrom is identical to OZ, to see if it can be done... Don't know.
Title: Debian And Uboot
Post by: ZDevil on April 26, 2007, 03:13:59 pm
Yet another failed experiement...    

I tried both on my 1gb SD (naming the rootfs as "mmcdimage1.tgz" and "hdaimage1.tgz") and 512mb CF ("hdaimage1.tgz")
Both cards are FAT.
The tgz is done with 7Zip on a Windows PC.

Angstrom kernel installs successfully.

Tons of error messages run amok after
"INIT: version 2.78 booting"

The last line reads:
Code: [Select]
INIT: ld "ln" respawning too fast: disabled for 5 minutesSince then, the system is condemned to repeat forever the same meaningless task of booting the flawed system, only to see it roll down and fail again.    

A question pops up: is it necessary to partition the card into

/dev/hda1 = base system mounted under /
/dev/hda2 = user home mounted under /home
/dev/hda3 = storage mounted under /media/hd

as described in https://www.oesf.org/index.php?title=C3100_OpenZaurus (https://www.oesf.org/index.php?title=C3100_OpenZaurus)?

Will give one very last try again by making a new tgz again on my home mac.
Title: Debian And Uboot
Post by: bunkford on April 26, 2007, 07:53:17 pm
Could someone post a link to a tared rootfs that is already set up for the zaurus with correct key mappings and xserver for example?
Title: Debian And Uboot
Post by: ShiroiKuma on April 27, 2007, 03:22:18 am
Quote
Yet another failed experiement...   

I tried both on my 1gb SD (naming the rootfs as "mmcdimage1.tgz" and "hdaimage1.tgz") and 512mb CF ("hdaimage1.tgz")

The last line reads:
Code: [Select]
INIT: ld "ln" respawning too fast: disabled for 5 minutes
That's because the rootfs didn't install on the harddrive, assuming you've done this on a 3200.

The file must be named hdimage1.tgz not hdaimage1.tgz.
Title: Debian And Uboot
Post by: ZDevil on April 27, 2007, 04:34:50 am
Quote
Quote
Yet another failed experiement...    

I tried both on my 1gb SD (naming the rootfs as "mmcdimage1.tgz" and "hdaimage1.tgz") and 512mb CF ("hdaimage1.tgz")

The last line reads:
Code: [Select]
INIT: ld "ln" respawning too fast: disabled for 5 minutes
That's because the rootfs didn't install on the harddrive, assuming you've done this on a 3200.

The file must be named hdimage1.tgz not hdaimage1.tgz.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=159919\"][{POST_SNAPBACK}][/a][/div]

Oops, sorry, it's my typo actually. I did use hdimage1.tgz. But it fails to install.
I begin to suspect that there is something wrong when i was making the right tarball.
Will try that again this evening.
But probably i will be busy playing with OpenBSD on my 3200.
Title: Debian And Uboot
Post by: ShiroiKuma on April 27, 2007, 08:23:28 am
Are you sure you have moved all the subdirs out of the armel-root-fs directory into root?

Also you don't have to flash the harddisk. If you've flashed the kernel, then just reboot into D+B, then:

Code: [Select]
cd /tmp
mkdir 1
mount /dev/hda1 1
mkdir cf
mount /dev/hdc1 cf
cd 1
And untar the contents of the tar or whatever with debiar rootfs here...

Then reboot and debian will boot with the Angstrom kernel and it'll be no prob.
Title: Debian And Uboot
Post by: ZDevil on April 27, 2007, 05:55:45 pm
One more try with the pdaX uboot.
Reformat my 1GB SD into ext3. Extract all the dirs of the rootfs on it again.
This time I use the autoboot.sh from r121.  The FAT SD auto mounts and runs the script.
Still when I say "y", the system stops at "Please stand by while rebooting the system"
And this is exactly where i got stuck.
Swapping in the ext3 SD. Cut off power. Put in battery. Power on. Nothing happen.

Now i am thinking of Chero's step 8 again: "8. when it reboots, it will stop cause it has no init-files => put the card with system in it "
Does the "reboot" here means the system CAN reboot after choosing "y" in the emergency system, or simply needs swapping the card to make it boot? I can't even see what Chero describes as the INIT step ...

So let me ask again: WHEN exactly shall i swap the FAT card with the ext3 card?

I wonder if anyone here can verify that the kernel(s) attached here are working for 860.

Also in svs57's attachment of the modules for 860, i see another kernel.img there, which is missing in the original module from the gentoo post. Should i use this one?
Title: Debian And Uboot
Post by: Chero on April 28, 2007, 02:32:18 am
Quote
One more try with the pdaX uboot.
Reformat my 1GB SD into ext3. Extract all the dirs of the rootfs on it again.
This time I use the autoboot.sh from r121.  The FAT SD auto mounts and runs the script.
Still when I say "y", the system stops at "Please stand by while rebooting the system"
And this is exactly where i got stuck.
Swapping in the ext3 SD. Cut off power. Put in battery. Power on. Nothing happen.

Now i am thinking of Chero's step 8 again: "8. when it reboots, it will stop cause it has no init-files => put the card with system in it "
Does the "reboot" here means the system CAN reboot after choosing "y" in the emergency system, or simply needs swapping the card to make it boot? I can't even see what Chero describes as the INIT step ...

So let me ask again: WHEN exactly shall i swap the FAT card with the ext3 card?

I wonder if anyone here can verify that the kernel(s) attached here are working for 860.

Also in svs57's attachment of the modules for 860, i see another kernel.img there, which is missing in the original module from the gentoo post. Should i use this one?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=159986\"][{POST_SNAPBACK}][/a][/div]

When you have a working kernel, but no SD with rootfs inserted, you should get a whole lot of text on the screen ending with some message about not finding the init files ....

I tried 2.4.20 kernels from hpc.ru and had the same problem. After installing the kenel : darkness. The only kernel working for me is the one from the gentoo thread (2.6.19). (I haven't tried the ones attached here, I will when I get X running). Maybe the Angstrom-way is the way to go, but that means no more pdaXrom on flash memory ....

Chero.
Title: Debian And Uboot
Post by: ZDevil on April 28, 2007, 03:13:59 am
Quote
When you have a working kernel, but no SD with rootfs inserted, you should get a whole lot of text on the screen ending with some message about not finding the init files ....

I tried 2.4.20 kernels from hpc.ru and had the same problem. After installing the kenel : darkness. The only kernel working for me is the one from the gentoo thread (2.6.19). (I haven't tried the ones attached here, I will when I get X running). Maybe the Angstrom-way is the way to go, but that means no more pdaXrom on flash memory ....
[div align=\"right\"][a href=\"index.php?act=findpost&pid=159997\"][{POST_SNAPBACK}][/a][/div]

Thanks ...
So it may be the case that the attached kernel is not working for 860.
I guess the INIT error you are talking about is where the booting stops at something like "INIT: version xxx booting"  Am i right?
Although Angstrom installs very easily and smoothly (unlike uboot), it seems the rootfs can only run from CF/microdrive but not SD. But for 860 i need the free CF slot for networking.
Title: Debian And Uboot
Post by: koen on April 28, 2007, 03:24:00 am
Quote
Quote
When you have a working kernel, but no SD with rootfs inserted, you should get a whole lot of text on the screen ending with some message about not finding the init files ....

I tried 2.4.20 kernels from hpc.ru and had the same problem. After installing the kenel : darkness. The only kernel working for me is the one from the gentoo thread (2.6.19). (I haven't tried the ones attached here, I will when I get X running). Maybe the Angstrom-way is the way to go, but that means no more pdaXrom on flash memory ....
[div align=\"right\"][a href=\"index.php?act=findpost&pid=159997\"][{POST_SNAPBACK}][/a][/div]

Thanks ...
So it may be the case that the attached kernel is not working for 860.
I guess the INIT error you are talking about is where the booting stops at something like "INIT: version xxx booting"  Am i right?
Although Angstrom installs very easily and smoothly (unlike uboot), it seems the rootfs can only run from CF/microdrive but not SD. But for 860 i need the free CF slot for networking.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=159999\"][{POST_SNAPBACK}][/a][/div]

I can easily give you a kernel that boots from sd, It's a one line change in OE.
Title: Debian And Uboot
Post by: ShiroiKuma on April 28, 2007, 03:39:26 am
Quote
/usr/sbin/switchev.sh - switch landscape portaint and etc
I forget where I got  "switchevd" from. I can't find its sources.
But I can send binary  to forum.
Please send it.
Quote
---------------------------------------
#!/bin/sh
export DISPLAY=:0
KBD_SW=`dc -e "$2 10 % p"`
    case $KBD_SW in
    0)
        echo 0 > /sys/class/graphics/fb0/blank
        xrandr -o normal
        ;;
    4)
        echo 0 > /sys/class/graphics/fb0/blank
        xrandr -o normal
        ;;
    3)
        echo 1 > /sys/class/graphics/fb0/blank
        ;;
    7)
        echo 1 > /sys/class/graphics/fb0/blank
        ;;
    2)
        xrandr -o left
        ;;
    6)
        xrandr -o left
        ;;
    esac
[div align=\"right\"][a href=\"index.php?act=findpost&pid=159745\"][{POST_SNAPBACK}][/a][/div]
Is this the switchev.sh?
Title: Debian And Uboot
Post by: koen on April 28, 2007, 03:43:57 am
Quote
Quote
/usr/sbin/switchev.sh - switch landscape portaint and etc
I forget where I got  "switchevd" from. I can't find its sources.
But I can send binary  to forum.
Please send it.

[div align=\"right\"][{POST_SNAPBACK}][/a][/div]
 (http://index.php?act=findpost&pid=160002\")

switchevd is part of zaurusd: [a href=\"http://www.angstrom-distribution.org/repo/?action=details&pnm=zaurusd]http://www.angstrom-distribution.org/repo/...ils&pnm=zaurusd[/url]
Title: Debian And Uboot
Post by: ShiroiKuma on April 28, 2007, 04:08:11 am
So I've found... Just installing zaurusd in debian now...

I'm having interesting results with this debian with Angstrom kernel so far.

Modified many things, installed a ton of missing packages.

X runs fine, but so far the display is rotated in X and calibration is all messed up.

I'll try using ts.conf from Angstrom and getting the proper rotation done, I guess for this you'll have to install zaurusd gpe-conf and whatnot more...

Was originally thinking of providing a tared bzipped rootfs of working debian (am very close to working now), but seeing as how it already is up to 1 gig, I'm not sure...

Well let's see if I can get it working...

The best bet is probably using Angstrom, and in paralel you can chroot this armel debian. Or is there a performance hit using chroot?
Title: Debian And Uboot
Post by: ZDevil on April 28, 2007, 07:08:15 am
Quote
I can easily give you a kernel that boots from sd, It's a one line change in OE.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=160000\"][{POST_SNAPBACK}][/a][/div]

Yes, please!  
I would also like to see how it fares to run Angstrom off SD on 860.
Actually i prefer flashing without uboot as i can see normal user won't fancy multi booting. Erasing the OK mode is no good for the faint of the heart.
Title: Debian And Uboot
Post by: pkwong on April 29, 2007, 10:59:27 am
Quote
2. Problem with 4G SD. Suspend/resume destroy FS. It's happen only with SD>2G
any fixes on this? does this only happen on a 4g partition or all 4g cards?
Title: Debian And Uboot
Post by: koen on April 29, 2007, 04:21:00 pm
Quote
Quote
I can easily give you a kernel that boots from sd, It's a one line change in OE.
[div align=\"right\"][{POST_SNAPBACK}][/a][/div] (http://index.php?act=findpost&pid=160000\")

Yes, please!  

grab one from [a href=\"http://www.angstrom-distribution.org/unstable/images/c7x0/20070429/]http://www.angstrom-distribution.org/unsta.../c7x0/20070429/[/url]

Quote
Actually i prefer flashing without uboot as i can see normal user won't fancy multi booting.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=160014\"][{POST_SNAPBACK}][/a][/div]

Preaching to the choir, dude. Friends don't let friends flash bootloaders without confirmed jtag access.
Title: Debian And Uboot
Post by: Meanie on April 29, 2007, 09:45:25 pm
Quote
Quote
Quote
I can easily give you a kernel that boots from sd, It's a one line change in OE.
[div align=\"right\"][{POST_SNAPBACK}][/a][/div] (http://index.php?act=findpost&pid=160000\")

Yes, please!  

grab one from [a href=\"http://www.angstrom-distribution.org/unstable/images/c7x0/20070429/]http://www.angstrom-distribution.org/unsta.../c7x0/20070429/[/url]

Quote
Actually i prefer flashing without uboot as i can see normal user won't fancy multi booting.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=160014\"][{POST_SNAPBACK}][/a][/div]

Preaching to the choir, dude. Friends don't let friends flash bootloaders without confirmed jtag access.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=160084\"][{POST_SNAPBACK}][/a][/div]


I don't think uboot is a good idea for the Zaurus either...
Title: Debian And Uboot
Post by: Capn_Fish on April 29, 2007, 09:58:30 pm
Getting rid of it would probably make more people try it...It is a deterrent.
Title: Debian And Uboot
Post by: Meanie on April 29, 2007, 10:06:16 pm
Quote
Getting rid of it would probably make more people try it...It is a deterrent.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=160099\"][{POST_SNAPBACK}][/a][/div]

It is one of the reason I am not using anything after beta4
Title: Debian And Uboot
Post by: Capn_Fish on April 29, 2007, 10:15:34 pm
Quote
Quote
Getting rid of it would probably make more people try it...It is a deterrent.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=160099\"][{POST_SNAPBACK}][/a][/div]

It is one of the reason I am not using anything after beta4
[div align=\"right\"][a href=\"index.php?act=findpost&pid=160100\"][{POST_SNAPBACK}][/a][/div]
We should get rid of it then...so you can make pdaxii13 2.6 edition!  
Title: Debian And Uboot
Post by: adf on April 29, 2007, 11:24:27 pm
An experimental system that at leasts risks a noticeable degree of unnecessary frustration in extricating one's self from it is probably a bad idea--agreed.  I tried u-boot once, had some problems recovering ( I got better) and haven't touched it again.  If it led to some really optimized stable system with options for reasonable upgrades, I'd be more interested.  
As is, I agree- if it isn't necessary (and from here it looks like it isn't) maybe it should be dropped?  Importing altboot might be nice, though.
Title: Debian And Uboot
Post by: ZDevil on April 30, 2007, 03:23:45 am
Quote
grab one from http://www.angstrom-distribution.org/unsta.../c7x0/20070429/ (http://www.angstrom-distribution.org/unstable/images/c7x0/20070429/)
[div align=\"right\"][a href=\"index.php?act=findpost&pid=160084\"][{POST_SNAPBACK}][/a][/div]

Many thanks! Will go try it on 860 after setting up OpenBSD on 3200.
Title: Debian And Uboot
Post by: ZDevil on April 30, 2007, 11:00:01 am
Quote
grab one from http://www.angstrom-distribution.org/unsta.../c7x0/20070429/ (http://www.angstrom-distribution.org/unstable/images/c7x0/20070429/)
[div align=\"right\"][a href=\"index.php?act=findpost&pid=160084\"][{POST_SNAPBACK}][/a][/div]

I have downloaded the new zImage. But how should i name the tarball rootfs on SD? Is it still hdimage1.tgz or something else? Thanks again.
Title: Debian And Uboot
Post by: koen on April 30, 2007, 12:44:05 pm
Quote
Quote
grab one from http://www.angstrom-distribution.org/unsta.../c7x0/20070429/ (http://www.angstrom-distribution.org/unstable/images/c7x0/20070429/)
[div align=\"right\"][a href=\"index.php?act=findpost&pid=160084\"][{POST_SNAPBACK}][/a][/div]

I have downloaded the new zImage. But how should i name the tarball rootfs on SD? Is it still hdimage1.tgz or something else? Thanks again.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=160121\"][{POST_SNAPBACK}][/a][/div]

extract it manually using a cardreader
Title: Debian And Uboot
Post by: ZDevil on May 01, 2007, 07:31:10 am
After extracting the debian eabi system subdirs (without the root armel dir) to an SD, I installed the new zImage.bin (zImage-2.6.20-c7x0-sdboot.bin) together with updater.sh with this SD.
Reboot and got this after setting the system clock:
Code: [Select]
VFS: Cannot open root device "mmcblk0p1" or unknown-block(0,0)
Please append a correct "root=" boot option
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown block (0,0)
Tried on both FAT and ext3 formatted cards. Same result.
Thanks.
Title: Debian And Uboot
Post by: danr on May 01, 2007, 08:35:50 am
Quote
Code: [Select]
VFS: Cannot open root device "mmcblk0p1" or unknown-block(0,0)
Please append a correct "root=" boot option
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown block (0,0)
Tried on both FAT and ext3 formatted cards. Same result.
Thanks.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=160186\"][{POST_SNAPBACK}][/a][/div]

When you formatted the SD card as ext3, did you make a partition first?  I.e. does /dev/mmcblk0p1 exist (in pdaXrom for example), or only /dev/mmcblk0?  And what does fdisk /dev/mmcblk0 say when you select "p" to print the partition table?  On my SD card it has one partition, Id = 83, System = Linux.

Dan
Title: Debian And Uboot
Post by: ZDevil on May 01, 2007, 08:39:41 am
Quote
Quote
Code: [Select]
VFS: Cannot open root device "mmcblk0p1" or unknown-block(0,0)
Please append a correct "root=" boot option
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown block (0,0)
Tried on both FAT and ext3 formatted cards. Same result.
Thanks.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=160186\"][{POST_SNAPBACK}][/a][/div]

When you formatted the SD card as ext3, did you make a partition first?  I.e. does /dev/mmcblk0p1 exist (in pdaXrom for example), or only /dev/mmcblk0?  And what does fdisk /dev/mmcblk0 say when you select "p" to print the partition table?  On my SD card it has one partition, Id = 83, System = Linux.

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

Thanks. First i fdisk /dev/mmcblk0 with type 83, then mkfs.ext3 /dev/mmcblk0p1.
Title: Debian And Uboot
Post by: ZDevil on May 01, 2007, 11:25:49 am
Just took a short break and had a look at my 860 again for a few minutes.  
This time i reflashed the sdboot zImage (20070429) and the updater.sh (20070422) from CF, and left the debian system with the extracted modules-2.6.20.6-c7x0.tgz (20070429) on SD. Reboot. Both SD and CF were mounted, and I got this:
Code: [Select]
VFS: Mounted root (vfat filesystem) readonly.
Freeing init memory: 80k
Warning: unable to open an initial console.
Kernel panic - not syncing: No init found.  Try passing init= option to kernel.
But there is init under /sbin in the debian rootfs on SD.
So what now?  
Title: Debian And Uboot
Post by: koen on May 01, 2007, 11:59:13 am
Quote
Just took a short break and had a look at my 860 again for a few minutes. 
This time i reflashed the sdboot zImage (20070429) and the updater.sh (20070422) from CF, and left the debian system with the extracted modules-2.6.20.6-c7x0.tgz (20070429) on SD. Reboot. Both SD and CF were mounted, and I got this:
Code: [Select]
VFS: Mounted root (vfat filesystem) readonly.
Freeing init memory: 80k
Warning: unable to open an initial console.
Kernel panic - not syncing: No init found.  Try passing init= option to kernel.
But there is init under /sbin in the debian rootfs on SD.
So what now? 
[div align=\"right\"][a href=\"index.php?act=findpost&pid=160197\"][{POST_SNAPBACK}][/a][/div]

The first clue is 'vfat', that's unsuited for a linux system. You (also) lack a /dev/console node, which is probably caused by vfat not being able to represent devnodes.
Title: Debian And Uboot
Post by: ZDevil on May 01, 2007, 12:09:03 pm
Quote
The first clue is 'vfat', that's unsuited for a linux system. You (also) lack a /dev/console node, which is probably caused by vfat not being able to represent devnodes.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=160202\"][{POST_SNAPBACK}][/a][/div]

Thanks. There is a /dev/console in the extracted system. Will make a ext3 card and try again later.
Title: Debian And Uboot
Post by: svs57 on May 02, 2007, 05:45:59 am
Quote
Quote
2. Problem with 4G SD. Suspend/resume destroy FS. It's happen only with SD>2G
any fixes on this? does this only happen on a 4g partition or all 4g cards?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=160068\"][{POST_SNAPBACK}][/a][/div]
Only on second part of 4G SD.
First 2G partition works correct.
"mkfs.ext3 -j" hang on second 2G partition.
If I create it on cardreader it also destroy fs after some times or hang PDA.
Title: Debian And Uboot
Post by: ShiroiKuma on May 02, 2007, 06:04:34 am
svs57:

Are you using firefox/iceweasel with your debian?

If so, did you build it yourself? I can't find armel firefox package anywhere. I've built firefox for Angstrom in OE, but it segfaults...
Title: Debian And Uboot
Post by: Chero on May 02, 2007, 06:18:55 am
Quote
svs57:

Are you using firefox/iceweasel with your debian?

If so, did you build it yourself? I can't find armel firefox package anywhere. I've built firefox for Angstrom in OE, but it segfaults...
[div align=\"right\"][a href=\"index.php?act=findpost&pid=160247\"][{POST_SNAPBACK}][/a][/div]

Doesn't firefox from debian-arm work ?

Can anyone put a rootfs with X included online somewhere or send it through dropload or alike ?

Thanks a million.
Chero.
Title: Debian And Uboot
Post by: svs57 on May 02, 2007, 07:17:17 am
Quote
svs57:

Are you using firefox/iceweasel with your debian?

If so, did you build it yourself? I can't find armel firefox package anywhere. I've built firefox for Angstrom in OE, but it segfaults...
[div align=\"right\"][a href=\"index.php?act=findpost&pid=160247\"][{POST_SNAPBACK}][/a][/div]
I also tried Angrstorm's firefox with the same result.
Building firefox from sources failed: shlibsign segfault.
It is also problem for me. I use dillo while havn't firefox.
Title: Debian And Uboot
Post by: ShiroiKuma on May 02, 2007, 09:35:25 am
Quote
Doesn't firefox from debian-arm work ?
Not within armel.
Title: Debian And Uboot
Post by: svs57 on May 03, 2007, 09:24:31 am
From debian arm forum:

Subject: Re: Is armel project alive?

There is probably some porting work to be done, before you can get
to xulrunner and the firefox/iceweasel etc. But the project is
going on, not just on armel-debs site. The new packages are arriving:

deb http://ftp.gnuab.org/debian/ (http://ftp.gnuab.org/debian/) sid main
deb http://ftp.gnuab.org/debian/ (http://ftp.gnuab.org/debian/) unreleased main

where "sid" is unmodified packages from, well, sid. unreleased
is includes packages patched for armel (currently attr and apt -
do not fail to install those instead of sid version!)

gnuab repository does not hold binary-all packages, for those
you need a a repository from a mirror close to you.

deb http://ftp.fi.debian.org/debian (http://ftp.fi.debian.org/debian) dists/unstable/main/binary-arm/

Finally, you will want the original armel port repo.

deb http://armel-debs.applieddata.net/debian/ (http://armel-debs.applieddata.net/debian/) sid main

Notice it will take a few weeks until gnuab repository will catch up
sid, until then it's going to be quite rough ride.
Title: Debian And Uboot
Post by: johnsutton on May 03, 2007, 10:46:55 am
Quote
Quote
Quote
2. Problem with 4G SD. Suspend/resume destroy FS. It's happen only with SD>2G
any fixes on this? does this only happen on a 4g partition or all 4g cards?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=160068\"][{POST_SNAPBACK}][/a][/div]
Only on second part of 4G SD.
First 2G partition works correct.
"mkfs.ext3 -j" hang on second 2G partition.
If I create it on cardreader it also destroy fs after some times or hang PDA.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=160245\"][{POST_SNAPBACK}][/a][/div]

Let me just check this before I make an unwise purchase:  If I buy a 4G SD card but (for the time being at least) restrict my use of it to a partition covering the first 2G, then I should not have any problems?  (To be more accurate, I should not have any problems _in_addition_ to those which I would have had had I bought a 2G card instead?)

[Very OT aside for those who enjoy syntactic teasers: having just used a "double had" in that last sentence, I am reminded of an English paragraph consisting of 2 sentences which involves 11 consecutive uses of the word "had".  I kid you not!  So here it is.  Try to punctuate this so that it makes sense:

Smith where Jones had had had had had had had had had had had the examiner's approval

It describes a difference in the answers which 2 candidates (Smith and Jones) give in a written English examination, and the attitude of the examiner to these answers.  Anybody who can punctuate that paragraph deserves the English Syntax Genius Award!  Apologies in advance for the blatantly English-language bias of this contribution.]
Title: Debian And Uboot
Post by: svs57 on May 04, 2007, 02:17:42 am
Quote
Let me just check this before I make an unwise purchase:  If I buy a 4G SD card but (for the time being at least) restrict my use of it to a partition covering the first 2G, then I should not have any problems?  (To be more accurate, I should not have any problems _in_addition_ to those which I would have had had I bought a 2G card instead?)
...
Don't buy SDHC SD card. Zaurus SD controller doesn't support SDHC.
I'm not sure that all nonSDCH 4G SD card will work correct on Zaurus.
Better test it before buy.
Title: Debian And Uboot
Post by: koen on May 04, 2007, 03:28:04 am
Quote
Quote
Let me just check this before I make an unwise purchase:  If I buy a 4G SD card but (for the time being at least) restrict my use of it to a partition covering the first 2G, then I should not have any problems?  (To be more accurate, I should not have any problems _in_addition_ to those which I would have had had I bought a 2G card instead?)
...
Don't buy SDHC SD card. Zaurus SD controller doesn't support SDHC.
I'm not sure that all nonSDCH 4G SD card will work correct on Zaurus.
Better test it before buy.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=160427\"][{POST_SNAPBACK}][/a][/div]

SDHC is software, not hardware.
Title: Debian And Uboot
Post by: svs57 on May 04, 2007, 06:46:55 am
Quote
Quote
Quote
Let me just check this before I make an unwise purchase:  If I buy a 4G SD card but (for the time being at least) restrict my use of it to a partition covering the first 2G, then I should not have any problems?  (To be more accurate, I should not have any problems _in_addition_ to those which I would have had had I bought a 2G card instead?)
...
Don't buy SDHC SD card. Zaurus SD controller doesn't support SDHC.
I'm not sure that all nonSDCH 4G SD card will work correct on Zaurus.
Better test it before buy.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=160427\"][{POST_SNAPBACK}][/a][/div]

SDHC is software, not hardware.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=160434\"][{POST_SNAPBACK}][/a][/div]
Did you test it on Zaurus. I talk with kernel mmc driver maintainer.
He told me that need hardware support for SDHC.
Title: Debian And Uboot
Post by: johnsutton on May 04, 2007, 09:34:00 am
Quote
Quote
Quote
Quote
Let me just check this before I make an unwise purchase:  If I buy a 4G SD card but (for the time being at least) restrict my use of it to a partition covering the first 2G, then I should not have any problems?  (To be more accurate, I should not have any problems _in_addition_ to those which I would have had had I bought a 2G card instead?)
...
Don't buy SDHC SD card. Zaurus SD controller doesn't support SDHC.
I'm not sure that all nonSDCH 4G SD card will work correct on Zaurus.
Better test it before buy.
[div align=\"right\"][{POST_SNAPBACK}][/a][/div]
 (http://index.php?act=findpost&pid=160427\")

SDHC is software, not hardware.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=160434\"][{POST_SNAPBACK}][/a][/div]
Did you test it on Zaurus. I talk with kernel mmc driver maintainer.
He told me that need hardware support for SDHC.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=160447\"][{POST_SNAPBACK}][/a][/div]

Yes, that is my understanding as well - SDHC will not work.  Although this new format may (or may not, not sure) have exactly the same physical pinout as the old format, the way the pins are driven is different and the hardware logic in the old host devices (such as the Zaurus) cannot be made to drive the pins in the required way and no upgrade to the firmware which controls this hardware logic is capable of changing that.  But I'm guessing here, based on a quick search and scan of relevant documents...

Anyway, I've taken the plunge and bought a TS4GSD150 since that seems to be the (old format) variety which has the best/most reports on [a href=\"http://www.tyrannozaurus.com/?q=wiki/SDCompatList]http://www.tyrannozaurus.com/?q=wiki/SDCompatList[/url]
Title: Debian And Uboot
Post by: Antikx on May 05, 2007, 01:47:48 am
Quote
Did you test it on Zaurus. I talk with kernel mmc driver maintainer.
He told me that need hardware support for SDHC.
[div align=\"right\"][{POST_SNAPBACK}][/a][/div] (http://index.php?act=findpost&pid=160447\")
Koen reported it working a little while back: [a href=\"http://www.tyrannozaurus.com/?q=node/666]http://www.tyrannozaurus.com/?q=node/666[/url]
I'm sure many were surprised to hear it.
We are still waiting to hear if SDHC's work in the latest pdaXrom.
Please let us know if you have success or failure.
Title: Debian And Uboot
Post by: InSearchOf on May 05, 2007, 12:40:16 pm
It prolly wont work on the current one... but it should work on the next release...

Late
Title: Debian And Uboot
Post by: pkwong on May 10, 2007, 08:11:52 am
newbie question...

how do i mount my cf card or usb drive in debian?
i looked in /dev and couldn't find traditional ones like hda or sda
Title: Debian And Uboot
Post by: svs57 on May 10, 2007, 09:18:33 am
Quote
newbie question...

how do i mount my cf card or usb drive in debian?
i looked in /dev and couldn't find traditional ones like hda or sda
[div align=\"right\"][a href=\"index.php?act=findpost&pid=160944\"][{POST_SNAPBACK}][/a][/div]
cf card - /dev/hda
try
pccardctl eject
pccardctl insert
pccardctl info
Title: Debian And Uboot
Post by: pkwong on May 10, 2007, 11:00:19 am
thanks!!
found the problem when i install pccardctl...
it's because i didn't install pcmciautils
now i got /dev/hda
Title: Debian And Uboot
Post by: svs57 on May 10, 2007, 11:19:22 am
Quote
thanks!!
found the problem when i install pccardctl...
it's because i didn't install pcmciautils
now i got /dev/hda
[div align=\"right\"][a href=\"index.php?act=findpost&pid=160961\"][{POST_SNAPBACK}][/a][/div]
As about usb storage I guest you should load modules:
modprobe usb-storage
Title: Debian And Uboot
Post by: pkwong on May 10, 2007, 01:18:45 pm
hm... no luck this time
i got "USB Mass Storage support registered." after modprobe
and when i plug in the usb thumb drive, it shows "udc: USB reset"
but no new things in /dev


btw, i also want to ask about the xserver
i grabbed the xserver from your link, but i don't know how to extract the ipk, any hints?
i tried tar zxvf, no luck
Title: Debian And Uboot
Post by: Chero on May 10, 2007, 01:26:36 pm
Quote
hm... no luck this time
i got "USB Mass Storage support registered." after modprobe
and when i plug in the usb thumb drive, it shows "udc: USB reset"
but no new things in /dev


btw, i also want to ask about the xserver
i grabbed the xserver from your link, but i don't know how to extract the ipk, any hints?
i tried tar zxvf, no luck
[div align=\"right\"][a href=\"index.php?act=findpost&pid=160972\"][{POST_SNAPBACK}][/a][/div]

You can use :
ar -x
Title: Debian And Uboot
Post by: pkwong on May 11, 2007, 12:11:28 am
thanks! i can extract them now

but when i start X, i can't get the touchscreen to work
X said
Quote
Zaurus:/mnt/usr/bin# X -br -pn -dpi 200 -rgba rgb -screen 480x640@270 :0 -noreset
_XSERVTransSocketOpenCOTSServer: Unable to open socket for inet6
_XSERVTransOpen: transport open failed for inet6/Zaurus:0
_XSERVTransMakeAllCOTSServerListeners: failed to open listener for inet6
error opening security policy file /usr/lib/xserver/SecurityPolicy
Extended Input Devices not yet supported. Impelement it at line 625 in kinput.c
Failed to open TSLib device, tried /dev/ts /dev/touchscreen/0 .
Try setting TSLIB_TSDEVICE to valid /dev entry?
i think the touchscreen is at /dev/input/event1
so i export TSLIB_TSDEVICE=/dev/input/event1
but it still failed
Quote
.....
Extended Input Devices not yet supported. Impelement it at line 625 in kinput.c
Couldnt open tslib config file: No such file or directory
Failed to open TSLib device, tried /dev/input/event1 /dev/ts /dev/touchscreen/0 .
any ideas?




EDIT:
i got the touchscreen now!  
i got xfbdev and all its libraries from angstrom to get X to start
then i also get the tslib-calibrate, tslib-conf, tslib-test in the angstrom feed
export TSLIB_TSDEVICE=/dev/input/event1
ts_calibrate
ts_test
wala~ the cursor moves, i'll install iceWM now
Title: Debian And Uboot
Post by: danr on May 11, 2007, 06:27:17 am
Quote
EDIT:
i got the touchscreen now!  
i got xfbdev and all its libraries from angstrom to get X to start
then i also get the tslib-calibrate, tslib-conf, tslib-test in the angstrom feed
export TSLIB_TSDEVICE=/dev/input/event1
ts_calibrate
ts_test
wala~ the cursor moves, i'll install iceWM now
[div align=\"right\"][a href=\"index.php?act=findpost&pid=161012\"][{POST_SNAPBACK}][/a][/div]

Cool, that's exactly where I got to yesterday as well, by performing the same steps.  I've installed WindowMaker and it works quite well, so long as I use the preference utility to allow the menu to come up on the backdrop on a mouse button 1 event.  Does anyone know how to create the pdaXrom behaviour of simulating mouse button 2 and 3 events by pressing a key when tapping on the screen?

The other thing that I can't get to work is wireless connectivity.  My symbol card is detected correctly, and loads up the firmware I've installed.  It comes up as eth2 but I'm not sure that dhcpd is working correctly, as when I do "ifup eth2" the light on the card flashes rapidly but eventually it says "Failed to bring up eth2", and there's nothing in the route table.  My /etc/network/interfaces contains the line

Code: [Select]
iface eth2 inet dhcp.

Oh yeah, one other thing, does anyone know how to disable mrxvt from going into Greek keyboard mapping mode when pressing Fn?  Very annoying.
Title: Debian And Uboot
Post by: pkwong on May 11, 2007, 01:15:25 pm
i think i use the same wifi card, becoz i enabled WEP in my router, so i
iwconfig eth2 essid XXXX key YYYYYY
and then
dhclient
to get the ip
Title: Debian And Uboot
Post by: danr on May 11, 2007, 05:06:38 pm
Quote
dhclient
to get the ip
Brilliant - that did the trick.  Thanks.
Title: Debian And Uboot
Post by: ShiroiKuma on May 11, 2007, 06:03:22 pm
I am wondering what is the benefit of running this armel debian over Angstrom?

This is not a condescending comment, I'm really interested what is the benefit that anyone perceives over just installing Angstrom and running it.

I have armel debian in a chroot too, but so far haven't run a single app there, since I've found no need. The biggest drawback that Angstrom has, i.e. not a working firefox, is not solved by armel, since it doesn't have ff either.

Other than that all the apps that I need to use are in Angstrom feeds already.

I know apt-get works on debian, but so what? Currently ipkg still installs everything on Angstrom, and the level of hacking to get armel working is even higher based on my experience, than in Angstrom. So why?
Title: Debian And Uboot
Post by: danr on May 12, 2007, 05:00:48 am
Quote
I am wondering what is the benefit of running this armel debian over Angstrom?

This is not a condescending comment, I'm really interested what is the benefit that anyone perceives over just installing Angstrom and running it.

I have armel debian in a chroot too, but so far haven't run a single app there, since I've found no need. The biggest drawback that Angstrom has, i.e. not a working firefox, is not solved by armel, since it doesn't have ff either.

Other than that all the apps that I need to use are in Angstrom feeds already.

I know apt-get works on debian, but so what? Currently ipkg still installs everything on Angstrom, and the level of hacking to get armel working is even higher based on my experience, than in Angstrom. So why?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=161105\"][{POST_SNAPBACK}][/a][/div]

Well for me there are a number of advantages over Angstrom:

1) There is a lot of information on the Internet about how to configure Debian to get it working the way you want it to.
2) I find the ncurses-based package installed, aptitude, an intuitive tool to use.
3) The Debian feed contains more packages I'd like to install.
4) I'm not a fan of GPE, as it is more PDA-like than the desktop I'd like to install, e.g. WindowMaker.  I found it easier to configure Debian to install a non-GPE desktop than Angstrom.

It may be possible to configure Angstrom to do much of the above, but I had more confidence in a more mature platform being able to do this.

Having said all that, EABI Debian would not be possible without the hard work of the Angstrom developers, so I am grateful to them for their efforts.

There are also some disadvantages of Debian over Angstrom (or pdaXrom, which I used to use):

1) No light and power settings.
2) apm doesn't work on my SL-C860 (although this appears to be the case for all 2.6 kernels), so I have to use my old SL-5500 to recharge the battery.
3) I don't know how to configure X so that it can detect mouse buttons 2 and 3 by pressing a key with a screen tap, which pdaXrom could do.

There's probably more things that can go in both lists, but I hope this gives you an idea.

Dan
Title: Debian And Uboot
Post by: ZDevil on May 12, 2007, 05:18:45 am
Great to see more positive results in the debian adventure!
Now I am more and more convinced that debian and openbsd are the way to go.
When we finally get these running stably enough on Z, i don't really see much point in building a Z-specific platform from the ground up.
IMHO the best way to keep the species alive is to run a standard/mainstream distro. Take a look at Jornada' Debian 720 degree. Also the rebirth of NEC MobilePro 900 is on the horizon.
So can someone give me some good reasons why we shouldn't concentrate our efforts on getting debian and openbsd running?
Title: Debian And Uboot
Post by: scoutme on May 12, 2007, 07:41:14 am
I absolutely need to installl debian on my 860. Can you write down a few steps?
Title: Debian And Uboot
Post by: danr on May 13, 2007, 04:40:19 am
Quote
I absolutely need to installl debian on my 860. Can you write down a few steps?
[div align=\"right\"][{POST_SNAPBACK}][/a][/div] (http://index.php?act=findpost&pid=161148\")

Well I just followed the steps in this thread, and mostly [a href=\"https://www.oesf.org/forums/index.php?showtopic=23773&st=34#]here[/url].

I started with an Angstrom image, and then flashed an Angstrom kernel with the boot parameters set to SD card.  You can find this in the unstable branch, such as here (http://www.angstrom-distribution.org/unstable/images/c7x0/20070429/).

On a reboot, the kernel will search for a filesystem on the SD card, which will start Debian.

The first issue is that the keymap is wrong for the '/' key, so it's very difficult to do anything.  I reflashed a kernel mounting the flash filesystem, then copied a keymap file over to the SD card, added this line to my /etc/profile on SD card:

Code: [Select]
loadkeys kemap.map
and flashed back to a "Debian kernel" (i.e. one mounting a filesystem on SD card).

Then start-stop-daemon is a dummy file in /sbin, so I renamed that to start-stop-daemon.fake, and linked it to start-stop-daemon.REAL.  I think this starts sshd properly.

You can mount the Angstrom flash filesystem by creating a directory /mnt/flash and typing

Code: [Select]
mount /dev/mtdblock2 /mnt/flash -t jffs2
You can even put a similar line in /etc/fstab to auto-mount it.

Getting X to work was more tricky, you have to copy Xfbdev across from Angstrom and rename it as X.  I don't know exactly what steps are required, as I experimented with both Angstrom and Debian xorg packages.  If anyone has more info on this, that would be useful.  But one vital step is to add the following to /etc/profile:

Code: [Select]
export TSLIB_TSDEVICE="/dev/input/event1"
to get Xfbdev to work correctly.  You may have to copy over the touchscreen calibrate binaries from Angstrom, or it may be possible to just copy over /etc/pointercal.

I'm fairly new to Debian, but found it fairly straightforward to do

Code: [Select]
apt-get updateto update the list of packages,

Code: [Select]
apt-get upgradeto update the system to the latest packages, and

Code: [Select]
aptitudefor an ncurses-version of apt-get, which also has a package search tool.

I've probably missed out some stuff, but you will find all the info in this thread.

HTH,

Dan
Title: Debian And Uboot
Post by: scoutme on May 13, 2007, 05:20:58 pm
since I cannot crosscompile, can you post the SD-configured kernel for 860?
thanks
Title: Debian And Uboot
Post by: Chero on May 14, 2007, 01:52:31 am
Quote
since I cannot crosscompile, can you post the SD-configured kernel for 860?
thanks
[div align=\"right\"][a href=\"index.php?act=findpost&pid=161226\"][{POST_SNAPBACK}][/a][/div]
check the second "here" in the post above.
Title: Debian And Uboot
Post by: svs57 on May 14, 2007, 06:36:31 am
Quote
1) No light and power settings.
2) apm doesn't work on my SL-C860 (although this appears to be the case for all 2.6 kernels), so I have to use my old SL-5500 to recharge the battery.
3) I don't know how to configure X so that it can detect mouse buttons 2 and 3 by pressing a key with a screen tap, which pdaXrom could do.

There's probably more things that can go in both lists, but I hope this gives you an idea.

Dan
[div align=\"right\"][a href=\"index.php?act=findpost&pid=161141\"][{POST_SNAPBACK}][/a][/div]
1) Light
I use xbindkeys to change light.
~/.xbindkeysrc
...
"/usr/local/bin/br.sh - 5"
c:12 + Mod2
"/usr/local/bin/br.sh + 5"
c:13 + Mod2
...
/usr/local/bin/br.sh
#!/bin/sh
HOME=/home/svs
act=`cat /sys/class/backlight/corgi-bl/actual_brightness`
max=`cat /sys/class/backlight/corgi-bl/max_brightness`
if [ $1 == "+" ]; then
new=$(($act+$2))
else
new=$(($act-$2))
fi
if [ $new -ge $max ]; then
new=$max
fi
if [ $new -le 1 ]; then
new=1
fi
echo  $new > /sys/class/backlight/corgi-bl/brightness
echo $new >$HOME/.br
fi

2) mouse buttons 2 and 3
I use xmonobut to set 2 & 3 buttons:
xmonobut -m 67 -k 68 &
Title: Debian And Uboot
Post by: pkwong on May 14, 2007, 07:36:39 am
any hints to get sound working?
i added snd-soc-spitz to /etc/modules
and installed alsa-base alsa-utils alsa-oss
also used alsa out plugin in xmms
but no luck..
Title: Debian And Uboot
Post by: svs57 on May 14, 2007, 09:07:57 am
Quote
any hints to get sound working?
i added snd-soc-spitz to /etc/modules
and installed alsa-base alsa-utils alsa-oss
also used alsa out plugin in xmms
but no luck..
[div align=\"right\"][a href=\"index.php?act=findpost&pid=161257\"][{POST_SNAPBACK}][/a][/div]
try start alsamixer and do unmute
Title: Debian And Uboot
Post by: pkwong on May 14, 2007, 10:25:54 am
i just tried to play a mp3 with mpg123
it works, but not in xmms

if i select "Spitz (hw:0,0)" in audio device, it outputs
alsa_setup(): Failed to open pcm device(hw:0,0) Device or resource busy

are there any special settings in xmms?

EDIT:
sometimes i also get with mpg123
it said "ALSA: underrun, at least 0ms" and the music can't play smoothly
Title: Debian And Uboot
Post by: scoutme on May 14, 2007, 10:01:35 pm
there must be something wrong in the way I choosed the file to rename and use for the angstrom setup.

Can you tell me exactly what files should I need? At the moment my 860 simply stuck at "Warning: unable to open an initial console", after a quite regular boot process
Title: Debian And Uboot
Post by: danr on May 15, 2007, 04:08:00 am
Quote
there must be something wrong in the way I choosed the file to rename and use for the angstrom setup.

Can you tell me exactly what files should I need? At the moment my 860 simply stuck at "Warning: unable to open an initial console", after a quite regular boot process
[div align=\"right\"][a href=\"index.php?act=findpost&pid=161301\"][{POST_SNAPBACK}][/a][/div]

I don't think I did anything unusual; I just renamed the files as zImage.bin, initrd.bin, and updater.sh, then flashed.  Did you also untar modules-2.6.20.6-c7x0.tgz to the SD card?

One strange thing is that I have to have a CF card inserted when rebooting, otherwise the kernel can't seem to detect the SD card filesystem.
Title: Debian And Uboot
Post by: danr on May 15, 2007, 04:15:02 am
Quote
1) Light