tips for writing img to usb thumb drive

Sepherosa Ziehau sepherosa at gmail.com
Sat Jan 2 23:59:15 PST 2016


I have pushed some changes to the re's PHY initialization, you could
try latest usb image; hope it works for you.

Thanks,
sephe


On Sun, Jan 3, 2016 at 12:52 PM, jungle Boogie <jungleboogie0 at gmail.com> wrote:
> On 2 January 2016 at 19:46, Justin Sherrill <justin at shiningsilence.com> wrote:
>> There's an example of wpa_supplicant.conf setup here:
>>
>> https://www.dragonflybsd.org/docs/handbook/ConfigChromebook/
>>
>> To keep you from having to dig through it:
>>
>> in /etc/rc.conf:
>>
>> wlans_ath0="wlan0"
>> ifconfig_wlan0="DHCP WPA"
>>
>> In /etc/wpa_supplicant.conf:
>>
>> network={
>>     ssid="blahblah"
>>     psk="passwordhere"
>> }
>>
>> I realize this is a stripped-down version of what you already posted,
>> but it's the best suggestion I have, and the setup that worked for me
>> most recently.
>
>
> You did it! You got me on the net. I was skipping the entry in
> /etc/rc.conf because I thought ifconfig_ath0=dhcp was enough.
>
>
> So at least I have a wifi connection and it will be easier to copy
> things from dmesg and such to the mailing list.
>
> Now I see:
> ath0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 2290
>     ether 30:52:cb:a3:cf:a7
>     media: IEEE 802.11 Wireless Ethernet autoselect mode 11ng
>     status: associated
>
> and:
> wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
>     inet6 fe80::3252:cbff:fea3:cfa7%wlan0 prefixlen 64 scopeid 0x7
>     inet 192.168.0.56 netmask 0xffffff00 broadcast 192.168.0.255
>     ether 30:52:cb:a3:cf:a7
>     ssid somuch_ channel 6 (2437 MHz 11g ht/20) bssid 64:70:02:32:c2:48
>     regdomain 108 indoor ecm authmode WPA privacy ON deftxkey UNDEF
>     TKIP 3:128-bit txpower 20 bmiss 7 scanvalid 60 protmode CTS
>     ampdulimit 64k shortgi wme burst roaming MANUAL
>     media: IEEE 802.11 Wireless Ethernet MCS mode 11ng
>     status: associated
>
>
> By the way, is there a preferred method to edit /etc/rc.conf. FreeBSD
> has sysrc and you can do sysrc someservice_enable=YES and it will
> enable it.
>
>
> Now here's the full grep of re0:
> fly# dmesg | grep re0
> re0: <RealTek 8111/8168 PCIe Gigabit Ethernet> port 0x3000-0x30ff mem
> 0xb2100000-0xb2103fff,0xb2104000-0xb2104fff irq 18 at device 0.0 on
> pci2
> re0: Hardware rev. 0x50800000; PCI-E 125MHz
> re0: PHY write failed
> re0: PHY write failed
> re0: MII without any phy!
> device_probe_and_attach: re0 attach returned 6
> re0: <RealTek 8111/8168 PCIe Gigabit Ethernet> port 0x3000-0x30ff mem
> 0xb2100000-0xb2103fff,0xb2104000-0xb2104fff irq 18 at device 0.0 on
> pci2
> re0: Hardware rev. 0x50800000; PCI-E 125MHz
> re0: PHY write failed
> re0: PHY write failed
> re0: MII without any phy!
> device_probe_and_attach: re0 attach returned 6
> re0: <RealTek 8111/8168 PCIe Gigabit Ethernet> port 0x3000-0x30ff mem
> 0xb2100000-0xb2103fff,0xb2104000-0xb2104fff irq 18 at device 0.0 on
> pci2
> re0: Hardware rev. 0x50800000; PCI-E 125MHz
> re0: PHY write failed
> re0: PHY write failed
> re0: MII without any phy!
> device_probe_and_attach: re0 attach returned 6
> re0: <RealTek 8111/8168 PCIe Gigabit Ethernet> port 0x3000-0x30ff mem
> 0xb2100000-0xb2103fff,0xb2104000-0xb2104fff irq 18 at device 0.0 on
> pci2
> re0: Hardware rev. 0x50800000; PCI-E 125MHz
> re0: PHY write failed
> re0: PHY write failed
> re0: MII without any phy!
> device_probe_and_attach: re0 attach returned 6
>
>
>
> and the full dmesg:
> Copyright (c) 2003-2015 The DragonFly Project.
> Copyright (c) 1992-2003 The FreeBSD Project.
> Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
>     The Regents of the University of California. All rights reserved.
> DragonFly v4.5.0.263.g9261e-DEVELOPMENT #0: Thu Dec 31 16:13:10 UTC 2015
>     root at pkgbox64.dragonflybsd.org:/usr/obj/usr/src/sys/X86_64_GENERIC
> TSC invariant clock: 2196781624 Hz, i8254 clock: 1193160 Hz
> CPU: Intel(R) Core(TM) i3-5020U CPU @ 2.20GHz (2196.84-MHz K8-class CPU)
>   Origin = "GenuineIntel"  Id = 0x306d4  Stepping = 4
>   Features=0xbfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE>
>   Features2=0x77fafbbf<SSE3,PCLMULQDQ,DTES64,MON,DS_CPL,VMX,EST,TM2,SSSE3,SDBG,FMA,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,TSCDLT,AESNI,XSAVE,AVX,F16C,RDRND>
>   AMD Features=0x2c100800<SYSCALL,NX,Page1GB,RDTSCP,LM>
>   AMD Features2=0x121<LAHF,ABM,Prefetch>
>   Structured Extended
> Features=0x21c27ab<GSFSBASE,TSCADJ,BMI1,AVX2,SMEP,BMI2,ENHMOVSB,INVPCID,RDSEED,ADX,SMAP>
>   Thermal and PM Features=0x75<SENSOR,ARAT,PLN,ECMD,PTM>
>   MONITOR/MWAIT Features=0x3<CST,INTBRK>
> real memory  = 4188755968 (3994 MB)
> avail memory = 3848359936 (3670 MB)
> lapic: divisor index 0, frequency 49927895 Hz
> Initialize MI interrupts
> TSC testing MP synchronization ...
> TSC is MP synchronized
> TSC: cputimer freq 68651316, shift 5
> wdog: In-kernel automatic watchdog reset enabled
> kbd1 at kbdmux0
> md0: Malloc disk
> ACPI: RSDP 0x00000000000F0580 000024 (v02 _ASUS_)
> ACPI: XSDT 0x00000000AB71B0A8 0000D4 (v01 _ASUS_ Notebook 01072009 AMI
>  00010013)
> ACPI: FACP 0x00000000AB7350F0 00010C (v05 _ASUS_ Notebook 01072009 AMI
>  00010013)
> ACPI: DSDT 0x00000000AB71B210 019EE0 (v02 _ASUS_ Notebook 01072009
> INTL 20120913)
> ACPI: FACS 0x00000000AC410F80 000040
> ACPI: APIC 0x00000000AB735200 000084 (v03 _ASUS_ Notebook 01072009 AMI
>  00010013)
> ACPI: FPDT 0x00000000AB735288 000044 (v01 _ASUS_ Notebook 01072009 AMI
>  00010013)
> ACPI: FIDT 0x00000000AB7352D0 00009C (v01 _ASUS_ Notebook 01072009 AMI
>  00010013)
> ACPI: ECDT 0x00000000AB735370 0000C1 (v01 _ASUS_ Notebook 01072009
> AMI. 00000005)
> ACPI: MCFG 0x00000000AB735438 00003C (v01 _ASUS_ Notebook 01072009
> MSFT 00000097)
> ACPI: HPET 0x00000000AB735478 000038 (v01 _ASUS_ Notebook 01072009
> AMI. 00000005)
> ACPI: SSDT 0x00000000AB7354B0 000315 (v01 SataRe SataTabl 00001000
> INTL 20120913)
> ACPI: UEFI 0x00000000AB7357C8 000042 (v01                 00000000
>  00000000)
> ACPI: SSDT 0x00000000AB735810 000194 (v01 Intel  zpodd    00001000
> INTL 20120913)
> ACPI: ASF! 0x00000000AB7359A8 0000A0 (v32 INTEL   HCG     00000001
> TFSM 000F4240)
> ACPI: SSDT 0x00000000AB735A48 000539 (v02 PmRef  Cpu0Ist  00003000
> INTL 20120913)
> ACPI: SSDT 0x00000000AB735F88 000B74 (v02 CpuRef CpuSsdt  00003000
> INTL 20120913)
> ACPI: TPM2 0x00000000AB736B00 000034 (v03        Tpm2Tabl 00000001 AMI
>  00000000)
> ACPI: SSDT 0x00000000AB736B38 000041 (v01 Ssdt   PttSsdt  00001000
> INTL 20120913)
> ACPI: SSDT 0x00000000AB736B80 003245 (v02 DptfTa DptfTabl 00001000
> INTL 20120913)
> ACPI: SSDT 0x00000000AB739DC8 000394 (v02 CppcTa CppcTabl 00001000
> INTL 20120913)
> ACPI: PCCT 0x00000000AB73A160 00006E (v05 PcctTa PcctTabl 00001000
> INTL 20120913)
> ACPI: SSDT 0x00000000AB73A1D0 000AC4 (v02 Cpc_Ta Cpc_Tabl 00001000
> INTL 20120913)
> ACPI: SSDT 0x00000000AB73AC98 006B80 (v02 SaSsdt SaSsdt   00003000
> INTL 20120913)
> ACPI: DMAR 0x00000000AB741818 0000A8 (v01 INTEL  BDW      00000001
> INTL 00000001)
> ACPI: MSDM 0x00000000AAAB4E18 000055 (v03 _ASUS_ Notebook 00000000
> ASUS 00000001)
> cryptosoft0: <software crypto> on motherboard
> aesni0: <AES-CBC,AES-XTS> on motherboard
> padlock0: No ACE support.
> rdrand0: <RdRand RNG> on motherboard
> acpi0: <_ASUS_ Notebook> on motherboard
> ACPI: 10 ACPI AML tables successfully acquired and loaded
>
> ACPI FADT: SCI testing interrupt mode ...
> ACPI FADT: SCI select level/high
> acpi_ec0: <Embedded Controller: GPE 0xa, ECDT> port 0x66,0x62 on acpi0
> ACPI: Executed 9 blocks of module-level executable AML code
> objcache_reclaimlist
> objcache_reclaimlist
> objcache_reclaimlist
> objcache_reclaimlist
> acpi0: Power Button (fixed)
> acpi_timer0 on acpi0
> acpi_hpet0: <High Precision Event Timer> iomem 0xfed00000-0xfed003ff on acpi0
> acpi_hpet0: frequency 14318180
> pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
> pci0: <ACPI PCI bus> on pcib0
> vgapci0: <VGA-compatible display> port 0x4000-0x403f mem
> 0xc0000000-0xcfffffff,0xb1000000-0xb1ffffff irq 16 at device 2.0 on
> pci0
> vgapci0: Boot video device
> pci0: <multimedia, HDA> (vendor 0x8086, dev 0x160c) at device 3.0 irq 16
> pci0: <dasp> (vendor 0x8086, dev 0x1603) at device 4.0 irq 16
> xhci0: <Intel Wildcat Point-LB USB 3.0 controller> mem
> 0xb2200000-0xb220ffff irq 20 at device 20.0 on pci0
> xhci0: 32 bytes context size, 64-bit DMA
> xhci0: Port routing mask set to 0xffffffff
> usbus0 on xhci0
> pci0: <simple comms> (vendor 0x8086, dev 0x9cba) at device 22.0 irq 23
> pci0: <multimedia, HDA> (vendor 0x8086, dev 0x9ca0) at device 27.0 irq 22
> pcib1: <ACPI PCI-PCI bridge> irq 16 at device 28.0 on pci0
> pci1: <ACPI PCI bus> on pcib1
> pcib2: <ACPI PCI-PCI bridge> irq 18 at device 28.2 on pci0
> pci2: <ACPI PCI bus> on pcib2
> re0: <RealTek 8111/8168 PCIe Gigabit Ethernet> port 0x3000-0x30ff mem
> 0xb2100000-0xb2103fff,0xb2104000-0xb2104fff irq 18 at device 0.0 on
> pci2
> re0: Hardware rev. 0x50800000; PCI-E 125MHz
> re0: PHY write failed
> re0: PHY write failed
> re0: MII without any phy!
> device_probe_and_attach: re0 attach returned 6
> pcib3: <ACPI PCI-PCI bridge> irq 19 at device 28.3 on pci0
> pci3: <ACPI PCI bus> on pcib3
> ath0: <Atheros AR9485> mem 0xb2000000-0xb207ffff irq 19 at device 0.0 on pci3
> usbus0: 5.0Gbps Super Speed USB v3.0
> ar9300_attach: calling ar9300_hw_attach
> ar9300_hw_attach: calling ar9300_eeprom_attach
> ar9300_flash_map: unimplemented for now
> Restoring Cal data from DRAM
> Restoring Cal data from EEPROM
> Restoring Cal data from Flash
> Restoring Cal data from Flash
> Restoring Cal data from OTP
> ar9300_hw_attach: ar9300_eeprom_attach returned 0
> ath0: [HT] enabling HT modes
> ath0: [HT] enabling short-GI in 20MHz mode
> ath0: [HT] 1 stream STBC receive enabled
> ath0: [HT] 1 RX streams; 1 TX streams
> ugen0.1: <0x8086> at usbus0
> uhub0: <0x8086 XHCI root HUB, class 9/0, rev 3.00/1.00, addr 1> on usbus0
> ath0: AR9485 mac 576.1 RF5110 phy 398.8
> ath0: 2GHz radio: 0x0000; 5GHz radio: 0x0000
> isab0: <PCI-ISA bridge> at device 31.0 on pci0
> isa0: <ISA bus> on isab0
> ahci0: <AHCI-PCI-SATA> port
> 0x4060-0x407f,0x4080-0x4083,0x4090-0x4097,0x40a0-0x40a3,0x40b0-0x40b7
> mem 0xb2222000-0xb22227ff irq 21 at device 31.2 on pci0
> uhub0: 15 ports with 15 removable, self powered
> ahci0: AE did not auto-clear!
> ugen0.2: <vendor 0x7392> at usbus0
> ugen0.3: <04081-0005360015381025995> at usbus0
> ahci0: Intel hocus pocus
> ahci0: AHCI 1.3 cap 0xc734ff03<S64A,NCQ,SALP,SAL,SCLO,SAM,PMD,SSC,PSC>
> cap2 0x3c<BOH>, 4 ports, 32 tags/port, gen 3 (6Gbps)
> ahci0.0: Caps 6<POD,SUD>
> ahci0.1: Caps 6<POD,SUD>
> ugen0.4: <Generic> at usbus0
> ahci0.0: Found DISK "ST1000LM024 HN-M101MBB 2BA30001" serial="S32XJ9GG900278"
> ahci0.0: tags=32/32 satacap=1f0e satacap2=0006 satafea=004c NCQ=YES
> capacity=953869.71MB
> ahci0.0: f85=7469 f86=bc01 f87=6123 WC=enabled RA=enabled SEC=frozen
> ahci0.1: Found ATAPI "MATSHITA DVD-RAM UJ8HC 1.00" serial="5H3PA027177"
> ahci0.1: tags=0/32 satacap=0602 satacap2=0012 satafea=0068 NCQ=NO
> capacity=1.00MB
> ahci0.1: f85=4210 f86=0000 f87=4000 WC=notsupp RA=notsupp SEC=notsupp
> pci0: <serial bus, SMBus> (vendor 0x8086, dev 0x9ca2) at device 31.3 irq 22
> pci0: <dasp> (vendor 0x8086, dev 0x9ca4) at device 31.6 irq 22
> acpi_lid0: <Control Method Lid Switch> on acpi0
> acpi_button0: <Sleep Button> on acpi0
> acpi_tz0: <Thermal Zone> on acpi0
> acpi_acad0: <AC Adapter> on acpi0
> battery0: <ACPI Control Method Battery> on acpi0
> battery0: supports extended information
> cpu0: <ACPI CPU> on acpi0
> ACPI: Dynamic OEM Table Load:
> ACPI: SSDT 0xFFFFFFE07F57E000 0003D3 (v02 PmRef  Cpu0Cst  00003001
> INTL 20120913)
> cpu_cst0: <ACPI CPU C-State> on cpu0
> cpu_pst0: <ACPI CPU P-State> on cpu0
> clockmod0: <CPU clock modulation> on cpu0
> perfbias0: <CPU perf-energy bias> on cpu0
> coretemp0: <CPU On-Die Thermal Sensors> on cpu0
> cpu1: <ACPI CPU> on acpi0
> ACPI: Dynamic OEM Table Load:
> ACPI: SSDT 0xFFFFFFE07E976E80 0005AA (v02 PmRef  ApIst    00003000
> INTL 20120913)
> ACPI: Dynamic OEM Table Load:
> ACPI: SSDT 0xFFFFFFE010859920 000119 (v02 PmRef  ApCst    00003000
> INTL 20120913)
> cpu_cst1: <ACPI CPU C-State> on cpu1
> cpu_pst1: <ACPI CPU P-State> on cpu1
> clockmod1: <CPU clock modulation> on cpu1
> perfbias1: <CPU perf-energy bias> on cpu1
> coretemp1: <CPU On-Die Thermal Sensors> on cpu1
> cpu2: <ACPI CPU> on acpi0
> cpu_cst2: <ACPI CPU C-State> on cpu2
> cpu_pst2: <ACPI CPU P-State> on cpu2
> clockmod2: <CPU clock modulation> on cpu2
> perfbias2: <CPU perf-energy bias> on cpu2
> coretemp2: <CPU On-Die Thermal Sensors> on cpu2
> cpu3: <ACPI CPU> on acpi0
> cpu_cst3: <ACPI CPU C-State> on cpu3
> cpu_pst3: <ACPI CPU P-State> on cpu3
> clockmod3: <CPU clock modulation> on cpu3
> perfbias3: <CPU perf-energy bias> on cpu3
> coretemp3: <CPU On-Die Thermal Sensors> on cpu3
> ACPI: Enabled 5 GPEs in block 00 to 7F
> orm0: <ISA Option ROM> at iomem 0xd0000-0xd0fff on isa0
> pmtimer0 on isa0
> atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0
> atkbd0: <AT Keyboard> irq 1 on atkbdc0
> kbd0 at atkbd0
> psm0: <PS/2 Mouse> irq 12 on atkbdc0
> psm0: model Generic PS/2 mouse, device ID 0
> vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
> sc0: <System console> at flags 0x100 on isa0
> sc0: VGA <16 virtual consoles, flags=0x300>
> sio0: can't drain, serial port might not exist, disabling
> sio1: can't drain, serial port might not exist, disabling
> hpt27xx: no controller detected.
> CAM: Configuring 2 busses
> CAM: finished configuring all busses
> da0 at ahci0 bus 0 target 0 lun 0
> da0: <SATA ST1000LM024 HN-M 2BA3> Fixed Direct Access SCSI-4 device
> da0: Serial Number S32XJ9GG900278
> da0: 600.000MB/s transfers
> da0: 953869MB (1953525168 512 byte sectors: 255H 63S/T 121601C)
> cd0 at ahci0 bus 1 target 0 lun 0
> cd0: <MATSHITA DVD-RAM UJ8HC 1.00> Removable CD-ROM SCSI-0 device
> cd0: 150.000MB/s transfers
> cd0: Attempt to query device size failed: NOT READY, Medium not
> present - tray closed
> no B_DEVMAGIC (bootdev=0)
> Mounting root from hammer:serno/S32XJ9GG900278.s1d
> HAMMER(ROOT) recovery check seqno=001db2b9
> HAMMER(ROOT) recovery range 300000000141eed0-300000000141eed0
> HAMMER(ROOT) recovery nexto 300000000141eed0 endseqno=001db2ba
> HAMMER(ROOT) mounted clean, no recovery needed
> DMA space used: 5852k, remaining available: 131072k
> Mounting devfs
> ar9300_Stub_GetCTSTimeout: called
> ar9300_Stub_GetCTSTimeout: called
> ar9300_Stub_GetAntennaSwitch: called
> ar9300_Stub_GetAntennaSwitch: called
> HAMMER(BUILD) recovery check seqno=000ff5bf
> HAMMER(BUILD) recovery range 3000000000583920-3000000000583920
> HAMMER(BUILD) recovery nexto 3000000000583920 endseqno=000ff5c0
> HAMMER(BUILD) mounted clean, no recovery needed
> urtwn0: <vendor 0x7392 product 0x7811, class 0/0, rev 2.00/2.00, addr
> 1> on usbus0
> urtwn0: MAC/BB RTL8188CUS, RF 6052 1T1R
> swap low/high-water marks set to 83884/125827
> in6_ifattach_linklocal: failed to configure a link-local address on
> ath0 (errno=22)
> wlan0: driver didn't set altq_maxlen
> wlan0: MAC address: 30:52:cb:a3:cf:a7
>
>
> --
> -------
> inum: 883510009027723
> sip: jungleboogie at sip2sip.info
> xmpp: jungle-boogie at jit.si



-- 
Tomorrow Will Never Die



More information about the Users mailing list