Talk:Manual Debian

From Openmoko

(Difference between revisions)
Jump to: navigation, search
(Partitions: swap)
(cleaned and answered)
 
Line 1: Line 1:
 
== Booting ==
 
== Booting ==
 
=== Umount ===
 
 
I remember seeing a umount /media/card command on this page which i don't see anymore.  That's needed or you will get
 
/dev/mmcblk0p1 is mounted; will not make a filesystem here!
 
Fdisk will also complain
 
WARNING: rereading partition table failed, kernel still uses old table: Device or resource busy
 
I needed to umount and rewrite the partition table in order for /dev/mmcblk0p2 to appear.
 
  
 
=== Partitions ===
 
=== Partitions ===
  
 
Why don't we boot from NAND?
 
Why don't we boot from NAND?
 +
:I do - works fine--[[User:JoSch|JoSch]] 09:51, 28 December 2008 (UTC)
  
 
What's the reason for two partitions?  Is it because ext2load was broken?  Can we just upgrade u-boot and use one partition?
 
What's the reason for two partitions?  Is it because ext2load was broken?  Can we just upgrade u-boot and use one partition?
 +
:yes, it's a uboot thingy and only valid for gta02 - just use what works for you--[[User:JoSch|JoSch]] 09:51, 28 December 2008 (UTC)
  
 
Is there any need for a swap partition?
 
Is there any need for a swap partition?
Line 25: Line 19:
  
 
--[[User:Jakubzeman|Jakubzeman]] 07:42, 8 August 2008 (UTC)
 
--[[User:Jakubzeman|Jakubzeman]] 07:42, 8 August 2008 (UTC)
 
+
:works with tslib from experimental--[[User:JoSch|JoSch]] 09:51, 28 December 2008 (UTC)
I'm using lenny. Oh and if some one wants to see if they can get a debian based kernel / merge / get some more modules from debian / general modules into a kernel for other hardware (such as a rt73 chipset wireless card that would be great :) ) [[User:Dbmoodb|Dbmoodb]] 08:09, 8 August 2008 (UTC)
+
 
+
Thanks for suggestion. I'll try it (and I'll report if I'm successful or not).
+
--[[User:Jakubzeman|Jakubzeman]] 08:56, 8 August 2008 (UTC)
+
  
 
== Sound ==
 
== Sound ==
Line 40: Line 30:
 
  alsactl -f /path/to/statefiles/stereoout.state restore
 
  alsactl -f /path/to/statefiles/stereoout.state restore
 
--[[User:Tanuva|Tanuva]] 12:59, 21 August 2008 (UTC)
 
--[[User:Tanuva|Tanuva]] 12:59, 21 August 2008 (UTC)
 
 
==debugging fso ==
 
The following are taken instructions are taken from lindi on irc.
 
/etc/init.d/frameworkd stop
 
/etc/init.d/fso-frameworkd stop
 
add 'log_level = DEBUG' to '[ogsmd]' in
 
/etc/frameworkd.conf
 
run "frameworkd" and watch the output
 
--[[User:Dbmoodb|Dbmoodb]] 08:34, 22 August 2008 (UTC)
 
 
I found that i actually had to do the following ...
 
/etc/init.d/fso-frameworkd stop
 
/etc/init.d/x11-common stop
 
/etc/init.d/openmoko-fso restart
 
then go frameworkd
 
  
 
== Problems Making This Work ==
 
== Problems Making This Work ==

Latest revision as of 10:51, 28 December 2008

Contents

[edit] Booting

[edit] Partitions

Why don't we boot from NAND?

I do - works fine--JoSch 09:51, 28 December 2008 (UTC)

What's the reason for two partitions? Is it because ext2load was broken? Can we just upgrade u-boot and use one partition?

yes, it's a uboot thingy and only valid for gta02 - just use what works for you--JoSch 09:51, 28 December 2008 (UTC)

Is there any need for a swap partition?

--Brian 252 15:22, 8 August 2008 (UTC)

Some say it helped. Jidanni 02:38, 3 December 2008 (UTC)

[edit] Touch screen calibration

Few days ago there was added calibration for gta02. It doesn't work correctly on my freerunnuer (the mouse pointer doesn't move where I click ant the touchscreen area is about 1/3 smaller then the screen). I tried /etc/pointercal from qtopia and openmoko but it is the same as with parameters from this wiki. Has somebody a tip how to fix this?

--Jakubzeman 07:42, 8 August 2008 (UTC)

works with tslib from experimental--JoSch 09:51, 28 December 2008 (UTC)

[edit] Sound

http://tehinterweb.com/freerunner/alsa.state.tgz --Dbmoodb 13:55, 21 August 2008 (UTC) (if it doesn't work for you... try these alsa states or the ones posted below from openmoko.org...)

If the sound card is configured properly but there's no sound coming out of the Freerunner, it most likely helps to restore an appropriate statefile from the tgz above which are also available on the Openmoko svn (/trunk/src/target/audio/om-gta0*).

For simple sound output to the internal stereo speakers, do:

alsactl -f /path/to/statefiles/stereoout.state restore

--Tanuva 12:59, 21 August 2008 (UTC)

[edit] Problems Making This Work

I tried the instructions for loading Debian on my Freerunning and was disappointed to find it didnt work for me. I tried it twice, once with an Ext2 partition on the SDCARD and once with out, about a week ago, both gave exactly the same result. Its a very slow process too. The result when booting is that the phone brings up the openmoko logo , then a completly white screen and then goes back to the openmoko logo, it continues doing this ad-infinitum. It seems like the uboot image is wrong (=invalid) but I cant see how to fix this. Its still possible to boot original OS but via NOR screen. (Boot from card is the default now.)

Is there no chance of a binary debian image or starter image that can go into flash? I have flashed my phone many times with kernel and jffs2 images and although described as a "major" thing to do, it has always worked so far. Ive looked everywhere for a Debian image and cannot find.

Any comments appreciated.

[edit] The above problem can be resolved as follows

I had the same problem, and got the hint from Julian Köpke, who suggested the following and it works.

Your uboot version is too old. You can get the newest uboot image and then follow these instructions --Nagarjuna 10:14, 13 September 2008 (UTC)

Personal tools

Booting

Umount

I remember seeing a umount /media/card command on this page which i don't see anymore. That's needed or you will get

/dev/mmcblk0p1 is mounted; will not make a filesystem here!

Fdisk will also complain

WARNING: rereading partition table failed, kernel still uses old table: Device or resource busy

I needed to umount and rewrite the partition table in order for /dev/mmcblk0p2 to appear.

Partitions

Why don't we boot from NAND?

What's the reason for two partitions? Is it because ext2load was broken? Can we just upgrade u-boot and use one partition?

Is there any need for a swap partition?

--Brian 252 15:22, 8 August 2008 (UTC)

Some say it helped. Jidanni 02:38, 3 December 2008 (UTC)

Touch screen calibration

Few days ago there was added calibration for gta02. It doesn't work correctly on my freerunnuer (the mouse pointer doesn't move where I click ant the touchscreen area is about 1/3 smaller then the screen). I tried /etc/pointercal from qtopia and openmoko but it is the same as with parameters from this wiki. Has somebody a tip how to fix this?

--Jakubzeman 07:42, 8 August 2008 (UTC)

I'm using lenny. Oh and if some one wants to see if they can get a debian based kernel / merge / get some more modules from debian / general modules into a kernel for other hardware (such as a rt73 chipset wireless card that would be great :) ) Dbmoodb 08:09, 8 August 2008 (UTC)

Thanks for suggestion. I'll try it (and I'll report if I'm successful or not). --Jakubzeman 08:56, 8 August 2008 (UTC)

Sound

http://tehinterweb.com/freerunner/alsa.state.tgz --Dbmoodb 13:55, 21 August 2008 (UTC) (if it doesn't work for you... try these alsa states or the ones posted below from openmoko.org...)

If the sound card is configured properly but there's no sound coming out of the Freerunner, it most likely helps to restore an appropriate statefile from the tgz above which are also available on the Openmoko svn (/trunk/src/target/audio/om-gta0*).

For simple sound output to the internal stereo speakers, do:

alsactl -f /path/to/statefiles/stereoout.state restore

--Tanuva 12:59, 21 August 2008 (UTC)


debugging fso

The following are taken instructions are taken from lindi on irc.

/etc/init.d/frameworkd stop
/etc/init.d/fso-frameworkd stop
add 'log_level = DEBUG' to '[ogsmd]' in 
/etc/frameworkd.conf
run "frameworkd" and watch the output

--Dbmoodb 08:34, 22 August 2008 (UTC)

I found that i actually had to do the following ...

/etc/init.d/fso-frameworkd stop
/etc/init.d/x11-common stop
/etc/init.d/openmoko-fso restart
then go frameworkd

Problems Making This Work

I tried the instructions for loading Debian on my Freerunning and was disappointed to find it didnt work for me. I tried it twice, once with an Ext2 partition on the SDCARD and once with out, about a week ago, both gave exactly the same result. Its a very slow process too. The result when booting is that the phone brings up the openmoko logo , then a completly white screen and then goes back to the openmoko logo, it continues doing this ad-infinitum. It seems like the uboot image is wrong (=invalid) but I cant see how to fix this. Its still possible to boot original OS but via NOR screen. (Boot from card is the default now.)

Is there no chance of a binary debian image or starter image that can go into flash? I have flashed my phone many times with kernel and jffs2 images and although described as a "major" thing to do, it has always worked so far. Ive looked everywhere for a Debian image and cannot find.

Any comments appreciated.

The above problem can be resolved as follows

I had the same problem, and got the hint from Julian Köpke, who suggested the following and it works.

Your uboot version is too old. You can get the newest uboot image and then follow these instructions --Nagarjuna 10:14, 13 September 2008 (UTC)