[Buildroot] Wifi not working - raspberrypi3_defconfig

Ola Oni oniola at gmail.com
Mon Dec 17 20:31:43 UTC 2018


> 
> raspberrypi3_defconfig with the following changes works for me:
> 
> +BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_MDEV=y
> 
> +BR2_PACKAGE_RPI_WIFI_FIRMWARE=y
> +BR2_PACKAGE_DHCPCD=y
> +BR2_PACKAGE_WPA_SUPPLICANT=y

Hi Peter,

I am rebuilt the raspberry pi 3 buildroot image which has now allowed me 
to see wlan0 when I issue ifconfig but still can't seems to connect to 
WiFi network.

Attached is a file which I have appended my current rpi3_defconfig and 
other outputs. Many thanks in advance.

Regards
Ola
-------------- next part --------------
# ------------ /etc/network/interfaces
# interface file auto-generated by buildroot

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet dhcp
  pre-up /etc/network/nfs_check
  wait-delay 15
  hostname $(hostname)

auto wlan0
iface wlan0 inet dhcp
    wireless-essid "myssid"
    wireless-key "mypassowrd"
    pre-up wpa_supplicant -i wlan0 -c /etc/wpa_supplicant.conf -B
    post-down killall -q wpa_supplicant

#---------/etc/wpa_supplicant.conf

ctrl_interface=/var/run/wpa_supplicant
ap_scan=1

#network={
#  key_mgmt=NONE
#}

network={
    ssid="myssid"
    psk="mypassword"
    proto=WPA
    key_mgmt=WPA-PSK
    pairwise=CCMP
    auth_alg=OPEN
}

#
# -------------- configs/rpi3_defconfig
#
BR2_arm=y
BR2_cortex_a53=y
BR2_ARM_FPU_NEON_VFPV4=y
BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_14=y
BR2_TOOLCHAIN_BUILDROOT_CXX=y
BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_MDEV=y
BR2_TARGET_GENERIC_ROOT_PASSWD="$$1$$iQ4JcQ1M$$fYAkDkN1Iy3LqLKPuMbWx0"
BR2_SYSTEM_DHCP="eth0"
BR2_ROOTFS_POST_BUILD_SCRIPT="board/raspberrypi3/post-build.sh"
BR2_ROOTFS_POST_IMAGE_SCRIPT="board/raspberrypi3/post-image.sh"
BR2_ROOTFS_POST_SCRIPT_ARGS="--add-pi3-miniuart-bt-overlay"
BR2_LINUX_KERNEL=y
BR2_LINUX_KERNEL_CUSTOM_TARBALL=y
BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION="$(call github,raspberrypi,linux,6d27aa156c26977dfd079a7107e31670127d17d3)/linux-6d27aa156c26977dfd079a7107e31670127d17d3.tar.gz"
BR2_LINUX_KERNEL_DEFCONFIG="bcm2709"
BR2_LINUX_KERNEL_DTS_SUPPORT=y
BR2_LINUX_KERNEL_INTREE_DTS_NAME="bcm2710-rpi-3-b bcm2710-rpi-3-b-plus bcm2710-rpi-cm3"
BR2_PACKAGE_RPI_FIRMWARE=y
BR2_PACKAGE_RPI_WIFI_FIRMWARE=y
BR2_PACKAGE_DHCPCD=y
BR2_PACKAGE_DROPBEAR=y
BR2_PACKAGE_WPA_SUPPLICANT=y
BR2_TARGET_ROOTFS_EXT2=y
BR2_TARGET_ROOTFS_EXT2_4=y
BR2_TARGET_ROOTFS_EXT2_SIZE="120M"
# BR2_TARGET_ROOTFS_TAR is not set
BR2_PACKAGE_HOST_DOSFSTOOLS=y
BR2_PACKAGE_HOST_GENIMAGE=y
BR2_PACKAGE_HOST_MTOOLS=y

#----------- dmesg ---------------------------------------
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.14.74-v7 (onio at genesis) (gcc version 7.3.0 (Buildroot 2018.11-dirty)) #1 SMP Mon Dec 17 17:45:18 GMT 2018
[    0.000000] CPU: ARMv7 Processor [410fd034] revision 4 (ARMv7), cr=10c5383d
[    0.000000] CPU: div instructions available: patching division code
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt: Machine model: Raspberry Pi 3 Model B Rev 1.2
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] cma: Reserved 8 MiB at 0x39400000
[    0.000000] On node 0 totalpages: 236544
[    0.000000] free_area_init_node: node 0, pgdat 80c85180, node_mem_map b8bd5000
[    0.000000]   Normal zone: 2079 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 236544 pages, LIFO batch:31
[    0.000000] percpu: Embedded 17 pages/cpu @b8b7e000 s38668 r8192 d22772 u69632
[    0.000000] pcpu-alloc: s38668 r8192 d22772 u69632 alloc=17*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3 
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 234465
[    0.000000] Kernel command line: 8250.nr_uarts=1 bcm2708_fb.fbwidth=1920 bcm2708_fb.fbheight=1080 bcm2708_fb.fbswap=1 vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000  root=/dev/mmcblk0p2 rootwait console=tty1 console=ttyAMA0,115200
[    0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Memory: 915872K/946176K available (7168K kernel code, 576K rwdata, 2076K rodata, 1024K init, 698K bss, 22112K reserved, 8192K cma-reserved)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xba000000 - 0xff800000   (1112 MB)
[    0.000000]     lowmem  : 0x80000000 - 0xb9c00000   ( 924 MB)
[    0.000000]     modules : 0x7f000000 - 0x80000000   (  16 MB)
[    0.000000]       .text : 0x80008000 - 0x80800000   (8160 kB)
[    0.000000]       .init : 0x80b00000 - 0x80c00000   (1024 kB)
[    0.000000]       .data : 0x80c00000 - 0x80c900f4   ( 577 kB)
[    0.000000]        .bss : 0x80c98060 - 0x80d46860   ( 698 kB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] ftrace: allocating 25222 entries in 74 pages
[    0.000000] Hierarchical RCU implementation.
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] arch_timer: cp15 timer(s) running at 19.20MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x46d987e47, max_idle_ns: 440795202767 ns
[    0.000007] sched_clock: 56 bits at 19MHz, resolution 52ns, wraps every 4398046511078ns
[    0.000021] Switching to timer-based delay loop, resolution 52ns
[    0.000287] Console: colour dummy device 80x30
[    0.000810] console [tty1] enabled
[    0.000848] Calibrating delay loop (skipped), value calculated using timer frequency.. 38.40 BogoMIPS (lpj=192000)
[    0.000887] pid_max: default: 32768 minimum: 301
[    0.001197] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.001229] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.002180] Disabling memory control group subsystem
[    0.002269] CPU: Testing write buffer coherency: ok
[    0.002689] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.003105] Setting up static identity map for 0x100000 - 0x10003c
[    0.003243] Hierarchical SRCU implementation.
[    0.003932] smp: Bringing up secondary CPUs ...
[    0.004674] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.005459] CPU2: thread -1, cpu 2, socket 0, mpidr 80000002
[    0.006225] CPU3: thread -1, cpu 3, socket 0, mpidr 80000003
[    0.006331] smp: Brought up 1 node, 4 CPUs
[    0.006403] SMP: Total of 4 processors activated (153.60 BogoMIPS).
[    0.006424] CPU: All CPU(s) started in HYP mode.
[    0.006442] CPU: Virtualization extensions available.
[    0.007325] devtmpfs: initialized
[    0.016932] random: get_random_u32 called from bucket_table_alloc+0x120/0x24c with crng_init=0
[    0.017450] VFP support v0.3: implementor 41 architecture 3 part 40 variant 3 rev 4
[    0.017683] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.017727] futex hash table entries: 1024 (order: 4, 65536 bytes)
[    0.018312] pinctrl core: initialized pinctrl subsystem
[    0.019050] NET: Registered protocol family 16
[    0.021497] DMA: preallocated 1024 KiB pool for atomic coherent allocations
[    0.025903] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.025935] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.026130] Serial: AMBA PL011 UART driver
[    0.027750] bcm2835-mbox 3f00b880.mailbox: mailbox enabled
[    0.028208] uart-pl011 3f201000.serial: could not find pctldev for node /soc/gpio at 7e200000/uart0_pins, deferring probe
[    0.058075] bcm2835-dma 3f007000.dma: DMA legacy API manager at ba013000, dmachans=0x1
[    0.059467] SCSI subsystem initialized
[    0.059693] usbcore: registered new interface driver usbfs
[    0.059767] usbcore: registered new interface driver hub
[    0.059865] usbcore: registered new device driver usb
[    0.070188] raspberrypi-firmware soc:firmware: Attached to firmware from 2018-10-08 17:43
[    0.071344] clocksource: Switched to clocksource arch_sys_counter
[    0.153458] VFS: Disk quotas dquot_6.6.0
[    0.153565] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.153764] FS-Cache: Loaded
[    0.153970] CacheFiles: Loaded
[    0.162620] NET: Registered protocol family 2
[    0.163343] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    0.163471] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[    0.163673] TCP: Hash tables configured (established 8192 bind 8192)
[    0.163817] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    0.163878] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    0.164117] NET: Registered protocol family 1
[    0.164593] RPC: Registered named UNIX socket transport module.
[    0.164617] RPC: Registered udp transport module.
[    0.164636] RPC: Registered tcp transport module.
[    0.164656] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.165696] hw perfevents: enabled with armv7_cortex_a7 PMU driver, 7 counters available
[    0.168331] workingset: timestamp_bits=14 max_order=18 bucket_order=4
[    0.175962] FS-Cache: Netfs 'nfs' registered for caching
[    0.176564] NFS: Registering the id_resolver key type
[    0.176611] Key type id_resolver registered
[    0.176631] Key type id_legacy registered
[    0.176660] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.178510] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
[    0.178662] io scheduler noop registered
[    0.178684] io scheduler deadline registered
[    0.178861] io scheduler cfq registered (default)
[    0.178883] io scheduler mq-deadline registered
[    0.178904] io scheduler kyber registered
[    0.181598] BCM2708FB: allocated DMA memory f9510000
[    0.181642] BCM2708FB: allocated DMA channel 0 @ ba013000
[    0.233541] Console: switching to colour frame buffer device 240x67
[    0.262824] Serial: 8250/16550 driver, 1 ports, IRQ sharing enabled
[    0.264490] bcm2835-rng 3f104000.rng: hwrng registered
[    0.264752] vc-mem: phys_addr:0x00000000 mem_base=0x3ec00000 mem_size:0x40000000(1024 MiB)
[    0.265428] vc-sm: Videocore shared memory driver
[    0.265834] gpiomem-bcm2835 3f200000.gpiomem: Initialised: Registers at 0x3f200000
[    0.275476] brd: module loaded
[    0.284488] loop: module loaded
[    0.284621] Loading iSCSI transport class v2.0-870.
[    0.285407] libphy: Fixed MDIO Bus: probed
[    0.285618] usbcore: registered new interface driver lan78xx
[    0.285801] usbcore: registered new interface driver smsc95xx
[    0.285956] dwc_otg: version 3.00a 10-AUG-2012 (platform bus)
[    0.314013] dwc_otg 3f980000.usb: base=0xf0980000
[    0.514353] Core Release: 2.80a
[    0.514448] Setting default values for core params
[    0.514595] Finished setting default values for core params
[    0.714992] Using Buffer DMA mode
[    0.715088] Periodic Transfer Interrupt Enhancement - disabled
[    0.715234] Multiprocessor Interrupt Enhancement - disabled
[    0.715375] OTG VER PARAM: 0, OTG VER FLAG: 0
[    0.715492] Dedicated Tx FIFOs mode
[    0.715944] WARN::dwc_otg_hcd_init:1046: FIQ DMA bounce buffers: virt = 0xb9504000 dma = 0xf9504000 len=9024
[    0.716205] FIQ FSM acceleration enabled for :
[    0.716205] Non-periodic Split Transactions
[    0.716205] Periodic Split Transactions
[    0.716205] High-Speed Isochronous Endpoints
[    0.716205] Interrupt/Control Split Transaction hack enabled
[    0.716725] dwc_otg: Microframe scheduler enabled
[    0.716782] WARN::hcd_init_fiq:459: FIQ on core 1 at 0x805ed4b0
[    0.716941] WARN::hcd_init_fiq:460: FIQ ASM at 0x805ed80c length 36
[    0.717104] WARN::hcd_init_fiq:486: MPHI regs_base at 0xf0006000
[    0.717301] dwc_otg 3f980000.usb: DWC OTG Controller
[    0.717458] dwc_otg 3f980000.usb: new USB bus registered, assigned bus number 1
[    0.724243] dwc_otg 3f980000.usb: irq 62, io mem 0x00000000
[    0.730971] Init: Port Power? op_state=1
[    0.737604] Init: Power Port (0)
[    0.744368] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    0.751034] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    0.757669] usb usb1: Product: DWC OTG Controller
[    0.764282] usb usb1: Manufacturer: Linux 4.14.74-v7 dwc_otg_hcd
[    0.770855] usb usb1: SerialNumber: 3f980000.usb
[    0.778080] hub 1-0:1.0: USB hub found
[    0.784686] hub 1-0:1.0: 1 port detected
[    0.791826] dwc_otg: FIQ enabled
[    0.791831] dwc_otg: NAK holdoff enabled
[    0.791835] dwc_otg: FIQ split-transaction FSM enabled
[    0.791845] Module dwc_common_port init
[    0.792116] usbcore: registered new interface driver usb-storage
[    0.798971] mousedev: PS/2 mouse device common for all mice
[    0.805677] IR NEC protocol handler initialized
[    0.812255] IR RC5(x/sz) protocol handler initialized
[    0.818754] IR RC6 protocol handler initialized
[    0.825225] IR JVC protocol handler initialized
[    0.831654] IR Sony protocol handler initialized
[    0.838021] IR SANYO protocol handler initialized
[    0.844484] IR Sharp protocol handler initialized
[    0.850849] IR MCE Keyboard/mouse protocol handler initialized
[    0.857164] IR XMP protocol handler initialized
[    0.864166] bcm2835-wdt 3f100000.watchdog: Broadcom BCM2835 watchdog timer
[    0.870764] bcm2835-cpufreq: min=600000 max=1200000
[    0.877544] sdhci: Secure Digital Host Controller Interface driver
[    0.884034] sdhci: Copyright(c) Pierre Ossman
[    0.890850] mmc-bcm2835 3f300000.mmc: could not get clk, deferring probe
[    0.897799] sdhost-bcm2835 3f202000.mmc: could not get clk, deferring probe
[    0.904623] sdhci-pltfm: SDHCI platform and OF driver helper
[    0.912771] ledtrig-cpu: registered to indicate activity on CPUs
[    0.919616] hidraw: raw HID events driver (C) Jiri Kosina
[    0.926470] usbcore: registered new interface driver usbhid
[    0.933138] usbhid: USB HID core driver
[    0.940318] vchiq: vchiq_init_state: slot_zero = b9580000, is_master = 0
[    0.948534] [vc_sm_connected_init]: start
[    0.958707] [vc_sm_connected_init]: end - returning 0
[    0.965832] Initializing XFRM netlink socket
[    0.972320] NET: Registered protocol family 17
[    0.978893] Key type dns_resolver registered
[    0.985604] Registering SWP/SWPB emulation handler
[    0.992650] registered taskstats version 1
[    1.004886] uart-pl011 3f201000.serial: cts_event_workaround enabled
[    1.011603] 3f201000.serial: ttyAMA0 at MMIO 0x3f201000 (irq = 87, base_baud = 0) is a PL011 rev2
[    2.031304] console [ttyAMA0] enabled
[    2.043413] Indeed it is in host mode hprt0 = 00021501
[    2.115476] 3f215040.serial: ttyS0 at MMIO 0x0 (irq = 166, base_baud = 50000000) is a 16550
[    2.131879] mmc-bcm2835 3f300000.mmc: mmc_debug:0 mmc_debug2:0
[    2.144597] mmc-bcm2835 3f300000.mmc: DMA channel allocated
[    2.183087] random: fast init done
[    2.212092] sdhost: log_buf @ b9507000 (f9507000)
[    2.260174] mmc1: queuing unknown CIS tuple 0x80 (2 bytes)
[    2.272498] usb 1-1: new high-speed USB device number 2 using dwc_otg
[    2.285871] Indeed it is in host mode hprt0 = 00001101
[    2.358725] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[    2.372478] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[    2.384679] mmc0: sdhost-bcm2835 loaded - DMA enabled (>1)
[    2.397956] of_cfs_init
[    2.407144] of_cfs_init: OK
[    2.416940] uart-pl011 3f201000.serial: no DMA platform data
[    2.419309] mmc1: queuing unknown CIS tuple 0x80 (7 bytes)
[    2.441619] Waiting for root device /dev/mmcblk0p2...
[    2.468380] mmc0: host does not support reading read-only switch, assuming write-enable
[    2.485917] mmc0: new high speed SDHC card at address 0001
[    2.499108] mmcblk0: mmc0:0001 00000 14.6 GiB
[    2.511659]  mmcblk0: p1 p2
[    2.541744] usb 1-1: New USB device found, idVendor=0424, idProduct=9514
[    2.555314] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    2.570111] hub 1-1:1.0: USB hub found
[    2.580860] hub 1-1:1.0: 5 ports detected
[    2.595508] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    2.610633] VFS: Mounted root (ext4 filesystem) readonly on device 179:2.
[    2.613637] mmc1: new high speed SDIO card at address 0001
[    2.639672] devtmpfs: mounted
[    2.652621] Freeing unused kernel memory: 1024K
[    2.733272] EXT4-fs (mmcblk0p2): re-mounted. Opts: data=ordered
[    2.911407] usb 1-1.1: new high-speed USB device number 3 using dwc_otg
[    3.071690] usb 1-1.1: New USB device found, idVendor=0424, idProduct=ec00
[    3.085706] usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    3.103468] smsc95xx v1.0.6
[    3.205147] smsc95xx 1-1.1:1.0 eth0: register 'smsc95xx' at usb-3f980000.usb-1.1, smsc95xx USB 2.0 Ethernet, b8:27:eb:47:f3:c0
[    3.641376] usb 1-1.3: new full-speed USB device number 4 using dwc_otg
[    3.802561] usb 1-1.3: New USB device found, idVendor=1997, idProduct=2433
[    3.817243] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    3.832871] usb 1-1.3: Product: mini keyboard
[    3.844806] usb 1-1.3: Manufacturer:  
[    3.867341] input:   mini keyboard as /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3:1.0/0003:1997:2433.0001/input/input0
[    3.898310] brcmfmac: F1 signature read @0x18000000=0x1541a9a6
[    3.921659] brcmfmac: brcmf_fw_map_chip_to_name: using brcm/brcmfmac43430-sdio.bin for chip 0x00a9a6(43430) rev 0x000001
[    3.942635] usbcore: registered new interface driver brcmfmac
[    3.952320] hid-generic 0003:1997:2433.0001: input,hidraw0: USB HID v1.01 Keyboard [  mini keyboard] on usb-3f980000.usb-1.3/input0
[    3.962495] input:   mini keyboard as /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3:1.1/0003:1997:2433.0002/input/input1
[    4.005921] random: dd: uninitialized urandom read (512 bytes read)
[    4.032283] hid-generic 0003:1997:2433.0002: input,hidraw1: USB HID v1.01 Mouse [  mini keyboard] on usb-3f980000.usb-1.3/input1
[    4.277409] NET: Registered protocol family 10
[    4.285105] brcmfmac: brcmf_c_preinit_dcmds: Firmware version = wl0: Oct 23 2017 03:55:53 version 7.45.98.38 (r674442 CY) FWID 01-e58d219f
[    4.285984] brcmfmac: brcmf_c_preinit_dcmds: CLM version = API: 12.2 Data: 7.11.15 Compiler: 1.24.2 ClmImport: 1.24.1 Creation: 2014-05-26 10:53:55 Inc Data: 9.10.39 Inc Compiler: 1.29.4 Inc ClmImport: 1.36.3 Creation: 2017-10-23 03:47:14 
[    4.353156] Segment Routing with IPv6
[    4.493356] smsc95xx 1-1.1:1.0 eth0: hardware isn't capable of remote wakeup
[    4.509816] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[    4.553857] random: mktemp: uninitialized urandom read (6 bytes read)
[    9.217638] random: crng init done
[   14.209435] brcmfmac: power management disabled
[   14.224879] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[   23.800000] 8021q: 802.1Q VLAN Support v1.8
[ 4814.809583] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ 4814.824193] smsc95xx 1-1.1:1.0 eth0: link up, 100Mbps, full-duplex, lpa 0x45E1
# 



More information about the buildroot mailing list