steletoの日記 このページをアンテナに追加 RSSフィード

2017-07-05

[] GR-PEACHでxputc 00:54  GR-PEACHでxputc - steletoの日記 を含むブックマーク  GR-PEACHでxputc - steletoの日記 のブックマークコメント

GR-PEACHNetBSD載せらんねーかなという実験の手始めとしてブートローダのところを見ていると、どうもシリアルコンソールにデバッグ出力としてxputcというサブルーチンで行っているものがある。実態はおそらくsrc/sys/arch/arm/cortex/a9_mpsubr.SっぽいけどどうもRZ/A1Hでそのまま使えるかというとなんか微妙な気がする…ということでRZ/A1H向けのxputcを実装してみた。xputc以外はビルドを通すために用意しただけので空関数だったりと超適当。

おRZ/A1Hのシリアル出力は最大16文字分のバッファがあるので、正しくシリアル出力ができているかを確認したい場合は16文字以上の文字列を出す必要がある。それと文字化けや欠けが発生してもわかるよう、それなりの意味のある文字列が望ましい。…ということで10秒くらい考えた結果こうなった。

	.section .start,"ax",%progbits

	.global	_C_LABEL(grpeach_start)
_C_LABEL(grpeach_start):
	PRINT("hey, favstar! ban stop me premiamu! -- @toshi_a")

loop:
	b loop

と、こんなておくれプログラムでとりあえずxputcでシリアル出力ができることは確認できた。

ただこれでできたnetbsd.binをGR-PEACHに読ませようとしたときに気がついたんだけど、今のところ3MBはあるnetbsd.binをGR-PEACHのメモリに配置する方法がない。というのも、

  • シリアル(xmodem等) → なぜか600KiBほど転送した段階で固まる
  • USB → microUSB端子に刺さるものを持っていない
  • Ethernet → u-bootで対応しているようだけどコネクタを付けていない、ついでにHUBのポートも足りない
  • microSD → まさかのu-boot未対応

という状況。ちなみにxputcの確認はどうせコードは手前の領域だろうということで、xmodem転送中にフリーズしたらリセットして何食わぬ顔で実行、という手段で良かったんだけども。ぐぬぬ

2016-05-20

[] 7.99.29 23:42  7.99.29 - steletoの日記 を含むブックマーク  7.99.29 - steletoの日記 のブックマークコメント

やっと6.1.5だったデスクトップ環境をcurrentへ。ついでに余ってたSSD2つ(64GBと128GB)を繋いでそっちに入れることに。

6.1.5と比較したら大体こんなかんじ。

てなわけで特に問題なく使える。ありがたやありがたや。

Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
    2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016
    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 7.99.29 (GENERIC.201605150410Z)
total memory = 7606 MB
avail memory = 7366 MB
rnd: seeded with 128 bits
timecounter: Timecounters tick every 10.000 msec
Kernelized RAIDframe activated
timecounter: Timecounter "i8254" frequency 1193182 Hz quality 100
Hewlett-Packard p6-2210jp ( )
mainbus0 (root)
ACPI: RSDP 0x00000000000F0450 000024 (v02 HPQOEM)
ACPI: XSDT 0x00000000AB383078 000074 (v01 HPQOEM SLIC-CPC 01072009 AMI  00010013)
ACPI: FACP 0x00000000AB3882E8 0000F4 (v04 HPQOEM SLIC-CPC 01072009 AMI  00010013)
ACPI BIOS Warning (bug): Optional FADT field Pm2ControlBlock has valid Length but zero Address: 0x0000000000000000/0x1 (20160422/tbfadt-684)
ACPI: DSDT 0x00000000AB383180 005165 (v02 HPQOEM SLIC-CPC 00000000 INTL 20051117)
ACPI: FACS 0x00000000AB632C80 000040
ACPI: APIC 0x00000000AB3883E0 000072 (v03 HPQOEM SLIC-CPC 01072009 AMI  00010013)
ACPI: MCFG 0x00000000AB388458 00003C (v01 HPQOEM SLIC-CPC 01072009 MSFT 00010013)
ACPI: SLIC 0x00000000AB388498 000176 (v01 HPQOEM SLIC-CPC 01072009 AMI  00010013)
ACPI: HPET 0x00000000AB388610 000038 (v01 HPQOEM SLIC-CPC 01072009 AMI  00000005)
ACPI: IFEU 0x00000000AB388648 000042 (v01 HPQOEM SLIC-CPC 01072009      00000000)
ACPI: SSDT 0x00000000AB388690 000C04 (v01 AMD    POWERNOW 00000001 AMD  00000001)
ACPI: SSDT 0x00000000AB389298 00051F (v02 AMD    ALIB     00000001 MSFT 04000000)
ACPI: CRAT 0x00000000AB3897B8 0002D0 (v01 AMD    AGESA    00000001 AMD  00000001)
ACPI: DBGP 0x00000000AB389A88 000034 (v01 HPQOEM SLIC-CPC 01072009 AMI  00010013)
ACPI: Executed 1 blocks of module-level executable AML code
ACPI: 3 ACPI AML tables successfully acquired and loaded

ioapic0 at mainbus0 apid 5: pa 0xfec00000, version 0x21, 24 pins
cpu0 at mainbus0 apid 16
cpu0: AMD A10-5700 APU with Radeon(tm) HD Graphics   , id 0x610f01
cpu1 at mainbus0 apid 17
cpu1: AMD A10-5700 APU with Radeon(tm) HD Graphics   , id 0x610f01
cpu2 at mainbus0 apid 18
cpu2: AMD A10-5700 APU with Radeon(tm) HD Graphics   , id 0x610f01
cpu3 at mainbus0 apid 19
cpu3: AMD A10-5700 APU with Radeon(tm) HD Graphics   , id 0x610f01
acpi0 at mainbus0: Intel ACPICA 20160422
acpi0: X/RSDT: OemId <HPQOEM,SLIC-CPC,01072009>, AslId <AMI ,00010013>
acpi0: MCFG: segment 0, bus 0-255, address 0x00000000e0000000
acpi0: SCI interrupting at int 9
timecounter: Timecounter "ACPI-Fast" frequency 3579545 Hz quality 1000
hpet0 at acpi0: high precision event timer (mem 0xfed00000-0xfed00400)
timecounter: Timecounter "hpet0" frequency 14318180 Hz quality 2000
AMDN (PNP0C01) at acpi0 not configured
S900 (PNP0C02) at acpi0 not configured
SIO1 (PNP0C02) at acpi0 not configured
attimer1 at acpi0 (TMR, PNP0100): io 0x40-0x43 irq 0
pcppi1 at acpi0 (SPKR, PNP0800): io 0x61
midi0 at pcppi1: PC speaker
sysbeep0 at pcppi1
RMSC (PNP0C02) at acpi0 not configured
NBRM (PNP0C02) at acpi0 not configured
BROD (PNP0C02) at acpi0 not configured
acpibut0 at acpi0 (PWRB, PNP0C0C-170): ACPI Power Button
RMEM (PNP0C01) at acpi0 not configured
OMSC (PNP0C02) at acpi0 not configured
attimer1: attached to pcppi1
pci0 at mainbus0 bus 0: configuration mode 1
pci0: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
pchb0 at pci0 dev 0 function 0: vendor 1022 product 1410 (rev. 0x00)
radeon0 at pci0 dev 1 function 0: vendor 1002 product 9901 (rev. 0x00)
ppb0 at pci0 dev 7 function 0: vendor 1022 product 1417 (rev. 0x00)
ppb0: PCI Express capability version 2 <Root Port of PCI-E Root Complex> x1 @ 5.0GT/s
ppb0: link is x1 @ 2.5GT/s
pci1 at ppb0 bus 1
pci1: i/o space, memory space enabled, rd/line, wr/inv ok
alc0 at pci1 dev 0 function 0: Atheros AR8161 PCIe Gigabit Ethernet
alc0: interrupting at ioapic0 pin 19
alc0: Ethernet address 78:e3:b5:b0:65:fb
atphy0 at alc0 phy 0: Atheros AR8035 10/100/1000 PHY, rev. 8
atphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT-FDX, auto
xhci0 at pci0 dev 16 function 0: vendor 1022 product 7812 (rev. 0x03)
xhci0: interrupting at msi0 vec 0
xhci0: xHCI version 0.96
usb0 at xhci0: USB revision 3.0
xhci1 at pci0 dev 16 function 1: vendor 1022 product 7812 (rev. 0x03)
xhci1: interrupting at msi1 vec 0
xhci1: xHCI version 0.96
usb1 at xhci1: USB revision 3.0
ahcisata0 at pci0 dev 17 function 0: vendor 1022 product 7801 (rev. 0x40)
ahcisata0: interrupting at ioapic0 pin 19
ahcisata0: 64-bit DMA
ahcisata0: AHCI revision 1.30, 4 ports, 32 slots, CAP 0xf732ff03<PSC,SSC,PMD,SPM,ISS=0x3=Gen3,SCLO,SAL,SALP,SMPS,SSNTF,SNCQ,S64A>
atabus0 at ahcisata0 channel 0
atabus1 at ahcisata0 channel 1
atabus2 at ahcisata0 channel 2
atabus3 at ahcisata0 channel 3
ohci0 at pci0 dev 18 function 0: vendor 1022 product 7807 (rev. 0x11)
ohci0: interrupting at ioapic0 pin 18
ohci0: OHCI version 1.0, legacy support
usb2 at ohci0: USB revision 1.0
ehci0 at pci0 dev 18 function 2: vendor 1022 product 7808 (rev. 0x11)
ehci0: interrupting at ioapic0 pin 17
ehci0: EHCI version 1.0
ehci0: companion controller, 5 ports each: ohci0
usb3 at ehci0: USB revision 2.0
ohci1 at pci0 dev 19 function 0: vendor 1022 product 7807 (rev. 0x11)
ohci1: interrupting at ioapic0 pin 18
ohci1: OHCI version 1.0, legacy support
usb4 at ohci1: USB revision 1.0
ehci1 at pci0 dev 19 function 2: vendor 1022 product 7808 (rev. 0x11)
ehci1: interrupting at ioapic0 pin 17
ehci1: EHCI version 1.0
ehci1: companion controller, 5 ports each: ohci1
usb5 at ehci1: USB revision 2.0
vendor 1022 product 780b (SMBus serial bus, revision 0x14) at pci0 dev 20 function 0 not configured
hdaudio0 at pci0 dev 20 function 2: HD Audio Controller
hdaudio0: interrupting at ioapic0 pin 16
hdafg0 at hdaudio0: vendor 111d product 7676
hdafg0: DAC00 8ch: Speaker [Jack], HP Out [Jack]
hdafg0: ADC01 2ch: Mic In [Jack]
hdafg0: ADC02 2ch: Line In [Jack]
hdafg0: DIG03 2ch: SPDIF Out [Jack]
hdafg0: 8ch/2ch 44100Hz 48000Hz 88200Hz 96000Hz 192000Hz PCM16 PCM20 PCM24 AC3
audio0 at hdafg0: full duplex, playback, capture, mmap, independent
pcib0 at pci0 dev 20 function 3: vendor 1022 product 780e (rev. 0x11)
ppb1 at pci0 dev 20 function 4: vendor 1022 product 780f (rev. 0x40)
pci2 at ppb1 bus 2
pci2: i/o space, memory space enabled
ohci2 at pci0 dev 20 function 5: vendor 1022 product 7809 (rev. 0x11)
ohci2: interrupting at ioapic0 pin 18
ohci2: OHCI version 1.0, legacy support
usb6 at ohci2: USB revision 1.0
pchb1 at pci0 dev 24 function 0: vendor 1022 product 1400 (rev. 0x00)
pchb2 at pci0 dev 24 function 1: vendor 1022 product 1401 (rev. 0x00)
pchb3 at pci0 dev 24 function 2: vendor 1022 product 1402 (rev. 0x00)
pchb4 at pci0 dev 24 function 3: vendor 1022 product 1403 (rev. 0x00)
pchb5 at pci0 dev 24 function 4: vendor 1022 product 1404 (rev. 0x00)
pchb6 at pci0 dev 24 function 5: vendor 1022 product 1405 (rev. 0x00)
isa0 at pcib0
pckbc0 at isa0 port 0x60-0x64
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard
acpicpu0 at cpu0: ACPI CPU
acpicpu0: C1: HLT, lat   0 us, pow     0 mW
acpicpu0: P0: FFH, lat   4 us, pow 14332 mW, 3400 MHz
acpicpu0: P1: FFH, lat   4 us, pow 10695 mW, 3000 MHz
acpicpu0: P2: FFH, lat   4 us, pow  7245 mW, 2600 MHz
acpicpu0: P3: FFH, lat   4 us, pow  5628 mW, 2300 MHz
acpicpu0: P4: FFH, lat   4 us, pow  4312 mW, 1900 MHz
acpicpu0: P5: FFH, lat   4 us, pow  3150 mW, 1400 MHz
acpicpu0: T0: I/O, lat   1 us, pow     0 mW, 100 %
acpicpu0: T1: I/O, lat   1 us, pow     0 mW,  88 %
acpicpu0: T2: I/O, lat   1 us, pow     0 mW,  76 %
acpicpu0: T3: I/O, lat   1 us, pow     0 mW,  64 %
acpicpu0: T4: I/O, lat   1 us, pow     0 mW,  52 %
acpicpu0: T5: I/O, lat   1 us, pow     0 mW,  40 %
acpicpu0: T6: I/O, lat   1 us, pow     0 mW,  28 %
acpicpu0: T7: I/O, lat   1 us, pow     0 mW,  16 %
acpicpu1 at cpu1: ACPI CPU
acpicpu2 at cpu2: ACPI CPU
acpicpu3 at cpu3: ACPI CPU
timecounter: Timecounter "clockinterrupt" frequency 100 Hz quality 0
ERROR: 4596 cycle TSC drift observed
uhub0 at usb0: vendor 1022 xHCI Root Hub, class 9/0, rev 1.00/1.00, addr 0
uhub0: 4 ports with 4 removable, self powered
uhub1 at usb1: vendor 1022 xHCI Root Hub, class 9/0, rev 1.00/1.00, addr 0
uhub1: 4 ports with 4 removable, self powered
IPsec: Initialized Security Association Processing.
uhub2 at usb2: vendor 1022 OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub2: 5 ports with 5 removable, self powered
uhub3 at usb3: vendor 1022 EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
uhub3: 5 ports with 5 removable, self powered
uhub4 at usb4: vendor 1022 OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub4: 5 ports with 5 removable, self powered
uhub5 at usb5: vendor 1022 EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
uhub5: 5 ports with 5 removable, self powered
uhub6 at usb6: vendor 1022 OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub6: 2 ports with 2 removable, self powered
ahcisata0 port 0: device present, speed: 6.0Gb/s
ahcisata0 port 1: device present, speed: 3.0Gb/s
ahcisata0 port 2: device present, speed: 6.0Gb/s
ahcisata0 port 3: device present, speed: 1.5Gb/s
ehci0: handing over low speed device on port 2 to ohci0
ehci1: handing over low speed device on port 1 to ohci1
wd0 at atabus0 drive 0
wd0: <Hitachi HDS721050CLA660>
wd0: drive supports 16-sector PIO transfers, LBA48 addressing
wd0: 465 GB, 969021 cyl, 16 head, 63 sec, 512 bytes/sect x 976773168 sectors
wd0: GPT GUID: 2fd07786-ffc8-4cbe-af4d-e32f449b8d19
dk0 at wd0: "Basic data partition", 921600 blocks at 2048, type: <unknown>
dk1 at wd0: "EFI system partition", 204800 blocks at 923648, type: msdos
dk2 at wd0: "Microsoft reserved partition", 32768 blocks at 1128448, type: <unknown>
dk3 at wd0: "07935d3f-b6a0-427a-9eb3-9073b522efc7", 975609856 blocks at 1161216, type: <unknown>
wd0: wedge named 'Basic data partition' already existed, using '07935d3f-b6a0-427a-9eb3-9073b522efc7'
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133)
wd0(ahcisata0:0:0): using PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133) (using DMA)
wd1 at atabus1 drive 0
wd1: <SiliconHardDisk>
wd1: drive supports 1-sector PIO transfers, LBA addressing
wd1: 61136 MB, 124212 cyl, 16 head, 63 sec, 512 bytes/sect x 125206528 sectors
wd1: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100)
wd1(ahcisata0:1:0): using PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100) (using DMA)
wd2 at atabus2 drive 0
wd2: <LITEON IT SCS-128L9S>
wd2: drive supports 16-sector PIO transfers, LBA48 addressing
wd2: 119 GB, 248085 cyl, 16 head, 63 sec, 512 bytes/sect x 250069680 sectors
wd2: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133)
wd2(ahcisata0:2:0): using PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133) (using DMA)
atapibus0 at atabus3: 1 targets
cd0 at atapibus0 drive 0: <hp      DVD A  DH16ACSH, 248231904450, JHD6> cdrom removable
cd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100)
cd0(ahcisata0:3:0): using PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100) (using DMA)
umass0 at uhub5 port 2 configuration 1 interface 0
umass0: Generic Mass Storage Device, rev 2.00/1.00, addr 2
umass0: using SCSI over Bulk-Only
scsibus0 at umass0: 2 targets, 1 lun per target
sd0 at scsibus0 target 0 lun 0: <Multiple, Card  Reader, 1.00> disk removable
sd0: drive offline
pad0: outputs: 44100Hz, 16-bit, stereo
audio1 at pad0: half duplex, playback, capture
uhidev0 at uhub2 port 2 configuration 1 interface 0
uhidev0: Kensington Kensington Expert Mouse, rev 1.10/1.00, addr 2, iclass 3/1
uhidev1 at uhub4 port 1 configuration 1 interface 0
uhidev1: USB Keyboard USB Keyboard, rev 1.10/1.01, addr 2, iclass 3/1
ums0 at uhidev0: 4 buttons and Z dir
wsmouse0 at ums0 mux 0
ukbd0 at uhidev1: 8 modifier keys, 6 key codes
boot device: wd1
root on wd1a dumps on wd1b
root file system type: ffs
kern.module.path=/stand/amd64/7.99.29/modules
drm: initializing kernel modesetting (ARUBA 0x1002:0x9901 0x103C:0x2AE0).
drm: register mmio base: 0xfeb00000
drm: register mmio size: 262144
drm kern info: ATOM BIOS: 113
radeon0: info: VRAM: 512M 0x0000000000000000 - 0x000000001FFFFFFF (512M used)
radeon0: info: GTT: 1024M 0x0000000020000000 - 0x000000005FFFFFFF
drm: Detected VRAM RAM=200M, BAR=256M
drm: RAM width 64bits DDR
Zone  kernel: Available graphics memory: 2665164 kiB
Zone   dma32: Available graphics memory: 2097152 kiB
drm: radeon: 512M of VRAM memory ready
drm: radeon: 1024M of GTT memory ready.
drm: Loading ARUBA Microcode
drm: Internal thermal controller without fan control
drm: radeon: dpm initialized
drm: GART: num cpu pages 262144, num gpu pages 262144
drm: PCIE GART of 1024M enabled (table at 0x0000000000276000).
radeon0: info: WB enabled
radeon0: info: fence driver on ring 0 use gpu addr 0x0000000020000c00 and cpu addr 0x0xffff8000874acc00
radeon0: info: fence driver on ring 5 use gpu addr 0x0000000000075a18 and cpu addr 0x0xffff8000874f5a18
radeon0: info: fence driver on ring 1 use gpu addr 0x0000000020000c04 and cpu addr 0x0xffff8000874acc04
radeon0: info: fence driver on ring 2 use gpu addr 0x0000000020000c08 and cpu addr 0x0xffff8000874acc08
radeon0: info: fence driver on ring 3 use gpu addr 0x0000000020000c0c and cpu addr 0x0xffff8000874acc0c
radeon0: info: fence driver on ring 4 use gpu addr 0x0000000020000c10 and cpu addr 0x0xffff8000874acc10
drm: Supports vblank timestamp caching Rev 2 (21.10.2013).
drm: Driver supports precise vblank timestamp query.
radeon0: interrupting at ioapic0 pin 17 (radeon)
drm: radeon: irq initialized.
drm: ring test on 0 succeeded in 3 usecs
drm: ring test on 3 succeeded in 2 usecs
drm: ring test on 4 succeeded in 1 usecs
drm: ring test on 5 succeeded in 2 usecs
drm: UVD initialized successfully.
drm: ib test on ring 0 succeeded in 0 usecs
drm: ib test on ring 3 succeeded in 0 usecs
drm: ib test on ring 4 succeeded in 1 usecs
drm: ib test on ring 5 succeeded
drm: Radeon Display Connectors
drm: Connector 0:
drm:   DP-1
drm:   HPD1
drm:   DDC: 0x6530 0x6530 0x6534 0x6534 0x6538 0x6538 0x653c 0x653c
drm:   Encoders:
drm:     DFP1: INTERNAL_UNIPHY2
drm: Connector 1:
drm:   VGA-1
drm:   HPD2
drm:   DDC: 0x6540 0x6540 0x6544 0x6544 0x6548 0x6548 0x654c 0x654c
drm:   Encoders:
drm:     CRT1: INTERNAL_UNIPHY2
drm:     CRT1: NUTMEG
drm: Connector 2:
drm:   DVI-D-1
drm:   HPD3
drm:   DDC: 0x6550 0x6550 0x6554 0x6554 0x6558 0x6558 0x655c 0x655c
drm:   Encoders:
drm:     DFP2: INTERNAL_UNIPHY
radeondrmkmsfb0 at radeon0
radeon0: info: registered panic notifier
radeondrmkmsfb0: framebuffer at 0xffff800087b26000, size 1024x768, depth 32, stride 4096
wsdisplay0 at radeondrmkmsfb0 kbdmux 1: console (default, vt100 emulation), using wskbd0
wsmux1: connecting to wsdisplay0
wskbd1 at ukbd0 mux 1
wskbd1: connecting to wsdisplay0
uhidev2 at uhub4 port 1 configuration 1 interface 1
uhidev2: USB Keyboard USB Keyboard, rev 1.10/1.01, addr 2, iclass 3/1
uhidev2: 2 report ids
uhid0 at uhidev2 reportid 1: input=7, output=0, feature=0
uhid1 at uhidev2 reportid 2: input=1, output=0, feature=0
wsdisplay0: screen 1 added (default, vt100 emulation)
wsdisplay0: screen 2 added (default, vt100 emulation)
wsdisplay0: screen 3 added (default, vt100 emulation)
wsdisplay0: screen 4 added (default, vt100 emulation)

あとついでにWin10にも上げといた。設定のUIががっつり変わっててよくわからん…

2013-06-23

[][] 玄箱HG Update (3) 22:50  玄箱HG Update (3) - steletoの日記 を含むブックマーク  玄箱HG Update (3) - steletoの日記 のブックマークコメント

まずは母艦側の下準備。

/etc/inetd.confを編集してtftpとbootpを有効にする。

(ちなみにはじめてのネットワークブートだったこともありbootpでたいぶハマった)

--- /etc/inetd.conf.orig	2013-06-23 21:38:37.000000000 +0900
+++ /etc/inetd.conf	2013-06-23 21:38:46.000000000 +0900
@@ -20,7 +20,7 @@
 #finger		stream	tcp6	nowait	nobody	/usr/libexec/fingerd	fingerd -lsmu
 #ident		stream	tcp	nowait	nobody	/usr/libexec/identd	identd -l -o OTHER -e -N
 #ident		stream	tcp6	nowait	nobody	/usr/libexec/identd	identd -l -o OTHER -e -N
-#tftp		dgram	udp	wait	root	/usr/libexec/tftpd	tftpd -l -s /tftpboot
+tftp		dgram	udp	wait	root	/usr/libexec/tftpd	tftpd -l -s /tftpboot
 #tftp		dgram	udp6	wait	root	/usr/libexec/tftpd	tftpd -l -s /tftpboot
 #comsat		dgram	udp	wait	root	/usr/libexec/comsat	comsat
 #comsat		dgram	udp6	wait	root	/usr/libexec/comsat	comsat
 #ntalk		dgram	udp	wait	nobody:tty	/usr/libexec/ntalkd	ntalkd
-#bootps		dgram	udp	wait	root	/usr/sbin/bootpd	bootpd
+bootps		dgram	udp	wait	root	/usr/sbin/bootpd	bootpd
 #
 #	Games
 #

続いてbootp用の設定を/etc/bootptabに設定。

kurobox:ht=ethernet:ha=000d0bxxxxxx:ip=192.168.0.254:sa=192.168.0.25:

/tftpbootディレクトリに「altboot.bin」と「netbsd-INSTALL_KURO」を用意し、inetdを再起動。

# /etc/rc.d/inetd restart
Stopping inetd.
Waiting for PIDS: 443.
Starting inetd.

玄箱HGに戻ってきて、まずは自身とTFTPサーバのIPアドレスを設定する。

=> setenv ipaddr 192.168.0.254
=> setenv serverip 192.168.0.25
=> saveenv
Saving Environment to Flash...
Un-Protected 1 sectors
Erasing Flash...
Flash erase: first = 54 @ 0xfff60000
             last  = 54 @ 0xfff60000
Flash erase: Done
Erased 1 sectors
Writing to Flash... done
Protected 1 sectors

altboot.binを0x01000000へ読み込む。

=> tftpboot 01000000 altboot.bin
Using RTL8169#0 device
TFTP from server 192.168.0.25; our IP address is 192.168.0.254
Filename 'altboot.bin'.
Load address: 0x1000000
Loading: ###############
done
Bytes transferred = 75924 (12894 hex)

Go。

=> go 1000000 tftp:netbsd-INSTALL_KURO
## Starting application at 0x01000000 ...

>> NetBSD/sandpoint altboot, revision 1.9
>> KuroBox, cpu 262 MHz, bus 131 MHz, 128MB SDRAM
channel 0 present
wd0: <Hitachi HTS545050B9A300> DMA LBA LBA48 476940 MB
wd0: no disklabel
MAC address 00:0d:0b:xx:xx:xx
10Mbps
Hit any key to enter interactive mode: 0
loading "netbsd-INSTALL_KURO" 5370872+134200=0x5404b8
entry=0x90000, ssym=0x5d0030, esym=0x5d04b8
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
    2006, 2007, 2008, 2009, 2010, 2011, 2012
    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 6.1 (INSTALL_KURO)
Model: kurobox
total memory = 128 MB
avail memory = 118 MB
... snip ...

なんか聞いてきたので答える。

Terminal type? [vt100]                                                          
Erase is backspace.                                                             
(I)nstall, (S)hell or (H)alt ? i

f:id:steleto:20130623224750p:image

いつものインストール画面に到達。

2012-12-06

[]dmesg 02:42 dmesg - steletoの日記 を含むブックマーク dmesg - steletoの日記 のブックマークコメント

下書き保存したまま忘れてた。

Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
    2006, 2007, 2008, 2009, 2010, 2011, 2012
    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 6.0 (GENERIC)
total memory = 7606 MB
avail memory = 7371 MB
timecounter: Timecounters tick every 10.000 msec
timecounter: Timecounter "i8254" frequency 1193182 Hz quality 100
Hewlett-Packard p6-2210jp ( )
mainbus0 (root)
ACPI Warning: Optional field Pm2ControlBlock has zero address or length: 0x0000000000000000/0x1 (20110623/tbfadt-586)
cpu0 at mainbus0 apid 16: AMD A10-5700 APU with Radeon(tm) HD Graphics   , id 0x610f01
cpu1 at mainbus0 apid 17: AMD A10-5700 APU with Radeon(tm) HD Graphics   , id 0x610f01
cpu2 at mainbus0 apid 18: AMD A10-5700 APU with Radeon(tm) HD Graphics   , id 0x610f01
cpu3 at mainbus0 apid 19: AMD A10-5700 APU with Radeon(tm) HD Graphics   , id 0x610f01
ioapic0 at mainbus0 apid 5: pa 0xfec00000, version 21, 24 pins
acpi0 at mainbus0: Intel ACPICA 20110623
acpi0: X/RSDT: OemId <HPQOEM,SLIC-CPC,01072009>, AslId <AMI ,00010013>
acpi0: SCI interrupting at int 9
timecounter: Timecounter "ACPI-Fast" frequency 3579545 Hz quality 1000
hpet0 at acpi0: high precision event timer (mem 0xfed00000-0xfed00400)
timecounter: Timecounter "hpet0" frequency 14318180 Hz quality 2000
AMDN (PNP0C01) at acpi0 not configured
S900 (PNP0C02) at acpi0 not configured
SIO1 (PNP0C02) at acpi0 not configured
attimer1 at acpi0 (TMR, PNP0100): io 0x40-0x43 irq 0
pcppi1 at acpi0 (SPKR, PNP0800): io 0x61
midi0 at pcppi1: PC speaker
sysbeep0 at pcppi1
RMSC (PNP0C02) at acpi0 not configured
NBRM (PNP0C02) at acpi0 not configured
BROD (PNP0C02) at acpi0 not configured
acpibut0 at acpi0 (PWRB, PNP0C0C-170): ACPI Power Button
RMEM (PNP0C01) at acpi0 not configured
OMSC (PNP0C02) at acpi0 not configured
attimer1: attached to pcppi1
pci0 at mainbus0 bus 0: configuration mode 1
pci0: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
pchb0 at pci0 dev 0 function 0: vendor 0x1022 product 0x1410 (rev. 0x00)
genfb0 at pci0 dev 1 function 0: vendor 0x1002 product 0x9901 (rev. 0x00)
genfb0: framebuffer at 0xd0000000, size 1024x768, depth 32, stride 4096
wsdisplay0 at genfb0 kbdmux 1: console (default, vt100 emulation)
wsmux1: connecting to wsdisplay0
drm at genfb0 not configured
ppb0 at pci0 dev 7 function 0: vendor 0x1022 product 0x1417 (rev. 0x00)
ppb0: PCI Express 2.0 <Root Port of PCI-E Root Complex>
pci1 at ppb0 bus 1
pci1: i/o space, memory space enabled, rd/line, wr/inv ok
vendor 0x1969 product 0x1091 (ethernet network, revision 0x08) at pci1 dev 0 function 0 not configured
vendor 0x1022 product 0x7812 (USB serial bus, interface 0x30, revision 0x03) at pci0 dev 16 function 0 not configured
vendor 0x1022 product 0x7812 (USB serial bus, interface 0x30, revision 0x03) at pci0 dev 16 function 1 not configured
ahcisata0 at pci0 dev 17 function 0: vendor 0x1022 product 0x7801 (rev. 0x40)
ahcisata0: interrupting at ioapic0 pin 19
ahcisata0: 64-bit DMA
ahcisata0: AHCI revision 1.30, 2 ports, 32 slots, CAP 0xf732ff01<PSC,SSC,PMD,SPM,ISS=0x3=Gen3,SCLO,SAL,SALP,SMPS,SSNTF,SNCQ,S64A>
atabus0 at ahcisata0 channel 0
atabus1 at ahcisata0 channel 2
ohci0 at pci0 dev 18 function 0: vendor 0x1022 product 0x7807 (rev. 0x11)
ohci0: interrupting at ioapic0 pin 18
ohci0: OHCI version 1.0, legacy support
usb0 at ohci0: USB revision 1.0
ehci0 at pci0 dev 18 function 2: vendor 0x1022 product 0x7808 (rev. 0x11)
ehci0: interrupting at ioapic0 pin 17
ehci0: EHCI version 1.0
ehci0: companion controller, 5 ports each: ohci0
usb1 at ehci0: USB revision 2.0
ohci1 at pci0 dev 19 function 0: vendor 0x1022 product 0x7807 (rev. 0x11)
ohci1: interrupting at ioapic0 pin 18
ohci1: OHCI version 1.0, legacy support
usb2 at ohci1: USB revision 1.0
ehci1 at pci0 dev 19 function 2: vendor 0x1022 product 0x7808 (rev. 0x11)
ehci1: interrupting at ioapic0 pin 17
ehci1: EHCI version 1.0
ehci1: companion controller, 5 ports each: ohci1
usb3 at ehci1: USB revision 2.0
vendor 0x1022 product 0x780b (SMBus serial bus, revision 0x14) at pci0 dev 20 function 0 not configured
pcib0 at pci0 dev 20 function 3: vendor 0x1022 product 0x780e (rev. 0x11)
ppb1 at pci0 dev 20 function 4: vendor 0x1022 product 0x780f (rev. 0x40)
pci2 at ppb1 bus 2
pci2: i/o space, memory space enabled
ohci2 at pci0 dev 20 function 5: vendor 0x1022 product 0x7809 (rev. 0x11)
ohci2: interrupting at ioapic0 pin 18
ohci2: OHCI version 1.0, legacy support
usb4 at ohci2: USB revision 1.0
pchb1 at pci0 dev 24 function 0: vendor 0x1022 product 0x1400 (rev. 0x00)
pchb2 at pci0 dev 24 function 1: vendor 0x1022 product 0x1401 (rev. 0x00)
pchb3 at pci0 dev 24 function 2: vendor 0x1022 product 0x1402 (rev. 0x00)
pchb4 at pci0 dev 24 function 3: vendor 0x1022 product 0x1403 (rev. 0x00)
pchb5 at pci0 dev 24 function 4: vendor 0x1022 product 0x1404 (rev. 0x00)
pchb6 at pci0 dev 24 function 5: vendor 0x1022 product 0x1405 (rev. 0x00)
isa0 at pcib0
pckbc0 at isa0 port 0x60-0x64
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
acpicpu0 at cpu0: ACPI CPU
acpicpu0: C1: HLT, lat   0 us, pow     0 mW
acpicpu0: P0: FFH, lat   4 us, pow 14332 mW, 3400 MHz
acpicpu0: P1: FFH, lat   4 us, pow 10695 mW, 3000 MHz
acpicpu0: P2: FFH, lat   4 us, pow  7245 mW, 2600 MHz
acpicpu0: P3: FFH, lat   4 us, pow  5628 mW, 2300 MHz
acpicpu0: P4: FFH, lat   4 us, pow  4312 mW, 1900 MHz
acpicpu0: P5: FFH, lat   4 us, pow  3150 mW, 1400 MHz
acpicpu0: T0: I/O, lat   1 us, pow     0 mW, 100 %
acpicpu0: T1: I/O, lat   1 us, pow     0 mW,  88 %
acpicpu0: T2: I/O, lat   1 us, pow     0 mW,  76 %
acpicpu0: T3: I/O, lat   1 us, pow     0 mW,  64 %
acpicpu0: T4: I/O, lat   1 us, pow     0 mW,  52 %
acpicpu0: T5: I/O, lat   1 us, pow     0 mW,  40 %
acpicpu0: T6: I/O, lat   1 us, pow     0 mW,  28 %
acpicpu0: T7: I/O, lat   1 us, pow     0 mW,  16 %
acpicpu1 at cpu1: ACPI CPU
acpicpu2 at cpu2: ACPI CPU
acpicpu3 at cpu3: ACPI CPU
timecounter: Timecounter "clockinterrupt" frequency 100 Hz quality 0
ERROR: 3625 cycle TSC drift observed
uhub0 at usb0: vendor 0x1022 OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 5 ports with 5 removable, self powered
uhub1 at usb1: vendor 0x1022 EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
uhub1: 5 ports with 5 removable, self powered
uhub2 at usb2: vendor 0x1022 OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub2: 5 ports with 5 removable, self powered
uhub3 at usb3: vendor 0x1022 EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
uhub3: 5 ports with 5 removable, self powered
uhub4 at usb4: vendor 0x1022 OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub4: 2 ports with 2 removable, self powered
ahcisata0 port 0: device present, speed: 6.0Gb/s
ahcisata0 port 2: device present, speed: 1.5Gb/s
wd0 at atabus0 drive 0
wd0: <Hitachi HDS721050CLA660>
wd0: drive supports 16-sector PIO transfers, LBA48 addressing
wd0: 465 GB, 969021 cyl, 16 head, 63 sec, 512 bytes/sect x 976773168 sectors
wd0: GPT GUID: c7277fff-dee9-4b6d-9d53-0f328fc00dda
dk0 at wd0: EFI system partition
dk0: 204800 blocks at 2048, type: msdos
dk1 at wd0: Microsoft reserved partition
dk1: 262144 blocks at 206848, type: 
dk2 at wd0: Basic data partition
dk2: 419430400 blocks at 468992, type: 
dk3 at wd0: c95e7713-1a85-11e2-b6e7-806e6f6e6963
dk3: 419430400 blocks at 419899392, type: ffs
dk4 at wd0: c95e7714-1a85-11e2-b6e7-806e6f6e6963
dk4: 8388608 blocks at 839329792, type: swap
dk5 at wd0: c95e7715-1a85-11e2-b6e7-806e6f6e6963
dk5: 129054672 blocks at 847718400, type: 
dk6 at wd0: c95e7716-1a85-11e2-b6e7-806e6f6e6963
dk6: 63 blocks at 976773072, type: 
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133)
wd0(ahcisata0:0:0): using PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133) (using DMA)
atapibus0 at atabus1: 1 targets
cd0 at atapibus0 drive 0: <hp      DVD A  DH16ACSH, 248231904450, JHD6> cdrom removable
cd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100)
cd0(ahcisata0:2:0): using PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100) (using DMA)
umass0 at uhub3 port 2 configuration 1 interface 0
umass0: Generic Mass Storage Device, rev 2.00/1.00, addr 2
umass0: using SCSI over Bulk-Only
scsibus0 at umass0: 2 targets, 1 lun per target
sd0 at scsibus0 target 0 lun 0: <Multiple, Card  Reader, 1.00> disk removable
sd0: drive offline
sd0: unable to open device, error = 19
Kernelized RAIDframe activated
pad0: outputs: 44100Hz, 16-bit, stereo
audio0 at pad0: half duplex, playback, capture
uhidev0 at uhub2 port 1 configuration 1 interface 0
uhidev0: USB Keyboard USB Keyboard, rev 1.10/1.01, addr 2, iclass 3/1
ukbd0 at uhidev0
udav0 at uhub0 port 1
udav0: corega K.K. corega FEther USB-TXC, rev 1.10/1.01, addr 2
udav0: Ethernet address XX:XX:XX:XX:XX:XX
ukphy0 at udav0 phy 0: OUI 0x000676, model 0x000c, rev. 0
ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
wskbd1 at ukbd0 mux 1
wskbd1: connecting to wsdisplay0
uhidev1 at uhub2 port 1 configuration 1 interface 1
uhidev1: USB Keyboard USB Keyboard, rev 1.10/1.01, addr 2, iclass 3/1
uhidev1: 2 report ids
uhid0 at uhidev1 reportid 1: input=7, output=0, feature=0
uhid1 at uhidev1 reportid 2: input=1, output=0, feature=0
boot device: wd0
root on dk3 dumps on dk4
/: replaying log to memory
root file system type: ffs
/: replaying log to disk
wsdisplay0: screen 1 added (default, vt100 emulation)
wsdisplay0: screen 2 added (default, vt100 emulation)
wsdisplay0: screen 3 added (default, vt100 emulation)
wsdisplay0: screen 4 added (default, vt100 emulation)

これなんだろう。

ERROR: 3625 cycle TSC drift observed

2011-11-13

[][] CF-TDはいらない子じゃありません 02:27  CF-TDはいらない子じゃありません - steletoの日記 を含むブックマーク  CF-TDはいらない子じゃありません - steletoの日記 のブックマークコメント

ログインまでできたのでネットワークはどうかなとCF-TDをCFスロットにぷすっとな。

pcmcia0 function 0: <corega K.K., corega Ether CF-TD LAN Card, , > (manufacturer
 0xc00f, product 0x0000)
 not configured

ええぇぇ。NetBSDでもいらない子扱いですかー。いやいやいる子ですよーということでこれまたごりごり。

ne0 at pcmcia0 function 0: <corega K.K., corega Ether CF-TD LAN Card, , >
ne0: Ethernet address 00:90:99:XX:XX:XX

うむ、よろしい。まぁNE2000互換だし他のcorega製カードの設定真似ただけなんで数行しか触ってないんだけど。

しかしLinuxでも対応されていなかったし、CF-TDユーザって実は誰もいないんじゃないかという疑惑。

ま、とりあえず認識したので試しにping。…よしOK。

…あ、Ctrl効かないから止めらんないや。

tsutsuitsutsui 2011/11/14 02:58 CF-TDの設定追加パッチくらいならすぐ入れてもいいと思うので
send-prかメールかなんかでパッチ送ってもらえば入れときます

steletosteleto 2011/11/15 03:39 そちらについては一息ついてからになるかと思いますのでそのときはよろしくおねがいします。