prep
  Current Status
  Swapping kernel

Last Update: "2014/08/13 22:32:51 makoto"
photo's | port-prep ML | dmesg

prep

Current Status

  • 2013/08/18 I've got IBM 43P/133 model 7248
  • Booting with floppy disk of 4.0_RC5 and select ftp install of 5.0 completed. Runs multi-user fine (5.0)
Release bootinstall kernel runssysinst multiuserpatchdmesg
4.0_RC5 floppy completed for (5.0)
5.0 sd0()(4.0) YES dmesg
5.2 sd0()YESYESYES dmesg
6.1 sysinst.fsYESYES cursor blinking
6.1.1 sysinst.fsYESYES cursor blinking
Current date (JST) bootinstall kernel runssysinst multiuserpatchdmesg
2014-07-05 6.99.46sysinst.fsYESYES dmesg
2014-06-18 6.99.44sysinst.fsYES(with patched ONLY) YESSMALL kernel align patch dmesg
2014-06-18 6.99.44sysinst.fsYES(with patched ONLY) YEScursor blinking align patch dmesg
2014-06-18 6.99.44sysinst_small.fsYESYEScursor blinking dmesg
2013-08-28sysinst.fsYESYESYES align base-mi patchdmesg
2013-08-26sysinst.fsinit ISI trap(*) align base-mi patch
2013-08-18sysinst.fsinit ISI trap(*)
2013-08-01sysinst.fsinit ISI trapsets/list align
2013-07-20sysinst.fsinit ISI trapsets/list align
2013-07-07sysinst.fsYESYESsets/list align
2013-05-07sysinst.fsYESYESYESbase/mi | align-battable dmesg
2013-05-07sysinst.fsYESNot startingbase/mi
2013-05-02dmesg
2013-04-28sysinst.fsYESRuns FineSee belowbase/mi | patch
2013-04-28sysinst.fsYESNO promptbase/mi
sysinst.fs = by netboot
I needed only for sysinst.fs, so patches is purely work around.
5.2
chown segment fault
6.1
GENERIC is too large and breaks stack in bootloader
6.1.1
At the last stage of sysinst, .postinstall and mkbootimage said 'Ended by signal'.
2013-04-28 + patch (GENERIC kernel)
>> NetBSD/prep BOOT, Revision 1.9 (Sun Aug 25 17:15:56 JST 2013)

INTRF
phase mismatch without command
selection timeout without command
unhandled scsi interrupt, sist=0xffff sstat1=0xff DSA=0xffffffff DSP=0x7f7e9fff
XXXXX: fatal error, need reset the bus...
2013-05-07
With the patch to oea/oea_machdep.c to align the address of battable and with small conf, it works now.
NetBSD 6.99.19 (INSTALL) #27: Mon Aug 26 00:26:34 JST 2013		OK
   text    data     bss     dec     hex filename
1941421 2142436  122720 4206577  402ff1 netbsd


NetBSD 6.99.19 (INSTALL_SMALL) #9: Mon Aug 26 00:26:34 JST 2013		not tested
   text    data     bss     dec     hex filename
1604004 2138596  115232 3857832  3adda8 netbsd


NetBSD 6.99.19 (GENERIC) #18: Mon Aug 26 00:26:35 JST 2013		BAD
   text    data     bss     dec     hex filename
4127692   67460  172448 4367600  42a4f0 netbsd


NetBSD 6.99.19 (PREP.1) #0: Mon Aug 26 08:55:52 JST 2013                BAD
   text    data     bss     dec     hex filename
3827452   64812  171680 4063944  3e02c8 netbsd


NetBSD 6.99.19 (PREP) #1: Mon Aug 26 11:15:23 JST 2013                   OK
   text    data     bss     dec     hex filename
3724868   62676  171680 3959224  3c69b8 netbsd
Even with small kernel, if lower bit of the address of battable has '1 11xx',
modena@makoto 15:26:13/130826(..src-current/src)% \
obj/tooldir.NetBSD-6.1-amd64/bin/powerpc--netbsd-nm \
/export/src-current/src/sys/arch/prep/compile/obj/PREP/netbsd | \
grep ' B ' | sort | grep -4 'B battable'
004b4ab0 B prep_clock_mk48txx
004b4ab4 B __battable__gap0
004b4ab4 B __battable__gap1
004b4ab8 B iosrtable
004b4af8 B battable
004b5af8 B msgbuf_paddr
004b5afc B openpic_base
004b5d18 B pckbc_console_attached
004b5d1c B pckbc_consdata
it will hung after the showing lines
boot-device: sd0
root on sd0a dumps sd0b
root file system type: ffs
2013-08-18
init ISI trap:
trap: pid 1.1 (init): user ISI trap @ 0xfffffffc (SRR1=0x1000d032)
Reverting following change seem working again. http://mail-index.netbsd.org/source-changes/2013/07/18/msg045505.html
2013-08-28
sysinst_small_com0.fs
>> NetBSD/prep BOOT, Revision 1.9 (Sun Aug 25 23:49:28 JST 2013)

INTRF
phase mismatch without command
selection timeout without command
unhandled scsi interrupt, sist=0xffff sstat1=0xff DSA=0xffffffff DSP=0x7f7e9fff
XXXXX: fatal error, need reset the bus...

Swapping kernel

You need to do following command to replace kernel.
prep# ./mkbootimage -b ./boot -k /netbsd /.bootimage
mkbootimage: Image /.bootimage is 787778 bytes larger than single floppy. Can only be used for netboot.

prep# dd if=/.bootimage of=/dev/rsd0e conv=sync
4418+1 records in
4419+0 records out
2262528 bytes transferred in 4.177 secs (541663 bytes/sec)
prep# 
After installing 5.2 by sysinst, you may try 6.1.1 kernel by above procedure, but it won't boot similar to installed 6.1.1.

To modify boot, you may compile boot as follows and make boot image as above.

modena@makoto 17:18:47/130823(..src-current/src)% 
(cd sys/arch/prep/stand/boot; sudo /export/src-current/src/obj/tooldir.NetBSD-6.1-amd64/bin/nbmake-prep)
rm -f machine
ln -s /export/src-current/src/sys/arch/prep/stand/boot/../../../../arch/prep/include machine
rm -f powerpc
ln -s /export/src-current/src/sys/arch/prep/stand/boot/../../../../arch/powerpc/include powerpc
#   compile  boot/boot.o

/export/src-current/src/obj/tooldir.NetBSD-6.1-amd64/bin/powerpc--netbsd-gcc
-Os -mmultiple -ffreestanding -Werror -Wall
-Wstrict-prototypes -Wmissing-prototypes -std=gnu99 -Werror
-nostdinc
-I/export/src-current/src/sys/arch/prep/stand/boot/obj
-I/export/src-current/src/sys/arch/prep/stand/boot/../../../powerpc/stand/mkbootimage
-I/export/src-current/src/sys/arch/prep/stand/boot/../../../.. -D_STANDALONE
-DRELOC=0x800000 -DUSE_SCAN -D__daddr_t=int32_t -DCONS_VGA
-DVGA_RESET -c
/export/src-current/src/sys/arch/prep/stand/boot/boot.c

/export/src-current/src/obj/tooldir.NetBSD-6.1-amd64/bin/powerpc--netbsd-ld
-o boot.elf -N -T
/export/src-current/src/sys/arch/prep/stand/boot/../boot/ld.script
-Ttext 0x800000 srt0.o boot.o clock.o com.o conf.o cons.o
devopen.o filesystem.o inkernel.o io.o tgets.o prf.o monitor.o
kbd.o ns16550.o vers.o vreset.o vga.o pci.o sd.o siop.o
/export/src-current/src/sys/arch/prep/stand/common/obj/lib/sa/libsa.a
/export/src-current/src/sys/arch/prep/stand/common/obj/lib/kern/libkern.a
/export/src-current/src/sys/arch/prep/stand/common/obj/lib/z/libz.a

/export/src-current/src/obj/tooldir.NetBSD-6.1-amd64/bin/powerpc--netbsd-strip -o boot boot.elf
Last Update: Wed, 13 Aug 2014 13:30:51 GMT 1.66 2008/03/08