Subject: Re: boot problems on jornada 680
To: None <port-hpcsh@netbsd.org>
From: Dean <dean@DeanAndAdie.net>
List: port-hpcsh
Date: 10/13/2002 22:56:26
--pf9I7BMVVzbSWLtt
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

On Fri, Oct 11, 2002 at 10:27:16PM +0400, Valeriy E. Ushakov wrote:
> 
> The biggest problem currently is that in-tree gcc cannot generate PIC
> code for sh3 (support for PIC for sh3 was introduced only in gcc3).
> This means that you can only build a static world, i.e. that you world
> will be *big*.  So getting at least a 128M CF is a good idea, and even
> then you will need to do some trimming.  I think 256M CF can
> accomodate the whole static world.
> 
> I successfully use pcmcia modem.  My card is an ether/modem Megahertz
> combo, but due to card quirks it doesn't announce itself as a
> multifunction card.  The ethernet part has issues, but I'd blame it on
> driver problems.  I don't have other pcmcia cards to try, but from
> mailing lists I gather that folks successfully use pcmcia nics in
> these machines.
> 
> SY, Uwe

Thanks Uwe.  I managed to get my jornada to boot the kernel and mfsroot.fs.  The
kernel didn't recognize my ethernet adapter but I hope building my own kernel
will take care of that.

Now to find a cf card....  And get NetBSD installed somewhere.  What directions
should I be following?  http://www.netbsd.org/Ports/hpcsh/howto-use.html seems
pretty straightforward.

Boot log attached.  I removed and re-inserted the PCMCIA card and this can be
seen in the log.
--Dean
--
Unscrambler of eggs.
--------------------------------------------------------------------------------
It matters not how strait the gate, / How charged with punishments the scroll,
I am the master of my fate: / I am the captain of my soul.        -- Invictus --
                                                          -- William E Henley --

--pf9I7BMVVzbSWLtt
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename=bootlog


--------HPCBOOT--------
CPU: SH7709A
MemoryManager: LockPages
FileManager: FAT
Memory Bank:
[0] 0x0c000000 size 0x02000000
[1] 0x0e000000 size 0x02000000
GetVersionEx
Windows CE 2.11
GetSystemInfo:
wProcessorArchitecture      0x4
dwPageSize                  0x400
dwAllocationGranularity     0x00010000
dwProcessorType             0x2713
wProcessorLevel             0x3
wProcessorRevision          0x0
Display: 640x240 16bpp
DEBUG BIT: ................................ [0x00000000] 0
open file "\netbsd\miniroot.fs"(4194304 byte).
open file "\netbsd\netbsd-new.gz"(700227 byte).
Loader: COFF
file size: text 0x117bb0 + data 0x7710 = 0x11f2c0 byte
address translation table 5376 pages.(43008 byte)
allocated 5376 page. mapped 5376 page.
2nd bootloader address U0: 0x005dfc00 P1: 0x8ce50800
[text]	->load 0x8c001000+0x00117bb0=0x8c118bb0 ofs=0x000000d0+0x117bb0
[data]	->load 0x8c118bb0+0x00007710=0x8c1202c0 ofs=0x00117c80+0x7710
[bss ]	->load 0x8c1202c0+0x000396b4=0x8c159974 ofs=0x00000000+0x0
[zero clear] ->0x8c1202c0+0x000396b4=0x8c159974
open file "\netbsd\miniroot.fs"(4194304 byte).
[file system image]	->load 0x8c15a000+0x00400000=0x8c55a000 ofs=0x00000000+0x4
00000
load link 5330 zero clear link 1.
kernel entry address: 0x8c001000
framebuffer: 640x240 type=5 linebytes=1280 addr=0xb2000000
console = 3
boot arg: 0x8ce50400 stack: 0x8ce50200
Booting kernel...
option [0]: netbsd-new.gz
option [1]: h
option [2]: v
option [3]: m=miniroot.fs
platid(cpu/machine) = 08108000/02c20101
display=640x240-(1280) 0xb2000000 type=5 
search D-RAM from 0x0c55a000 for 0x0e000000
mem_cluster_cnt = 2
mem_clusters[0] = {0xc000000+0x55a000 <0xc55a000}
mem_clusters[1] = {0xc55a000+0xaa6000 <0xd000000}
total memory = 16Mbyte
nkpde = 8
proc0 stack: 0x8c55ef94
loading 0xc568000,0xa98000
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001
    The NetBSD Foundation, Inc.  All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
    The Regents of the University of California.  All rights reserved.

NetBSD 1.5T (RAMDISK) #0: Sun Mar 25 02:27:37 JST 2001
    uch@alexandrite.rfe.nop.or.jp:/work/cvsrep/syssrc/sys/arch/hpcsh/compile/RAMDI
SK
total memory = 16384 KB
avail memory = 9552 KB
using 230 buffers containing 920 KB of memory
HP Jornada 680 (Hitachi SH7709A)
mainbus0 (root)
bivideo0 at mainbus0: pseudo video controller
bivideo0: framebuffer address: 0xb2000000
hpcfb0 at bivideo0: hpcrasops 640x240 pixels, 65536 colors, 80x24 chars: multi
wsdisplay0 at hpcfb0
wsdisplay0: screen 0 added (std, vt100 emulation)
shb0 at mainbus0
scif0 at shb0 port 0xa4000008-0xa4000017 irq 12
scif0: console
hd64461if0 at shb0 irq 4
--------------------------------[hd64461_info]--------------------------------
STBCR (System Control Register)
CKIO_STBY[_] SAFECKE_IST[x] SLCKE_IST[_] SAFECKE_OST[x] SLCKE_OST[_] SMIAST[x] SLC
DST[_] SPC0ST[x] SPC1ST[x] SAFEST[x] STM0ST[x] STM1ST[_] SIRST[x] SURTSD[x] 
SYSCR (System Configuration Register)
SCPU_BUS_IGAT[_] SPTA_IR[_] SPTA_TM[x] SPTB_UR[_] WAIT_CTL_SEL[_] SMODE1[_] SMODE0
[_] 
SCPUCR (CPU Data Bus Control Register)
SPDSTOF[_] SPDSTIG[x] SPCSTOF[_] SPCSTIG[x] SPBSTOF[_] SPBSTIG[x] SPASTOF[_] SPAST
IG[x] SLCDSTIG[x] SCPU_CS56_EP[_] SCPU_CMD_EP[x] SCPU_ADDR_EP[x] SCPDPU[_] SCPU_A2
319_EP[_] 

NIRR (Interrupt Request Register)
PCC0R[_] PCC1R[_] AFER[_] GPIOR[_] TMU0R[_] TMU1R[_] IRDAR[_] UARTR[_] 
NIMR (Interrupt Mask Register)
PCC0M[_] PCC1M[_] AFEM[x] GPIOM[x] TMU0M[x] TMU1M[x] IRDAM[x] UARTM[x] 
--------------------------------------------------------------------------------
hd64461video at hd64461if0 not configured
hd64461pcmcia0 at hd64461if0
-----------------------------[hd64461pcmcia_info]-----------------------------
[PCC0 memory and I/O card (SH3 Area 6)]
PCC0 Interface Status Register
P0READY[_] P0MWP[_] P0VS2[x] P0VS1[x] P0CD2[_] P0CD1[x] P0BVD2[_] P0BVD1[_] 
PCC0 General Control Register
P0DRVE[_] P0PCCR[_] P0PCCT[_] P0VCC0[x] P0MMOD[x] P0PA25[_] P0PA24[_] P0REG[_] 
PCC0 Card Status Change Register
P0SCDI[_] P0IREQ[x] P0SC[_] P0CDC[_] P0RC[_] P0BW[_] P0BD[_] 
PCC0 Card Status Change Interrupt Enable Register
P0CRE[_] P0SCE[_] P0CDE[x] P0RE[_] P0BWE[_] P0BDE[_] 
interrupt type: none
PCC0 Software Control Register
P0VCC1[x] P0SWP[_] 
[PCC1 memory card only (SH3 Area 5)]
PCC1 Interface Status Register
P1READY[x] P1MWP[x] P1VS2[x] P1VS1[x] P1CD2[x] P1CD1[x] P1BVD2[x] P1BVD1[x] 
PCC1 General Contorol Register
P1DRVE[_] P1PCCR[_] P1VCC0[x] P1MMOD[x] P1PA25[_] P1PA24[_] P1REG[_] 
PCC1 Card Status Change Register
P1SCDI[_] P1CDC[_] P1RC[_] P1BW[_] P1BD[_] 
PCC1 Card Status Change Interrupt Enable Register
P1CRE[_] P1CDE[x] P1RE[_] P1BWE[_] P1BDE[_] 
PCC1 Software Control Register
P1VCC1[x] P1SWP[_] 
[General Control]
PCC0 Output pins Control Register
P0DEPLUP[_] P0AEPLUP[_] 
PCC1 Output pins Control Register
P1RST8MA[_] P1RST4MA[_] P1RAS8MA[_] P1RAS4MA[_] 
PC Card General Control Register
PSSDIR[_] PSSRDWR[_] 
--------------------------------------------------------------------------------
pcmcia0 at hd64461pcmcia0
detect_card: transition
pcmcia1 at hd64461pcmcia0
detect_card: remove
hd64461gpio at hd64461if0 not configured
hd64461afe at hd64461if0 not configured
hd64461uart at hd64461if0 not configured
hd64461fir at hd64461if0 not configured
pfckbd0 at mainbus0
hpckbd0 at pfckbd0: no keymap.
wskbd0 at hpckbd0 mux 1
md0: internal 4096 KB image area
boot device: <unknown>
root on md0a dumps on md0b
WARNING: preposterous time in file system
readclock: 99/1/1/12/24/38(5)
WARNING: file system time much less than clock time
init: copying out path `/sbin/init' 11
/etc/rc.conf is not configured.  Multiuser boot aborted.
Enter pathname of shell or RETURN for sh: 
# ifconfig -a
lo0: flags=8008<LOOPBACK,MULTICAST> mtu 33228
# hd64461pcmcia_channel0_intr: spurious IREQ interrupt.
detect_card: remove
queue_event: spurious CSC interrupt.
# 
# hd64461pcmcia_channel0_intr: spurious IREQ interrupt.
detect_card: transition
hd64461pcmcia_channel0_intr: spurious IREQ interrupt.
detect_card: transition

# ifconfig -a
lo0: flags=8008<LOOPBACK,MULTICAST> mtu 33228
# reboot
Jan  1 03:29:59 reboot: rebooted by root
Jan  1 03:29:59 init: kernel security level changed from 0 to 1
syncing disks... done
unmounting / (mfs_root)...
setclock: 99/1/1/12/30/6(5)

--pf9I7BMVVzbSWLtt--