• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

Linux on Universal (Update #4)

Search This thread

pasztorl

Senior Member
Aug 31, 2005
52
1
Linux on Universal. NEW NEW Install is now very simple!!!

Hi All!


Can anybody inform me about:
- Who is working on linux port on Universal?
- Which is the status of the kernel development now?
- When will we see a linux boot on this hardware?
- How can we help to complete the porting project?

I tracked rencently the wiki Universal pages, but the progress
page shows a 'Coming soon' message for a long time.

****
Moderator edit

NEW NEW NEW. Install linux without any knowledge or Linux PC :

http://forum.xda-developers.com/showthread.php?p=1680178#post1680178

Just follow the instructions in post #1739 on page 174 by goxboxlive

-----------------------------------------------------------------

Old news below

New versions can be downloaded here http://www.linuxtogo.org/~htcpxa/

Go to http://www.handhelds.org/moin/moin.cgi/Universal for a How-To install or
http://wiki.xda-developers.com/index.php?pagename=Universal_Installing_Linux

----

We have made a common mailing list for the HTC PXA phone's.

Subscribe to Htc-pxa at https://www.handhelds.org/mailman/listinfo/htc-pxa
****
 
Last edited by a moderator:

cr2

Senior Member
Jan 15, 2005
1,671
57
Re: Linux on Universal

pasztorl said:
- Who is working on linux port on Universal?
The hardware information is gathered here in wiki.
The CVS branch for universal is at http://sf.net/projects/xanadux
There is a #htc-blueangel irc channel, where
you can discuss any HTC phone, since they
have a lot in common.

- Which is the status of the kernel development now?
Not all necessary hardware information
is found out, see wiki for details.
I have written some basic kernel patches to support the LCD and ASIC3, but this kernel
doesn't boot. I 'll commit the changes to CVS.

- When will we see a linux boot on this hardware?
Good question.

- How can we help to complete the porting project?
There are many open issues, so it depends
on what you can/want to do.
 

pasztorl

Senior Member
Aug 31, 2005
52
1
Re: Linux on Universal

There are many open issues, so it depends
on what you can/want to do.

Sorry, but I am not a kernel hacker, so I can't help to solve kernel
level problems. But I already made some embedded systems
with linux. I would like help to make a distribution for this hardware.
I know I can do that now, because linux can run in other pdas,
but I have only an Universal (this is my first pda), so I would like
to test my developement, and it is not possilbe until I dont't have
a running kernel on it.
 

cr2

Senior Member
Jan 15, 2005
1,671
57
Re: Linux on Universal

pasztorl said:
I seen in the wiki, the universal hardware shared with the Motorola E780. What does it mean exactly?
Is it a big help on development?

Motorola A780. It includes some drivers that are not available elsewhere.
Like the camera drivers. A780 also uses USB host for communicating with the GSM/UMTS processor. The CVS kernel for universal boots, but the LCD is
not initialized properly, and that can damage your hardware (it switches on the white flashlight LED for some reason). There is no serial cable, so the kernel must be debugged
over IR, and this code is not working yet.
 

pasztorl

Senior Member
Aug 31, 2005
52
1
Re: Linux on Universal

cr2 said:
pasztorl said:
I seen in the wiki, the universal hardware shared with the Motorola E780. What does it mean exactly?
Is it a big help on development?

Motorola A780. It includes some drivers that are not available elsewhere.
Like the camera drivers. A780 also uses USB host for communicating with the GSM/UMTS processor. The CVS kernel for universal boots, but the LCD is
not initialized properly, and that can damage your hardware (it switches on the white flashlight LED for some reason). There is no serial cable, so the kernel must be debugged
over IR, and this code is not working yet.

Thx for the info! :)
Can You start the UniversalProgress page on the wiki?
What does it mean 'can damage your hardware'? Damage
the LCD or the flashlight LED?
Can You post the precompiled working kernel, and explain how we are test it?
What is the driver status at now? (working / not working hardware components)
 

gaofi

Member
Dec 30, 2005
20
0
I'll be glad to switch to linux on my universal... the sooner the better !

I already moved to linux on my desktop PC since a few years now, and I cant stand beeing enforced to launch windows to sync my handheld (I was used to sync my clié with no hassle, but unfortunately, it died, and palm OS seems to soon become memories )

So if any help is needed, and I can help, I'll be glad to.
 

cr2

Senior Member
Jan 15, 2005
1,671
57
Re: Linux on Universal

pasztorl said:
Can You start the UniversalProgress page on the wiki?
http://wiki.xda-developers.com/index.php?pagename=UniversalProgress
What does it mean 'can damage your hardware'? Damage
the LCD or the flashlight LED?
I want that both are initialized properly.
Can You post the precompiled working kernel, and explain how we are test it?
There is no "working" kernel. If you really know what you are doing, compile one
from the xanadux CVS (-un0 branch). And don't blame me for the destroyed hardware :)
What is the driver status at now? (working / not working hardware components)
The CPU, RAM and IR are working.
Don't know about the rest.
 

pasztorl

Senior Member
Aug 31, 2005
52
1
Re: Linux on Universal

cr2 said:
Thx! :)
There is no "working" kernel. If you really know what you are doing, compile one
from the xanadux CVS (-un0 branch). And don't blame me for the destroyed hardware :)
I checked out this branch yesterday and my result was:
LD arch/arm/mach-pxa/built-in.o
arch/arm/mach-pxa/pxa27x.o: In function `get_clk_frequency_khz':pxa27x.c:(.text+0x0): multiple definition of `get_clk_frequency_khz'
arch/arm/mach-pxa/pxa25x.o:pxa25x.c:(.text+0x0): first defined here
arm-linux-ld: Warning: size of symbol `get_clk_frequency_khz' changed from 428 in arch/arm/mach-pxa/pxa25x.o to 536 in arch/arm/mach-pxa/pxa27x.o
arch/arm/mach-pxa/pxa27x.o: In function `get_memclk_frequency_10khz':pxa27x.c:(.text+0x218): multiple definition of `get_memclk_frequency_10khz'
arch/arm/mach-pxa/pxa25x.o:pxa25x.c:(.text+0x1ac): first defined here
arm-linux-ld: Warning: size of symbol `get_memclk_frequency_10khz' changed from 64 in arch/arm/mach-pxa/pxa25x.o to 132 in arch/arm/mach-pxa/pxa27x.o
arch/arm/mach-pxa/pxa27x.o: In function `get_lcdclk_frequency_10khz':pxa27x.c:(.text+0x29c): multiple definition of `get_lcdclk_frequency_10khz'
arch/arm/mach-pxa/pxa25x.o:pxa25x.c:(.text+0x1ec): first defined here
arm-linux-ld: Warning: size of symbol `get_lcdclk_frequency_10khz' changed from 20 in arch/arm/mach-pxa/pxa25x.o to 84 in arch/arm/mach-pxa/pxa27x.o
make[1]: *** [arch/arm/mach-pxa/built-in.o] Error 1
make: *** [arch/arm/mach-pxa] Error 2

(emDebian gcc4 cross compiling tools)
 

cr2

Senior Member
Jan 15, 2005
1,671
57
Re: Linux on Universal

pasztorl said:
arch/arm/mach-pxa/pxa27x.o: In function `get_clk_frequency_khz':pxa27x.c:(.text+0x0): multiple definition of `get_clk_frequency_khz'
arch/arm/mach-pxa/pxa25x.o:pxa25x.c:(.text+0x0): first defined here
arm-linux-ld: Warning: size of symbol `get_clk_frequency_khz' changed from 428 in arch/arm/mach-pxa/pxa25x.o to 536 in arch/arm/mach-pxa/pxa27x.o
You are not supposed to compile the support for PXA25X and PXA27X CPU at the same time (i will consider it as a bug in the config system).
Start configuring the kernel with
arch/arm/configs/htcuniversal_defconfig
Use haret from the Blueangel pages.
In the startup.txt
set MTYPE 855

and use
console=ttyS2

for the console on your pda IR port.
Do not run irda on your host system, remove all the irda modules
and use raw serial port.
The framebuffer is not working yet (the driver was written by lkcl, i have not yet looked into it).
 

pasztorl

Senior Member
Aug 31, 2005
52
1
Re: Linux on Universal

cr2 said:
You are not supposed to compile the support for PXA25X and PXA27X CPU at the same time (i will consider it as a bug in the config system).
Start configuring the kernel with
arch/arm/configs/htcuniversal_defconfig
Use haret from the Blueangel pages.
In the startup.txt
set MTYPE 855

and use
console=ttyS2

for the console on your pda IR port.
Do not run irda on your host system, remove all the irda modules
and use raw serial port.
The framebuffer is not working yet (the driver was written by lkcl, i have not yet looked into it).

Thanks!

Another problem:
origo /home/pasztorl/xda/linux-2.6-xda# cp arch/arm/configs/htcuniversal_defconfig .config
cp: felülírja `.config'-t? y
origo /home/pasztorl/xda/linux-2.6-xda# make clean
origo /home/pasztorl/xda/linux-2.6-xda# make
CHK include/linux/version.h
HOSTCC scripts/basic/fixdep
HOSTCC scripts/basic/split-include
HOSTCC scripts/basic/docproc
HOSTCC scripts/kconfig/conf.o
HOSTCC scripts/kconfig/kxgettext.o
HOSTCC scripts/kconfig/mconf.o
HOSTCC scripts/kconfig/zconf.tab.o
HOSTLD scripts/kconfig/conf
scripts/kconfig/conf -s arch/arm/Kconfig
arch/arm/mach-pxa/Kconfig:45: can't open file "arch/arm/mach-pxa/generic/Kconfig"
make[2]: *** [silentoldconfig] Error 1
make[1]: *** [silentoldconfig] Error 2
make: *** [include/linux/autoconf.h] Error 2
origo /home/pasztorl/xda/linux-2.6-xda#
 

cr2

Senior Member
Jan 15, 2005
1,671
57
Re: Linux on Universal

pasztorl said:
arch/arm/mach-pxa/Kconfig:45: can't open file "arch/arm/mach-pxa/generic/Kconfig"

Remove this line 45 from arch/arm/mach-pxa/Kconfig. There is
no arch/arm/mach-pxa/generic/ here in my tree. Must be some stray commit
by somebody else.
 

pasztorl

Senior Member
Aug 31, 2005
52
1
Re: Linux on Universal

cr2 said:
Remove this line 45 from arch/arm/mach-pxa/Kconfig. There is
no arch/arm/mach-pxa/generic/ here in my tree. Must be some stray commit
by somebody else.

After removing I get this error:

drivers/mmc/asic3_mmc.c: In function 'mmc_irq':
drivers/mmc/asic3_mmc.c:672: error: invalid storage class for function 'hwinit2_irqsafe'
drivers/mmc/asic3_mmc.c:676: warning: implicit declaration of function 'hwinit2_irqsafe'
drivers/mmc/asic3_mmc.c: In function 'mmc_get_ro':
drivers/mmc/asic3_mmc.c:811: warning: unused variable 'host'
drivers/mmc/asic3_mmc.c: At top level:
drivers/mmc/asic3_mmc.c:828: warning: conflicting types for 'hwinit2_irqsafe'
drivers/mmc/asic3_mmc.c:828: error: static declaration of 'hwinit2_irqsafe' follows non-static declaration
drivers/mmc/asic3_mmc.c:676: error: previous implicit declaration of 'hwinit2_irqsafe' was here
make[2]: *** [drivers/mmc/asic3_mmc.o] Error 1
make[1]: *** [drivers/mmc] Error 2
 

pasztorl

Senior Member
Aug 31, 2005
52
1
Re: Linux on Universal

cr2 said:
The SD/MMC driver is not working (but it is easy to fix).
Make menuconfig, and remove it from compilation.

After disabling SD/MMC support compilation fails at this point:


CC drivers/serial/pxa.o
In file included from include/asm/proc-fns.h:166,
from include/asm/system.h:94,
from include/asm/bitops.h:22,
from include/linux/bitops.h:77,
from include/linux/thread_info.h:20,
from include/linux/spinlock.h:12,
from include/linux/capability.h:45,
from include/linux/sched.h:7,
from include/linux/module.h:10,
from drivers/serial/pxa.c:33:
include/asm/cpu-single.h:44: warning: type qualifiers ignored on function return type
In file included from include/linux/kernel.h:17,
from include/linux/spinlock.h:13,
from include/linux/capability.h:45,
from include/linux/sched.h:7,
from include/linux/module.h:10,
from drivers/serial/pxa.c:33:
include/asm/bug.h:8: warning: type qualifiers ignored on function return type
drivers/serial/pxa.c:768: error: initializer element is not constant
drivers/serial/pxa.c:768: error: (near initialization for 'serial_pxa_ports[0].port.mapbase')
drivers/serial/pxa.c:782: error: initializer element is not constant
drivers/serial/pxa.c:782: error: (near initialization for 'serial_pxa_ports[1].port.mapbase')
drivers/serial/pxa.c:796: error: initializer element is not constant
drivers/serial/pxa.c:796: error: (near initialization for 'serial_pxa_ports[2].port.mapbase')
drivers/serial/pxa.c:810: error: initializer element is not constant
drivers/serial/pxa.c:810: error: (near initialization for 'serial_pxa_ports[3].port.mapbase')
make[2]: *** [drivers/serial/pxa.o] Error 1
make[1]: *** [drivers/serial] Error 2
make: *** [drivers] Error 2
 

Top Liked Posts

  • There are no posts matching your filters.
  • 10
    die-hard said:
    goxboxlive said:
    die-hard said:
    hi all i try to install linux on my sd (A-Data 4Gb)
    i make 3 partitions
    1. vfat (in that partition i make linux folder and 2577 folder) 30M
    2. ext3 (in that partition i put kernel, startup, initrd etc) 1000M
    3. fat32 make with fdisk.

    when i start linux kernel don't work

    1. In the vfat partition you place the files: haret.exe, default.txt (startup.txt ) and the zi ( the linux boot kernel ).
    2. In the ext3 partition you have to extract the opie-image to the root of the partition.
    3. i dont know, just forget about it for now.
    i use 3 partition for windows application and file

    Yes i understand that, but does it work now? Can you boot Linux on your Universal?
    Beware og that you need to have the kernel, startup and haret on the fat partition and not at the ext3 partition. And try to make the ext3 partition smaller than 1GB.
    I am using all this on a 128MB sd card. 30 MB for fat, and the rest for ext3.
    2
    ftp.xda-developers.com/Uploads/Universal/Universal LINUX Dev

    Has anyone looked into the following folder:
    ftp.xda-developers.com/Uploads/Universal/Universal LINUX Development

    I tested the rar password and it's ok.
    rar pwd:
    PU10 Intel PXA270 QTEK 9000
    1
    Where can i download the latest files for trying to boot linux and testing gpe and opie?
    CR2 or Milanvot can one of you upload the requierd files so i can test it?
    1
    vve said:
    madkat said:
    Can the root user be renamed...
    I think this is a funniest post in this forum :). Nobody in my life have ever asked me for this.
    Now, here's a new market - below are things we could make money from:
    1. Change superuser's name from "root" to "Administrator" - $20.
    2. Change superuser's name from "root" to anything you like - $50.

    WTF? I wasn't asking someone else to do it for me.
    I was asking because I don't know much about Linux - but I have renamed the Administrator account in my WinXP Pro to something else to make the machine more secure. I don't think I've seen a Linux or Unix box with a superuser with a name other than "root" - so I decided to ask, rather than making any assumption that making the change would be impossible. Obviously if this Linux were sent out in an easy-to-install form, questions to the end user would be very brief and most would opt to enter no root password at all. That leaves you with machines all over the place with a superuser called "root" and either no password or a very simple password like "123" or "password". I don't know about you, but that strikes me as a very bad idea. Setting a default password is out of the question, and having a "strong password check" will only serve to frustrate people.
    1
    madkat said:
    I have Haret, zi061203, default.txt
    I don't know how to configure default.txt to boot the kernel without mounting a root. It seems to automatically look for /dev/mmc/blk0/something and then complains if there is no "root="
    Milanvot's zi060312 kernel doesn't work without root partition on SD.
    Try to use cr2's zi kernel instead.