Re: [jornada] Re: Kernel source? (Power managememt for HP Jornada 720)

From: Peter Gerwinski <peter_at_gerwinski.de>
Date: Mon, 24 Jun 2002 19:53:39 +0200

Christopher Hoover wrote:
> Please check the archives. Hpcboot will *NOT* directly boot a linux elf
> kernel image w/o modification to either hpcboot or the kernel startup
> code. Details in the archive.

I did the necessary modifications to the kernel. So far my roadmap
is as follows:

 - Get the current kernel from handhelds.org.
 - Comment out 3 lines concerning "invalid architecture?"
   in arch/arm/kernel/head-armv.S
   (see http://acid.ch.pw.edu.pl/~sq5bpf/mylinux/linux-jornada720/).
 - Comment out the test "if (mount_initrd && ROOT_DEV != real_root_dev
   && MAJOR(ROOT_DEV) == RAMDISK_MAJOR && MINOR(ROOT_DEV == 0)"
   in init/main.c; make the following action take place unconditionally
   (see BootLinuxWithoutFlashing.html written for the IPAQ,
   somewhere under handhelds.org).
 - Apply the CIBD patch.
 - Correct the obvious error in drivers/block/makeh, or else use
   some other mechanism to put a 2 MB RamDisk into the CIBD. (More
   about this in a separate email.)
 - The 2 MB RamDisk must be set up to serve as an initrd and contain
   a linuxrc that starts PCMCIA services, accesses a CF IDE card and
   mounts one of its partitions as the root file system.
   (I am uploading my current - gzipped - disk image to:
   http://www.peter.gerwinski.de/linux-2048.initrd-20020624.gz)

(Hey - this can be a starting point for a HOWTO!:-)

I got this working for linux-2.4.18-rmk2-hh2 (without power
management) - see my previous email. However for the current kernel
(with power management) I get the following:

    [...]
    Loading modules ...
    Using /lib/modules/2.4.18-rmk3/kernel/drivers/ide/ide-disk.o
    Using /lib/modules/2.4.18-rmk3/kernel/drivers/ide/ide-cs.o
    Running cardmgr ...
    cardmgr[13]: starting, version is 3.1.20
    cardmgr[13]: watching 2 sockets
    cardmgr[13]: Card Services release does not match
    cardmgr[13]: initializing socket 1
    cardmgr[13]: socket 1: ATA/IDE Fixed Disk
    cardmgr[13]: product info: "CF Card", "CFA 256MB CHH", "", jornada720_pcmcia_configure_socket(): config socket 1 vcc 33 vpp 0
    ""
    cardjornada720_pcmcia_configure_socket(): config socket 1 vcc 33 vpp 0
    mgr[13]: manfid: 0x0007, 0x0000 function: 4 (fixed disk)
    Trying to free nonexistent resource <c2820000-c282000f>
    hda: 256MB CHH, ATA DISK drive
    ide0 at 0xc2820000-0xc2820007,0xc282000e on irq 115
    hda: 500640 sectors (256 MB) w/16KiB Cache, CHS=1043/15/32
    Partition check:
     /dev/ide/host0/bus0/target0/lun0:hda: lost interrupt
    hda: lost interrupt
    hda: lost interrupt
    [...]

This was no problem with linux-2.4.18-rmk2-hh2. Any idea what is
going wrong and what to do against it?

    Peter

-- 
http://snsg.org !*koICcdGVGqf_I\Wzp?t"$_u7[e^TJmY-($ni_HX~#072.'SIhe.p5n
06:2\4]w2GNFrM2ZpKP^ca>mqLIuyGiK=O8=xQ|`.{qPlN>f=>aCM_at_B5a4SH,k(7ot(C@`m,
zmmkZ5Hh1cgp8al2ck1P$]K_$@{'uC?H[DoLq<Q*av_hA4cP,(@:qNj[UXYQV`7DD4o%T27t
p:2.=3vbS0^KGEbb9Rdq6&!1b0COOh'{`!W*:ds+:*8Fyzra\atRp_h!C*S:;L;i*71wg|@/
Received on Mon Jun 24 2002 - 17:53:39 EDT

This archive was generated by hypermail 2.2.0 : Mon Jul 25 2005 - 17:26:16 EDT