PDA

View Full Version : Haret + Asus P535


goomgoom
5th May 2008, 12:33 AM
Hello !

I PDAphone a asus P535 running Windows Mobile 6 that I would like to try Linux.

These characteristics:

-processor PXA270 520Mhz
-256Mo ROM
-64Mo RAM
-GPS SiRFStar III
-bluetooth
-Usb 1.1
-Wifi IEEE 802.11b+g


I am trying last week to launch a kernel image with Android Haret.exe it does not work.

I have a black screen that appears with:

Haret boot
Shutting down hardware
Turning off MMU...
In preloader
PSR=600000df
Kernel relocated
initrd relocated
jumping to kernel...

Can you help me?

cr2
5th May 2008, 10:36 PM
You should create the 'earlyharetlog.txt' file in the same directory as haret.exe
and run haret.exe
It will create the haretlog.txt file, which you may post here.

goomgoom
6th May 2008, 10:44 PM
Thank you.

Could - you tell me where I made a mistake.
Here is the file "log":



===== HaRET 0.5.1 =====

Setting KMode to true.

Old KMode was 1

Finished initializing output

Loading dynamically bound functions

Function '?GXOpenDisplay@@YAHPAUHWND__@@K@Z' in library 'gx' at 0248D9EC

Function '?GXCloseDisplay@@YAHXZ' in library 'gx' at 0248DDD8

Function '?GXBeginDraw@@YAPAXXZ' in library 'gx' at 0248D2A8

Function '?GXEndDraw@@YAHXZ' in library 'gx' at 0248D36C

Function 'LoadLibraryExW' in library 'coredll' at 03F65FE0

Function 'GetSystemPowerStatusEx2' in library 'coredll' at 03F6C9A8

Function 'SleepTillTick' in library 'coredll' at 03F65F00

Function 'AllocPhysMem' in library 'coredll' at 03F65E38

Function 'FreePhysMem' in library 'coredll' at 03F65EA4

Function 'CreateToolhelp32Snapshot' in library 'toolhelp' at 02E1505C

Function 'Process32First' in library 'toolhelp' at 02E15140

Function 'Process32Next' in library 'toolhelp' at 02E151AC

Function 'Module32First' in library 'toolhelp' at 02E15340

Function 'Module32Next' in library 'toolhelp' at 02E153B0

Function 'CloseToolhelp32Snapshot' in library 'toolhelp' at 02E1507C

Unable to load library 'ace_ddi'

Unable to load library 'ace_ddi'

Unable to load library 'ace_ddi'

Unable to load library 'ace_ddi'

Unable to load library 'ace_ddi'

Unable to load library 'ace_ddi'

Unable to load library 'ace_ddi'

Unable to load library 'ace_ddi'

Detecting memory

WinCE reports memory size 67108864 (phys=53121024 store=171950080)

Detecting current machine

Trying to detect machine (Plat='PocketPC' OEM='Asus P535')

Wince reports processor: core=PXA270 name=520Mhz cat= vend=Intel

Looking at machine Alpine

Looking at machine Apache

Looking at machine AximX50

Looking at machine AximX5

Looking at machine Beetles

Looking at machine Blueangel

Looking at machine Himalaya

Looking at machine Magician

Looking at machine Universal

Looking at machine H1910

Looking at machine H1940

Looking at machine H2200

Looking at machine H3600b

Looking at machine H3700

Looking at machine H3870

Looking at machine H3900

Looking at machine H4000

Looking at machine H4300

Looking at machine H5000

Looking at machine H6340

Looking at machine HX2000

Looking at machine HX4700

Looking at machine Sable

Looking at machine Wizard

Looking at machine Hermes

Looking at machine Trinity

Looking at machine Athena

Looking at machine G500

Looking at machine Artemis

Looking at machine Herald

Looking at machine Prophet

Looking at machine RX3000

Looking at machine Treo700wx

Looking at machine e310

Looking at machine e740

Looking at machine Acer_n30

Looking at machine Mio_P550

Looking at machine Kaiser

Looking at machine Loox5xx

Looking at machine Jornada820

Looking at machine H3100

Looking at machine H3600a

Looking at machine Tornado

Looking at machine Libra

Looking at machine Generic Intel PXA27x

Looking at machine Generic Intel PXA

Looking at machine Generic TI OMAP

Looking at machine Generic TI OMAP15xx

Looking at machine Generic Samsung s3c24xx

Looking at machine Generic MSM7500

Looking at machine Generic ARM 920t

Looking at machine Generic ARM 926

Looking at machine Generic ARM v6

Looking at arch Generic Intel PXA27x

Registering command IGPIO

Registering command WG|PIO

Registering command GPLR

Registering command GPDR

Registering command GAFR

Registering command GPIO

Registering command GPIOST

Registering command LOADLIBRARYEX

Registering command TRACES

Registering command RESUMETRACES

Registering command WI|RQ

Registering command TRACE

Registering command TRACEMASK

Registering command TRACE2

Registering command TRACETYPE

Registering command TRACE2TYPE

Registering command TRACEFORWATCH

Registering command INSN

Registering command INSNREENABLE

Registering command INSNREG1

Registering command INSNREG2

Registering command INSN2

Registering command INSN2REENABLE

Registering command INSN2REG1

Registering command INSN2REG2

Registering command ALTL1TRACE

Registering command MAXL1TRACE

Registering command MAXL1TRACERESUME

Registering command MMUTRACE

Registering command TRACEIGNORE

Registering command PERMISSIVEMMUTRACE

Registering command KILL

Registering command PS

Registering command LSMOD

Registering command ADDR2MOD

Registering command AC97

Not registering command ATIDBG

Initializing for machine 'Generic Intel PXA27x'

HaRET(1)# set ramaddr 0xa0000000

HaRET(2)# addlist IRQS p2v(0x40D00000) 0x480 32 0

HaRET(3)# addlist IRQS p2v(0x40D0009c) 0xfffffffc 32 0

HaRET(4)# addlist IRQS p2v(0x40E00048) 0 32 0

HaRET(5)# addlist IRQS p2v(0x40E0004c) 0 32 0

HaRET(6)# addlist IRQS p2v(0x40E00050) 0 32 0

HaRET(7)# addlist IRQS p2v(0x40E00148) 0 32 0

HaRET(8)# addlist GPIOS p2v(0x40E00000)

HaRET(9)# addlist GPIOS p2v(0x40E00004)

HaRET(10)# addlist GPIOS p2v(0x40E00008)

HaRET(11)# addlist GPIOS p2v(0x40E00100)

HaRET(12)# addlist GPIOS p2v(0x40E0000C)

HaRET(13)# addlist GPIOS p2v(0x40E00010)

HaRET(14)# addlist GPIOS p2v(0x40E00014)

HaRET(15)# addlist GPIOS p2v(0x40E0010C)

HaRET(16)# addlist GPIOS p2v(0x40E00054)

HaRET(17)# addlist GPIOS p2v(0x40E00058)

HaRET(18)# addlist GPIOS p2v(0x40E0005c)

HaRET(19)# addlist GPIOS p2v(0x40E00060)

HaRET(20)# addlist GPIOS p2v(0x40E00064)

HaRET(21)# addlist GPIOS p2v(0x40E00068)

HaRET(22)# addlist GPIOS p2v(0x40E0006c)

HaRET(23)# addlist GPIOS p2v(0x40E00070)

HaRET(24)# newvar CLOCKS GPIOS 'Architecture clock registers'

HaRET(25)# addlist CLOCKS p2v(0x41300000)

HaRET(26)# addlist CLOCKS p2v(0x41300004)

HaRET(27)# addlist CLOCKS p2v(0x41300008)

HaRET(28)# addlist CLOCKS p2v(0x4130000C)

HaRET(29)# addlist CLOCKS cp 14 0 6 0 0

HaRET(30)# addlist CLOCKS cp 14 0 7 0 0

Welcome, this is HaRET 0.5.1 running on WindowsCE v5.2

Minimal virtual address: 00010000, maximal virtual address: 7FFFFFFF

Detected machine Generic Intel PXA27x/PXA27x (Plat='PocketPC' OEM='Asus P535')

CPU is Intel ARM arch 5TE revision 0 product 17 stepping 7 running in system mode

Enter 'HELP' for a short command summary.



Running WSAStartup

Starting gui

In initdialog

Found machine Generic Intel PXA27x

executing startup.txt

HaRET(1)# set mtype 535

HaRET(2)# set kernel "zImage"

HaRET(3)# boot

boot KERNEL=zImage INITRD=

Opening file zImage

boot params: RAMADDR=a0000000 RAMSIZE=04000000 MTYPE=535 CMDLINE='root=/dev/ram0 ro console=tty0'

Boot FB feedback: 1

Built virtual to physical page mapping

Allocated 307 pages (tags=4EC00000/a2309000 kernel=4EC01000/a2308000 initrd=4ED2F000/a21a1000 index=4ED2F000/a21a1000)

Built kernel tags area

Built page index

Video buffer at 48A00080 sx=240 sy=320 mx=60 my=53

Video Phys FB=5c000080 Fonts=a219f064

preload=2264@4ED32000/a219e000 sj=4ED32000 stack=4ED30000/a21a0000 data=4ED31000/a219f000 exec=a219e128

Reading 1235904 bytes...

Read complete

Launching to physical address a219e010

Trampoline setup (tram=136@000241C0/1e0241c0/a0b831c0)

MMU setup: mmu=A87D0000/a07d0000

Go Go Go...

sp3dev
20th May 2008, 05:43 PM
To begin with, you need to dump gpio table and pxa27xlccr (with gnuharet).. and then make your own kernel. but you could try my kernel from asus p525

http://rapidshare.com/files/116299470/zImage.html

and yes, for it not to hang. use this startup.txt

set KERNEL zImage

set MTYPE 1554

set CMDLINE "debug rootdelay=10 root=/dev/ram0 console=tty0 fbcon=rotate:0 mem=64M"

boot2

cr2
21st May 2008, 12:35 AM
To begin with, you need to dump gpio table and pxa27xlccr (with gnuharet)..


I've ported the 'dump pxa27x' command to mainline haret:
http://jornada820.sf.net/files/haret/haret-w.exe


but you could try my kernel from asus p525


I don't see asus 525 mentioned here
http://www.handhelds.org/moin/moin.cgi/SupportedHandheldSummary
Can you provide the kernel patch for it ?

sp3dev
21st May 2008, 01:14 PM
yes, i mean dump pxa27xgpio of course.. i think i will add asus to hh cvs.. but not now. i've been rather busy. anyhow, i will need to clean the code and fix audio before it.

btw, could you help me with linux? actually, not with hardware (though i need some help with joystick and pca9535).. with qtopia.

btw, thanks for haret

hurvinek007
23rd May 2008, 09:55 AM
Can any one please post the whole package ? I cant make it run.

thx

cr2
23rd May 2008, 01:35 PM
yes, i mean dump pxa27xgpio of course..

'dump pxa27x' in haret-w.exe includes the output of all 'dump pxa27x*' commands
in gnu-haret.

btw, could you help me with linux? actually, not with hardware (though i need some help with joystick and pca9535).. with qtopia.


I think you should take the qtopia image from universal, and set joystick key events
to match those used by universal.

oboroten
23rd May 2008, 02:59 PM
If you run the kernel, please write message :)

sp3dev
31st May 2008, 10:55 AM
Ok, ATM it seems only me and DaLiV are working on linux on p525. but we wouldnt mind anyone join us.

We have 2.6.21 kernel, correctly set up fb, partly working keypad, sd memory through pxa mmc driver, corgi-bl driver and touchscreen

Sound is working through pxa2xx-ac97, headphones only. need to set volume via alsamixer. we are working on wm9713 driver

The things that are to be done (the most important ones, in the decreasing order of importance)
UDC
Suspend
PCA9535 i2c
Bluetooth
Phone

Anyone who wants to test it
http://rapidshare.com/files/118520723/ln.tgz.html
http://familiar.handhelds.org/releases/v0.8.4/install/files/ipaq-pxa270/gpe-image-v0.8.4-ipaq-pxa270.rootfs.tar.bz2

Create an ext2 partition on your flash card (second partition, primary. or edit default.txt)
unpack (e.g. if your flash is - /media/usbdisk-1
bunzip2 gpe-image-v0.8.4-ipaq-pxa270.rootfs.tar.bz2
tar xvpf gpe-image-v0.8.4-ipaq-pxa270.rootfs.tar -C /media/usbdisk-1
certainly, this is to be done under root. to keep permissions for all files
then,
sync
remove /lib/modules and replace with ours. the same is with /etc/modutils
That is all. just copy all files from 'kernel' dir to your pda and run haret.exe


And the log
[ 0.000000] Linux version 2.6.21-hh20 (root@ACPK4F) (gcc version 4.2.1) #94 PREEMPT Fri May 30 21:25:16 MSD 2008
[ 0.000000] CPU: XScale-PXA270 [69054117] revision 7 (ARMv5TE), cr=0000397f
[ 0.000000] Machine: Asus P525
[ 0.000000] Memory policy: ECC disabled, Data cache writeback
[ 0.000000] On node 0 totalpages: 16384
[ 0.000000] DMA zone: 128 pages used for memmap
[ 0.000000] DMA zone: 0 pages reserved
[ 0.000000] DMA zone: 16256 pages, LIFO batch:3
[ 0.000000] Normal zone: 0 pages used for memmap
[ 0.000000] Run Mode clock: 208.00MHz (*16)
[ 0.000000] Turbo Mode clock: 208.00MHz (*1.0, active)
[ 0.000000] Memory clock: 104.00MHz (/2)
[ 0.000000] System bus clock: 208.00MHz
[ 0.000000] CPU0: D VIVT undefined 5 cache
[ 0.000000] CPU0: I cache: 32768 bytes, associativity 32, 32 byte lines, 32 sets
[ 0.000000] CPU0: D cache: 32768 bytes, associativity 32, 32 byte lines, 32 sets
[ 0.000000] Built 1 zonelists. Total pages: 16256
[ 0.000000] Kernel command line: debug rootdelay=10 root=/dev/mmcblk0p2 console=tty0 fbcon=rotate:0 mem=64M
[ 0.000000] PID hash table entries: 256 (order: 8, 1024 bytes)
[ 0.000000] Console: colour dummy device 80x30
[ 0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
[ 0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.000000] Memory: 64MB = 64MB total
[ 0.000000] Memory: 61988KB available (2608K code, 182K data, 84K init)
[ 0.010000] Calibrating delay loop... 207.25 BogoMIPS (lpj=1036288)
[ 0.200000] Mount-cache hash table entries: 512
[ 0.200000] CPU: Testing write buffer coherency: ok
[ 0.200000] NET: Registered protocol family 16
[ 0.230000] usbcore: registered new interface driver usbfs
[ 0.230000] usbcore: registered new interface driver hub
[ 0.230000] usbcore: registered new device driver usb
[ 0.240000] Time: pxa_timer clocksource has been installed.
[ 0.240000] NET: Registered protocol family 2
[ 0.310000] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.310000] TCP established hash table entries: 2048 (order: 2, 16384 bytes)
[ 0.310000] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.310000] TCP: Hash tables configured (established 2048 bind 2048)
[ 0.310000] TCP reno registered
[ 0.340000] PXA CPU frequency change support initialized
[ 0.340000] NetWinder Floating Point Emulator V0.97 (double precision)
[ 0.340000] JFFS2 version 2.2. (NAND) (C) 2001-2006 Red Hat, Inc.
[ 0.340000] io scheduler noop registered
[ 0.340000] io scheduler anticipatory registered (default)
[ 0.340000] io scheduler deadline registered
[ 0.350000] Corgi Backlight Driver Initialized.
[ 0.360000] Console: switching to colour frame buffer device 30x40
[ 0.450000] SA1100/PXA2xx Watchdog Timer: timer margin 60 sec
[ 0.450000] pxa2xx-uart.0: ttyS0 at MMIO 0x40100000 (irq = 22) is a FFUART
[ 0.450000] pxa2xx-uart.1: ttyS1 at MMIO 0x40200000 (irq = 21) is a BTUART
[ 0.460000] pxa2xx-uart.2: ttyS2 at MMIO 0x40700000 (irq = 20) is a STUART
[ 0.490000] RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
[ 0.510000] loop: loaded (max 8 devices)
[ 0.520000] usbmon: debugfs is not available
[ 0.530000] ohci_hcd: 2006 August 04 USB 1.1 'Open' Host Controller (OHCI) Driver
[ 0.550000] usbcore: registered new interface driver usbhid
[ 0.560000] drivers/usb/input/hid-core.c: v2.6:USB HID core driver
[ 0.580000] pxa27x_udc: version 01-01-2006
[ 0.590000] UDC disconnected.
[ 0.600000] UDC disconnected.
[ 0.610000] ether gadget: using random self ethernet address
[ 0.620000] ether gadget: using random host ethernet address
[ 0.640000] usb0: Ethernet Gadget, version: May Day 2005
[ 0.650000] usb0: using pxa27x_udc, OUT ep2out-bulk IN ep1in-bulk STATUS ep3in-intr
[ 0.670000] usb0: MAC 0e:8c:22:12:b3:da
[ 0.680000] usb0: HOST MAC 06:2f:b7:42:8d:6e
[ 0.690000] usb0: RNDIS ready
[ 0.810000] UDC connect.
[ 0.810000] input: gpio-keys as /class/input/input0
[ 0.830000] input: pxa27x-keyboard as /class/input/input1
[ 0.840000] PXA27x keyboard controller enabled
[ 0.850000] sa1100-rtc sa1100-rtc: rtc intf: sysfs
[ 0.870000] sa1100-rtc sa1100-rtc: rtc intf: proc
[ 0.880000] sa1100-rtc sa1100-rtc: rtc intf: dev (254:0)
[ 0.890000] sa1100-rtc sa1100-rtc: rtc core: registered sa1100-rtc as rtc0
[ 0.910000] APM Battery Driver
[ 0.920000] min dma period: 1230768 ps, new clock 624000 kHz
[ 0.930000] min dma period: 1230768 ps, new clock 624000 kHz
[ 0.960000] Advanced Linux Sound Architecture Driver Version 1.0.14rc3 (Wed Mar 14 07:25:50 2007 UTC).
[ 1.040000] ALSA device list:
[ 1.050000] #0: pxa2xx-ac97 (Wolfson WM9713,WM9714)
[ 1.060000] TCP cubic registered
[ 1.070000] NET: Registered protocol family 1
[ 1.080000] NET: Registered protocol family 17
[ 1.090000] XScale iWMMXt coprocessor detected.
[ 1.100000] sa1100-rtc sa1100-rtc: setting the system clock to 1970-01-01 15:22:38 (55358)
[ 1.120000] Waiting 10sec before mounting root device...
[ 1.140000] mmcblk0: mmc0:b368 SD 501248KiB
[ 1.150000] mmcblk0: p1 p2 p3
[ 11.180000] EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended
[ 11.200000] VFS: Mounted root (ext2 filesystem).
[ 11.210000] Freeing init memory: 84K
[ 46.750000] wm97xx: version 0.65 liam.girdwood@wolfsonmicro.com
[ 46.780000] wm97xx: detected a wm9713 codec
[ 46.810000] input: wm97xx touchscreen as /class/input/input2
[ 46.840000] wm97xx: setting pen detect pull-up to 8000 Ohms

bevoc
11th June 2008, 07:02 PM
tried on my o2zinc as it has the same processor, will report on any prog. thx

erusfatum
19th July 2008, 03:41 PM
Anyone who wants to test it
http://rapidshare.com/files/118520723/ln.tgz.html
http://familiar.handhelds.org/releases/v0.8.4/install/files/ipaq-pxa270/gpe-image-v0.8.4-ipaq-pxa270.rootfs.tar.bz2

Create an ext2 partition on your flash card (second partition, primary. or edit default.txt)
unpack (e.g. if your flash is - /media/usbdisk-1
bunzip2 gpe-image-v0.8.4-ipaq-pxa270.rootfs.tar.bz2
tar xvpf gpe-image-v0.8.4-ipaq-pxa270.rootfs.tar -C /media/usbdisk-1
certainly, this is to be done under root. to keep permissions for all files
then,
sync
remove /lib/modules and replace with ours. the same is with /etc/modutils
That is all. just copy all files from 'kernel' dir to your pda and run haret.exe


i have a p525 with windows mobile 6 and after a lot of messing around and an unwanted hardreset i managed to make it work. i havent checked everything yet, but as far as i can say from the hardware keys only the number keys work.

hurvinek007
23rd September 2008, 10:49 AM
I keep on having error about vfs root filesystem, any idea ???

bevoc
30th September 2008, 01:59 PM
how did you make it work? i'm working on windows pc, how do i proceed? or do i have to install linux... ubuntu perhaps?

kosmodisk
23rd November 2008, 09:41 AM
guys what about port of android for other devices with pxa27x procesors?

sp3dev
7th January 2009, 07:16 PM
Ok, a test build of qtopia for p525
copy haret.exe, default.txt and zImage to your wince pda
then, make an ext2 or reiserfs filesystem on one of sd card partitions. you can find manuals on using fdisk or gparted on the internet. e.g., your new partition is /dev/sde2
then,
mkfs.ext2 /dev/sde2
mkdir /mnt/asus
mount /dev/sde2 /mnt/asus
tar xvpf asus_qtopia.tar.bz2 -C /mnt/asus
cd /mnt/asus
sync
cd /
umount /mnt/asus

Then, edit you default.txt to point to your partition. replace mmcblk0p2 with the partition name, like mmcblk0p3

At the moment you can only use menu, some qtopia apps, gsm calls do not work. Anyone willing to help me implement gsm calling? i can provide you with gsm logs from 525)).

Here are some screenshots

http://img232.imageshack.us/img232/7804/qtx442hd9.png
http://img217.imageshack.us/img217/8117/successbh9.png

Ok, the brief status of the porting

Working in kernel
1. Framebuffer
2. Backlight
3. LEDs and vibro
4. Sound via pxa2xx-ac97 (still need to add sound profiles)
5. Keyboard - partly (only the part connected to pxa)
6. Touchscreen
7. max8588 voltage regulator
8. PCMCIA (not included)
9. SD Memory Card
10. pxa ficp - irda
11. USB partly. if enabled before booting linux

Todo
1. Bluetooth FW loader
2. i2c-connected keypad and joypad
3. Camera (looks like it's mt9m911)
4. Battery (dunno how it is connected)
5. Fix libertas to support our CF8385 B1

As for Qt Extended. GSM is not working. So it's the primary objective for now
If anyone who had the experience with porting qtopia to uni/freerunner/motorola wishes to join the project - you're welcome

http://depositfiles.com/ru/files/awz83fp34

Steven855
7th January 2009, 09:49 PM
Can't we just use an updated kernel? I mean, kernel 2.6.21 is a little old, and the latest (stable) kernel has bugfixes for the arm platform that 2.6.21 doesn't have.

sp3dev
8th January 2009, 12:54 PM
The kernel in the archive with qtopia is 2.6.27-rc5

upcFrost
1st March 2009, 12:13 AM
sp3dev
Please, can you upload somewhere your kernel config and mach- dir? I'm trying to make kernel for Rover S5 (aka Lenovo ET980), and your kernel is working good on this device (according to the fedora's boot logs), but with 1 major problem - display is not working :(

p.s. i'm talking about 2.6.21-hh20 kernel config, the new one isn't working