Re: [jornada] Initrd

From: Peter Gerwinski <peter_at_gerwinski.de>
Date: Tue, 7 Dec 2004 12:56:21 +0100

Hello, Tomas and everybody!

Tomas Vyskocil wrote:
> I try make my own initrd for booting my jornada 720 from wince, but my
> experiments weren't luckyness. And, therefore I want ask you for
> functional initrd for my jornada 720.

The list archives seem to be out of service, thus I am appending below
two of my emails from 2002 where I describe how I succeeded to boot
GNU/Linux on the Jornada 710/720 using HPCBoot.

Hope this helps,

    Peter

-- 
(_G-N-U_)   Dr. rer. nat. Peter Gerwinski <peter.gerwinski_at_g-n-u.de>
   o o      Geschäftsführer und Software-Entwickler
            G-N-U GmbH, EDV-Dienstleistungen, http://www.g-n-u.de
From: Peter Gerwinski <peter_at_gerwinski.de>
To: jornada_at_handhelds.org
Message-ID: <20020624194640.L27895_at_g-n-u.de>
Subject: [jornada] Booting Linux on the Jornada 710/720 using HPCBoot
Date: Mon, 24 Jun 2002 19:46:40 +0200
Hello,
since I am still having trouble with the current kernel, I decided
to publish the stuff I already have:
    http://www.peter.gerwinski.de/hdg1-20020529.tar.gz   (1372 kB)
    http://www.peter.gerwinski.de/hdg2-20020530.tar.gz  (71224 kB)
To play with it and see GNU/Linux/X11 booting on the Jornada
710/720, please create two partitions on a Compact Flash card,
e.g. /dev/hdg1 with ~8MB and /dev/hdg2 occupying the rest. Format
/dev/hdg1 such that WinCE can access it (e.g. VFAT) and /dev/hdg2 as
ext3 (or ext2). To boot Linux, simply run `hpcboot.exe' from WinCE.
You will get an X11 session as `root' with icewm plus another `root'
session on the serial line (152000 bps). In X11, press `Alt+Shift+X'
or `Alt+Shift+Y' for an `rxvt'.
(I named my own Jornada "sojourner" and have chosen an appropriate
background picture. PLEASE DO NOT give all your Jornadas the same
name! IMO each one must have its own personality! :-)
Have fun,
    Peter
-- 
http://snsg.org !*wNQC2?{BfX3bl/n'E#:H'78wkg)QT9z1qKew-,1,!MUd?~_n*vXAH~
<X|6VBBf_at_FMU4Or\_L4ad3cX7Y_at_9#kKLIhLf'|P-G>$p'l>Cf>WaH`eQB*kY;`vKsU2sJ.z9
J^yRDY35=NBWjG|EC|7J^ATNX|]QpFdKm{y)7Er/k8@!g~;~k7Ehvt.y')>RU*l@@@f,"gli
?a5F&mMNzet0oVpC#IT2r8Bq"edB-7+rl!RPb}v+HX4ljYMA<?Rj2IG{NJ#{Pc7LuudS/&l?
From: Peter Gerwinski <peter_at_gerwinski.de>
To: jornada_at_handhelds.org
Subject: Re: [jornada] Re: Kernel source? (Power managememt for HP Jornada 720)
Message-ID: <20020624195339.M27895_at_g-n-u.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 Tue Dec 07 2004 - 06:56:11 EST

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